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

Reply

VHDL - while loop

 
Thread Tools Search this Thread
Old 06-29-2005, 09:49 AM   #1
Default while loop


hi,
can anyone tell me while loop is synthesizable with synplify tool or
not?
plz help me out.
hoping a positive reply from all.
thanx.
jiten



jiten
  Reply With Quote
Old 06-29-2005, 05:50 PM   #2
Mike Treseler
 
Posts: n/a
Default Re: while loop
jiten wrote:

> can anyone tell me while loop is synthesizable with synplify tool or
> not?


Since a synthesis process loops all by
itself, every clock tick, I can't
imagine how you would use a while loop.
Let's see the code.

Sequential statements execute in zero time.
They form a testable logical description,
not a real-time program thread.

If you want a time delay, use a counter variable.

-- Mike Treseler


Mike Treseler
  Reply With Quote
Old 06-30-2005, 04:55 AM   #3
jiten
 
Posts: n/a
Default Re: while loop

hi all,
i've checked while loop without clock & with clock.
but its not getting synthesized with synplify-pro.
however,if i sunthesize with xilinx project manager it
synthesized
completely with all conditions.
Is there any problem with while loop in synplify pro.
plz help me out.
jiten
Mike Treseler wrote:
> jiten wrote:
>
> > can anyone tell me while loop is synthesizable with synplify tool or
> > not?

>
> Since a synthesis process loops all by
> itself, every clock tick, I can't
> imagine how you would use a while loop.
> Let's see the code.
>
> Sequential statements execute in zero time.
> They form a testable logical description,
> not a real-time program thread.
>
> If you want a time delay, use a counter variable.
>
> -- Mike Treseler




jiten
  Reply With Quote
Old 06-30-2005, 05:37 AM   #4
Neo
 
Posts: n/a
Default Re: while loop
I would be very cautious with ISE results since synplify does a very
good job. check out whether it has actually synthesized or just ignored
it.



Neo
  Reply With Quote
Old 06-30-2005, 06:34 AM   #5
jiten
 
Posts: n/a
Default Re: while loop
its giving error that "while loop is not terminating", but i tried all
conditions such that it can be terminated easily. even i tried exit
condition also inside the while loop.
what is the problem...............................?
plz help.
thanx



jiten
  Reply With Quote
Old 06-30-2005, 06:47 AM   #6
Neo
 
Posts: n/a
Default Re: while loop
Hey , in general a while loop is not synthesizable. do the same thing
with an if condition.



Neo
  Reply With Quote
Old 06-30-2005, 07:17 AM   #7
jiten
 
Posts: n/a
Default Re: while loop
ya, it is working properly with "for" loop.
can any one suggest me how can i do it with while loop.



jiten
  Reply With Quote
Old 06-30-2005, 07:33 AM   #8
jiten
 
Posts: n/a
Default Re: while loop
hi all,
in sinplfy pro , i m actually getting this error
"while loop is not terminating? you can set the maximum number of
loop
iterations with the syn_looplimit attribute."
what does it means?



jiten
  Reply With Quote
Old 06-30-2005, 08:14 AM   #9
Neo
 
Posts: n/a
Default Re: while loop
It requires that the number of iterations be fixed, so it should be
deterministic.



Neo
  Reply With Quote
Old 06-30-2005, 09:33 AM   #10
jiten
 
Posts: n/a
Default Re: while loop
hi the code is like this

process(cnt,tmp,rst)
begin
if rst='1' then
cnt <= "0000";
tmp <= "000";
i <= 0;
else
w : while i< 8 loop
tmp <= tmp+1;
cnt <= cnt+1;
i <= i + 1;
end loop w;
end if;
end process;



jiten
  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
loop according to the delay kavidream24 Software 0 12-23-2008 02:18 AM
Catalyst 2960 loop problem...Help me some one plz dorjko Hardware 1 12-13-2007 06:10 AM
Phase locked loop VHDL code mreddy.a Hardware 0 09-16-2007 09:43 AM
Cisco VPN DNE Reboot Loop Barry252 Software 0 10-17-2006 02:13 AM
XP Stuck in Loop Rick Todd A+ Certification 1 02-01-2005 07:21 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