📄 qiangdaping.mdl
字号:
}
Block {
BlockType Reference
Name "J-K\nFlip-Flop"
Ports [3, 2]
Position [545, 267, 590, 343]
SourceBlock "simulink_extras/Flip Flops/J-K\nFli"
"p-Flop"
SourceType "JKFlipFlop"
initial_condition "0"
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [1, 1]
Position [465, 329, 495, 361]
Operator "NOT"
}
Block {
BlockType Outport
Name "Q"
Position [615, 278, 645, 292]
}
Block {
BlockType Outport
Name "!Q"
Position [615, 318, 645, 332]
Port "2"
}
Line {
SrcBlock "J-K\nFlip-Flop"
SrcPort 2
DstBlock "!Q"
DstPort 1
}
Line {
SrcBlock "CP"
SrcPort 1
DstBlock "J-K\nFlip-Flop"
DstPort 2
}
Line {
SrcBlock "J-K\nFlip-Flop"
SrcPort 1
DstBlock "Q"
DstPort 1
}
Line {
SrcBlock "T"
SrcPort 1
Points [5, 0; 10, 0]
Branch {
DstBlock "J-K\nFlip-Flop"
DstPort 1
}
Branch {
Points [0, -20; -70, 0; 0, 85]
DstBlock "Logical\nOperator"
DstPort 1
}
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
Points [15, 0; 0, -15]
DstBlock "J-K\nFlip-Flop"
DstPort 3
}
}
}
Block {
BlockType Switch
Name "Switch"
Position [105, 83, 145, 127]
Threshold "0.2"
}
Block {
BlockType Switch
Name "Switch1"
Position [225, 83, 265, 127]
Threshold "0.2"
}
Block {
BlockType Switch
Name "Switch2"
Position [350, 88, 390, 132]
Threshold "0.2"
}
Block {
BlockType Switch
Name "Switch3"
Position [475, 88, 515, 132]
Threshold "0.2"
}
Block {
BlockType Switch
Name "Switch4"
Position [595, 88, 635, 132]
Threshold "0.2"
}
Block {
BlockType Switch
Name "Switch5"
Position [715, 88, 755, 132]
Threshold "0.2"
}
Block {
BlockType Switch
Name "Switch6"
Position [835, 88, 875, 132]
Threshold "0.2"
}
Block {
BlockType Outport
Name "Out"
Position [960, 178, 990, 192]
}
Line {
SrcBlock "3"
SrcPort 1
DstBlock "Switch4"
DstPort 1
}
Line {
SrcBlock "Switch4"
SrcPort 1
DstBlock "DFF4"
DstPort 1
}
Line {
SrcBlock "2"
SrcPort 1
DstBlock "Switch5"
DstPort 1
}
Line {
SrcBlock "Switch5"
SrcPort 1
DstBlock "DFF5"
DstPort 1
}
Line {
SrcBlock "1"
SrcPort 1
DstBlock "Switch6"
DstPort 1
}
Line {
SrcBlock "Switch6"
SrcPort 1
DstBlock "DFF6"
DstPort 1
}
Line {
SrcBlock "DFF5"
SrcPort 1
DstBlock "Switch6"
DstPort 3
}
Line {
SrcBlock "DFF4"
SrcPort 1
DstBlock "Switch5"
DstPort 3
}
Line {
SrcBlock "6"
SrcPort 1
DstBlock "Switch1"
DstPort 1
}
Line {
SrcBlock "Switch1"
SrcPort 1
Points [0, 80]
DstBlock "DFF1"
DstPort 1
}
Line {
SrcBlock "5"
SrcPort 1
DstBlock "Switch2"
DstPort 1
}
Line {
SrcBlock "Switch2"
SrcPort 1
Points [5, 0]
DstBlock "DFF2"
DstPort 1
}
Line {
SrcBlock "4"
SrcPort 1
DstBlock "Switch3"
DstPort 1
}
Line {
SrcBlock "Switch3"
SrcPort 1
DstBlock "DFF3"
DstPort 1
}
Line {
SrcBlock "DFF2"
SrcPort 1
DstBlock "Switch3"
DstPort 3
}
Line {
SrcBlock "DFF1"
SrcPort 1
DstBlock "Switch2"
DstPort 3
}
Line {
SrcBlock "DFF3"
SrcPort 1
DstBlock "Switch4"
DstPort 3
}
Line {
SrcBlock "7"
SrcPort 1
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "DFF7"
DstPort 1
}
Line {
SrcBlock "CP2"
SrcPort 1
Points [25, 0]
Branch {
Points [120, 0]
Branch {
Points [115, 0]
Branch {
Points [130, 0]
Branch {
Points [115, 0]
Branch {
Points [125, 0]
Branch {
Points [0, -50]
DstBlock "Switch5"
DstPort 2
}
Branch {
Points [115, 0; 0, -50]
DstBlock "Switch6"
DstPort 2
}
}
Branch {
Points [0, -50]
DstBlock "Switch4"
DstPort 2
}
}
Branch {
Points [0, -50]
DstBlock "Switch3"
DstPort 2
}
}
Branch {
Points [0, -50]
DstBlock "Switch2"
DstPort 2
}
}
Branch {
Points [0, -55]
DstBlock "Switch1"
DstPort 2
}
}
Branch {
Points [0, -55]
DstBlock "Switch"
DstPort 2
}
}
Line {
SrcBlock "In"
SrcPort 1
Points [30, 0]
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "CP1"
SrcPort 1
Points [90, 0]
Branch {
Points [120, 0]
Branch {
Points [130, 0]
Branch {
Points [120, 0]
Branch {
Points [120, 0]
Branch {
Points [120, 0]
Branch {
DstBlock "DFF5"
DstPort 2
}
Branch {
Points [120, 0]
DstBlock "DFF6"
DstPort 2
}
}
Branch {
DstBlock "DFF4"
DstPort 2
}
}
Branch {
DstBlock "DFF3"
DstPort 2
}
}
Branch {
DstBlock "DFF2"
DstPort 2
}
}
Branch {
Points [0, -40]
DstBlock "DFF1"
DstPort 2
}
}
Branch {
DstBlock "DFF7"
DstPort 2
}
}
Line {
SrcBlock "DFF6"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "DFF7"
SrcPort 1
DstBlock "Switch1"
DstPort 3
}
}
}
Block {
BlockType Outport
Name "Out"
Position [280, 70, 310, 84]
}
Line {
SrcBlock "CP2"
SrcPort 1
Points [10, 0; 0, -55]
DstBlock "巴克码"
DstPort 3
}
Line {
SrcBlock "CP1"
SrcPort 1
Points [5, 0; 0, -75]
DstBlock "巴克码"
DstPort 2
}
Line {
SrcBlock "PN序列"
SrcPort 1
DstBlock "巴克码"
DstPort 1
}
Line {
SrcBlock "巴克码"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "判决器"
Ports [1, 1]
Position [625, 306, 660, 354]
TreatAsAtomicUnit off
System {
Name "判决器"
Location [567, 316, 767, 451]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [25, 30, 55, 44]
}
Block {
BlockType RelationalOperator
Name "比较器"
Position [90, 27, 120, 58]
Operator ">"
}
Block {
BlockType Constant
Name "判决门限"
Position [35, 80, 65, 110]
Value "6"
}
Block {
BlockType Outport
Name "Out"
Position [145, 40, 175, 54]
}
Line {
SrcBlock "判决门限"
SrcPort 1
Points [0, -45]
DstBlock "比较器"
DstPort 2
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "比较器"
DstPort 1
}
Line {
SrcBlock "比较器"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "相加器"
Ports [7, 1]
Position [515, 201, 585, 349]
TreatAsAtomicUnit off
System {
Name "相加器"
Location [2, 74, 1014, 724]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "1"
Position [385, 158, 415, 172]
}
Block {
BlockType Inport
Name "2"
Position [385, 203, 415, 217]
Port "2"
}
Block {
BlockType Inport
Name "3"
Position [385, 248, 415, 262]
Port "3"
}
Block {
BlockType Inport
Name "4"
Position [385, 293, 415, 307]
Port "4"
}
Block {
BlockType Inport
Name "5"
Position [385, 338, 415, 352]
Port "5"
}
Block {
BlockType Inport
Name "6"
Position [385, 383, 415, 397]
Port "6"
}
Block {
BlockType Inport
Name "7"
Position [385, 428, 415, 442]
Port "7"
}
Block {
BlockType Logic
Name "非门"
Ports [1, 1]
Position [470, 149, 500, 181]
Operator "NOT"
}
Block {
BlockType Logic
Name "非门1"
Ports [1, 1]
Position [465, 239, 495, 271]
Operator "NOT"
}
Block {
BlockType Logic
Name "非门2"
Ports [1, 1]
Position [465, 284, 495, 316]
Operator "NOT"
}
Block {
BlockType Sum
Name "相加器"
Ports [7, 1]
Position [565, 136, 650, 464]
Inputs "+++++++"
}
Block {
BlockType Outport
Name "Out"
Position [740, 293, 770, 307]
}
Line {
SrcBlock "7"
SrcPort 1
DstBlock "相加器"
DstPort 7
}
Line {
SrcBlock "6"
SrcPort 1
DstBlock "相加器"
DstPort 6
}
Line {
SrcBlock "5"
SrcPort 1
DstBlock "相加器"
DstPort 5
}
Line {
SrcBlock "4"
SrcPort 1
DstBlock "非门2"
DstPort 1
}
Line {
SrcBlock "相加器"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "2"
SrcPort 1
DstBlock "相加器"
DstPort 2
}
Line {
SrcBlock "3"
SrcPort 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -