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
zignig has joined #amaranth-lang
<zignig> nice, hey all.
<zignig> Catherine , .. et al. Just managed to boot a rv32i control plane from flash on my tinybx.
<zignig> so cool.
<zignig> pure Amaranth; with source from others... ofcourse.
<zignig> ... anyway. @tpwrules I ported your icepanel spi interface and rewrote the driver from boneless asm to rust.
<zignig> work on my TODO list continuues.
zignig has quit [Quit: leaving]
Degi_ has joined #amaranth-lang
Degi has quit [Ping timeout: 264 seconds]
Degi_ is now known as Degi
Wanda[cis] has quit [Quit: Idle timeout reached: 172800s]
notgull has joined #amaranth-lang
notgull has quit [Ping timeout: 255 seconds]
nates93[m] has joined #amaranth-lang
<nates93[m]> lU3RydWN0LCByZXNldD17XG4gICAgXCJvcHRpb25zXCI6IFtcbiAgICAgICAge1wiZnJhY3Rpb25cIjogMHgxRkZGRjcsIFwiZXhwb25lbnRcIjogMHg3RSwgXCJzaWduXCI6IDB9LFxuICAgICAgICB7XCJmcmFjdGlvblwiOiAweDFGRkZGNywgXCJleHBvbmVudFwiOiAweDdFLCBcInNpZ25cIjogMX1cbiAgICBdXG59KVxuXG4ifQ==
<whitequark[cis]> nates93: what's that on line 7?
<whitequark[cis]> I've actually just added a note to the docs about this exact mixup, in https://amaranth-lang.org/docs/amaranth/latest/guide.html#arrays
<whitequark[cis]> > Arrays, amaranth.hdl.Array, are distinct from and serve a different function than amaranth.lib.data.ArrayLayout.
<whitequark[cis]> you want data.ArrayLayout(IEEE754Single, 2)
<nates93[m]> Noted! To be honest, I glazed over that bit. It came from an LLM. I appreciate the note in the docs! Actually, while trying to create a new MVRE I figured out my issue. It seems when using a nested data.Union from within a data.Struct, I cannot just initialize it with 0, I must specify `{"member_that_is_a_union" : {"subfield_of_union" : 0}}`
<nates93[m]> * Noted! To be honest, I glazed over that bit. It came from an LLM. I appreciate the note in the docs! Actually, while trying to create a new MVRE I figured out my issue. It seems when using a nested `data.Union` from within a `data.Struct`, I cannot just initialize it with 0, I must set one of the members of the union: `{"member_that_is_a_union" : {"subfield_of_union" : 0}}`
<nates93[m]> cImFkZHJcIiA6IDB9LFxuICAgICAgICAgICAgI1wiYlwiOiAwLCAjIHRoaXMgd2lsbCBmYWlsIFxuICAgICAgICB9LFxuICAgIH0pXG5cbiJ9
<whitequark[cis]> oh, well, don't take advice from an LLM
<whitequark[cis]> or it'll continue to cause you issues like this
zignig has joined #amaranth-lang
zignig has quit [Client Quit]
nyanotech has quit [Remote host closed the connection]
nyanotech has joined #amaranth-lang
sohaiber[m] has joined #amaranth-lang
<whitequark[cis]> in principle we could extend the existing ArrayLayout to multiple dimensions; you could submit an RFC for that
<sohaiber[m]> alright
notgull has joined #amaranth-lang
notgull has quit [Ping timeout: 255 seconds]
notgull has joined #amaranth-lang
lf has quit [Ping timeout: 256 seconds]
lf has joined #amaranth-lang
toshywoshy has quit [Ping timeout: 246 seconds]