Skip to content

Commit 6333185

Browse files
committed
fixed ld issue
1 parent a0b26a0 commit 6333185

File tree

8 files changed

+1951
-8184
lines changed

8 files changed

+1951
-8184
lines changed

sequential/modules/alu.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module alu(
2929

3030
// set to sub if instruction sub, or slt/sltu
3131
wire sub;
32-
assign sub = ((funct3==3'h0 && funct7==7'h20) || (funct3==3'h2) || (funct3==3'h3)) && (opcode!=7'b0000011) && (opcode!=7'b0100011) ? 1 : 0;
32+
assign sub = ((funct3==3'h0 && funct7==7'h20 && opcode==7'b0110011) || (funct3==3'h2 && opcode==7'b0110011) || (funct3==3'h3 && opcode==7'b0110011) || (opcode==7'b1100011)) ? 1 : 0;
3333

3434
add_sub add_sub_unit(
3535
.in1(in1),

0 commit comments

Comments
 (0)