Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kestrel Collaboration
Kestrel LiteX
migen
Commits
ef436a1e
Commit
ef436a1e
authored
12 years ago
by
Sebastien Bourdeauducq
Browse files
Options
Download
Email Patches
Plain Diff
bus/asmibus: add get_slots, fix get_fragment
parent
945d655d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
migen/bus/asmibus.py
migen/bus/asmibus.py
+4
-1
No files found.
migen/bus/asmibus.py
View file @
ef436a1e
...
@@ -134,7 +134,10 @@ class Hub:
...
@@ -134,7 +134,10 @@ class Hub:
port
.
finalize
(
tagbits
,
base
)
port
.
finalize
(
tagbits
,
base
)
base
+=
len
(
port
.
slots
)
base
+=
len
(
port
.
slots
)
def
get_slots
(
self
):
return
sum
([
port
.
slots
for
port
in
self
.
ports
],
[])
def
get_fragment
(
self
):
def
get_fragment
(
self
):
if
not
self
.
finalized
:
if
not
self
.
finalized
:
raise
FinalizeError
raise
FinalizeError
return
sum
([
port
.
get_fragment
()
for
port
in
self
.
ports
])
return
sum
([
port
.
get_fragment
()
for
port
in
self
.
ports
]
,
Fragment
()
)
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment