From: Clifford Wolf Date: Tue, 26 Mar 2013 18:27:49 +0000 (+0100) Subject: Create nice errors when calling RTLIL::Module::derive() of base class X-Git-Tag: yosys-0.2.0~677 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=041c06bd9d446ca9c53dbd6185e55067f336d998;p=yosys.git Create nice errors when calling RTLIL::Module::derive() of base class --- diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index c97e2e455..95114469e 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -18,6 +18,7 @@ */ #include "kernel/rtlil.h" +#include "kernel/log.h" #include #include @@ -257,13 +258,12 @@ RTLIL::Module::~Module() RTLIL::IdString RTLIL::Module::derive(RTLIL::Design*, std::map) { - 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) { - 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)