I would like to pass Specman structs to SV classes and back, using NC. I know that's possible because I'm able to run the MRM demo. However, I'm looking for a simpler example with a simple compile script...I've tried to compile the attached files (e2sv_class.e, e2sv_class.sv, taken from Specman help, beta features, 2.6) using the attached compile script (taken from 2.9 and slightly modified), but that doesn't seem to work. Can anyone indicate what's the right way to compile these files?
Hi, Interesting trial indeed. I must admit I don't know the answer really, but looking at the code I see that your E-struct name is "dut_instruction" whereas inside SV you have:
Is this how it is supposed to be as per manual? Or is it a typo?Also can you elaborate on what you mean by:<quote>but that doesn't seem to work. </quote>Ajeetha, CVCwww.noveldv.com
Hi Ajeetha,Thanks for your answer.The example was copied as is from:http://sourcelink.cadence.com/docs/files/Release_Info/Docs/sn_beta/sn_beta6.1/sn_beta.pdfpages 35-36.I believe the name mismatch is due to the fact that in between the e code and the sv code, you have the automatically generated stubs file, that probably fiddles a bit with the type names, and prefixes them with "sn_" "that doesn't seem to work" is in fact too general...it means that the automatically generated stubs file (specman.svh) gives compilation errors when compile with ncvlog -sv.Avidan
Hi AvidanWe couldn't recreate your compilation error, we've ran the attached script, and it passed compilation phase.Which Specman and IUS versions do you use?Also, please attach the ncvlog.log file that is created when you try to compile the specman.svh file.ThanksErez
I'm using Specman and ncvlog 6.20.
The script output and the ncvlog.log file are attached.
Hi AviadIt seems that the INCA_libs already includes some of the SV environement generated by Specman.(Have you ran this example also with irun ?)Delete the existing INCA_libs, and rerun the compile script.Erez
Hi Erez,Thanks, you're right. It works now.Avidan