mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Fix always processes ignoring $finish (#5971).
This commit is contained in:
+8
-2
@@ -435,8 +435,14 @@ void orderSequentially(AstCFunc* funcp, const LogicByScope& lbs) {
|
||||
if (VN_IS(procp, Always)) {
|
||||
subFuncp->slow(false);
|
||||
FileLine* const flp = procp->fileline();
|
||||
bodyp
|
||||
= new AstWhile{flp, new AstConst{flp, AstConst::BitTrue{}}, bodyp};
|
||||
bodyp = new AstWhile{
|
||||
flp,
|
||||
// If we change to use exceptions to handle finish/stop,
|
||||
// this can get removed
|
||||
new AstCExpr{flp,
|
||||
"VL_LIKELY(!vlSymsp->_vm_contextp__->gotFinish())", 1,
|
||||
true},
|
||||
bodyp};
|
||||
}
|
||||
}
|
||||
subFuncp->addStmtsp(bodyp);
|
||||
|
||||
Reference in New Issue
Block a user