Answered step by step
Verified Expert Solution
Question
1 Approved Answer
NEED DESIGN CODE, TESTBENCH CODE AND WAVEFORMS NEED VHDL DESIGN CODE, TESTBENCH CODE AND WAVEFORMS PLEASE ANSWER IN VHDL Problem 1: (30 pts) Design a
NEED DESIGN CODE, TESTBENCH CODE AND WAVEFORMS
NEED VHDL DESIGN CODE, TESTBENCH CODE AND WAVEFORMS
Problem 1: (30 pts) Design a 16-bit Logic Unit with A, B, and Opcode as inputs and LogicOut as output. This design performs logical operations: A and B, A or B, A nand B, A nor B, A xor B, A xnor B, Not A, and Not B. This 16-bit Logic Unit has the following entity: entity LogicUnit16bit is Port (A IN std_logic_vector (15 downto 0); -- Input IN std_logic_vector (15 downto 0); -- Input : IN std logic vector (2 downto 0); -- op select Logicout : OUT std_logic_vector (15 downto 0)); -- Output end LogicUnit16bit; Below table describes the behavior of 16-bit Logic Unit: Operation A nor B Opcode (2 downto 0) 000 001 010 Anand B 011 100 101 A or B A and B A xor B A xnor B Not A 110 Not B Design a test bench to verify the functionality of your design. All possible operations should be included in the test bench and shown in the simulation waveform. Problem 1: (30 pts) Design a 16-bit Logic Unit with A, B, and Opcode as inputs and LogicOut as output. This design performs logical operations: A and B, A or B, A nand B, A nor B, A xor B, A xnor B, Not A, and Not B. This 16-bit Logic Unit has the following entity: entity LogicUnit16bit is Port (A IN std_logic_vector (15 downto 0); -- Input IN std_logic_vector (15 downto 0); -- Input : IN std logic vector (2 downto 0); -- op select Logicout : OUT std_logic_vector (15 downto 0)); -- Output end LogicUnit16bit; Below table describes the behavior of 16-bit Logic Unit: Operation A nor B Opcode (2 downto 0) 000 001 010 Anand B 011 100 101 A or B A and B A xor B A xnor B Not A 110 Not B Design a test bench to verify the functionality of your design. All possible operations should be included in the test bench and shown in the simulation waveform PLEASE ANSWER IN VHDL
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