mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-03 01:13:47 +02:00
Check that the behavior for all sorts of base types for enums is correctly implemented. Both for valid as well as invalid base types. Signed-off-by: Lars-Peter Clausen <[email protected]>
19 lines
278 B
Verilog
19 lines
278 B
Verilog
// Check that it is possible to declare an enum type with the time type as the
|
|
// base type.
|
|
|
|
module test;
|
|
|
|
enum time {
|
|
A
|
|
} E;
|
|
|
|
initial begin
|
|
if ($bits(E) == 64) begin
|
|
$display("PASSED");
|
|
end else begin
|
|
$display("FAILED");
|
|
end
|
|
end
|
|
|
|
endmodule
|