From 6e00f79c7e80b15811528295a4b76fb79734b66e Mon Sep 17 00:00:00 2001 From: eine Date: Fri, 2 Oct 2020 14:45:30 +0200 Subject: '%' is not supported by Xilinx ISE edif2ngc. Fix #134 Authored-By: Tristan Gingold --- src/ghdl.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ghdl.cc b/src/ghdl.cc index becce24..dcebf55 100644 --- a/src/ghdl.cc +++ b/src/ghdl.cc @@ -48,7 +48,8 @@ static std::string to_str(Sname name) res = '.' + string(get_cstr(get_sname_suffix(pfx))) + res; break; case Sname_Version: - res = '%' + stringf("%u", get_sname_version(pfx)) + res; + // Use '$' for versions. '%' is not supported by Xilinx ISE edif2ngc. + res = '$' + stringf("%u", get_sname_version(pfx)) + res; break; } } -- cgit v1.2.3