Currently, I've been involved in FPGA design techniques using Xilinix. While solving design problems, I repeatedly found the use of elseif
and elsif
in if-chain almost for similar statements.
elsif(clk'event and clk='1') then
pr_state<=nx_state;
and
elseif S1=’0’ and S0=’1’ then
Z <= B;
My problem is- what's the difference between these two constructs? Are they similar? I've gone through D.L. Perry's VHDL book and other online VHDL tutorials' sites but can't find solution.Thanks in advance!