From a2aa6597173f16f40afb77696fec49aa023ca1ed Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Tue, 12 Apr 2022 13:34:22 +0200 Subject: [PATCH] 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 --- t-dll.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t-dll.cc b/t-dll.cc index 6278c014e..b141e6262 100644 --- a/t-dll.cc +++ b/t-dll.cc @@ -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,