CHAPTER 7 - Cellular System Design Tradeoffs

EXAMPLE 7.7 - PG NO.195

In [1]:
#page no.195
Nmacro=7.
Nchmacro=16.
C1=Nmacro*Nchmacro#channel capacity 

Nminpmac=4.
C2=Nmacro*Nchmacro*Nminpmac

Nmicpmin=4.
C3=Nmacro*Nchmacro*Nminpmac*Nmicpmin

print '%s %d %s' %('channel capacity of macrocell system is =',C1,'channels')
print '%s %d %s' %('channel capacity of minicell system is =',C2,'channels')
print '%s %d %s' %('channel capacity of minicell system is =',C3,'channels')
channel capacity of macrocell system is = 112 channels
channel capacity of minicell system is = 448 channels
channel capacity of minicell system is = 1792 channels

EXAMPLE 7.8 - PG NO.195

In [2]:
#page no.195
r0=2.*10.**3.
r1=1.*10.**3.
nl=4.#no. of large cells
ns=(r0/r1)**2.*nl-1.#split cells within area=split cells within square-1
ncpl=120.
n2=nl*ncpl#no. of channels without cell splitting
ncps=120.
n1=ns*ncps#no. of channels with cell splitting
inc=n1/n2#increase in the number of cells
print'%s %.2f %s' %('increase in the number of cells is =',inc,'times')
increase in the number of cells is = 3.75 times

EXAMPLE 7.10 - PG NO.220

In [3]:
#page no. 220
k=184.#information bits
n=224.#encoded bits
print'%s %.f %s' %('number of parity check bits is =',n-k,'bits')
r=k/n#code rate
print'%s %.2f' %('the code rate of block encoder is =',r)
number of parity check bits is = 40 bits
the code rate of block encoder is = 0.82

EXAMPLE 7.11 - PG NO.227

In [4]:
#page no. 227
nip=228.
nop=456.
cr=nop/nip
ntdma=8.#no.of TDMA blocks
nebptd=nop/ntdma#no. of bits/tdma frame
print'%s %d' %('Number of encoded data bits in each TDMA frame is =',nebptd)
ttdma=4.6*10**-3.#1 TDMA frame duration
tttdma=ntdma*ttdma
print'%s %.1f %s' %('Delay in reconstructing the codewords to the reception of 8 TDMA frames is =',tttdma*10**3,'ms')
Number of encoded data bits in each TDMA frame is = 57
Delay in reconstructing the codewords to the reception of 8 TDMA frames is = 36.8 ms