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 Objecttrait Matchableclass Any
- Self type
-
dontTouch.type
Members list
In this article