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
<zyp[m]> Because a big part of the simulator change was to give a way to differentiate between signal state at the edge and signal state after the edge
pie_ has quit [Ping timeout: 252 seconds]
pie_ has joined #amaranth-lang
pie_ has quit [Ping timeout: 252 seconds]
pie_ has joined #amaranth-lang
<cr1901> zyp[m]: Okay. So until() samples the values just before the current clock edge takes effect?
<cr1901> and an explicit "ctx.tick(); ctx.get()" gets the values after the clock edge?
<cr1901> (I could be dense, but I don't see anything in the docs suggesting a "while ctx.get(): ctx.tick()" and "ctx.tick().until()" are semantically different. It looks like I just never wrote a testbench where the difference mattered until now)
<zyp[m]> See .sample()
<zyp[m]> You probably want that rather than ctx.get()
<cr1901> zyp[m]: Btw, to answer your q about litex- yes every CPU does interrupts differently. I was looking for a way to avoid modifying Sentinel b/c I don't want it to be configurable :P.
* cr1901 checks something
<cr1901> Yea I don't really use .sample() it seems, not in smolarith at least (which means none of my testbenches care about the difference)
Degi has quit [Ping timeout: 252 seconds]
Degi has joined #amaranth-lang
<cr1901> Anyways you're correct, sample does mention the difference (it samples at the leading edge, which must mean get() samples at the trailing edge/after propagation at the current simtime.)
key2 has joined #amaranth-lang
mindw0rk has quit [Read error: Connection reset by peer]
mindw0rk has joined #amaranth-lang
Raito_Bezarius has quit [Ping timeout: 245 seconds]
Raito_Bezarius has joined #amaranth-lang
mindw0rk has quit [Ping timeout: 276 seconds]
mindw0rk has joined #amaranth-lang
key2 has quit [Quit: Connection closed for inactivity]
frgo_ has joined #amaranth-lang
frgo__ has joined #amaranth-lang
frgo_ has quit [Read error: Connection reset by peer]
frgo__ has quit [Read error: Connection reset by peer]
frgo_ has joined #amaranth-lang
frgo has quit [Ping timeout: 246 seconds]
frgo_ has quit [Ping timeout: 268 seconds]
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #amaranth-lang
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 252 seconds]
frgo has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
frgo_ has joined #amaranth-lang
frgo has quit [Ping timeout: 252 seconds]
frgo_ has quit [Remote host closed the connection]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 252 seconds]
feldim2425_ has joined #amaranth-lang
anuejn_ has joined #amaranth-lang
anuejn has quit [Ping timeout: 252 seconds]
feldim2425 has quit [Ping timeout: 252 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 245 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 244 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 260 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 252 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 260 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 268 seconds]