blob: 2caa5992e78339c3458b7386ea9ce89606024a39 (
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
|
id: trellis_viterbi_x
label: Viterbi
category: '[Core]/Trellis Coding'
parameters:
- id: type
label: Type
dtype: enum
options: [i, s, b]
option_labels: [Int, Short, Byte]
option_attributes:
io: [int, short, byte]
hide: part
- id: fsm_args
label: FSM Args
dtype: raw
- id: block_size
label: Block Size
dtype: int
- id: init_state
label: Initial State
dtype: int
default: '0'
- id: final_state
label: Final State
dtype: int
default: '-1'
inputs:
- domain: stream
dtype: float
outputs:
- domain: stream
dtype: ${ type.io }
asserts:
- ${ (isinstance(eval(""" fsm_args """[1:-1], locals(),globals()), str) and open(fsm_args).close()) or True }
templates:
imports: from gnuradio import trellis
make: trellis.viterbi_${type}(trellis.fsm(${fsm_args}), ${block_size}, ${init_state},
${final_state})
callbacks:
- set_FSM(trellis.fsm(${fsm_args}))
- set_K(${block_size})
- set_S0(${init_state})
- set_SK(${final_state})
documentation: |-
Viterbi Decoder. The fsm arguments are passed directly to the trellis.fsm() constructor.
file_format: 1
|