[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  BugVise
  CovVise
  Force-Gate-Sim
  Gspice
  IPC::Locker
  Rsvn
  Schedule::Load
  SVN::S4
  Synopsys-modes
  SystemPerl
  Verilog-Pli
  Voneline
  Vregs
General Info
  Papers

SYSTEMPERL environment variable

Added by Keith Vertrees 12 months ago

Hi, for Verilator compilation, what should the SYSTEMPERL environment variable be set to if I installed SystemPerl via CPAN? It says to point it toward the kit. Is that the CPAN build directory? Won't that potentially be modified or deleted by CPAN?

Thanks, Keith


Replies (5)

RE: SYSTEMPERL environment variable - Added by Wilson Snyder 12 months ago

Unfortunately CPAN install rules don't have a way to install includes (that I'm aware of). Therefore if you need the includes for Verilator, you still need to have the kit around to point to. Sorry.

RE: SYSTEMPERL environment variable - Added by chengzhi zheng 9 months ago

HI,i installed verilator in /tools/openrisc/verilator, but i can only see bin and share directory, but no include directory. is that right? or i had done something wrong or miss something? when i use make prepare-vlt command in orpsoc project, it reported: ../include/verilated.mk: no such file or directory

i find that there is share/verilator/include directory, so i linked it to verilator root directoy, then re-run it. the error message above gone, but a new error come. No rule to make target verilator_bin: needed by Vorpsoc_top_ver.d

i have add verilator install directory to PATH, i have tried to set and unset VERILATOR_ROOT variable, the result are the same. what else i can do to move this forward?

thanks !

RE: SYSTEMPERL environment variable - Added by Wilson Snyder 9 months ago

Verilator installs the includes by default in share as you noticed. It then remembers that path for the makefiles it builds. If you try the example in the verilator manual, I suspect it will work, if not post here. Otherwise I don't know what prepare-vlt does, it looks like it isn't using the proper generated makefile, or maybe it needs some other special setup, you'll have to contact the author of the prepare-vlt script. Sorry.

RE: SYSTEMPERL environment variable - Added by chengzhi zheng 9 months ago

hi, Wilson, thank you for your kindly reply.

i un-tar verilator at folder ~/verilator-3.820, and installed verilator at /tools/openrisc/verilator directory,and there are bin and share folders. in the verilator-3.820/test_c directory, i type: make then the test goes all right. in verilator/share/verilator/example/test_c directory, when i type: make there are errors reporting: ../include/verilated.mk no such file or directory. i find that it is the relative directory path not correct.

so, you mentioned try the example in the verilator manual, is this test be proper for the problem diagnoze.

maybe i should not specify the install path rather than use the default configuration?

the prepare-vlt script is from the openrisc project from opencores.org.

RE: SYSTEMPERL environment variable - Added by Wilson Snyder 9 months ago

Ah, I see. "make test" is only intended to test the kit in place, between compiling verilator and installation, not after installation. The example in the manual is for after installation. If the example in the manual works, which I suspect it does, and prepare-vlt doesn't then the openrisc people are who to contact - I'll help them if they want, but don't have control over that source.

(1-5/5)