create enum values of given type and names
create enum values of given type and names
the type of node to create
a list of symbols
a map of symbols to a node created
val states = Enum(UInt(), List('s1, 's2, 's3)) val state = Reg(UInt(), init = states('s1))
create enum values of given type and names
create enum values of given type and names
the type of node to create
any number of Symbols to create as an Enum
a map from Symbol to the node created
create n enum values of given type for n <= 22
create n enum values of given type for n <= 22
the type of node to create
the number of nodes to create
val s1 :: s2 :: s3 :: Nil = Enum(UInt(), 3)
The 22 state size limitation is due to the maximum Scala tuple size of 22 (other methods avoid this limitation)
,When declaring vals the first character must be lower case, ie S1 is illegal
An object for creating C style Enums