Question: 20. What does this code do? 12.5 pts entity Shifter is Port ( switches: in STD LOGIC VECTOR (3 downto 0) Ledout: out STD LOGIC

 20. What does this code do? 12.5 pts entity Shifter is

20. What does this code do? 12.5 pts entity Shifter is Port ( switches: in STD LOGIC VECTOR (3 downto 0) Ledout: out STD LOGIC VECTOR (3 downto 8); rot: in STD LOGIC; bitAmt: in STD LOGIC VECTOR (1 downto ) dir : in STD-LOGIC);--e-right, 1-left end Shifter; architecture Behavioral of Shifter is begin ledOutswitches (e) & switches(3 downto 1); end Behavioral: A. B. C. D. E. Pass input to output Rotate right by one Rotate left by one Shift right by one Shift left by one 21. What does this code do? [2.5 pts] Hint: More than 1 answer choice maybe correct entity Shifter is Port ( switches: in STD LOGIC VECTOR (3 downto e): ledout : out STD LOGIC VECTOR (3 downto e); rot : in STD LOGIC; bitAmt : in STD LOGIC VECTOR (1 downto ); dir : in STD_LOGIC) ;--.-right, 1 = left end Shifter: architecture Behavioral of Shifter is begin Ledout switches(1 downto e)&switches (3 dounto 2) end Behavioral; A. Rotate left by two B. Rotate right by two C. Rotate left by one D. Shit right by one E. Shift left by one

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!