veryl
veryl copied to clipboard
Veryl compiler accepts using a period to access the variant of an `enum`
I noticed that Veryl compiler accepts using a period instead of double colon to access the variant of an enum
, which it shouldn't.
package foobar_pkg {
enum FooBar: logic {
Foo,
Bar,
}
}
module module_a (
i: input foobar_pkg::FooBar,
o: output logic ,
) {
import foobar_pkg::FooBar;
assign o = case i {
FooBar.Foo: 1'b0,
FooBar.Bar: 1'b1,
default : 1'bz,
};
}