diff --git a/software/glasgow/database/lattice/ecp5.py b/software/glasgow/database/lattice/ecp5.py index 561dcb8af..a90c0dc56 100644 --- a/software/glasgow/database/lattice/ecp5.py +++ b/software/glasgow/database/lattice/ecp5.py @@ -4,7 +4,9 @@ __all__ = ["devices", "devices_by_idcode", "devices_by_name"] -ECP5Device = namedtuple("ECP5Device", ("name", "idcode")) +class ECP5Device(namedtuple("ECP5Device", ("name", "idcode"))): + def __repr__(self): + return f"ECP5Device(name='{self.name}' idcode={hex(self.idcode)})" devices = [