📄 gardner_intdelay.mdl
字号:
TagVisibility "global"
}
Block {
BlockType SubSystem
Name "Rebuffer the symbols"
Ports [1, 2, 0, 1]
Position [445, 88, 585, 132]
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Rebuffer the symbols"
Location [43, 486, 712, 682]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [110, 83, 140, 97]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType TriggerPort
Name "Trigger"
Ports []
Position [35, 30, 55, 50]
StatesWhenEnabling "held"
}
Block {
BlockType SubSystem
Name "Modified Buffer"
Ports [1, 2]
Position [190, 59, 295, 121]
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Input-Driven Buffer"
MaskDescription "A modified buffer subsystem that is dri"
"ven by the arrival of its input data; it produces a valid output data buffer "
"whenever its buffer is full and sets its dataValid flag to 1. Otherwise, the "
"data at its dataOut port is not valid and its dataValid flag is set to 0. "
MaskPromptString "Buffer size:"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "bufSize=@1;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "g1.numSymb"
System {
Name "Modified Buffer"
Location [481, 145, 1150, 438]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [130, 48, 160, 62]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "Compare\nTo Constant"
Ports [1, 1]
Position [200, 95, 230, 125]
SourceBlock "simulink/Logic and Bit\nOperations/"
"Compare\nTo Constant"
SourceType "Compare To Constant"
ShowPortLabels "on"
relop "=="
const "(bufSize-1)"
LogicOutDataTypeMode "boolean"
ZeroCross "off"
}
Block {
BlockType Reference
Name "Counter\nLimited"
Ports [0, 1]
Position [130, 95, 160, 125]
SourceBlock "simulink/Sources/Counter\nLimited"
SourceType "Counter Limited"
ShowPortLabels "on"
uplimit "(bufSize-1)"
tsamp "-1"
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion"
Position [325, 218, 395, 252]
OutDataTypeMode "double"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Delay Line"
Ports [1, 1]
Position [250, 29, 310, 81]
SourceBlock "dspbuff3/Delay Line"
SourceType "Delay Line"
siz "bufSize"
ic "0"
directfeed "on"
}
Block {
BlockType Ground
Name "Ground"
Position [325, 155, 345, 175]
}
Block {
BlockType Switch
Name "Switch"
Position [365, 25, 425, 195]
Criteria "u2 ~= 0"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "dataOut"
Position [475, 103, 505, 117]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "dataValid"
Position [485, 228, 515, 242]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Ground"
SrcPort 1
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "dataOut"
DstPort 1
}
Line {
SrcBlock "Compare\nTo Constant"
SrcPort 1
Points [-5, 0; 55, 0]
Branch {
DstBlock "Switch"
DstPort 2
}
Branch {
Points [0, 125]
DstBlock "Data Type Conversion"
DstPort 1
}
}
Line {
SrcBlock "Delay Line"
SrcPort 1
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "Counter\nLimited"
SrcPort 1
DstBlock "Compare\nTo Constant"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Delay Line"
DstPort 1
}
Line {
SrcBlock "Data Type Conversion"
SrcPort 1
DstBlock "dataValid"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "SymbolFrame"
Position [365, 68, 395, 82]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "FrameCLK"
Position [425, 98, 455, 112]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Modified Buffer"
DstPort 1
}
Line {
SrcBlock "Modified Buffer"
SrcPort 1
DstBlock "SymbolFrame"
DstPort 1
}
Line {
SrcBlock "Modified Buffer"
SrcPort 2
DstBlock "FrameCLK"
DstPort 1
}
Annotation {
Name "Subsystem Details: \nBuffers up the rec"
"eived symbol based on the \nderived symbol clock at the receiver.\nAlso gener"
"ates the frame clock signal."
Position [543, 158]
ForegroundColor "blue"
}
}
}
Block {
BlockType SubSystem
Name "Resample"
Ports [1, 3, 0, 1]
Position [240, 52, 350, 148]
NamePlacement "alternate"
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Resample"
Location [269, 453, 805, 712]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [55, 108, 85, 122]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType TriggerPort
Name "Trigger"
Ports []
Position [55, 30, 75, 50]
}
Block {
BlockType SubSystem
Name "Modified Downample"
Ports [1, 2]
Position [155, 96, 255, 134]
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Input-Driven Downsample"
MaskDescription "A modified down-sample subsystem that i"
"s driven by the arrival of its input data; it produces valid output data ever"
"y \"outSamp\" input data and sets its dataValid flag to 1. Otherwise, the dat"
"a at its dataOut port is not valid and its dataValid flag is set to 0.\n"
MaskPromptString "Downsample factor|Sample offset"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "dFactor=@1;offset=@2;"
MaskDisplay "port_label('Input',1,'In');\nport_label"
"('Output',1,'dataOut');\nport_label('Output',2,'dataValid');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "outSamp|0"
MaskTabNameString ","
System {
Name "Modified Downample"
Location [263, 207, 940, 472]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [215, 48, 245, 62]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "Compare\nTo Constant"
Ports [1, 1]
Position [135, 95, 165, 125]
SourceBlock "simulink/Logic and Bit\nOperations/"
"Compare\nTo Constant"
SourceType "Compare To Constant"
ShowPortLabels "on"
relop "=="
const "offset"
LogicOutDataTypeMode "boolean"
ZeroCross "off"
}
Block {
BlockType Reference
Name "Counter\nLimited"
Ports [0, 1]
Position [70, 95, 100, 125]
SourceBlock "simulink/Sources/Counter\nLimited"
SourceType "Counter Limited"
ShowPortLabels "on"
uplimit "dFactor-1"
tsamp "-1"
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion"
Position [220, 198, 295, 232]
OutDataTypeMode "double"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Ground
Name "Ground"
Position [260, 155, 280, 175]
}
Block {
BlockType Switch
Name "Switch"
Position [305, 25, 365, 195]
Criteria "u2 ~= 0"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "dataOut"
Position [415, 103, 445, 117]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "dataValid"
Position [420, 208, 450, 222]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Ground"
SrcPort 1
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "dataOut"
DstPort 1
}
Line {
SrcBlock "Compare\nTo Constant"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
DstBlock "Switch"
DstPort 2
}
Branch {
Points [0, 105]
DstBlock "Data Type Conversion"
DstPort 1
}
}
Line {
SrcBlock "Counter\nLimited"
SrcPort 1
DstBlock "Compare\nTo Constant"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "Data Type Conversion"
SrcPort 1
DstBlock "dataValid"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Symbol CLK"
Position [300, 118, 330, 132]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Symbols"
Position [360, 98, 390, 112]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Samples"
Position [360, 158, 390, 172]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
Points [45, 0]
Branch {
Points [0, 0]
DstBlock "Modified Downample"
DstPort 1
}
Branch {
Points [0, 50]
DstBlock "Samples"
DstPort 1
}
}
Line {
SrcBlock "Modified Downample"
SrcPort 1
DstBlock "Symbols"
DstPort 1
}
Line {
SrcBlock "Modified Downample"
SrcPort 2
DstBlock "Symbol CLK"
DstPort 1
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -