diff --git a/pulsegen_block/TBm_pulsegen.slx b/pulsegen_block/TBm_pulsegen.slx
index 9477fde..bbc37a4 100644
Binary files a/pulsegen_block/TBm_pulsegen.slx and b/pulsegen_block/TBm_pulsegen.slx differ
diff --git a/pulsegen_block/soc_resm_init.m b/pulsegen_block/soc_resm_init.m
deleted file mode 100644
index 1454839..0000000
--- a/pulsegen_block/soc_resm_init.m
+++ /dev/null
@@ -1,80 +0,0 @@
-%% Rate setup
-fs = 512e6; % Effective fs before interpolation / after decimation
-Ts = 1/fs;
-
-%% Host Sample Time in Simulation
-%TsHost = 5e-5;
-
-SamplesPerCycle = 4;
-
-FPGAClkRate = fs/SamplesPerCycle;
-TsFPGA = 1/FPGAClkRate;
-%% Tx signal generator parameters
-
-% NCO accumulator word length
-NCOAccumWL = 16;
-
-% NCO phase increment scale factor
-NCOIncScale = Ts*2^NCOAccumWL;
-
-% NCO phase increments datatype
-NCOIncDT = numerictype(1,NCOAccumWL,0);
-
-% NCO counter increment datatype
-NCOCountIncDT = numerictype(1,NCOAccumWL*2,NCOAccumWL);
-
-%% Test signal parameters
-
-% Pulse width
-pulseWidth = 8.5e-6;
-
-% Pulse start/end frequencies
-pulseCentFreq = 125e6;
-pulseBw = 50e6; % Pulse bandwidth
-
-% Number of pulses
-numPulses = 4;
-
-% Pulse repetition interval
-PRF = 20e3;
-PRI = 1/PRF;
-
-% Output gain
-pulseGenGain = 1;
-
-%% Software parameters
-
-% Signal generator update rate
-TsSW = 0.0025;
-
-%% Simulation parameters
-
-% Sim run time
-stoptime = 10*TsSW;
-
-%% Channelizer parameters
-
-% Number of channels, maximally decimated channelizer M/D=1
-%nChan = 512;
-
-% Taps per band
-%nTapsPerBand = 16;
-
-% Create channelizer object
-%channelizer = dsp.Channelizer('NumFrequencyBands',nChan,...
-% 'DecimationFactor',nChan,...
-% 'NumTapsPerBand',nTapsPerBand);
-% Channelizer coefficients
-%channelizerCoeffs = channelizer.coeffs.Numerator;
-
-% Channel bandwidth
-%chanBW = fs/nChan;
-
-% Starting frequency for each channel
-%chanFStart = chanBW/2:chanBW:(fs/2-chanBW/2);
-
-% Number of frames out of channelzier
-%nFrames = nChan/SamplesPerCycle;
-
-% Frame size after serializing x2
-%frameSize = SamplesPerCycle/2;
\ No newline at end of file
diff --git a/referencedmodels/soc_rfsoc_fpga.slx b/referencedmodels/soc_rfsoc_fpga.slx
index c712fb2..5f4e9c1 100644
Binary files a/referencedmodels/soc_rfsoc_fpga.slx and b/referencedmodels/soc_rfsoc_fpga.slx differ
diff --git a/resources/project/MEnu9bsvaE1ht88eLRvHOJK-Wu0/o2mWUvp8wHgCXFtZfz-nw7fAWpYd.xml b/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/O_Wj2lFHsFw-dAu1iDbjtB-rERUd.xml
similarity index 100%
rename from resources/project/MEnu9bsvaE1ht88eLRvHOJK-Wu0/o2mWUvp8wHgCXFtZfz-nw7fAWpYd.xml
rename to resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/O_Wj2lFHsFw-dAu1iDbjtB-rERUd.xml
diff --git a/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/O_Wj2lFHsFw-dAu1iDbjtB-rERUp.xml b/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/O_Wj2lFHsFw-dAu1iDbjtB-rERUp.xml
new file mode 100644
index 0000000..99e3281
--- /dev/null
+++ b/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/O_Wj2lFHsFw-dAu1iDbjtB-rERUp.xml
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/H2OSua_mS0xjdXaWfBnHyck-21gd.xml b/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/TelF4YKeHIop9sma5ly27aHFycId.xml
similarity index 100%
rename from resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/H2OSua_mS0xjdXaWfBnHyck-21gd.xml
rename to resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/TelF4YKeHIop9sma5ly27aHFycId.xml
diff --git a/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/TelF4YKeHIop9sma5ly27aHFycIp.xml b/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/TelF4YKeHIop9sma5ly27aHFycIp.xml
new file mode 100644
index 0000000..e2dae64
--- /dev/null
+++ b/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/TelF4YKeHIop9sma5ly27aHFycIp.xml
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/JqwYLo5GblI8poXmmZbdb_aYTFEd.xml b/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/a4IuKwbTrz65HsB1qy2BUvphPvUd.xml
similarity index 100%
rename from resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/JqwYLo5GblI8poXmmZbdb_aYTFEd.xml
rename to resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/a4IuKwbTrz65HsB1qy2BUvphPvUd.xml
diff --git a/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/a4IuKwbTrz65HsB1qy2BUvphPvUp.xml b/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/a4IuKwbTrz65HsB1qy2BUvphPvUp.xml
new file mode 100644
index 0000000..a020720
--- /dev/null
+++ b/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/a4IuKwbTrz65HsB1qy2BUvphPvUp.xml
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/ep2eC_pbgpB45JNIfZ_kN-IOldEp.xml b/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/ep2eC_pbgpB45JNIfZ_kN-IOldEp.xml
deleted file mode 100644
index dfbfa71..0000000
--- a/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/ep2eC_pbgpB45JNIfZ_kN-IOldEp.xml
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
\ No newline at end of file
diff --git a/resources/project/EEtUlUb-dLAdf0KpMVivaUlztwA/aIKCkzvF2b1sr3-2vSSYXiPFCBcd.xml b/resources/project/EEtUlUb-dLAdf0KpMVivaUlztwA/aIKCkzvF2b1sr3-2vSSYXiPFCBcd.xml
new file mode 100644
index 0000000..a9f72e2
--- /dev/null
+++ b/resources/project/EEtUlUb-dLAdf0KpMVivaUlztwA/aIKCkzvF2b1sr3-2vSSYXiPFCBcd.xml
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/resources/project/EEtUlUb-dLAdf0KpMVivaUlztwA/aIKCkzvF2b1sr3-2vSSYXiPFCBcp.xml b/resources/project/EEtUlUb-dLAdf0KpMVivaUlztwA/aIKCkzvF2b1sr3-2vSSYXiPFCBcp.xml
new file mode 100644
index 0000000..3d3afa5
--- /dev/null
+++ b/resources/project/EEtUlUb-dLAdf0KpMVivaUlztwA/aIKCkzvF2b1sr3-2vSSYXiPFCBcp.xml
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/resources/project/HoHDHQ_WvHAAKj5aJOrvrg_vpt8/xXlmKuOQ7YT_G1elNhbKQIUqSRMd.xml b/resources/project/HoHDHQ_WvHAAKj5aJOrvrg_vpt8/xXlmKuOQ7YT_G1elNhbKQIUqSRMd.xml
index b43747e..63f1117 100644
--- a/resources/project/HoHDHQ_WvHAAKj5aJOrvrg_vpt8/xXlmKuOQ7YT_G1elNhbKQIUqSRMd.xml
+++ b/resources/project/HoHDHQ_WvHAAKj5aJOrvrg_vpt8/xXlmKuOQ7YT_G1elNhbKQIUqSRMd.xml
@@ -1,2 +1,2 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/resources/project/KAXfQgCar2Yb8zOxgvf9hdmLP1E/Fd9H20iNQ049h3heONYKHGeEV4Ud.xml b/resources/project/KAXfQgCar2Yb8zOxgvf9hdmLP1E/Fd9H20iNQ049h3heONYKHGeEV4Ud.xml
index 3e5bfed..86a8f2b 100644
--- a/resources/project/KAXfQgCar2Yb8zOxgvf9hdmLP1E/Fd9H20iNQ049h3heONYKHGeEV4Ud.xml
+++ b/resources/project/KAXfQgCar2Yb8zOxgvf9hdmLP1E/Fd9H20iNQ049h3heONYKHGeEV4Ud.xml
@@ -1,4 +1,4 @@
-
+
\ No newline at end of file
diff --git a/resources/project/MEnu9bsvaE1ht88eLRvHOJK-Wu0/o2mWUvp8wHgCXFtZfz-nw7fAWpYp.xml b/resources/project/MEnu9bsvaE1ht88eLRvHOJK-Wu0/o2mWUvp8wHgCXFtZfz-nw7fAWpYp.xml
deleted file mode 100644
index a0855d8..0000000
--- a/resources/project/MEnu9bsvaE1ht88eLRvHOJK-Wu0/o2mWUvp8wHgCXFtZfz-nw7fAWpYp.xml
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
\ No newline at end of file
diff --git a/resources/project/MEnu9bsvaE1ht88eLRvHOJK-Wu0/ztPtmXD5xpkIGcNCb-BxiWJmzLUp.xml b/resources/project/MEnu9bsvaE1ht88eLRvHOJK-Wu0/ztPtmXD5xpkIGcNCb-BxiWJmzLUp.xml
deleted file mode 100644
index a4a7a81..0000000
--- a/resources/project/MEnu9bsvaE1ht88eLRvHOJK-Wu0/ztPtmXD5xpkIGcNCb-BxiWJmzLUp.xml
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
\ No newline at end of file
diff --git a/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/RXeEMtO1rvf1M4FZ4WQYgEYXNWwd.xml b/resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/-WpCf52uYrDnU0geoVq_xVx-sBUd.xml
similarity index 100%
rename from resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/RXeEMtO1rvf1M4FZ4WQYgEYXNWwd.xml
rename to resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/-WpCf52uYrDnU0geoVq_xVx-sBUd.xml
diff --git a/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/RXeEMtO1rvf1M4FZ4WQYgEYXNWwp.xml b/resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/-WpCf52uYrDnU0geoVq_xVx-sBUp.xml
similarity index 100%
rename from resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/RXeEMtO1rvf1M4FZ4WQYgEYXNWwp.xml
rename to resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/-WpCf52uYrDnU0geoVq_xVx-sBUp.xml
diff --git a/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/blA3YKEoExNhkStPRYdGnolk6EEd.xml b/resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/0HfRMSDF_0moImClaFzedZdI4Xod.xml
similarity index 100%
rename from resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/blA3YKEoExNhkStPRYdGnolk6EEd.xml
rename to resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/0HfRMSDF_0moImClaFzedZdI4Xod.xml
diff --git a/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/blA3YKEoExNhkStPRYdGnolk6EEp.xml b/resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/0HfRMSDF_0moImClaFzedZdI4Xop.xml
similarity index 100%
rename from resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/blA3YKEoExNhkStPRYdGnolk6EEp.xml
rename to resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/0HfRMSDF_0moImClaFzedZdI4Xop.xml
diff --git a/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/ep2eC_pbgpB45JNIfZ_kN-IOldEd.xml b/resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/HMeTPw9O-WVZRIns_aL-lBScD8od.xml
similarity index 100%
rename from resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/ep2eC_pbgpB45JNIfZ_kN-IOldEd.xml
rename to resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/HMeTPw9O-WVZRIns_aL-lBScD8od.xml
diff --git a/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/qDXBwbCFcQDhtGei0v0jECxk4HAp.xml b/resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/HMeTPw9O-WVZRIns_aL-lBScD8op.xml
similarity index 100%
rename from resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/qDXBwbCFcQDhtGei0v0jECxk4HAp.xml
rename to resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/HMeTPw9O-WVZRIns_aL-lBScD8op.xml
diff --git a/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/m22K5zpY6141aoh1hLcPr44fTCUd.xml b/resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/UpuFGRcvFtU5S3cyXBcvri-IBWAd.xml
similarity index 100%
rename from resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/m22K5zpY6141aoh1hLcPr44fTCUd.xml
rename to resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/UpuFGRcvFtU5S3cyXBcvri-IBWAd.xml
diff --git a/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/H2OSua_mS0xjdXaWfBnHyck-21gp.xml b/resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/UpuFGRcvFtU5S3cyXBcvri-IBWAp.xml
similarity index 100%
rename from resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/H2OSua_mS0xjdXaWfBnHyck-21gp.xml
rename to resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/UpuFGRcvFtU5S3cyXBcvri-IBWAp.xml
diff --git a/resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/lDMgbB2qVwwu-5ETYbC5dxpFwTId.xml b/resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/lDMgbB2qVwwu-5ETYbC5dxpFwTId.xml
new file mode 100644
index 0000000..4356a6a
--- /dev/null
+++ b/resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/lDMgbB2qVwwu-5ETYbC5dxpFwTId.xml
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/lDMgbB2qVwwu-5ETYbC5dxpFwTIp.xml b/resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/lDMgbB2qVwwu-5ETYbC5dxpFwTIp.xml
new file mode 100644
index 0000000..01cb34e
--- /dev/null
+++ b/resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/lDMgbB2qVwwu-5ETYbC5dxpFwTIp.xml
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/qDXBwbCFcQDhtGei0v0jECxk4HAd.xml b/resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/r-zk_iIlSRLwzoRAmANarULWdgod.xml
similarity index 100%
rename from resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/qDXBwbCFcQDhtGei0v0jECxk4HAd.xml
rename to resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/r-zk_iIlSRLwzoRAmANarULWdgod.xml
diff --git a/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/JqwYLo5GblI8poXmmZbdb_aYTFEp.xml b/resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/r-zk_iIlSRLwzoRAmANarULWdgop.xml
similarity index 100%
rename from resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/JqwYLo5GblI8poXmmZbdb_aYTFEp.xml
rename to resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/r-zk_iIlSRLwzoRAmANarULWdgop.xml
diff --git a/resources/project/MEnu9bsvaE1ht88eLRvHOJK-Wu0/ztPtmXD5xpkIGcNCb-BxiWJmzLUd.xml b/resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/xtQ8mZo1_ExmTkcSjfJ0gi-M3Skd.xml
similarity index 100%
rename from resources/project/MEnu9bsvaE1ht88eLRvHOJK-Wu0/ztPtmXD5xpkIGcNCb-BxiWJmzLUd.xml
rename to resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/xtQ8mZo1_ExmTkcSjfJ0gi-M3Skd.xml
diff --git a/resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/m22K5zpY6141aoh1hLcPr44fTCUp.xml b/resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/xtQ8mZo1_ExmTkcSjfJ0gi-M3Skp.xml
similarity index 100%
rename from resources/project/Abllu374wtDd3IliE-5ZoGpf8mM/m22K5zpY6141aoh1hLcPr44fTCUp.xml
rename to resources/project/O_Wj2lFHsFw-dAu1iDbjtB-rERU/xtQ8mZo1_ExmTkcSjfJ0gi-M3Skp.xml
diff --git a/soc_rfsoc_top.slx b/soc_rfsoc_top.slx
index 4e56e6a..c5d626d 100644
Binary files a/soc_rfsoc_top.slx and b/soc_rfsoc_top.slx differ
diff --git a/utilities/ntext4.m b/utilities/aux/ntext4.m
similarity index 100%
rename from utilities/ntext4.m
rename to utilities/aux/ntext4.m
diff --git a/utilities/plotspectrum.m b/utilities/aux/plotspectrum.m
similarity index 100%
rename from utilities/plotspectrum.m
rename to utilities/aux/plotspectrum.m
diff --git a/utilities/programBoard.m b/utilities/aux/programBoard.m
similarity index 100%
rename from utilities/programBoard.m
rename to utilities/aux/programBoard.m
diff --git a/utilities/rxadcfs.m b/utilities/aux/rxadcfs.m
similarity index 100%
rename from utilities/rxadcfs.m
rename to utilities/aux/rxadcfs.m
diff --git a/utilities/rxspectrum.m b/utilities/aux/rxspectrum.m
similarity index 100%
rename from utilities/rxspectrum.m
rename to utilities/aux/rxspectrum.m
diff --git a/utilities/txspectrum.m b/utilities/aux/txspectrum.m
similarity index 100%
rename from utilities/txspectrum.m
rename to utilities/aux/txspectrum.m
diff --git a/utilities/soc_rfsoc_init.m b/utilities/soc_rfsoc_init.m
index 152b551..116300e 100644
--- a/utilities/soc_rfsoc_init.m
+++ b/utilities/soc_rfsoc_init.m
@@ -1,22 +1,108 @@
-function soc_rfsoc_init(mdlPath)
-% Initialization fcn for the model. It sets the model-wide params
-% which are derived based on sample rate.
+%% Derived from preload
-% 'FrameSize and 'NumBuffers' variables are set during model
-% PreLoadFcn callback into base workspace. These two variables should be
-% changed directly at the MATLAB command
+fs_eff = fs_RF/IntDecFactor; % Effective fs before interpolation / after decimation
+Ts_eff = 1/fs_eff;
-% FrameSize = evalin('base','FrameSize');
+%% Host Sample Time in Simulation
+%TsHost = 5e-5;
-dacSampleRate = get_param([mdlPath '/RF Data Converter'], 'dacSampleRate');
-dacSampleRate = evalin('base', dacSampleRate)*1e6;
-dacSamplesPerCycle = str2double(get_param([mdlPath '/RF Data Converter'], 'dacSamplesPerCycle'));
-dacInterpolationMode = str2double(get_param([mdlPath '/RF Data Converter'], 'interpolationMode'));
-streamClkFrequency = dacSampleRate/(dacSamplesPerCycle*dacInterpolationMode);
+FPGAClkRate = fs_eff/SamplesPerCycle;
+TsFPGA = 1/FPGAClkRate;
+%% Tx signal generator parameters
-SampleTime = 1/streamClkFrequency;
+% NCO accumulator word length
+NCOAccumWL = 16;
+
+% NCO phase increment scale factor
+NCOIncScale = Ts_eff*2^NCOAccumWL;
+
+% NCO phase increments datatype
+NCOIncDT = numerictype(1,NCOAccumWL,0);
+
+% NCO counter increment datatype
+NCOCountIncDT = numerictype(1,NCOAccumWL*2,NCOAccumWL);
+
+%% Test signal parameters
+
+% Pulse width
+pulseWidth = 8.5e-6;
+
+% Pulse start/end frequencies
+pulseCentFreq = 125e6;
+pulseBw = 50e6; % Pulse bandwidth
+
+% Number of pulses
+numPulses = 4;
+
+% Pulse repetition interval
+PRF = 20e3;
+PRI = 1/PRF;
+
+% Output gain
+pulseGenGain = 1;
+
+%% Software parameters
+
+% Signal generator update rate
+TsSW = 0.0025;
+
+%% Simulation parameters
+
+% Sim run time
+stoptime = 10*TsSW;
+
+%% Channelizer parameters
+
+% Number of channels, maximally decimated channelizer M/D=1
+%nChan = 512;
+
+% Taps per band
+%nTapsPerBand = 16;
+
+% Create channelizer object
+%channelizer = dsp.Channelizer('NumFrequencyBands',nChan,...
+% 'DecimationFactor',nChan,...
+% 'NumTapsPerBand',nTapsPerBand);
+% Channelizer coefficients
+%channelizerCoeffs = channelizer.coeffs.Numerator;
+
+% Channel bandwidth
+%chanBW = fs/nChan;
+
+% Starting frequency for each channel
+%chanFStart = chanBW/2:chanBW:(fs/2-chanBW/2);
+
+% Number of frames out of channelzier
+%nFrames = nChan/SamplesPerCycle;
+
+% Frame size after serializing x2
+%frameSize = SamplesPerCycle/2;
-% derived model-wide variables set into base workspace.
-assignin('base','SampleTime', SampleTime);
-end
\ No newline at end of file
+
+
+
+% function soc_rfsoc_init(mdlPath)
+% % Initialization fcn for the model. It sets the model-wide params
+% % which are derived based on sample rate.
+%
+% % 'FrameSize and 'NumBuffers' variables are set during model
+% % PreLoadFcn callback into base workspace. These two variables should be
+% % changed directly at the MATLAB command
+%
+% % FrameSize = evalin('base','FrameSize');
+%
+% dacSampleRate = get_param([mdlPath '/RF Data Converter'], 'dacSampleRate');
+% dacSampleRate = evalin('base', dacSampleRate)*1e6;
+% dacSamplesPerCycle = str2double(get_param([mdlPath '/RF Data Converter'], 'dacSamplesPerCycle'));
+% dacInterpolationMode = str2double(get_param([mdlPath '/RF Data Converter'], 'interpolationMode'));
+% streamClkFrequency = dacSampleRate/(dacSamplesPerCycle*dacInterpolationMode);
+%
+% SampleTime = 1/streamClkFrequency;
+%
+% % derived model-wide variables set into base workspace.
+% assignin('base','FPGAClkRate', streamClkFrequency);
+% assignin('base','TsFPGA', SampleTime);
+% assignin('base','SamplesPerCycle', dacSamplesPerCycle);
+% assignin('base','IntDecFactor', dacInterpolationMode);
+% end
\ No newline at end of file
diff --git a/utilities/soc_rfsoc_preload.m b/utilities/soc_rfsoc_preload.m
new file mode 100644
index 0000000..49e4c53
--- /dev/null
+++ b/utilities/soc_rfsoc_preload.m
@@ -0,0 +1,12 @@
+%% DMA and SW parameters
+FrameSize = 512;
+NumBuffers = 16;
+%downSamplingFactor = 64;
+%SrcSel = 0;
+
+%% Rate setup (use txspectrum and rxspectrum tools)
+
+% local
+fs_RF = 4096e6; % RF data converter sampling rate
+fs_RF_MSPS = fs_RF/1e6; % Parameter on block is in Mega samples/s
+RFDC_NCOFreq_GHz = 0.768; % RFDC's NCO frequency in Giga Hertz
\ No newline at end of file
diff --git a/utilities/soc_rfsoc_startup.m b/utilities/soc_rfsoc_prj_startup.m
similarity index 94%
rename from utilities/soc_rfsoc_startup.m
rename to utilities/soc_rfsoc_prj_startup.m
index 289320f..5379da8 100644
--- a/utilities/soc_rfsoc_startup.m
+++ b/utilities/soc_rfsoc_prj_startup.m
@@ -3,4 +3,6 @@
% Configure HDL Coder to use Xilinx Vivado for HDL workflows.
%
hdlsetuptoolpath('ToolName','Xilinx Vivado', ...
- 'ToolPath','/tools/Xilinx/Vivado/2024.1/bin/vivado');
\ No newline at end of file
+ 'ToolPath','/tools/Xilinx/Vivado/2024.1/bin/vivado');
+
+%%
\ No newline at end of file