例:变量赋值实现循环语句功能 process(indicator, sig) variable temp: std_logic begin temp: =0 for i in 0 to 3 loop temp: =temp xor(sig(i) and indicator() end loop output < temp end process10 例:变量赋值实现循环语句功能 process(indicator, sig) variable temp : std_logic; begin temp := ‘0’ ; for i in 0 to 3 loop temp:=temp xor (sig(i) and indicator(i)); end loop ; output <= temp; end process;