picker/template/java
Makiras e3eab27451 feat(lib): add atClone hook for post-fork state re-initialization
Add a new `atClone()` method to the simulation core and expose it through all language bindings.

This method is intended to be called in a child process after a fork() to re-initialize the state of the Verilated model. This is crucial for supporting robust multi-process simulation environments, such as Python's `multiprocessing`, where forking can lead to an inconsistent state in the simulator's child instances.

Additionally, this commit includes several stability and memory management improvements:
- Fix memory leaks in `DutUnifiedBase` and the C++ wrapper by ensuring allocated resources are properly deallocated.
- Add a null-pointer check in `FlushWaveform` to prevent crashes when a waveform dumper is not present.
- Expose the `atClone` functionality to C++, Go, Java, Lua, Python, and Scala wrappers.
2026-01-29 17:07:30 +08:00
..
cmake Add support for macOS (#64) 2025-11-03 10:38:10 +08:00
CMakeLists.txt Add support for macOS (#64) 2025-11-03 10:38:10 +08:00
MANIFEST.MF simple_step.java -> example.java 2024-06-25 19:45:35 +08:00
Makefile fix(nproc): Add $NPROC for macOS (#67) 2025-11-10 08:55:01 +08:00
dut.i fix(swig): rename StringVector to avoid xcom confilict 2025-04-30 11:23:00 +08:00
dut.java feat(lib): add atClone hook for post-fork state re-initialization 2026-01-29 17:07:30 +08:00
example.java fix(java/scala): make default example to pakage com.ut 2025-04-30 11:23:00 +08:00