Altera_Forum
Honored Contributor
13 years agoDifference of 2 process?
I have a VHDL code for process as below:
process (vin_clk) begin
if rising_edge(vin_clk) then
if (rst_n = '0') then
data_cnt <= "000000000000";
elsif (frame_flag_vin = '1') then
data_cnt <= "000000000000";
elsif (vin_de = '1') then
if (data_cnt = vin_width - "000000000001") then
data_cnt <= "000000000000";
else
data_cnt <= data_cnt + "000000000001";
end if;
else
data_cnt <= data_cnt;
end if;
end if;
end process; My question is: if to delete the last "else" branch (data_cnt <= data_cnt;), what will the difference be? or no difference?