Skip to content

Stray print + exception when subclassing DUT #2

Description

@urish

To reproduce:

class DUTIssue(ttboard.cocotb.dut.DUT):
  def __init__(self, tt: DemoBoard):
     super().__init__("DUTIssue")

dut_issue = DUTIssue(tt)

This prints all the signal names, e.g.:

uo_out
ui_in
uio_in
uio_out

In addition, trying to print the object causes an exception:

>>> print(dut_issue)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "microcotb/dut.py", line 118, in __repr__
  File "microcotb/dut.py", line 49, in available_io
AttributeError: 'DUTIssue' object has no attribute '_avail_io'

Once this is fixed, let's update the submodule in the SDK and do a patch release (2.0.4)

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