Current time: 09-09-2010, 11:46 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Viewing a digital value as a waveform
Author Message
patrick Offline
Junior Member
**

Posts: 3
Joined: Dec 2008
Reputation: 0
Post: #1
Viewing a digital value as a waveform
Hi,
I've created my first two modules with this version of SystemC on my Mac. It's great.
Used the examples as templates and looked at the SystemC userguide.

The input generator makes triangular waveforms as an int with a bool trigger when it crosses 0.
The direction is changed when the value reaches 100... simple but close enough to try.

Think ADC and discriminator...

I created a .vcd trace file and viewed it in Scansion. Very good.

Is it possible to view my int as a waveform to see the triangular waveform and eventually my pulse waveforms as "scope traces " ?

I see you can display reals as waveforms. Should I convert the int to a real ?

Thanks
Patrick
12-12-2008 04:17 PM
Find all posts by this user Quote this message in a reply
Jeff Offline
Logic Poet
*******

Posts: 58
Joined: Oct 2008
Reputation: 0
Post: #2
RE: Viewing a digital value as a waveform
The current support for analog waveforms is limited to real valued variables. So yes, right now assigning the int value to real should allow you to see the value in analog.

I have had other requests this week (coincidentally) for expanding the analog display to include integers and logic vector values and I'll release an update with this support in the next couple of days. Meanwhile, the real value route is the best way to go.

Jeff Wilcox
http://www.logicpoet.com
12-12-2008 11:06 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Jeff Offline
Logic Poet
*******

Posts: 58
Joined: Oct 2008
Reputation: 0
Post: #3
RE: Viewing a digital value as a waveform
Circling back here. My apologies for not getting this out faster. I will bump up the priority on it. I have been getting bogged down with a few other things lately and this fell off my radar.

Stay tuned and sorry for the delay...
Jeff

Jeff Wilcox
http://www.logicpoet.com
01-27-2009 07:50 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Jeff Offline
Logic Poet
*******

Posts: 58
Joined: Oct 2008
Reputation: 0
Post: #4
RE: Viewing a digital value as a waveform
So this got delayed far longer than I would have liked it to due to some competing priorities. But support for viewing any vector is finally available in the 1.0 release.

There is a preference you can set to display all vectors as analog (which you probably don't want to do) or you can set this on a trace by trace basis. To change to analog you can select the analog trace style in the Trace Inspector for the selected vector(s), or you can select one or more traces you are displaying and right click on their name change the trace style to analog.

By default, the scale displayed will be between the min and max values found in the trace. That way if you have values 0-16 in a 16 bit vector you can actually see the value changes. However, if you prefer to use the absolute scales, there is an item in the General tab of the Preferences to do that. Note that only up to 16b of values will be considered in either case when calculating the analog values.

One other thing. The vector will be treated and displayed as an unsigned number unless the Signed radix is selected.

Cheers,
Jeff

Jeff Wilcox
http://www.logicpoet.com
07-17-2009 12:47 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


Powered By MyBB, © 2002-2010 MyBB Group.