UNIVERSITY OF CALIFORNIA AT BERKELEYCollege of EngineeringDepartment of Electrical Engineering and Computer SciencesEE105 Lab ExperimentsPrelab 1: Introduction to SPICEName:Lab Section:1. Before you begin, you will need some instructions on how to run and use HSPICE. We have a tutorialsp e c ifically for EE 105 containing instructions for both the Windows and UNIX versions of HSPICE.The tutorial includes a number of examples to help you get started.• HSPICE Tutorial2. Figure 1 shows a simple network of resistors and a capacitor. Find the transfer functions vx/vsandvy/vs(as functions of jω) by hand.−vs+1 kΩ1 kΩ+vx−1 pF1 kΩ+vy−Figure 1: Circuit to simulate for the prelab12vxvs=vyvs=3. Use the transfer functions you derived to make Bode plots (magnitude and phase) for vx/vsand vy/vs.On each graph, indicate which curve is the magnitude and which is the phase. Note: If you need areview of Bode plots, read the Bode Plot Tutorial.−20020|vx/vs| (dB)105106107108109101010111012ω (rad/s)−45045Arg (vx/vs) (degrees)3−60−40−200204060|vy/vs| (dB)105106107108109101010111012ω (rad/s)−135−90−4504590135Arg (vy/vs) (degrees)4. Now write an HSPICE netlist for this circuit.5. Perform a n AC analysis of this circuit from 100 kHz to 1 THz in HSPICE. Attach your netlist to thisworksheet.6. Use Awaves to generate Bode plots (magnitude and phase) for the circuit in Figure 1 for vx/vsandvy/vs. Do the results agree with your hand c alculations? Hint: The default x-axis in Awaves hasunits Hz, not r ad/s. Note: If you do not have a 3-button mouse, you will not be able to generate amagnitude Bode plot. Instead, simply plot |vx/vs| and |vy/vs| on a log-log plot by right-clicking theaxes and selecting “Set Logarithmic Scale”.7. Turn in your hand calculations, netlist, and Bode plots (hand-made a nd simulated) at the beginningof your lab for checkoff. Please print your plots with a white background. You can set awhite background in Awaves by clicking Window → Flip
View Full Document