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
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_> https://github.com/cr1901/amaranth-cookiecutter I am procrastinating from writing docs
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
<_whitenotifier-4> [amaranth] YusufCelik opened issue #1547: Adding platform to Simulator class - https://github.com/amaranth-lang/amaranth/issues/1547
zyp[m] has joined #amaranth-lang
<zyp[m]> <SjefCoder> "Hey peeps, how is platform..." <- see https://github.com/amaranth-lang/rfcs/pull/48 and the related discussion
<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
<SjefCoder> Hmmm
<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]> no
<zyp[m]> Fragment.get() calls .elaborate() on the object you pass it
<SjefCoder> ahhh
<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 quit []
pie_ has joined #amaranth-lang
SjefCoder has quit [Quit: Client closed]