alpha91
Full Member level 3
Hi, i have learned the shift register code in VHDL as the following:
can anyone tell me this is shift left or shift right? because now i need VHDL for both shift left and shift right.
Code VHDL - [expand] 1 2 3 4 if (reset = '1') then shift <= '0000" ; else if (clock' event and (clock= '1')) then shift <= shift (2 downto 0) & si;
can anyone tell me this is shift left or shift right? because now i need VHDL for both shift left and shift right.
Last edited by a moderator: