whitequark changed the topic of #amaranth-lang to: Amaranth hardware definition language · code https://github.com/amaranth-lang · logs https://libera.irclog.whitequark.org/amaranth-lang
lf has quit [Ping timeout: 252 seconds]
lf has joined #amaranth-lang
<_whitenotifier> [YoWASP/nextpnr] whitequark pushed 1 commit to develop [+0/-0/±1] https://github.com/YoWASP/nextpnr/compare/438a0cf6f5da...141f7b9d3902
<_whitenotifier> [YoWASP/nextpnr] whitequark 141f7b9 - Update dependencies.
bl0x_ has joined #amaranth-lang
bl0x has quit [Ping timeout: 260 seconds]
Degi_ has joined #amaranth-lang
Degi has quit [Ping timeout: 252 seconds]
Degi_ is now known as Degi
koschei[m] has joined #amaranth-lang
nak_ has quit [Ping timeout: 260 seconds]
<koschei[m]> Hey all! Has anyone got a good example of how to use the Connectors exposed by some of the platforms in amaranth_boards in a design? Specifically, I’d like to grab 8 of the header pins on an UpduinoV2 and drive them as simple outputs for a blinking LED hello world project, but the platform.request() method I’m used to from another board doesn’t seem to recognize Connector names. Do I need to derive a Resource from the Connector
<koschei[m]> and use that, or is there a better way?
<adamgreig[m]> you have to call platform.add_resources, like this: https://github.com/adamgreig/amaranth-examples/blob/master/amaranth_examples/connectors.py
<adamgreig[m]> the difference is you can then use the pin numbers from the connector (and specify `conn=("bla", 0)`) instead of fpga pin numbers
<koschei[m]> Awesome, that’s just what I need! Thank you!
<koschei[m]> The other examples in that repo are great too — I think you might have just answered my next 3 questions in advance haha
<adamgreig[m]> hehe, don't hesitate to ask if something's unclear though! i can always add more examples
<koschei[m]> I appreciate it! Amaranth is surprisingly comprehensible for an HDL, but nothing beats a well-documented example