1 / 2

CSE245 Lab 2

CSE245 Lab 2. R1=1k R2=2k R3=3k C1=100f C2=200f L1=1000n V1 is a trapezoidal pusle voltage source. SPICE netlist for V1 is: pulse(0 1 0n 0.50n 0.50n 4n 10n) Initial conditions for C1, C2 and L1: 0. CSE245 Lab 2. 1) Use PowerSPICE or HSPICE to simulate the circuit in slide 1.

zaria
Download Presentation

CSE245 Lab 2

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CSE245 Lab 2 • R1=1k • R2=2k • R3=3k • C1=100f • C2=200f • L1=1000n • V1 is a trapezoidal pusle voltage source. SPICE netlist for V1 is: pulse(0 1 0n 0.50n 0.50n 4n 10n) • Initial conditions for C1, C2 and L1: 0

  2. CSE245 Lab 2 • 1) Use PowerSPICE or HSPICE to simulate the circuit in slide 1. • Transient simulation from 0 to 10ns.Plot v(1), v(2), v(3), v(4). • 2) Use Modified Nodal Analysis (MNA) to write the transient circuit matrix for the circuit. For capacitors and inductors, use Trapezoidal integration method. A sample MNA matrix could be found in the Matlab script of lab1. • 3) Write a Matlab script to simulate the circuit in slide 1. • Simulate the circuit (Transient simulation from 0 to 10ns) with 3 different integration methods: Forward Euler, Backward Euler and Trapezoidal. • Devise a time stepping scheme that uses as few as time points as possible. In lab1 one we used a fixed time step delta, in this lab the general idea is to use small time steps when the circuit is changing and large time steps when the circuit is flat. • 4) Deliverables • MNA Matrix (trapezoidal integration). • Matlab script, explain your time stepping scheme. • Comparison and explanation of the results from Matlab and different integration methods. • Simulation waveforms of v(1), v(2), v(3), v(4) from both Matlab and PowerSPICE/HSPICE. Compare your Matlab results with PowerSPICE / HSPICE.

More Related