diff --git a/referencedmodels/soc_rfsoc_fpga.slx b/referencedmodels/soc_rfsoc_fpga.slx index 5f4e9c1..8ca0947 100644 Binary files a/referencedmodels/soc_rfsoc_fpga.slx and b/referencedmodels/soc_rfsoc_fpga.slx differ diff --git a/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/iQaSRrC-noYsKgVFmEoWEQpEbbMd.xml b/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/iQaSRrC-noYsKgVFmEoWEQpEbbMd.xml new file mode 100644 index 0000000..99772b4 --- /dev/null +++ b/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/iQaSRrC-noYsKgVFmEoWEQpEbbMd.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/iQaSRrC-noYsKgVFmEoWEQpEbbMp.xml b/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/iQaSRrC-noYsKgVFmEoWEQpEbbMp.xml new file mode 100644 index 0000000..8eb1c5f --- /dev/null +++ b/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/iQaSRrC-noYsKgVFmEoWEQpEbbMp.xml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/soc_rfsoc_top.slx b/soc_rfsoc_top.slx index c5d626d..2c54fe2 100644 Binary files a/soc_rfsoc_top.slx and b/soc_rfsoc_top.slx differ diff --git a/utilities/soc_rfsoc_init.m b/utilities/soc_rfsoc_init.m index 116300e..9075eba 100644 --- a/utilities/soc_rfsoc_init.m +++ b/utilities/soc_rfsoc_init.m @@ -1,5 +1,4 @@ %% Derived from preload - fs_eff = fs_RF/IntDecFactor; % Effective fs before interpolation / after decimation Ts_eff = 1/fs_eff; @@ -53,27 +52,27 @@ stoptime = 10*TsSW; %% Channelizer parameters -% Number of channels, maximally decimated channelizer M/D=1 -%nChan = 512; +%Number of channels, maximally decimated channelizer M/D=1 +nChan = 512; -% Taps per band -%nTapsPerBand = 16; +%Taps per band +nTapsPerBand = 16; -% Create channelizer object -%channelizer = dsp.Channelizer('NumFrequencyBands',nChan,... -% 'DecimationFactor',nChan,... -% 'NumTapsPerBand',nTapsPerBand); -% Channelizer coefficients -%channelizerCoeffs = channelizer.coeffs.Numerator; +%Create channelizer object +channelizer = dsp.Channelizer('NumFrequencyBands',nChan,... + 'DecimationFactor',nChan,... + 'NumTapsPerBand',nTapsPerBand); +%Channelizer coefficients +channelizerCoeffs = channelizer.coeffs.Numerator; -% Channel bandwidth +%Channel bandwidth %chanBW = fs/nChan; -% Starting frequency for each channel +%Starting frequency for each channel %chanFStart = chanBW/2:chanBW:(fs/2-chanBW/2); -% Number of frames out of channelzier -%nFrames = nChan/SamplesPerCycle; +%Number of frames out of channelzier +nFrames = nChan/SamplesPerCycle; % Frame size after serializing x2 %frameSize = SamplesPerCycle/2; diff --git a/utilities/soc_rfsoc_postload.m b/utilities/soc_rfsoc_postload.m new file mode 100644 index 0000000..48c67ae --- /dev/null +++ b/utilities/soc_rfsoc_postload.m @@ -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 \ No newline at end of file diff --git a/utilities/soc_rfsoc_preload.m b/utilities/soc_rfsoc_preload.m index 49e4c53..da998ac 100644 --- a/utilities/soc_rfsoc_preload.m +++ b/utilities/soc_rfsoc_preload.m @@ -1,8 +1,6 @@ %% DMA and SW parameters FrameSize = 512; NumBuffers = 16; -%downSamplingFactor = 64; -%SrcSel = 0; %% Rate setup (use txspectrum and rxspectrum tools)