Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vhier - ignore encrypted files #266

Closed
veripoolbot opened this issue Jun 15, 2010 · 4 comments
Closed

vhier - ignore encrypted files #266

veripoolbot opened this issue Jun 15, 2010 · 4 comments
Assignees
Labels
wontfix This will not be worked on

Comments

@veripoolbot
Copy link
Collaborator


Author Name: Tim Warkentin (@twarkent)
Original Redmine Issue: 266 from https://www.veripool.org
Original Date: 2010-06-15
Original Assignee: Wilson Snyder (@wsnyder)


Is there a way for vhier to ignore encrypted .v files? We are using IP from a 3rd party that's been encrypted and vhier generates the following error:
Error: Unterminated string
Stopped at /usr/lib64/perl5/Verilog/Parser.pm line 173

Thanks

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2010-06-15T20:19:33Z


It already should ignore `protected. Can you send a small example? (Truncate away, since the data shouldn't matter.)

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Tim Warkentin (@twarkent)
Original Date: 2010-06-15T21:02:34Z


I've reduced it down to 2 files.
I run the following command:
vhier -sv --nomissing --top-module nios --module-files *.v

The problem is the auto-generated nios.v file which includes multiple modules and a testbench at the end of the file. Just before the testbench module, there were a lot of include statements (one of which includes np0_cpu.v and it happens to be encrypted).

This happens to be in a section of code delimited by "// synthesis translate_off" and "// synthesis translate_on" and in this case could be ignored by vhier.

Hope this help.

Thanks,
Tim

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2010-06-16T17:06:01Z


This code simply includes a file which contains binary text. This isn't legal according to spec, it needs to have a protected and `endprotected around it.

I don't understand how any simulator would understand what to do with it; if you find the standard that defines how to deal with this, let me know. Meanwhile I'd suggest adding a ifdef SYNTHESIS endif around it.

BTW I deleted the attachments from the site because they were copyrighted.

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2010-08-26T11:20:35Z


Not a bug here.

@veripoolbot veripoolbot added the wontfix This will not be worked on label Mar 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants