GTKWave, summing area under a signal

Guest
Is there a way to sum the area under a signal using GTKWave? I can set
start and end points and time one pulse, but I would like to be able to
view the entire amount of time that a pulse is high during a simulation
run. Is this possible?
 
frkoenig@gmail.com wrote:
Is there a way to sum the area under a signal using GTKWave? I can set
start and end points and time one pulse, but I would like to be able to
view the entire amount of time that a pulse is high during a simulation
run. Is this possible?
If I'm reading you correctly, sure. Note that this functionality was
ripped out of 2.x if I remember correctly but is in the original 1.3
and also 3.x (which is 1.3.86 derived).

1) Highlight your clock signal and the signal of interest.
2) Edit->Search->PatternSearch
3) clk sensitivity to "rising edge" or "falling edge" depending on your
dflop clocking.
4) the other signal sensitivity to "high"
5) Logical Operation is "AND"
6) Hit "Mark" button. If you need to use time ranges, nail down some
named markers then mark between them.

Hope this helps,
-Tony
 
bybell@rocketmail.com wrote:
If I'm reading you correctly, sure. Note that this functionality was
ripped out of 2.x if I remember correctly but is in the original 1.3
and also 3.x (which is 1.3.86 derived).

1) Highlight your clock signal and the signal of interest.
2) Edit->Search->PatternSearch
3) clk sensitivity to "rising edge" or "falling edge" depending on your
dflop clocking.
4) the other signal sensitivity to "high"
5) Logical Operation is "AND"
6) Hit "Mark" button. If you need to use time ranges, nail down some
named markers then mark between them.

Hope this helps,
-Tony
That appears to give me the number of trasitions. I'm looking more to
integrate the signal to find the total time under the curve.

I saw something in the documentation about writing a plugin to do
signal processing. If I could understand this, (are there any examples
out there?) it would be the most likely answer to my problem.

-Fritz
 
frkoenig@gmail.com wrote:

That appears to give me the number of trasitions. I'm looking more to
integrate the signal to find the total time under the curve.
You're right, it gives the number of transitions. When you asked about
the signal being high, that's what I though you meant. Sorry.


I saw something in the documentation about writing a plugin to do
signal processing. If I could understand this, (are there any examples
out there?) it would be the most likely answer to my problem.
The way that plugin mechanism currently works is that it only queries
for translations on various signal values (as they're needed to be
viewed) so that won't help you at all.

It's definitely possible to add something similar for what you want to
do. I'll think about how to add this in a general purpose fashion as
it's possible to use such a mechanism to allow the extraction of
transactions given a group of signals such as a bus.

-Tony
 

Welcome to EDABoard.com

Sponsor

Back
Top