Skip to content

Make Loam Circuits Match Magma Circuits API #7

Description

@David-Durst

Currently, you can't get the string representation of some instances of loam boards. The magma repr function calls IO of the metaclass, and the loam board doesn't have an IO property.

>>> from loam.boards.icestick import IceStick
import lattice ice40
>>> icestick = IceStick()
>>> type(icestick)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/durst/dev/W17-8/magma/magma/circuit.py", line 108, in __repr__
    args = str(cls.IO)
AttributeError: type object 'IceStick' has no attribute 'IO'
>>>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions