Skip to question
asic.fyi
DesignVerificationSystemVerilogFirmwareArchitectureInterviews
asic.fyi/Interview questions/Manual do_copy and do_compare

Hardware interview practice

Manual do_copy and do_compare

MediumUVM ComponentsSystemVerilog

A derived transaction implements manual do_copy and do_compare methods. Which practice is essential for correct base-class and type behavior?

Try it in the question bankReason first. Then compare.

Keep this exact question selected while you check your answer and review the full solution.

Practice this question →
Choose one

Answer choices

  1. A. Call the corresponding super method and safely cast the rhs object before accessing derived fields
  2. B. Call new on rhs inside each method and replace the caller's object
  3. C. Raise a run-phase objection during every comparison
  4. D. Use only get_type_name because field values must not be inspected
Continue practicing

Related questions

UVM ComponentsField automation reference copying→UVM ComponentsPack and unpack ordering→
asic.fyi · Learn silicon end to end.info@asic.fyi