aboutsummaryrefslogtreecommitdiffstats
path: root/src/ghdl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ghdl.cc')
-rw-r--r--src/ghdl.cc3
1 files changed, 2 insertions, 1 deletions
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;
}
}