mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 17:15:33 +00:00
sta: assume input-less modules to be constant drivers and don't warn ...
if no timing arcs. Also handle undefined modules with a warning
This commit is contained in:
parent
9cf172b7a9
commit
e6642d2928
3 changed files with 53 additions and 3 deletions
|
@ -40,4 +40,42 @@ endmodule
|
|||
EOT
|
||||
|
||||
sta
|
||||
|
||||
|
||||
design -reset
|
||||
read_verilog -specify <<EOT
|
||||
module buffer(input i, output o);
|
||||
specify
|
||||
(i => o) = 10;
|
||||
endspecify
|
||||
endmodule
|
||||
|
||||
module top(input i, output o, p);
|
||||
buffer b(.i(i), .o(o));
|
||||
const0 c(.o(p));
|
||||
endmodule
|
||||
EOT
|
||||
|
||||
logger -expect warning "Cell type 'const0' not recognised! Ignoring\." 1
|
||||
sta
|
||||
|
||||
|
||||
design -reset
|
||||
read_verilog -specify <<EOT
|
||||
module buffer(input i, output o);
|
||||
specify
|
||||
(i => o) = 10;
|
||||
endspecify
|
||||
endmodule
|
||||
module const0(output o);
|
||||
endmodule
|
||||
|
||||
module top(input i, output o, p);
|
||||
buffer b(.i(i), .o(o));
|
||||
const0 c(.o(p));
|
||||
endmodule
|
||||
EOT
|
||||
|
||||
sta
|
||||
|
||||
logger -expect-no-warnings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue