Skip to content

Commit

Permalink
Merge pull request #3957 from YosysHQ/ver_def_param
Browse files Browse the repository at this point in the history
Verific: add default parameters to modules
  • Loading branch information
mmicko authored Sep 27, 2023
2 parents d510a5f + f193ebd commit b35ea8f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion frontends/verific/verific.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1275,9 +1275,16 @@ void VerificImporter::import_netlist(RTLIL::Design *design, Netlist *nl, std::ma
log("Importing module %s.\n", RTLIL::id2cstr(module->name));
}
import_attributes(module->attributes, nl, nl);
const char *param_name ;
const char *param_value ;
MapIter mi;
FOREACH_PARAMETER_OF_NETLIST(nl, mi, param_name, param_value) {
module->avail_parameters(RTLIL::escape_id(param_name));
module->parameter_default_values[RTLIL::escape_id(param_name)] = verific_const(param_value);
}

SetIter si;
MapIter mi, mi2;
MapIter mi2;
Port *port;
PortBus *portbus;
Net *net;
Expand Down

0 comments on commit b35ea8f

Please sign in to comment.