Cocotb (Coroutine Cosimulation Testbench) is a CO-simulation library that enables connecting Python testbenches to industry-standard HDL simulators (like Icarus Verilog, Verilator, Questa, VCS).
Unlike traditionally converting Python to Verilog, Cocotb drives the simulator at runtime through the VPI/VHPI/FLI interface. This allows you to use the full power of the Python ecosystem (NumPy, SciPy, TensorFlow) directly in your verification environment.