📄 ethernet.mdl
字号:
Position [180, 605, 250, 655]
ShowName off
SourceBlock "dspswit3/Counter"
SourceType "Counter"
Direction "Up"
CountEvent "Either edge"
CounterSize "32 bits"
MaxCount "inf"
InitialCount "0"
Output "Count"
HitValue "32"
ResetInput off
SamplesPerFrame "1"
Ts "1"
CntDtype "double"
HitDtype "Logical"
}
Block {
BlockType Reference
Name "Counter1"
Ports [1, 1]
Position [180, 495, 250, 545]
ShowName off
SourceBlock "dspswit3/Counter"
SourceType "Counter"
Direction "Up"
CountEvent "Rising edge"
CounterSize "32 bits"
MaxCount "inf"
InitialCount "0"
Output "Count"
HitValue "32"
ResetInput off
SamplesPerFrame "1"
Ts "1"
CntDtype "double"
HitDtype "Logical"
}
Block {
BlockType Reference
Name "Counter2"
Ports [1, 1]
Position [180, 550, 250, 600]
ShowName off
SourceBlock "dspswit3/Counter"
SourceType "Counter"
Direction "Up"
CountEvent "Either edge"
CounterSize "32 bits"
MaxCount "inf"
InitialCount "0"
Output "Count"
HitValue "32"
ResetInput off
SamplesPerFrame "1"
Ts "1"
CntDtype "double"
HitDtype "Logical"
}
Block {
BlockType From
Name "From1"
Position [425, 556, 500, 584]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "t_max"
}
Block {
BlockType From
Name "From10"
Position [740, 591, 815, 619]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "tx_line"
}
Block {
BlockType From
Name "From11"
Position [75, 561, 160, 589]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "tx_pkt_dropped"
}
Block {
BlockType From
Name "From12"
Position [45, 151, 140, 179]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "rx_pkt_incoming"
}
Block {
BlockType From
Name "From14"
Position [45, 121, 140, 149]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "tx_pkt_end"
}
Block {
BlockType From
Name "From15"
Position [85, 321, 160, 349]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "line_state"
}
Block {
BlockType From
Name "From17"
Position [45, 241, 140, 269]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "timer_done"
}
Block {
BlockType From
Name "From18"
Position [45, 91, 140, 119]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "tx_pkt_waiting"
}
Block {
BlockType From
Name "From2"
Position [685, 91, 780, 119]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "tx_pop_queue"
}
Block {
BlockType From
Name "From21"
Position [700, 296, 775, 324]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "receive"
}
Block {
BlockType From
Name "From22"
Position [780, 521, 855, 549]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "transmit"
}
Block {
BlockType From
Name "From23"
Position [685, 56, 780, 84]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "transmit"
}
Block {
BlockType From
Name "From3"
Position [45, 271, 140, 299]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "line_state"
}
Block {
BlockType From
Name "From4"
Position [45, 211, 140, 239]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "collision"
}
Block {
BlockType From
Name "From5"
Position [45, 181, 140, 209]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "rx_pkt_end"
}
Block {
BlockType From
Name "From6"
Position [75, 616, 160, 644]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "rx_pkt_out"
}
Block {
BlockType From
Name "From7"
Position [425, 591, 500, 619]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "set_timer"
}
Block {
BlockType From
Name "From8"
Position [75, 506, 160, 534]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "tx_pkt_end"
}
Block {
BlockType From
Name "From9"
Position [740, 561, 815, 589]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "rx_line"
}
Block {
BlockType Goto
Name "Goto1"
Position [470, 215, 550, 245]
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "transmit"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto10"
Position [965, 125, 1045, 155]
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "tx_pkt_end"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto11"
Position [470, 425, 550, 455]
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "tx_pkt_dropped"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto12"
Position [470, 250, 550, 280]
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "receive"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto13"
Position [960, 330, 1040, 360]
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "rx_pkt_incoming"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto14"
Position [470, 390, 550, 420]
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "rx_pkt_out"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto15"
Position [625, 575, 705, 605]
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "timer_done"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto17"
Position [710, 435, 790, 465]
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "rx_line"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto2"
Position [970, 210, 1050, 240]
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "tx_line"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto3"
Position [470, 285, 550, 315]
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "t_max"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto4"
Position [470, 320, 550, 350]
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "set_timer"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto5"
Position [470, 355, 550, 385]
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "tx_pop_queue"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto6"
Position [960, 375, 1040, 405]
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "rx_pkt_end"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto7"
Position [965, 70, 1045, 100]
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "tx_pkt_waiting"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto8"
Position [970, 575, 1050, 605]
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "collision"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto9"
Position [960, 285, 1040, 315]
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "line_state"
TagVisibility "local"
}
Block {
BlockType Reference
Name "Integer Delay1"
Ports [1, 1]
Position [410, 211, 450, 249]
ShowName off
SourceBlock "dspobslib/Integer Delay"
SourceType "Integer Delay"
delay "1"
ic "0"
reset_popup "None"
}
Block {
BlockType Reference
Name "Integer Delay2"
Ports [1, 1]
Position [410, 246, 450, 284]
ShowName off
SourceBlock "dspobslib/Integer Delay"
SourceType "Integer Delay"
delay "1"
ic "0"
reset_popup "None"
}
Block {
BlockType Reference
Name "Integer Delay3"
Ports [1, 1]
Position [410, 281, 450, 319]
ShowName off
SourceBlock "dspobslib/Integer Delay"
SourceType "Integer Delay"
delay "1"
ic "0"
reset_popup "None"
}
Block {
BlockType Reference
Name "Integer Delay4"
Ports [1, 1]
Position [410, 316, 450, 354]
ShowName off
SourceBlock "dspobslib/Integer Delay"
SourceType "Integer Delay"
delay "1"
ic "0"
reset_popup "None"
}
Block {
BlockType Reference
Name "Integer Delay5"
Ports [1, 1]
Position [410, 351, 450, 389]
ShowName off
SourceBlock "dspobslib/Integer Delay"
SourceType "Integer Delay"
delay "1"
ic "0"
reset_popup "None"
}
Block {
BlockType Mux
Name "Mux"
Ports [7, 1]
Position [160, 93, 165, 297]
ShowName off
Inputs "7"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "RX"
Ports [3, 4]
Position [800, 278, 935, 457]
FontName "MS Sans Serif"
FontSize 9
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "RX"
Location [87, 74, 533, 708]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "receive"
Position [35, 78, 65, 92]
FontName "MS Sans Serif"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "myID"
Position [35, 158, 65, 172]
FontName "MS Sans Serif"
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "input from rx"
Position [35, 118, 65, 132]
FontName "MS Sans Serif"
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType SubSystem
Name "Line activity\ndetect"
Ports [1, 1]
Position [170, 472, 250, 528]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Line activity\ndetect"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -