summaryrefslogtreecommitdiff
path: root/nqcpu.v
diff options
context:
space:
mode:
authorNick McKinney <nick@kmonkey.net>2016-12-29 15:54:36 -0600
committerNick McKinney <nick@kmonkey.net>2016-12-29 15:54:36 -0600
commit410a868f79165d6d2559bc8508ba496450fbe1ee (patch)
tree235c0362adbf0afd3fa0cda3170c752d360652bc /nqcpu.v
parentd4cad6096651774485723551336bce1d08402b6e (diff)
widen register set control signal, fix bugs with conditional sets related to branching
Diffstat (limited to 'nqcpu.v')
-rw-r--r--nqcpu.v6
1 files changed, 3 insertions, 3 deletions
diff --git a/nqcpu.v b/nqcpu.v
index 9dac5cf..9696302 100644
--- a/nqcpu.v
+++ b/nqcpu.v
@@ -19,7 +19,7 @@ module nqcpu (
output debugMemWriteB,
output debugMemWriteW,
- output [4:0] debugSetRegCond, // {should set when condition is true, Z doesn't matter, S doesn't matter, Z must be this, S must be this}
+ output [5:0] debugSetRegCond, // {should set when condition is true, Z doesn't matter, S doesn't matter, Z must be this, S must be this}
output [15:0] dbg_r0,
output [15:0] dbg_r1,
@@ -58,7 +58,7 @@ module nqcpu (
end
end
- wire [31:0] ctrl_from_decoder;
+ wire [32:0] ctrl_from_decoder;
wire [15:0] imm_from_decoder;
wire [15:0] pc_from_decoder;
@@ -103,7 +103,7 @@ module nqcpu (
.dbg_r7(dbg_r7)
);
- wire [31:0] ctrl_from_alu;
+ wire [32:0] ctrl_from_alu;
wire [15:0] imm_from_alu;
wire [15:0] pc_from_alu;
alu_stage alu_inst (