Download Lab 2 Integration

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Screenwriting wikipedia , lookup

Transcript
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.
• 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.