Closed fdxmw closed 5 months ago
Attention: Patch coverage is 97.57282%
with 5 lines
in your changes are missing coverage. Please review.
Project coverage is 91.26%. Comparing base (
c8a7d75
) to head (55044e2
).
Files | Patch % | Lines |
---|---|---|
pyrtl/wire.py | 94.25% | 5 Missing :warning: |
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This
Byte
@wire_struct
can be instantiated two ways, by providing a value for each component:or by providing a value for the entire
Byte
:After construction,
byte
is aWireVector
representing the entireByte
(all 8 wires),byte.high
is aWireVector
representing the 4 most significant bits, andbyte.low
is aWireVector
representing the 4 least significant bits.wire_matrix
is similar to@wire_struct
, except that the slices are numbered instead of named, and all slices must share the same type:@wire_struct
andwire_matrix
can be composed arbitrarily, so you can have a two-dimensional array ofBytes
for example.@wire_struct
andwire_matrix
have additional features. See the documentation for details.