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

Reply

VHDL - Modelsim breakpoint on end process.

 
Thread Tools Search this Thread
Old 06-27-2005, 10:18 PM   #1
Default Modelsim breakpoint on end process.


Hi,
I am trying to place a breakpoint on an "end process" statment.
When I have the following code:

process (A , B)
begin
result <= ('0' & A);
end process;

the "end process" statment is executable and Modelsim lets me place a
breakpoint on the "end process" statment. However if I have the
following code:

P3: process (A , B)
begin
result <= ('0' & A)+('0' & B);
end process;

the "end process" statement is not executable and hence I cannot place
a breakpoint on the line. Does anybody have any idea why this happens.

Thanks

Nitin



nitinyogi80@yahoo.com
  Reply With Quote
Old 06-27-2005, 10:35 PM   #2
Andy Peters
 
Posts: n/a
Default Re: Modelsim breakpoint on end process.


wrote:
> Hi,
> I am trying to place a breakpoint on an "end process" statment.
> When I have the following code:
>
> process (A , B)
> begin
> result <= ('0' & A);
> end process;
>
> the "end process" statment is executable and Modelsim lets me place a
> breakpoint on the "end process" statment. However if I have the
> following code:
>
> P3: process (A , B)
> begin
> result <= ('0' & A)+('0' & B);
> end process;
>
> the "end process" statement is not executable and hence I cannot place
> a breakpoint on the line. Does anybody have any idea why this happens.


Try:

end process P3;

-a



Andy Peters
  Reply With Quote
Old 06-28-2005, 01:07 AM   #3
nitinyogi80@yahoo.com
 
Posts: n/a
Default Re: Modelsim breakpoint on end process.
Hi Andy,
Sorry that is'nt working either. Another weird thing I
noticed was. When I have the following code:

P3: process (A) -- just 1 signal is sensitivty list rather than 2
begin
result <= ('0' & A)+('0' & B);
end process P3;

again the "end process" statement becomes executable and I am able to
place a breakpoint on it. Thanks for your suggestion. Does anybody have
any more ideas about getting around this problem.

Thanks

Nitin



nitinyogi80@yahoo.com
  Reply With Quote
Old 06-28-2005, 06:33 AM   #4
Kim Enkovaara
 
Posts: n/a
Default Re: Modelsim breakpoint on end process.
wrote:

> the "end process" statment is executable and Modelsim lets me place a
> breakpoint on the "end process" statment. However if I have the
> following code:
>
> P3: process (A , B)
> begin
> result <= ('0' & A)+('0' & B);
> end process;
>
> the "end process" statement is not executable and hence I cannot place
> a breakpoint on the line. Does anybody have any idea why this happens.


Have you tried to use lower optimisation setting, for example start with
-O0. That should preserve all the information for debugging.

--Kim


Kim Enkovaara
  Reply With Quote
Old 06-28-2005, 10:35 PM   #5
Andy Peters
 
Posts: n/a
Default Re: Modelsim breakpoint on end process.
wrote:
> Hi Andy,
> Sorry that is'nt working either. Another weird thing I
> noticed was. When I have the following code:
>
> P3: process (A) -- just 1 signal is sensitivty list rather than 2
> begin
> result <= ('0' & A)+('0' & B);
> end process P3;
>
> again the "end process" statement becomes executable and I am able to
> place a breakpoint on it. Thanks for your suggestion. Does anybody have
> any more ideas about getting around this problem.


Make sure that when you analyze and elaborate that you display all
warnings. Maybe something else is going on in other parts of your
code?

-a



Andy Peters
  Reply With Quote
Old 06-29-2005, 12:00 AM   #6
nitinyogi80@yahoo.com
 
Posts: n/a
Default Re: Modelsim breakpoint on end process.
Hi,
Kim, your suggestion worked! You were right, it was doing some
kind of optimizations. When I tried "vcom -O0 adder.vhd", all "end
process" statments are now executable. I'll have to see now whether
lowering the optimization has any adverse effects on what I am trying
to acheive. Thanks Kim. Andy thanks to you too, for your suggestions. I
think keeping all warnings ON will help me debug much better. I'll
write back letting you people know that it's really working.

Thanks

Nitin



nitinyogi80@yahoo.com
  Reply With Quote
Old 06-29-2005, 06:44 AM   #7
Kim Enkovaara
 
Posts: n/a
Default Re: Modelsim breakpoint on end process.
wrote:

> Hi,
> Kim, your suggestion worked! You were right, it was doing some
> kind of optimizations. When I tried "vcom -O0 adder.vhd", all "end
> process" statments are now executable. I'll have to see now whether


Modelsim at least in SE versions merge the processes in some cases
with higer optimisation levels. You can see that for example if you
try to force something inside merged process. The path contains merged
word i.e.

change /foobar/#MERGED#proc1,proc2,proc3/var 16#0

--Kim


Kim Enkovaara
  Reply With Quote
Old 06-29-2005, 04:31 PM   #8
Mike Treseler
 
Posts: n/a
Default Re: Modelsim breakpoint on end process.
Kim Enkovaara wrote:

> Modelsim at least in SE versions merge the processes in some cases
> with higer optimisation levels. You can see that for example if you
> try to force something inside merged process. The path contains merged
> word i.e.
>
> change /foobar/#MERGED#proc1,proc2,proc3/var 16#0


Yes. This is very common with multiple synchronous
processes on the same clk,rst,enable.

This is one reason I started merging processes
myself at the source level.

-- 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
Asynchronous process from asp.net page button click event? Ritha Software 0 09-29-2009 03:20 PM
Recycle Worker Process Not Working JAB Software 0 09-04-2008 05:22 PM
simprim problems on modelsim saiyijinprince Hardware 2 04-05-2007 02:24 PM
A+ Exam Revision Update Process Starting John P. Dearing A+ Certification 6 02-10-2006 01:44 AM
Burn process failed - help! Log file posted for help troubleshooting Michael Mason DVD Video 1 08-16-2004 09:24 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