summaryrefslogtreecommitdiff
path: root/alu_tb.v
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2017-01-07 15:26:04 -0600
committerBobby Bingham <koorogi@koorogi.info>2017-01-08 22:02:28 -0600
commit7977ddd908a0af5ce4b176b05b31940cd7c8d50e (patch)
tree1b600d9e17a2de7c610b1304cf2914e7e35a3c7d /alu_tb.v
parent209c6cf89e36ae3fdafa31543e77e5dd0047ece7 (diff)
Remove trailing whitespace
Diffstat (limited to 'alu_tb.v')
-rw-r--r--alu_tb.v18
1 files changed, 9 insertions, 9 deletions
diff --git a/alu_tb.v b/alu_tb.v
index dffe337..de9fe37 100644
--- a/alu_tb.v
+++ b/alu_tb.v
@@ -14,51 +14,51 @@ module alu_tb ();
initial begin
x = 16'h0123;
y = 16'h1234;
-
+
op = 4'h0; // add
expected_result = 16'h1357;
expected_zero = 1'b0;
expected_carry = 1'b0;
-
+
#2
op = 4'h1; // subtract
expected_result = 16'hEEEF;
expected_carry = 1'b1;
expected_zero = 1'b0;
-
+
#2
y = 16'h0123;
expected_result = 16'h0;
expected_zero = 1'b1;
expected_carry = 1'b0;
-
+
#2
y = 16'h1234;
op = 4'h2; // multiply
expected_result = 16'hB11C;
expected_zero = 1'b0;
expected_carry = 1'b0;
-
+
#2
x = 16'h3E58;
y = 16'h0078;
op = 4'h3; // divide
expected_result = 16'h0085;
-
+
#2
x = 16'hAF74;
y = 16'h7CC7;
op = 4'h4; // and
expected_result = 16'h2C44;
-
+
#2
op = 4'h5; // or
expected_result = 16'hFFF7;
-
+
#2
op = 4'h6; // xor
expected_result = 16'hD3B3;
-
+
#5
$stop;
end