diff options
author | eine <eine@users.noreply.github.com> | 2020-10-02 14:45:30 +0200 |
---|---|---|
committer | eine <eine@users.noreply.github.com> | 2020-10-02 14:47:01 +0200 |
commit | 6e00f79c7e80b15811528295a4b76fb79734b66e (patch) | |
tree | 14ad0d577fd39c8b38e43e70a17552059679ea6c | |
parent | a5b45005f091ab16c108279a0c15334efc0347d3 (diff) | |
download | ghdl-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>
-rw-r--r-- | src/ghdl.cc | 3 |
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; } } |