From 71cc7400561198ec1155f5980209cf79a5678074 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 23 May 2020 17:50:03 +0200 Subject: ghdlsynth.h: add API for attributes. For #1318 --- src/synth/ghdlsynth.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.3