5cmps 发表于 2011-3-1 10:56:47

请问这个错误是怎么回事

在编源代码的时候发生了这个错误
non-constant loop condition not supported
错误对应的地方是这段程序
      while(End_Read)
            Ready_reg <= 0;

hebinmyland 发表于 2011-3-1 11:26:37

循环不支持
while语句需要始终做触发
用if语句吧

5cmps 发表于 2011-3-1 11:41:01

回复 2# hebinmyland


    但是我这里想实现一个查询等待的功能,应该怎么做呢

wj616 发表于 2011-3-1 19:29:26

设定个时钟脉冲应该可以吧

至芯苏老师 发表于 2011-3-3 23:25:32

用时钟驱动 判断,本身就是一个查询等待,因为时钟是无限。。。。
页: [1]
查看完整版本: 请问这个错误是怎么回事