Fix sllv, srlv, srav to shift by A[4:0]

This commit is contained in:
jl7719 2020-12-20 09:07:35 +00:00
parent 1458a6c619
commit d3dcd92a44
4 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,4 @@
3C04FFFF
3404FFFE
3484FFFE
00000008
2882FFFF

View file

@ -1,5 +1,5 @@
3C04FFFF
3404FFFE
3484FFFE
00000008
2c82FFFF

View file

@ -1 +1 @@
1
0

View file

@ -138,7 +138,7 @@ end
end
SLLV: begin
ALURes = B << A;
ALURes = B << A[4:0];
end
SRL: begin
@ -146,7 +146,7 @@ end
end
SRLV: begin
ALURes = B >> A;
ALURes = B >> A[4:0];
end
SRA: begin
@ -154,7 +154,7 @@ end
end
SRAV: begin
ALURes = $signed(B) >>> A;
ALURes = $signed(B) >>> A[4:0];
end
EQ: begin