lowRISC / lowRISC/opentitan

[i2c] Implement a digital 50ns Glitch/Spike Filter

Open
#22,280 3 comments 0 reactions 4 assignees View on GitHub

@rklier69 is already working on this.

Since Sep 15, 2026.

Component:RTL IP:i2c Type:Enhancement Type:FutureRelease
Dominant language
SystemVerilog
Stars
3.6k
Forks
1.1k
Avg merge
2d 22h
Merged PRs (30d)
141

Description

Description

I2C requires a fixed 50ns glitch suppression filter as part of its electrical specification (t_sp) for FM/FM+, which facilitates co-existence on a bus with I3C devices, among other things.
For EarlGrey, this is implemented as a static filter in the IO block (see this comment).

To improve compatibility and flexibility, we should consider implementing this filter digitally in the I2C block itself.
This could be a simple shift-register based design, which is parameterized or programmable to function at different input clock frequencies.
Any latency added by this filter should be factored into the logic which anticipates a Target-Receiver stretching the clock. If the filter is located within the I2C block, this can easily be incorporated into the implementation added in #21813 (comment).

Also see #17456, which discusses the general concern of noise on the I2C bus.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.