Skip to content

Add proper control of SDA drive mode - #124

Closed
glaserf wants to merge 7 commits into
chipsalliance:v1p5from
glaserf:sda-od-pp
Closed

glaserf wants to merge 7 commits into
chipsalliance:v1p5from
glaserf:sda-od-pp

Conversation

@glaserf

@glaserf glaserf commented Feb 2, 2026

Copy link
Copy Markdown
Collaborator

This PR implements dynamic control of the drive mode of the SDA pad for the various parts of the I3C protocol, including the handoff special cases with mid-bit changes.

Furthermore, the drive mode signal is now taken directly from a register without any further logic.

This commit reworks mainly bus_tx_flow, but also a few other components
to a lesser degree, to source sda_o directly from the MSB of the sda
shift register without any combinational logic or muxing.

The only exception left is the IBI handler, which still features a
direct sda output which is ANDed into the former one described above.

Signed-off-by: Florian Glaser <glaserf@lowrisc.org>
This commit removes the ANDing of the direct sda_o of ibi.sv into the
main sda_o of the I3C standby controller by moving the IBI init
functionality into bus_tx_flow. It also makes sure that no deadlock can
occur in the IBI module by only activating it, when all conditions for
requesting an IBI are met.

Signed-off-by: Florian Glaser <glaserf@lowrisc.org>
Removes all dv infra related to bus_tx and all references to it.
Furthermore, fixes block-level dv in relation to bus_tx_flow.

Signed-off-by: Florian Glaser <glaserf@lowrisc.org>
Refactor the interface to no longer encode the request types as one-hot
but valid/value pair. Also, prepare for many more request types other
than Bit/Byte/IBI.

Signed-off-by: Florian Glaser <glaserf@lowrisc.org>
As per Sect. 5.1.2.3.2 of the spec; start to drive SDA low in PushPull
mode on SCL rising edge of the ACK bit in case the target sees an ACK by
the controller.

Signed-off-by: Florian Glaser <glaserf@lowrisc.org>
@glaserf

glaserf commented Feb 2, 2026

Copy link
Copy Markdown
Collaborator Author

Replaced by #125.

@glaserf glaserf closed this Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant