



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
Its one of the Sequential Logic Design lectures. Its key points are: Test Benches, Real System, Stimulate, Functionality, External Source, Architectures, Instantiate the Design, Components, Device Under Test, Stimulus Generator
Typology: Slides
1 / 7
This page cannot be seen from the preview
Don't miss anything!




entity Test_Mux is end entity Test_Mux; -- the test bench entity has no ports
architecture Test_Mux_arch of Test_Mux is
signal In1_TB, In2_TB : STD_LOGIC; -- setup internal Test Signals signal Sel_TB : STD_LOGIC; -- give descriptive names to make signal Out_TB : STD_LOGIC; -- apparent they are test signals
component Mux_2to1 -- declare any used components port (A, B, Sel : in STD_LOGIC; Y : out STD_LOGIC); end component;
begin
UUT : Mux_2to1 -- instantiate the design to test port map ( A => In1_TB, B => In2_TB, Sel => Sel_TB, Y => Out_TB);
STIM : process -- create process to generate stimulus begin In1_TB <= '0'; In2_TB <= '0'; Sel_TB <= '0' wait for 10ns -- we can use wait In1_TB <= '0'; In2_TB <= '1'; Sel_TB <= '0' wait for 10ns -- statements to control In1_TB <= '1'; In2_TB <= '0'; Sel_TB <= '0' wait for 10ns -- the speed of the stim
: : : In1_TB <= '1'; In2_TB <= '1'; Sel_TB <= '1' wait for 10ns -- end with a wait…
end process STIM;
end architecture Test_Mux_2to1;
ex) report "Beginning the MUX test" severity NOTE;
A<='0'; B<='0'; wait for 10ns; assert (Z='1') report "Failed test 00" severity ERROR;