PSpice User Guide

PSpice User Guide

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

Contents of this Issue

Navigation

Page 323 of 896

PSpice A/D User Guide Creating parts for models October 2019 324 Product Version 17.4-2019 © 2022 All Rights Reserved. where the settings of the previous translation apply except that G is undefined. Digital stimulus parts with variable width pins template For a digital stimulus device template (such as that for a DIGSTIM part), a pin name can be preceded by a * character. This signifies that the pin can be connected to a bus and the width of the pin is set to be equal to the width of the bus. Template U^@REFDES STIM(%#PIN, 0) %*PIN \n+ STIMULUS=@STIMULUS where #PIN refers to a variable width pin. 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). Sample translation U_U1 STIM(4,0) 5PIN1 %PIN2 %PIN3 %PIN4 + STIMULUS=mystim where the stimulus is connected to a four-input bus, a[0-3]. Pin callout in subcircuit templates The number and sequence of pins named in a template for a subcircuit must agree with the definition of the subcircuit itself—that is, the node names listed in the .SUBCKT statement, which heads the definition of a subcircuit. These are the pinouts of the subcircuit. To find out how to define subcircuits, refer to the .SUBCKT command in the PSpice A/D Reference Guide. Example: Consider the following first line of a (hypothetical) subcircuit definition: .SUBCKT SAMPLE 10 3 27 2 The four numbers following the name SAMPLE—10, 3, 27, and 2— are the node names for this subcircuit's pinouts.

Articles in this issue

view archives of PSpice User Guide - PSpice User Guide