{"id":14275,"date":"2020-05-28T09:15:04","date_gmt":"2020-05-28T13:15:04","guid":{"rendered":"https:\/\/blogs.mentor.com\/verificationhorizons\/?p=14275"},"modified":"2026-03-27T08:51:02","modified_gmt":"2026-03-27T12:51:02","slug":"getting-organized-with-systemverilog-arrays","status":"publish","type":"post","link":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/2020\/05\/28\/getting-organized-with-systemverilog-arrays\/","title":{"rendered":"Getting Organized with SystemVerilog Arrays"},"content":{"rendered":"<p>SystemVerilog has many ways to store your data. Vectors, arrays, structures, classes, and probably several more ways that I don\u2019t remember. There are too many choices to squeeze into even 10 blog posts, so I made a webinar, actually two of them, to help you get organized.<\/p>\n<p>The first webinar focuses on vectors, fixed size arrays, dynamic arrays, queues, associative arrays, and strings. (Yeah, that\u2019s one I forgot.) Here is a sneak peek \u2013 a diagram to help you choose between these different types.<\/p>\n<p><a href=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/54\/2020\/05\/choose.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-14277\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/54\/2020\/05\/choose-520x202.png\" alt=\"Choose arrays\" width=\"520\" height=\"202\" \/><\/a><\/p>\n<p>Ever stumble across the following code and wondered what it does?<\/p>\n<pre>q = array.find(x) with (x&gt;5);<\/pre>\n<p>Looks like it is trying to find something greater than 5, but what is that &#8216;x&#8217; for, and why does searching an array produce a queue?\u00a0<a href=\"https:\/\/www.mentor.com\/products\/fv\/events\/taking-systemverilog-arrays-to-the-next-dimension\" target=\"_blank\" rel=\"noopener\">Sign up for the webinar<\/a> with the full explanation. It is Friday June 5 at 8:15am PDT. I&#8217;m starting a little later so you can grab another cup of coffee before joining, or give your home-school kid some breakfast. No problem if you can\u2019t make it as these are all recorded.<\/p>\n<p><em>Enjoy your verification journey!<\/em><br \/>\n<em>Chris Spear<\/em><\/p>\n<p>Keep learning at <a href=\"http:\/\/mentor.com\/training\" target=\"_blank\" rel=\"noopener\">mentor.com\/training<\/a><br \/>\nQuestions or ideas? <a href=\"https:\/\/verificationacademy.com\/ask-chris-spear\" target=\"_blank\" rel=\"noopener\">verificationacademy.com\/ask-chris-spear<\/a><br \/>\nView my recent webinar on <a href=\"https:\/\/verificationacademy.com\/sessions\/uvm-coding-guidelines-tips-and-tricks-you-probably-didnt-know\" target=\"_blank\" rel=\"noopener\">UVM Coding Guidelines<\/a> and the <a href=\"https:\/\/verificationacademy.com\/sessions\/uvm-coding-guidelines-tips-and-tricks-you-probably-didnt-know\/rte\/questions--answers\" target=\"_blank\" rel=\"noopener\">Questions and Answers<\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/blogs.mentor.com\/verificationhorizons\/wp-admin\/post.php?post=14093&amp;action=edit\" target=\"_blank\" rel=\"noopener\">\u00a0<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SystemVerilog has many ways to store your data. Vectors, arrays, structures, classes, and probably several more ways that I don\u2019t&#8230;<\/p>\n","protected":false},"author":71586,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spanish_translation":"","french_translation":"","german_translation":"","italian_translation":"","polish_translation":"","japanese_translation":"","chinese_translation":"","footnotes":""},"categories":[7,1,982,10],"tags":[345,352,423,449,455,479,484,485,503,515,545,548,549,575,583,604,636,637,648,654,655,673,704,739,751,762,769,773,787,812,813,831],"industry":[],"product":[],"coauthors":[980],"class_list":["post-14275","post","type-post","status-publish","format-standard","hentry","category-learning-resources","category-news","category-systemverilog","category-tips-tricks","tag-array","tag-associative-array","tag-declaration","tag-dynamic-array","tag-element","tag-fixed-size-array","tag-foreach","tag-foreach-loop","tag-function","tag-handle","tag-index","tag-int","tag-integer","tag-list","tag-mda","tag-multidimensional-array","tag-pop_back","tag-pop_front","tag-property","tag-push_back","tag-push_front","tag-queue","tag-scoreboard","tag-string","tag-systemverilog","tag-three-dimensional-array","tag-transaction","tag-two-dimensional-array","tag-uvm","tag-value","tag-variable","tag-verilog"],"_links":{"self":[{"href":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/wp-json\/wp\/v2\/posts\/14275","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/wp-json\/wp\/v2\/users\/71586"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/wp-json\/wp\/v2\/comments?post=14275"}],"version-history":[{"count":1,"href":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/wp-json\/wp\/v2\/posts\/14275\/revisions"}],"predecessor-version":[{"id":18193,"href":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/wp-json\/wp\/v2\/posts\/14275\/revisions\/18193"}],"wp:attachment":[{"href":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/wp-json\/wp\/v2\/media?parent=14275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/wp-json\/wp\/v2\/categories?post=14275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/wp-json\/wp\/v2\/tags?post=14275"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/wp-json\/wp\/v2\/industry?post=14275"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/wp-json\/wp\/v2\/product?post=14275"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/wp-json\/wp\/v2\/coauthors?post=14275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}