-
Notifications
You must be signed in to change notification settings - Fork 79
Identifying reg type in UHDM model #3893
Copy link
Copy link
Open
Description
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
Surelog/src/DesignCompile/CompileType.cpp
Lines 1094 to 1108 in d5f0e26
| 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; | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels