summaryrefslogtreecommitdiff
path: root/ctrl_decode.v
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2017-01-08 21:58:16 -0600
committerBobby Bingham <koorogi@koorogi.info>2017-01-08 23:18:31 -0600
commit17f5cbe781ae761d86d55fec7d46ba3172167894 (patch)
treeb02d0dc075eb94a56cccd49a471e852a6799c266 /ctrl_decode.v
parent47cfb7ba2df247310e2160e4e53d1843d4e4d1c8 (diff)
Add carry input to ALU
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,