case CntCLK is
when 1 =>
when 2 =>
when 3 =>
When 4 =>
When others=>
End case;
如果用状态机写的话,会有什么好处,请大家指点一二,谢谢!
Type CntCLk_state is (CntCLK_1, CntCLK_2, CntCLK_3, CntCLK_4);
Signal CntCLK : CntCLk_state;
case CntCLK is
when CntCLK_1 =>
when CntCLK_2 =>
when CntCLK_3 =>
When CntCLK_4 =>
When others=>
End case;
|