Try to Create a Cadence view from the verilog file. Here is my section of the skill that it is having problem with. If somebody has a easier way to create a Cadence view from a file let me know as well. I know what the problem here is but do not know the solution yet.
if((ddGetObj(libName cellName viewName fileN nil "r") != nil) then CCScopyWrealCV(libName cellName viewName copyViewName) ddDeleteObj(ddGetObj(libName cellName viewName fileN nil "r")) fileId = ddGetObj(libName cellName viewName fileN nil "w") WfileName = fileId~>readPath oPort = outfile(WfileName) fileOut = infile(fileName) while(gets(string fileOut) fprintf(oPort string) ) close(fileOut) close(oPort)
The function schInstallHDL might be what you are looking for?
Not really enough info to go on to solve all the problems, but you can fix your original code by changing:
fprintf(oPort "%s" string)