Starting in 2026 R1, Ansys Lumerical CML Compiler™ offers the capability to generate photonic Verilog-A models for Synopsys PrimeSim™ running from Synopsys OptoCompiler™. These generated models enable electro-optical co-simulation for circuits containing both electronics and photonic components.
Prior to model generation, ensure that you have set up the electronic photonic design automation environment by following the instructions in the System requirements and installation for Verilog-A CMLs for OptoCompiler article.
Generating the models
You can configure CML Compiler to generate models for OptoCompiler through the GUI.
To select the platform and symbol generation, toggle the switch in the top tool bar to Verilog-A, click on the Edit Library button, and select Synopsys as the Platform. You can also select the QA Solver, either PrimeSim SPICE or PrimeSim HSPICE.
After setting these, you can follow standard procedures to build the library and run QA tests as needed. The QA Solver option does not affect the model generated, it only affects the solver used to run QA tests.
The models files, which includes the compiled custom model files, are stored in
<cml_deploy_folder>/artifacts/veriloga/modelsThe primitives, which are optional Verilog-A models used for testing, are stored in
<cml_deploy_folder>/artifacts/veriloga/primitivesCorrespondingly, two files, includeElements.I and includePrimitives.I are also available in the folder. You must load these files to use the generated library.
The symbols are then stored in
<cml_deploy_folder>/artifacts/OptoCompiler_VerilogAUsing the generated models
The generated symbols directory contains a ready-made lib.defs file. For use with only this library, you can open OptoCompiler in that directory to load the compiled models. To use the generated library with other libraries, add this library file to OptoCompiler using the Library Definitions Editor. See the “Editing Library Definitions” article within OptoCompiler help for further information, you can access this by searching “Library Definitions Editor” in the in-product help.
See Also