Hardware interview practice
Direct Programming Interface (DPI) imports
Which restriction follows from importing add as a Direct Programming Interface (DPI) function rather than a task?
Starting point
Question code
import "DPI-C" function int add(input int a, input int b);Choose one
Answer choices
- A. The C implementation must not consume simulation time
- B. The function may call #delays directly in C
- C. The function can be invoked only from an initial block
- D. All arguments are passed as strings
