dontTouch

chisel3.dontTouch
object dontTouch

Marks that a signal's leaves are an optimization barrier to Chisel and the FIRRTL compiler. This has the effect of guaranteeing that a signal will not be removed.

Attributes

Note

Because this is an optimization barrier, constants will not be propagated through a signal's leaves marked as dontTouch.

Example
class MyModule extends Module {
 val io = IO(new Bundle {
   val a = Input(UInt(32.W))
   val b = Output(UInt(32.W))
 })
 io.b := io.a
 val dead = io.a +% 1.U // normally dead would be pruned by DCE
 dontTouch(dead) // Marking it as such will preserve it
}
Source
dontTouch.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
dontTouch.type

Members list

Value members

Concrete methods

def apply[T <: Data](data: T): T

Mark a signal's leaves as an optimization barrier to Chisel and FIRRTL.

Mark a signal's leaves as an optimization barrier to Chisel and FIRRTL.

Value parameters

data

The signal to be marked

Attributes

Returns

Unmodified signal data

Note

Requires the argument to be bound to hardware

Source
dontTouch.scala