本帖最后由 sunboy25 于 2018-7-11 16:21 编辑
process(q(14))
begin
if(q(14)'event and q(14)='1') then
if second<"111011" then
second <= second+1;
else
second <="000000";
if minl < "1001" then
minl <= minl+1;
else
minl <= "0000";
if minh < "101" then
minh <= minh+1;
else
minh <="000";
if hourh <"10" then
if hourl < "1001" then
hourl <= hourl+1;
else
hourl <= "0000";
hourh <= hourh+1;
end if;
else if hourh = "10" then
if hourl <"0011" then
hourl <= hourl+1;
else
hourl <= "0000";
hourh <= "00";
end if;
end if;
end if;
end if;
end if;
end if;
end if;
end process;
我想问一下怎样理解上面的if嵌套语句,后面结尾end if需要多少个,是怎样来的,有谁对这样的嵌套语句有好的理解方式的请不吝赐教?
|