finished organization of init funcions and parameters
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Info>
|
||||||
|
<Category UUID="FileClassCategory">
|
||||||
|
<Label UUID="design"/>
|
||||||
|
</Category>
|
||||||
|
</Info>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Info location="soc_rfsoc_postload.m" type="File"/>
|
||||||
Binary file not shown.
@@ -1,5 +1,4 @@
|
|||||||
%% Derived from preload
|
%% Derived from preload
|
||||||
|
|
||||||
fs_eff = fs_RF/IntDecFactor; % Effective fs before interpolation / after decimation
|
fs_eff = fs_RF/IntDecFactor; % Effective fs before interpolation / after decimation
|
||||||
Ts_eff = 1/fs_eff;
|
Ts_eff = 1/fs_eff;
|
||||||
|
|
||||||
@@ -53,27 +52,27 @@ stoptime = 10*TsSW;
|
|||||||
|
|
||||||
%% Channelizer parameters
|
%% Channelizer parameters
|
||||||
|
|
||||||
% Number of channels, maximally decimated channelizer M/D=1
|
%Number of channels, maximally decimated channelizer M/D=1
|
||||||
%nChan = 512;
|
nChan = 512;
|
||||||
|
|
||||||
% Taps per band
|
%Taps per band
|
||||||
%nTapsPerBand = 16;
|
nTapsPerBand = 16;
|
||||||
|
|
||||||
% Create channelizer object
|
%Create channelizer object
|
||||||
%channelizer = dsp.Channelizer('NumFrequencyBands',nChan,...
|
channelizer = dsp.Channelizer('NumFrequencyBands',nChan,...
|
||||||
% 'DecimationFactor',nChan,...
|
'DecimationFactor',nChan,...
|
||||||
% 'NumTapsPerBand',nTapsPerBand);
|
'NumTapsPerBand',nTapsPerBand);
|
||||||
% Channelizer coefficients
|
%Channelizer coefficients
|
||||||
%channelizerCoeffs = channelizer.coeffs.Numerator;
|
channelizerCoeffs = channelizer.coeffs.Numerator;
|
||||||
|
|
||||||
% Channel bandwidth
|
%Channel bandwidth
|
||||||
%chanBW = fs/nChan;
|
%chanBW = fs/nChan;
|
||||||
|
|
||||||
% Starting frequency for each channel
|
%Starting frequency for each channel
|
||||||
%chanFStart = chanBW/2:chanBW:(fs/2-chanBW/2);
|
%chanFStart = chanBW/2:chanBW:(fs/2-chanBW/2);
|
||||||
|
|
||||||
% Number of frames out of channelzier
|
%Number of frames out of channelzier
|
||||||
%nFrames = nChan/SamplesPerCycle;
|
nFrames = nChan/SamplesPerCycle;
|
||||||
|
|
||||||
% Frame size after serializing x2
|
% Frame size after serializing x2
|
||||||
%frameSize = SamplesPerCycle/2;
|
%frameSize = SamplesPerCycle/2;
|
||||||
|
|||||||
5
utilities/soc_rfsoc_postload.m
Normal file
5
utilities/soc_rfsoc_postload.m
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
%% Get parameters configured on the block
|
||||||
|
IntDecFactor = str2double(get_param([bdroot '/RF Data Converter'], ...
|
||||||
|
'interpolationMode')); % Interpolation and decimation factor
|
||||||
|
SamplesPerCycle = str2double(get_param([bdroot '/RF Data Converter'], ...
|
||||||
|
'dacSamplesPerCycle')); % samples per FPGA cycle
|
||||||
@@ -1,8 +1,6 @@
|
|||||||
%% DMA and SW parameters
|
%% DMA and SW parameters
|
||||||
FrameSize = 512;
|
FrameSize = 512;
|
||||||
NumBuffers = 16;
|
NumBuffers = 16;
|
||||||
%downSamplingFactor = 64;
|
|
||||||
%SrcSel = 0;
|
|
||||||
|
|
||||||
%% Rate setup (use txspectrum and rxspectrum tools)
|
%% Rate setup (use txspectrum and rxspectrum tools)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user