summaryrefslogtreecommitdiff
path: root/ctrl_decode.v
diff options
context:
space:
mode:
Diffstat (limited to 'ctrl_decode.v')
-rw-r--r--ctrl_decode.v4
1 files changed, 3 insertions, 1 deletions
diff --git a/ctrl_decode.v b/ctrl_decode.v
index ede591f..86ecc97 100644
--- a/ctrl_decode.v
+++ b/ctrl_decode.v
@@ -1,5 +1,5 @@
module ctrl_decode (
- input [32:0] control_signals,
+ input [34:0] control_signals,
output [3:0] aluOp,
output [2:0] aluReg1,
@@ -7,6 +7,7 @@ module ctrl_decode (
output [1:0] aluOpSource1, // ALU first operand: 0 = reg, 1 = memory read, 2 = imm8, 3 = PC
output [1:0] aluOpSource2, // ALU second operand: 0 = reg, 1 = ~reg, 2 = PC, 3 = ???
output aluDest, // 0 = reg, 1 = PC
+ output [1:0] aluCarrySource, // ALU carry flag input source
output [2:0] regDest,
output regSetH,
@@ -28,6 +29,7 @@ module ctrl_decode (
aluOpSource1,
aluOpSource2,
aluDest,
+ aluCarrySource,
regDest,
regSetH,
regSetL,