diff options
Diffstat (limited to 'gr-fec/grc/variable_polar_decoder_sc_systematic.block.yml')
-rw-r--r-- | gr-fec/grc/variable_polar_decoder_sc_systematic.block.yml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/gr-fec/grc/variable_polar_decoder_sc_systematic.block.yml b/gr-fec/grc/variable_polar_decoder_sc_systematic.block.yml new file mode 100644 index 0000000000..b730b20068 --- /dev/null +++ b/gr-fec/grc/variable_polar_decoder_sc_systematic.block.yml @@ -0,0 +1,42 @@ +id: variable_polar_decoder_sc_systematic_def +label: systematic POLAR Decoder SC Definition + +parameters: +- id: ndim + label: Parallelism + dtype: enum + default: '0' + options: ['0', '1', '2'] +- id: dim1 + label: Dimension 1 + dtype: int + default: '1' + hide: ${ ('none' if (int(ndim) >= 1) else 'all') } +- id: dim2 + label: Dimension 2 + dtype: int + default: '4' + hide: ${ ('none' if (int(ndim) >= 2) else 'all') } +- id: block_size + label: Block size (N) + dtype: int +- id: num_info_bits + label: '#Info Bits (K)' + dtype: int +- id: frozen_bit_positions + label: Frozen Bit Positions + dtype: int_vector +value: ${ fec.polar_decoder_sc_systematic.make(block_size, num_info_bits, frozen_bit_positions) + } + +templates: + imports: from gnuradio import fec + var_make: "% if int(ndim)==0 #:\nself.${id} = ${id} = fec.polar_decoder_sc_systematic.make(${block_size},\ + \ ${num_info_bits}, ${frozen_bit_positions}) \n% elif int(ndim)==1 #:\nself.${id}\ + \ = ${id} = map((lambda a: fec.polar_decoder_sc_systematic.make(${block_size},\ + \ ${num_info_bits}, ${frozen_bit_positions})), range(0, ${dim1}) ) \n% else:\n\ + self.${id} = ${id} = map((lambda b: map((lambda a: fec.polar_decoder_sc_systematic.make(${block_size},\ + \ ${num_info_bits}, ${frozen_bit_positions})), range(0, ${dim2}))), range(0,\ + \ ${dim1})) \n% endif" + +file_format: 1 |