aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/translate/translation.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-12-22 06:42:30 +0100
committerTristan Gingold <tgingold@free.fr>2018-01-02 12:11:19 +0100
commitd9e4e63079c7c4b5b965414a53679d502fe4a233 (patch)
tree0ee9dfa838f5572a5caa5b253c23940513efb44a /src/vhdl/translate/translation.adb
parentbefe6faf5f902f58e8d64c423526e86337a2b025 (diff)
downloadghdl-d9e4e63079c7c4b5b965414a53679d502fe4a233.tar.gz
ghdl-d9e4e63079c7c4b5b965414a53679d502fe4a233.tar.bz2
ghdl-d9e4e63079c7c4b5b965414a53679d502fe4a233.zip
WIP: define ghdl_sizes_type.
Diffstat (limited to 'src/vhdl/translate/translation.adb')
-rw-r--r--src/vhdl/translate/translation.adb18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/vhdl/translate/translation.adb b/src/vhdl/translate/translation.adb
index c6ef271fa..86497bae5 100644
--- a/src/vhdl/translate/translation.adb
+++ b/src/vhdl/translate/translation.adb
@@ -508,6 +508,24 @@ package body Translation is
New_Type_Decl
(Get_Identifier ("__ghdl_bool_array_ptr"), Ghdl_Bool_Array_Ptr);
+ -- Create:
+ -- type __ghdl_sizes_type is record
+ -- size_val : ghdl_index_type;
+ -- size_sig : ghdl_index_type;
+ -- end record;
+ declare
+ Constr : O_Element_List;
+ begin
+ Start_Record_Type (Constr);
+ New_Record_Field (Constr, Ghdl_Sizes_Val,
+ Get_Identifier ("size_val"), Ghdl_Index_Type);
+ New_Record_Field (Constr, Ghdl_Sizes_Sig,
+ Get_Identifier ("size_sig"), Ghdl_Index_Type);
+ Finish_Record_Type (Constr, Ghdl_Sizes_Type);
+ New_Type_Decl (Get_Identifier ("__ghdl_sizes_type"),
+ Ghdl_Sizes_Type);
+ end;
+
-- Create type ghdl_compare_type is (lt, eq, ge);
declare
Constr : O_Enum_List;