[Libre-soc-bugs] [Bug 50] nmigen pinmux
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Thu Dec 2 12:24:07 GMT 2021
https://bugs.libre-soc.org/show_bug.cgi?id=50
--- Comment #65 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
total fail on my part. the resource_table_pads is a Pin/Resource
not a Signal or a Record: of course it can't be set/got.
fixed by instead registering the actual Signal/Record (named the "pin"
in Platform resource terminology, *not* the port which is the Pin/Resource)
i made it a dict-of-dicts so there is a dict by keynames
'gpio_0__gpio0__o' and then the pin named 'o', 'oe', or 'i'
inside that.
oe is its *own pin* and it should be accessed as:
gpio0_oe = top.jtag.boundary_scan_pads['gpio_0__gpio0__oe']['o']
because it is actually an *output*. long story.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list