Download HSPICE Simulation and Analysis User Guide

Transcript
Chapter 5: Sources and Stimuli
Specifying a Digital Vector File
Where,
■
The first line is a comment line, because of the semicolon character.
■
The second line expects the output to be 1 for the first and fourth vectors,
while all others are expected to be low.
■
At 20 time units, HSPICE or HSPICE RF expects the first and second
vectors to be high, and the third and fourth to be low.
■
At 30 time units, HSPICE or HSPICE RF expects only the first vector to be
high, and all others low.
■
At 35 time units, HSPICE or HSPICE RF expects the output of the first two
vectors to be “don’t care”; it expects vectors 3 and 4 to be low.
Verilog Value Format
HSPICE or HSPICE RF accepts Verilog-sized format to specify numbers; for
example,
<size> ’<base format> <number>
Where:
■
<size> specifies the number of bits, in decimal format.
■
<base format> indicates:
■
•
binary (’b or ’B)
•
octal (’o or ’O)
•
hexadecimal (’h or ’H).
<number> values are combinations of the 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C,
D, E, and F characters. Depending on what base format you choose, only a
subset of these characters might be legal.
You can also use unknown values (X) and high-impedance (Z) in the
<number> field. An X or Z sets four bits in the hexadecimal base, three bits
in the octal base, or one bit in the binary base.
If the most significant bit of a number is 0, X, or Z, HSPICE or HSPICE RF
automatically extends the number (if necessary), to fill the remaining bits
with 0, X, or Z, respectively. If the most significant bit is 1, HSPICE or
HSPICE RF uses 0 to extend it.
214
HSPICE® Simulation and Analysis User Guide
Y-2006.03