Usage of Petri network algorythm in digital simulation