sb00 has quit [Quit: Connection closed for inactivity]
mumptai has joined #m-labs
_whitelogger has joined #m-labs
sb0 has joined #m-labs
mumptai has quit [Quit: Verlassend]
rohitksingh1 has joined #m-labs
rohitksingh has quit [Ping timeout: 240 seconds]
mumptai has joined #m-labs
<mithro>
sb0: Is PlatformInfo meant to be used for doing things like adding sillkscreen labels on connectors?
<sb0>
nothing uses that anymore. i think it should be removed.
<mithro>
sb0: I'm looking for the right way to add annotations about things like silkscreen labels
<sb0>
silkscreen labels in migen?
<sb0>
why?
<sb0>
put them in source code comments?
<sb0>
or docstring?
<mithro>
sb0: So they can be exported into the firmware code and provide aliases for things
<sb0>
exported how?
<mithro>
Maybe through things like CSRConstants? For example in micropython we want to be able to do "l1 = LED('LD0')" were 'LD0' comes from the silkscreen. For the HDMI2USB being able to do things like "matrix connect <silkscreen label for hdmi input> <silkscreen label for hdmi output>"...
<sb0>
I'd handle that with some simple hardcoded map in firmware
<sb0>
you don't need to integrate that into migen
<sb0>
you can generate that map with your build script or something
<mithro>
sb0: I was thinking adding something like a "Label()" or "Info()" type thing in the platform files that I can attach directly to the _io things to keep things together... That is when I discovered PlatformInfo thing
<sb0>
yes, but you still have to handle it in your build script
<mithro>
sb0: Allowing modules to export the information in what ever way they wanted (IE It would also be useful for things like device-tree generation)
<sb0>
migen/misoc does nothing with it
<mithro>
sb0: I guess it's like the new type annotations in Python, Python doesn't do anything with it directly, but it enables other things to do stuff with them because it is structured... -- How would you attach a docstring to the stuff inside "_io = []"?
<sb0>
you cannot. i meant the docstring for the module.