Skip to the selected question
ASIC.FYI

ASIC Question Bank

1,000+ hardware interview questions
DescriptionQ991
Page ↗
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

Answer choices (4)