I've found a bug during editing stimuli for IRSIM. The bug happens if user sets stimuli with time in random order. If the next time is less than the previous one (even if these times affect different stimuli) the Waveform editor and IRSIM work not correctly.

In the waveform editor a time shift betwen the time wished by user to betwwen set and time that is really set appears. For example, I want to set V stimuli at 3 ns, but it is being set at 4 ns.
Wrong dots also appear where no signal inversions are.

IRSIM generates negative times in stimuli files.

The fix is rather simple. In the source file Analyzer.java in package com.sun.electric.plugins.irsim is the method newVector(). Find this line of code:

        afterSV.value = curTime + stepSze - insertTime / cmdFileUnits;

Change it to read:

        afterSV.value = (curTime + stepSze - insertTime) / cmdFileUnits;

-Steven Rubin


_______________________________________________
Bug-gnu-electric mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnu-electric

Reply via email to