Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This code is in VHDL DIGITAL SYSTEM DESIGN Design a 16-bit Shifter unit with A,

ID: 1716897 • Letter: T

Question

This code is in VHDL DIGITAL SYSTEM DESIGN

Design a 16-bit Shifter unit with A, B, Type and Direction as inputs and Shift Out as output. The value of A should be shifted or rotated by the value specified in B. lire "Direction" bit is used to determine whether to shift/rotate left(0) or right(l). 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: 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:

Explanation / Answer

SO <=A sll B when "01",

        A slr B when "01",

A rol B when "01",