projects
/
nmigen-soc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
whitespace cleanup
[nmigen-soc.git]
/
nmigen_soc
/
scheduler.py
diff --git
a/nmigen_soc/scheduler.py
b/nmigen_soc/scheduler.py
index 779e95c893ba0c4f53992ebc88005dff488f240c..588238abecd547c2b01982a31726b137749cda85 100644
(file)
--- a/
nmigen_soc/scheduler.py
+++ b/
nmigen_soc/scheduler.py
@@
-15,11
+15,14
@@
class RoundRobin(Elaboratable):
Attributes
----------
request : Signal(n)
Attributes
----------
request : Signal(n)
- Signal where a '1' on the i-th bit represents an incoming request from the i-th device.
+ Signal where a '1' on the i-th bit represents an incoming request
+ from the i-th device.
grant : Signal(range(n))
grant : Signal(range(n))
- Signal that equals to the index of the device which is currently granted access.
+ Signal that equals to the index of the device which is currently
+ granted access.
stb : Signal()
stb : Signal()
- Strobe signal to enable granting access to the next device requesting. Externally driven.
+ Strobe signal to enable granting access to the next device
+ requesting. Externally driven.
"""
def __init__(self, n):
self.n = n
"""
def __init__(self, n):
self.n = n
@@
-41,4
+44,4
@@
class RoundRobin(Elaboratable):
with m.If(self.request[t]):
m.d.sync += self.grant.eq(t)
with m.If(self.request[t]):
m.d.sync += self.grant.eq(t)
- return m
\ No newline at end of file
+ return m