-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WishboneSRAM support for single-port RAM #100
Conversation
Well, reading these tests have been instructive :) I hadn't imagined we might actually expect to see the pre-write value on |
My reading of the Wishbone spec suggests there isn't any 'permission' to do so (and e.g. write cycles don't mention
|
Or phrased differently, a test that checks |
Yep, agreed — I've pushed a commit that removes those assertions accordingly. |
The current implementation does a simultaneous read and write when I think Otherwise, maybe it is possible to build a custom dual-port RAM out of SPRAM primitives ? Using similar ideas as this blog post. |
OK — thank you both! I think this PR is good to go, then. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #100 +/- ##
=======================================
Coverage 99.56% 99.56%
=======================================
Files 11 11
Lines 1601 1602 +1
Branches 387 387
=======================================
+ Hits 1594 1595 +1
Misses 4 4
Partials 3 3 ☔ View full report in Codecov by Sentry. |
Thank you! |
WishboneSRAM
can never service a read and a write request at the same time, so it's possible to improve support for SPRAM by disabling the read port when the write-enable is set.This stops interfering with SPRAM inference where the underlying
Memory
primitive could otherwise match one.