附件的图片中就是出现逻辑问题的地方
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
ENTITY test IS
PORT(
status0_rise : IN STD_LOGIC;
status1_rise : IN STD_LOGIC;
status2_rise : IN STD_LOGIC;
status3_rise : IN STD_LOGIC;
status4_rise : IN STD_LOGIC;
status5_rise : IN STD_LOGIC;
clkin : IN STD_LOGIC;
alcr : IN STD_LOGIC;
ARCHITECTURE rtl OF test IS
BEGIN
process(clkin,alcr)
BEGIN
if(alcr ='0') then
cnt_ctrl0<='0';
cnt_ctrl1<='0';
cnt_ctrl2<='0';
cnt_ctrl3<='0';
cnt_ctrl4<='0';
cnt_ctrl5<='0';
else
if (clkin'event and clkin='1') then
if(cnt_ctrl0 = '1' and status0_rise ='0')then
cnt_ctrl0 <= '0';
end if;
if(cnt_ctrl1 = '1' and status1_rise ='0')then
cnt_ctrl1 <= '0';
end if;
if(cnt_ctrl2 = '1' and status2_rise ='0')then
cnt_ctrl2 <= '0';
end if;
if(cnt_ctrl3 = '1' and status3_rise ='0')then
cnt_ctrl3 <= '0';
end if;
if(cnt_ctrl4 = '1' and status4_rise ='0')then
cnt_ctrl4 <= '0';
end if;
if(cnt_ctrl5 = '1' and status5_rise ='0')then
cnt_ctrl5 <= '0';
end if;
if (status0_rise ='1' and (cnt_ctrl1='0' or cnt_ctrl2='0' or cnt_ctrl3='0' or cnt_ctrl4='0' or cnt_ctrl5='0' ))then
cnt_ctrl0 <= '1';
else
if (status1_rise ='1'and (cnt_ctrl0='0' or cnt_ctrl2='0' or cnt_ctrl3='0' or cnt_ctrl4='0' or cnt_ctrl5='0' )) then
cnt_ctrl1 <= '1';
else
if (status2_rise ='1'and (cnt_ctrl0='0' or cnt_ctrl1='0' or cnt_ctrl3='0' or cnt_ctrl4='0' or cnt_ctrl5='0' )) then
cnt_ctrl2 <= '1';
else
if (status3_rise ='1'and (cnt_ctrl0='0' or cnt_ctrl1='0' or cnt_ctrl2='0' or cnt_ctrl4='0' or cnt_ctrl5='0' ) )then
cnt_ctrl3 <= '1';
else
if (status4_rise ='1'and (cnt_ctrl0='0' or cnt_ctrl1='0' or cnt_ctrl2='0' or cnt_ctrl3='0' or cnt_ctrl5='0' ))then
cnt_ctrl4 <= '1';
else
if (status5_rise ='1' and (cnt_ctrl0='0' or cnt_ctrl1='0' or cnt_ctrl2='0' or cnt_ctrl3='0' or cnt_ctrl4='0' ))then
cnt_ctrl5 <= '1';
end if;
end if;
end if;
end if;
end if;
end if;
end if;
end if;
end process;