Skip to content

The icebreaker example pdm_fade_gamma.py fails with an error #15

@JamesTimothyMeech

Description

@JamesTimothyMeech
james@james-Laptop-13th-Gen-Intel-Core:~/Desktop/icebreaker-amaranth-examples/icebreaker/pdm_fade_gamma$ python3 gamma_pdm.py 
/home/james/Desktop/icebreaker-amaranth-examples/icebreaker/pdm_fade_gamma/gamma_pdm.py:49: DeprecationWarning: `pin.eq(...)` is deprecated; use `pin.o.eq(...)` here
  ledg_n.eq(self.pdm_g.pdm_out),
Traceback (most recent call last):
  File "/home/james/Desktop/icebreaker-amaranth-examples/icebreaker/pdm_fade_gamma/gamma_pdm.py", line 189, in <module>
    plat.build(Top(gamma=args.g), do_program=True)
  File "/home/james/.local/lib/python3.10/site-packages/amaranth/build/plat.py", line 105, in build
    plan = self.prepare(elaboratable, name, **kwargs)
  File "/home/james/.local/lib/python3.10/site-packages/amaranth/build/plat.py", line 145, in prepare
    fragment = Fragment.get(elaboratable, self)
  File "/home/james/.local/lib/python3.10/site-packages/amaranth/hdl/ir.py", line 42, in get
    new_obj = obj.elaborate(platform)
  File "/home/james/Desktop/icebreaker-amaranth-examples/icebreaker/pdm_fade_gamma/gamma_pdm.py", line 49, in elaborate
    ledg_n.eq(self.pdm_g.pdm_out),
  File "/home/james/.local/lib/python3.10/site-packages/amaranth/lib/io.py", line 138, in eq
    return super().eq(other)
TypeError: super(type, obj): obj must be an instance or subtype of type

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions