mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-28 16:53:45 +02:00
Consider non-overridable parameters as local for the backend
We differentiate between local and non-overridable parameters in the frontend to be able to generate better error messages. For the backend they should both be considered local parameters. Signed-off-by: Lars-Peter Clausen <[email protected]>
This commit is contained in:
@@ -507,7 +507,8 @@ void dll_target::make_scope_parameters(ivl_scope_t scop, const NetScope*net)
|
||||
assert(idx < scop->param.size());
|
||||
ivl_parameter_t cur_par = &scop->param[idx];
|
||||
cur_par->basename = cur_pit->first;
|
||||
cur_par->local = cur_pit->second.local_flag;
|
||||
cur_par->local = cur_pit->second.local_flag ||
|
||||
!cur_pit->second.overridable;
|
||||
calculate_param_range(cur_pit->second,
|
||||
cur_pit->second.ivl_type,
|
||||
cur_par->msb, cur_par->lsb,
|
||||
|
||||
Reference in New Issue
Block a user