5G Polar Intel® FPGA IP User Guide

ID 683766
Date 4/01/2024
Public

3.4. Simulating the 5G Polar IP with MATLAB

Verify that the RTL behaves the same as these models.
Before simulating, generate a 5G Polar design example.
  1. In MATLAB, run make.m from the \matlab\ directory.
    >> make
    MATLAB generates MEX.
  2. Run the MATLAB script from the <Design Example Directory>\matlab\ directory.
    1. For polar encoder or decoder:
      >>polar5g_codec_tb(<list_size>, <len_type>, <crc_type>, <il_on>);

      where:

      • list_size corresponds to the compile-time parameter NUM_LIST in the RTL
      • len_type corresponds to the param_len input in the RTL
      • crc_type corresponds to the param_crc input in the RTL
      • il_on corresponds to the param_il input in the RTL

      For example,

      >> polar5g_codec_tb(4, 2, 4, 1);
      This test case runs list size = 4, code block length = 64, CRC = CRC16, and the interleaver is on.
    2. For downlink polar encoder with bit allocation:
      >> polar5g_enc_ba_dl_tb
    3. For uplink polar decoder with bit allocation:
      >> polar5g_dec_ba_ul_tb
    The test function generates polar5g_codec_params.txt, polar5g_enc_in.txt, polar5g_enc_out.txt, polar5g_dec_in.txt, and polar5g_dec_out.txt, which you may use in RTL simulation as inputs or as reference outputs.