Adding a Package
Follow this procedure to add a package to a project using Twin Builder‘s Package Editor.
- Select Tools > Edit Libraries > Packages. The Edit Libraries dialog box appears.
- Click Add Package to open the Add Package dialog box.
- Select VHDL-AMS from the Model Type drop-down list.
- Type the new package name in the Name field.
- Twin Builder gives you the choice of adding the new model directly to the current project (for later editing, perhaps), or of adding the model using Twin Builder’s Package Editor. Choose one of the following:
- To add a new model directly to the current
project, clear the Add using editor
check box and click OK.
Twin Builder creates a new VHDL-AMS package bearing the chosen package name, and adds the model to the Project Manager’s Definitions > Packages folder.
Note:To open the package for editing from the Project Manager, double-click the package, or right-click the package and select Edit Package.
- To add a new package to the current project using the Package Editor, select the Add using editor check box. Click OK to close the dialog box.
The Package Editor opens displaying new VHDL-AMS package entity declarations in a tab bearing the package name you chose above.
- Edit the package source code as needed.
- When finished editing, select Vhdl Package Editor > Update Project to add the model to the project.