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

Reply

VHDL - Drivers in subprograms

 
Thread Tools Search this Thread
Old 05-31-2004, 11:52 PM   #1
Default Drivers in subprograms


Hi experts,

I am looking at the code example on Fig. 7.2.6-2 in VHDL Coding Styles and
Methodologies by Ben Cohen and struggling to understand what the Data_s is
supposed to look like? Are those waits in the procedure supposed to do
something? I have simulated it and they seem to be doing nothing... The
data changes only on clock...

Thanks,
/Mikhail




MM
  Reply With Quote
Old 06-02-2004, 05:38 PM   #2
ben cohen
 
Posts: n/a
Default Re: Drivers in subprograms
"MM" <> wrote in message news:<>...
> Hi experts,
>
> I am looking at the code example on Fig. 7.2.6-2 in VHDL Coding Styles and
> Methodologies by Ben Cohen and struggling to understand what the Data_s is
> supposed to look like? Are those waits in the procedure supposed to do
> something? I have simulated it and they seem to be doing nothing... The
> data changes only on clock...
>
> Thanks,
> /Mikhail


This model was for demo only and not for synthesis. It demonstrates
that from a process, a call to a procedure, with the formal designator
class SIGNAL, an mode inout is the same as having the procedure
inline. All the drivers belong to the process. Those waits were to
just generate a set of simple waiforms, triggered after the rising
edge of the clock.
Ben Cohen
-----------------------------------------------------------------------------
Ben Cohen Trainer, Consultant, Publisher (310) 721-4830
http://www.vhdlcohen.com/
Author of following textbooks:
* Using PSL/SUGAR for Formal and Dynamic Verification 2nd Edition,
2004 isbn 0-9705394-6-0
* Real Chip Design and Verification Using Verilog and VHDL, 2002 isbn
0-9705394-2-8
* Component Design by Example ", 2001 isbn 0-9705394-0-1
* VHDL Coding Styles and Methodologies, 2nd Edition, 1999 isbn
0-7923-8474-1
* VHDL Answers to Frequently Asked Questions, 2nd Edition, isbn
0-7923-8115
------------------------------------------------------------------------------


ben cohen
  Reply With Quote
Old 06-02-2004, 07:14 PM   #3
MM
 
Posts: n/a
Default Re: Drivers in subprograms
Hello Ben,

> This model was for demo only and not for synthesis. It demonstrates
> that from a process, a call to a procedure, with the formal designator
> class SIGNAL, an mode inout is the same as having the procedure
> inline. All the drivers belong to the process. Those waits were to
> just generate a set of simple waiforms, triggered after the rising
> edge of the clock.


I understand that it was not intended for synthesis... I am running it under
a VHDL simulator (Active HDL 6.2). The problem is that "the simple waveform"
is not being generated as if there were no waits in the procedure... Is that
a problem with my simulator?

Thanks,
/Mikhail




MM
  Reply With Quote
Old 06-02-2004, 09:04 PM   #4
VhdlCohen
 
Posts: n/a
Default Re: Drivers in subprograms
>I understand that it was not intended for synthesis... I am running it under
>a VHDL simulator (Active HDL 6.2). The problem is that "the simple waveform"
>is not being generated as if there were no waits in the procedure... Is that
>a problem with my simulator?
>
>Thanks,
>/Mikhail


Works for me in ModelSim. Below is a list of the results.
ns /driver/clk_s
delta /driver/data_s
0 +0 0 10101011
50000 +0 1 10101011
50000 +1 1 01010100
50100 +1 1 10101011
50300 +1 1 01010100
100000 +0 0 01010100
150000 +0 1 01010100
150000 +1 1 10101011
150100 +1 1 01010100
150300 +1 1 10101011
200000 +0 0 10101011
Perhaps you missed the waveforms at the rising edge of the clock because of the

scalings (large period for clock, fast transitions near clock edge).
Ben Cohen
www.vhdlcohen.com




VhdlCohen
  Reply With Quote
Old 06-02-2004, 10:28 PM   #5
MM
 
Posts: n/a
Default Re: Drivers in subprograms
> Perhaps you missed the waveforms at the rising edge of the clock because
of the
> scalings (large period for clock, fast transitions near clock edge).


Yes! You are right! Stupid me...

Thanks,
/Mikhail




MM
  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
Linux Graphics Drivers Admin Front Page News 0 11-10-2007 10:56 AM
Nero Info Tool - Drivers list Terry Pinnell DVD Video 0 06-11-2005 09:25 AM
Re: @ GeForce 4, 440 Go drivers for XP64 Bum A+ Certification 0 02-16-2005 01:01 AM
Re: 98 and 2000 drivers «bonehead;\) A+ Certification 2 09-17-2004 02:42 AM
Re: Does anyone have these drivers?? AG A+ Certification 0 06-15-2004 11:46 PM




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