Modelsim breakpoint on end process.

Guest
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 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
 
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 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
 
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
 

Welcome to EDABoard.com

Sponsor

Back
Top