Skip to content

Commit 03d13d3

Browse files
committedDec 12, 2016
phaser: dma/drtio changes
1 parent c63fa46 commit 03d13d3

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed
 

‎artiq/gateware/targets/phaser.py

+15-8
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,11 @@ def __init__(self, platform):
151151

152152
class Phaser(MiniSoC, AMPSoC):
153153
mem_map = {
154-
"timer_kernel": 0x10000000, # (shadow @0x90000000)
155-
"rtio": 0x20000000, # (shadow @0xa0000000)
156-
"i2c": 0x30000000, # (shadow @0xb0000000)
157-
"mailbox": 0x70000000, # (shadow @0xf0000000)
154+
"timer_kernel": 0x10000000,
155+
"rtio": 0x20000000,
156+
# "rtio_dma": 0x30000000,
157+
"i2c": 0x30000000,
158+
"mailbox": 0x70000000,
158159
"ad9154": 0x50000000,
159160
}
160161
mem_map.update(MiniSoC.mem_map)
@@ -219,6 +220,7 @@ def __init__(self, cpu_type="or1k", **kwargs):
219220
for sawg in self.ad9154.sawgs
220221
for phy in sawg.phys)
221222

223+
self.config["HAS_RTIO_LOG"] = None
222224
self.config["RTIO_LOG_CHANNEL"] = len(rtio_channels)
223225
rtio_channels.append(rtio.LogChannel())
224226

@@ -227,20 +229,25 @@ def __init__(self, cpu_type="or1k", **kwargs):
227229
self.config["DDS_CHANNELS_PER_BUS"] = 1
228230
self.config["DDS_AD9914"] = None
229231
self.config["DDS_ONEHOT_SEL"] = None
230-
self.config["DDS_RTIO_CLK_RATIO"] = 8
231232

232233
self.submodules.rtio_crg = _PhaserCRG(
233234
platform, self.ad9154.jesd.cd_jesd.clk)
234235
self.csr_devices.append("rtio_crg")
235-
self.submodules.rtio = rtio.RTIO(rtio_channels)
236+
self.submodules.rtio_core = rtio.Core(rtio_channels)
237+
self.csr_devices.append("rtio_core")
238+
self.submodules.rtio = rtio.KernelInitiator()
239+
# self.submodules.rtio_dma = rtio.DMA(self.get_native_sdram_if())
236240
self.register_kernel_cpu_csrdevice("rtio")
241+
# self.register_kernel_cpu_csrdevice("rtio_dma")
242+
self.submodules.cri_con = rtio.CRIInterconnectShared(
243+
[self.rtio.cri], # , self.rtio_dma.cri],
244+
[self.rtio_core.cri])
237245
self.submodules.rtio_moninj = rtio.MonInj(rtio_channels)
238246
self.csr_devices.append("rtio_moninj")
239247
self.submodules.rtio_analyzer = rtio.Analyzer(
240-
self.rtio, self.get_native_sdram_if())
248+
self.rtio, self.rtio_core.cri.counter, self.get_native_sdram_if())
241249
self.csr_devices.append("rtio_analyzer")
242250

243-
self.config["RTIO_FINE_TS_WIDTH"] = self.rtio.fine_ts_width
244251
platform.add_false_path_constraints(
245252
self.crg.cd_sys.clk, self.rtio_crg.cd_rtio.clk)
246253
platform.add_false_path_constraints(

0 commit comments

Comments
 (0)
Please sign in to comment.