DynamicGroup
chisel3.choice.`package`.DynamicGroup
Dynamic option group with runtime-customizable name.
Unlike static Group objects, DynamicGroup allows the group name to be specified at instantiation time. This is useful for parameterized designs where the same group structure is reused with different names.
Value parameters
- customName
-
The runtime name for this group
Attributes
- Example
-
class Opt(name: String)(implicit sourceInfo: SourceInfo) extends DynamicGroup(name) { object Fast extends DynamicCase object Slow extends DynamicCase } // Use with ModuleChoice class MyModule extends Module { val opt = new Opt("OptMyModule") val impl = ModuleChoice(new DefaultImpl)( Seq( opt.Fast -> new FastImpl, opt.Slow -> new SlowImpl ) ) } - Source
- package.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article