[Libre-soc-bugs] [Bug 762] Peripheral Pin Muxing Development

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Mon Jun 6 23:05:27 BST 2022


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

--- Comment #29 from Andrey Miroshnikov <andrey at technepisteme.xyz> ---
I've been looking at the functions from pinfunctions.py (sdram1, i2c, etc.).
https://git.libre-soc.org/?p=pinmux.git;a=blob;f=src/spec/pinfunctions.py;h=f1f9558a68005ecbd5dbf2f40f1465d07cd2146e;hb=HEAD#l112

Why does the code in microtest.py (or ls180.py) call these functions with more
input arguments than is specified?
https://git.libre-soc.org/?p=pinmux.git;a=blob;f=src/spec/microtest.py;h=ab957b6ae8dc6c596ecf820c6ec3c30d80b449ea;hb=HEAD#l59

For example i2c expects "suffix" and "bank"
def i2s(suffix, bank):
but microtest.py(l#63) does: 
ps.i2c("0", ('A', 1), 2)

Is that a Python-related syntax where you can hide arg parameters?


Also, after running the pinmux_generator.py to make the microtest example, I
looked at the output files.
"pinmux.txt" and "microtest.mdwn" show the mux connectivity and are
understandable.
However the "litex_pinpads.json" is missing information needed to assign the
functions to particular banks.
For the pinspec file from which to generate the dict, am I meant to use the
JSON file?

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


More information about the libre-soc-bugs mailing list