aboutsummaryrefslogtreecommitdiffstats
path: root/gr-trellis/grc/trellis_pccc_decoder_x.block.yml
blob: f49ec91a700d8d09b1a9938f38c779a7199e315a (plain) (blame)
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
id: trellis_pccc_decoder_x
label: PCCC Decoder
category: '[Core]/Trellis Coding'

parameters:
-   id: out_type
    label: Output Type
    dtype: enum
    options: [i, s, b]
    option_labels: [Int, Short, Byte]
    option_attributes:
        io: [int, short, byte]
    hide: part
-   id: o_fsm_args
    label: FSM 1
    dtype: raw
-   id: o_init_state
    label: Initial State 1
    dtype: int
    default: '0'
-   id: o_final_state
    label: Final State 1
    dtype: int
    default: '-1'
-   id: i_fsm_args
    label: FSM 2
    dtype: raw
-   id: i_init_state
    label: Initial State 2
    dtype: int
    default: '0'
-   id: i_final_state
    label: Final State 2
    dtype: int
    default: '-1'
-   id: interleaver
    label: Interleaver
    dtype: raw
-   id: block_size
    label: Block Size
    dtype: int
-   id: iterations
    label: Iterations
    dtype: int
    default: '10'
-   id: siso_type
    label: SISO Type
    dtype: enum
    options: [trellis.TRELLIS_MIN_SUM, trellis.TRELLIS_SUM_PRODUCT]
    option_labels: [Min Sum, Sum Product]

inputs:
-   domain: stream
    dtype: float

outputs:
-   domain: stream
    dtype: ${ out_type.io }

asserts:
- ${ (isinstance(eval(""" o_fsm_args """[1:-1], locals(),globals()), str) and open(o_fsm_args).close()) or True }
- ${ (isinstance(eval(""" i_fsm_args """[1:-1], locals(),globals()), str) and open(i_fsm_args).close()) or True }

templates:
    imports: from gnuradio import trellis
    make: "trellis.pccc_decoder_${out_type}(\n    trellis.fsm(${o_fsm_args}), ${o_init_state},\
        \ ${o_final_state},\n    trellis.fsm(${i_fsm_args}), ${i_init_state}, ${i_final_state},\n\
        \    trellis.interleaver(${interleaver}),\n    ${block_size},\n    ${iterations},\n\
        \                ${siso_type})\n  "

documentation: |-
    PCCC turbo Decoder.
    The fsm and interleaver arguments are passed directly to the trellis.fsm() and trellis.interleaver() constructors.

file_format: 1