Skip to the selected question
ASIC.FYI

ASIC Question Bank

1,000+ hardware interview questions
DescriptionQ389
Page ↗
Q389FWASIC interview problem

Associative arrays

TechniquesSystemVerilogArray forms
DifficultyEasy
TopicData Structures
LanguageSystemVerilog
Format4 choices
01

Problem

What does the display print?

Starting declarationSystemVerilog
int aa[string];
initial begin
  aa["x"] = 7;
  $display("%0d %0d", aa.exists("y"), aa.num());
end
02

Answer choices (4)