synthesizeble Wait Statement in Procedure

Oct 28, 2004 2 Replies

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. Has anyone of you gurus :-) an idea how to manage this?



Thank you very much, Roman


I am pretty sure this is not synthesizable. If you want something that can be synthesized, think about how you would build the circuit out of hardware and then describe that circuit using logic and clocked processes. You can put the logic inside a procedure. But you might do better to use a module and pass it a trigger signal.

Rick "rickman" Collins rick.collins@XYarius.com Ignore the reply address. To email me use the above address with the XY removed. Arius - A Signal Processing Solutions Company Specializing in DSP and FPGA design URL http://www.arius.com 4 King Ave 301-682-7772 Voice Frederick, MD 21701-3110 301-682-7666 FAX

This sounds like a use for a state machine.

-- glen

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required