DescriptionQ511
Q511DVASIC interview problem
Semaphores
TechniquesSystemVerilogCommunication primitives
DifficultyEasy
TopicVerification Utilities
LanguageSystemVerilog
Format4 choices
01
Problem
What does ok become?
Starting declarationSystemVerilog
semaphore s = new(2);
int ok;
initial begin
s.get(2);
ok = s.try_get(1);
end02
