Welcome ! This website will help YOU (recent graduates/professionals) learn verification languages like SystemVerilog and UVM. Register for free and access more content !
  1. Mangali BalaRaju
  2. UVM
  3. Tuesday, 01 August 2017
which data structure is used to store data in the (your) environment and why ?
please answer it iam confusing about these question.
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.

We use cookies to personalize content and ads, to provide social media features and to analyze our traffic. You consent to our cookies if you continue to use our website. To find out more about the cookies we use and how to delete them, see our privacy policy.

  I accept cookies from this site.
EU Cookie Directive plugin by www.channeldigital.co.uk