cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #amaranth-lang
cr1901 has quit [Remote host closed the connection]
cr1901 has joined #amaranth-lang
cr1901 has quit [Remote host closed the connection]
cr1901 has joined #amaranth-lang
cr1901 has quit [Remote host closed the connection]
cr1901 has joined #amaranth-lang
Degi_ has joined #amaranth-lang
Degi has quit [Ping timeout: 260 seconds]
Degi_ is now known as Degi
cr1901 has quit [Quit: Leaving]
cr1901 has joined #amaranth-lang
cr1901 has quit [Remote host closed the connection]
cr1901 has joined #amaranth-lang
cr1901 has quit [Remote host closed the connection]
buganini has joined #amaranth-lang
urja has quit [Read error: Connection reset by peer]
urja has joined #amaranth-lang
buganini has quit [Ping timeout: 246 seconds]
buganini has joined #amaranth-lang
buganini has quit [Ping timeout: 246 seconds]
maikmerten[m] has joined #amaranth-lang
<maikmerten[m]>
after toying around with some tutorials I found that for me, the best way to get started is... the "Getting started" section in the official docs. I now have a blinking HX8K breakout board in front of me.
<maikmerten[m]>
still very much confused about platform.request("led"): This returns a single pin ("flipped(<Pin: Pin.Signature(1, dir='o'), path=('led_0',), name='led_0', o=(sig led_0__o)>)") and I wonder how to get access to all eight LEDs on the board
<zyp[m]>
you just repeat that call as many times as you need
<zyp[m]>
or you could do e.g. platform.request("led", 3) to get a specific one
<zyp[m]>
the LEDs are defined as individual resources in the platform and therefore have to be requested one by one
<maikmerten[m]>
can one somehow combine the single-bit signals to one 8-bit signal?
<zyp[m]>
you could do something like leds = Cat(platform.request("led", i).o for i in range(8))
<maikmerten[m]>
ah, great!
<maikmerten[m]>
(works wonderfully, thanks)
<maikmerten[m]>
I've seen several examples where a component inherits from "wiring.Component". Is there a reason why one wouldn't import wiring stuff via "from amaranth.lib.wiring import Component, In, Out" and then inheriting from "Component"?
<Wanda[cis]>
amaranth.lib in general is kinda designed to be imported as modules, because it doesn't have a policy of not colliding names with amaranth.* and there are already a few (like Const vs data.Const)
<Wanda[cis]>
but ultimately it is your choice; there are no collisions in amaranth.lib.wiring
<maikmerten[m]>
ah, thanks for elaborating!
cr1901 has joined #amaranth-lang
buganini has joined #amaranth-lang
RobTaylor[m] has quit [Quit: Idle timeout reached: 172800s]
buganini has quit [Ping timeout: 252 seconds]
purdeaandrei[m] has joined #amaranth-lang
<purdeaandrei[m]>
Why could I be getting a BrokenTrigger exception? I don't have any `async for` loops