discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] convolutional code + viterbi working


From: Achilleas Anastasopoulos
Subject: Re: [Discuss-gnuradio] convolutional code + viterbi working
Date: Thu, 22 Feb 2007 23:45:56 -0500
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

vincenzo,

Regarding the inter/deinterleaver addition you have to:

instantiate an interleaver object of size K
where K is the length of the data you want to interleave.
There are different ways to do this. The simplest is a random interleaver:

int_object=trellis.interleaver(K,666) # last parameter is a seed

then you have to instantiate the interleaver and deinterleaver
blocks and put them before and after the CC encoder, Viterbi decoder, respectively, eg:

inter = trellis.permutation(int_object.K(),int_object.INTER(),1,gr.sizeof_char)

deinter = trellis.permutation(int_object.K(),int_object.DEINTER(),1,gr.sizeof_char)

the last argument is the input/output signature size.
the second to last argument says how many of these i/o items you want
to consider as a block that will be permuted according to the
permutation described in the inter_object.

Achilleas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]