mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Support #1step delay as statement (#6671)
This commit is contained in:
@@ -891,6 +891,10 @@ class TimingControlVisitor final : public VNVisitor {
|
||||
new AstConst{flp, AstConst::Unsized64{},
|
||||
static_cast<uint64_t>(timescaleFactor)}};
|
||||
}
|
||||
} else if (constp->num().is1Step()) {
|
||||
VL_DO_DANGLING(valuep->deleteTree(), valuep);
|
||||
valuep = new AstConst{flp, AstConst::Unsized64{}, 1};
|
||||
valuep->dtypeSetBitSized(64, VSigning::UNSIGNED);
|
||||
}
|
||||
// Replace self with a 'co_await dlySched.delay(<valuep>)'
|
||||
AstCMethodHard* const delayMethodp = new AstCMethodHard{
|
||||
|
||||
Reference in New Issue
Block a user