cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
carljohnsen
Visitor
Visitor
407 Views
Registered: ‎09-10-2019

Specifying the location of emconfig.json

Jump to solution

Hi,

 

I'm using DaCe for FPGA development, which uses the Vitis workflow. It does so by calling the host program through Python, so when xrt looks for the emconfig.json, it expects it to be in /usr/bin . This is a problem, since config files shouldn't be but in /usr/bin, especially for multi user machines. However, the documentation states that "When running emulation, the emconfig.json file must be in the same directory as the host executable."

 

Is there any way to specify where the emconfig.json resides? For example, if it is generated along the device binary, can we point xrt to it?

 

Regards,

Carl

1 Solution

Accepted Solutions
kmorris
Xilinx Employee
Xilinx Employee
369 Views
Registered: ‎01-11-2011

Hi Carl, you can set the below environment variable to point to the location of the emconfig.json:

export EMCONFIG_PATH=/path/to/folder

Where the path points to the folder containing the emconfig.json.

-------------------------------------------------------------------------
Please don’t forget to reply, kudo, and accept as solution!
-------------------------------------------------------------------------

View solution in original post

2 Replies
kmorris
Xilinx Employee
Xilinx Employee
370 Views
Registered: ‎01-11-2011

Hi Carl, you can set the below environment variable to point to the location of the emconfig.json:

export EMCONFIG_PATH=/path/to/folder

Where the path points to the folder containing the emconfig.json.

-------------------------------------------------------------------------
Please don’t forget to reply, kudo, and accept as solution!
-------------------------------------------------------------------------

View solution in original post

carljohnsen
Visitor
Visitor
289 Views
Registered: ‎09-10-2019

That works, thank you! and thank you for the quick response!

0 Kudos