|
|
|
|
(1) Study the code for the
Btn_Detect and the Detector (should have been called
Rising_Pulse)
Look for more exercises below.
|
|
|
|
Btn_Detect_Demo |
|
(2) Write the missing VHDL code inside
the Falling_Pulse.vhd Toggle_Button.vhd and the
Debounced.vhd
(3) Perform a simulation to check the performance.
|
|
|
|
|
|
|
|
|
|
|
Example of
Test Bench - with Rising/Falling pulse, Toggle and Debounced
Button |
|
|
|
|
Test Bench - TB_Btn_Detect_Demo |
|
|
Extra exercise:
The difference between
transport after and
after
|
|
|
|
|
|
|
Try this in your Test Bench - and
explain the difference.
|
|
|
|
|
|