..Hello, I am working on creating PLI for the verilog code. It gives segmentation fault. Initilally, the application linked successfully and simulated well. But while quiting the simulation after the exit statement, the simulator was print following statements ncsim> exit ncsim: *internal* (sv_seghandler - trapno -1). ncsim: *internal* (sv_seghandler - SIGSEGV while handling SIGSEGV). In my C code, I was using some static data structure to which i was allocating memory more than once without de-allocating the previous memory, to use it for different features. I then resolved the memory allocation problem by creating seperate data-stucture for each requitement. But the changes led to blunder. The simulator now terminates the simulation at runtime, after printing following message ncsim: *internal* (sv_seghandler - SIGSEGV while handling SIGSEGV). I am unable to figure out wat is the problem. I call the PLI routine once only and thats in initial block of the verilog code. I never call the pli routine afterwards. Moreover, the segmentation fault problem is with NS-simulator only. I used the same pli with Modelsim without any problem. Please reply at the earliest as i am struck because of this. I am using 05.00-p001 version of ncverilog I will be greatful of your help. Next Unread