<d1b2>
<chuckmcm> Question, a lot of example code passes the platform into elaborate() and in the body of elaborate it requests I/O from the plaform. I it possible to do this outside of elaborate? I want my module code be platform independent and I am trying not to create an out-of-context passing scheme by using special names.
<whitequark[cis]>
yeah, the platform is a normal Python object
Degi_ has joined #amaranth-lang
Degi has quit [Ping timeout: 246 seconds]
Degi_ is now known as Degi
GenTooMan has quit [Ping timeout: 245 seconds]
GenTooMan has joined #amaranth-lang
sszilvasi[m] has joined #amaranth-lang
<d1b2>
<chuckmcm> So what is the best way to share a bit of source?
<whitequark[cis]>
paste.debian.net or gist.github.com
<d1b2>
<chuckmcm> Basically I'm trying to build "components" that I can instantiate and pass in the wiring to them.
<d1b2>
<chuckmcm> As opposed to building the wiring inside of them based on a specific platform.
<d1b2>
<chuckmcm> I was wondering if you could do this, then you could create a KiCad plugin that would let you create "components" and hook them up with a schematic, and poop out an amaranth file.
<d1b2>
<chuckmcm> But I'm basically way out over my skis trying to work along at least three learning curves at the same time 🙂
<whitequark[cis]>
you could certainly do this, though it might work better if you wait until components land in Amaranth as a first class concept (there's an open RFC)
<d1b2>
<chuckmcm> pointer?
<d1b2>
<chuckmcm> And is it anything like what I'm thinking ?
<whitequark[cis]>
no, but it could help you in your pursuit
<d1b2>
<chuckmcm> (oh and it has been pretty amazing to see you're checkins and such). Great stuff.