📄 cdsk.mdl
字号:
Block {
BlockType Constant
Name "Constant"
Position [110, 160, 140, 190]
Value "-1"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "Constant1"
Position [105, 25, 135, 55]
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType RandomNumber
Name "Random\nNumber"
Position [25, 90, 55, 120]
SampleTime "1"
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [110, 224, 140, 256]
Floating off
Location [493, 53, 878, 270]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData2"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Switch
Name "Switch1"
Position [175, 90, 205, 120]
Criteria "u2 > Threshold"
InputSameDT off
SampleTime "0.01"
}
Block {
BlockType Outport
Name "Out1"
Position [245, 98, 275, 112]
IconDisplay "Port number"
SampleTime "0.01"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "Switch1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Random\nNumber"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 135]
DstBlock "Scope4"
DstPort 1
}
Branch {
DstBlock "Switch1"
DstPort 2
}
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [10, 0; 0, 55]
DstBlock "Switch1"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [5, 0; 0, -60]
DstBlock "Switch1"
DstPort 3
}
}
}
Block {
BlockType Reference
Name "Delay"
Ports [1, 1]
Position [230, 290, 285, 330]
SourceBlock "dspsigops/Delay"
SourceType "Delay"
dly_unit "Samples"
delay "1"
ic_detail off
dif_ic_for_ch off
dif_ic_for_dly off
ic "0"
reset_popup "None"
}
Block {
BlockType Reference
Name "Delay1"
Ports [1, 1]
Position [715, 245, 770, 285]
SourceBlock "dspsigops/Delay"
SourceType "Delay"
dly_unit "Samples"
delay "1"
ic_detail off
dif_ic_for_ch off
dif_ic_for_dly off
ic "0"
reset_popup "None"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [350, 302, 380, 333]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
SampleTime "0.01"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [800, 197, 830, 228]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
SampleTime "0.01"
}
Block {
BlockType Scope
Name "Scope 10"
Ports [1]
Position [1125, 199, 1155, 231]
Floating off
Location [53, 148, 1200, 387]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData8"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope 2"
Ports [1]
Position [325, 244, 355, 276]
Floating off
Location [1, 52, 1281, 765]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData5"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope 3"
Ports [1]
Position [330, 384, 360, 416]
Floating off
Location [80, 473, 1222, 712]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData3"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope 4"
Ports [1]
Position [410, 344, 440, 376]
Floating off
Location [612, 224, 1022, 473]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope 5"
Ports [1]
Position [510, 244, 540, 276]
Floating off
Location [561, 319, 999, 558]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData6"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope 6"
Ports [1]
Position [630, 244, 660, 276]
Floating off
Location [1, 52, 1281, 765]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData4"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope 7"
Ports [1]
Position [795, 319, 825, 351]
Floating off
Location [1, 52, 1281, 765]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData10"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope 8"
Ports [1]
Position [865, 269, 895, 301]
Floating off
Location [70, 231, 1226, 470]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData9"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope 9"
Ports [1]
Position [995, 319, 1025, 351]
Floating off
Location [72, 493, 1228, 732]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData7"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [205, 134, 235, 166]
Floating off
Location [1, 52, 1281, 765]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData1"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [405, 190, 435, 220]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
SampleTime "0.01"
}
Block {
BlockType Switch
Name "Switch "
Position [1060, 200, 1090, 230]
Criteria "u2 > Threshold"
Threshold "0.4"
InputSameDT off
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
SampleTime "0.01"
}
Line {
SrcBlock "Chaotic signal"
SrcPort 1
Points [15, 0]
Branch {
Points [15, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, 105]
DstBlock "Delay"
DstPort 1
}
}
Branch {
DstBlock "Scope1"
DstPort 1
}
}
Line {
SrcBlock "Data signal"
SrcPort 1
Points [5, 0]
Branch {
Points [5, 0; 0, -50]
DstBlock "Product"
DstPort 2
}
Branch {
DstBlock "Scope 3"
DstPort 1
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Scope 4"
DstPort 1
}
Branch {
Points [25, 0]
DstBlock "Sum"
DstPort 2
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [55, 0]
Branch {
DstBlock "AWGN\nChannel"
DstPort 1
}
Branch {
DstBlock "Scope 5"
DstPort 1
}
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Scope 6"
DstPort 1
}
Branch {
Points [85, 0]
Branch {
DstBlock "Product1"
DstPort 1
}
Branch {
DstBlock "Delay1"
DstPort 1
}
}
}
Line {
SrcBlock "Delay"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Product"
DstPort 1
}
Branch {
DstBlock "Scope 2"
DstPort 1
}
}
Line {
SrcBlock "Delay1"
SrcPort 1
Points [5, 0]
Branch {
Points [0, -45]
DstBlock "Product1"
DstPort 2
}
Branch {
DstBlock "Scope 7"
DstPort 1
}
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [10, 0]
Branch {
Points [0, 0; 0, 70]
DstBlock "Scope 8"
DstPort 1
}
Branch {
DstBlock "Correlator"
DstPort 1
}
}
Line {
SrcBlock "Correlator"
SrcPort 1
Points [35, 0]
Branch {
DstBlock "Scope 9"
DstPort 1
}
Branch {
DstBlock "Switch "
DstPort 2
}
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [5, 0]
DstBlock "Switch "
DstPort 3
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [5, 0]
DstBlock "Switch "
DstPort 1
}
Line {
SrcBlock "Switch "
SrcPort 1
DstBlock "Scope 10"
DstPort 1
}
Annotation {
Position [658, 561]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -