AffectsChiselPrefix

chisel3.experimental.`package`.AffectsChiselPrefix

Generate prefixes from values of this type in the Chisel compiler plugin

Users can mixin this trait to tell the Chisel compiler plugin to include the names of vals of this type when generating prefixes for naming Data and Mem instances. This is generally useful whenever creating a class that contains Data, Mem, or Module instances but does not itself extend Data or Module.

Attributes

See also

See the compiler plugin documentation for more information on this process.

Example
import chisel3._
import chisel3.experimental.AffectsChiselPrefix
class MyModule extends Module {
 // Note: This contains a Data but is not a named component itself
 class NotAData extends AffectsChiselPrefix {
   val value = Wire(Bool())
 }
 // Name with AffectsChiselPrefix:    "nonData_value"
 // Name without AffectsChiselPrefix: "value"
 val nonData = new NotAData
 // Name with AffectsChiselPrefix:    "nonData2_value"
 // Name without AffectsChiselPrefix: "value_1"
 val nonData2 = new NotAData
}
Source
package.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Counter
In this article