From: Clifford Wolf Date: Sat, 14 Jun 2014 10:01:17 +0000 (+0200) Subject: Added realexpr.v test case X-Git-Tag: yosys-0.4~609 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=406f86a91ec0ed024037e27d1cbf2a1bc73777d9;p=yosys.git Added realexpr.v test case --- 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