ameetgohil / signalflip-js

verilator testbench w/ Javascript using N-API
MIT License
18 stars 3 forks source link

method to finish simulation #38

Open drom opened 4 years ago

drom commented 4 years ago

Set of proposed APIs similar to SystemVerilog:

sim.stop() -- The $stop system task causes simulation to be suspended.

sim.finish() -- The $finish system task causes the simulator to exit and pass control back to the host operating system.

sim.exit() -- The $exit control task waits for all program blocks to complete, and then makes an implicit call to $finish. The usage of $exit is presented in 24.7 on program blocks.