whitequark[cis] changed the topic of #amaranth-lang to: Amaranth hardware definition language · weekly meetings: Amaranth each Mon 1700 UTC, Amaranth SoC each Fri 1700 UTC · play https://amaranth-lang.org/play/ · code https://github.com/amaranth-lang · logs https://libera.irclog.whitequark.org/amaranth-lang · Matrix #amaranth-lang:matrix.org
SpaceCoaster has quit [Read error: Connection reset by peer]
SpaceCoaster_ has joined #amaranth-lang
SpaceCoaster_ is now known as SpaceCoaster
SpaceCoaster has quit [Read error: Connection reset by peer]
SpaceCoaster has joined #amaranth-lang
SpaceCoaster has quit [Read error: Connection reset by peer]
SpaceCoaster has joined #amaranth-lang
SpaceCoaster has quit [Read error: Connection reset by peer]
SpaceCoaster has joined #amaranth-lang
mithro has quit [Ping timeout: 245 seconds]
mithro has joined #amaranth-lang
yuriks has quit [Ping timeout: 245 seconds]
yuriks has joined #amaranth-lang
<cr1901> Finally wrote all the docs for my amaranth simulator wrapper that works with v0.5. This in principle means that I can release it on PyPI right now/tonight! In practice, probably not going to happen due to my executive dysfunction (esp since the Cohost news...)
Degi has quit [Ping timeout: 272 seconds]
Degi has joined #amaranth-lang
Degi has quit [Ping timeout: 246 seconds]
Degi has joined #amaranth-lang
Degi has quit [Ping timeout: 246 seconds]
Degi has joined #amaranth-lang
john2 has quit [Read error: Connection reset by peer]
john2 has joined #amaranth-lang
Stary has quit [Quit: ZNC - http://znc.in]
Stary has joined #amaranth-lang
buganini has joined #amaranth-lang
buganini has quit [Ping timeout: 260 seconds]
buganini has joined #amaranth-lang
buganini has quit [Ping timeout: 264 seconds]
buganini has joined #amaranth-lang
<whitequark[cis]> wrapper?
john2 has quit [Read error: Connection reset by peer]
john2 has joined #amaranth-lang
buganini has quit [Read error: Connection reset by peer]
buganini has joined #amaranth-lang
<cr1901> s/wrapper/pytest fixtures/ ... just things that make it less code to parametrize amaranth sims in pytest
maikmerten[m] has quit [Quit: Idle timeout reached: 172800s]
mabl[m] has joined #amaranth-lang
<mabl[m]> Ah i also have some infrastructure to export signal traces etc. Unfortunately, I have not yet figured out why failing assertions don't give proper failure texts and back trace...
<mabl[m]> Maybe a pytest thingy
buganini has quit [Ping timeout: 255 seconds]
buganini has joined #amaranth-lang
trappedinpajamas has joined #amaranth-lang
<trappedinpajamas> hmm, I'm trying to connect a memory read port to another module with an `Out(Readport.Signature())` , but `wiring.connect()` complains with `TypeError: The initial argument must be a module, not <amaranth.lib.memory.ReadPort object at 0x7bc82d5beea0>`. I assume this is an error of my understanding, since AIUI readport meets the requirements for `Instance` and therefore can be used with `connect()`
<trappedinpajamas> * an `Out(Readport.Signature(...))` ,
<whitequark[m]> use wiring.connect(m, read_port, other_port)
<whitequark[m]> not wiring.connect(read_port, other_port)
<whitequark[m]> by "a module" it means "a `Module` object" (it's unambiguous but I suppose a little confusing)
<whitequark[m]> we discussed ctx.changed() and expressions and decided it adds too much complexity to the simulator, but I think there is special handling for edge on 1-bit-wide sig[index] that could be extended to changed
<vegard_e[m]> in theory, is there anything that prevents a wrapper from introspecting the expression and adding triggers on each separate signal?
<whitequark[m]> we could reword that message to include my clarification in it
<vegard_e[m]> it'll be glitchy, but combinatorics necessarily is
<trappedinpajamas> ah, i totally missed that, makes sense.
<whitequark[m]> nope
<whitequark[m]> if you file an issue we could improve the error message
<trappedinpajamas> will do!
<_whitenotifier-1> [amaranth] 5aji opened issue #1509: Clarify documentation on the module usage in `wiring.connect()` - https://github.com/amaranth-lang/amaranth/issues/1509
<_whitenotifier-1> [amaranth] whitequark commented on issue #1509: Clarify documentation on the module usage in `wiring.connect()` - https://github.com/amaranth-lang/amaranth/issues/1509#issuecomment-2341827123
mwkmwkmwk[m] has quit [Quit: Idle timeout reached: 172800s]
buganini has quit [Read error: Connection reset by peer]
buganini has joined #amaranth-lang
buganini has quit [Ping timeout: 260 seconds]
buganini has joined #amaranth-lang
buganini has quit [Ping timeout: 246 seconds]
john2 has quit [Read error: Connection reset by peer]
john has joined #amaranth-lang
buganini has joined #amaranth-lang
buganini has quit [Ping timeout: 252 seconds]