addAttribute

chisel3.util.addAttribute
object addAttribute

Helper Object for applying Attribute Annotations

Attributes

Source
AttributeAnnotation.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(target: Data, annoString: String): Unit

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