<tpw_rules>
looks like i_POWEROFF is actually inverted. it should be 1 to make the RAM go
<d1b2>
<Gabriel> oh lol I hope that's it
<tpw_rules>
"When POWEROFF is driven high (1’b1), the SPRAM is powered on."
<d1b2>
<Gabriel> That was one of like five things wrong. But it's working now, thanks!
hansfbaier has quit [Quit: WeeChat 2.8]
mwk has quit [Ping timeout: 246 seconds]
mwk has joined #amaranth-lang
kaucasus has joined #amaranth-lang
kaucasus has quit [Quit: kaucasus]
colejohnson66 has joined #amaranth-lang
<colejohnson66>
Hi everyone! Question: say I want multiple Layouts to be passed around as a generic Signal. For example, the two MSB of a signal define its type (tag bits of sorts), then the other, say, 32 bits are an opaque blob that can be turned back into a Record. Then I pass around this 34 bit signal and the receiver can go: "the tag is b00, so this is
<colejohnson66>
LayoutA". Is there a way to do this?
<colejohnson66>
Would I define a Record for each Layout, then set the Record equal to the bits from the blob?
<whitequark>
there's an open RFC for this
<colejohnson66>
I found it. A union; that's what they're called
<colejohnson66>
Is there currently any way to do such a thing right now?
<colejohnson66>
Would I just have to write a bunch of subscripted `.eq` statements?
<colejohnson66>
Would I just have to write a bunch of subscripted `.eq statements?
peeps[zen] has joined #amaranth-lang
peepsalot has quit [Ping timeout: 246 seconds]
<whitequark>
not right now, sorry
<whitequark>
if you test the RFC you would shorten the time before its implementation is merged, though
<whitequark>
so I'd like to encourage you to do that
<colejohnson66>
will do
<colejohnson66>
That literally cut my filesize in half