IntroductionWindows vs. UNIXWindowsConnecting From HomeRunning HSPICEUNIXSoftwareRunning SSHRunning HSPICESimulating Circuits in HSPICE and AwavesHSPICE Netlist SyntaxExamplesTransient analysis of a simple RC circuitOperating point analysis for a diodeDC analysis of a diodeAC analysis of a high-pass filterTransfer function analysisPole-zero analysisThe .measure commandIncluding another fileUsing AwavesInterface descriptionDeleting plotsPrinting plotsMaking a measurementZoomingUpdating a panelSyntax ReferenceUNIVERSITY OF CALIFORNIA AT BERKELEYCollege of EngineeringDepartment of Ele ctrical Engine ering and Computer SciencesEE105 Lab Exp er imentsHSPICE TutorialContents1 Introduction 12 Windows vs. UNIX 12.1 Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12.1.1 Connecting From Home . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22.1.2 Running HSPICE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22.2 UNIX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32.2.1 Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32.2.2 Running SSH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42.2.3 Running HSPICE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Simulating Circuits in HSPICE and Awaves 53.1 HSPICE Netlist Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53.2 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63.2.1 Transient analysis of a simple RC circuit . . . . . . . . . . . . . . . . . . . . . . . . . . 63.2.2 Operating point analysis for a diode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73.2.3 DC analysis of a diode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83.2.4 AC analysis of a high-pass filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.2.5 Transfer function analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103.2.6 Pole-zero analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103.2.7 The .measure command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113.3 Including another file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 Using Awaves 134.1 Interface description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134.2 Deleting plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134.3 Printing plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134.4 Making a measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 34.5 Zooming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134.6 Updating a panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 Syntax Reference 141 Introd uctionThis tutorial was written specifically for the EE105 co urse at UC Berkeley. It outlines how to run HSPICE inWindows and UNIX, then delves into the details of creating netlists, simulating them, and using Awaves toplot the results. The appendix to this document serves as a syntax reference tha t may be useful throughoutthe semester.HSPICE is just a program that takes in a netlist (a simple text file), containing a circuit description a ndanalysis options, and outputs the analysis it has done on that circuit. An HSPICE netlist typically has a.sp extension, for example circuit.sp. Although HSPICE produces many output files, the only one that12 WINDOWS VS. UNIX 2you will nee d to …
View Full Document