frgo has quit [Read error: Connection reset by peer]
frgo_ has joined #amaranth-lang
Degi has quit [Ping timeout: 252 seconds]
Degi has joined #amaranth-lang
peepsalot has quit [Remote host closed the connection]
peepsalot has joined #amaranth-lang
jn has quit [Ping timeout: 252 seconds]
jn has joined #amaranth-lang
jn has joined #amaranth-lang
jn has quit [Changing host]
jn has quit [Ping timeout: 252 seconds]
jn has joined #amaranth-lang
jn has quit [Changing host]
jn has joined #amaranth-lang
cr1901_ is now known as cr1901
<
whitequark[cis]>
ah, that's neat!
<
whitequark[cis]>
way more tooling included than I myself would use, but I can see it being popular
jn has quit [Ping timeout: 246 seconds]
jn has joined #amaranth-lang
jn has quit [Changing host]
jn has joined #amaranth-lang
jn has quit [Ping timeout: 245 seconds]
jn has joined #amaranth-lang
jn has quit [Changing host]
jn has joined #amaranth-lang
jn has quit [Ping timeout: 260 seconds]
jn has joined #amaranth-lang
jn has joined #amaranth-lang
jn has quit [Changing host]
jn has quit [Ping timeout: 260 seconds]
jn_ has joined #amaranth-lang
jn_ has joined #amaranth-lang
jn_ has quit [Changing host]
key2 has joined #amaranth-lang
nyanotech has quit [Remote host closed the connection]
nyanotech has joined #amaranth-lang
V has quit [Ping timeout: 276 seconds]
<
tpw_rules>
cr1901: it still has a couple references to sentinel
<
cr1901>
tpw_rules: Whoops, thanks!
SjefCoder has joined #amaranth-lang
<
SjefCoder>
Hey peeps, how is platform passed to a simulation? Otherwise the module under test fails due to having no access to platform.request
zyp[m] has joined #amaranth-lang
<
SjefCoder>
I am confused...how is the reference to Fragment.get(toplevel, platform=platform) a solution?
<
zyp[m]>
instead of Simulator(toplevel), you call Simulator(Fragment.get(toplevel, platform=platform)) to inject the platform
<
zyp[m]>
as for «the platform», it doesn't exist yet, so you'll have to provide your own
<
SjefCoder>
fascinating
<
SjefCoder>
how does it work under the hood?
<
SjefCoder>
self._design = Fragment.get(toplevel, platform=None).prepare()
<
SjefCoder>
is being overwritten?
<
SjefCoder>
is the asterisk doing this?
<
SjefCoder>
def __init__(self, toplevel, *, engine="pysim"):
<
zyp[m]>
Fragment.get() calls .elaborate() on the object you pass it
<
SjefCoder>
yes I did some ipdb.set_trace()
<
SjefCoder>
and was able to elaborate myself
<
SjefCoder>
manually
<
SjefCoder>
I get it now
<
SjefCoder>
But it is interesting that intuitively you and I imagined a similar initial design for Simulator
<
SjefCoder>
where it would accommodate a platform argument
<
SjefCoder>
thanks for the tip, I can simulate my module now.
frgo_ has quit [Read error: Connection reset by peer]
frgo has joined #amaranth-lang
pie_ has joined #amaranth-lang
SjefCoder has quit [Quit: Client closed]