📄 gmsk_mod_demo.mdl
字号:
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType ComplexToRealImag
Output "Real and imag"
SampleTime "-1"
}
Block {
BlockType Concatenate
NumInputs "2"
}
Block {
BlockType Constant
}
Block {
BlockType DataTypeConversion
OutDataTypeMode "Inherit via back propagation"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
ConvertRealWorld "Real World Value (RWV)"
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType FrameConversion
OutFrame "Frame based"
}
Block {
BlockType Inport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
LatchByDelayingOutsideSignal off
LatchByCopyingInsideSignal off
Interpolate on
}
Block {
BlockType "M-S-Function"
FunctionName "mlfile"
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
UseBusObject off
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Outport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Reference
}
Block {
BlockType Rounding
Operator "floor"
SampleTime "-1"
}
Block {
BlockType Scope
ModelBased off
TickLabels "OneTimeTick"
ZoomMode "on"
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "-1"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
TreatAsAtomicUnit off
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Arial"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "gmsk_mod_demo"
Location [369, 466, 1268, 927]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 2]
Position [290, 213, 320, 242]
NamePlacement "alternate"
Output "Real and imag"
}
Block {
BlockType Reference
Name "Copyright"
Ports []
Position [637, 327, 836, 425]
DropShadow on
ShowName off
SourceBlock "xbsCopyrightNotice_r4/Copyright"
SourceType "Xilinx Copyright Notice Block"
infoedit "
\nCopyright(C) 2008 by Xilinx, Inc. All right"
"s reserved.<br>
\n<br>
\nThis file contains proprietary, confidential informa"
"tion of Xilinx, Inc., is distributed under license
\nfrom Xilinx, Inc., and m"
"ay be used, copied and/or disclosed only pursuant to the terms of a valid lic"
"ense
\nagreement with Xilinx, Inc. Xilinx hereby grants you a license to use "
"this file solely for design,
\nsimulation, implementation and creation of des"
"ign files limited to Xilinx devices or technologies. Use
\nwith non-Xilinx d"
"evices or technologies is expressly prohibited and immediately terminates you"
"r license
\nunless covered by a separate agreement.<br>
\n<br>
\nXilinx is p"
"roviding this design, code, or information \"as-is\" solely for use in develo"
"ping programs and
\nsolutions for Xilinx devices, with no obligation on the "
"part of Xilinx to provide support. By providing
\nthis design, code, or infor"
"mation as one possible implementation of this feature, application or standar"
"d,
\nXilinx is making no representation that this implementation is free from"
" any claims of infringement. You
\nare responsible for obtaining any rights y"
"ou may require for your implementation. Xilinx expressly disclaims
\nany warr"
"anty whatsoever with respect to the adequacy of the implementation, including"
" but not limited to any
\nwarranties or representations that this implementat"
"ion is free from claims of infringement, implied warranties
\nof merchantabil"
"ity or fitness for a particular purpose.<br>
\n<br>
\nXilinx products are not"
" intended for use in life support appliances, devices, or systems. Use in suc"
"h
\napplications is expressly prohibited.<br>
\n<br>
\nAny modifications tha"
"t are made to the Source Code are done at the user's sole risk and will be un"
"supported.<br>
\n<br>
\nThis copyright and support notice must be retained as"
" part of this text at all times.
\n(c) Copyright 1995-2008 Xilinx, Inc. All "
"rights reserved.
\n "
has_advanced_control "0"
sggui_pos "-1,-1,-1,-1"
block_type "copyright"
block_version "10.1.3"
sg_icon_stat "199,98,-1,-1,beige,white,0,0,right"
sg_mask_display "fprintf('','COMMENT: begin icon graphics');\npa"
"tch([0 199 199 0 ],[0 0 98 98 ],[0.98 0.96 0.92]);\npatch([73 57 80 57 73 99 "
"106 113 141 119 98 83 106 83 98 119 141 113 106 99 73 ],[11 27 50 73 89 89 82"
" 89 89 67 88 73 50 27 12 33 11 11 18 11 11 ],[0.93 0.92 0.86]);\nplot([0 199 "
"199 0 0 ],[0 0 98 98 0 ]);\nfprintf('','COMMENT: end icon graphics');\nfprint"
"f('','COMMENT: begin icon text');\nfprintf('','COMMENT: end icon text');\ndis"
"p('{\\fontsize{12pt}(c) Copyright 1995-2008 Xilinx, Inc.}\\newline \\newline "
"','texmode','on');\ndisp('{\\fontsize{12pt}#-- All rights reserved.}','texmod"
"e','on');\ndisp('\\newline \\newline \\newline \\newline \\newline \\newline{"
"\\fontsize{12pt}Double Click for Copyright Notice}','texmode','on');\n"
}
Block {
BlockType Reference
Name "Discrete-Time\nEye Diagram\nScope"
Tag "EyeDiagram"
Ports [1]
Position [710, 164, 785, 216]
SourceBlock "commsink2/Discrete-Time\nEye Diagram\nScope"
SourceType "Discrete-Time Eye Diagram Scope"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
sampPerSymb "8"
offsetEye "0"
symbPerTrace "1"
numTraces "40"
numNewFrames "10"
LineStyles "-"
LineColors "b"
dupPoints on
fading on
render on
AxisGrid on
yMin "-1.2"
yMax "1.2"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
openScopeAtSimStart on
dispDiagram "In-phase and Quadrature"
FrameNumber off
FigPos "[231 129 349 546]"
figTitle "Eye Diagram"
block_type_ "eye"
numLinesMax "8"
}
Block {
BlockType Reference
Name "Discrete-Time\nScatter Plot\nScope"
Tag "ScatterPlot"
Ports [1]
Position [710, 54, 785, 106]
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScope"
SourceType "Discrete-Time Scatter Plot Scope"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
sampPerSymb "1"
offsetEye "0"
numTraces "32"
numNewFrames "1"
LineMarkers "+"
LineColors "b"
fading on
render on
AxisGrid on
xMin "-1.2"
xMax "1.2"
yMin "-1.2"
yMax "1.2"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
openScopeAtSimStart on
FrameNumber off
FigPos "[47 730 560 420]"
figTitle "Scatter Plot"
numLinesMax "8"
block_type_ "scatter"
}
Block {
BlockType Reference
Name "GMSK\nModulator\nBaseband"
Ports [1, 1]
Position [150, 204, 225, 256]
SourceBlock "commdigbbndcpm2/GMSK\nModulator\nBaseband"
SourceType "GMSK Modulator Baseband"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
inputType "Bit"
BT ".3"
pulseLength "4"
preHistory "1"
phaseOffset "0"
samplesPerSymbol "8"
outDataType "double"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [470, 191, 475, 229]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [470, 231, 475, 269]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "Random Integer\nGenerator"
Ports [0, 1]
Position [20, 208, 100, 252]
SourceBlock "commrandsrc2/Random Integer\nGenerator"
SourceType "Random Integer Generator"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
mul "2"
seed "1"
Ts "1/270.8333e3"
frameBased off
sampPerFrame "1"
orient off
outDataType "double"
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [535, 191, 605, 269]
Floating off
Location [493, 367, 1435, 894]
Open off
NumInputPorts "2"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
TimeRange "0.001"
YMin "-1.2~-1.2"
YMax "1.2~1.2"
DataFormat "StructureWithTime"
MaxDataPoints "100000"
SampleTime "0"
}
Line {
SrcBlock "GMSK\nModulator\nBaseband"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Complex to\nReal-Imag"
DstPort 1
}
Branch {
Points [0, -150; 395, 0]
Branch {
DstBlock "Discrete-Time\nScatter Plot\nScope"
DstPort 1
}
Branch {
Points [0, 110]
DstBlock "Discrete-Time\nEye Diagram\nScope"
DstPort 1
}
}
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 2
Points [15, 0; 0, 25]
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Scope"
DstPort 2
}
Line {
SrcBlock "Random Integer\nGenerator"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "GMSK\nModulator\nBaseband"
DstPort 1
}
Branch {
Points [0, -80; 290, 0; 0, 50]
Branch {
DstBlock "Mux"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "Mux1"
DstPort 1
}
}
}
Annotation {
Name "Demonstration of GMSK modulation using scatter "
"plot and eye diagram"
Position [335, 24]
BackgroundColor "lightBlue"
DropShadow on
TeXMode "on"
UseDisplayTextAsClickCallback off
FontName "Times New Roman"
FontSize 12
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -