Question
Need help with VHDL code. library IEEE;use IEEE.STD_LOGIC_1164.ALL; -- Uncomment the following library declaration if using-- arithmetic functions with Signed or Unsigned valuesuse IEEE.NUMERIC_STD.ALL; --
Need help with VHDL code.
library IEEE;use IEEE.STD_LOGIC_1164.ALL; -- Uncomment the following library declaration if using-- arithmetic functions with Signed or Unsigned valuesuse 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 componentcomponent 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 componentsignal y,a,b: std_logic; --signal to assign values to a and bsignal counter: unsigned(1 downto 0):="00";
begin
-- component assignmentuut: 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started