asip designer错误及解决方案

错误1

ERROR: incomplete register transfer(s) for following instruction(s):

Please check that the outputs of the following statements and assignments are connected to registers or memories, whenever they are enabled. (inports, outports, and - except for the compiler - transitories with hw_init are also OK.) Please also verify the timing of these connections, in particular read/write timing for pipeline registers and transitories.

解决
asipdesigner中的opn中,操作必须从storage开始到storage结束。如果数据传递中间出现分支语句,可能会由于分支语句没有补全而出现以上问题。

  • switch和if分支必须补全才能避免以上问题。
  • 如果逻辑中只是条件执行(即只有if没有else),那么这种逻辑只能用guard条件执行来实现。

:给transitory加hw_init可以掩盖该错误,但是最好不要用,因为nml-manual解释hw_init用法如下:

An initial value of a transitory expresses that the transitory is initialized at the beginning of every cycle with that value. During some cycle, the initial value can be overwritten at most once. Such a transitory has always a meaningful value, also when it not written in some cycle. This implies that a valid instruction can start from and end in such a transitory, instead of a static storage. These transitories are typically used to interact with the processor controller modeled outside of nML

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值