summaryrefslogtreecommitdiff
path: root/alu_stage.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 /alu_stage.v
parentd4cad6096651774485723551336bce1d08402b6e (diff)
widen register set control signal, fix bugs with conditional sets related to branching
Diffstat (limited to 'alu_stage.v')
-rw-r--r--alu_stage.v6
1 files changed, 3 insertions, 3 deletions
diff --git a/alu_stage.v b/alu_stage.v
index 0ab5265..e070e4e 100644
--- a/alu_stage.v
+++ b/alu_stage.v
@@ -2,7 +2,7 @@ module alu_stage (
input clk,
input en,
input [15:0] pc_in,
- input [31:0] control_signals_in,
+ input [32:0] control_signals_in,
input [15:0] imm_in,
// register file
@@ -20,7 +20,7 @@ module alu_stage (
input [15:0] memData_in, // read in from memory
output reg [15:0] memData_out, // to write out to memory
- output reg [31:0] control_signals_out,
+ output reg [32:0] control_signals_out,
output reg [15:0] imm_out,
output reg [15:0] pc_out
);
@@ -40,7 +40,7 @@ module alu_stage (
wire memReadW_in;
wire memWriteB_in;
wire memWriteW_in;
- wire [4:0] setRegCond_in;
+ wire [5:0] setRegCond_in;
ctrl_decode ctrl_decode_inst (
.control_signals(control_signals_in),