self._decoder.add(self.dramcore.bus, addr=dramcore_addr)
# map the DRAM onto Wishbone, XXX use stall but set classic below
+ # XXX WHEN ADDING ASYNCBRIDGE IT IS THE **BRIDGE** THAT MUST
+ # XXX HAVE THE STALL SIGNAL, AND THE **BRIDGE** THAT MUST HAVE
+ # XXX stall=stb&~ack APPLIED
drambone = gramWishbone(dramcore, features={'stall'})
if fpga == 'sim':
self.drambone = drambone
else:
self.drambone = drs(drambone)
+ # XXX ADD THE ASYNCBRIDGE NOT THE DRAMBONE.BUS, THEN
+ # XXX ADD DRAMBONE.BUS TO ASYNCBRIDGE
self._decoder.add(self.drambone.bus, addr=ddr_addr)
# additional SRAM at address if DRAM is not also at 0x0
m.submodules.dramcore = self.dramcore
m.submodules.drambone = drambone = self.drambone
# grrr, same problem with drambone: not WB4-pipe compliant
+ # XXX TAKE THIS OUT, REPLACE WITH ASYNCBRIDGE HAVING
+ # XXX asyncbridge.bus.stall.eq(asyncbridge.bus.cyc & ...)
comb += drambone.bus.stall.eq(drambone.bus.cyc & ~drambone.bus.ack)
# add hyperram module