aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-05-23 17:50:03 +0200
committerTristan Gingold <tgingold@free.fr>2020-05-23 17:52:22 +0200
commit71cc7400561198ec1155f5980209cf79a5678074 (patch)
treea2b5fac8316c7fcbd181677241aefb761cac7a7c
parent3dc2be548f3757cfb552d9af2921956f19713e2d (diff)
downloadghdl-71cc7400561198ec1155f5980209cf79a5678074.tar.gz
ghdl-71cc7400561198ec1155f5980209cf79a5678074.tar.bz2
ghdl-71cc7400561198ec1155f5980209cf79a5678074.zip
ghdlsynth.h: add API for attributes. For #1318
-rw-r--r--src/synth/ghdlsynth.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/synth/ghdlsynth.h b/src/synth/ghdlsynth.h
index 631fcd8ee..90c4f15f0 100644
--- a/src/synth/ghdlsynth.h
+++ b/src/synth/ghdlsynth.h
@@ -126,6 +126,13 @@ namespace GhdlSynth {
GHDLSYNTH_ADA_WRAPPER_WW(get_first_sink, Input, Net);
GHDLSYNTH_ADA_WRAPPER_WW(get_next_sink, Input, Input);
+ struct Attribute { unsigned int id; };
+ GHDLSYNTH_ADA_WRAPPER_WW(get_first_attribute, Attribute, Instance);
+ GHDLSYNTH_ADA_WRAPPER_WW(get_attribute_name, Name_Id, Attribute);
+ GHDLSYNTH_ADA_WRAPPER_DW(get_attribute_type, Param_Type, Attribute);
+ GHDLSYNTH_ADA_WRAPPER_WW(get_attribute_pval, Pval, Attribute);
+ GHDLSYNTH_ADA_WRAPPER_WW(get_attribute_next, Attribute, Attribute);
+
// Utils
#undef GHDLSYNTH_ADA_PREFIX
#define GHDLSYNTH_ADA_PREFIX(N) netlists__utils__##N