Lord_Nightmare has quit [Ping timeout: 244 seconds]
Lord_Nightmare has joined #amaranth-lang
peeps[zen] has joined #amaranth-lang
peepsalot has quit [Ping timeout: 276 seconds]
d_olex has joined #amaranth-lang
d_olex has quit [Ping timeout: 252 seconds]
chrisgorman has quit [Remote host closed the connection]
<vup>
Currently there is no way to do conditional formatting using `.format`, right? For example printing different members of a tagged union depending on the tag. I could see how one could maybe do something with printing enough "\x08b" to "override" previous values, though that seems pretty hacky.
<vup>
The `SwitchValue` "trick" used for enums doesn't really work for my usecase, as the members of my tagged union are not constant, but struct's on their own of course)
Wanda[cis] has joined #amaranth-lang
<Wanda[cis]>
yeah, not really
<Wanda[cis]>
it's a rather unfortunare limitation
<vup>
rtlil cell. Translating it to verilog is probably very annoying, but for `cxxrtl` implementing that extended `$print` cell doesnt seem to hard
<vup>
for now I implemented the "\x08" hack, which is "good enough" for my purposes. I also don't have a clear image of how a extended version of `Format` would work that can implement conditional formatting. Especially if one wants to map it to a `$print` like cell in rtlil. Maybe the ability to add a individual "enable signal" to each of the format "chunk"s would be enough? That seems like it could reasonably be mapped to a extended version of the `$print`
<Wanda[cis]>
yeah that's the design I was thinking about, too
<Wanda[cis]>
I maaaay have discussed this with Catherine at some point and we decided against it for some reason? not sure tbh
zyp[m] has quit [Quit: Idle timeout reached: 172800s]
jorolf[m] has quit [Quit: Idle timeout reached: 172800s]
<vup>
a further formatting related question would be wether it would be feasible to provide something akin to `Format._chunks` to the user as a API. I wrote some code that processes that to automatically create translators for surfer. I guess that would also need a user API for the ast, as I need to parse the AST that is generated for the value expressions of the formatting chunks, which probably is even harder to provide
jfng[m] has quit [Quit: Idle timeout reached: 172800s]
frgo has joined #amaranth-lang
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #amaranth-lang
pbsds3 has quit [Ping timeout: 260 seconds]
pbsds3 has joined #amaranth-lang
frgo_ has joined #amaranth-lang
frgo has quit [Ping timeout: 245 seconds]
frgo_ has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo_ has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo_ has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo_ has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo_ has quit [Read error: Connection reset by peer]
frgo_ has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo_ has quit [Read error: Connection reset by peer]
frgo_ has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo_ has quit [Read error: Connection reset by peer]
frgo_ has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo_ has quit [Read error: Connection reset by peer]
frgo_ has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo_ has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo_ has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo_ has quit [Read error: Connection reset by peer]
frgo_ has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo_ has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo_ has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo_ has quit [Read error: Connection reset by peer]
frgo_ has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo_ has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo_ has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo_ has quit [Read error: Connection reset by peer]
frgo_ has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo_ has quit [Read error: Connection reset by peer]
frgo_ has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo_ has quit [Read error: Connection reset by peer]
frgo_ has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo_ has quit [Read error: Connection reset by peer]
frgo_ has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo_ has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]