Skip to content

Commit

Permalink
applet.program.ecp5_sram: print idcodes in hex
Browse files Browse the repository at this point in the history
  • Loading branch information
gregdavill committed Jul 10, 2020
1 parent 5d6c418 commit b85a099
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion software/glasgow/database/lattice/ecp5.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit b85a099

Please sign in to comment.