📄 crcmdl.mdl
字号:
Position [115, 246, 190, 294]
SourceBlock "commcrc2/CRC-N Generator"
SourceType "CRC-N Generator"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
crcMethod "CRC-16"
iniStates "[0]"
numChecksums "1"
}
Block {
BlockType Reference
Name "CRC-N Syndrome\nDetector"
Ports [1, 2]
Position [440, 244, 515, 291]
SourceBlock "commcrc2/CRC-N Syndrome\nDetector"
SourceType "CRC-N Syndrome Detector"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
crcMethod "CRC-16"
iniStates "[0]"
numChecksums "1"
}
Block {
BlockType Constant
Name "Constant"
Position [495, 125, 525, 155]
Value "0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Reference
Name "Cumulative\nSum"
Ports [1, 1]
Position [780, 137, 860, 173]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag1"
SourceBlock "dspmathops/Cumulative\nSum"
SourceType "Cumulative Sum"
dim "Channels (running sum)"
reset_popup "None"
accumMode "Same as input"
accumWordLength "32"
accumFracLength "30"
outputMode "Same as accumulator"
outputWordLength "16"
outputFracLength "15"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion"
Position [700, 141, 755, 169]
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [895, 175, 985, 205]
Decimation "1"
Lockdown off
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [195, 111, 270, 164]
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "0"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [635, 73, 670, 237]
Operator "~="
InputSameDT off
LogicOutDataTypeMode "Specify via dialog"
OutDataTypeStr "uint(8)"
ZeroCross off
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator1"
Position [560, 64, 600, 166]
Operator ">"
InputSameDT off
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [300, 121, 340, 159]
InputPortWidth "3"
IndexOptions "Index vector (dialog)"
Indices "[2]"
OutputSizes "1"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [470, 80, 490, 100]
ShowName off
IconShape "round"
Inputs "|+-"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
}
Block {
BlockType Terminator
Name "Terminator"
Position [555, 245, 575, 265]
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [895, 112, 1005, 148]
VariableName "MissedFrameNumber"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [410, 120, 445, 160]
SampleTime "-1"
}
Block {
BlockType Reference
Name "Zero Pad"
Ports [1, 1]
Position [210, 252, 255, 288]
SourceBlock "dspsigops/Pad"
SourceType "Pad"
padAlong "Columns"
dimsToPad "1"
valSrc "Specify via dialog"
padVal "0"
spec "Output size"
padNumOutRowsSpecMethod "User-specified"
numOutRows "FrameLength"
padNumOutColsSpecMethod "User-specified"
numOutCols "1"
isVarDimsMode off
padBeginning "0"
padEnd "0"
outSizeMode "User-specified"
outSize "1"
padSigAt "End"
trunc_flag "None"
outputMode "Same as input"
outputWordLength "0"
outputFracLength "0"
accumMode "Same as input"
accumWordLength "0"
accumFracLength "0"
roundingMode "Floor"
overflowMode off
LockScale off
truncOrWrapMode "Truncate"
wrap_flag "None"
}
Block {
BlockType Reference
Name "Zero Pad1"
Ports [1, 1]
Position [380, 252, 425, 288]
SourceBlock "dspsigops/Pad"
SourceType "Pad"
padAlong "Columns"
dimsToPad "1"
valSrc "Specify via dialog"
padVal "0"
spec "Output size"
padNumOutRowsSpecMethod "User-specified"
numOutRows "ProtectedDataWithCRC"
padNumOutColsSpecMethod "User-specified"
numOutCols "1"
isVarDimsMode off
padBeginning "0"
padEnd "0"
outSizeMode "User-specified"
outSize "1"
padSigAt "End"
trunc_flag "None"
outputMode "Same as input"
outputWordLength "0"
outputFracLength "0"
accumMode "Same as input"
accumWordLength "0"
accumFracLength "0"
roundingMode "Floor"
overflowMode off
LockScale off
truncOrWrapMode "Truncate"
wrap_flag "None"
}
Line {
SrcBlock "CRC-N Generator"
SrcPort 1
DstBlock "Zero Pad"
DstPort 1
}
Line {
SrcBlock "Zero Pad"
SrcPort 1
DstBlock "Binary Symmetric\nChannel"
DstPort 1
}
Line {
SrcBlock "Zero Pad1"
SrcPort 1
DstBlock "CRC-N Syndrome\nDetector"
DstPort 1
}
Line {
SrcBlock "CRC-N Syndrome\nDetector"
SrcPort 1
DstBlock "Terminator"
DstPort 1
}
Line {
Labels [1, 0]
SrcBlock "CRC-N Syndrome\nDetector"
SrcPort 2
Points [75, 0; 0, -85]
Branch {
Points [-415, 0]
DstBlock "Error Rate\nCalculation"
DstPort 2
}
Branch {
DstBlock "Relational\nOperator"
DstPort 2
}
}
Line {
SrcBlock "Error Rate\nCalculation"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
Points [30, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Data Type Conversion"
SrcPort 1
DstBlock "Cumulative\nSum"
DstPort 1
}
Line {
SrcBlock "Cumulative\nSum"
SrcPort 1
Points [10, 0; 0, 35]
Branch {
DstBlock "Display"
DstPort 1
}
Branch {
Points [0, -60]
DstBlock "To Workspace"
DstPort 1
}
}
Line {
SrcBlock "Relational\nOperator1"
SrcPort 1
DstBlock "Relational\nOperator"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Relational\nOperator1"
DstPort 1
}
Line {
SrcBlock "Selector"
SrcPort 1
Points [35, 0]
Branch {
DstBlock "Unit Delay"
DstPort 1
}
Branch {
Points [0, -50]
DstBlock "Sum"
DstPort 1
}
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Relational\nOperator1"
DstPort 2
}
Line {
SrcBlock "Binary Symmetric\nChannel"
SrcPort 1
DstBlock "Zero Pad1"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
DstBlock "Data Type Conversion"
DstPort 1
}
Line {
SrcBlock "Bernoulli Binary\nGenerator"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "CRC-N Generator"
DstPort 1
}
Branch {
Points [0, -145]
DstBlock "Error Rate\nCalculation"
DstPort 1
}
}
Annotation {
Name "2"
Position [426, 227]
}
}
}
MatData {
NumRecords 2
DataRecord {
Tag DataTag1
Data " %)30 . < 8 ( 0 % \" $ ! 0 . 0 8 ( ! % \" $ - 0 0 #0 $-U;75L871I=F53=6T "
}
DataRecord {
Tag DataTag0
Data " %)30 . > 8 ( 0 % \" $ ! 0 . 2 8 ( ! % \" $ 2 0 0 $@ $)E<FYO=6QL:4)I;F%R>4=E;@ "
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -