forked from M-Labs/artiq
gateware: add cri_con CSRs to all DMA-capable targets
This commit is contained in:
parent
5e3aef45dc
commit
674bf82f3a
|
@ -100,9 +100,9 @@ _ams101_dac = [
|
|||
|
||||
class _NIST_Ions(MiniSoC, AMPSoC):
|
||||
mem_map = {
|
||||
"cri_con": 0x10000000,
|
||||
"rtio": 0x20000000,
|
||||
"rtio_dma": 0x30000000,
|
||||
"cri_con": 0x50000000,
|
||||
"mailbox": 0x70000000
|
||||
}
|
||||
mem_map.update(MiniSoC.mem_map)
|
||||
|
|
|
@ -21,6 +21,7 @@ from artiq import __version__ as artiq_version
|
|||
|
||||
class Master(MiniSoC, AMPSoC):
|
||||
mem_map = {
|
||||
"cri_con": 0x10000000,
|
||||
"rtio": 0x20000000,
|
||||
"rtio_dma": 0x30000000,
|
||||
"drtio_aux": 0x50000000,
|
||||
|
@ -114,6 +115,7 @@ class Master(MiniSoC, AMPSoC):
|
|||
self.submodules.cri_con = rtio.CRIInterconnectShared(
|
||||
[self.rtio.cri, self.rtio_dma.cri],
|
||||
[self.rtio_core.cri, self.drtio.cri])
|
||||
self.register_kernel_cpu_csrdevice("cri_con")
|
||||
|
||||
|
||||
def main():
|
||||
|
|
|
@ -156,6 +156,7 @@ class AD9154(Module, AutoCSR):
|
|||
|
||||
class Phaser(MiniSoC, AMPSoC):
|
||||
mem_map = {
|
||||
"cri_con": 0x10000000,
|
||||
"rtio": 0x20000000,
|
||||
# "rtio_dma": 0x30000000,
|
||||
"mailbox": 0x70000000,
|
||||
|
@ -240,6 +241,7 @@ class Phaser(MiniSoC, AMPSoC):
|
|||
self.submodules.cri_con = rtio.CRIInterconnectShared(
|
||||
[self.rtio.cri], # , self.rtio_dma.cri],
|
||||
[self.rtio_core.cri])
|
||||
self.register_kernel_cpu_csrdevice("cri_con")
|
||||
self.submodules.rtio_moninj = rtio.MonInj(rtio_channels)
|
||||
self.csr_devices.append("rtio_moninj")
|
||||
self.submodules.rtio_analyzer = rtio.Analyzer(self.rtio_core.cri,
|
||||
|
|
Loading…
Reference in New Issue