Issue #266
vhier - ignore encrypted files
| Status: | WillNotFix | Start date: | 06/15/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | Wilson Snyder | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - |
Description
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
History
Updated by Wilson Snyder almost 3 years ago
- Status changed from New to Assigned
- Assignee set to Wilson Snyder
It already should ignore `protected. Can you send a small example? (Truncate away, since the data shouldn't matter.)
Updated by Tim Warkentin almost 3 years ago
- File nios.v added
- File np0_cpu.v added
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
Updated by Wilson Snyder almost 3 years ago
- File deleted (
nios.v)
Updated by Wilson Snyder almost 3 years ago
- File deleted (
np0_cpu.v)
Updated by Wilson Snyder almost 3 years ago
- Status changed from Assigned to AskedReporter
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.
Updated by Wilson Snyder over 2 years ago
- Status changed from AskedReporter to WillNotFix
Not a bug here.
Also available in: Atom
![[logo]](/img/veripool_small.png)