mirror of https://github.com/YosysHQ/yosys.git
Add test case for real parameters
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
c25c1e742b
commit
6ffb910d12
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue