mirror of https://github.com/YosysHQ/yosys.git
Added log_abort() api
This commit is contained in:
parent
585fcace10
commit
ccd2a93439
|
@ -48,4 +48,6 @@ void log_flush();
|
|||
|
||||
const char *log_signal(const RTLIL::SigSpec &sig, bool autoint = true);
|
||||
|
||||
#define log_abort() log_error("Abort in %s:%d.\n", __FILE__, __LINE__)
|
||||
|
||||
#endif
|
||||
|
|
|
@ -66,7 +66,7 @@ static bool handle_dff(RTLIL::Module *mod, RTLIL::Cell *dff)
|
|||
val_rv = dff->parameters["\\ARST_VALUE"];
|
||||
}
|
||||
else
|
||||
log_error("abort.");
|
||||
log_abort();
|
||||
|
||||
assign_map.apply(sig_d);
|
||||
assign_map.apply(sig_q);
|
||||
|
|
Loading…
Reference in New Issue