diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-11-18 21:46:52 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-11-18 21:46:52 +0100 |
commit | e43666c176544ba8bac0d1b89b6ac8e19abd2c28 (patch) | |
tree | 31cd8078105063417f29abbb98fe92bc65813c65 | |
parent | 91f6952a77cd4174e96e4e6c086c3c2779dcdf84 (diff) | |
download | ghdl-yosys-plugin-e43666c176544ba8bac0d1b89b6ac8e19abd2c28.tar.gz ghdl-yosys-plugin-e43666c176544ba8bac0d1b89b6ac8e19abd2c28.tar.bz2 ghdl-yosys-plugin-e43666c176544ba8bac0d1b89b6ac8e19abd2c28.zip |
Use ':' instead of '$' for number names
-rw-r--r-- | src/ghdl.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ghdl.cc b/src/ghdl.cc index 05b319e..29b9e9a 100644 --- a/src/ghdl.cc +++ b/src/ghdl.cc @@ -78,8 +78,9 @@ static std::string to_str(Sname name) res = '.' + user_to_str(get_sname_suffix(pfx)) + res; break; case Sname_Version: - // Use '$' for versions. '%' is not supported by Xilinx ISE edif2ngc. - res = '$' + stringf("%u", get_sname_version(pfx)) + res; + // Use ':' for versions. '%' is not supported by Xilinx ISE edif2ngc. + // ('$' is boring with tcl scripts) + res = ':' + stringf("%u", get_sname_version(pfx)) + res; break; } } |