sb0 changed the topic of #m-labs to: ARTIQ, Migen, MiSoC, Mixxeo & other M-Labs projects :: fka #milkymist :: Logs http://irclog.whitequark.org/m-labs
cr1901_modern has joined #m-labs
tangrs has quit [Ping timeout: 246 seconds]
tangrs has joined #m-labs
cr1901 has joined #m-labs
cr1901 has quit [Client Quit]
_whitelogger has joined #m-labs
sb00 has quit [Quit: Connection closed for inactivity]
rohitksingh has joined #m-labs
sb00 has joined #m-labs
<mithro> sb00: So, what is "PlatformInfo" object (in migen/build/generic_platform.py) used for?
<mithro> sb00: I was also wondering if you had an examples of the ConnectorManager and how it is suppose to be used...
<mithro> I'm looking at https://github.com/m-labs/artiq/blob/df4f38a1e4d6eeee04c81a60e8b37f2982417ec6/artiq/gateware/nist_clock.py for example and not quite sure about what is going on...
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 also think it is useful documentation in platform file - This is what we are doing at the moment - https://github.com/timvideos/HDMI2USB-litex-firmware/blob/master/platforms/opsis.py#L474-L497
<sb0> \\r\\n?
<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.
key2 has quit [Ping timeout: 260 seconds]
<mithro> sb0: I don't really understand how _connectors / add_extension / ConnectorManager stuff works? I was looking at artiq and it seems like there is something about how the pins are labeled - https://github.com/m-labs/artiq/blob/master/artiq/gateware/nist_clock.py and https://github.com/m-labs/artiq/blob/master/artiq/gateware/nist_qc2.py ?
<sb0> it's quite simple, a connector is a connector pin -> FPGA pin map, and then you can use the <connector name>:<connector pin> notation in IOs
Gurty has quit [Ping timeout: 255 seconds]
Gurty has joined #m-labs
Gurty has joined #m-labs
Gurty has quit [Changing host]
rohitksingh1 has quit [Quit: Leaving.]