Download HSPICE Simulation and Analysis User Guide

Transcript
Chapter 5: Sources and Stimuli
Independent Source Functions
The time from 0 to the first transition is:
tdelay+N*tsample-tr(tf)/2
■
N is the number of the same bit, from the beginning.
■
If the first transition is rising, this equation uses tr.
■
If the first transition is falling, it uses tf.
Example
The following example shows a pattern source with two b-strings:
*FILE: pattern source gereral form
v1 1 0 pat (5 0 0n 1n 1n 5n b1011 r=1 rb=2 b0m1z)
r1 1 0 1
In this pattern:
■
High voltage is 5 v
■
Low voltage is 0 v
■
Time delay is 0 n
■
Rise time is 1 n
■
Fall time is 1 n
■
Sample time is 5 n
The first b-string is 1011, which repeats once and then repeats from the
second bit, which is 0. The second b-string is 0m1z. Since neither R and RB is
specified here, they are set to the default value, which is R=0, RB=1.
Example
The following b-string and its repeat time R and repeating start bit RB cannot
use a parameter—it is considered as a undivided unit in HSPICE and can only
be defined in a .PAT command.
*FILE:pattern source using parameter
.param td=40ps tr=20ps tf=80ps tsample=400ps
VIN 1 0 PAT (2 0 td tr tf tsample b1010110 r=2)
r1 1 0 1
In this pattern:
150
■
High voltage is 2 V.
■
Low voltage is 0 V.
■
Time delay is 40 ps.
HSPICE® Simulation and Analysis User Guide
Y-2006.03