mirror of https://github.com/YosysHQ/yosys.git
Bugfix in "miter -assert" handling of assumptions
This commit is contained in:
parent
6425d34e73
commit
15fb56697a
|
@ -338,12 +338,12 @@ void create_miter_assert(struct Pass *that, std::vector<std::string> args, RTLIL
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Wire *assume_q = module->addWire(NEW_ID);
|
Wire *assume_q = module->addWire(NEW_ID);
|
||||||
assume_q->attributes["\\init"] = State::S1;
|
assume_q->attributes["\\init"] = State::S0;
|
||||||
assume_signals.append(assume_q);
|
assume_signals.append(assume_q);
|
||||||
|
|
||||||
SigSpec assume_nok = module->ReduceOr(NEW_ID, assume_signals);
|
SigSpec assume_nok = module->ReduceOr(NEW_ID, assume_signals);
|
||||||
SigSpec assume_ok = module->Not(NEW_ID, assume_nok);
|
SigSpec assume_ok = module->Not(NEW_ID, assume_nok);
|
||||||
module->addFf(NEW_ID, assume_ok, assume_q);
|
module->addFf(NEW_ID, assume_nok, assume_q);
|
||||||
|
|
||||||
SigSpec assert_fail = module->ReduceOr(NEW_ID, assert_signals);
|
SigSpec assert_fail = module->ReduceOr(NEW_ID, assert_signals);
|
||||||
module->addAnd(NEW_ID, assert_fail, assume_ok, trigger);
|
module->addAnd(NEW_ID, assert_fail, assume_ok, trigger);
|
||||||
|
|
Loading…
Reference in New Issue