aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoreine <eine@users.noreply.github.com>2020-10-02 14:45:30 +0200
committereine <eine@users.noreply.github.com>2020-10-02 14:47:01 +0200
commit6e00f79c7e80b15811528295a4b76fb79734b66e (patch)
tree14ad0d577fd39c8b38e43e70a17552059679ea6c /src
parenta5b45005f091ab16c108279a0c15334efc0347d3 (diff)
downloadghdl-yosys-plugin-6e00f79c7e80b15811528295a4b76fb79734b66e.tar.gz
ghdl-yosys-plugin-6e00f79c7e80b15811528295a4b76fb79734b66e.tar.bz2
ghdl-yosys-plugin-6e00f79c7e80b15811528295a4b76fb79734b66e.zip
'%' is not supported by Xilinx ISE edif2ngc. Fix #134
Authored-By: Tristan Gingold <tgingold@free.fr>
Diffstat (limited to 'src')
-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;
}
}