Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - Stimulus From VCD

 
Thread Tools Search this Thread
Old 12-11-2007, 01:27 PM   #1
Default Stimulus From VCD


Hi Group,

As part of out project simulations, we are required to provide digital
stimulus from a VCD file containing analog simulation O/P.

The VCD file contains "analog" data (real), so what I need to do is

- Parse the VCD file
- Convert the analog voltages to digital levels (0,1 or X)
- Apply them from my testbench.

I would prefer if all this could be acheived in VHDL, but any scripts
that do some (or all) of the above would be great.

Thanks,

Steven


moogyd@yahoo.co.uk
  Reply With Quote
Old 12-11-2007, 03:08 PM   #2
Ralf Hildebrandt
 
Posts: n/a
Default Re: Stimulus From VCD
schrieb:

> The VCD file contains "analog" data (real), so what I need to do is
>
> - Parse the VCD file


This can be done with VHDL text I/O. I recommend to use the Unix/C
compatible libraries for that task, which makes things easier:
<http://bear.ces.case.edu/VHDL/index.html>.


> - Convert the analog voltages to digital levels (0,1 or X)


After parsing the data it is easy to make them digital.
Think about your requirements:
* Do you need filtering because of noisy signals?
* Do you need schmitt-trigger behavior?


> - Apply them from my testbench.


Read a line of VCD, parse it, convert the value to a digital signal and
assign it to a VHDL signal. Your testbench should read every line of the
file sequentially and then apply the stimuli or wait for some time.


> I would prefer if all this could be acheived in VHDL...


Yes, this is possible and not too challenging.

Ralf


Ralf Hildebrandt
  Reply With Quote
Old 12-11-2007, 09:10 PM   #3
Andy Botterill
 
Posts: n/a
Default Re: Stimulus From VCD
wrote:
> Hi Group,
>
> As part of out project simulations, we are required to provide digital
> stimulus from a VCD file containing analog simulation O/P.


If this is to be applied using a mixed signal tester this not sensible.
A (possibly normalised) signal would be the most useful information. The
analogue stimulus would be loaded straight into an analogur instrument.

You can use the verilog system task realtobits to convert from a real
value to digital value.

>
> The VCD file contains "analog" data (real), so what I need to do is
>
> - Parse the VCD file
> - Convert the analog voltages to digital levels (0,1 or X)
> - Apply them from my testbench.
>
> I would prefer if all this could be acheived in VHDL, but any scripts
> that do some (or all) of the above would be great.
>
> Thanks,
>
> Steven



Andy Botterill
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46