From d738b2c1272b02d8799e9feda83b1eae8ba10c07 Mon Sep 17 00:00:00 2001 From: Zachary Snow Date: Tue, 2 Mar 2021 10:43:53 -0500 Subject: 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 --- tests/verilog/localparam_no_default_1.ys | 17 +++++++++ tests/verilog/localparam_no_default_2.ys | 15 ++++++++ tests/verilog/param_no_default.sv | 52 ++++++++++++++++++++++++++++ tests/verilog/param_no_default.ys | 7 ++++ tests/verilog/param_no_default_not_svmode.ys | 26 ++++++++++++++ tests/verilog/param_no_default_unbound_1.ys | 12 +++++++ tests/verilog/param_no_default_unbound_2.ys | 12 +++++++ tests/verilog/param_no_default_unbound_3.ys | 12 +++++++ tests/verilog/param_no_default_unbound_4.ys | 12 +++++++ tests/verilog/param_no_default_unbound_5.ys | 12 +++++++ 10 files changed, 177 insertions(+) create mode 100644 tests/verilog/localparam_no_default_1.ys create mode 100644 tests/verilog/localparam_no_default_2.ys create mode 100644 tests/verilog/param_no_default.sv create mode 100644 tests/verilog/param_no_default.ys create mode 100644 tests/verilog/param_no_default_not_svmode.ys create mode 100644 tests/verilog/param_no_default_unbound_1.ys create mode 100644 tests/verilog/param_no_default_unbound_2.ys create mode 100644 tests/verilog/param_no_default_unbound_3.ys create mode 100644 tests/verilog/param_no_default_unbound_4.ys create mode 100644 tests/verilog/param_no_default_unbound_5.ys (limited to 'tests') diff --git a/tests/verilog/localparam_no_default_1.ys b/tests/verilog/localparam_no_default_1.ys new file mode 100644 index 000000000..426a48a1c --- /dev/null +++ b/tests/verilog/localparam_no_default_1.ys @@ -0,0 +1,17 @@ +logger -expect-no-warnings +read_verilog -sv <