summaryrefslogtreecommitdiff
path: root/shifter_tb.v
diff options
context:
space:
mode:
Diffstat (limited to 'shifter_tb.v')
-rw-r--r--shifter_tb.v12
1 files changed, 6 insertions, 6 deletions
diff --git a/shifter_tb.v b/shifter_tb.v
index 7d28915..278ac9a 100644
--- a/shifter_tb.v
+++ b/shifter_tb.v
@@ -7,7 +7,7 @@ module shifter_tb ();
reg [1:0] extend;
wire [15:0] result;
reg [15:0] expected_result;
-
+
// xxxxxxxxxxxxxxxx1111101000001010xxxxxxxxxxxxxxxx
initial begin
@@ -68,15 +68,15 @@ module shifter_tb ();
dir = 1'b0;
by = 16'hE;
expected_result = 16'h7FFF;
-
+
#2
by = 16'h10;
expected_result = 16'hFFFF;
-
+
#2
dir = 1'b1;
expected_result = 16'h0000;
-
+
#2
dir = 1'b0;
by = 16'h1000;
@@ -85,11 +85,11 @@ module shifter_tb ();
#2
dir = 1'b1;
expected_result = 16'h0000;
-
+
#5
$stop;
end
-
+
shifter shifter_inst (
.v(v),
.by(by),