Main Content

身后人

Punctures data according to puncture vector

  • Library:
  • Wireless HDL Toolbox / Error Detection and Correction

  • 身后人block

Description

The身后人block punctures input data based on a specified puncture vector. The block accepts puncture vector either from theInput port或者from thePropertyof the block and supports encoder rates from 1/2 to 1/7. It provides an architecture suitable for HDL code generation and hardware deployment.

块支持金宝appContinuousandFramemode operations and accepts both scalar and vector data. InContinuousmode, the block accepts input data and puncture vector, along with control signals valid and syncPunc and outputs punctured data with a valid signal. InFramemode, the block accepts input data and puncture vector, along with asamplecontrolbus and outputs punctured data with asamplecontrolbus.

块支持金宝appcommunication standards such as Wi-Fi (802.11a/b/g/n/ac), digital satellite communications, digital video broadcast (DVB), WiFi (IEEE 802.11a/b/g/n/ac), WiMax (IEEE 802.16), IEEE 802.16, HIPERLAN, and HiperMAN.

Ports

Input

expand all

Input data sample, specified as a scalar or vector.

如果输入为矢量类型,则输入数据的大小必须与所选的Encoder rateparameter value.

For example, if theEncoder rateis1/2, the input data size must be 2-by-1.

Data Types:Boolean|fixdt(0,1,0)

Control signal that indicates if the input data is valid. When this value is1(true), the block accepts the values on thedatainput port. When this value is0(false), the block ignores the values on thedatainput port.

Dependencies

To enable this port, set theOperation modeparameter toContinuous.

Data Types:Boolean

Puncture vector, specified as a column vector of binary values. The length of the puncture vector must be an integral multiple ofn, whereEncoder rateis1/n. For encoder rates 1/2, 1/3, 1/5, and 1/6, the maximum length of the旁观者is 30 and for encoder rates 1/4 and 1/7, the maximum length of the旁观者is 28.

You can change the旁观者pattern, but its length must remain constant. If the maximum puncture vector length provided is 10, the block supports all the vector lengths below 10.

Example:对于编码器速率1/2及其穿刺率2/3、3/4和5/6,相应的矢量长度为4、6和10Puncture vector sourceparameter toInput port. To support the largest vector size, the vector length must be 10 for all rates. For 2/3 and 3/4 rates, pad the旁观者输入0创建10-element向量。The puncture vector for rate 3/4 is[1 1 0 1 1 0]'. For a vector length of 10, use[0 0 0 0 1 1 0 1 1 0]'as the input旁观者.

When theOperation modeparameter is set toContinuous, the block captures the value of旁观者when bothSyncpuncand inputvalidport signals are1(true).

When theOperation modeparameter is set toFrame, the block captures the value of旁观者when bothctrl.startandctrl.validsignals are1(true).

Dependencies

To enable this port, set thePuncture vector sourceparameter toInput port.

Data Types:Boolean

Puncture synchronization signal, specified as aBooleanscalar value. This input is a control signal that synchronizes the puncture vector input with the input sample. When bothSyncpuncandvalidare1(true), the block aligns the puncture vector to begin puncturing. The block captures the vector from either the旁观者input port or from thePuncture vectorparameter.

The block ignores the旁观者signal values whenSyncpuncsignal value is0(false).

Dependencies

To enable this port, set theOperation modeparameter toContinuous.

Data Types:Boolean

Control signals accompanying the sample stream, specified as asamplecontrolbus. The bus includes thestart,end, andvalidcontrol signals, which indicate the boundaries of the frame and the validity of the input samples.

  • start— Indicates start of input frame.

  • end— Indicates end of input frame.

  • valid— Indicates that the data on the inputdataport is valid.

Dependencies

To enable this port, set theOperation modeparameter toFrame. In this mode, the block synchronizes the puncture vector using control signals in the inputsamplecontrolbus.

Data Types:bus

Output

expand all

刺穿的输出数据,返回为N-1列向量,其中nvalue ranges from 1 to 7.

Data Types:Boolean|fixdt(0,1,0)

Control signal that indicates when the sample from thedataoutput port is valid. The block sets thevalidport to1(true) when there is a valid sample on the outputdataport.

Dependencies

To enable this port, set theOperation modeparameter toContinuous.

Data Types:Boolean

Control signals accompanying the sample stream, returned as asamplecontrolbus. The bus includes thestart,end, andvalidcontrol signals, which indicate the boundaries of the frame and the validity of the samples.

  • start— Indicates start of output frame.

  • end— Indicates end of output frame.

  • valid— Indicates that the data on the outputdataport is valid.

Dependencies

To enable this port, set theOperation modeparameter toFrame.

Data Types:bus

Parameters

expand all

Mode of operation, specified as one of these modes:

  • Continuous— Allows changes to旁观者at any time. To force the block to capture the new puncture vector, set theSyncpuncparameter to1(true).

  • Frame— Allows changes to旁观者only at the start of a frame, indicated byctrl.start.

选择刺穿数据的编码器速率。

Source of puncture vector, specified as:

  • Input port— Specify the puncture vector using the旁观者port.

  • Property— Specify the puncture vector using thePuncture vectorparameter.

The length of the puncture vector must be an integral multiple ofn, whereEncoder rateis1/n. For encoder rates 1/2, 1/3, 1/5, and 1/6, the maximum length of the puncture vector is 30 and for encoder rates 1/4 and 1/7 the maximum length of the puncture vector is 28.

Dependencies

To enable this port, set thePuncture vector sourceparameter toProperty.

Algorithms

expand all

The puncturing algorithm checks everynelements of a puncture vector, with anEncoder rate1/n, until it reaches a nonzero combination. Then, it punctures the input data and provides the punctured output data.

For example, if theEncoder rateis1/3and the puncture vector is[0; 0; 0; 1; 0; 1], the block checks every 3 elements until it reaches a nonzero combination in the puncture vector and then punctures the input data based on the type of inputs (scalar or vector) and operation modes (Continuous或者Frame).

参考

[1]Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications.IEEE Std 802.11™- 2016 Part 11.

[2] EN 300 421 V1.1.2Digital Video Broadcasting (DVB); Framing structure, Channel coding and modulation for 11/12 GHz satellite services.

Extended Capabilities

Version History

Introduced in R2019b