learn-fpga-amaranth icon indicating copy to clipboard operation
learn-fpga-amaranth copied to clipboard

.add_sync_process() is deprecated

Open lonjil opened this issue 1 year ago • 1 comments

The simulations use .add_sync_process(), which emits a deprecation warning.

I am very new to Amaranth, so I may be missing something, but .add_process() appears to work just fine.

lonjil avatar Jul 03 '24 00:07 lonjil

Amaranth HDL completely changed the way simulations work (going to async functions instead of synchronous). I'll now migrate the code to use the new system step by step. Since these simulations are testbenches, I'll use .add_testbench(). Also take a look here for reference: https://amaranth-lang.org/docs/amaranth/latest/simulator.html

bl0x avatar Jul 04 '24 20:07 bl0x