summaryrefslogtreecommitdiff
path: root/gr-fec/grc/fec_bercurve_generator.block.yml
blob: 565a0cf6cd6d55eb4c2cc1667769167d43dea02a (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
id: fec_bercurve_generator
label: BER Curve Gen.

parameters:
-   id: esno
    label: Es/N0
    dtype: raw
    default: numpy.arange(0.0, 4.0, .5)
    hide: part
-   id: samp_rate
    label: Sample Rate
    dtype: float
    default: '3200000'
-   id: encoder_list
    label: Encoder list
    dtype: raw
    default: '0'
-   id: decoder_list
    label: Decoder list
    dtype: raw
    default: '0'
-   id: puncpat
    label: Puncture Pat.
    dtype: string
    default: '''11'''
-   id: threadtype
    label: Threading Type
    dtype: enum
    options: ['"capillary"', '"ordinary"', '"none"']
    option_labels: [Capillary, Ordinary, None]
    hide: part
-   id: seed
    label: Noise Seed
    dtype: int
    default: '0'
    hide: part

outputs:
-   domain: stream
    dtype: byte
    multiplicity: ${ len(esno)*2 }

templates:
    imports: |-
        from gnuradio import fec
        import numpy
    make: "fec.bercurve_generator(\n\t${encoder_list}, \\#size\n\t${decoder_list},\
        \ \\#name\n\t${esno}, \\#range of esnos\n\t${samp_rate}, \\#throttle\n   \
        \     ${threadtype}, \\#threading mode\n\t${puncpat}, \\#puncture pattern\n\
        \        ${seed} \\# noise gen. seed\n)\n  "

documentation: |-
    Note that this block tries to launch many parallel codes to run simultaneously. Thus, it requires that the definitions for each encoder and decoder (specified in the "Encoder list" and "Decoder list") be configured with a parallelism > 0. If the parallelism for one of the encoder or decoder definition blocks is configured to 0, you will likely see an error like:

        generic_decoder=decoder_list[i],
        TypeError: 'generic_decoder_sptr' object does not support indexing

        or

        generic_encoder=encoder_list[i],
        TypeError: 'generic_encoder_sptr' object does not support indexing

file_format: 1