Associattive Array or Queue of packet based protocols

Status
Not open for further replies.

spartanthewarrior

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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…