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

Reply

VHDL - vhdl model length of wire with delay ?

 
Thread Tools Search this Thread
Old 06-24-2005, 02:31 PM   #1
Default vhdl model length of wire with delay ?


Hi,
I'm trying to connect the bidirectional databuses of two models together,
and create a delay in the path between them for a testbench. So in effect I
need a piece of wire with a delay that will connect two bidirectional
signals. So if neither bus is driving both ends of the 'wire' would be
tristate, but if either end drives the signal it should be delayed at the
other end of the 'wire', and driven.
I cannot see how to model this at the moment. Can anyone suggest a way of
doing this ?
Regards
Tony




Tony Benham
  Reply With Quote
Old 06-24-2005, 05:16 PM   #2
Jonathan Bromley
 
Posts: n/a
Default Re: vhdl model length of wire with delay ?
On Fri, 24 Jun 2005 13:31:32 GMT, "Tony Benham"
<> wrote:

>I'm trying to connect the bidirectional databuses of two models together,
>and create a delay in the path between them for a testbench. So in effect I
>need a piece of wire with a delay that will connect two bidirectional
>signals. So if neither bus is driving both ends of the 'wire' would be
>tristate, but if either end drives the signal it should be delayed at the
>other end of the 'wire', and driven.
>I cannot see how to model this at the moment. Can anyone suggest a way of
>doing this ?


It's hard, and a weakness of VHDL that it can't easily model such
things.

If you can, by any means at all, split the wire into two
unidirectional pieces, then it is easy. It's worth almost
any amount of effort to do that.

If you really, really can't do that, then there are some tricks
to play that will work in some special cases. For example, if
each bit of your wire is only ever driven with '0', '1', 'X' or
'Z', you can abuse the weak-value states 'H', 'L' and 'W' to
get something like the desired effect. But it's VERY tricky,
especially if either end of the bus has more than one driver
on it.

It's depressingly easy in Verilog: just annotate the wire's
declaration with a delay value.

Ben Cohen's website has a zero-delay bidirectional wire model.
It has some limitations, but it's a lot better than nothing
and you may be able to hack it to add a delay.

Finally, another possible approach is to modify each driver
on the wire so that it implements the delay *in the driver*.
This is messy because you must modify several bits of code,
but it's easy to understand and it's sure to work.

Good luck
--
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL, Verilog, SystemC, Perl, Tcl/Tk, Verification, Project Services

Doulos Ltd. Church Hatch, 22 Market Place, Ringwood, BH24 1AW, UK
Tel: +44 (0)1425 471223 mail:
Fax: +44 (0)1425 471573 Web: http://www.doulos.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.




Jonathan Bromley
  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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to execute an external software from VHDL? And how to interface VHDL with JAVA? becool_nikks Software 0 03-06-2009 07:08 PM
Help on auto conversion from Matlab to vhdl on filter design hardheart Hardware 0 12-07-2007 09:19 AM




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