Skip to question
asic.fyi
DesignVerificationSystemVerilogFirmwareArchitectureInterviews
asic.fyi/Interview questions/Direct Programming Interface (DPI) imports

Hardware interview practice

Direct Programming Interface (DPI) imports

EasyVerification UtilitiesSystemVerilog

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

Try it in the question bankReason first. Then compare.

Keep this exact question selected while you check your answer and review the full solution.

Practice this question →
Starting point

Question code

import "DPI-C" function int add(input int a, input int b);
Choose one

Answer choices

  1. A. The C implementation must not consume simulation time
  2. B. The function may call #delays directly in C
  3. C. The function can be invoked only from an initial block
  4. D. All arguments are passed as strings
Continue practicing

Related questions

Verification UtilitiesDirect Programming Interface (DPI) 4-state data mapping→
asic.fyi · Learn silicon end to end.info@asic.fyi