veripool / verilog-perl

Verilog parser, preprocessor, and related tools for the Verilog-Perl package
https://www.veripool.org/verilog-perl
Artistic License 2.0
119 stars 33 forks source link

vhier cannot find files in library #1374

Closed veripoolbot closed 5 years ago

veripoolbot commented 5 years ago

Author Name: Clarke Watson Original Redmine Issue: 1374 from https://www.veripool.org

Original Assignee: Wilson Snyder (@wsnyder)


Hi,

I'm having some trouble with vhier (version 3.456). It doesn't appear to recognize the -y option. I've pasted an example showing the issue below. In the first run, I use the -y command-line option to specify a library directory, and vhier cannot find any of the modules that reside in the library directory. In the second run, I specify the library files the module requires and vhier is happy.

Why doesn't vhier find the files specified in the library directory when the -y option is used?

Am I doing something wrong?

FYI... I am running in cygwin64 on a Windows 10 machine.

Thanks!

Example 1:

$ vhier sys_ctrl_core.sv sys_ctrl.sv -y ../csr --input-files
%Error: sys_ctrl.sv:645: Cannot find csr_split
%Error: sys_ctrl.sv:493: Cannot find csr_merge_tmp
%Error: sys_ctrl.sv:368: Cannot find csr_merge
%Error: sys_ctrl.sv:645: Module/Program/Interface reference not found: csr_split
%Error: sys_ctrl.sv:493: Module/Program/Interface reference not found: csr_merge_tmp
%Error: sys_ctrl.sv:506: Module/Program/Interface reference not found: csr_merge_tmp
%Error: sys_ctrl.sv:368: Module/Program/Interface reference not found: csr_merge
%Error: sys_ctrl.sv:280: Module/Program/Interface reference not found: csr_merge
%Error: sys_ctrl.sv:659: Module/Program/Interface reference not found: csr_split
%Error: sys_ctrl.sv:631: Module/Program/Interface reference not found: csr_split
%Error: sys_ctrl.sv:424: Module/Program/Interface reference not found: csr_merge
%Error: sys_ctrl.sv:522: Module/Program/Interface reference not found: csr_merge_tmp
%Error: sys_ctrl.sv:266: Module/Program/Interface reference not found: csr_merge
%Error: sys_ctrl.sv:354: Module/Program/Interface reference not found: csr_merge
%Error: sys_ctrl.sv:438: Module/Program/Interface reference not found: csr_merge
%Error: sys_ctrl.sv:340: Module/Program/Interface reference not found: csr_merge
%Error: sys_ctrl.sv:452: Module/Program/Interface reference not found: csr_merge
%Error: sys_ctrl.sv:485: Module/Program/Interface reference not found: csr_merge_tmp
%Error: sys_ctrl.sv:382: Module/Program/Interface reference not found: csr_merge
%Error: sys_ctrl.sv:298: Module/Program/Interface reference not found: csr_merge
%Error: sys_ctrl.sv:312: Module/Program/Interface reference not found: csr_merge
%Error: sys_ctrl.sv:396: Module/Program/Interface reference not found: csr_merge
%Error: sys_ctrl.sv:466: Module/Program/Interface reference not found: csr_merge
%Error: sys_ctrl.sv:326: Module/Program/Interface reference not found: csr_merge
%Error: sys_ctrl.sv:514: Module/Program/Interface reference not found: csr_merge_tmp
%Error: sys_ctrl.sv:530: Module/Program/Interface reference not found: csr_merge_tmp
%Error: sys_ctrl.sv:410: Module/Program/Interface reference not found: csr_merge
Exiting due to errors

Example 2:

$ vhier sys_ctrl_core.sv sys_ctrl.sv ../csr/csr_merge.sv ../csr/csr_merge_tmp.sv ../csr/csr_split.sv --input-files
  ../csr/csr_merge.sv
  ../csr/csr_merge_tmp.sv
  ../csr/csr_split.sv
  sys_ctrl.sv
  sys_ctrl_core.sv
veripoolbot commented 5 years ago

Original Redmine Comment Author Name: Wilson Snyder (@wsnyder) Original Date: 2018-12-07T00:02:18Z


You need +libext+.sv since the standard filename extension is .v