We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
like this
// Element width typedef enum logic [2:0] { EW8 = 3'b000, EW16 = 3'b001, EW32 = 3'b010, EW64 = 3'b011, EW128 = 3'b100, EW256 = 3'b101, EW512 = 3'b110, EW1024 = 3'b111 } vew_e;
// Vector type register typedef struct packed { logic vill; logic vma; logic vta; vew_e vsew; } vtype_t;
module top ( );
vtype_t a; vew_e b;
initial begin a = 6'h0; b = a.vsew; b = a.vsew.next(); end;
endmodule;
Thanks,
The text was updated successfully, but these errors were encountered:
Thanks for filing this request! I have started work on adding support for this feature. It may be a week or so before it is ready.
Sorry, something went wrong.
No branches or pull requests
like this
// Element width
typedef enum logic [2:0] {
EW8 = 3'b000,
EW16 = 3'b001,
EW32 = 3'b010,
EW64 = 3'b011,
EW128 = 3'b100,
EW256 = 3'b101,
EW512 = 3'b110,
EW1024 = 3'b111
} vew_e;
// Vector type register
typedef struct packed {
logic vill;
logic vma;
logic vta;
vew_e vsew;
} vtype_t;
module top
(
);
vtype_t a;
vew_e b;
initial begin
a = 6'h0;
b = a.vsew;
b = a.vsew.next();
end;
endmodule;
Thanks,
The text was updated successfully, but these errors were encountered: