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
f061b25a
Commit
f061b25a
authored
12 years ago
by
Sebastien Bourdeauducq
Browse files
Options
Download
Email Patches
Plain Diff
bus/wishbone/Tap: remove ack feature
parent
5964df62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
20 deletions
+3
-20
migen/bus/wishbone.py
migen/bus/wishbone.py
+3
-20
No files found.
migen/bus/wishbone.py
View file @
f061b25a
...
...
@@ -130,16 +130,8 @@ class InterconnectShared:
return
self
.
_arbiter
.
get_fragment
()
+
self
.
_decoder
.
get_fragment
()
class
Tap
:
def
__init__
(
self
,
bus
=
None
,
handler
=
print
):
# If bus is None, create one and act as a normal slave.
# If we pass an existing one, dump the transactions
# without interfering with the bus.
if
bus
is
None
:
self
.
bus
=
Interface
()
self
.
ack
=
True
else
:
self
.
bus
=
bus
self
.
ack
=
False
def
__init__
(
self
,
bus
,
handler
=
print
):
self
.
bus
=
bus
self
.
handler
=
handler
def
do_simulation
(
self
,
s
):
...
...
@@ -155,16 +147,7 @@ class Tap:
self
.
handler
(
transaction
)
def
get_fragment
(
self
):
if
self
.
ack
:
sync
=
[
self
.
bus
.
ack
.
eq
(
0
),
If
(
self
.
bus
.
cyc
&
self
.
bus
.
stb
&
~
self
.
bus
.
ack
,
self
.
bus
.
ack
.
eq
(
1
)
)
]
else
:
sync
=
[]
return
Fragment
(
sync
=
sync
,
sim
=
[
self
.
do_simulation
])
return
Fragment
(
sim
=
[
self
.
do_simulation
])
class
Initiator
:
def
__init__
(
self
,
generator
):
...
...
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