diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-01-25 18:18:30 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-01-25 18:19:10 +0100 |
commit | 6b81ec185f16791362ca770f391578c2a8b828f0 (patch) | |
tree | 18aa0ed76886f1efc84fbb2d97358f29d4787617 /src/synth/ghdlsynth.h | |
parent | ccc1c045a19345bc970a7ababb8ee0a260bd6194 (diff) | |
download | ghdl-6b81ec185f16791362ca770f391578c2a8b828f0.tar.gz ghdl-6b81ec185f16791362ca770f391578c2a8b828f0.tar.bz2 ghdl-6b81ec185f16791362ca770f391578c2a8b828f0.zip |
std_names: add gclk. For #1610
Regenerate python files.
Diffstat (limited to 'src/synth/ghdlsynth.h')
-rw-r--r-- | src/synth/ghdlsynth.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/synth/ghdlsynth.h b/src/synth/ghdlsynth.h index 90c4f15f0..abbb68f77 100644 --- a/src/synth/ghdlsynth.h +++ b/src/synth/ghdlsynth.h @@ -72,6 +72,13 @@ namespace GhdlSynth { return name_table__get_address (n.id); } + extern "C" unsigned name_table__get_identifier_with_len(const char *s, unsigned l); + inline Name_Id get_identifier(const char *s) { + Name_Id n; + n.id = name_table__get_identifier_with_len(s, strlen(s)); + return n; + } + struct Sname { unsigned int id; }; const Sname No_Sname = {0 }; |