Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE INCLUDE VHDL CODE, TEST BENCH CODE, AND WAVEFORM IMAGE Problem 2: (20 pts) Design a 16-bit Shifter unit with A, B, Type and Direction

PLEASE INCLUDE VHDL CODE, TEST BENCH CODE, AND WAVEFORM IMAGE
image text in transcribed
Problem 2: (20 pts) Design a 16-bit Shifter unit with A, B, Type and Direction as inputs and ShiftOut as output. The value of A should be shifted or rotated by the value specified in B. The "Direction" bit is used to determine whether to shift/rotate left(0) or right(1). The "Op_Type" bit is used to determine whether to Shift(0) or Rotate(1) the data. This 16-bit Shifter has the following entity declaration: entity ShiftUnit16Bits is port (A, B : IN std_logic_vector (15 downto 0); Direction, Op_Type IN std_logic; Shiftout : OUT std_logic_vector (15 downto 0)); end ShiftUnit16Bits; The "Direction" bit is used to determine whether to shift/rotate left (0) or right (1). The "Op_Type" bit is used to determine whether to shift(0) or rotate(1) The value of A should be shifted by the value specified in B. The shifted bits are replaced by 0. Write a test bench that verifies the functionality of your design, make sure to have all possible operations of this unit in your test bench. Below table describes this unit's behavior: Op_Type Direction Operation Shift Left(A,B) 1 Shift Right(A,B) 0 Rotate Left(A,B) 1 Rotate Right(A,B)

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Sham Navathe

4th Edition

0321122267, 978-0321122261

More Books

Students also viewed these Databases questions

Question

What advice would you provide to Jennifer?

Answered: 1 week ago

Question

What are the issues of concern for each of the affected parties?

Answered: 1 week ago