3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-09-13 05:01:29 +00:00

Added $past, $stable, $rose, $fell SVA functions

This commit is contained in:
Clifford Wolf 2016-09-19 01:30:07 +02:00
parent d009cdd6ee
commit aaa99c35bd
2 changed files with 141 additions and 2 deletions

View file

@ -765,6 +765,16 @@ void AstNode::detectSignWidthWorker(int &width_hint, bool &sign_hint, bool *foun
}
break;
}
if (str == "\\$past") {
if (GetSize(children) > 0) {
sub_width_hint = 0;
sub_sign_hint = true;
children.at(0)->detectSignWidthWorker(sub_width_hint, sub_sign_hint);
width_hint = max(width_hint, sub_width_hint);
sign_hint = false;
}
break;
}
/* fall through */
// everything should have been handled above -> print error if not.