{"id":14371,"date":"2020-06-30T14:40:39","date_gmt":"2020-06-30T18:40:39","guid":{"rendered":"https:\/\/blogs.mentor.com\/verificationhorizons\/?p=14371"},"modified":"2026-03-27T08:50:57","modified_gmt":"2026-03-27T12:50:57","slug":"get-your-bits-together","status":"publish","type":"post","link":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/2020\/06\/30\/get-your-bits-together\/","title":{"rendered":"Get Your Bits Together"},"content":{"rendered":"<p>After my last webinar on SystemVerilog arrays, I received several questions on the differences between arrays and structures, plus how to share declarations across modules. This and more will be revealed at my next webinar on <a href=\"https:\/\/www.mentor.com\/products\/fv\/events\/get-your-bits-together--systemverilog-structures-and-packages\" target=\"_blank\" rel=\"noopener\">SystemVerilog Structures and Packages<\/a>. The first half is on structures, covering topics such as when should you pick a packed structure vs. unpacked.<\/p>\n<p>Packages are a great way to organize related definitions, like all the classes for a USB testbench, or the PCI hardware definitions. But what does it mean to import a package? In the second half of the webinar, you will learn the best place to import a package, and how to write code that avoids the problem of the same name defined in multiple packages.<\/p>\n<p>For example, why won&#8217;t the following code compile compile, and what is the bug for the RED and GREEN names? Tune in and find out.<\/p>\n<p><a href=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/54\/2020\/06\/import_problem.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-14373\" src=\"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/54\/2020\/06\/import_problem-520x396.png\" alt=\"\" width=\"520\" height=\"396\" \/><\/a><\/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:\/\/www.mentor.com\/products\/fv\/events\/taking-systemverilog-arrays-to-the-next-dimension\" target=\"_blank\" rel=\"noopener\">SystemVerilog arrays<\/a>\u00a0and the <a href=\"https:\/\/verificationacademy.com\/sessions\/taking-systemverilog-arrays-to-the-next-dimension\/questions-and-answers\" target=\"_blank\" rel=\"noopener\">Questions and Answers<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After my last webinar on SystemVerilog arrays, I received several questions on the differences between arrays and structures, plus how&#8230;<\/p>\n","protected":false},"author":71586,"featured_media":15361,"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":[302,378,423,426,455,461,462,463,470,471,512,543,545,548,549,570,575,585,619,626,627,628,629,630,642,654,655,673,679,704,713,740,751,752,775,782,784,812,813,815,831,849,850],"industry":[],"product":[],"coauthors":[980],"class_list":["post-14371","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-learning-resources","category-news","category-systemverilog","category-tips-tricks","tag-unit","tag-chaining-package","tag-declaration","tag-default","tag-element","tag-enum","tag-enum-label","tag-enumerated-type","tag-export","tag-export-package","tag-global","tag-import-package","tag-index","tag-int","tag-integer","tag-label","tag-list","tag-member","tag-organize","tag-package","tag-packed","tag-packed-structure","tag-packed-union","tag-parameter","tag-ports","tag-push_back","tag-push_front","tag-queue","tag-real","tag-scoreboard","tag-shortreal","tag-structure","tag-systemverilog","tag-tagged-union","tag-typedef","tag-union","tag-unpacked-structure","tag-value","tag-variable","tag-vector","tag-verilog","tag-wildcard","tag-wildcard-import"],"featured_image_url":"https:\/\/blogs.sw.siemens.com\/wp-content\/uploads\/sites\/54\/2020\/06\/import_problem.png","_links":{"self":[{"href":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/wp-json\/wp\/v2\/posts\/14371","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=14371"}],"version-history":[{"count":1,"href":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/wp-json\/wp\/v2\/posts\/14371\/revisions"}],"predecessor-version":[{"id":15362,"href":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/wp-json\/wp\/v2\/posts\/14371\/revisions\/15362"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/wp-json\/wp\/v2\/media\/15361"}],"wp:attachment":[{"href":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/wp-json\/wp\/v2\/media?parent=14371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/wp-json\/wp\/v2\/categories?post=14371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/wp-json\/wp\/v2\/tags?post=14371"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/wp-json\/wp\/v2\/industry?post=14371"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/wp-json\/wp\/v2\/product?post=14371"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/verificationhorizons\/wp-json\/wp\/v2\/coauthors?post=14371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}