diff options
Diffstat (limited to 'tests/arch/efinix/shifter.v')
-rw-r--r-- | tests/arch/efinix/shifter.v | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/arch/efinix/shifter.v b/tests/arch/efinix/shifter.v new file mode 100644 index 000000000..ce2c81dd2 --- /dev/null +++ b/tests/arch/efinix/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
|