[gpio] synchronizers needed?
At the moment there is no notion of synchronization on the GPIO input pins (nor in the spec). There is selectable debounce logic which has some sense of synchronization, but isn't quite the same. I can imagine SW might want as fast of sampling as possible in some cases, so perhaps we simply ensure that synchronization is achieved if debounce is enabled. But either way, we need to address this in the specification (and eventually in the design and test bench)
@eunchan @gaurangchitroda
I have more questions on the debounce logic. If noise filter is enabled, it checks for stable value for a fixed 16 clock cycles, which at 100MHz clock is 160ns, and at 24MHz clock is 666.72ns. Are these conservatively long enough to filter out the electrical disturbances regardless of the clock frequency we use? Do we see a need to make it programmable instead?
i vote for more programmability as well. Maybe with something similar to a timer prescaler so this can fit into different designs without concern on what the frequency really is.
On Mon, Jun 17, 2019 at 11:49 AM sriyerg [email protected] wrote:
I have more questions on the debounce logic. If noise filter is enabled, it checks for stable value for a fixed 16 clock cycles, which at 100MHz clock is 160ns, and at 24MHz clock is 666.72ns. Are these conservatively long enough to filter out the electrical disturbances regardless of the clock frequency we use? Do we see a need to make it programmable instead?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lowRISC/opentitan/issues/45?email_source=notifications&email_token=AAH2RSXF3QLVPDBSKTGOSRDP27MFHA5CNFSM4HUPDLAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX4DMRY#issuecomment-502806087, or mute the thread https://github.com/notifications/unsubscribe-auth/AAH2RSSVVZ5NCB4ZGJD4BWDP27MFHANCNFSM4HUPDLAA .
@eunchan should we close this as GPIO functionality is stable at this time? @gaurangchitroda
Agree. On Thu, Oct 24, 2019 at 10:58:41PM -0700, Scott Johnson wrote:
@eunchan should we close this as GPIO functionality is stable at this time? @gaurangchitroda
-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/lowRISC/opentitan/issues/45#issuecomment-546213274
Yeah, GPIO is pretty stable. @sriyerg can share his view.
Closing this as decided to keep as is. Leaving it without synchronizers gives fastest response time; programmability would be nice but we can consider the programmability of the glitch detector as sufficient.