bl0x / learn-fpga-amaranth

Code for Bruno Levy's learn-fpga tutorial written in Amaranth HDL
BSD 3-Clause "New" or "Revised" License
89 stars 12 forks source link

.add_sync_process() is deprecated #6

Open lonjil opened 4 months ago

lonjil commented 4 months ago

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.

bl0x commented 4 months ago

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