9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] OT: hard realtime, timing diagram GUI.
@ 2014-05-08 15:19 Daryl M
  0 siblings, 0 replies; 9+ messages in thread
From: Daryl M @ 2014-05-08 15:19 UTC (permalink / raw)
  To: 9fans

Steve,

The only code timing-diagram-like tool I am aware of is Windriver's WindView
for VxWorks.

I have successfully used digital logic timing diagrams in the past to view
task timing and interaction.  They are especially useful for multiprocessor
systems.

I think the determining factor would be the metadata you want associated
with transitions.  (channel wait, timer interrupt, etc.)
Also, how precise you want the timing to be.  I usually use the TSC (Time
Stamp Counter) on Intel processors which gives very fine-grained timing
without fear of the counter wrapping.

Cheers,
Daryl

-----Original Message-----
From: Steve Simon <steve@quintile.net>
Sent: Thursday, May 08, 2014 2:36 AM
To: 9fans@9fans.net
Subject: [9fans] OT: hard realtime, timing diagram GUI.

Hi,

Just trying to tap the collective brains fo the plan9 community.

Anyone done any hard realtime programming? I am looking for a simple GUI
tool which will read a text file I can generate from my code and display a
timing diagram. This should allow either events triggered by the clock, by
an interrupt, or by another event.

Anyone know of such a tool? I see masses of tools for drawing digital logic
timing diagrams but nothing that seems to give me what I need for realtime
code.

Thanks,

-Steve






^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] OT: hard realtime, timing diagram GUI.
  2014-05-08  9:15 Steve Simon
  2014-05-08 11:59 ` Bakul Shah
@ 2014-05-08 21:49 ` James A. Robinson
  1 sibling, 0 replies; 9+ messages in thread
From: James A. Robinson @ 2014-05-08 21:49 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Thu, May 8, 2014 at 2:15 AM, Steve Simon <steve@quintile.net> wrote:
> Anyone know of such a tool? I see masses of tools for drawing
> digital logic timing diagrams but nothing that seems to give
> me what I need for realtime code.

I haven't done realtime programming, so my apologies if I
miss a subtle requirement, but given your description I
thought perhaps a Message Sequence Chart diagram
tool might work?

http://www.mcternan.me.uk/mscgen/

Jim



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] OT: hard realtime, timing diagram GUI.
  2014-05-08 14:53       ` Steve Simon
@ 2014-05-08 15:47         ` Bakul Shah
  0 siblings, 0 replies; 9+ messages in thread
From: Bakul Shah @ 2014-05-08 15:47 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On May 8, 2014, at 7:53 AM, "Steve Simon" <steve@quintile.net> wrote:

>> Would https://github.com/drom/wavedrom do?
> 
> Yep, pretty darn good.
> 
> maybe a little teeth gritting as its JS but
> what the heck, its a tool and that is all
> that really matters.

Wavedrom's input language seems simple enough that you can probably reimplement wavedrom in your favorite language easily enough.

There is also http://drawtiming.sourceforge.net/samples.html
Someone remarked it is a bit like graphviz for timing diagrams...

Visualization can be very useful but wouldn't it be easier to just process the text file to check for timing violations? That would be my first instinct. 





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] OT: hard realtime, timing diagram GUI.
  2014-05-08 14:16     ` Bakul Shah
@ 2014-05-08 14:53       ` Steve Simon
  2014-05-08 15:47         ` Bakul Shah
  0 siblings, 1 reply; 9+ messages in thread
From: Steve Simon @ 2014-05-08 14:53 UTC (permalink / raw)
  To: 9fans

> Would https://github.com/drom/wavedrom do?

Yep, pretty darn good.

maybe a little teeth gritting as its JS but
what the heck, its a tool and that is all
that really matters.

Thanks very much.

-Steve



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] OT: hard realtime, timing diagram GUI.
  2014-05-08 12:52   ` Steve Simon
  2014-05-08 13:55     ` lucio
@ 2014-05-08 14:16     ` Bakul Shah
  2014-05-08 14:53       ` Steve Simon
  1 sibling, 1 reply; 9+ messages in thread
From: Bakul Shah @ 2014-05-08 14:16 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Would https://github.com/drom/wavedrom do? See the tutorial. Step 8 shows bezier arrows linking waveforms. And it seems to be actively developed. There is a command line version as well.

On May 8, 2014, at 5:52 AM, "Steve Simon" <steve@quintile.net> wrote:

>> I don't understand why realtime matters.
> 
> Only that such diagrams are more important in realtime systems.
> 
>> How do you want these events represented on the timing diagram?
> 
> I suspose a clock line, left to right, at the top.
> 
> events appear as signals, one below the other running paralle to the clock line.
> These  change state on a rising edge of a clock, and a different coloured bezier curve
> (with optional label) links an event to any events it triggers.
> 
> allow me to colour signals so interrupts and clock are clearly different
> and add labels to signals and I would be happy.
> 
> The idea is this diagram would be built by a cron job from regression tests every night
> and if the timings drifted in the system it should be quite easy to see where the time
> has been wasted.
> 
> Alternatively A GUI interface could be used - this might have advantages (cursors?)
> but really a PDF and page(1) would probably do.
> 
> Somthing like graphviz for timing diagrammes.
> 
> -Steve
> 



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] OT: hard realtime, timing diagram GUI.
  2014-05-08 12:52   ` Steve Simon
