-
Notifications
You must be signed in to change notification settings - Fork 76
poke to Duplex Bundle IO #149
Comments
BTW, I didn't see |
Yes, you can peek an Input IO. I'm not sure what the right way to resolve this is. I think the larger theme is how to handle partial bundles, related issue #108. This might be a special case of that - where instead of an arbitrarily partial bundle, you have a bundle with all sub-fields of some direction. In the meantime, you can define your own methods that poke sub-fields. Decoupled uses this pattern and sidesteps the partial and mixed-directionality bundle problem - see DecoupledDriver.scala |
As for partial bundles connection, I think this actually has two issue to be done:
|
#151 provide a implementation to this. Will that a good approach to this? |
I generally prefer safer (but possibly more verbose semantics) over looser (but possibly faster), since debugging time is really expensive:
|
I exposed
I think this API is required for the conflict IO like Diplomatic
After the scheme is confirmed, I'll add test for my PRs, currently my test is located at |
#151 closed. |
In https://github.com/ucb-bar/chisel-testers2/blob/f25585375c6eb46a6db6f3f486badea259f73140/src/main/scala/chiseltest/package.scala#L17
tester2 poke signal is with the reflection of
ActualDirection
to avoid poking to aOutput
,However if poking to a duplex
Bundle
, e.g.DecoupledIO
, a Bundle literal cannot be used since it containInput
andOutput
.So in Bundle behavior of
DecoupledIO
, I think it could remove this restriction, ifActualDirection
isOutput
, just ignore this poking, return with out any action.The text was updated successfully, but these errors were encountered: