Commit 4fe83934 authored by Pawel Szostek's avatar Pawel Szostek

correct 32/64 bit paths for xilinxsim.ini

parent 9f9e715c
......@@ -128,6 +128,7 @@ class Env(dict):
def check_env(self, verbose=False):
print.set_verbose(verbose)
self["architecture"] = 64 if _64bit_architecture else 32
platform = sys.platform
print("Platform: %s" % platform)
......
......@@ -365,6 +365,9 @@ class XilinxsiminiReader(object):
# except KeyError:
# logging.error("Please set the environment variable HOST_PLATFORM")
# quit()
xilinx_ini_path = str(global_mod.env["xilinx"] + "/ISE/vhdl/hdp/lin")
xilinx_ini_path = str(os.path.join(global_mod.env["xilinx"],
"vhdl",
"hdp",
"lin" if global_mod.env["architecture"] is 32 else "lin64"))
# Ensure the path is absolute and normalized
return os.path.abspath(xilinx_ini_path)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment