Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

NEED VHDL DESIGN CODE, TESTBENCH CODE AND WAVEFORMS Problem 2: (25 pts) Design a 16-bit register (with synchronous reset) that has the following entity: entity

NEED VHDL DESIGN CODE, TESTBENCH CODE AND WAVEFORMS
image text in transcribed
Problem 2: (25 pts) Design a 16-bit register (with synchronous reset) that has the following entity: entity Reg16bit is Port (A : IN std_logic_vector (15 downto 0); -- Input Load : IN std_logic; -- Load the input value when Load='1' Clock : IN std_logic; Reset : IN std_logic; -- Reset the value of the register Regout: OUT std_logic_vector (15 downto 0)); end Reg16bit; In your test bench show that your register is loading the input value only at Load = 1 and not at Load = 0; your register is storing the value inside, when loaded, without changing it; and your register value is reset to "0000_0000" whenever the reset is set to 1. Report: VHDL code and waveforms Email : VHDL code Problem 3: (10 pts) Design a 24-bit I-Type instruction register. This design is similar to problem 2 with slight change at output. This register has the following entity: entity InstReg24bit is Port ( Instr : IN std_logic_vector (23 downto 0); -- Input Load IR: IN std logic; -- Load the input when Load IR='1' Clock : IN std_logic; Opcode : OUT std_logic_vector (7 downto 0); Regout: OUT std_logic_vector (15 downto 0)); end InstReg24bit; In your test bench show that your register is loading the input value only at Load_IR = 1 and not at Load IR = 0; your register is storing the value inside, when loaded, without changing it. This register has 2 outputs: Opcode and RegOut. The Opcode will be the most significant 8 bits of input Instr and RegOut will be the least-significant 16 bits of input Instr in next clock cycle. In your test bench, you should include enough number of test cases to show the correctness of your design

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Power Of Numbers In Health Care A Students Journey In Data Analysis

Authors: Kaiden

1st Edition

8119747887, 978-8119747887

More Books

Students also viewed these Databases questions

Question

4. Label problematic uses of language and their remedies

Answered: 1 week ago