Re: [Ktechlab-devel] Update rates

2009-09-16 Thread Alan Grimes
> Maybe Alan knows: how is the time in simulation managed? Not really... The code was a real mess. The current preferred method is Simulator::time(). This will read the current linear element clock for you. There is kindof a problem though because if a subcircuit has analog elements it will

Re: [Ktechlab-devel] Update rates

2009-09-16 Thread santiago gonzalez
2009/9/16 Zoltan Padrah > Yes. the logic update is done as you've written. > > What do you mean by unstable? Ktechlab crashes or just outputs garbage? > Unstable perhaps is not the proper word... i mean irregular periods, i tried with a simple toggle led pic program at 1 Hz. Logic update at 5e6

Re: [Ktechlab-devel] Update rates

2009-09-16 Thread Zoltan Padrah
Yes. the logic update is done as you've written. What do you mean by unstable? Ktechlab crashes or just outputs garbage? Also I don't understand how to reproduce the problem. Set the logic update timer to 5e6 and then? Maybe Alan knows: how is the time in simulation managed? We should provide th

[Ktechlab-devel] Update rates

2009-09-16 Thread santiago gonzalez
I't looks to me that logic update rate (then gpsim processors) is actually 1e6, then 1 MHz.. is this correct? What is the actual behaivor of logic update rates? i think the qtimer is at 1KHz, but the loops inside every call aren't sinchonized... i mean: logic updates are done 1e6 times/Sec, but no