PSpice User Guide

PSpice User Guide

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

Contents of this Issue

Navigation

Page 614 of 884

PSpice User Guide Digital simulation October 2019 615 Product Version 17.4-2019 © 1999-2019 All Rights Reserved. To add a loop 1. In the Stimulus Editor, save and close the stimulus file. 2. In a standard text editor (such as Notepad), open the stimulus file. 3. Find the set of consecutive lines comprising the sequence that you want to repeat. Each relevant line begins with the time of the transition and ends with a value or change in value. To find out more about the syntax of the stimulus commands used in the stimulus file, refer to the online PSpice Reference Guide. 4. Before these lines, insert a line that uses this syntax: + Repeat for n_times where n_times is one of the following: ❑ A positive integer representing the number of repetitions. ❑ The keyword FOREVER, which means repeat this sequence for an unlimited number of times (like a clock signal). 5. Below these lines, insert a line that uses this syntax: + Endrepeat 6. From the File menu, choose Save. Given the example shown on page 3, if you wanted to repeat the sequence shown from point A to point B three times, then you would modify the stimulus file as shown here (added lines are in bold): + Repeat for 3 + +0s 000000000 + 250us INCR BY 000000001 + 500us 000000010 + 750us INCR BY 000000001 + 1ms 000000000 + Endrepeat Using the DIGCLOCK part The DIGCLOCK part allows you to define a clock signal by using the part's properties.

Articles in this issue

view archives of PSpice User Guide - PSpice User Guide