This function mos1RenameParametersDev assigns the external (given by the user) device parameters to the internal parameters. It also does the analysis of the IsGiven values (level 1).
function mos1RenameParametersDev extends Modelica.Icons.Function; input ModelcardMOS ex; input Integer mtype; input SI.Length W "Channel Width"; input SI.Length L "Channel Length"; input SI.Area AD "Area of the drain diffusion"; input SI.Area AS "Area of the source diffusion"; input SI.Length PD "Perimeter of the drain junction"; input SI.Length PS "Perimeter of the source junction"; input Real NRD "Number of squares of the drain diffusions"; input Real NRS "Number of squares of the source diffusions"; input Integer OFF "Optional initial condition: 0 - IC not used, 1 - IC used, not implemented yet"; input Real IC "Initial condition values, not implemented yet"; input SI.Temp_C TEMP "Temperature"; output Mosfet.Mosfet dev "Output record Mosfet"; end mos1RenameParametersDev;