Skip to content

Commit

Permalink
Update implementation of SRA
Browse files Browse the repository at this point in the history
Update implementation of SRA
  • Loading branch information
phillipstanleymarbell authored May 17, 2022
1 parent 97ec401 commit 215ac69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verilog/alu.v
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ module alu(ALUctl, A, B, ALUOut, Branch_Enable);
/*
* SRA (the fields also matches the other SRA variants)
*/
`kSAIL_MICROARCHITECTURE_ALUCTL_3to0_SRA: ALUOut = A >>> B[4:0];
`kSAIL_MICROARCHITECTURE_ALUCTL_3to0_SRA: ALUOut = $signed(A) >>> B[4:0];

/*
* SLL (the fields also match the other SLL variants)
Expand Down

0 comments on commit 215ac69

Please sign in to comment.