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 跳转至页
回复
打赏帖 | |
---|---|
【STM32F769】AI之与本地deepseek对接被打赏50分 | |
Buck电路工作在CCM模式下电感电流的计算公式是什么?被打赏5分 | |
buck电路工作原理被打赏5分 | |
基于MSPM0L1306的MODBUS-RTU协议通讯实验被打赏100分 | |
我想要一部加热台+多合一调试工具被打赏18分 | |
每周了解几个硬件知识+485硬件知识分享被打赏10分 | |
【换取手持数字示波器】树莓派PICO调试器官方固件本地化部署实践被打赏24分 | |
【换取手持数字示波器】分享一个KEIL无法识别CMSIS-DAP调试器的解决办法被打赏20分 | |
【换取手持数字示波器】分享一个自制的ArduinoNano扩展板底板被打赏23分 | |
【换取手持示波器】树莓派PICOW网页烟花被打赏18分 |