`ifndef INC_SCOREBOARD_SV
`define INC_SCOREBOARD_SV
class Scoreboard;
string name; // unique identifier
event DONE; // flag to indicate goal reached
Packet refPkt[$]; // reference Packet array
Packet pkt2send; // Packet object from Drivers
Packet pkt2cmp; // Packet object from Receivers
pkt_mbox driver_mbox; // mailbox for Packet objects from Drivers
pkt_mbox receiver_mbox; // mailbox for Packet objects from Receivers
//Lab6 Task 2 Step 2
//Define two new 4-bit class properties sa, da
//ToDo
bit[3:0] sa, da;
//Lab6 Task 2 Steps 3,4
//Define a covergroup router_cov
//Inside the covergroup define coverpoints for sa and da
//Inside the covergroup define a cross of the coverpoints for sa and da
//ToDo
covergroup router_cov;
coverpoint sa;
coverpoint da;
cross sa, da;
endgroup: router_cov
extern function new(string name = "Scoreboard", pkt_mbox driver_mbox = null, receiver_mbox = null);
extern virtual task start();
extern virtual task check();
endclass: Scoreboard
function Scoreboard::new(string name, pkt_mbox driver_mbox,
【sv-路科v0 验证结构及编译仿真步骤】 查看覆盖率
于 2022-04-18 16:11:58 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)