Skip to the selected question
ASIC.FYI

ASIC Question Bank

1,000+ hardware interview questions
DescriptionQ037
Page ↗
Q037DVASIC interview problem

Direct Programming Interface (DPI) imports

TechniquesSystemVerilogDPI/C interoperability
DifficultyEasy
TopicVerification Utilities
LanguageSystemVerilog
Format4 choices
01

Problem

Which restriction follows from importing add as a Direct Programming Interface (DPI) function rather than a task?

Starting declarationSystemVerilog
import "DPI-C" function int add(input int a, input int b);
02

Answer choices (4)