1
0
mirror of https://github.com/olofk/serv.git synced 2026-02-22 22:57:12 +00:00

Synthesis fixes

This commit is contained in:
Olof Kindgren
2018-11-22 20:58:45 +01:00
parent 458d12c81d
commit 1bbf8e3ce9
11 changed files with 67 additions and 87 deletions

View File

@@ -261,7 +261,7 @@ module serv_decode
wire gate1 = (cnt == 0) & ((opcode == OP_BRANCH) | (opcode == OP_JAL));
wire gate12 = (cnt < 12) & utype;
wire o_imm = (!(gate1 | gate12) & (cnt_done ? signbit : m1 ? imm11_7[0] : imm24_20[0]));
assign o_imm = (!(gate1 | gate12) & (cnt_done ? signbit : m1 ? imm11_7[0] : imm24_20[0]));
assign o_op_b_source = (opcode == OP_OPIMM) ? OP_B_SOURCE_IMM :
(opcode == OP_BRANCH) ? OP_B_SOURCE_RS2 :