Skip to content

Identifying reg type in UHDM model #3893

@hs-apotell

Description

@hs-apotell

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions