Added log_abort() api

This commit is contained in:
Clifford Wolf 2013-05-24 12:32:06 +02:00
parent 585fcace10
commit ccd2a93439
2 changed files with 3 additions and 1 deletions

View File

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

View File

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