Quantcast
Channel: Cadence Functional Verification Forum
Viewing all articles
Browse latest Browse all 1074

How to pass environment variables exported from pre_session_script to pre_group_script and run_script in vManager?

$
0
0

My vsif goes like this:

session vm_example_sessions { 
// Default sessions directory
top_dir : path/to/top_dir;
output_mode: terminal ;
// Try to use NC as DRM
drm: <text>nc</text>;
// Setup Simulation Env
pre_session_script : "path/to/vm_tb_setup.sh" ;
};

// Define test group and default simulation attributes for the group
group example_tests {

// compile once for test group
pre_group_script : "path/to/vm_compile_script.sh" ;
// run script to launch simulation
run_script : "path/to/vm_run_script.sh" ;
...
};

My pre_session_script:

#!/bin/sh

# Example of environment variable set
export RESULTS_HOME=$(pwd)
echo "RESULTS_HOME = $RESULTS_HOME"

My pre_group_script:

#!/bin/sh

echo "RESULTS_HOME check: $RESULTS_HOME"
# when executed:
# RESULTS_HOME check:

My run_script:

Is there a way to pass env variables from pre_session_script to the succeeding group and test scripts? I know I can source all the env variables before launching the VSIF but, I want to make VSIF source all of them instead.


Viewing all articles
Browse latest Browse all 1074

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>