summaryrefslogtreecommitdiff
path: root/Failed_Subcircuits/LOG_Amplifier/LOG_Amplifier.sub
blob: 4fc6b46ce14a2aa834a45911c75165d7c21bb257 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
* Subcircuit LOG_Amplifier
.subckt LOG_Amplifier /inp1 /nc /vout /vpos /vneg gnd /nc /inp2 
* c:\fossee\esim\library\subcircuitlibrary\log_amplifier\log_amplifier.cir
.include lm_741.sub
.include NPN.lib
x1 ? /inp1 gnd /vneg ? net-_q1-pad3_ /vpos ? lm_741
x2 ? /inp2 gnd /vneg ? /vout /vpos ? lm_741
q1 /inp1 net-_q1-pad2_ net-_q1-pad3_ Q2N2222
q2 /inp2 gnd net-_q1-pad3_ Q2N2222
r1  /vout net-_q1-pad2_ 3.2k
r2  net-_q1-pad2_ gnd 5k
c1  /vout /inp2 3.4u
* Control Statements

.ends LOG_Amplifier