diff options
author | whitequark <whitequark@whitequark.org> | 2021-03-07 05:48:03 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-07 05:48:03 -0800 |
commit | 9bb839c613aff1d7658eac8ec46c3dcd3b220c5f (patch) | |
tree | 1a78ba758840c0d74ea2f1a3ac8b55778e7e4f4b /tests/verilog/localparam_no_default_2.ys | |
parent | 72ae15c77c34fe2306c3ac41c40521e9141b8cf0 (diff) | |
parent | d738b2c1272b02d8799e9feda83b1eae8ba10c07 (diff) | |
download | yosys-9bb839c613aff1d7658eac8ec46c3dcd3b220c5f.tar.gz yosys-9bb839c613aff1d7658eac8ec46c3dcd3b220c5f.tar.bz2 yosys-9bb839c613aff1d7658eac8ec46c3dcd3b220c5f.zip |
Merge pull request #2626 from zachjs/param-no-default
sv: support for parameters without default values
Diffstat (limited to 'tests/verilog/localparam_no_default_2.ys')
-rw-r--r-- | tests/verilog/localparam_no_default_2.ys | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/verilog/localparam_no_default_2.ys b/tests/verilog/localparam_no_default_2.ys new file mode 100644 index 000000000..b7b2622ad --- /dev/null +++ b/tests/verilog/localparam_no_default_2.ys @@ -0,0 +1,15 @@ +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 |