BY: Suraj Kurapati (snk) DATE: 2007-07-28 03:15 SUBJECT: RE: Can't seem to get ruby-vpi to work with V
Calvin Wong wrote: > Could not open library specified in -load option > /scratch/testing/ruby-vpi-17.0.0/lib/ruby-vpi/../../obj/vcs > /scratch/testing/ruby-vpi-17.0.0/lib/ruby-vpi/../../obj/vcs: undefined symbol: > rb_string_value_ptr As you discovered, this was due to the Ruby shared object file not being found. (Maybe it wasn't in LD_LIBRARY_PATH?) > I have tried using export SIMULATOR=ncsim with rake test and that works fine. Excellent. Since I'm using a 64-bit machine, I had to do some extra work to get ncsim running: 1. NCSim requires the shared object file to have a '.so' extension 2. You must give it the '+nc64bit' option. I'm curious, when it ran the various Ruby-VPI tests, did it give you lots of errors like this: ERROR: VPI NOTSCOPE Object which is not a scope passed to vpi_handle_by_name. ./hw5_unit.v, 16: I can't figure out why NCSim wants a vpiScope object to be passed as the first parameter to vpi_handle_by_name() when that function takes a string as the first parameter. > I prefer to use VCS since our company has over > > 1000 vcs licenses compared to 100 ncsim licenses. Understood. I'll do my best to help.