[Libre-soc-bugs] [Bug 50] nmigen pinmux

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sat Nov 13 17:32:31 GMT 2021


--- Comment #16 from andrey at technepisteme.xyz ---
(In reply to Luke Kenneth Casson Leighton from comment #15)
> (In reply to andrey from comment #13)
> now you know why i set strict coding standards so that you can pull
> up 12 xterms on-screen side by side.
Yeah, currently using terminator terminal viewer to practice this.

> this is why i said to focus on a tiny task (20 lines).  you then made it 5x
> larger, hence why you are struggling.  wark :)
I see, just read the question and clarify if confused... :)

> suggest this:
> 1) use dummy_pinset the original
> 2) enumerate the dict and create Resources using
>    format in comment #10 and comment #12
> 3) create a Platform() and call its build function.
> this is literally 20 lines of code.
I've added a create_resources function which accepts dummy_pinset and
instantiated a Platform instance. Actual code about 30 lines.

The code fails during Platform instantiation:

Traceback (most recent call last):
  File "testing_stage1.py", line 75, in <module>
TypeError: Can't instantiate abstract class Platform with abstract methods
connectors, required_tools, resources, toolchain_prepare

The main test code:
pinset = dummy_pinset()
resources = create_resources(pinset)
p.resources = create_resources(pinset)

The code is here:

You are receiving this mail because:
You are on the CC list for the bug.

More information about the libre-soc-bugs mailing list