prefix

chisel3.experimental.prefix
object 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
Supertypes
class Object
trait Matchable
class Any
Self type
prefix.type

Members list

Value members

Concrete methods

def apply[T](name: HasId)(f: => T): T

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
def apply[T](name: String)(f: => T): T

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