-
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
wishbone.bus: add Arbiter. #9
Conversation
jfng
commented
Feb 10, 2020
Codecov Report
@@ Coverage Diff @@
## master #9 +/- ##
==========================================
+ Coverage 99.59% 99.63% +0.04%
==========================================
Files 4 4
Lines 493 552 +59
Branches 107 127 +20
==========================================
+ Hits 491 550 +59
Misses 1 1
Partials 1 1
Continue to review full report at Codecov.
|
caf30f3
to
3b9dc6e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logic looks good to me overall, with one minor change I request.
I didn't try and exhaustively check every possible state; we should make sure that happens, but by adding more formal checks rather than manual work. For now that's fine though.
nmigen_soc/wishbone/bus.py
Outdated
def __init__(self, *, addr_width, data_width, granularity=None, features=frozenset()): | ||
self.bus = Interface(addr_width=addr_width, data_width=data_width, | ||
granularity=granularity, features=features) | ||
self._itors = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: I seem to read itor
as a shortening of iterator
each time, when in context of Python. Could you use something else, e.g. intr
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
intr
makes me think of "interrupt", but it should be unambigous in the context of a Wishbone arbiter. Let's go with that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Me too, but I couldn't come up with anything better. It's just a private member anyway.
3b9dc6e
to
87ab698
Compare
Thanks for the review ! |