This function mos2RenameParameters assigns the external (given by the user) device parameters to the internal parameters. It also does the analysis of the IsGiven values (level 2).
function mos2RenameParametersDev extends Modelica.Icons.Function; input Spice3.Internal.ModelcardMOS2 ex; input Integer mtype; input SI.Length W "Width of channel region"; input SI.Length L "Length of channel region"; input SI.Area AD "Area of drain diffusion"; input SI.Area AS "Area of source diffusion"; input SI.Length PD "Drain perimeter"; input SI.Length PS "Source perimeter"; input Real NRD "Length of drain squares"; input Real NRS "Length of Source squares"; 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 Spice3.Internal.Mosfet.Mosfet dev "Output record Mosfet"; end mos2RenameParametersDev;