whitequark changed the topic of #amaranth-lang to: Amaranth hardware definition language · code https://github.com/amaranth-lang · logs https://libera.irclog.whitequark.org/amaranth-lang
lf has quit [Ping timeout: 244 seconds]
lf has joined #amaranth-lang
hansfbaier has joined #amaranth-lang
Degi_ has joined #amaranth-lang
Degi has quit [Ping timeout: 276 seconds]
Degi_ is now known as Degi
<d1b2> <Gabriel> This doesn't seem to be working. Could I get a sanity check? py m.submodules.start = Instance( 'SB_SPRAM256KA', i_ADDRESS = self.index, i_DATAIN = data_in, i_MASKWREN = Const(0b1111, 4), i_WREN = self.write, i_CHIPSELECT = 1, i_CLOCK = ClockSignal("px"), i_STANDBY = 0, i_SLEEP = 0, i_POWEROFF = 0, o_DATAOUT = data_out )
<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
colejohnson66 has quit [Quit: Client closed]
hansfbaier has joined #amaranth-lang
hansfbaier has quit [Quit: WeeChat 2.8]
Mrmaxmeier has joined #amaranth-lang