Coding style to improve timing

Joined
Jul 8, 2008
Messages
23
Reaction score
0
Hi,
I am currently having problems closing timing on a design and I was hoping someone could advise me 2 different coding styles.

If I have some logic described as shown below in 2 different forms, which would be the most efficient as regards timing, and why?

if (signal_1 and signal_2(1) and not signal_3) = '1' then
--do something
end if;


OR


if (signal_1 = '1') then
if (signal_2(1) = '1') then
if (signal_3 = '0') then
--do something
end if;
end if;
end if;


Many thanks for any advise. i ask because I have timing problems on certain paths, with only a small bit of negative slack to overcome. I am thinking that if I change the coding style in certain places, maybe it may help.


Thanks
 
Last edited:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top