Skip to the selected question
ASIC.FYI

ASIC Question Bank

1,000+ hardware interview questions
DescriptionQ731
Q731DVDesignASIC interview problem

4-state equality

TechniquesSystemVerilogTypes and resolution
DifficultyEasy
TopicSystemVerilog
LanguageSystemVerilog
Format4 choices
01

Problem

What does the display print?

Starting declarationSystemVerilog
logic [1:0] a = 2'bx1;
logic [1:0] b = 2'bx1;
initial $display("%0b %0b", a == b, a === b);
02

Answer choices (4)