



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
These are the Lecture Slides of Computer Science which includes Bit Adder, Code, Vector, Bcdcarryout, Architecture Behavioral, Component, Signal, Waveform, Logic etc. Key important points are: Test Benches, Design By Simulation, Test Bench Model, Timing Model, Simulation Cycle, Digital Hardware, Start Simulation, Update Signals, Execute Processes, End Simulation
Typology: Slides
1 / 7
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;