|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
process(clk,state,flag1,flag2,...)
begin
if clk'event and clk='1' then
case state is
when 00 =>
if flag1='0' then
...
else
...
end if;
when 01 =>
...
when 10 =>
...
when others
...
end case;
end if;
end process;
为何此状态机的运行一定要有时钟clk的约束??而如下的程序则不能运行???
process(state,flag1,flag2,...)
begin
case state is
when 00 =>
if flag1='0' then
...
else
...
end if;
when 01 =>
...
when 10 =>
...
when others
...
end case;
end process; |
|