# Cosimulation myhdl.vpi search path

**URL:** https://discourse.myhdl.org/t/cosimulation-myhdl-vpi-search-path/252
**Category:** Support
**Created:** [February 19, 2018, 1:00am UTC](https://discourse.myhdl.org/t/cosimulation-myhdl-vpi-search-path/252 "2018-02-19T01:00:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![legendbb](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.myhdl.org/legendbb/32/81_2.png) [@legendbb](https://discourse.myhdl.org/u/legendbb)
#### Post date: [February 19, 2018, 1:00am UTC](https://discourse.myhdl.org/t/cosimulation-myhdl-vpi-search-path/252/1 "2018-02-19T01:00:24Z")

</div>

I’ve seen example code calling “vvp -m myhdl.vpi …”

the path of myhdl.vpi is not specified, although I can run my cosimulation by specifying the path. Just wondering how to make a system wide search path for myhdl.vpi, so I don’t have to keep copying myhdl.vpi file to each workspace.

Please comment ,

Thanks,

---

<div class="post-metadata">

### Author: ![cfelton](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.myhdl.org/cfelton/32/3_2.png) [@cfelton](https://discourse.myhdl.org/u/cfelton)
#### Post date: [February 19, 2018, 2:10pm UTC](https://discourse.myhdl.org/t/cosimulation-myhdl-vpi-search-path/252/2 "2018-02-19T14:10:02Z")

</div>

In the [setup.py](https://github.com/myhdl/myhdl/blob/master/setup.py#L45) the cosimulation files are copied, if you setup a path to point to the site-packages.

I personally copy the VPI to each directory, @jck, @hgomersall, or @josyb might have better suggestions.

---

<div class="post-metadata">

### Author: ![philn16](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.myhdl.org/philn16/32/103_2.png) [@philn16](https://discourse.myhdl.org/u/philn16)
#### Post date: [November 8, 2018, 3:23am UTC](https://discourse.myhdl.org/t/cosimulation-myhdl-vpi-search-path/252/3 "2018-11-08T03:23:47Z")

</div>

I just started using myhdl.vpi (on Ubuntu 18.04). It seems that if I put it where system.vpi is installed vvp will find it.  
sudo cp myhdl.vpi (dirname (locate system.vpi) )  
Also, for me system.vpi is found at /usr/lib/x86\_64-linux-gnu/ivl/system.vpi
