Design symbols

The analog elements in the circuit are designed by the symbol editor (Fig. 1) it presented PyAMS model (Fig. 2). The graphical interface of the editor of symbols includes:

    1. drawing analog elements.

    1. PyAMS description model.

_images/img_Screenshots_sym_a.png

Fig. 1 symbol editor

_images/img_Screenshots_sym_b.png

Fig. 2 PyAMS description model

In more detail, the creating of a symbol in the editor is based on the following steps:

    1. Drawing the electrical elements by lines, rectangles, ellipse, etc.;

    1. Adding ports;

    1. Adding references;

    1. Adding name of model;

    1. Adding parameters;

    1. Directory of saved.

    1. Joining the symbol with a PyAMS model.

The steps of design symbol

The creating of symbols in the editor is based on the following steps:

  • Step 1 Open editor of symbol from PyAMS

_images/sym_01.png
  • Step 2 Draw the electrical elements by lines, rectangles, ellipse ….etc.

_images/sym_02.png
  • Step 3 Add ports or pins.

_images/sym_03.png
  • Step 4 Add parameters and edit name and value .

_images/sym_04.png
  • Step 5 Add reference and edit name.

_images/sym_05.png
  • Step 6 Save the new symbol to one of the folders in the models.

_images/sym_06.png
  • Step 7 Add name of model and edit name.

Note

The name of the model must be added in the line of Model.name, and the code should be written using the editor by clicking the button for the Model.file and saving it in the directory of models.

_images/sym_07.png
  • Step 8 Create a PyAMS model for resistance..

_images/sym_08.png

you can attach symbol with PyAMS model by placed or saved in the same directory with the same name of model with extension *.py

_images/sym_09.png

The modeling of analog elements in PyAMS is based on writing their description using the Python language respecting the following structure:

    1. Declaration of the library;

    1. Creation of the name of the model;

    1. Adding parameters with an initial value;

    1. Adding type of signals (current or voltage);

    1. Adding sub-models if available;

    1. Definition of relations between signals and parameters;

Note

The name of model must have the same name Model.name in the symbol editor.

_images/sym_10.png
  • Step 8 You can add a description of symbol to help the designer (using the Help menu).

_images/sym_11.png
  • Step 9 You can organize your new symbol.

_images/sym_12.png
  • Step 10 By up down library or symbols

_images/sym_13.png
  • Step 11 Update the library on the PyAMS software.

_images/sym_14.png