This commit is contained in:
canisio
2026-03-24 12:44:45 -03:00
commit ac2e7bcece
68 changed files with 266 additions and 0 deletions

33
.gitattributes vendored Normal file
View 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
View 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
View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<MATLABProject xmlns="http://www.mathworks.com/MATLABProjectFile"/>

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info>
<Category UUID="FileClassCategory">
<Label UUID="design"/>
</Category>
</Info>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="soc_rfsoc_shutdown.m" type="File"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="1" type="DIR_SIGNIFIER"/>

View File

@@ -0,0 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info>
<Category UUID="FileClassCategory">
<Label UUID="design"/>
</Category>
</Info>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="soc_rfsoc_init.m" type="File"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info Ref="" Type="Relative"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="7ac7702b-30c0-47d0-8a3a-1562b67f2ab5" type="Reference"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info Ref="referencedmodels" Type="Relative"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="15258b0d-3597-4917-9d8b-5ec7677aa528" type="Reference"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info Ref="utilities" Type="Relative"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="082474f0-d7d9-423c-bb63-dc039b2ad79a" type="Reference"/>

View File

@@ -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"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="7d63d4a9-9d55-41fa-b005-0a62ca4e1c4b" type="EntryPoint"/>

View File

@@ -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"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="992f77a5-d756-4925-af3d-4c4ad157be49" type="EntryPoint"/>

View File

@@ -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"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="1117b866-13fd-4876-9d3c-fe93be7b2986" type="EntryPoint"/>

View File

@@ -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"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="c23e4a41-cd67-47c3-b50c-bb83f6e237de" type="EntryPoint"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info Name="Test" ReadOnly="INHERITED"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="test" type="Label"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info Name="Other" ReadOnly="INHERITED"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="other" type="Label"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info Name="Convenience" ReadOnly="INHERITED"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="convenience" type="Label"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info Name="None" ReadOnly="INHERITED"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="none" type="Label"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info Name="Derived" ReadOnly="INHERITED"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="derived" type="Label"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info Name="Design" ReadOnly="INHERITED"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="design" type="Label"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info Name="Artifact" ReadOnly="INHERITED"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="artifact" type="Label"/>

View File

@@ -0,0 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info>
<Category UUID="FileClassCategory">
<Label UUID="design"/>
</Category>
</Info>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="soc_rfsoc_fpga.slx" type="File"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="1" type="DIR_SIGNIFIER"/>

View File

@@ -0,0 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info>
<Category UUID="FileClassCategory">
<Label UUID="design"/>
</Category>
</Info>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="soc_rfsoc_proc.slx" type="File"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info MetadataType="fixedPathV2"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info DataType="None" Name="Classification" ReadOnly="1" SingleValued="1"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="FileClassCategory" type="Category"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="utilities" type="File"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="referencedmodels" type="File"/>

View File

@@ -0,0 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info>
<Category UUID="FileClassCategory">
<Label UUID="design"/>
</Category>
</Info>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="soc_rfsoc_top.slx" type="File"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="Root" type="Extensions"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="Root" type="ProjectPath"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info Name="BeamForming"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="ProjectData" type="Info"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="Root" type="EntryPoints"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="Root" type="ProjectData"/>

View 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>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="Root" type="Categories"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="Root" type="Files"/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info/>

View File

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info/>

BIN
soc_rfsoc_top.slx Normal file

Binary file not shown.

View 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

View File

@@ -0,0 +1,6 @@
clear FrameSize ...
SampleTime ...
downSamplingFactor ...
NumBuffers ...
SrcSel ...
SrcSelReg;