mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 05:08:56 +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
17
tests/verilog/localparam_no_default_1.ys
Normal file
17
tests/verilog/localparam_no_default_1.ys
Normal file
|
@ -0,0 +1,17 @@
|
|||
logger -expect-no-warnings
|
||||
read_verilog -sv <<EOF
|
||||
module Module #(
|
||||
localparam X = 1
|
||||
);
|
||||
endmodule
|
||||
EOF
|
||||
|
||||
design -reset
|
||||
|
||||
logger -expect error "localparam initialization is missing!" 1
|
||||
read_verilog <<EOF
|
||||
module Module #(
|
||||
localparam X
|
||||
);
|
||||
endmodule
|
||||
EOF
|
Loading…
Add table
Add a link
Reference in a new issue