Skip to content

Instantly share code, notes, and snippets.

@tomverbeure
Created August 19, 2018 00:22
Show Gist options
  • Save tomverbeure/c73a7bac5468b306798a524138bede40 to your computer and use it in GitHub Desktop.
Save tomverbeure/c73a7bac5468b306798a524138bede40 to your computer and use it in GitHub Desktop.
Reset some signals in a bundle
case class MyBundle(config: MyConfig) extends Bundle {
val valid = Bool
val data = UInt(32 bits)
}
...
val bundle = MyBundle(config)
bundle.valid := valid && ready
bundle.data := other_data
io.d2e.bundle := RegNext(bundle)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment