main content

dvb-凯发k8网页登录

this example shows how to implement dvb-s2 receiver using simulink® blocks that are optimized for hdl code generation and hardware implementation.

this example shows how to model a digital video broadcast satellite second generation (dvb-s2) hdl receiver system by using the example to demodulate, deinterleave, decode using low density parity check (ldpc) and bose-chaudhuri-hocquenghem (bch) codes, and recover the stream bits.

model architecture

this section explains the high-level architecture of the dvb-s2 receiver model. the synchronization and plheader recovery block extracts the data symbols, estimates noise variance, and decodes physical layer (pl) header information from the rx input waveform signal. the symbol demodulator block demodulates the data symbols and computes soft bits. the deinterleaver block deinterleaves and fec decoder block decodes the soft bits to extract a dvb-s2 baseband frame signal. the stream recovery block extracts the bb header information and the output stream bits from the baseband frame.

this block diagram shows the high-level architecture of the model.

file structure

this example uses four simulink models, five matlab files, and one simulink data dictionary.

  • dvbs2hdlreceiver.slx — top-level simulink model.

  • dvbs2hdlsyncplheaderrecoverycore.slx — model reference that synchronizes time, frequency, and phase, and decode pl header.

  • dvbs2hdldemoddeinterleavefecdecodecore.slx — model reference that demodulates the symbols, deinterleaves the demodulated soft bits, and decodes the deinterleaved soft bits using forward error correction (fec). it discards the frames that does not support the configuration according to [ 1 ].

  • dvbs2hdlstreamrecoverycore.slx — model reference that recovers the stream of data bits.

  • getdvbs2ldpcparitymatrices.m — download the mat file that stores ldpc parity check matrices that are used to generate the receiver input waveform.

  • dvbs2hdlrxparameters.m — generate parameters for the dvbs2hdlsyncplheaderrecoverycore.slx model reference.

  • dvbs2hdlphasenoise.m — introduce phase noise to the input sequence.

  • dvbs2hdlrxinit.m — generate the transmitter waveform and initialize the dvbs2hdlsyncplheaderrecoverycore.slx model reference.

  • dvbs2hdlreceiververify.m — gather pl header parameters and stream recovered bits.

  • dvbs2hdlreceiverdata.sldd — simulink data dictionary to store bus signal configurations.

system interface

this figure shows the top-level overview of the dvbs2hdlreceiver.slx model.

model inputs

  • datain — input data, specified as an 18 bit complex data with a sample rate that is four times the symbol rate.

  • validin — control signal to validate the datain, specified as a boolean scalar.

  • rstccfo — control signal to reset the coarse frequency compensation loops, specified as a boolean scalar.

  • rstfcpo — control signal to reset the fine phase compensation loops, specified as a boolean scalar.

model outputs:

  • diagbus — bus signal with diagnosis information.

  • bitsout — decoded stream bits, returned as a boolean scalar.

  • startout — control signal for start of bitsout stream bits, returned as a boolean scalar.

  • endout — control signal for end of bitsout stream bits, returned as a boolean scalar.

  • validout — control signal to validate the bitsout, returned as a boolean scalar.

  • errorout — control signal to indicate packet crc failures. it can be ignored for non-packetized continuous streams.

  • invalidpkt — control signal to indicate invalid packets that can be discarded. it can be ignored for non-packetized continuous streams.

  • headercrcinfo — header crc status, returned as a 2 bit real data. msb bit high indicates a crc error, and lsb high indicates when the crc is considered.

  • numsynced — number of frames synchronized, returned as a 32 bit scalar integer

  • modcod — decoded modcod, returned as a 5 bit scalar integer.

  • ncoarsefreq — estimated normalized (with sample rate) coarse frequency offset, returned as a 21 bit scalar.

  • nfinefreq — estimated normalized (with symbol rate) fine frequency offset, returned as a 21 bit scalar.

  • bbheaderparams — the following are the list of bb header parameters:

  • tsorgs — input stream format, returned as a 2 bit real data.

  • sisormis — single or multiple input stream input, returned as a boolean scalar.

  • ccmoracm — constant coding modulation (ccm), or adaptive coding modulation (acm) or variable coding modulation (vcm), returned as a boolean scalar.

  • ro — roll-off factor, returned as a 2 bit real data.

  • upl — user packet length (upl), returned as a 16 bit real data.

  • dfl — data field length (dfl), returned as a 16 bit real data.

  • sync — sync word, returned as an 8 bit real data.

  • issyi — input stream synchronization indicator (issyi), returned as a boolean scalar.

  • npd — null packet detection (npd), returned as a boolean scalar.

  • mis_isi — input stream identifier (isi) for multiple input stream input, returned as an 8 bit real data. for single stream, this is reserved by the standard.

  • syncd — start location of sync word in number of bits from start of data field, returned as a 16 bit real data.

model structure

this figure shows the top-level model of the dvb-s2 hdl receiver subsystem. the subsystem comprises three model references, dvbs2hdlsyncplheaderrecoverycore, dvbs2hdldemoddeinterleavefecdecodecore, and dvbs2hdlstreamrecoverycore.

dvbs2hdlsyncplheaderrecoverycore — synchronizes the input receiver waveform, estimates noise variance, and decodes pl header information. for more information, see example.

dvbs2hdldemoddeinterleavefecdecodecore — demodulates the input symbols using block to extract soft bits, deinterleave the soft bits using dvb-s2 deinterleaver subsystem, and fec decodes (ldpc and bch decodes) the soft bits using the block and the block to extract baseband frame (bbframe). the baseband frame streams into the dvbs2hdlstreamrecoverycore model reference.

the dvb-s2 deinterleaver subsystem in the dvbs2hdldemoddeinterleavefecdecodecore model reference continuously stores the soft bits received from the inside the ram subsystem. the ram address generator subsystem generates the read and write logic to the ram for deinterleaving.

in the ram address generator subsystem, the nrows and ncolumns subsystem stores the number of rows and columns of each of the possible configuration in look-up tables (lut). based on the pl header parameters, the number of rows and columns is decided for deinterleaving. the read offset address subsystem generates the deinterleaver indices of each frame as an offset address. the generate and add read base address subsystem adds the offset address with a base read address to get the actual address of the soft-bit stored in the ram. the parameter store fifo subsystem stores the pl header parameters and reads these parameters in synchronous with start of each frame.

this table shows the rows and columns considered for deinterleaving for each of the configurations.

    modulation    rows (normal)    rows (short)    columns
    __________    _____________    ____________    _______
     qpsk             64800           16200           1   
     8-psk            21600           5400            3   
     16-apsk          16200           4050            4   
     32-apsk          12960           3240            5   

dvbs2hdlstreamrecoverycore — decodes the bb header and recovers the stream bits. the bb descrambler subsystem descrambles the baseband frame. the bb demultiplexer subsystem demultiplexes the descrambled frame into bb header and data bits. the bb header crc check subsystem uses the block to check the crc status and discards the baseband frames that fails crc check. the bb decoder subsystem extracts the bb header information and the data field. for packetized stream of bits, the control signals are generated to indicate the start, end, and validity of bits for each packet. the block checks the crc status of each packet. for continuous stream of bits, the data field is passed on to the output.

run the model

set the symbol rate, modcod, fecframe type values, input stream format, user packet length and channel impairments on the mask of the input configuration subsystem and run the dvbs2hdlreceiver model. alternatively, to run the model, execute this command at the matlab command window.

sim dvbs2hdlreceiver

the modcod value must be a row vector. each element of the row vector corresponds to a frame.

note: use qpsk modulated frames initially to achieve time frequency and phase synchronization.

verification and results

run the dvbs2hdlreceiver.slx model. the model utilizes 120 short qpsk frames for synchronization.

### starting serial model reference simulation build.
### successfully updated the model reference simulation target for: dvbs2hdldemoddeinterleavefecdecodecore
### successfully updated the model reference simulation target for: dvbs2hdlstreamrecoverycore
### successfully updated the model reference simulation target for: dvbs2hdlsyncplheaderrecoverycore
build summary
simulation targets built:
model                                   action                        rebuild reason                                                     
=========================================================================================================================================
dvbs2hdldemoddeinterleavefecdecodecore  code generated and compiled.  dvbs2hdldemoddeinterleavefecdecodecore_msf.mexw64 does not exist.  
dvbs2hdlstreamrecoverycore              code generated and compiled.  dvbs2hdlstreamrecoverycore_msf.mexw64 does not exist.              
dvbs2hdlsyncplheaderrecoverycore        code generated and compiled.  dvbs2hdlsyncplheaderrecoverycore_msf.mexw64 does not exist.        
3 of 3 models built (0 models already up to date)
build duration: 0h 8m 40.909s
number of frames synced = 124 out of 124
initial frames not compared = 120
number of frames lost due to bb header crc failure = 0 out of 4
number of packets lost due to packet crc failure = 0 out of 27

hdl code generation

to generate the hdl code for this example, you must have hdl coder™. use makehdl and makehdltb commands to generate hdl code and hdl testbench for the dvb-s2 hdl receiver subsystem. the testbench generation time depends on the simulation time.

the resulting hdl code is synthesized for a xilinx® zynq® ultrascale rfsoc zcu111 board. the post place and route resource utilization are shown in this table. the maximum frequency of operation is 205 mhz.

      resources      usage
    _____________    _____
    clb lut          78174
    clb registers    93549
    ramb36           671  
    ramb18           1    
    dsp48            298  

references

  1. etsi standard en 302 307-1 v1.4.1(2014-11). digital video broadcasting (dvb); second generation framing structure, channel coding and modulation systems for broadcasting, interactive services, news gathering and other broadband satellite applications (dvb-s2).

  2. etsi standard tr 102 376-1 v1.2.1(2015-11). digital video broadcasting (dvb); implementation guidelines for the second generation system for broadcasting, interactive services, news gathering and other broadband satellite applications (dvb-s2).

see also

blocks

  • | | | |

related topics

    网站地图