mirror of
https://github.com/supleed2/ELEC50010-IAC-CW.git
synced 2024-12-22 13:25:49 +00:00
Fix sllv, srlv, srav to shift by A[4:0]
This commit is contained in:
parent
1458a6c619
commit
d3dcd92a44
|
@ -1,4 +1,4 @@
|
|||
3C04FFFF
|
||||
3404FFFE
|
||||
3484FFFE
|
||||
00000008
|
||||
2882FFFF
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
3C04FFFF
|
||||
3404FFFE
|
||||
3484FFFE
|
||||
00000008
|
||||
2c82FFFF
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
1
|
||||
0
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue