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

Reply

VHDL - how to break out of for loop

 
Thread Tools Search this Thread
Old 03-11-2009, 05:47 PM   #1
Default how to break out of for loop


hey guys, i am new to vhdl and was working on my projects, i wanted to use a for loop instead of a while loop and try to break out of the loop in case of a particular condition, can anyone let me know how to do it please?

and my friend told me that using a while loop may cause problems while synthesizing, can anyone explain why such a thing happens?

thanks



bharathbhushan.kn
bharathbhushan.kn is offline   Reply With Quote
Old 03-11-2009, 09:19 PM   #2
jeppe
Senior Member
 
Join Date: Mar 2008
Location: Denmark
Posts: 245
Default
Im not sure but if my memory serves me well would could it be done with

FOR i IN 0 to 10 LOOP
....
IF i=5 THEN
EXIT
END IF;
....
END LOOP;

Check this as well: http://www.vdlande.com/VHDL/exits.html

Your welcome


jeppe
jeppe is offline   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
Prison Break and Ghost Whisperer: The Blues mylove5460 Media 0 07-02-2009 06:27 PM
DVD Shrink "layer break" question def456 DVD Video 4 03-02-2007 11:40 PM
As growth slows, Hollywood faces a DVD standoff. Allan DVD Video 0 07-11-2005 02:10 PM
Wrapping Give me a break Rtavi DVD Video 65 04-02-2005 04:01 AM
Shindlers List Deluxe HUGE Price Break @bestbuy argo DVD Video 8 04-08-2004 09:55 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