Posted By tmackett on 3/12/2007 10:19 AM
use io_printf, which is a VPI function. io_printf prints to the ncsim.log/ncverilog.log file.
So, would I be correct in saying that any existing C code using printf's needs to be modified to ensure that messages go to the simulation log?
If I want to use my C function as part of a UNIX command line program and as a DPI shared object, I need to create some sort of #define macro to use "printf" for command line and "io_printf" for DPI. Is there any better method of doing this?
StuartOriginally posted in cdnusers.org by g60stu