projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bd7d5c
)
Added realexpr.v test case
author
Clifford Wolf
<clifford@clifford.at>
Sat, 14 Jun 2014 10:01:17 +0000
(12:01 +0200)
committer
Clifford Wolf
<clifford@clifford.at>
Sat, 14 Jun 2014 10:01:17 +0000
(12:01 +0200)
tests/simple/realexpr.v
[new file with mode: 0644]
patch
|
blob
diff --git a/tests/simple/realexpr.v
b/tests/simple/realexpr.v
new file mode 100644
(file)
index 0000000..
47f8121
--- /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