From 2b61f516ef9775502da6dfcc8b21e79cf8482c87 Mon Sep 17 00:00:00 2001
From: Tristan Gingold <tgingold@free.fr>
Date: Fri, 1 Dec 2017 18:46:04 +0100
Subject: python: generate more declarations.

---
 src/vhdl/iirs.ads           | 12 ++++++++++--
 src/vhdl/python/pnodespy.py |  2 ++
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/vhdl/iirs.ads b/src/vhdl/iirs.ads
index 5501894a1..bca85d281 100644
--- a/src/vhdl/iirs.ads
+++ b/src/vhdl/iirs.ads
@@ -4372,9 +4372,17 @@ package Iirs is
    subtype Iir_Out_Modes is Iir_Mode range Iir_Out_Mode .. Iir_Inout_Mode;
    subtype Iir_Parameter_Modes is Iir_Mode range Iir_Out_Mode .. Iir_In_Mode;
 
-   type Iir_Delay_Mechanism is (Iir_Inertial_Delay, Iir_Transport_Delay);
+   type Iir_Delay_Mechanism is
+     (
+      Iir_Inertial_Delay,
+      Iir_Transport_Delay
+     );
 
-   type Iir_Direction is (Iir_To, Iir_Downto);
+   type Iir_Direction is
+     (
+      Iir_To,
+      Iir_Downto
+     );
 
    --  LRM93 2.7 (conformance rules).
    --  To keep this simple, the layout is stored as a bit-string.
diff --git a/src/vhdl/python/pnodespy.py b/src/vhdl/python/pnodespy.py
index 3f3dfb4ee..4c8353fca 100755
--- a/src/vhdl/python/pnodespy.py
+++ b/src/vhdl/python/pnodespy.py
@@ -120,6 +120,8 @@ def do_libghdl_iirs():
     read_spec_enum('Iir_Mode', 'Iir_', 'Iir_Mode')
     read_spec_enum('Iir_Staticness', '', 'Iir_Staticness')
     read_spec_enum('Iir_Constraint', '', 'Iir_Constraint')
+    read_spec_enum('Iir_Direction', 'Iir_', 'Iir_Direction')
+    read_spec_enum('Iir_Delay_Mechanism', 'Iir_', 'Iir_Delay_Mechanism')
     read_spec_enum('Date_State_Type', 'Date_', 'Date_State')
     read_spec_enum('Iir_Predefined_Functions',
                    'Iir_Predefined_', 'Iir_Predefined')
-- 
cgit v1.2.3