BY: Suraj Kurapati (snk)
DATE: 2007-07-28 18:50
SUBJECT: RE: Can't seem to get ruby-vpi to work with V


The "+acc" option didn't work (VCS said it could not load its db
file). So I had to use "+cli" instead. Now VCS correctly starts up
Ruby-VPI and the test runs:

vcs -R +vpi +cli -load
/tmp/ruby-vpi/obj/vcs.so:vlog_startup_routines_bootstrap -full64
+v2k +incdir+.. ../counter.v

--------------------------------

Anyway, I am finally at the same situation as you are (getting the
following error):


Error: vpi_put_value: Write permission not enabled.
Please add capability wn to module counter.


Could you please check in the VCS manual or ask Synopsys support how
to specify write permissions for VPI functions from the command-line
(or from a PLI table file)?

I know the PLI table file lets you specify write permissions for VPI
task functions, but the problem is that Ruby-VPI does not use any
VPI task functions. Instead, Ruby-VPI only uses VPI callbacks:
cbStartOfSimulation and cbAfterDelay.

Maybe we need to tell VCS to give write permissions to the initial
cbStartOfSimulation callback?

Thanks for your consideration.

Reply via email to