CIRCT 23.0.0git
Loading...
Searching...
No Matches
Classes | Functions | Variables
test_verilator Namespace Reference

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()
 

Detailed Description

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.

Function Documentation

◆ _make_verilator()

test_verilator._make_verilator (   run_dir,
  top = "TestTop",
  debug = False,
  dpi_so = None,
  macros = None 
)
protected

Variable Documentation

◆ _accel_mock

test_verilator._accel_mock = MagicMock()
protected

Definition at line 22 of file test_verilator.py.