# Running the Shipped UVVM TB Examples

**URL:** <https://forum.uvvm.org/t/running-the-shipped-uvvm-tb-examples/464>\
**Category:** General questions\
**Created:** [November 21, 2024, 12:39pm UTC](https://forum.uvvm.org/t/running-the-shipped-uvvm-tb-examples/464 "2024-11-21T12:39:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![graemej](https://avatars.discourse-cdn.com/v4/letter/g/aca169/32.png) [@graemej](https://forum.uvvm.org/u/graemej)\
**Post date:** [November 21, 2024, 12:39pm UTC](https://forum.uvvm.org/t/running-the-shipped-uvvm-tb-examples/464/1 "2024-11-21T12:39:31Z")

</div>

Trying to run the UART TB example from the most current release.  
Have followed the Getting Started instructions where I have my own folder sitting parallel to the UVVM download and I have compiled the uvvm\_util library and the uvvm\_vvc\_framework library. Both of these libraries sit inside a ‘sim’ folder in my own workspace folder.  
Now trying to run the shipped bitvis\_uart example.  
Don’t want to compile and run stuff within the UVVM\_master downloaded directory, I want to run it in my workspace folder where I previously compiled the utils & vvc\_framework libs.  
Tried copying the bitvis\_uart folder into my workspace folder.  
Then following the testbench\_guide.pdf from the uart\_tb folder, it tells me to run sims from the bitvis\_uart/sim folder and to execute the command ‘do ../script/compile\_all\_and\_simulate.do’

I get this error:

# \*\* Error: Cannot open macro file: ../../script/compile\_src.do

# Error in macro C:/graemej/Design\_Data/UVVM/Graeme\_UVVM\_Workspace/bitvis\_uart/script/compile\_dependencies.do line 27

# Cannot open macro file: ../../script/compile\_src.do

Looks like the scripts rely on a relative path that i can’t seem to override with an argument  
What am I doing wrong ?

---

<div class="post-metadata">

**Author:** ![graemej](https://avatars.discourse-cdn.com/v4/letter/g/aca169/32.png) [@graemej](https://forum.uvvm.org/u/graemej)\
**Post date:** [November 21, 2024, 2:28pm UTC](https://forum.uvvm.org/t/running-the-shipped-uvvm-tb-examples/464/2 "2024-11-21T14:28:40Z")

</div>

The PDF instructions work as long as I don’t try copying the bitvis\_uart & bitvis\_vip\_uart folders into my own workspace folder where I compiled the base libraries.  
Seems I have to run the examples from within the uvvm unzipped download or else the relative paths in the scripts results in compile errors.

---

<div class="post-metadata">

**Author:** ![Marius](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.uvvm.org/marius/32/43_2.png) [@Marius](https://forum.uvvm.org/u/Marius)\
**Post date:** [November 22, 2024, 5:45am UTC](https://forum.uvvm.org/t/running-the-shipped-uvvm-tb-examples/464/3 "2024-11-22T05:45:04Z")

</div>

Hi,  
Yes, this is because the scripts use relative paths, which will not be correct if you run it from somewhere else.

Br,  
Marius

---

<div class="post-metadata">

**Author:** ![graemej](https://avatars.discourse-cdn.com/v4/letter/g/aca169/32.png) [@graemej](https://forum.uvvm.org/u/graemej)\
**Post date:** [November 22, 2024, 10:14am UTC](https://forum.uvvm.org/t/running-the-shipped-uvvm-tb-examples/464/4 "2024-11-22T10:14:50Z")

</div>

I’m surprised as if any customer following design assurance would have the downloaded base libraries set as read only so that they cannot be modified (unless you have admin permissions).  
I would expect to copy examples from the install directory into my own workspace and run things where I have write access.

---

<div class="post-metadata">

**Author:** ![Marius](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.uvvm.org/marius/32/43_2.png) [@Marius](https://forum.uvvm.org/u/Marius)\
**Post date:** [November 27, 2024, 6:07am UTC](https://forum.uvvm.org/t/running-the-shipped-uvvm-tb-examples/464/5 "2024-11-27T06:07:08Z")

</div>

Yes, and you can as long as you keep all relative paths, and I do not see why they should be changed when copied. The run script expects to find source files somewhere relative to where the script is called from, and also any other script that needs to be run.  
Absolute paths would not work.

Br

---

<div class="post-metadata">

**Author:** ![graemej](https://avatars.discourse-cdn.com/v4/letter/g/aca169/32.png) [@graemej](https://forum.uvvm.org/u/graemej)\
**Post date:** [February 13, 2026, 12:23pm UTC](https://forum.uvvm.org/t/running-the-shipped-uvvm-tb-examples/464/6 "2026-02-13T12:23:38Z")

</div>

Just downloaded 2025.11.28 and see the same issue persists.

Would be much more portable & flexible if the supplied scripts used an environment variable to soften the path to the UVVM master directory so that the other scripts that get executed in the examples can be ran from any user’s workspace.