@ 2014-05-08 13:55     ` lucio
  2014-05-08 14:16     ` Bakul Shah
  1 sibling, 0 replies; 9+ messages in thread
From: lucio @ 2014-05-08 13:55 UTC (permalink / raw)
  To: 9fans

> Somthing like graphviz for timing diagrammes.

It's been a long time since I checked, but have you looked at MRTG?

++L





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] OT: hard realtime, timing diagram GUI.
  2014-05-08 11:59 ` Bakul Shah
@ 2014-05-08 12:52   ` Steve Simon
  2014-05-08 13:55     ` lucio
  2014-05-08 14:16     ` Bakul Shah
  0 siblings, 2 replies; 9+ messages in thread
From: Steve Simon @ 2014-05-08 12:52 UTC (permalink / raw)
  To: 9fans

> I don't understand why realtime matters.

Only that such diagrams are more important in realtime systems.

> How do you want these events represented on the timing diagram?

I suspose a clock line, left to right, at the top.

events appear as signals, one below the other running paralle to the clock line.
These  change state on a rising edge of a clock, and a different coloured bezier curve
(with optional label) links an event to any events it triggers.

allow me to colour signals so interrupts and clock are clearly different
and add labels to signals and I would be happy.

The idea is this diagram would be built by a cron job from regression tests every night
and if the timings drifted in the system it should be quite easy to see where the time
has been wasted.

Alternatively A GUI interface could be used - this might have advantages (cursors?)
but really a PDF and page(1) would probably do.

Somthing like graphviz for timing diagrammes.

-Steve



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] OT: hard realtime, timing diagram GUI.
  2014-05-08  9:15 Steve Simon
@ 2014-05-08 11:59 ` Bakul Shah
  2014-05-08 12:52   ` Steve Simon
  2014-05-08 21:49 ` James A. Robinson
  1 sibling, 1 reply; 9+ messages in thread
From: Bakul Shah @ 2014-05-08 11:59 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs



> On May 8, 2014, at 2:15 AM, "Steve Simon" <steve@quintile.net> wrote:
> 
> Anyone done any hard realtime programming? I am looking for a simple
> GUI tool which will read a text file I can generate from my code
> and display a timing diagram. This should allow either events
> triggered by the clock, by an interrupt, or by another event.
> 
> Anyone know of such a tool? I see masses of tools for drawing
> digital logic timing diagrams but nothing that seems to give
> me what I need for realtime code.

I don't understand why realtime matters.  How do you want these events represented on the timing diagram?


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [9fans] OT: hard realtime, timing diagram GUI.
@ 2014-05-08  9:15 Steve Simon
  2014-05-08 11:59 ` Bakul Shah
  2014-05-08 21:49 ` James A. Robinson
  0 siblings, 2 replies; 9+ messages in thread
From: Steve Simon @ 2014-05-08  9:15 UTC (permalink / raw)
  To: 9fans

Hi,

Just trying to tap the collective brains fo the plan9 community.

Anyone done any hard realtime programming? I am looking for a simple
GUI tool which will read a text file I can generate from my code
and display a timing diagram. This should allow either events
triggered by the clock, by an interrupt, or by another event.

Anyone know of such a tool? I see masses of tools for drawing
digital logic timing diagrams but nothing that seems to give
me what I need for realtime code.

Thanks,

-Steve



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-05-08 21:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-08 15:19 [9fans] OT: hard realtime, timing diagram GUI Daryl M
  -- strict thread matches above, loose matches on Subject: below --
2014-05-08  9:15 Steve Simon
2014-05-08 11:59 ` Bakul Shah
2014-05-08 12:52   ` Steve Simon
2014-05-08 13:55     ` lucio
2014-05-08 14:16     ` Bakul Shah
2014-05-08 14:53       ` Steve Simon
2014-05-08 15:47         ` Bakul Shah
2014-05-08 21:49 ` James A. Robinson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).