Question: Write the VHDL code for test bench simulation For Y = A and B Fill out the missing codes below? library IEEE; use IEEE.STD_LOGIC_1164.ALL; --

Write the VHDL code for test bench simulation For

Y = A and B

Fill out the missing codes below?

library IEEE; use IEEE.STD_LOGIC_1164.ALL;

-- Uncomment the following library declaration if using -- arithmetic functions with Signed or Unsigned values use IEEE.NUMERIC_STD.ALL;

-- Uncomment the following library declaration if instantiating -- any Xilinx leaf cells in this code. --library UNISIM; --use UNISIM.VComponents.all;

entity task1_tb is -- Port ( ); end task1_tb;

architecture Behavioral of task1_tb is

--declaring the component component task1 Port ( a : in STD_LOGIC; b : in STD_LOGIC; y : out STD_LOGIC); end component;

--declaring the signals needed --these y,a,b signals are different from the --internal ones of the component signal y,a,b: std_logic; --signal to assign values to a and b signal counter: unsigned(1 downto 0):="00";

begin -- component assignment uut: task1 port map( a => a, b => b, y => y );

--assign a (bit 1) and b (bit 0) to the counter bits so that --all possible inputs are tested --Enter your code here --increments the counter using a process --use a 20ns delay between each combination --Enter your code here --assign operation results to y --Enter your code here

end Behavioral;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!