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
XgF has quit [Remote host closed the connection]
XgF has joined #amaranth-lang
lf has quit [Ping timeout: 260 seconds]
lf has joined #amaranth-lang
nelgau has quit [Ping timeout: 256 seconds]
<_whitenotifier> [YoWASP/yosys] whitequark pushed 1 commit to develop [+0/-0/±1] https://github.com/YoWASP/yosys/compare/2611a78f85b4...8a0d2e9416da
<_whitenotifier> [YoWASP/yosys] whitequark 8a0d2e9 - Update dependencies.
Degi_ has joined #amaranth-lang
Degi has quit [Ping timeout: 256 seconds]
Degi_ is now known as Degi
<d1b2> <j4cbo> how can i instantiate an SB_RGB_DRV? this primitive needs to be connected directly to the I/O pins without an SB_IO, and i'm not sure how to prevent the SB_IO from being generated
<d1b2> <j4cbo> i saw a discussion in #fpga from early 2020 that said "pass dir='-' to plat.getresource" but that doesn't seem to be allowed anymore (i get "Direction must be one of "i", "o", "oe", or "io", not '-'")
<d1b2> <j4cbo> yeah, that's basically what i'm doing, and amaranth is happy but it produces Verilog that nextpnr can't deal with (because there's an SB_IO in the way)
<tpw_rules> oh, i don't think i understood the question correctly then
<d1b2> <j4cbo> SB_RGB_DRV is an ice40 primitive for some special constant-current pins; those pins can be associated with either the SB_RGB_DRV or an SB_IO, but not both
<tpw_rules> so you don't want the resource machinery to automatically create an SB_IO
<d1b2> <j4cbo> exactly
<d1b2> <j4cbo> when i just use Instance("SB_RGB_DRV", ...) to instantiate it, Amaranth winds up connecting the output of the SB_RGB_DRV to the SB_IO's D_OUT_0, which can't be placed
<tpw_rules> not sure how to do that then, sorry
<whitequark> could you show the code you are using?
balrog has quit [Quit: Bye]
balrog has joined #amaranth-lang
peepsalot has quit [Quit: Connection reset by peep]
peepsalot has joined #amaranth-lang
nelgau has joined #amaranth-lang
nelgau_ has joined #amaranth-lang
nelgau has quit [Ping timeout: 260 seconds]
<gatecat> j4cbo: try something like `dir=dict(r='-', g='-', b='-')` to the platform.request
jfng[m] has joined #amaranth-lang
nelgau_ has quit [Ping timeout: 260 seconds]
chaoticryptidz has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
chaoticryptidz has joined #amaranth-lang
<d1b2> <j4cbo> ah, that did it, thanks!
nelgau has joined #amaranth-lang