1. Mangali BalaRaju
  2. UVM
  3. Tuesday, August 01 2017, 09:36 AM
which data structure is used to store data in the (your) environment and why ?
please answer it iam confusing about these question.
Admin Accepted Answer Pending Moderation
This looks like a very open ended question. Here are some guidelines if it helps:

  • Use the type bit if you know that the signal will never reach X or Z (applicable for most testbench signals)
  • Use the type logic for signals that have a chance to be X or Z (applicable for signals in an interface)
  • Use the type int for general signals where you don't care for the size
  • Use queues and dynamic arrays when you are not sure of the size of the array required
  • Use static arrays like bit [7:0] mem [8] if you know what size the array should have beforehand
  • Use associative arrays to store data as key - value pairs (a string can be the key, and an int can be the value)
  1. more than a month ago
  2. UVM
  3. # 1
  • Page :
  • 1

There are no replies made for this post yet.
However, you are not allowed to reply to this post.