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

Reply

VHDL - VHDL Wait-Statement after Synthese

 
Thread Tools Search this Thread
Old 10-28-2004, 09:31 AM   #1
Default VHDL Wait-Statement after Synthese


Hy all,

I have a little problem to write a kind of WAIT-Procedure in VHDL. (
like in C, "loop until i = 0,...")
This is necessary to pass some data to an external chip (Cypress SL811)
to the right time.

In the end it should look like this:
send_data(xyz);
wait(t);
send_data(xyz);
wait(t);
send_data(xyz);
wait(t);
.....

I know that I can do it in an process with a counter, but I would prefer
a procedure, which I will put into the package body, and then call it
when I needed.
normal wait statements and "a <= x after t;" is not available after
the synthese.( i hope I am wrong and there is a smart way to do this)

Has anyone of you gurus an idea how to manage this?

Thank you very much,
Roman


Roman
  Reply With Quote
Old 10-28-2004, 04:01 PM   #2
Mike Treseler
 
Posts: n/a
Default Re: VHDL Wait-Statement after Synthese
Roman wrote:

> I have a little problem to write a kind of WAIT-Procedure in VHDL. (
> like in C, "loop until i = 0,...")
> This is necessary to pass some data to an external chip (Cypress SL811)
> to the right time.
>
> In the end it should look like this:
> send_data(xyz);
> wait(t);
> send_data(xyz);
> wait(t);
> send_data(xyz);
> wait(t);


You can do this in a test bench, but not for synthesis.

Synthesis code is based on the synchronous process.
Writing a controller in vhdl is a little like writing an interrupt
routine for the event of a rising clock edge. You have to check the
relevant inputs and internal variables and update the appropriate
variables and outputs on *every* rising edge.

The notion of waiting can't be encapsulated in a procedure call.
In your example, you need to check for a handshake or maybe
a counter value on every tick and make a signal assignment only in
the appropriate case.

A procedure can be used in synthesis code to collect
frequently used sequences of sequential statements,
but it can't isolate you from the tick by tick nature
of a hardware controller.


-- Mike Treseler


Mike Treseler
  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
Vending machine using VHDL arie General Help Related Topics 0 03-05-2009 05:45 AM
reading mp3 file in binary format in vhdl latheesh General Help Related Topics 0 02-05-2008 05:40 AM
Help on auto conversion from Matlab to vhdl on filter design hardheart Hardware 0 12-07-2007 09:19 AM
ARRAY(n DOWNTO 0) OF STD_LOGIC_VECTOR(m DOWNTO 0) - VHDL freitass Hardware 0 11-01-2007 03:44 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