Skip to content

Commit

Permalink
gateware: fix mailbox.
Browse files Browse the repository at this point in the history
whitequark committed Nov 1, 2016
1 parent 898a716 commit 18ae8d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions artiq/gateware/amp/mailbox.py
Original file line number Diff line number Diff line change
@@ -12,10 +12,10 @@ def __init__(self, size=1):
values = Array([Signal(32) for _ in range(size)])
for i in self.i1, self.i2:
self.sync += [
i.dat_r.eq(values[i.adr]),
i.dat_r.eq(values[i.adr & 0xff]),
i.ack.eq(0),
If(i.cyc & i.stb & ~i.ack,
i.ack.eq(1),
If(i.we, values[i.adr].eq(i.dat_w))
If(i.we, values[i.adr & 0xff].eq(i.dat_w))
)
]

0 comments on commit 18ae8d5

Please sign in to comment.