From 991c686d7200ff742e2cd7a701e96d92eb8ec3b6 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 11 Sep 2019 15:51:53 +0800 Subject: [PATCH] kasli_generic,eem: print RTIO channels in hex like artiq_ddb_template --- artiq/gateware/eem.py | 2 +- artiq/gateware/targets/kasli_generic.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/gateware/eem.py b/artiq/gateware/eem.py index 203656638..fad54969f 100644 --- a/artiq/gateware/eem.py +++ b/artiq/gateware/eem.py @@ -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))) diff --git a/artiq/gateware/targets/kasli_generic.py b/artiq/gateware/targets/kasli_generic.py index 0aacecd21..c7e74064f 100755 --- a/artiq/gateware/targets/kasli_generic.py +++ b/artiq/gateware/targets/kasli_generic.py @@ -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