From de4f4dad3c69561711e878dbcbf3019e1a44e907 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 8 Jun 2015 14:49:34 +0200 Subject: [PATCH] Fixed "avail_parameters" handling in module clone/copy --- kernel/rtlil.cc | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.30.2