diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-05-24 14:38:36 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-05-24 14:38:36 +0200 |
commit | ed0e2f7a6fe721175b80f6397c9abd5c0080033f (patch) | |
tree | a5a367e973094bdfa7398103824346163ad43e82 /kernel/celltypes.h | |
parent | ccd2a93439098e333a2f41ae6d1ce3d92222f167 (diff) | |
download | yosys-ed0e2f7a6fe721175b80f6397c9abd5c0080033f.tar.gz yosys-ed0e2f7a6fe721175b80f6397c9abd5c0080033f.tar.bz2 yosys-ed0e2f7a6fe721175b80f6397c9abd5c0080033f.zip |
Added log_assert() api
Diffstat (limited to 'kernel/celltypes.h')
-rw-r--r-- | kernel/celltypes.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/celltypes.h b/kernel/celltypes.h index bf5ef4b38..cc84251c3 100644 --- a/kernel/celltypes.h +++ b/kernel/celltypes.h @@ -24,6 +24,9 @@ #include <string> #include <stdlib.h> +#include <kernel/rtlil.h> +#include <kernel/log.h> + struct CellTypes { std::set<std::string> cell_types; @@ -225,8 +228,7 @@ struct CellTypes if (type == "$_XOR_") return const_xor(arg1, arg2, false, false, 1); - assert(!"Called CellType.eval() with unsupported cell type!"); - abort(); + log_abort(); } static RTLIL::Const eval(RTLIL::Cell *cell, const RTLIL::Const &arg1, const RTLIL::Const &arg2) |