ChiselEnum
Attributes
- Source
- ChiselEnum.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Type members
Classlikes
Attributes
- Companion
- object
- Source
- ChiselEnum.scala
- Supertypes
-
class EnumTypeclass Elementclass Datatrait InstanceIdclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- ChiselEnum.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Type.type
Value members
Concrete methods
All Enum values
All Enum names
All Enum values with their names
Attributes
- Source
- ChiselEnum.scala
Return the Enum value of which the name exactly matches the specified String. If @name does not match a valid Enum, fail
Return the Enum value of which the name exactly matches the specified String. If @name does not match a valid Enum, fail
Attributes
- Source
- ChiselEnum.scala
Cast an UInt to the type of this Enum
Cast an UInt to the type of this Enum
Value parameters
- n
-
the UInt to cast
Attributes
- Returns
-
the equivalent Enum to the value of the cast UInt
- Note
-
will give a Chisel elaboration time warning if the argument could hit invalid states
- Source
- ChiselEnum.scala
Return all Enum (value, name) combinations in a string, one per line. Intended for parsing by external tools, e.g. sim environment, or as gtkwave text filter
Return all Enum (value, name) combinations in a string, one per line. Intended for parsing by external tools, e.g. sim environment, or as gtkwave text filter
Attributes
- Source
- ChiselEnum.scala
Attributes
- Source
- ChiselEnum.scala
Attributes
- Source
- ChiselEnum.scala
Attributes
- Source
- ChiselEnum.scala
Safely cast an UInt to the type of this Enum
Safely cast an UInt to the type of this Enum
Value parameters
- n
-
the UInt to cast
Attributes
- Returns
-
the equivalent Enum to the value of the cast UInt and a Bool indicating if the Enum is valid
- Source
- ChiselEnum.scala
Print Enum type name, followed by with all Enum values with their names to a string like this: Opcodes(add=0, sub=1, mul=2, div=3)
Print Enum type name, followed by with all Enum values with their names to a string like this: Opcodes(add=0, sub=1, mul=2, div=3)
Attributes
- Definition Classes
-
Any
- Source
- ChiselEnum.scala
Inherited methods
Attributes
- Inherited from:
- ChiselEnumIntf (hidden)
- Source
- ChiselEnumIntf.scala
Attributes
- Inherited from:
- ChiselEnumIntf (hidden)
- Source
- ChiselEnumIntf.scala