Added realexpr.v test case
authorClifford Wolf <clifford@clifford.at>
Sat, 14 Jun 2014 10:01:17 +0000 (12:01 +0200)
committerClifford Wolf <clifford@clifford.at>
Sat, 14 Jun 2014 10:01:17 +0000 (12:01 +0200)
tests/simple/realexpr.v [new file with mode: 0644]

diff --git a/tests/simple/realexpr.v b/tests/simple/realexpr.v
new file mode 100644 (file)
index 0000000..47f8121
--- /dev/null
@@ -0,0 +1,13 @@
+module demo_001(y1, y2, y3, y4);
+       output [7:0] y1, y2, y3, y4;
+
+       localparam [7:0] p1 = 123.45;
+       localparam real p2 = 123.45;
+       localparam real p3 = 123;
+       localparam p4 = 123.45;
+
+       assign y1 = p1 + 0.2;
+       assign y2 = p2 + 0.2;
+       assign y3 = p3 + 0.2;
+       assign y4 = p4 + 0.2;
+endmodule