Support inline random variable control (#5317)

Signed-off-by: Krzysztof Bieganski <[email protected]>
This commit is contained in:
Krzysztof Bieganski
2024-08-13 14:20:31 -04:00
committed by GitHub
parent 124e3463fc
commit 6cb0a41857
20 changed files with 758 additions and 85 deletions
+3 -1
View File
@@ -1664,7 +1664,9 @@ V3TaskConnects V3Task::taskConnects(AstNodeFTaskRef* nodep, AstNode* taskStmtsp,
reorganize = true;
}
} else { // By pin number
if (ppinnum >= tpinnum) {
if (nodep->taskp()->prettyName() == "randomize") {
// Arguments to randomize() are special, will be handled in V3Randomize
} else if (ppinnum >= tpinnum) {
if (sformatp) {
tconnects.emplace_back(sformatp, static_cast<AstArg*>(nullptr));
tconnects[ppinnum].second = argp;