mirror of
https://github.com/verilator/verilator.git
synced 2026-09-04 16:40:12 +02:00
Support constant function calls for parameters.
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
|
||||
#include "V3Global.h"
|
||||
#include "V3Width.h"
|
||||
#include "V3Signed.h"
|
||||
#include "V3Number.h"
|
||||
#include "V3Const.h"
|
||||
|
||||
@@ -1197,6 +1198,13 @@ void V3Width::widthParams(AstNode* nodep) {
|
||||
WidthVisitor visitor (nodep, true);
|
||||
}
|
||||
|
||||
void V3Width::widthSignedIfNotAlready(AstNode* nodep) {
|
||||
if (!nodep->width()) {
|
||||
V3Width::widthParams(nodep);
|
||||
V3Signed::signedParams(nodep);
|
||||
}
|
||||
}
|
||||
|
||||
void V3Width::widthCommit(AstNode* nodep) {
|
||||
UINFO(2,__FUNCTION__<<": "<<endl);
|
||||
WidthCommitVisitor visitor (nodep);
|
||||
|
||||
Reference in New Issue
Block a user