forked from M-Labs/artiq
1
0
Fork 0

kasli_generic,eem: print RTIO channels in hex like artiq_ddb_template

This commit is contained in:
Sebastien Bourdeauducq 2019-09-11 15:51:53 +08:00
parent f4dd7e5e29
commit 991c686d72
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ class _EEM:
def add_extension(cls, target, eem, *args, **kwargs): def add_extension(cls, target, eem, *args, **kwargs):
name = cls.__name__ name = cls.__name__
target.platform.add_extension(cls.io(eem, *args, **kwargs)) 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))) .format(name, eem, len(target.rtio_channels)))

View File

@ -133,7 +133,7 @@ class GenericStandalone(StandaloneBase):
self.rtio_channels = [] self.rtio_channels = []
add_peripherals(self, description["peripherals"]) add_peripherals(self, description["peripherals"])
for i in (1, 2): 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) sfp_ctl = self.platform.request("sfp_ctl", i)
phy = ttl_simple.Output(sfp_ctl.led) phy = ttl_simple.Output(sfp_ctl.led)
self.submodules += phy self.submodules += phy