diff options
author | Nick McKinney <nick@kmonkey.net> | 2016-12-08 22:39:28 -0600 |
---|---|---|
committer | Nick McKinney <nick@kmonkey.net> | 2016-12-08 22:39:28 -0600 |
commit | f57de1aeb28fbbf370a143222bb27bc8943d0d79 (patch) | |
tree | 864b448e7d8b727d3623a4a9fe7192ccfb978ce4 /alu.v | |
parent | 37db52dbd66db1fd43337082249c469eda39f776 (diff) |
finish decoder v1
Diffstat (limited to 'alu.v')
-rw-r--r-- | alu.v | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |