📄 bluetooth_lib.mdl
字号:
DstPort 1
}
Line {
SrcBlock "Buffer to same\nframe-size\nas channel"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "22MHz noise in\n100MHz signal"
SrcPort 1
DstBlock "Buffer to same\nframe-size\nas channel"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Bluetooth\nClock"
Ports [0, 1]
Position [40, 64, 80, 96]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Bluetooth Clock"
MaskPromptString "Sample Time"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "Ts=@1;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "(1/1600)/2"
System {
Name "Bluetooth\nClock"
Location [202, 460, 502, 581]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Reference
Name "DSP\nConstant"
Ports [0, 1]
Position [25, 29, 60, 61]
ShowName off
SourceBlock "dspsrcs3/DSP\nConstant"
SourceType "DSP Constant"
Value "1"
InterpretAs1D "off"
SampleMode "Discrete"
Ts "Ts"
FramebasedOutput "off"
}
Block {
BlockType Reference
Name "Integer Delay1"
Ports [1, 1]
Position [145, 27, 190, 63]
ShowName off
SourceBlock "dspsigops/Integer Delay"
SourceType "Integer Delay"
delay "1"
ic "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [105, 35, 125, 55]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Outport
Name "CLK"
Position [245, 38, 275, 52]
IconDisplay "Port number"
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Integer Delay1"
DstPort 1
}
Line {
SrcBlock "DSP\nConstant"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Integer Delay1"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
Labels [3, 0]
Points [0, 50; -110, 0]
DstBlock "Sum"
DstPort 2
}
Branch {
DstBlock "CLK"
DstPort 1
}
}
}
}
Block {
BlockType SubSystem
Name "Hop Sequence\nGenerator"
Ports [2, 1]
Position [165, 65, 235, 125]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Hop Sequence Generator"
MaskDescription "Generate a sequence of hop frequencies in the r"
"ange 0 to 78. Can generate either the connection state hop sequence, a random"
" white sequence, or be fixed."
MaskPromptString "Hop mode|Hop seed (for white random sequence op"
"tion)|Fixed hop frequency (for fixed option)"
MaskStyleString "popup(Connection State Hop Sequence|Random Whit"
"e Hop Sequence|Fixed Frequency),edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "Hop_Mode=@1;hop_seed=@2;fixed_hop_freq=@3;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Connection State Hop Sequence|hop_seed|fixed_ho"
"p_freq"
MaskTabNameString ",,"
System {
Name "Hop Sequence\nGenerator"
Location [105, 176, 774, 568]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "CLK"
Position [200, 93, 230, 107]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "ULAP"
Position [200, 123, 230, 137]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType SubSystem
Name "Connection State\nHop Sequence"
Ports [2, 1, 1]
Position [300, 85, 385, 145]
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Connection State\nHop Sequence"
Location [250, 198, 944, 647]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "CLK"
Position [65, 188, 95, 202]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "ULAP"
Position [65, 253, 95, 267]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [275, 55, 295, 75]
}
Block {
BlockType Reference
Name "DSP\nConstant"
Ports [0, 1]
Position [70, 299, 105, 331]
SourceBlock "dspsrcs4/DSP\nConstant"
SourceType "DSP Constant"
ShowPortLabels on
Value "2^28"
SampleMode "Discrete"
discreteOutput "Sample-based"
continuousOutput "Sample-based"
sampTime "(1/1600)/2"
framePeriod "(1/1600)/2"
additionalParams off
allowOverrides on
dataType "Inherit from 'Constant value'"
isSigned on
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "15"
InterpretAs1D "off"
Ts "(1/1600)/2"
FramebasedOutput "off"
}
Block {
BlockType SubSystem
Name "Int to bit\nLSB first"
Ports [1, 1]
Position [295, 177, 335, 213]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskPromptString "Number of bits"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "Numbits=@1;"
MaskDisplay "disp('Int to bit\\n\nLSB first');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "28"
System {
Name "Int to bit\nLSB first"
Location [466, 428, 831, 610]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 88, 55, 102]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "Flip"
Ports [1, 1]
Position [230, 81, 265, 109]
SourceBlock "dspindex/Flip"
SourceType "Flip"
dim "Columns"
}
Block {
BlockType Reference
Name "Integer to Bit\nConverter3"
Ports [1, 1]
Position [110, 73, 175, 117]
ShowName off
SourceBlock "commutil2/Integer to Bit\nConverter"
SourceType "Integer to Bit Converter"
nbits "Numbits"
}
Block {
BlockType Outport
Name "Out1"
Position [320, 88, 350, 102]
IconDisplay "Port number"
}
Line {
SrcBlock "Integer to Bit\nConverter3"
SrcPort 1
DstBlock "Flip"
DstPort 1
}
Line {
SrcBlock "Flip"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Integer to Bit\nConverter3"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Int to bit\nLSB first1"
Ports [1, 1]
Position [230, 252, 270, 288]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskPromptString "Number of bits"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "Numbits=@1;"
MaskDisplay "disp('Int to bit\\n\nLSB first');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "28"
System {
Name "Int to bit\nLSB first1"
Location [466, 428, 831, 610]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 88, 55, 102]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "Flip"
Ports [1, 1]
Position [230, 81, 265, 109]
SourceBlock "dspindex/Flip"
SourceType "Flip"
dim "Columns"
}
Block {
BlockType Reference
Name "Integer to Bit\nConverter3"
Ports [1, 1]
Position [110, 73, 175, 117]
ShowName off
SourceBlock "commutil2/Integer to Bit\nConverter"
SourceType "Integer to Bit Converter"
nbits "Numbits"
}
Block {
BlockType Outport
Name "Out1"
Position [320, 88, 350, 102]
IconDisplay "Port number"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Integer to Bit\nConverter3"
DstPort 1
}
Line {
SrcBlock "Flip"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Integer to Bit\nConverter3"
SrcPort 1
DstBlock "Flip"
DstPort 1
}
}
}
Block {
BlockType Selector
Name "LAP+ 4LSB UAP"
Ports [1, 1]
Position [305, 262, 340, 278]
Elements "[0:27] +1"
InputPortWidth "28"
}
Block {
BlockType SubSystem
Name "Selection Box"
Ports [2, 1]
Position [395, 158, 515, 307]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Selection Box"
Location [37, 104, 1018, 683]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "CLK"
Position [35, 73, 65, 87]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Address"
Position [30, 173, 60, 187]
Port "2"
IconDisplay "Port number"
LatchInput off
Port {
PortNumber 1
Name "A"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -