2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

gateware/rtio/analyzer: fix bus write

This commit is contained in:
Sebastien Bourdeauducq 2015-12-18 15:44:20 +08:00
parent f431add20e
commit 59a3ea4f15

View File

@ -187,11 +187,8 @@ class DMAWriter(Module, AutoCSR):
)
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 @@ class DMAWriter(Module, AutoCSR):
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):