whitequark[cis] changed the topic of #amaranth-lang to: Amaranth hardware definition language · weekly meetings: Amaranth each Mon 1700 UTC, Amaranth SoC each Fri 1700 UTC · play https://amaranth-lang.org/play/ · code https://github.com/amaranth-lang · logs https://libera.irclog.whitequark.org/amaranth-lang · Matrix #amaranth-lang:matrix.org
jjsuperpower has joined #amaranth-lang
Degi has quit [Ping timeout: 265 seconds]
Degi has joined #amaranth-lang
Stary has quit [Quit: ZNC - http://znc.in]
Stary has joined #amaranth-lang
FFY00 has quit [Ping timeout: 252 seconds]
cceckman has quit [Ping timeout: 240 seconds]
cceckman has joined #amaranth-lang
<cceckman> Apologies if this is a nonsensical question, still wrapping my head around Amaranth concepts. I'm trying to wire a Verilog module (https://github.com/juanmard/tinyfpga_bx_usbserial) into Amaranth, to deploy onto a Fomu. I *think* the way to do this is to `request` the relevant USB pins from the platform
<cceckman> (https://github.com/amaranth-lang/amaranth-boards/blob/main/amaranth_boards/fomu_pvt.py) and pass them in to an Instance of the module. But I'm failing to figure out a way to get an IOValue out of the platform.
<cceckman> (I can get the .i and .o signals for the relevant pins, but if I understand right I need an IOValue for the instance)
<cceckman> Is this because of how the particular (FomuPVT)Platform is written? Or is it possible and I'm missing how to do it? Or should I be trying to do something else entirely? Thanks!
<cceckman> Ah! Figured it out: `platform.request("usb", dir="-")` gives SingleEndedPort objects, which have `.io` attributes to access the IOValue.
cceckman has quit [Quit: Client closed]
FFY00 has joined #amaranth-lang
<whitequark[cis]> yes, that is the right way to do it
jn_ is now known as jn
conventia[m] has quit [Quit: Idle timeout reached: 172800s]