From f57de1aeb28fbbf370a143222bb27bc8943d0d79 Mon Sep 17 00:00:00 2001 From: Nick McKinney Date: Thu, 8 Dec 2016 22:39:28 -0600 Subject: finish decoder v1 --- alu.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'alu.v') 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); -- cgit v1.2.3