Fixed "avail_parameters" handling in module clone/copy
authorClifford Wolf <clifford@clifford.at>
Mon, 8 Jun 2015 12:49:34 +0000 (14:49 +0200)
committerClifford Wolf <clifford@clifford.at>
Mon, 8 Jun 2015 12:49:34 +0000 (14:49 +0200)
kernel/rtlil.cc

index bf0fd1c89d8f707285d841d0cba60a7fcaeff2f5..373a3a5e6c98700b1c0c7469f64c56fa004a2e51 100644 (file)
@@ -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);