User guide
E-80
PLI Access Routines
vcsSpEncodeOn(esp); /* start protected region */
vcsSpWriteString(esp, "this text will be encrypted and
licensed");
vcsSpEncodeOff(esp); /* end protected region */
/* The following text will be encrypted but unlicensed */
vcsSpSetLibLicenseCode(esp, 0); /* clear license code */
vcsSpEncodeOn(esp); /* start protected region */
vcsSpWriteString(esp, "this text encrypted but not
licensed");
vcsSpEncodeOff(esp); /* end protected region */
Caution
The rules for mixing licensed and unlicensed code is determined by
your OEM licensing agreement with Synopsys.
The code segment in Example D-39 shows how to enable and disable
the addition of the license code to the protected regions. Normally
you would call this routine once, that is, after calling
vcsSpInitialize() and before the first call to
vcsSpEncodeOn().
vcsSpSetPliProtectionFlag
Syntax
void vcsSpSetPliProtectionFlag(vcsSpStateID esp, int
enable)
Synopsis
This routine sets the PLI protection flag. You can use it to disable the
normal PLI protection that is placed on encrypted modules. The
output files will still be encrypted, but CLI and PLI users will not be
prevented from accessing data in the modules.