geom_settings=ddrmodule.geom_settings,
timing_settings=ddrmodule.timing_settings,
clk_freq=clk_freq)
- self.dramcore = drs(dramcore)
- self._decoder.add(self.dramcore.bus, addr=dramcore_addr)
+ self._decoder.add(dramcore.bus, addr=dramcore_addr)
# map the DRAM onto Wishbone
- self.drambone = drs(gramWishbone(self.dramcore))
- self._decoder.add(self.drambone.bus, addr=ddr_addr)
+ drambone = gramWishbone(dramcore)
+ self._decoder.add(drambone.bus, addr=ddr_addr)
+
+ # for simulation do not use a separate clock domain (yet)
+ if fpga == 'sim':
+ self.dramcore = dramcore
+ self.drambone = drambone
+ else:
+ self.dramcore = drs(dramcore)
+ self.drambone = drs(drambone)
self.memory_map = self._decoder.bus.memory_map