



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




entity test_bench is end entity test_bench;
architecture test_reg4 of test_bench is
signal d0, d1, d2, d3, en, clk, q0, q1, q2, q3 : bit;
begin
dut : entity work.reg4(behav) port map ( d0, d1, d2, d3, en, clk, q0, q1, q2, q3 ); stimulus : process is begin d0 <= โ1โ; d1 <= โ1โ; d2 <= โ1โ; d3 <= โ1โ; wait for 20 ns; en <= โ0โ; clk <= โ0โ; wait for 20 ns; en <= โ1โ; wait for 20 ns; clk <= โ1โ; wait for 20 ns; d0 <= โ0โ; d1 <= โ0โ; d2 <= โ0โ; d3 <= โ0โ; wait for 20 ns; en <= โ0โ; wait for 20 ns; โฆ wait ; end process stimulus;
end architecture test_reg4;