chipsalliance / Cores-VeeR-EL2

VeeR EL2 Core
https://chipsalliance.github.io/Cores-VeeR-EL2/html/
Apache License 2.0
243 stars 73 forks source link

Add cocotb-based testing environment #81

Closed koluckirafal closed 1 year ago

koluckirafal commented 1 year ago

This PR adds testing environment written with cocotb and pyuvm Python libraries, which allows for writing RTL tests that can reuse software tests (such as programs generated by RISC-V DV) as one of stimuli sources for DUT.

Testbench dependencies can be installed with pip:

pip3 install -r verification/requirements.txt

Example cocotb test can be launched with command:

MODULE=verification.test_base make -f tools/Makefile verilator-cocotb

PyUVM test is contained in a separate module:

MODULE=verification.test_uvm make -f tools/Makefile verilator-cocotb

Usage description and first proper RTL tests will be later added to this PR as well.

mczyz-antmicro commented 1 year ago

Superseded by #83