PSpice User Guide

PSpice User Guide

Issue link: https://resources.pcb.cadence.com/i/1180526

Contents of this Issue

Navigation

Page 322 of 896

PSpice A/D User Guide Creating parts for models October 2019 323 Product Version 17.4-2019 © 2022 All Rights Reserved. V^@REFDES %+ %- ?DC|DC=@DC| ?AC|AC=@AC| Sample translation V_V6 vp vm DC=5v where REFDES equals V6, VSRC is connected to nodes vp and vm, DC is set to 5v, and AC is undefined. Sample translation V_V6 vp vm DC=5v AC=1v where, in addition to the settings for the previous translation, AC is set to 1v. Parameterized subcircuit call (X) template Suppose you have a subcircuit Z that has: ■ two pins: a and b ■ a subcircuit parameter: G, where G defaults to 1000 when no value is supplied To allow the parameter to be changed on the schematic page, treat G as an property in the template. Template X^@REFDES %a %b Z PARAMS: ?G|G=@G| ~G|G=1000| Note: For clarity, the PSPICETEMPLATE property value is shown here in multiple lines; in a part definition, it is specified in one line (no line breaks). Equivalent template (using the if...else form) X^@REFDES %a %b Z PARAMS: ?G|G=@G||G=1000| Sample translation X_U33 101 102 Z PARAMS: G=1024 where REFDES equals U33, G is set to 1024, and the subcircuit connects to nets 101 and 102. Sample translation X_U33 101 102 Z PARAMS: G=1000

Articles in this issue

view archives of PSpice User Guide - PSpice User Guide