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需要多少个,是怎样来的,有谁对这样的嵌套语句有好的理解方式的请不吝赐教?
共1条
1/1 1 跳转至页
怎样理解下面的if嵌套语句
共1条
1/1 1 跳转至页
回复
我要赚赏金打赏帖 |
|
|---|---|
| 【S32K3XX】LPSPI参数配置说明被打赏¥21元 | |
| 在WT9932C61-TINY上实现超声波测距被打赏¥22元 | |
| 基于WT9932C61-TINY的环境构建及OLED屏驱动测试被打赏¥20元 | |
| 【S32K3XX】Core-to-Core 中断使用被打赏¥21元 | |
| 「AI编程记录--含源码」用一晚上的时间写一个esp32的示波器被打赏¥19元 | |
| STM32C0116DK开发探索记(3)被打赏¥30元 | |
| STM32C0116DK开发探索记(2)被打赏¥24元 | |
| STM32C0116DK开发探索记(1)被打赏¥29元 | |
| 谨防极海G32M3101电机评估板易跌落的陷阱被打赏¥24元 | |
| 【全网首拆】M5STACK ATOM系列开发板拆解 / AtomS3R-CAM摄像头更换方法(提高10倍像素)被打赏¥26元 | |
我要赚赏金
