module SP
sp : [0..10] init 1;
[tick] sp=2 -> 0.75 : (sp'=2) + 0.25 : (sp'=3);
[tick] sp=4 -> 0.25 : (sp'=0) + 0.75 : (sp'=4);
[tick] sp=5 -> 0.995 : (sp'=5) + 0.005 : (sp'=6);
[tick] sp=7 -> 0.005 : (sp'=0) + 0.995 : (sp'=7);
[tick] sp=8 -> 0.9983 : (sp'=8) + 0.0017 : (sp'=9);
[tick] sp=10 -> 0.0017 : (sp'=0) + 0.9983 : (sp'=10);
[tick] sp=0 & pm=0 -> (sp'=0);
[tick] sp=1 & pm=0 -> (sp'=0);
[tick] sp=3 & pm=0 -> (sp'=4);
[tick] sp=6 & pm=0 -> (sp'=7);
[tick] sp=9 & pm=0 -> (sp'=10);
[tick] sp=0 & pm=1 -> (sp'=1);
[tick] sp=1 & pm=1 -> (sp'=1);
[tick] sp=3 & pm=1 -> (sp'=3);
[tick] sp=6 & pm=1 -> (sp'=6);
[tick] sp=9 & pm=1 -> (sp'=9);
[tick] sp=0 & pm=2 -> (sp'=2);
[tick] sp=1 & pm=2 -> (sp'=2);
[tick] sp=3 & pm=2 -> (sp'=3);
[tick] sp=6 & pm=2 -> (sp'=6);
[tick] sp=9 & pm=2 -> (sp'=9);
[tick] sp=0 & pm=3 -> (sp'=5);
[tick] sp=1 & pm=3 -> (sp'=5);
[tick] sp=3 & pm=3 -> (sp'=5);
[tick] sp=6 & pm=3 -> (sp'=6);
[tick] sp=9 & pm=3 -> (sp'=9);
[tick] sp=0 & pm=4 -> (sp'=8);
[tick] sp=1 & pm=4 -> (sp'=8);
[tick] sp=3 & pm=4 -> (sp'=8);
[tick] sp=6 & pm=4 -> (sp'=8);
[tick] sp=9 & pm=4 -> (sp'=9);
endmodule
module PM
pm : [0..4] init 0;
endmodule