validation: add checkCounterSamples and verify capture up to 1024 frames on ZCU111
Created checkCounterSamples.m to validate sample continuity, counter wraps, and frame index progression. Verified counter bypass, sine bypass, and channelizer modes up to nFrames=1024 across 10 DPWs on ZCU111.
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
%% =========================================================
|
||||
% Data
|
||||
% =========================================================
|
||||
X = single(complex_out.Data);
|
||||
X = single(raw_DPW.Data);
|
||||
X = X(:,:,2:end); % first DPW useless (zeroed)
|
||||
|
||||
%% =========================================================
|
||||
% Parameters
|
||||
@@ -72,7 +73,7 @@ title('3D FFT evolution');
|
||||
% Single frame debug (optional)
|
||||
% =========================================================
|
||||
figure;
|
||||
x_dbg = X(:,1,1);
|
||||
x_dbg = X(:,end,end);
|
||||
Xf_dbg = fftshift(fft(x_dbg));
|
||||
|
||||
plot(f_axis, 20*log10(abs(Xf_dbg)+1e-12));
|
||||
|
||||
@@ -24,7 +24,7 @@ NCOCountIncDT = numerictype(1,NCOAccumWL*2,NCOAccumWL);
|
||||
%% Test signal parameters
|
||||
|
||||
% Pulse width
|
||||
pulseWidth = 0.001;%4e-6;
|
||||
pulseWidth = 4e-6;
|
||||
|
||||
% Pulse start/end frequencies
|
||||
pulseCentFreq = 0e6;
|
||||
@@ -39,6 +39,9 @@ PRI = 1/PRF;
|
||||
|
||||
% CW mode (bypass pulse generation)
|
||||
CwMode = true;
|
||||
if CwMode
|
||||
pulseWidth = 1000; % very long pulse help emulate CW
|
||||
end
|
||||
|
||||
% Counter mode (bypass pulse and CW generation)
|
||||
CounterMode = true;
|
||||
@@ -49,7 +52,7 @@ pulseGenGain = 1;
|
||||
%% Software parameters
|
||||
|
||||
% Signal generator update rate
|
||||
TsSW = 0.0005;
|
||||
TsSW = 0.5;
|
||||
|
||||
%% Simulation parameters
|
||||
|
||||
@@ -78,7 +81,7 @@ channelizerCoeffs = channelizer.coeffs.Numerator;
|
||||
%chanFStart = chanBW/2:chanBW:(fs/2-chanBW/2);
|
||||
|
||||
%Number of frames in the DPW
|
||||
nFrames = 128;%nChan/SamplesPerCycle;
|
||||
nFrames = 1024;%nChan/SamplesPerCycle;
|
||||
|
||||
% Frame size after serializing x2
|
||||
%frameSize = SamplesPerCycle/2;
|
||||
Reference in New Issue
Block a user