In reply to dave_59:
In reply to mlsxdx:
This has nothing to do with being an anonymous type. The implicit data type of any enum is a 2-state int. The default initial value of an enum is the default initial value of its data type, which is 0 because that default type is an int. .
I see. Is there any way to skip time 0 nxt_st changes trigger always, especially if 0 is defined a non-initial state.
always @(nxt_st) begin
$display("%0t: 'h%0h",$realtime, nxt_st);
// The unname enum 0 will trigger the logic below, how can I filter out the sim time 0 here?
if(nxt_st != 'h40) begin
//statement
end
end