aboutsummaryrefslogtreecommitdiffstats
path: root/backends/firrtl/test.v
diff options
context:
space:
mode:
Diffstat (limited to 'backends/firrtl/test.v')
-rw-r--r--backends/firrtl/test.v4
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/firrtl/test.v b/backends/firrtl/test.v
new file mode 100644
index 000000000..3e294e3d5
--- /dev/null
+++ b/backends/firrtl/test.v
@@ -0,0 +1,4 @@
+module test(input clk, signed input [7:0] a, b, x, output [15:0] s, d, y, z, u, q);
+ assign s = a+{b[6:2], 2'b1}, d = a-b, y = x, z[7:0] = s+d, z[15:8] = s-d;
+ always @(posedge clk) q <= s ^ d ^ x;
+endmodule