aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-06-14 12:01:17 +0200
committerClifford Wolf <clifford@clifford.at>2014-06-14 12:01:17 +0200
commit406f86a91ec0ed024037e27d1cbf2a1bc73777d9 (patch)
treefa2c9e740348d3e6c27fbe09d0096aefc9ffffa2 /tests
parent9bd7d5c46856f25fd7befcdfe20198fd8eb59ccd (diff)
downloadyosys-406f86a91ec0ed024037e27d1cbf2a1bc73777d9.tar.gz
yosys-406f86a91ec0ed024037e27d1cbf2a1bc73777d9.tar.bz2
yosys-406f86a91ec0ed024037e27d1cbf2a1bc73777d9.zip
Added realexpr.v test case
Diffstat (limited to 'tests')
-rw-r--r--tests/simple/realexpr.v13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/simple/realexpr.v b/tests/simple/realexpr.v
new file mode 100644
index 000000000..47f81214a
--- /dev/null
+++ b/tests/simple/realexpr.v
@@ -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