[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


https://bugs.libre-soc.org/show_bug.cgi?id=50

--- 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>
    p=Platform(resources)
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=Platform(resources)
p.resources = create_resources(pinset)
p.build(Blinker())


The code is here:
g/?p=pinmux.git;a=blob;f=src/spec/testing_stage1.py;h=00af2ac271a170b54b108acec22e026b9889da5b;hb=HEAD#71

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


More information about the libre-soc-bugs mailing list