summaryrefslogtreecommitdiff
path: root/alu.v
diff options
context:
space:
mode:
authorNick McKinney <nick@kmonkey.net>2016-12-08 22:39:28 -0600
committerNick McKinney <nick@kmonkey.net>2016-12-08 22:39:28 -0600
commitf57de1aeb28fbbf370a143222bb27bc8943d0d79 (patch)
tree864b448e7d8b727d3623a4a9fe7192ccfb978ce4 /alu.v
parent37db52dbd66db1fd43337082249c469eda39f776 (diff)
finish decoder v1
Diffstat (limited to 'alu.v')
-rw-r--r--alu.v3
1 files changed, 2 insertions, 1 deletions
diff --git a/alu.v b/alu.v
index 1ecc0a0..84a9159 100644
--- a/alu.v
+++ b/alu.v
@@ -15,7 +15,7 @@ module alu (
// 0100: result = x & y
// 0101: result = x | y
// 0110: result = x ^ y
-// 0111: result = don't care
+// 0111: result = x
// 1000: result = x << y (zero extend)
// 1001: result = x << y (one extend)
// 1010: result = x << y (extend with last bit)
@@ -58,6 +58,7 @@ module alu (
op == 4'b0100 ? anded :
op == 4'b0101 ? ored :
op == 4'b0110 ? xored :
+ op == 4'b0111 ? x :
shifted;
assign zero = ~(|result);