You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importchisel3._importchisel3.experimental.BundleLiterals._classMyBundleextendsBundle {
vala=UInt(8.W)
valb=Bool()
}
classExampleextendsMultiIOModule {
valin=IO(Input(newMyBundle))
valen=IO(Input(Bool()))
valout=IO(Output(newMyBundle))
// It works if you wrap the Bundle lit in WireInitvalr=RegInit((newMyBundle).Lit(_.b ->true.B))
when (en) {
r := in
}
out := r
}
What is the current behavior?
chisel3.internal.ChiselException: operand is not visible from the current module
What is the expected behavior?
This should work, and does if you wrap the Bundle Literal in WireInit
What is the use case for changing the behavior?
Fix a bug
The text was updated successfully, but these errors were encountered:
Type of issue: bug report
Impact: no functional change
Development Phase: request
Other information
Using Chisel v3.4.2
If the current behavior is a bug, please provide the steps to reproduce the problem:
https://scastie.scala-lang.org/4CDkXkNHQpKV7ItnPRtcvw
What is the current behavior?
What is the expected behavior?
This should work, and does if you wrap the Bundle Literal in
WireInit
What is the use case for changing the behavior?
Fix a bug
The text was updated successfully, but these errors were encountered: