aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/translate/trans-chap14.ads
blob: cdf279588bbaaee7958a5d2341a47085ae623f74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
--  Iir to ortho translator.
--  Copyright (C) 2002 - 2014 Tristan Gingold
--
--  GHDL is free software; you can redistribute it and/or modify it under
--  the terms of the GNU General Public License as published by the Free
--  Software Foundation; either version 2, or (at your option) any later
--  version.
--
--  GHDL is distributed in the hope that it will be useful, but WITHOUT ANY
--  WARRANTY; without even the implied warranty of MERCHANTABILITY or
--  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
--  for more details.
--
--  You should have received a copy of the GNU General Public License
--  along with GCC; see the file COPYING.  If not, write to the Free
--  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
--  02111-1307, USA.

package Trans.Chap14 is
   function Translate_Array_Attribute_To_Range (Expr : Iir) return Mnode;

   --  Read signal value FIELD of signal SIG.
   function Get_Signal_Value_Field
     (Sig : O_Enode; Sig_Type : Iir; Field : O_Fnode)
         return O_Lnode;

   function Get_Signal_Field (Sig : Mnode; Field : O_Fnode) return O_Lnode;

   function Translate_Length_Array_Attribute (Expr : Iir; Rtype : Iir)
                                                 return O_Enode;
   function Translate_Low_Array_Attribute (Expr : Iir) return O_Enode;
   function Translate_High_Array_Attribute (Expr : Iir) return O_Enode;
   function Translate_Range_Array_Attribute (Expr : Iir) return O_Lnode;
   function Translate_Right_Array_Attribute (Expr : Iir) return O_Enode;
   function Translate_Left_Array_Attribute (Expr : Iir) return O_Enode;
   function Translate_Ascending_Array_Attribute (Expr : Iir) return O_Enode;

   function Translate_High_Low_Type_Attribute
     (Atype : Iir; Is_High : Boolean) return O_Enode;

   --  Return the value of the left bound/right bound/direction of scalar
   --  type ATYPE.
   function Translate_Left_Type_Attribute (Atype : Iir) return O_Enode;
   function Translate_Right_Type_Attribute (Atype : Iir) return O_Enode;
   function Translate_Dir_Type_Attribute (Atype : Iir) return O_Enode;

   function Translate_Val_Attribute (Attr : Iir) return O_Enode;
   function Translate_Pos_Attribute (Attr : Iir; Res_Type : Iir)
                                        return O_Enode;

   function Translate_Succ_Pred_Attribute (Attr : Iir) return O_Enode;

   function Translate_Image_Attribute (Attr : Iir) return O_Enode;
   function Translate_Value_Attribute (Attr : Iir) return O_Enode;

   function Translate_Event_Attribute (Attr : Iir) return O_Enode;
   function Translate_Active_Attribute (Attr : Iir) return O_Enode;
   function Translate_Last_Value_Attribute (Attr : Iir) return O_Enode;

   function Translate_Last_Time_Attribute (Prefix : Iir; Field : O_Fnode)
                                              return O_Enode;

   function Translate_Driving_Value_Attribute (Attr : Iir) return O_Enode;

   function Translate_Driving_Attribute (Attr : Iir) return O_Enode;

   function Translate_Path_Instance_Name_Attribute (Attr : Iir)
                                                       return O_Enode;
end Trans.Chap14;