VHDL能写类似always @posedge(clk) or negedge(clr)的语句吗

[复制链接]
 楼主| tom0606 发表于 2014-4-6 11:56 | 显示全部楼层 |阅读模式
我在ISE下用VHDL写成
if (clk' event and clk='1') or (clr'event and clr='0') then
  if clr='0' then
  ...  

if rising_edge(clk) or falling_edge(clr) then
  if clr='0' then
  ...  
XST都提示unsupported Clock statement.
VHDL是否支持类似写法,如不支持应该怎么写?
在线等答案,谢谢!
ococ 发表于 2014-4-6 14:33 | 显示全部楼层
一般都这么写:
if clr='0' then
       ……
elsif rising_edge(clk) then
       ……
end if;
您需要登录后才可以回帖 登录 | 注册

本版积分规则

1

主题

1

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部