Skip to content

Conversation

JingJerYen
Copy link

I initially added an example for APB, but later found that the test didn’t work correctly due to several bugs. So I rewrote it to fix those issues.

Fix details:

  1. Strobe signals were not handled properly — only consecutive 0xFF values were considered, but the APB spec does not guarantee they are contiguous.

  2. A deadlock occurred due to a missing generic payload free.

  3. Removed unused variables, redundant code, and replaced wait(1_ps) with wait(SC_ZERO_TIME).

The waveform below shows the correct behavior after applying this patch.

apb

1. Handle strobe signals correctly
2. Free the payload after usage to avoid deadlock
3. Remove redundant code
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