A simple question: I built a quasi-processor simulator that takes a priority schedule, determines priorities (and "ready" instructions), schedules tasks on available function blocks, etc. Pretty very simple simulator.
But I realized that I had to build it on top of the DES mechanism, since I have no way (except setting the flag and checking each node on each "measure") to say things like "In 10 cycles, do it" (i.e. raising signals at predetermined points in time and processing events that should occur in the future or when predetermined criteria are met).
I could realize this myself; I built the event class, inserted them into the queue, and at the end (or beginning) of each cycle, checked the queue and looked at what was there, but I did not see any reason to reinvent the wheel.
Thus, complex network simulators are obviously crowded. I don’t need fashionable modeling or sequence or anything like that. All I need is a built-in clock, as well as the ability to set events, raise flags when something happens, etc., as I described above.
Freeware and C ++ would be great.
Does anyone have any ideas? (The closest I came - thanks to some other certain related issues - this is something called SIMLIB.)
Thank you very much!
source
share