Skip to content

Commit

Permalink
gateware/rtio/analyzer: fix bus write
Browse files Browse the repository at this point in the history
sbourdeauducq committed Dec 18, 2015
1 parent f431add commit 59a3ea4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions artiq/gateware/rtio/analyzer.py
Original file line number Diff line number Diff line change
@@ -187,11 +187,8 @@ def __init__(self, membus):
)
fsm.act("WRITE",
self.busy.status.eq(1),

membus.cyc.eq(1),
membus.stb.eq(1),
membus.we.eq(1),
membus.sel.eq(2**len(membus.sel)-1),

If(membus.ack,
If(membus.adr == self.last_address.storage,
@@ -204,6 +201,11 @@ def __init__(self, membus):
NextState("IDLE")
)
)
self.comb += [
membus.we.eq(1),
membus.sel.eq(2**len(membus.sel)-1),
membus.dat_w.eq(self.sink.data)
]


class Analyzer(Module, AutoCSR):

0 comments on commit 59a3ea4

Please sign in to comment.