mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Internals: Move VLVF flags to common function. No functional change.
This commit is contained in:
+9
-4
@@ -275,15 +275,20 @@ string AstVar::vlEnumType() const {
|
||||
}
|
||||
|
||||
string AstVar::vlEnumDir() const {
|
||||
string out;
|
||||
if (isInout()) {
|
||||
return "VLVD_INOUT";
|
||||
out = "VLVD_INOUT";
|
||||
} else if (isInOnly()) {
|
||||
return "VLVD_IN";
|
||||
out = "VLVD_IN";
|
||||
} else if (isOutOnly()) {
|
||||
return "VLVD_OUT";
|
||||
out = "VLVD_OUT";
|
||||
} else {
|
||||
return "VLVD_NODIR";
|
||||
out = "VLVD_NODIR";
|
||||
}
|
||||
//
|
||||
if (isSigUserRWPublic()) out += "|VLVF_PUB_RW";
|
||||
else if (isSigUserRdPublic()) out += "|VLVF_PUB_RD";
|
||||
return out;
|
||||
}
|
||||
|
||||
string AstVar::cPubArgType(bool named, bool forReturn) const {
|
||||
|
||||
Reference in New Issue
Block a user