forked from M-Labs/artiq
drtio: minor cleanup
This commit is contained in:
parent
4d73fb5bc9
commit
ec62eb9373
@ -128,7 +128,7 @@ class DRTIOSatellite(Module):
|
|||||||
|
|
||||||
|
|
||||||
class DRTIOMaster(Module):
|
class DRTIOMaster(Module):
|
||||||
def __init__(self, chanif, channel_count=1024, fine_ts_width=3):
|
def __init__(self, chanif, fine_ts_width=3):
|
||||||
self.submodules.link_layer = link_layer.LinkLayer(
|
self.submodules.link_layer = link_layer.LinkLayer(
|
||||||
chanif.encoder, chanif.decoders)
|
chanif.encoder, chanif.decoders)
|
||||||
self.comb += self.link_layer.rx_ready.eq(chanif.rx_ready)
|
self.comb += self.link_layer.rx_ready.eq(chanif.rx_ready)
|
||||||
@ -136,9 +136,8 @@ class DRTIOMaster(Module):
|
|||||||
self.submodules.link_stats = link_layer.LinkLayerStats(self.link_layer, "rtio_rx")
|
self.submodules.link_stats = link_layer.LinkLayerStats(self.link_layer, "rtio_rx")
|
||||||
self.submodules.rt_packet = rt_packet_master.RTPacketMaster(self.link_layer)
|
self.submodules.rt_packet = rt_packet_master.RTPacketMaster(self.link_layer)
|
||||||
self.submodules.rt_controller = rt_controller_master.RTController(
|
self.submodules.rt_controller = rt_controller_master.RTController(
|
||||||
self.rt_packet, channel_count, fine_ts_width)
|
self.rt_packet, fine_ts_width)
|
||||||
self.submodules.rt_manager = rt_controller_master.RTManager(self.rt_packet)
|
self.submodules.rt_manager = rt_controller_master.RTManager(self.rt_packet)
|
||||||
self.cri = self.rt_controller.cri
|
|
||||||
|
|
||||||
self.submodules.aux_controller = aux_controller.AuxController(
|
self.submodules.aux_controller = aux_controller.AuxController(
|
||||||
self.link_layer)
|
self.link_layer)
|
||||||
@ -149,3 +148,7 @@ class DRTIOMaster(Module):
|
|||||||
self.rt_controller.get_csrs() +
|
self.rt_controller.get_csrs() +
|
||||||
self.rt_manager.get_csrs() +
|
self.rt_manager.get_csrs() +
|
||||||
self.aux_controller.get_csrs())
|
self.aux_controller.get_csrs())
|
||||||
|
|
||||||
|
@property
|
||||||
|
def cri(self):
|
||||||
|
return self.rt_controller.cri
|
||||||
|
@ -45,7 +45,7 @@ class RTIOCounter(Module):
|
|||||||
|
|
||||||
|
|
||||||
class RTController(Module):
|
class RTController(Module):
|
||||||
def __init__(self, rt_packet, channel_count, fine_ts_width):
|
def __init__(self, rt_packet, fine_ts_width):
|
||||||
self.csrs = _CSRs()
|
self.csrs = _CSRs()
|
||||||
self.cri = cri.Interface()
|
self.cri = cri.Interface()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user