Initial
This commit is contained in:
33
.gitattributes
vendored
Normal file
33
.gitattributes
vendored
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
* text=auto
|
||||||
|
|
||||||
|
*.fig binary
|
||||||
|
*.mat binary
|
||||||
|
*.mdl binary diff merge=mlAutoMerge
|
||||||
|
*.mdlp binary
|
||||||
|
*.mex* binary
|
||||||
|
*.mlapp binary
|
||||||
|
*.mldatx binary merge=mlAutoMerge
|
||||||
|
*.mlproj binary
|
||||||
|
*.mlx binary
|
||||||
|
*.p binary
|
||||||
|
*.plprj binary
|
||||||
|
*.sbproj binary
|
||||||
|
*.sfx binary
|
||||||
|
*.sldd binary
|
||||||
|
*.slreqx binary merge=mlAutoMerge
|
||||||
|
*.slmx binary merge=mlAutoMerge
|
||||||
|
*.sltx binary
|
||||||
|
*.slxc binary
|
||||||
|
*.slx binary merge=mlAutoMerge
|
||||||
|
*.slxp binary
|
||||||
|
|
||||||
|
## MATLAB Project metadata files use LF line endings
|
||||||
|
/resources/project/**/*.xml text eol=lf
|
||||||
|
|
||||||
|
## Other common binary file types
|
||||||
|
*.docx binary
|
||||||
|
*.exe binary
|
||||||
|
*.jpg binary
|
||||||
|
*.pdf binary
|
||||||
|
*.png binary
|
||||||
|
*.xlsx binary
|
||||||
40
.gitignore
vendored
Normal file
40
.gitignore
vendored
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
# Autosave files
|
||||||
|
*.asv
|
||||||
|
*.m~
|
||||||
|
*.autosave
|
||||||
|
*.slx.r*
|
||||||
|
*.mdl.r*
|
||||||
|
|
||||||
|
# Derived content-obscured files
|
||||||
|
*.p
|
||||||
|
|
||||||
|
# Compiled MEX files
|
||||||
|
*.mex*
|
||||||
|
|
||||||
|
# Packaged app and toolbox files
|
||||||
|
*.mlappinstall
|
||||||
|
*.mltbx
|
||||||
|
|
||||||
|
# Deployable archives
|
||||||
|
*.ctf
|
||||||
|
|
||||||
|
# Generated helpsearch folders
|
||||||
|
helpsearch*/
|
||||||
|
|
||||||
|
# Code generation folders
|
||||||
|
slprj/
|
||||||
|
sccprj/
|
||||||
|
codegen/
|
||||||
|
|
||||||
|
# Cache files
|
||||||
|
*.slxc
|
||||||
|
|
||||||
|
# Cloud based storage dotfile
|
||||||
|
.MATLABDriveTag
|
||||||
|
|
||||||
|
# buildtool cache folder
|
||||||
|
.buildtool/
|
||||||
|
|
||||||
|
# SimBiology backup files
|
||||||
|
*.sbproj.backup
|
||||||
|
*.sbproj.bak
|
||||||
2
BeamForming.prj
Normal file
2
BeamForming.prj
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<MATLABProject xmlns="http://www.mathworks.com/MATLABProjectFile"/>
|
||||||
BIN
referencedmodels/soc_rfsoc_fpga.slx
Normal file
BIN
referencedmodels/soc_rfsoc_fpga.slx
Normal file
Binary file not shown.
BIN
referencedmodels/soc_rfsoc_proc.slx
Normal file
BIN
referencedmodels/soc_rfsoc_proc.slx
Normal file
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_shutdown.m" type="File"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="1" type="DIR_SIGNIFIER"/>
|
||||||
@@ -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_init.m" type="File"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info Ref="" Type="Relative"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="7ac7702b-30c0-47d0-8a3a-1562b67f2ab5" type="Reference"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info Ref="referencedmodels" Type="Relative"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="15258b0d-3597-4917-9d8b-5ec7677aa528" type="Reference"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info Ref="utilities" Type="Relative"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="082474f0-d7d9-423c-bb63-dc039b2ad79a" type="Reference"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info File="utilities/soc_rfsoc_shutdown.m" Icon="" Name="soc_rfsoc_shutdown" Type="Shutdown" Visible="0"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="7d63d4a9-9d55-41fa-b005-0a62ca4e1c4b" type="EntryPoint"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info File="soc_rfsoc_top.slx" Icon="" Name="Open Top model" Type="Basic" Visible="1"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="992f77a5-d756-4925-af3d-4c4ad157be49" type="EntryPoint"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info File="referencedmodels/soc_rfsoc_fpga.slx" Icon="" Name="Open FPGA model" Type="Basic" Visible="1"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="1117b866-13fd-4876-9d3c-fe93be7b2986" type="EntryPoint"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info File="referencedmodels/soc_rfsoc_proc.slx" GroupUUID="" Icon="" Name="Open Processor model" Type="Basic" Visible="1"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="c23e4a41-cd67-47c3-b50c-bb83f6e237de" type="EntryPoint"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info Name="Test" ReadOnly="INHERITED"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="test" type="Label"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info Name="Other" ReadOnly="INHERITED"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="other" type="Label"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info Name="Convenience" ReadOnly="INHERITED"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="convenience" type="Label"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info Name="None" ReadOnly="INHERITED"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="none" type="Label"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info Name="Derived" ReadOnly="INHERITED"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="derived" type="Label"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info Name="Design" ReadOnly="INHERITED"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="design" type="Label"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info Name="Artifact" ReadOnly="INHERITED"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="artifact" type="Label"/>
|
||||||
@@ -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_fpga.slx" type="File"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="1" type="DIR_SIGNIFIER"/>
|
||||||
@@ -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_proc.slx" type="File"/>
|
||||||
2
resources/project/Project.xml
Normal file
2
resources/project/Project.xml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info MetadataType="fixedPathV2"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info DataType="None" Name="Classification" ReadOnly="1" SingleValued="1"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="FileClassCategory" type="Category"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="utilities" type="File"/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="referencedmodels" type="File"/>
|
||||||
@@ -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_top.slx" type="File"/>
|
||||||
2
resources/project/root/6x1BhZX_fLnKpcwqra0qFwv1jIgp.xml
Normal file
2
resources/project/root/6x1BhZX_fLnKpcwqra0qFwv1jIgp.xml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="Root" type="Extensions"/>
|
||||||
2
resources/project/root/EEtUlUb-dLAdf0KpMVivaUlztwAp.xml
Normal file
2
resources/project/root/EEtUlUb-dLAdf0KpMVivaUlztwAp.xml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="Root" type="ProjectPath"/>
|
||||||
2
resources/project/root/GiiBklLgTxteCEmomM8RCvWT0nQd.xml
Normal file
2
resources/project/root/GiiBklLgTxteCEmomM8RCvWT0nQd.xml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info Name="BeamForming"/>
|
||||||
2
resources/project/root/GiiBklLgTxteCEmomM8RCvWT0nQp.xml
Normal file
2
resources/project/root/GiiBklLgTxteCEmomM8RCvWT0nQp.xml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="ProjectData" type="Info"/>
|
||||||
2
resources/project/root/KAXfQgCar2Yb8zOxgvf9hdmLP1Ep.xml
Normal file
2
resources/project/root/KAXfQgCar2Yb8zOxgvf9hdmLP1Ep.xml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="Root" type="EntryPoints"/>
|
||||||
2
resources/project/root/NmGqIpAwUJcXFyLjFAGnU9uyN5Yp.xml
Normal file
2
resources/project/root/NmGqIpAwUJcXFyLjFAGnU9uyN5Yp.xml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="Root" type="ProjectData"/>
|
||||||
25
resources/project/root/fjRQtWiSIy7hIlj-Kmk87M7s21kd.xml
Normal file
25
resources/project/root/fjRQtWiSIy7hIlj-Kmk87M7s21kd.xml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Category Location="FileClassCategory">
|
||||||
|
<Info DataType="None" Name="Classification" ReadOnly="1" SingleValued="1"/>
|
||||||
|
<Label Location="artifact">
|
||||||
|
<Info Name="Artifact" ReadOnly="READ_ONLY"/>
|
||||||
|
</Label>
|
||||||
|
<Label Location="convenience">
|
||||||
|
<Info Name="Convenience" ReadOnly="READ_ONLY"/>
|
||||||
|
</Label>
|
||||||
|
<Label Location="derived">
|
||||||
|
<Info Name="Derived" ReadOnly="READ_ONLY"/>
|
||||||
|
</Label>
|
||||||
|
<Label Location="design">
|
||||||
|
<Info Name="Design" ReadOnly="READ_ONLY"/>
|
||||||
|
</Label>
|
||||||
|
<Label Location="none">
|
||||||
|
<Info Name="None" ReadOnly="READ_ONLY"/>
|
||||||
|
</Label>
|
||||||
|
<Label Location="other">
|
||||||
|
<Info Name="Other" ReadOnly="READ_ONLY"/>
|
||||||
|
</Label>
|
||||||
|
<Label Location="test">
|
||||||
|
<Info Name="Test" ReadOnly="READ_ONLY"/>
|
||||||
|
</Label>
|
||||||
|
</Category>
|
||||||
2
resources/project/root/fjRQtWiSIy7hIlj-Kmk87M7s21kp.xml
Normal file
2
resources/project/root/fjRQtWiSIy7hIlj-Kmk87M7s21kp.xml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="Root" type="Categories"/>
|
||||||
2
resources/project/root/qaw0eS1zuuY1ar9TdPn1GMfrjbQp.xml
Normal file
2
resources/project/root/qaw0eS1zuuY1ar9TdPn1GMfrjbQp.xml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info location="Root" type="Files"/>
|
||||||
2
resources/project/rootp.xml
Normal file
2
resources/project/rootp.xml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<Info/>
|
||||||
BIN
soc_rfsoc_top.slx
Normal file
BIN
soc_rfsoc_top.slx
Normal file
Binary file not shown.
22
utilities/soc_rfsoc_init.m
Normal file
22
utilities/soc_rfsoc_init.m
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
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','SampleTime', SampleTime);
|
||||||
|
end
|
||||||
6
utilities/soc_rfsoc_shutdown.m
Normal file
6
utilities/soc_rfsoc_shutdown.m
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
clear FrameSize ...
|
||||||
|
SampleTime ...
|
||||||
|
downSamplingFactor ...
|
||||||
|
NumBuffers ...
|
||||||
|
SrcSel ...
|
||||||
|
SrcSelReg;
|
||||||
Reference in New Issue
Block a user