forked from M-Labs/artiq
rtio: remove unused clk_freq argument
This commit is contained in:
parent
5b50f5fe05
commit
fe6a5c42df
@ -300,8 +300,7 @@ class _KernelCSRs(AutoCSR):
|
|||||||
|
|
||||||
|
|
||||||
class RTIO(Module):
|
class RTIO(Module):
|
||||||
def __init__(self, channels, clk_freq, full_ts_width=63,
|
def __init__(self, channels, full_ts_width=63, guard_io_cycles=20):
|
||||||
guard_io_cycles=20):
|
|
||||||
data_width = max(rtlink.get_data_width(c.interface)
|
data_width = max(rtlink.get_data_width(c.interface)
|
||||||
for c in channels)
|
for c in channels)
|
||||||
address_width = max(rtlink.get_address_width(c.interface)
|
address_width = max(rtlink.get_address_width(c.interface)
|
||||||
|
@ -58,8 +58,7 @@ class _NIST_QCx(MiniSoC, AMPSoC):
|
|||||||
|
|
||||||
def add_rtio(self, rtio_channels):
|
def add_rtio(self, rtio_channels):
|
||||||
self.submodules.rtio_crg = _RTIOCRG(self.platform, self.crg.pll_sys)
|
self.submodules.rtio_crg = _RTIOCRG(self.platform, self.crg.pll_sys)
|
||||||
self.submodules.rtio = rtio.RTIO(rtio_channels,
|
self.submodules.rtio = rtio.RTIO(rtio_channels)
|
||||||
clk_freq=125000000)
|
|
||||||
self.add_constant("RTIO_FINE_TS_WIDTH", self.rtio.fine_ts_width)
|
self.add_constant("RTIO_FINE_TS_WIDTH", self.rtio.fine_ts_width)
|
||||||
self.add_constant("DDS_RTIO_CLK_RATIO", 8 >> self.rtio.fine_ts_width)
|
self.add_constant("DDS_RTIO_CLK_RATIO", 8 >> self.rtio.fine_ts_width)
|
||||||
self.submodules.rtio_moninj = rtio.MonInj(rtio_channels)
|
self.submodules.rtio_moninj = rtio.MonInj(rtio_channels)
|
||||||
|
@ -128,8 +128,7 @@ trce -v 12 -fastpaths -tsi {build_name}.tsi -o {build_name}.twr {build_name}.ncd
|
|||||||
|
|
||||||
# RTIO core
|
# RTIO core
|
||||||
self.submodules.rtio_crg = _RTIOCRG(platform, self.clk_freq)
|
self.submodules.rtio_crg = _RTIOCRG(platform, self.clk_freq)
|
||||||
self.submodules.rtio = rtio.RTIO(rtio_channels,
|
self.submodules.rtio = rtio.RTIO(rtio_channels)
|
||||||
clk_freq=125000000)
|
|
||||||
self.add_constant("RTIO_FINE_TS_WIDTH", self.rtio.fine_ts_width)
|
self.add_constant("RTIO_FINE_TS_WIDTH", self.rtio.fine_ts_width)
|
||||||
self.add_constant("DDS_RTIO_CLK_RATIO", 8 >> self.rtio.fine_ts_width)
|
self.add_constant("DDS_RTIO_CLK_RATIO", 8 >> self.rtio.fine_ts_width)
|
||||||
self.submodules.rtio_moninj = rtio.MonInj(rtio_channels)
|
self.submodules.rtio_moninj = rtio.MonInj(rtio_channels)
|
||||||
|
Loading…
Reference in New Issue
Block a user