@@ -133,8 +133,6 @@ def add_rtio(self, rtio_channels):
133
133
self .submodules .rtio_crg = _RTIOCRG (self .platform , self .crg .cd_sys .clk )
134
134
self .submodules .rtio = rtio .RTIO (rtio_channels )
135
135
self .config ["RTIO_FINE_TS_WIDTH" ] = self .rtio .fine_ts_width
136
- assert self .rtio .fine_ts_width <= 3
137
- self .config ["DDS_RTIO_CLK_RATIO" ] = 8 >> self .rtio .fine_ts_width
138
136
self .submodules .rtio_moninj = rtio .MonInj (rtio_channels )
139
137
140
138
if isinstance (self .platform .toolchain , XilinxVivadoToolchain ):
@@ -198,6 +196,8 @@ def __init__(self, cpu_type="or1k", **kwargs):
198
196
rtio_channels .append (rtio .Channel .from_phy (phy ))
199
197
200
198
self .config ["RTIO_DDS_CHANNEL" ] = len (rtio_channels )
199
+ assert self .rtio .fine_ts_width <= 3
200
+ self .config ["DDS_RTIO_CLK_RATIO" ] = 8 >> self .rtio .fine_ts_width
201
201
self .config ["DDS_CHANNEL_COUNT" ] = 8
202
202
self .config ["DDS_AD9858" ] = True
203
203
phy = dds .AD9858 (platform .request ("dds" ), 8 )
@@ -246,6 +246,8 @@ def __init__(self, cpu_type="or1k", **kwargs):
246
246
rtio_channels .append (rtio .Channel .from_phy (phy ))
247
247
248
248
self .config ["RTIO_DDS_CHANNEL" ] = len (rtio_channels )
249
+ assert self .rtio .fine_ts_width <= 3
250
+ self .config ["DDS_RTIO_CLK_RATIO" ] = 24 >> self .rtio .fine_ts_width
249
251
self .config ["DDS_CHANNEL_COUNT" ] = 11
250
252
self .config ["DDS_AD9914" ] = True
251
253
self .config ["DDS_ONEHOT_SEL" ] = True
0 commit comments