forked from M-Labs/artiq
sayma: add sysref sampler to DRTIO master
This commit is contained in:
parent
07bcdfd91e
commit
b28ff587c5
|
@ -309,6 +309,12 @@ class Master(MiniSoC, AMPSoC, RTMCommon):
|
||||||
self.submodules += phy
|
self.submodules += phy
|
||||||
rtio_channels.append(rtio.Channel.from_phy(phy))
|
rtio_channels.append(rtio.Channel.from_phy(phy))
|
||||||
|
|
||||||
|
self.submodules.ad9154_crg = jesd204_tools.UltrascaleCRG(platform)
|
||||||
|
self.csr_devices.append("ad9154_crg")
|
||||||
|
platform.add_false_path_constraints(
|
||||||
|
self.crg.cd_sys.clk,
|
||||||
|
self.ad9154_crg.cd_jesd.clk)
|
||||||
|
|
||||||
self.submodules.rtio_moninj = rtio.MonInj(rtio_channels)
|
self.submodules.rtio_moninj = rtio.MonInj(rtio_channels)
|
||||||
self.csr_devices.append("rtio_moninj")
|
self.csr_devices.append("rtio_moninj")
|
||||||
|
|
||||||
|
@ -325,6 +331,10 @@ class Master(MiniSoC, AMPSoC, RTMCommon):
|
||||||
[self.rtio_core.cri] + drtio_cri)
|
[self.rtio_core.cri] + drtio_cri)
|
||||||
self.register_kernel_cpu_csrdevice("cri_con")
|
self.register_kernel_cpu_csrdevice("cri_con")
|
||||||
|
|
||||||
|
self.submodules.sysref_sampler = jesd204_tools.SysrefSampler(
|
||||||
|
self.rtio_core.coarse_ts, self.ad9154_crg.jref)
|
||||||
|
self.csr_devices.append("sysref_sampler")
|
||||||
|
|
||||||
|
|
||||||
class Satellite(BaseSoC, RTMCommon):
|
class Satellite(BaseSoC, RTMCommon):
|
||||||
mem_map = {
|
mem_map = {
|
||||||
|
|
Loading…
Reference in New Issue