![]() |
|
||||||||||||||
| . 网站首页 . 产品新知 . 业界资讯 . 技术文库 . 下载中心 . 服务导航 . 邮购需知 . 技术论坛 . | ||
|
||
|
|||||
| Quartus II中状态机的编写规则 | |||||
作者:Altera公… 文章来源:Altera公司 点击数: 更新时间:2008-4-15 ![]() |
|||||
|
昨天写了个动态数码管显示,在MAX+PlusII下是可以的但在QuartusII下却发现状态好像不能转移,于是在网上查了查,并结合QuartusII帮助文档算是发现原因了。现将帮助文档中关于VHDL在QuartusII中编写状态机的条件翻译一下,水平有限,各位批评指正。 编译器识别状态机的条件: 1.表现状态机的信号或变量必须为枚举类型。 2.状态转移必须由clk触发,并且是用IF语句检测的上升沿进行转移。 3.状态转移到下一个状态由CASE语句判断 4.所有信号,变量赋值都要放在状态机进程里进行。 5.状态机的状态必须多于两个状态。 原文如下: The Compiler recognizes state machines and reports them as such in the State Machines section of the Report window only if all of the following conditions are met: must be an enumerated type. clocked, and must contain an If Statement that checks for a positive edge of the clk control signal. with Case Statements at the top level. machine are within the process. |
|||||
| 文章录入:admin 责任编辑:admin | |||||
| 【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 | |||||
| 最新热点 | 最新推荐 | 相关文章 | ||
| 使用Quartus II开发软件… 基于Quartus II的带计时器功… |
| 网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!) |
| | 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 版权申明 | 网站公告 | 管理登录 | | |||
|