仲裁设计(一):m个通道,n种优先级,同等优先级间支持Round-robin & Fixed-priority两种方式;含uvm验证环境。

 

Content

Background

Rtl code parsing

        Parameter define

        Top layer interface

Uvm code parsing

Case test examples

Reference

---------------------------------------------------------------------------------------------------------------------------------

Background

EDA tools: ubuntu16.04, vcs , verdi.

---------------------------------------------------------------------------------------------------------------------------------

Rtl code parsing

Parameter define(arb_define.vh):

ARB_NUM: req number

ARB_PRIORITY_WIDTH: priority width. The larger the value of this field, the higher the priority. Example: when ARB_PRIORITY_WIDTH=2,it indicates that there are four priority levels(0,1,2,3). When the field of a req is set to 3, it has the highest priority.

ARB_MODE:1:Round-robin; 0: fixed-priority.

------------------------------------------------

Top layer interface(arb.sv):

Timing of ch_req & ch_grant:

            

Format of ch_pr_cfg:

       

 

Signal declaration:

Generate ch_req_vld:

Arbitration:

---------------------------------------------------------------------------------------------------------------------------------

Uvm code parsing

In progress

---------------------------------------------------------------------------------------------------------------------------------

Case test examples 

  1. ARB_NUM = 8; ARB_PRIORITY_WIDTH=2;  ARB_MODE = 1  :
  2. ARB_NUM = 8; ARB_PRIORITY_WIDTH=2;  ARB_MODE = 0  :
  3. ARB_NUM = 5; ARB_PRIORITY_WIDTH=3;  ARB_MODE = 1  :
  4. ARB_NUM = 5; ARB_PRIORITY_WIDTH=3;  ARB_MODE = 0  :
  5. ARB_NUM = 9; ARB_PRIORITY_WIDTH=3;  ARB_MODE = 1  :
  6. ARB_NUM = 9; ARB_PRIORITY_WIDTH=3;  ARB_MODE = 0  :

 

Reference

-------------------------------------------------------------------------------------------------------------------------------

unfinished

-------------------------------------------------------------------------------------------------------------------------------

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值