CML Compiler can create and run quality assurance (QA) tests that ensure that your compiled elements behave correctly according to your source data. It is strongly recommended to run these QA tests on your CML.
The QA tests consist of LSF and/or Python scripts that create test benches with your compiled models in INTERCONNECT or Cadence Virtuoso, run simulations, extract the results, and compare them to the expected results based on the source data. The tests will be different for each photonic model. For more information on the QA tests, please see Introduction to Quality Assurance (QA) Tests.
The elements must be built before QA tests are created for them. See Building a Compact Model Library for details on building CMLs from the source data.
Creating QA Tests
To create QA tests for your elements:
- Select the elements you would like to create QA tests for in the Element Status Center.
- If you would like to create QA tests for Verilog-A elements, select the Verilog-A checkbox in the tool bar.
- Click the Build Tests button to create the QA test scripts for your elements. Alternatively, click the drop-down arrow next the Build Tests button and click Build Tests + Prev Steps to perform the data validation, build library, and installation steps before creating the QA tests.
CML Compiler will write the results of the installation and test building steps to the Output to indicate whether these steps were successful.
Running QA Tests
Once the QA tests have been created they can be run through CML Compiler. For INTERCONNECT libraries, the library must be installed in INTERCONNECT before running the tests.
To run the QA tests:
- Select the elements whose QA tests you would like to run in the Element Status Center.
- For INTERCONNECT libraries, click the Install Library button if the library isn't installed yet.
- If you would like to run QA tests for Verilog-A elements, select the Verilog-A checkbox in the tool bar.
- Click the Run Tests button to run the QA tests. Alternatively, click the drop-down arrow next the Run Tests button and click Run all steps to perform the data validation, build library, installation, and QA test creation steps before running the QA tests.
The QA tests will then be run in INTERCONNECT/Cadence Virtuoso and the output from the tests will be printed to the Output. After the QA tests have finished running, the results for the QA tests for each element in the CML will be indicated in the Test column of the Element Status Center. A green circle indicates the element passed all tests, grey indicates the tests haven't been run yet, and red indicates the tests were run and at least one failed.