daily pastebin goal
17%
SHARE
TWEET

Untitled

a guest Nov 1st, 2018 197 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Lab1
  2.  
  3. ***Settings***
  4. simulator lang=spice
  5. ***Parametrs***
  6. .PARA G=12
  7. .PARA A=200k
  8. .PARA Vdd=5
  9.  
  10. .SUBCKT Opamp N1 N2 N4
  11.  
  12. ***Netlist***
  13. *Elements*
  14.  
  15. R_1 N1 N2 200k*G
  16. R_0 N3 N4 75/G
  17. C_0 N4 0 G*1p
  18. *Controlled Voltage Source*
  19. E_V1 N3 0 N1 N2 200k
  20.  
  21. .ENDS
  22.  
  23. ***Netlist***
  24. X_Inverter 0 2 3 Opamp
  25. R_in 1 2 10k
  26. R_f 2 3 100k
  27. *V_in 1 0 5*
  28. V_in 1 0 PULSE(0 5 0 1u 1u 25u 50u)
  29.  
  30. ***Analysis***
  31. *.DC V_in 0 5 0.5*
  32. *.PRINT DC V(3)*
  33. .TRAN 0.5u 50u 0
  34. .PRINT TRAN V(3)
  35. .MEAS TRAN tpd TRIG V(1) VAL='0.5*Vdd' TD=10n RISE=1
  36. +TARG V(3) VAL='-5*Vdd' RISE=1
  37. .END
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top