Digital Electronics and Design with VHDL

Objective: This chapter describes the use of SPICE (Simulation Program with Integrated Circuit Emphasis) to model and simulate electronic circuits. The main types of analysis (DC, AC, transient, and Monte Carlo) are illustrated by several complete examples. This chapter is complemented with a tutorial on PSpice, a popular SPICE simulator, in Appendix B.
Chapter Contents
| 25.1 | About SPICE |
| 25.2 | Types of Analysis |
| 25.3 | Basic Structure of SPICE Code |
| 25.4 | Declarations of Electronic Devices |
| 25.5 | Declarations of Independent DC Sources |
| 25.6 | Declarations of Independent AC Sources |
| 25.7 | Declarations of Dependent Sources |
| 25.8 | SPICE Inputs and Outputs |
| 25.9 | DC Response Examples |
| 25.10 | Transient Response Examples |
| 25.11 | AC Response Example |
| 25.12 | Monte Carlo Analysis |
| 25.13 | Subcircuits |
| 25.14 | Exercises Involving Combinational Logic Circuits |
| 25.15 | Exercises Involving Combinational arithmetic Circuits |
| 25.16 | Exercises Involving Registers |
| 25.17 | Exercises Involving Sequential Circuits |
SPICE (Simulation Program with Integrated Circuit Emphasis) is a general purpose simulator for electronic circuits, originally developed at UC Berkeley in the 1970s. Even though intended mainly for analog and mixed (analog-digital) circuits, it is also appropriate for relatively small digital circuits, particularly in the characterization of standard cells. For very large digital systems, other simulation techniques, like VHDL testbenches (Chapter 24), are normally more adequate.
There are several commercial versions of SPICE, of which HSpice (for workstations, now provided by Synopsys) and PSpice (for PCs, now from Cadence) are the most popular. Version 15.7 of the latter is described is Appendix B and was employed to simulate all circuits presented...