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 <lars@metafoo.de>
This commit is contained in:
Lars-Peter Clausen 2022-04-12 13:34:22 +02:00
parent b0b0b84815
commit a2aa659717
1 changed files with 2 additions and 1 deletions

View File

@ -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,