Recall & Review
beginner
What is a stimulus process in VHDL?
A stimulus process is a part of a testbench that applies input signals to the design under test. It generates test patterns to check how the design responds.
Click to reveal answer
beginner
Why do we use wait statements inside a stimulus process?
Wait statements pause the process for a specific time or until a condition is met. This controls when inputs change, simulating real timing in the testbench.
Click to reveal answer
beginner
Show a simple example of a stimulus process with wait statements in VHDL.
process
begin
input_signal <= '0';
wait for 10 ns;
input_signal <= '1';
wait for 10 ns;
wait;
end process;
Click to reveal answer
intermediate
What happens if you omit the wait statement in a stimulus process?
The process runs continuously without pausing, causing signals to change instantly and possibly creating an infinite loop or no meaningful test timing.
Click to reveal answer
intermediate
Can a stimulus process have multiple wait statements? Why?
Yes, multiple wait statements allow the process to pause at different points, applying inputs at different times to simulate complex test scenarios.
Click to reveal answer
What does the 'wait for 10 ns;' statement do inside a stimulus process?
✗ Incorrect
The 'wait for 10 ns;' pauses the process for exactly 10 nanoseconds before continuing.
In VHDL, what is the main purpose of a stimulus process?
✗ Incorrect
A stimulus process generates input signals to test how the design behaves.
What happens if a stimulus process has no wait statement?
✗ Incorrect
Without a wait, the process loops continuously without pausing, which is usually not desired.
Which of these is a valid wait statement in a stimulus process?
✗ Incorrect
All these are valid wait statements: waiting for time, waiting for a condition, or waiting indefinitely.
Why might you use multiple wait statements in a stimulus process?
✗ Incorrect
Multiple wait statements let you change inputs at different times to test various scenarios.
Explain how a stimulus process uses wait statements to control input timing in a VHDL testbench.
Think about how you pause and change inputs step by step.
You got /4 concepts.
Describe what could happen if you forget to include a wait statement inside a stimulus process.
Imagine a process that never stops running.
You got /4 concepts.