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 · code https://github.com/amaranth-lang · logs https://libera.irclog.whitequark.org/amaranth-lang · Matrix #amaranth-lang:matrix.org
jjsuperpower has quit [Ping timeout: 252 seconds]
jjsuperpower has joined #amaranth-lang
jjsuperpower has quit [Ping timeout: 255 seconds]
jjsuperpower has joined #amaranth-lang
jjsuperpower has quit [Remote host closed the connection]
jjsuperpower has joined #amaranth-lang
skipwich has quit [Quit: DISCONNECT]
skipwich has joined #amaranth-lang
jjsuperpower has quit [Ping timeout: 255 seconds]
jjsuperpower has joined #amaranth-lang
jjsuperpower has quit [Ping timeout: 255 seconds]
jjsuperpower has joined #amaranth-lang
jjsuperpower has quit [Ping timeout: 255 seconds]
jjsuperpower has joined #amaranth-lang
Degi_ has joined #amaranth-lang
Degi has quit [Ping timeout: 252 seconds]
Degi_ is now known as Degi
<cr1901> http://gopher.wdj-consulting.com:70/paste/be4902b8-3afe-45b1-8dc6-c2572167525d.txt This is a dummy parameterized pytest. Can anyone explain to me why the behavior of this test diverges when I uncomment/comment the relevant lines?
<cr1901> Specifically, if I do "m = ROM()", the test passes. If I do "m = request.node.get_closest_marker("module").args[0]", memory reads return 0 on the second test to run.
<cr1901> Obviously amaranth doesn't like something about reusing a simulation module, but I'd still like to know exactly what's going wrong if possible, seeing as this breaks my own custom Amaranth fixtures.
<cr1901> s/module/elaboratable/
<cr1901> (IME. most of the time, sharing elaboratables between parameterized tests/pytest sessions works, but here it does not)
jjsuperpower has quit [Ping timeout: 252 seconds]
jjsuperpower has joined #amaranth-lang
jjsuperpower has quit [Ping timeout: 260 seconds]
Darius has quit [Ping timeout: 260 seconds]
Darius has joined #amaranth-lang
charlottia has joined #amaranth-lang
<charlottia> Indeed, can reproduce without the pytest stuff; it's sufficient to just create a Simulator(m) twice to reproduce; the second one won't work, the first does.
<charlottia> not sure if you're meant to be able to elaborate() twice or what state is stuck there, but is likely obvious to others.
adamgreig[m] has joined #amaranth-lang
<adamgreig[m]> Presumably because the Memory is created in init, my guess is moving it to elaborate would help, you could keep the init value in __init__ if you need to access it before elaboration as in this code
chaoticryptidz has quit [Ping timeout: 255 seconds]
chaoticryptidz has joined #amaranth-lang
chaoticryptidz has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
chaoticryptidz has joined #amaranth-lang
indy has quit [Ping timeout: 255 seconds]
indy_ has joined #amaranth-lang
jjsuperpower has joined #amaranth-lang
jjsuperpower has quit [Ping timeout: 246 seconds]
jjsuperpower has joined #amaranth-lang
sugarbeet has quit [Ping timeout: 255 seconds]
sugarbeet has joined #amaranth-lang
SpaceCoaster has quit [Quit: Bye]
SpaceCoaster has joined #amaranth-lang
notgull has quit [Ping timeout: 255 seconds]
notgull has joined #amaranth-lang
pbsds has quit [Ping timeout: 264 seconds]
pbsds has joined #amaranth-lang
jjsuperpower has quit [Ping timeout: 240 seconds]
zyp[m] has quit [Quit: Idle timeout reached: 172800s]
nelgau has quit [Ping timeout: 260 seconds]
jjsuperpower has joined #amaranth-lang
jjsuperpower has quit [Ping timeout: 255 seconds]
skipwich_ has joined #amaranth-lang
skipwich has quit [Ping timeout: 255 seconds]
nelgau has joined #amaranth-lang
jjsuperpower has joined #amaranth-lang
lf has quit [Ping timeout: 258 seconds]
lf has joined #amaranth-lang
pbsds has quit [Ping timeout: 246 seconds]
_whitelogger has joined #amaranth-lang
Charles34 has joined #amaranth-lang
pbsds has joined #amaranth-lang
Charles34 has quit [Quit: Quit]