elasticai.creator.testing.cocotb_prepare#

Module Contents#

Functions#

build_report_folder_and_testdata

Building the test/simulation folder which contains the test data and hardware design for testing in cocotb

read_testdata

Reading the data as testpattern in the cocotb testbench

API#

elasticai.creator.testing.cocotb_prepare.build_report_folder_and_testdata(dut_name: str, testdata: dict) pathlib.Path[source]#

Building the test/simulation folder which contains the test data and hardware design for testing in cocotb

Parameters:
  • dut_name – The name of the Top Module

  • testdata – Dictionary with test data/params data

Returns:

Path to the report folder containing hardware design and testpattern data

elasticai.creator.testing.cocotb_prepare.read_testdata(dut_name: str) dict[source]#

Reading the data as testpattern in the cocotb testbench

Parameters:

dut_name – The name of the Top Module DUT in the cocotb testbench (using dut._name)

Returns:

Dictionary with testpattern for testing the DUT