Created
August 19, 2018 00:22
-
-
Save tomverbeure/c73a7bac5468b306798a524138bede40 to your computer and use it in GitHub Desktop.
Reset some signals in a bundle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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