Skip to content

Commit

Permalink
Update riscvsingle.vhdl
Browse files Browse the repository at this point in the history
  • Loading branch information
michael9186 committed Jun 2, 2023
1 parent cd9a201 commit 58b83c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion project/template_2/riscvsingle.vhdl
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,8 @@ end;
architecture behave of shifter is -- shift a left by b (as int)
begin
--y <= a sll to_integer(unsigned(b));
y <= std_logic_vector(shift_left(signed(a), to_integer(unsigned(b))));
shift_amount <= to_integer(unsigned(b(4 downto 0)));
y <= std_logic_vector(shift_left(signed(a), shift_amount));
end;


Expand Down

0 comments on commit 58b83c5

Please sign in to comment.