syedshan
Advanced Member level 1
- Joined
- Feb 27, 2012
- Messages
- 463
- Helped
- 27
- Reputation
- 54
- Reaction score
- 26
- Trophy points
- 1,308
- Location
- Jeonju, South Korea
- Activity points
- 5,134
Hi all,
my question is simple.
I have been wondering this and ofcourse what I think that if we have more combinational logic then the critical path increase.
But if we use if statements does critical path also increase (hence max freq. got decreased...?)
e.g.
which one is faster...
Or any other opinion for affecting critical path.
It is becuase I have been using toooo much if else statements and I have frankly less idea how to manage timings hence I am just coding any ways...
my question is simple.
I have been wondering this and ofcourse what I think that if we have more combinational logic then the critical path increase.
But if we use if statements does critical path also increase (hence max freq. got decreased...?)
e.g.
Code:
process(clk, rst)
begin
if(rst = '1') then
elsif (rising_edge(clk)) then
if(a=x and b=y and (c=p or d=q)) then
bla bla bla...!
end if;
if(a=x) then
if(b=y and (c=p or d=q)) then
bla bla bla...
end if;
end process;
which one is faster...
Or any other opinion for affecting critical path.
It is becuase I have been using toooo much if else statements and I have frankly less idea how to manage timings hence I am just coding any ways...