0
0
VHDLprogramming~5 mins

Stimulus process with wait statements in VHDL - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
APauses the process for 10 nanoseconds
BEnds the process immediately
CRepeats the process 10 times
DSkips the next 10 statements
In VHDL, what is the main purpose of a stimulus process?
ATo create output signals only
BTo synthesize hardware
CTo declare variables
DTo generate input signals for testing
What happens if a stimulus process has no wait statement?
AIt runs once and stops
BIt runs infinitely without delay
CIt waits forever
DIt causes a syntax error
Which of these is a valid wait statement in a stimulus process?
AAll of the above
Bwait until signal = '1';
Cwait;
Dwait for 20 ns;
Why might you use multiple wait statements in a stimulus process?
ATo avoid using signals
BTo speed up simulation
CTo apply inputs at different times
DTo declare constants
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.