Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Associattive Array or Queue of packet based protocols

Status
Not open for further replies.

spartanthewarrior

Full Member level 2
Full Member level 2
Joined
Jun 13, 2007
Messages
122
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Visit site
Activity points
2,142
Hi All,

I have to create a (Checker/Scoreboard) in SV for a packet based protocol and need a suggestion

Whether, I will use (Associative Array) or Queues for packet based protocols. I have to develop checker for PCI-Express.

Also please mention why ?
 

You use a queue when the order that the entries arrive in the queue are important, and you primarily access the front or back of the queue, rarely the elements in the middle. Accessing an element by its position in the queue is efficient, but the searching for a particular value in a queue is linear with its size. The ordering of associative arrays is user defined and independent of the order elements are created. Searching for a particular index value may be more important than any imposed ordering, and an associative array is design to make searching for an index value very efficient.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top