@@ -151,10 +151,11 @@ def __init__(self, platform):
151
151
152
152
class Phaser (MiniSoC , AMPSoC ):
153
153
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 ,
158
159
"ad9154" : 0x50000000 ,
159
160
}
160
161
mem_map .update (MiniSoC .mem_map )
@@ -219,6 +220,7 @@ def __init__(self, cpu_type="or1k", **kwargs):
219
220
for sawg in self .ad9154 .sawgs
220
221
for phy in sawg .phys )
221
222
223
+ self .config ["HAS_RTIO_LOG" ] = None
222
224
self .config ["RTIO_LOG_CHANNEL" ] = len (rtio_channels )
223
225
rtio_channels .append (rtio .LogChannel ())
224
226
@@ -227,20 +229,25 @@ def __init__(self, cpu_type="or1k", **kwargs):
227
229
self .config ["DDS_CHANNELS_PER_BUS" ] = 1
228
230
self .config ["DDS_AD9914" ] = None
229
231
self .config ["DDS_ONEHOT_SEL" ] = None
230
- self .config ["DDS_RTIO_CLK_RATIO" ] = 8
231
232
232
233
self .submodules .rtio_crg = _PhaserCRG (
233
234
platform , self .ad9154 .jesd .cd_jesd .clk )
234
235
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())
236
240
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 ])
237
245
self .submodules .rtio_moninj = rtio .MonInj (rtio_channels )
238
246
self .csr_devices .append ("rtio_moninj" )
239
247
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 ())
241
249
self .csr_devices .append ("rtio_analyzer" )
242
250
243
- self .config ["RTIO_FINE_TS_WIDTH" ] = self .rtio .fine_ts_width
244
251
platform .add_false_path_constraints (
245
252
self .crg .cd_sys .clk , self .rtio_crg .cd_rtio .clk )
246
253
platform .add_false_path_constraints (
0 commit comments