Which of the following synthesises to more efficient code?
OR
Code:
process(clk,rst)
begin
if rst = '1' then
....
elsif clk'event and clk = '1' then
if a >= 16 then
....
end if;
end if;
end process;
OR
Code:
aGTEq16 <= '1' when a >= 16 else '0';
process(clk,rst)
begin
if rst = '1' then
....
elsif clk'event and clk = '1' then
if aGTEq16 = '1' then
....
end if;
end if;
end process;