chisel3.experimental.prefix
Use to add a prefix to any components generated in the provided scope.
Attributes
Example
val x1 = prefix("first") {
// Anything generated here will be prefixed with "first"
}
val x2 = prefix(mysignal) {
// Anything generated here will be prefixed with the name of mysignal
}
Source
prefix.scala
Graph
Reset zoom Hide graph Show graph
Supertypes
class Object
trait Matchable
class Any
Self type
Members list
Use to add a prefix to any components generated in the provided scope.
Use to add a prefix to any components generated in the provided scope.
The prefix is the name of the provided HasId, which may not be known yet.
Type parameters
T
The return type of the provided function
Value parameters
f
a function for which any generated components are given the prefix
name
The signal/instance whose name will be the prefix
Attributes
Returns
The return value of the provided function
Source
prefix.scala
Use to add a prefix to any components generated in the provided scope.
Use to add a prefix to any components generated in the provided scope.
The prefix is a string, which must be known when this function is used.
Type parameters
T
The return type of the provided function
Value parameters
f
a function for which any generated components are given the prefix
name
The name which will be the prefix (and empty name is ignored)
Attributes
Returns
The return value of the provided function
Source
prefix.scala