diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-03-26 19:27:49 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-03-26 19:27:49 +0100 |
commit | 041c06bd9d446ca9c53dbd6185e55067f336d998 (patch) | |
tree | 22eadc44e89d5023ef8d2d16e0cef72a3f92926c /kernel/rtlil.cc | |
parent | 6a231816fa87f767eda2837faea838a57722e481 (diff) |
Create nice errors when calling RTLIL::Module::derive() of base class
Diffstat (limited to 'kernel/rtlil.cc')
-rw-r--r-- | kernel/rtlil.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index c97e2e45..95114469 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -18,6 +18,7 @@ */ #include "kernel/rtlil.h" +#include "kernel/log.h" #include <assert.h> #include <algorithm> @@ -257,13 +258,12 @@ RTLIL::Module::~Module() RTLIL::IdString RTLIL::Module::derive(RTLIL::Design*, std::map<RTLIL::IdString, RTLIL::Const>) { - assert(!"Called derive() from module base class."); - abort(); + log_error("Module `%s' is used with parameters but is not parametric!\n", id2cstr(name)); } void RTLIL::Module::update_auto_wires(std::map<RTLIL::IdString, int>) { - assert(!"Called update_auto_wires() from module base class."); + log_error("Module `%s' has automatic wires bu no HDL backend to handle it!\n", id2cstr(name)); } size_t RTLIL::Module::count_id(RTLIL::IdString id) |