The following parameters are available in the nlf_default_config.m file:
- term_placement
- Defines the DFE NL FIR filter's coefficient/term placement in a 47x47
matrix. You can modify this to assign specific term placements.
In the case of a single grid configuration, you can use only the top-left 16x16 sub-matrix to set active terms. Put 1s in place of active terms and 0s in other places. To implement a maximum of 32 terms in a single NLF block, place active terms carefully. Ensure there are an even number of active terms in any column. This allows all the units to use pre-adders.
In the case of a two grid configuration, you can use two 16x16 grids. The first grid must be the top-left 16x16 sub-matrix and the second grid can be any 16x16 sub-matrix in the 47x47 matrix. The signal delay between the two grids is the horizontal distance between the two grids. The index delay between the two grids is the vertical distance between the two grids.
Both signal delay and index delay between two grids can be any values from 0 to 31, irrespective of other. Put 1s in place of active terms corresponding to NLF block1. Put 2s in place of active terms corresponding to NLF block2. Put 0s in other places.
- fs
- Defines the sampling frequency of the input signal in MSPS.
- ext_data
- When enabled, the system reads the input signal from the ext_signal.txt file and reads the input index
from the ext_index.txt file. Otherwise,
the system internally generates the input signal and input index. You can
provide your proprietary signal and index using the ext_signal.txt and ext_index.txt files. The number of samples in these files
must be greater than or equal to
sim_length. - user_termselection_en
- Enable it to select the term placement from
term_placement. Otherwise, the system selects an internally generated random term placement. - ext_luts
- When enabled, the system selects LUT values from the external_lut_values.mat file. Otherwise, the
system uses internally generated LUT values.
ext_lut_valuesis the 47x47x256 matrix saved as external_lut_values.mat. You can modifyext_lut_valuesmatrix to give specific LUT values and save it as external_lut_values.mat. A LUT corresponding to an active term has its 256 values along the position of that active term in the 47x47 matrix. - num_max_units
- The maximum number of NL units per NLF block. It must be 16.
- external_indexing
- Used to set the LUT indexing method. Set 1 to use external indexing or set
0 to use internal indexing. For external indexing, the index is taken from
ext_index.txt. The index uses the
magnitude of the input signal for internal indexing.
A double grid configuration has a non-diagonal second grid. Signal delay and index delay between two grids are not equal. Indexing mode must be external indexing.
- nlf_out_scale
- It is the NLF block output scaling. 2^(nlf_out_scale) scales the NLF block output. This increases the output dynamic range. The supported values are 0 to 12, default value = 5.
- cascade_output_bitsel
- It selects the output bits in double grid configurations. It has no use in
single grid configurations. This increases the dynamic range of the output
signal in dual grid configurations.
When 0: NLF_IP_output = saturate(sum_of_two_NLF_blocks_outputs(24 downto 0))
When 1: NLF_IP_output = sum_of_two_NLF_blocks_outputs(25 downto 1)
- signal_delayline_tap
- Selects one of the signal delay line taps to feed to the signal delay line output port.
- index_delayline_tap
- Selects one of the index delay line taps to feed to the index delay line output port.
- ext_signal
- It stores the external signal read from the ext_signal.txt file. The system uses It as an input signal
when
ext_datais enabled. - ext_index
- It stores the external index read from the ext_index.txt file. The system uses it as input index when
both
ext_dataandexternal_indexingare enabled. - sim_length
- Length of the simulation in number of samples. If the reference design is
enabled,
refd.sim_lengthoverwrites this parameter. Thesim_lengthis a multiple of the number of phases; otherwise, zeros are appended at the end of the signal/index to make the signal/index length a multiple of the number of phases. - en_debug_tc
- Reserved for internal use, and must be 0.
- en_pulse_data
- Reserved for internal use, and must be 0.
- gain_test
- Reserved for internal testing, and must be 0.
- overflow_test
- Reserved for internal testing, and must be 0.
- refd.nlf_base_addr
- Base address of NLF IP in reference design.
- refd.stimulus_base_addr
- Base address of MM2S_STIMULUS IP in reference design.
- refd.sink_base_addr
- Base address of S2MM_SINK IP in reference design.
- refd.sim_length
- Length of the simulation in number of samples when reference design is enabled. The reference design supports 32768 samples, so it must be 32768.
- refd.enable
- It generates shell script files and golden reference data files required to run the reference design on board.
- refd.mode
- Reserved for internal use, it must be 0.