chisel3.util.addAttribute
Helper Object for applying Attribute Annotations
Attributes
-
Source
-
AttributeAnnotation.scala
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
-
Self type
-
Members list
Add attribute annotation to a chisel target.
Add attribute annotation to a chisel target.
== Example ==
import chisel3._
import chisel3.util.addAttribute
class AttributeExample extends Module {
val io = IO(new Bundle {
val input = Input(UInt(8.W))
val output = Output(UInt(8.W))
})
val reg = RegNext(io.input)
addAttribute(reg, "synthesis translate_off")
io.output := reg
}
Value parameters
-
annoString
-
attribute string to add to target.
-
target
-
Chisel target. Must be Reg, Wire, or RawModule type.
Attributes
-
Source
-
AttributeAnnotation.scala