|
CIRCT 23.0.0git
|
Classes | |
| class | TestCompileCommands |
| class | TestFindVerilatorRoot |
| class | TestMakeFallback |
| class | TestRunCommand |
| class | TestWriteCmake |
Functions | |
| _make_verilator (run_dir, top="TestTop", debug=False, dpi_so=None, macros=None) | |
Variables | |
| _accel_mock = MagicMock() | |
Unit tests for the Verilator cosim backend. These tests exercise the command-generation and CMake-template logic of the Verilator class *without* requiring the compiled ``esiCppAccel`` C++ extension. We achieve this by inserting a ``MagicMock`` for the extension module before the real package is imported.
|
protected |
Create a Verilator instance with minimal setup.
Definition at line 30 of file test_verilator.py.
Referenced by test_verilator.TestMakeFallback._make_no_cmake(), test_verilator.TestCompileCommands.test_cmake_and_ninja_commands(), test_verilator.TestCompileCommands.test_driver_not_in_verilator_cmd_cmake(), test_verilator.TestRunCommand.test_exe_path_cmake(), test_verilator.TestFindVerilatorRoot.test_from_bin_in_path(), test_verilator.TestFindVerilatorRoot.test_from_env(), test_verilator.TestWriteCmake.test_generates_cmake(), test_verilator.TestCompileCommands.test_macro_definitions(), test_verilator.TestCompileCommands.test_no_cflags_or_ldflags_cmake(), test_verilator.TestCompileCommands.test_no_exe_or_build_flags_cmake(), test_verilator.TestFindVerilatorRoot.test_raises_when_not_found(), test_verilator.TestCompileCommands.test_respects_verilator_path_env(), test_verilator.TestCompileCommands.test_trace_flags_in_debug(), test_verilator.TestWriteCmake.test_trace_sources_in_debug(), test_verilator.TestCompileCommands.test_uses_verilator_bin(), and test_verilator.TestCompileCommands.test_verilator_path_redirects_perl_wrapper().
|
protected |
Definition at line 22 of file test_verilator.py.