3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-28 19:35:53 +00:00

Added log_assert() api

This commit is contained in:
Clifford Wolf 2013-05-24 14:38:36 +02:00
parent ccd2a93439
commit ed0e2f7a6f
3 changed files with 6 additions and 4 deletions

View file

@ -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)