caravel/verilog/dv/cocotb
M0stafaRady 928fc6a2a5
Update README.md
2022-10-02 14:27:42 +02:00
..
doc add photo of cocotb structure 2022-10-02 14:10:17 +02:00
tests Adding cocotb evironment with tests and scripts to run 2022-09-30 03:52:34 -07:00
wb_models/housekeepingWB Adding cocotb evironment with tests and scripts to run 2022-09-30 03:52:34 -07:00
.gitignore remove hex files from directory 2022-10-02 04:20:32 -07:00
Makefile Adding cocotb evironment with tests and scripts to run 2022-09-30 03:52:34 -07:00
README.md Update README.md 2022-10-02 14:27:42 +02:00
caravel.py Adding cocotb evironment with tests and scripts to run 2022-09-30 03:52:34 -07:00
caravel_tests.py Adding cocotb evironment with tests and scripts to run 2022-09-30 03:52:34 -07:00
caravel_top.sv Adding cocotb evironment with tests and scripts to run 2022-09-30 03:52:34 -07:00
common.py Adding cocotb evironment with tests and scripts to run 2022-09-30 03:52:34 -07:00
cpu.py Adding cocotb evironment with tests and scripts to run 2022-09-30 03:52:34 -07:00
defsParser.py Adding cocotb evironment with tests and scripts to run 2022-09-30 03:52:34 -07:00
logic_analyzer.py Adding cocotb evironment with tests and scripts to run 2022-09-30 03:52:34 -07:00
pli.tab Adding cocotb evironment with tests and scripts to run 2022-09-30 03:52:34 -07:00
tests.json Adding cocotb evironment with tests and scripts to run 2022-09-30 03:52:34 -07:00
verify_cocotb.py rename cocotb.py to verify_cocotb.py 2022-10-02 04:29:48 -07:00

README.md

Overview

Cocotb environment (CTN) is a dynamic simulation testing environment. It's purpose is to speed testing simulation time and get coverage data. The environment is developed using cocotb, an open source coroutine-based co simulation testbench environment for verifying VHDL and SystemVerilog RTL using Python. CTN has 2 main layers: tests and whitebox models. Tests layer contain multiple tests and sequences that can communicate with the caravel (dut) through drivers shown in read at fig 1. Whitebox models layer contain multiple models that should mimic the behavior of each main block inside caravel see fig1. Model is supposed to check if the model is working as expected, if its registers contain the expected values all the time and report coverage of features provided by this block if its tested or not.

.. image::docs/CTN.png fig1. caravel testbench environment (read lines are drivers )

Prerequisites

run a test

Use script verify_cocotb.py

  
  -h, --help            show this help message and exit
  
  -regression REGRESSION, -r REGRESSION
                        name of regression can found in tests.json
                        
  -test TEST [TEST ...], -t TEST [TEST ...]
                        name of test if no --sim provided RTL will be run
                        <takes list as input>
                        
  -sim SIM [SIM ...]    Simulation type to be run RTL,GL&GL_SDF provided only
                        when run -test <takes list as input>
                        
  -testlist TESTLIST, -tl TESTLIST
                        path of testlist to be run
                        
  -tag TAG              provide tag of the run default would be regression
                        name and if no regression is provided would be
                        run_<random float>_<timestamp>_
                        
  -maxerr MAXERR        max number of errors for every test before simulation
                        breaks default = 3
                        

Tests

Refer to tests.json for tests list