how to run ncprotect?

Guest
Hi,
I am trying to encrypt a verilog file with ncprotect and I am getting
an error. I have IUS5.3 or 6.11 and seeing the same issue with both.

I have the following lines in my file:

// pragma protect
// pragma protect begin

I am pretty sure this used to work in earlier versions (because I
copy/pasted from an earlier file) but now I am getting

ncprotect: *E,ENCERR: (foo.v,97): Error during encryption. invalid or
unknown or incomplete pragma specification 'incomplete pragma
specification'.

My command line is:

/apps/IUS583P3/tools.lnx86/bin/ncprotect -language vlog foo.v

So I think there are more options to include in the pragma protect but
I can't find any ncprotect documentation anywhere in the tree. Any
ideas how to run ncprotect and what to include in these pragma lines?

thanks.
 
vincent.stay@gmail.com wrote, on 05/05/10 18:43:
Hi,
I am trying to encrypt a verilog file with ncprotect and I am getting
an error. I have IUS5.3 or 6.11 and seeing the same issue with both.

I have the following lines in my file:

// pragma protect
// pragma protect begin

I am pretty sure this used to work in earlier versions (because I
copy/pasted from an earlier file) but now I am getting

ncprotect: *E,ENCERR: (foo.v,97): Error during encryption. invalid or
unknown or incomplete pragma specification 'incomplete pragma
specification'.

My command line is:

/apps/IUS583P3/tools.lnx86/bin/ncprotect -language vlog foo.v

So I think there are more options to include in the pragma protect but
I can't find any ncprotect documentation anywhere in the tree. Any
ideas how to run ncprotect and what to include in these pragma lines?

thanks.
Both of those are quite old.

One possibility I found is that before about a year ago, ncprotect would give
this error if your file has DOS end-of-line characters...

You can tell this by doing "cat -vet foo.v" and seeing if it reports:

// pragma protect^M$
// pragma protect begin^M$
always #200 i=4'b1010;^M$

You can use the "dos2unix" command to convert it, or use :set fileformat=unix in
vim (and then save). A "cat -vet" on the converted file would look like this:

// pragma protect$
// pragma protect begin$
always #200 i=4'b1010;$

(cat -vet shows end of line, and other special characters - so the $ is just
indicating where the end of lines are).

Alternatively use IUS81s16 or later - any release from after (say) middle of
2009. Certainly 8.2.s22 is OK too. But 8.2.p1 is not (too old).

Regards,

Andrew.
 
On Thu, 06 May 2010 08:55:18 +0100, Andrew Beckett
<andrewb@DcEaLdEeTnEcTe.HcIoSm> wrote:

vincent.stay@gmail.com wrote, on 05/05/10 18:43:
Hi,
I am trying to encrypt a verilog file with ncprotect and I am getting
an error. I have IUS5.3 or 6.11 and seeing the same issue with both.

I have the following lines in my file:

// pragma protect
// pragma protect begin

I am pretty sure this used to work in earlier versions (because I
copy/pasted from an earlier file) but now I am getting

ncprotect: *E,ENCERR: (foo.v,97): Error during encryption. invalid or
unknown or incomplete pragma specification 'incomplete pragma
specification'.

My command line is:

/apps/IUS583P3/tools.lnx86/bin/ncprotect -language vlog foo.v

So I think there are more options to include in the pragma protect but
I can't find any ncprotect documentation anywhere in the tree. Any
ideas how to run ncprotect and what to include in these pragma lines?

thanks.

Both of those are quite old.

One possibility I found is that before about a year ago, ncprotect would give
this error if your file has DOS end-of-line characters...
Hi Andrew,
That was exactly the problem, thanks.
 

Welcome to EDABoard.com

Sponsor

Back
Top