forked from M-Labs/artiq
kasli_generic,eem: print RTIO channels in hex like artiq_ddb_template
This commit is contained in:
parent
f4dd7e5e29
commit
991c686d72
|
@ -24,7 +24,7 @@ class _EEM:
|
|||
def add_extension(cls, target, eem, *args, **kwargs):
|
||||
name = cls.__name__
|
||||
target.platform.add_extension(cls.io(eem, *args, **kwargs))
|
||||
print("{} (EEM{}) starting at RTIO channel {}"
|
||||
print("{} (EEM{}) starting at RTIO channel 0x{:06x}"
|
||||
.format(name, eem, len(target.rtio_channels)))
|
||||
|
||||
|
||||
|
|
|
@ -133,7 +133,7 @@ class GenericStandalone(StandaloneBase):
|
|||
self.rtio_channels = []
|
||||
add_peripherals(self, description["peripherals"])
|
||||
for i in (1, 2):
|
||||
print("SFP LED at RTIO channel {}".format(len(self.rtio_channels)))
|
||||
print("SFP LED at RTIO channel 0x{:06x}".format(len(self.rtio_channels)))
|
||||
sfp_ctl = self.platform.request("sfp_ctl", i)
|
||||
phy = ttl_simple.Output(sfp_ctl.led)
|
||||
self.submodules += phy
|
||||
|
|
Loading…
Reference in New Issue