You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
1.4 KiB
99 lines
1.4 KiB
#no update for variables
|
|
{
|
|
init
|
|
node ini; x<=0
|
|
[
|
|
send2||tran transmit1; x>=0; x=0; 1
|
|
]
|
|
[
|
|
busy2||tran collision1; x>=0; x=0; 1
|
|
]
|
|
}
|
|
{
|
|
node transmit1; x<=808
|
|
[
|
|
end2||tran finish; x>=808; x=0; 1
|
|
]
|
|
[
|
|
cd||tran collision1; true; x=0; 1
|
|
]
|
|
}
|
|
{
|
|
node transmit2; x<=808
|
|
[
|
|
end2||tran finish; x>=808; x=0; 1
|
|
]
|
|
[
|
|
cd||tran collision2; true; x=0; 1
|
|
]
|
|
}
|
|
{
|
|
node transmit3; x<=808
|
|
[
|
|
end2||tran finish; x>=808; x=0; 1
|
|
]
|
|
[
|
|
cd||tran collision3; true; x=0; 1
|
|
]
|
|
}
|
|
{
|
|
node collision1; x<=0
|
|
[
|
|
tran wait1; x>=0; x=0; 0.5
|
|
tran wait1; x>=0; x=52; 0.5
|
|
]
|
|
}
|
|
{
|
|
node collision2; x<=0
|
|
[
|
|
tran wait2; x>=0; x=0; 0.25
|
|
tran wait2; x>=0; x=52; 0.25
|
|
tran wait2; x>=0; x=104; 0.25
|
|
tran wait2; x>=0; x=156; 0.25
|
|
]
|
|
}
|
|
{
|
|
node collision3; x<=0
|
|
[
|
|
tran wait3; x>=0; x=0; 0.125
|
|
tran wait3; x>=0; x=52; 0.125
|
|
tran wait3; x>=0; x=104; 0.125
|
|
tran wait3; x>=0; x=156; 0.125
|
|
tran wait3; x>=0; x=208; 0.125
|
|
tran wait3; x>=0; x=260; 0.125
|
|
tran wait3; x>=0; x=312; 0.125
|
|
tran wait3; x>=0; x=364; 0.125
|
|
]
|
|
}
|
|
{
|
|
node wait1; x<=104
|
|
[
|
|
send2||tran transmit2; x>=104; x=0; 1
|
|
]
|
|
[
|
|
busy2||tran collision2; x>=104; x=0; 1
|
|
]
|
|
}
|
|
{
|
|
node wait2; x<=208
|
|
[
|
|
send2||tran transmit3; x>=208; x=0; 1
|
|
]
|
|
[
|
|
busy2||tran collision3; x>=208; x=0; 1
|
|
]
|
|
}
|
|
{
|
|
node wait3; x<=416
|
|
[
|
|
send2||tran transmit3; x>=416; x=0; 1
|
|
]
|
|
[
|
|
busy2||tran collision3; x>=416; x=0; 1
|
|
]
|
|
}
|
|
{
|
|
node finish; true
|
|
[
|
|
]
|
|
*
|