Question
What data structure you used to build scoreboard?

Answers

In SV, we use mailbox to get data from different modules and compare the result.
class Scoreboard;mailbox drvr2sb;mailbox rcvr2sb;
function new(mailbox drvr2sb,mailbox rcvr2sb);  this.drvr2sb = drvr2sb;  this.rcvr2sb = rcvr2sb;endfunction:new
task start();  packet pkt_rcv,pkt_exp;  forever  begin    rcvr2sb.get(pkt_rcv);    $display(" %0d : Scorebooard : Scoreboard received a packet from receiver ",$time);    drvr2sb.get(pkt_exp);    if(pkt_rcv.compare(pkt_exp))     $display(" %0d : Scoreboardd :Packet Matched ",$time);    else      $root.error++;  endendtask : startendclass
In VMM, we use channels to connect all the modules and compare the result.
class Scoreboard extends vmm_xactor;   Packet_channel   drvr2sb_chan;   Packet_channel   rcvr2sb_chan;
function new(string inst = "class",             int unsigned stream_id = -1,             Packet_channel   drvr2sb_chan = null,             Packet_channel   rcvr2sb_chan = null);      super.new("sb",inst,stream_id);          if(drvr2sb_chan == null)           `vmm_fatal(this.log,"drvr2sb_channel is not constructed");      else           this.drvr2sb_chan = drvr2sb_chan;            if(rcvr2sb_chan == null)           `vmm_fatal(this.log,"rcvr2sb_channel is not constructed");      else           this.rcvr2sb_chan = rcvr2sb_chan;          `vmm_note(log,"Scoreboard created ");endfunction:new
task main();  Packet pkt_rcv,pkt_exp;  string msg;  super.main();   forever  begin    rcvr2sb_chan.get(pkt_rcv);    $display(" %0d : Scoreboard : Scoreboard received a packet from receiver ",$time);    drvr2sb_chan.get(pkt_exp);    if(pkt_rcv.compare(pkt_exp,msg))     $display(" %0d : Scoreboard :Packet Matched ",$time);    else    `vmm_error(this.log,$psprintf(" Packet MissMatched n %s ",msg));  endendtask : mainendclass   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q What's special about puppet's model-driven design?
  • Q How to define a structure with bit field members?
  • Q What are partition points?
  • Q What do you think are the most important skills for a housekeeper?
  • Q Is EOIO supported by RFC ?
  • Q The basic unit of Nervous System is:
  • Q What is an administering miis 2003 infrastructure in classic metadirectory walkthrough?
  • Q What is SPUFI?
  • Q What funding is available for businesses looking to expand in cleveland?
  • Q What is objref object in remoting?
  • Q Which of the following operations does not zero the field flda defined as 4,0?