There doesn't seem to be a way to identify reg type in UHDM model. The type is modeled as logic_typespec but there's nothing in the model to differentiate it with regular logic type.
module top ();
reg a = 0;
endmodule
|
case VObjectType::paIntVec_TypeLogic: |
|
case VObjectType::paIntVec_TypeReg: { |
|
// 6.8 Variable declarations |
|
// Other net and variable types can be explicitly declared as signed. |
|
isSigned = false; |
|
if (sign && (fC->Type(sign) == VObjectType::paSigning_Signed)) { |
|
isSigned = true; |
|
} |
|
logic_typespec* var = s.MakeLogic_typespec(); |
|
var->Ranges(ranges); |
|
var->VpiSigned(isSigned); |
|
fC->populateCoreMembers(type, isSigned ? sign : type, var); |
|
result = var; |
|
break; |
|
} |
There doesn't seem to be a way to identify
regtype in UHDM model. The type is modeled aslogic_typespecbut there's nothing in the model to differentiate it with regularlogictype.Surelog/src/DesignCompile/CompileType.cpp
Lines 1094 to 1108 in d5f0e26