cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #amaranth-lang
cr1901 has quit [Remote host closed the connection]
cr1901 has joined #amaranth-lang
Guest41 has joined #amaranth-lang
<Guest41>
Hi folks, a beginner question: what's the recommended way to simulate modules that rely on the platform? Should I pass the real platform to amaranth.cli.main(), or is there a "test" platform defined somewhere? If I pass the real platform, modules that determine the clock frequency using platform.default_clk_frequency end up inconsistent with the
<Guest41>
simulation clock frequency configured by the command line args.
<d1b2>
<dragonmux> don't know if this is per-se the 'recommended' way, but it works - and that is, construct a fake platform that provides sim versions of the things you need, use Fragment to take the sim top-level and pass it the platform, and pass the results to the simulator
<d1b2>
<dragonmux> 'sec and we'll get you a couple of links showing how we do this