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
<_whitenotifier-e> [YoWASP/nextpnr] whitequark pushed 1 commit to develop [+0/-0/±1] https://github.com/YoWASP/nextpnr/compare/369723614fb7...27e74e831169
<_whitenotifier-e> [YoWASP/nextpnr] whitequark 27e74e8 - Update dependencies.
<_whitenotifier-e> [YoWASP/yosys] whitequark pushed 1 commit to develop [+0/-0/±1] https://github.com/YoWASP/yosys/compare/37a7d9b83c6f...74123b24c2bd
<_whitenotifier-e> [YoWASP/yosys] whitequark 74123b2 - Update dependencies.
Degi_ has joined #amaranth-lang
Degi has quit [Ping timeout: 255 seconds]
Degi_ is now known as Degi
tich has joined #amaranth-lang
tich has quit [Quit: ERC 5.4 (IRC client for GNU Emacs 28.1)]
tich has joined #amaranth-lang
tich has left #amaranth-lang [#amaranth-lang]
kaucasus has joined #amaranth-lang
kaucasus has quit [Client Quit]
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #amaranth-lang
<d1b2> <Gabriel> This is nifty. Solution is to use lambda to re-call Cat every time you wanna use the combined form py class Color: def __init__(self, bits_per_channel): self.r = Signal(bits_per_channel) self.g = Signal(bits_per_channel) self.b = Signal(bits_per_channel) self.rgb = lambda: Cat(self.b, self.g, self.r) c = Color(4) out_red = Signal(4) m.d.sync += c.rgb().eq(0x123) m.d.sync += out_red.eq(c.r)
<d1b2> <zyp> suggestion; do this instead: @attribute def rgb(self): return Cat(self.b, self.g, self.r)
<d1b2> <zyp> that'll let you write c.rgb.eq(0x123) without the ()
lf has quit [Ping timeout: 258 seconds]
lf has joined #amaranth-lang