mirror of
https://github.com/verilator/verilator.git
synced 2026-09-06 00:47:26 +02:00
Support byte, shortint, int, longint in variables, parameters and functions.
Internals: function/var sizing and signing now comes via dtypep() Internals: cleanup code that widths parameters (again)
This commit is contained in:
+2
-3
@@ -98,14 +98,12 @@ string AstVar::verilogKwd() const {
|
||||
return "input";
|
||||
} else if (isOutput()) {
|
||||
return "output";
|
||||
} else if (isInteger()) {
|
||||
return "integer";
|
||||
} else if (isTristate()) {
|
||||
return "tri";
|
||||
} else if (varType()==AstVarType::WIRE) {
|
||||
return "wire";
|
||||
} else {
|
||||
return "reg";
|
||||
return dtypep()->name();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -327,6 +325,7 @@ void AstAttrOf::dump(ostream& str) {
|
||||
void AstBasicDType::dump(ostream& str) {
|
||||
this->AstNode::dump(str);
|
||||
str<<" ["<<keyword().ascii()<<"]";
|
||||
if (implicit()) str<<" [IMPLICIT]";
|
||||
}
|
||||
void AstCast::dump(ostream& str) {
|
||||
this->AstNode::dump(str);
|
||||
|
||||
Reference in New Issue
Block a user