Writing a Python Testbench Learn the concepts of how to write Python testbenches and simulate them using Riviera-PRO. Python is a high-level, object-oriented, dynamic programming language which can be used to write testbenches that can simulate FPGA Designs. Using the Cocotb environment to verify VHDL or Verilog designs with a Python testbench can provide powerful yet simple simulation results.