DescriptionQ991
Q991DVDesignASIC interview problem
Polymorphic deep copying
TechniquesSystemVerilogAdvanced OOP
DifficultyMedium
TopicSV
LanguageSystemVerilog
Format4 choices
01
Problem
A mailbox stores base-class transaction handles, but derived transactions contain extra fields and nested class handles. Which copying design best preserves type and independence?
Starting declarationSystemVerilog
mailbox #(base_txn) inbox;02
