mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-27 10:55:51 +00:00
sv: support for parameters without default values
- Modules with a parameter without a default value will be automatically deferred until the hierarchy pass - Allows for parameters without defaults as module items, rather than just int the `parameter_port_list`, despite being forbidden in the LRM - Check for parameters without defaults that haven't been overriden - Add location info to parameter/localparam declarations
This commit is contained in:
parent
375af199ef
commit
d738b2c127
12 changed files with 225 additions and 5 deletions
12
tests/verilog/param_no_default_unbound_5.ys
Normal file
12
tests/verilog/param_no_default_unbound_5.ys
Normal file
|
@ -0,0 +1,12 @@
|
|||
read_verilog -sv <<EOF
|
||||
module Example #(
|
||||
parameter X, Y = 2
|
||||
);
|
||||
endmodule
|
||||
module top;
|
||||
Example #(.Y(1)) e();
|
||||
endmodule
|
||||
EOF
|
||||
|
||||
logger -expect error "Parameter `\\X' has no default value and has not been overridden!" 1
|
||||
hierarchy -top top
|
Loading…
Add table
Add a link
Reference in a new issue