diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-08-20 11:38:21 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2019-08-20 11:38:21 +0200 |
commit | 6ffb910d12a93e64182b52a58e69386851f2d595 (patch) | |
tree | 0415c9ed9649dc29d1a2e749bfeb71ec4c37da48 | |
parent | c25c1e742ba6e0ac481eb625e9e5eca84fc92632 (diff) | |
download | yosys-6ffb910d12a93e64182b52a58e69386851f2d595.tar.gz yosys-6ffb910d12a93e64182b52a58e69386851f2d595.tar.bz2 yosys-6ffb910d12a93e64182b52a58e69386851f2d595.zip |
Add test case for real parameters
Signed-off-by: Clifford Wolf <clifford@clifford.at>
-rw-r--r-- | tests/simple/realexpr.v | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/simple/realexpr.v b/tests/simple/realexpr.v index 5b756e6be..74ed8faa5 100644 --- a/tests/simple/realexpr.v +++ b/tests/simple/realexpr.v @@ -1,4 +1,3 @@ - module demo_001(y1, y2, y3, y4); output [7:0] y1, y2, y3, y4; @@ -22,3 +21,13 @@ module demo_002(y0, y1, y2, y3); assign y3 = 1 ? -1 : 'd0; endmodule +module demo_003(output A, B); + parameter real p = 0; + assign A = (p==1.0); + assign B = (p!="1.000000"); +endmodule + +module demo_004(output A, B, C, D); + demo_003 #(1.0) demo_real (A, B); + demo_003 #(1) demo_int (C, D); +endmodule |