wilson_on Posted March 30, 2016 Report Posted March 30, 2016 Is clock(signal from rtl or from testbench) allow to be used in C program to trigger event or delay? Quote
Logger Posted March 30, 2016 Report Posted March 30, 2016 The short answer is yes. However, from the way you worded your question, I'm immediately inclined to use the PLI/VPI instead of the DPI. There are a lot of ways to skin this cat. If you want more guidance, you'll need to give more details about what you're trying to accomplish. Quote
dave_59 Posted March 31, 2016 Report Posted March 31, 2016 This question is very vague. C programs don't have the concept of event triggers or delays. But SystemVerilog can use event triggers or delays to schedule when you call a C code from the DPI, and C code can in turn call SV code that has event triggers and delays. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.