[UVM][AXI][VIP]Response queue overflow

24 篇文章 28 订阅

Response queue overflow

 

一、VIP Sequence Response queue overflow

       我们經常會遇到VIP的sequence报response queue overflow的情況,怎么去规避这个问题呢?應為response queue的depth默認為8,那麼如何去修改default設置呢?本文提供2种方法。

 1.1 增大depth,如下图,將Response Queue的Depth設置為512

virtual task body();
  super.body();

  set_response_queue_depth(512);

endtask

 1.2 If you really don’t care, then you can turn off the error as mentioned below.

virtual task body();
  super.body();

  set_response_queue_error_report_disabled(1);

endtask

二、UVM源码解读

 2.1 set_response_queue_error_report_disabled

public void set_response_queue_error_report_disabled( bit value ) ;
Function: set_response_queue_error_report_disabled 
          By default, if the response_queue overflows, an error is reported. 
          The response_queue will overflow if more responses are sent to 
          this sequence from the driver than get_response calls are made. 
          Setting the value to 0 disables these errors, while setting it 
          to 1 enables them.

  

 2.2 set_response_queue_depth( int value );

        If you do care, and if the error message is pointed to a real problem with your environment, then you may need to fix it - either by increasing the queue depth or by updating sequences to actually retrieve the response.

public void set_response_queue_depth( int value ) 
Function:   set_response_queue_depth 
               The default maximum depth of the response queue is 8
               This method is used to examine or change the maximum depth 
               of the response queue. Setting the response_queue_depth 
               to -1 indicates an arbitrarily deep response queue. No checking is done.

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

元直数字电路验证

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值