RobertJrdens[m] has quit [Quit: You have been kicked for being idle]
<lsneff>
Say I wanted to include an instruction encoder (to the textual asm) in my design to help with debugging. Does amaranth include anything to help with that? e.g. Signals with a shape that's a string up to n chars?
<agg>
You can use an enum and I believe they get translated in the vcd
<lsneff>
Yeah, I've been using enums for other things, but that'd be a lot of enums
<lsneff>
it'd be easier if amaranth had sum-type signals I guess
Peanut has quit [Quit: Power Outage]
<vup>
you can specify a custom decoder function that gets used in the vcd generation
<lsneff>
Oh! How do I do that?
<vup>
Signal takes a decoder argument that can be a enum or a function that maps a int to a string
<Sarayan>
lsneff: what would you add the encoder for and when? Remember that the classes are only executed once, to establish the circuit
<Sarayan>
lower-right is ram
<Sarayan>
6T sram
<Sarayan>
the usual in other words
<Sarayan>
gah wrong channel
<lsneff>
Sarayan: Yep, I understand that
<lsneff>
vup: Very cool, thank you!
bl0x_ has quit [Ping timeout: 240 seconds]
cr1901_ is now known as cr1901
nak has joined #amaranth-lang
nak has quit [Ping timeout: 272 seconds]
chaoticryptidz has quit [Quit: No Ping reply in 180 seconds.]
chaoticryptidz has joined #amaranth-lang
chaoticryptidz has quit [Quit: No Ping reply in 180 seconds.]