You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module example;
typedef enum logic[1:0] { ZERO=0, ONE, TWO, THREE } enumed_t;
enumed_t v_enumed;
always_ff @(posedge aclk)
begin: input_ctrl_p
if (!aresetn) begin
v_enumed <= ZERO;
end else begin
case(v_enumed)
ZERO: begin
v_enumed <= ONE;
end
ONE: begin
v_enumed <= TWO;
end
TWO: begin
v_enumed <= THREE;
end
THREE: begin
THREE <= ZERO;
end
endcase
end
end
endmodule
The text was updated successfully, but these errors were encountered:
Author Name: Danilo Ramos
Original Redmine Issue: 1426 from https://www.veripool.org
Original Assignee: Wilson Snyder (@wsnyder)
Hi Wilson.
When declaring an enum as:
typedef enum logic[1:0] { ZERO=0, ONE, TWO, THREE } enumed_t; // Not working
GTKwave does not recognize/loads an enumed_t variable as an enum.
However, when replacing logic[2:0] by int, it works.
typedef enum int { ZERO=0, ONE, TWO, THREE } enumed_t; // OK!
Platform: msys2 (Mingw-w64 64 bit), windows 10
Verilator: Verilator 4.012 2019-03-23 rev UNKNOWN_REV
GTKwave: v3.3.100
Example:
The text was updated successfully, but these errors were encountered: