aboutsummaryrefslogtreecommitdiffstats
path: root/tests/anlogic/shifter.v
diff options
context:
space:
mode:
Diffstat (limited to 'tests/anlogic/shifter.v')
-rw-r--r--tests/anlogic/shifter.v16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/anlogic/shifter.v b/tests/anlogic/shifter.v
new file mode 100644
index 000000000..04ae49d83
--- /dev/null
+++ b/tests/anlogic/shifter.v
@@ -0,0 +1,16 @@
+module top (
+out,
+clk,
+in
+);
+ output [7:0] out;
+ input signed clk, in;
+ reg signed [7:0] out = 0;
+
+ always @(posedge clk)
+ begin
+ out <= out >> 1;
+ out[7] <= in;
+ end
+
+endmodule