← 04 SystemVerilog OOP & Classes
Area 04 test · SystemVerilog

SystemVerilog OOP & Classes

20 questions · 70% to pass · no time limit. You see the right answers and why after you submit.

  1. 1After p2 = p1; p2.addr = 5; what is p1.addr?
  2. 2What is the value of a class handle that has been declared but not constructed?
  3. 3p2 = new p1; makes…
  4. 4In a shallow copy, which fields end up shared between the two objects?
  5. 5Why does a scoreboard need a deep copy of the expected transaction?
  6. 6A base method is NOT virtual; a child overrides it. Through a base handle pointing at a child object, which version runs?
  7. 7What does super.new() do in a child constructor?
  8. 8Which assignment is always legal?
  9. 9When does $cast(child_h, base_h) fail?
  10. 10A virtual class with a pure virtual method…
  11. 11A static int count in a class is…
  12. 12Which keyword lets child classes see a member but hides it from other code?
  13. 13p1 == p2 on two class handles compares…
  14. 14What is typedef class driver; for?
  15. 15class sb #(type T = packet); declares…
  16. 16A generator calls tmpl.calc_csum() where tmpl is a packet handle holding a bad_csum_packet. To get the bad checksum, calc_csum must be…
  17. 17In the blueprint pattern, how do you change what a generator produces without editing it?
  18. 18Which data type copies by value when a class is shallow-copied?
  19. 19What happens to an object when the last handle to it is set to null?
  20. 20Which UVM method plays the role of your hand-written deep copy?
0 of 20 answered