Synchronizing Project Definitions

Models used in Twin Builder projects may reference other model definitions in their definitions. When you edit and update a project model definition that is used by other project models, the project synchronization process recompiles all of the dependent models. Such compilations can result in compilation errors if the updated model’s interface has been modified. The following example illustrates this process and how to correct such errors.

In the following example, assume there is a VHDL-AMS model library containing several models including:

  1. In the Project Manager pane, the thermal model is opened in the VHDL-AMS model editor and terminal m is changed to m1.
  2. Update Project is then performed on the thermal model in the model editor.

Synchronization occurs on the fuse model, as well as on any other models in the current project that may depend upon the thermal model. During this process, the fuse model is recompiled. However, compilation will fail in this instance due to the terminal name mismatch (m vs. m1). Error messages are displayed in the Message Manager pane, giving the line numbers in the fuse model where the errors occurred.

  1. You could open the fuse model in the VHDL-AMS model editor, make the needed corrections (change m to m1), and perform Update Project on the fuse model to complete the process.

Alternatively (perhaps because you mistakenly changed the thermal model), you could also correct the errors by editing the thermal model so that the terminal names agree.