Skip to content

Commit

Permalink
fix: fix sll aluop & FTQ commit clear
Browse files Browse the repository at this point in the history
  • Loading branch information
eastonman committed Jun 28, 2022
1 parent e81468a commit ceb75ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vsrc/defines.sv
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
`define EXE_XOR_OP 8'b00000011
`define EXE_NOR_OP 8'b00000100
`define EXE_LUI_OP 8'b00000101
`define EXE_SLL_OP 8'b00110001 // HACK: Workaround
`define EXE_SLL_OP 8'b10110001 // HACK: Workaround
`define EXE_SRL_OP 8'b00000110
`define EXE_SRA_OP 8'b00000111
`define EXE_ADD_OP 8'b00001000
Expand Down
2 changes: 1 addition & 1 deletion src/vsrc/frontend/ftq.sv
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ module ftq
next_FTQ = FTQ;
// clear out if committed
for (integer i = 0; i < COMMIT_WIDTH; i++) begin
if (i < backend_commit_num) next_FTQ[comm_ptr+i] = 0;
if (i < backend_commit_num) next_FTQ[$clog2(QUEUE_SIZE)'(comm_ptr+i)] = 0;
end
// Accept BPU input
if (bpu_i.valid) next_FTQ[bpu_ptr] = bpu_i;
Expand Down

0 comments on commit ceb75ff

Please sign in to comment.