summaryrefslogtreecommitdiff
path: root/Microwave_Engineering_by_G._S._Raghuvanshi/Ch8.ipynb
blob: e05f6096b0dcc2d2fc69ee0492f36a9eccf9ee1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
{
 "metadata": {
  "name": "",
  "signature": "sha256:1c099612373c83d96585e30f362b0f5d48107f5099d65d556d32340ac8900c86"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Ch-8 : Microwave Solid State Control Device"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Page Number: 389 Example 8.1"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from __future__ import division \n",
      "from math import pi, sqrt, log10\n",
      "#Given\n",
      "Rf=0.5  #ohm\n",
      "Rr=1  #ohm\n",
      "Ls=0.3e-9  #H\n",
      "Cj=0.1e-12  #F\n",
      "f=3.18e9  #Hz\n",
      "Z0=50  #ohm\n",
      "\n",
      "Zf=Rf+(1J*round(2*pi*f*Ls)) \n",
      "Zr=Rr+(1J*(round(2*pi*f*Ls)-(1/(2*pi*f*Cj)))) \n",
      "\n",
      "#Series Configuration\n",
      "print 'Series Configuration' \n",
      "\n",
      "#Insertion Loss\n",
      "x=(2*Z0)/((2*Z0)+Zf) \n",
      "x1=sqrt(((x.real))**2+((x.imag))**2) \n",
      "IN=-20*log10(x1) \n",
      "print 'Insertion Loss: %0.3f'%IN,'dB'\n",
      "\n",
      "#Isolation Loss\n",
      "y=(2*Z0)/((2*Z0)+Zr) \n",
      "y1=sqrt(((y.real))**2+((y.imag))**2) \n",
      "IS=-20*log10(y1) \n",
      "print 'Isolation Loss: %0.3f'%IS,'dB'\n",
      "\n",
      "#Shunt Configuration\n",
      "print 'Shunt Configuration' \n",
      "\n",
      "#Insertion Loss\n",
      "a=(2*Zr)/((2*Zr)+Z0) \n",
      "a1=sqrt(((a.real))**2+((a.imag))**2) \n",
      "INs=-20*log10(a1) \n",
      "print 'Insertion Loss: %0.3f'%INs,'dB'\n",
      "\n",
      "#Isolation Loss\n",
      "b=(2*Zf)/((2*Zf)+Z0) \n",
      "b1=sqrt(((b.real))**2+((b.imag))**2) \n",
      "ISs=-20*log10(b1) \n",
      "print 'Isolation Loss: %0.3f'%ISs,'dB'\n",
      "\n",
      "#Answer for Series configuration insertion loss is 0.058 but is given as 0.58db"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Series Configuration\n",
        "Insertion Loss: 0.059 dB\n",
        "Isolation Loss: 14.061 dB\n",
        "Shunt Configuration\n",
        "Insertion Loss: 0.012 dB\n",
        "Isolation Loss: 12.772 dB\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Page Number: 390 Example 8.2"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      " \n",
      "#Given\n",
      "Rf=1  #ohm\n",
      "Rr=4  #ohm\n",
      "Ls=0.3e-9  #H\n",
      "Cj=0.1e-12  #F\n",
      "f=3.18e9  #Hz\n",
      "Z0=50  #ohm\n",
      "\n",
      "Zf=Rf+(1J*round(2*pi*f*Ls)) \n",
      "Zr=Rr+(1J*(round(2*pi*f*Ls)-(1/(2*pi*f*Cj)))) \n",
      "\n",
      "#Series Configuration\n",
      "print 'Series Configuration' \n",
      "\n",
      "#Insertion Loss\n",
      "x=(2*Z0)/((2*Z0)+Zf) \n",
      "x1=sqrt(((x.real))**2+((x.imag))**2) \n",
      "IN=-20*log10(x1) \n",
      "print 'Insertion Loss: %0.3f'%IN,'dB'\n",
      "\n",
      "#Isolation Loss\n",
      "y=(2*Z0)/((2*Z0)+Zr) \n",
      "y1=sqrt(((y.real))**2+((y.imag))**2) \n",
      "IS=-20*log10(y1) \n",
      "print 'Isolation Loss: %0.3f'%IS,'dB'\n",
      "\n",
      "#Shunt Configuration\n",
      "print 'Shunt Configuration' \n",
      "\n",
      "#Insertion Loss\n",
      "a=(2*Zr)/((2*Zr)+Z0) \n",
      "a1=sqrt(((a.real))**2+((a.imag))**2) \n",
      "INs=-20*log10(a1) \n",
      "print 'Insertion Loss: %0.3f'%INs,'dB'\n",
      "\n",
      "#Isolation Loss\n",
      "b=(2*Zf)/((2*Zf)+Z0) \n",
      "b1=sqrt(((b.real))**2+((b.imag))**2) \n",
      "ISs=-20*log10(b1) \n",
      "print 'Isolation Loss: %0.3f'%ISs,'dB'"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Series Configuration\n",
        "Insertion Loss: 0.102 dB\n",
        "Isolation Loss: 14.071 dB\n",
        "Shunt Configuration\n",
        "Insertion Loss: 0.015 dB\n",
        "Isolation Loss: 12.843 dB\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Page Number: 392 Example 8.3"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      " \n",
      "#Given\n",
      "Vbd=1000  #V\n",
      "f=30e9  #Hz\n",
      "E=3e5  #V/cm\n",
      "Cj=0.3e-12  #F\n",
      "er=11.8 \n",
      "e0=8.854e-12 \n",
      "\n",
      "W=Vbd/E \n",
      "Wpi=W/100  #mu\n",
      "\n",
      "#Total series resistance\n",
      "R=1/(2*pi*f*Cj) \n",
      "print 'Total series resistance: %0.3f'%R, 'ohms'\n",
      "\n",
      "#Junction Area\n",
      "A=(Cj*Wpi)/(e0*er) \n",
      "print 'Junction Area: %0.3f'%(A*10000), 'cm2'"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Total series resistance: 17.684 ohms\n",
        "Junction Area: 0.001 cm2\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Page Number: 428 Example 8.6"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      " \n",
      "#Given\n",
      "MQ=10 \n",
      "M=0.4 \n",
      "r=20 \n",
      "Td=300  #K\n",
      "T=290  #K\n",
      "\n",
      "x=(MQ*MQ)/r \n",
      "#Power Gain\n",
      "Ap=(r*x)/((1+sqrt(1+x))**2) \n",
      "Apdb=10*log10(Ap) \n",
      "print 'Power gain: %0.3f'%Apdb,'dB'\n",
      "\n",
      "#Noise figure\n",
      "z=(Td/T)/sqrt(1+((MQ*MQ)/r)) \n",
      "F=1+z \n",
      "Fdb=10*log10(F) \n",
      "print 'Nosie figure: %0.3f'%F,'dB'\n",
      "\n",
      "#Bandwidth\n",
      "BW=2*M*sqrt(r) \n",
      "print 'Bandwidth: %0.3f'%BW"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Power gain: 9.245 dB\n",
        "Nosie figure: 1.422 dB\n",
        "Bandwidth: 3.578\n"
       ]
      }
     ],
     "prompt_number": 4
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Page Number: 428 Example 8.7"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      " \n",
      "#Given\n",
      "MQ=10 \n",
      "r=10 \n",
      "\n",
      "x=(MQ*MQ)/r \n",
      "\n",
      "#Gain\n",
      "Ap=(r*x)/((1+sqrt(1+x))**2) \n",
      "Apdb=10*log10(Ap) \n",
      "print 'Gain: %0.3f'%Apdb,'dB'"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Gain: 7.297 dB\n"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Page Number: 429 Example 8.8"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      " \n",
      "#Given\n",
      "Rs=1  #ohm\n",
      "ws=5e9  #Hz\n",
      "M=0.25 \n",
      "C0=2e-12  #F\n",
      "\n",
      "#(i) Effective Q\n",
      "Q=1/(Rs*ws*C0*(1-(M*M))) \n",
      "print 'Effective Q: %0.3f'%Q"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Effective Q: 106.667\n"
       ]
      }
     ],
     "prompt_number": 6
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Page Number: 434 Example 8.9"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      " \n",
      "#Given\n",
      "e=0.0001 \n",
      "s=330 \n",
      "\n",
      "#Charge transfer effciency\n",
      "n=1-e \n",
      "\n",
      "#Final charge pulse\n",
      "#x=P/P0\n",
      "x=(1-(e*s)) \n",
      "print 'Final charge pulse:' ,x"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Final charge pulse: 0.967\n"
       ]
      }
     ],
     "prompt_number": 7
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Page Number: 434 Example 8.10"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      " \n",
      "#Given\n",
      "Qmax=0.05e-12  #C\n",
      "f=10e6  #Hz\n",
      "V=10  #V\n",
      "n=3 \n",
      "\n",
      "#Power disspated per bit\n",
      "P=n*f*V*Qmax \n",
      "print 'Power disspated per bit:',P*10**6, 'muW'"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Power disspated per bit: 15.0 muW\n"
       ]
      }
     ],
     "prompt_number": 8
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Page Number: 434 Example 8.11"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      " \n",
      "#Given\n",
      "e0=8.854e-12 \n",
      "er=3.9 \n",
      "d=0.15e-6  #m\n",
      "e=1.6e-19  #J\n",
      "Nmax=2.2e16  #m-2\n",
      "A=0.6e-8  #m\n",
      "P=0.67e-3  #W\n",
      "n=3 \n",
      "\n",
      "#(i) Junction capacitance\n",
      "Ci=(e0*er)/d \n",
      "\n",
      "#Gate voltage\n",
      "V=(Nmax*e)/Ci \n",
      "print 'Gate voltage: %0.3f'%V,'V'\n",
      "\n",
      "#(ii) Charge stored\n",
      "Qmax=Nmax*e*A \n",
      "\n",
      "#Clock frequency\n",
      "f=P/(n*V*Qmax) \n",
      "print 'Clock frequency: %0.3f'%(f/10**6),'MHz'"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Gate voltage: 15.291 V\n",
        "Clock frequency: 0.692 MHz\n"
       ]
      }
     ],
     "prompt_number": 7
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Page Number: 435 Example 8.12"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      " \n",
      "#Given\n",
      "Qmax=0.06e-12  #C\n",
      "f=20e6  #Hz\n",
      "V=10  #V\n",
      "n=3 \n",
      "\n",
      "#Power disspated per bit\n",
      "P=n*f*V*Qmax \n",
      "print 'Power disspated per bit:',P*10**6, 'muW'"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Power disspated per bit: 36.0 muW\n"
       ]
      }
     ],
     "prompt_number": 10
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Page Number: 435 Example 8.13"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      " \n",
      "#Given\n",
      "e0=8.854e-12 \n",
      "er=4 \n",
      "d=0.1e-6  #m\n",
      "si=0.85 \n",
      "e=1.6e-19  #J\n",
      "Na=1e20 \n",
      "\n",
      "Ci=(e0*er)/d \n",
      "print 'Junction capacitance: %0.5f'%Ci, 'F/m'\n",
      "\n",
      "W=sqrt((2*e0*er*si)/(e*Na)) \n",
      "print 'Depletion layer width: %0.3e'%W,'m'"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Junction capacitance: 0.00035 F/m\n",
        "Depletion layer width: 1.940e-06 m\n"
       ]
      }
     ],
     "prompt_number": 12
    }
   ],
   "metadata": {}
  }
 ]
}