From: Clifford Wolf Date: Mon, 8 Jun 2015 12:49:34 +0000 (+0200) Subject: Fixed "avail_parameters" handling in module clone/copy X-Git-Tag: yosys-0.6~271 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=de4f4dad3c69561711e878dbcbf3019e1a44e907;p=yosys.git Fixed "avail_parameters" handling in module clone/copy --- diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index bf0fd1c89..373a3a5e6 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -1158,6 +1158,8 @@ void RTLIL::Module::cloneInto(RTLIL::Module *new_mod) const log_assert(new_mod->refcount_wires_ == 0); log_assert(new_mod->refcount_cells_ == 0); + new_mod->avail_parameters = avail_parameters; + for (auto &conn : connections_) new_mod->connect(conn);