hexsha
stringlengths
40
40
size
int64
3
1.05M
ext
stringclasses
163 values
lang
stringclasses
53 values
max_stars_repo_path
stringlengths
3
945
max_stars_repo_name
stringlengths
4
112
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
sequencelengths
1
10
max_stars_count
float64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
945
max_issues_repo_name
stringlengths
4
113
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
sequencelengths
1
10
max_issues_count
float64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
945
max_forks_repo_name
stringlengths
4
113
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
sequencelengths
1
10
max_forks_count
float64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.05M
avg_line_length
float64
1
966k
max_line_length
int64
1
977k
alphanum_fraction
float64
0
1
2facafa5aab1af898090b08ae11b3ff93c3b6955
1,117
adb
Ada
src/gdb/gdb-8.3/gdb/testsuite/gdb.ada/dyn_arrayidx/foo.adb
alrooney/unum-sdk
bbccb10b0cd3500feccbbef22e27ea111c3d18eb
[ "Apache-2.0" ]
31
2018-08-01T21:25:24.000Z
2022-02-14T07:52:34.000Z
src/gdb/gdb-8.3/gdb/testsuite/gdb.ada/dyn_arrayidx/foo.adb
alrooney/unum-sdk
bbccb10b0cd3500feccbbef22e27ea111c3d18eb
[ "Apache-2.0" ]
40
2018-12-03T19:48:52.000Z
2021-03-10T06:34:26.000Z
src/gdb/gdb-8.3/gdb/testsuite/gdb.ada/dyn_arrayidx/foo.adb
alrooney/unum-sdk
bbccb10b0cd3500feccbbef22e27ea111c3d18eb
[ "Apache-2.0" ]
20
2018-11-16T21:19:22.000Z
2021-10-18T23:08:24.000Z
-- Copyright 2014-2019 Free Software Foundation, Inc. -- -- This program 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 3 of the License, or -- (at your option) any later version. -- -- This program 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 this program. If not, see <http://www.gnu.org/licenses/>. procedure Foo is function Range_Count (L, U : Integer) return Natural is type Array_Type is array (L .. U) of Natural; A : Array_Type := (others => 1); Result : Natural := 0; begin for I of A loop -- START Result := Result + I; end loop; return Result; end Range_Count; R2 : constant Natural := Range_Count (5, 10); begin null; end Foo;
33.848485
73
0.682184
2fb51a0c9ddd364741520c5fcdb0f5bb59e4c6db
6,140
ads
Ada
tools/scitools/conf/understand/ada/ada12/s-hibaen.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
1
2020-01-20T21:26:46.000Z
2020-01-20T21:26:46.000Z
tools/scitools/conf/understand/ada/ada12/s-hibaen.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
null
null
null
tools/scitools/conf/understand/ada/ada12/s-hibaen.ads
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . H I E _ B A C K _ E N D -- -- -- -- S p e c -- -- -- -- Copyright (C) 2001-2009, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package provides an interface used in HI-E mode to determine -- whether or not the back end can handle certain constructs in a manner -- that is consistent with certification requirements. -- The approach is to define entities which may or may not be present in -- a HI-E configured library. If the entity is present then the compiler -- operating in HI-E mode will allow the corresponding operation. If the -- entity is not present, the corresponding construct will be flagged as -- not permitted in High Integrity mode. -- The default version of this unit delivered with the HI-E compiler is -- configured in a manner appropriate for the target, but it is possible -- to reconfigure the run-time to change the settings as required. -- This unit is not used and never accessed by the compiler unless it is -- operating in HI-E mode, so the settings are irrelevant. However, we -- do include a standard version with all entities present in the standard -- run-time for use when pragma No_Run_Time is specified. package System.HIE_Back_End is type Dummy is null record; pragma Suppress_Initialization (Dummy); -- This is the type used for the entities below. No properties of this -- type are ever referenced, and in particular, the entities are defined -- as variables, but their values are never referenced HIE_64_Bit_Divides : Dummy; -- This entity controls whether the front end allows 64-bit integer -- divide operations, including the case where division of 32-bit -- fixed-point operands requires 64-bit arithmetic. This can safely -- be set as High_Integrity on 64-bit machines which provide this -- operation as a native instruction, but on most 32-bit machines -- a run time call (e.g. to __divdi3 in gcclib) is required. If a -- certifiable version of this routine is available, then setting -- this entity to High_Integrity with a pragma will cause appropriate -- calls to be generated, allowing 64-bit integer division operations. HIE_Long_Shifts : Dummy; -- This entity controls whether the front end allows generation of -- long shift instructions, i.e. shifts that operate on 64-bit values. -- Such shifts are required for the implementation of fixed-point -- types longer than 32 bits. This can safely be set as High_Integrity -- on 64-bit machines that provide this operation at the hardware level, -- but on some 32-bit machines a run time call is required. If there -- is a certifiable version available of the relevant run-time routines, -- then setting this entity to High_Integrity with a pragma will cause -- appropriate calls to be generated, allowing the declaration and use -- of fixed-point types longer than 32 bits. HIE_Aggregates : Dummy; -- In the general case, the use of aggregates may generate calls -- to run-time routines in the C library, including memset, memcpy, -- memmove, and bcopy. This entity can be set to High_Integrity with -- a pragma if certifiable versions of all these routines are available, -- in which case aggregates are permitted in HI-E mode. Otherwise the -- HI-E compiler will reject any use of aggregates. HIE_Composite_Assignments : Dummy; -- The assignment of composite objects other than small records and -- arrays whose size is 64-bits or less and is set by an explicit -- size clause may generate calls to memcpy, memmove, and bcopy. -- If certifiable versions of all these routines are available, then -- this entity may be set to High_Integrity using a pragma, in which -- case such assignments are permitted. Otherwise the HI-E compiler -- will reject any such composite assignments. end System.HIE_Back_End;
61.4
78
0.570684
069f7d8f7eb29faf0afe6921d1ea7d404972c783
24,479
adb
Ada
source/amf/uml/amf-internals-uml_create_object_actions.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/uml/amf-internals-uml_create_object_actions.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/uml/amf-internals-uml_create_object_actions.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with AMF.Elements; with AMF.Internals.Element_Collections; with AMF.Internals.Helpers; with AMF.Internals.Tables.UML_Attributes; with AMF.Visitors.UML_Iterators; with AMF.Visitors.UML_Visitors; with League.Strings.Internals; with Matreshka.Internals.Strings; package body AMF.Internals.UML_Create_Object_Actions is ------------------- -- Enter_Element -- ------------------- overriding procedure Enter_Element (Self : not null access constant UML_Create_Object_Action_Proxy; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control) is begin if Visitor in AMF.Visitors.UML_Visitors.UML_Visitor'Class then AMF.Visitors.UML_Visitors.UML_Visitor'Class (Visitor).Enter_Create_Object_Action (AMF.UML.Create_Object_Actions.UML_Create_Object_Action_Access (Self), Control); end if; end Enter_Element; ------------------- -- Leave_Element -- ------------------- overriding procedure Leave_Element (Self : not null access constant UML_Create_Object_Action_Proxy; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control) is begin if Visitor in AMF.Visitors.UML_Visitors.UML_Visitor'Class then AMF.Visitors.UML_Visitors.UML_Visitor'Class (Visitor).Leave_Create_Object_Action (AMF.UML.Create_Object_Actions.UML_Create_Object_Action_Access (Self), Control); end if; end Leave_Element; ------------------- -- Visit_Element -- ------------------- overriding procedure Visit_Element (Self : not null access constant UML_Create_Object_Action_Proxy; Iterator : in out AMF.Visitors.Abstract_Iterator'Class; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control) is begin if Iterator in AMF.Visitors.UML_Iterators.UML_Iterator'Class then AMF.Visitors.UML_Iterators.UML_Iterator'Class (Iterator).Visit_Create_Object_Action (Visitor, AMF.UML.Create_Object_Actions.UML_Create_Object_Action_Access (Self), Control); end if; end Visit_Element; -------------------- -- Get_Classifier -- -------------------- overriding function Get_Classifier (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.UML.Classifiers.UML_Classifier_Access is begin return AMF.UML.Classifiers.UML_Classifier_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.UML_Attributes.Internal_Get_Classifier (Self.Element))); end Get_Classifier; -------------------- -- Set_Classifier -- -------------------- overriding procedure Set_Classifier (Self : not null access UML_Create_Object_Action_Proxy; To : AMF.UML.Classifiers.UML_Classifier_Access) is begin AMF.Internals.Tables.UML_Attributes.Internal_Set_Classifier (Self.Element, AMF.Internals.Helpers.To_Element (AMF.Elements.Element_Access (To))); end Set_Classifier; ---------------- -- Get_Result -- ---------------- overriding function Get_Result (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.UML.Output_Pins.UML_Output_Pin_Access is begin return AMF.UML.Output_Pins.UML_Output_Pin_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.UML_Attributes.Internal_Get_Result (Self.Element))); end Get_Result; ---------------- -- Set_Result -- ---------------- overriding procedure Set_Result (Self : not null access UML_Create_Object_Action_Proxy; To : AMF.UML.Output_Pins.UML_Output_Pin_Access) is begin AMF.Internals.Tables.UML_Attributes.Internal_Set_Result (Self.Element, AMF.Internals.Helpers.To_Element (AMF.Elements.Element_Access (To))); end Set_Result; ----------------- -- Get_Context -- ----------------- overriding function Get_Context (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.UML.Classifiers.UML_Classifier_Access is begin return AMF.UML.Classifiers.UML_Classifier_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.UML_Attributes.Internal_Get_Context (Self.Element))); end Get_Context; --------------- -- Get_Input -- --------------- overriding function Get_Input (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.UML.Input_Pins.Collections.Ordered_Set_Of_UML_Input_Pin is begin return AMF.UML.Input_Pins.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Input (Self.Element))); end Get_Input; ------------------------------ -- Get_Is_Locally_Reentrant -- ------------------------------ overriding function Get_Is_Locally_Reentrant (Self : not null access constant UML_Create_Object_Action_Proxy) return Boolean is begin return AMF.Internals.Tables.UML_Attributes.Internal_Get_Is_Locally_Reentrant (Self.Element); end Get_Is_Locally_Reentrant; ------------------------------ -- Set_Is_Locally_Reentrant -- ------------------------------ overriding procedure Set_Is_Locally_Reentrant (Self : not null access UML_Create_Object_Action_Proxy; To : Boolean) is begin AMF.Internals.Tables.UML_Attributes.Internal_Set_Is_Locally_Reentrant (Self.Element, To); end Set_Is_Locally_Reentrant; ----------------------------- -- Get_Local_Postcondition -- ----------------------------- overriding function Get_Local_Postcondition (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint is begin return AMF.UML.Constraints.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Local_Postcondition (Self.Element))); end Get_Local_Postcondition; ---------------------------- -- Get_Local_Precondition -- ---------------------------- overriding function Get_Local_Precondition (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.UML.Constraints.Collections.Set_Of_UML_Constraint is begin return AMF.UML.Constraints.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Local_Precondition (Self.Element))); end Get_Local_Precondition; ---------------- -- Get_Output -- ---------------- overriding function Get_Output (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.UML.Output_Pins.Collections.Ordered_Set_Of_UML_Output_Pin is begin return AMF.UML.Output_Pins.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Output (Self.Element))); end Get_Output; ----------------- -- Get_Handler -- ----------------- overriding function Get_Handler (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.UML.Exception_Handlers.Collections.Set_Of_UML_Exception_Handler is begin return AMF.UML.Exception_Handlers.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Handler (Self.Element))); end Get_Handler; ------------------ -- Get_Activity -- ------------------ overriding function Get_Activity (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.UML.Activities.UML_Activity_Access is begin return AMF.UML.Activities.UML_Activity_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.UML_Attributes.Internal_Get_Activity (Self.Element))); end Get_Activity; ------------------ -- Set_Activity -- ------------------ overriding procedure Set_Activity (Self : not null access UML_Create_Object_Action_Proxy; To : AMF.UML.Activities.UML_Activity_Access) is begin AMF.Internals.Tables.UML_Attributes.Internal_Set_Activity (Self.Element, AMF.Internals.Helpers.To_Element (AMF.Elements.Element_Access (To))); end Set_Activity; ------------------ -- Get_In_Group -- ------------------ overriding function Get_In_Group (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.UML.Activity_Groups.Collections.Set_Of_UML_Activity_Group is begin return AMF.UML.Activity_Groups.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Group (Self.Element))); end Get_In_Group; --------------------------------- -- Get_In_Interruptible_Region -- --------------------------------- overriding function Get_In_Interruptible_Region (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.UML.Interruptible_Activity_Regions.Collections.Set_Of_UML_Interruptible_Activity_Region is begin return AMF.UML.Interruptible_Activity_Regions.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Interruptible_Region (Self.Element))); end Get_In_Interruptible_Region; ---------------------- -- Get_In_Partition -- ---------------------- overriding function Get_In_Partition (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.UML.Activity_Partitions.Collections.Set_Of_UML_Activity_Partition is begin return AMF.UML.Activity_Partitions.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Partition (Self.Element))); end Get_In_Partition; ---------------------------- -- Get_In_Structured_Node -- ---------------------------- overriding function Get_In_Structured_Node (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access is begin return AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.UML_Attributes.Internal_Get_In_Structured_Node (Self.Element))); end Get_In_Structured_Node; ---------------------------- -- Set_In_Structured_Node -- ---------------------------- overriding procedure Set_In_Structured_Node (Self : not null access UML_Create_Object_Action_Proxy; To : AMF.UML.Structured_Activity_Nodes.UML_Structured_Activity_Node_Access) is begin AMF.Internals.Tables.UML_Attributes.Internal_Set_In_Structured_Node (Self.Element, AMF.Internals.Helpers.To_Element (AMF.Elements.Element_Access (To))); end Set_In_Structured_Node; ------------------ -- Get_Incoming -- ------------------ overriding function Get_Incoming (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge is begin return AMF.UML.Activity_Edges.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Incoming (Self.Element))); end Get_Incoming; ------------------ -- Get_Outgoing -- ------------------ overriding function Get_Outgoing (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.UML.Activity_Edges.Collections.Set_Of_UML_Activity_Edge is begin return AMF.UML.Activity_Edges.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Outgoing (Self.Element))); end Get_Outgoing; ------------------------ -- Get_Redefined_Node -- ------------------------ overriding function Get_Redefined_Node (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.UML.Activity_Nodes.Collections.Set_Of_UML_Activity_Node is begin return AMF.UML.Activity_Nodes.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Redefined_Node (Self.Element))); end Get_Redefined_Node; ----------------- -- Get_Is_Leaf -- ----------------- overriding function Get_Is_Leaf (Self : not null access constant UML_Create_Object_Action_Proxy) return Boolean is begin return AMF.Internals.Tables.UML_Attributes.Internal_Get_Is_Leaf (Self.Element); end Get_Is_Leaf; ----------------- -- Set_Is_Leaf -- ----------------- overriding procedure Set_Is_Leaf (Self : not null access UML_Create_Object_Action_Proxy; To : Boolean) is begin AMF.Internals.Tables.UML_Attributes.Internal_Set_Is_Leaf (Self.Element, To); end Set_Is_Leaf; --------------------------- -- Get_Redefined_Element -- --------------------------- overriding function Get_Redefined_Element (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.UML.Redefinable_Elements.Collections.Set_Of_UML_Redefinable_Element is begin return AMF.UML.Redefinable_Elements.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Redefined_Element (Self.Element))); end Get_Redefined_Element; ------------------------------ -- Get_Redefinition_Context -- ------------------------------ overriding function Get_Redefinition_Context (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.UML.Classifiers.Collections.Set_Of_UML_Classifier is begin return AMF.UML.Classifiers.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Redefinition_Context (Self.Element))); end Get_Redefinition_Context; --------------------------- -- Get_Client_Dependency -- --------------------------- overriding function Get_Client_Dependency (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency is begin return AMF.UML.Dependencies.Collections.Wrap (AMF.Internals.Element_Collections.Wrap (AMF.Internals.Tables.UML_Attributes.Internal_Get_Client_Dependency (Self.Element))); end Get_Client_Dependency; ------------------------- -- Get_Name_Expression -- ------------------------- overriding function Get_Name_Expression (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.UML.String_Expressions.UML_String_Expression_Access is begin return AMF.UML.String_Expressions.UML_String_Expression_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.UML_Attributes.Internal_Get_Name_Expression (Self.Element))); end Get_Name_Expression; ------------------------- -- Set_Name_Expression -- ------------------------- overriding procedure Set_Name_Expression (Self : not null access UML_Create_Object_Action_Proxy; To : AMF.UML.String_Expressions.UML_String_Expression_Access) is begin AMF.Internals.Tables.UML_Attributes.Internal_Set_Name_Expression (Self.Element, AMF.Internals.Helpers.To_Element (AMF.Elements.Element_Access (To))); end Set_Name_Expression; ------------------- -- Get_Namespace -- ------------------- overriding function Get_Namespace (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.UML.Namespaces.UML_Namespace_Access is begin return AMF.UML.Namespaces.UML_Namespace_Access (AMF.Internals.Helpers.To_Element (AMF.Internals.Tables.UML_Attributes.Internal_Get_Namespace (Self.Element))); end Get_Namespace; ------------------------ -- Get_Qualified_Name -- ------------------------ overriding function Get_Qualified_Name (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.Optional_String is begin declare use type Matreshka.Internals.Strings.Shared_String_Access; Aux : constant Matreshka.Internals.Strings.Shared_String_Access := AMF.Internals.Tables.UML_Attributes.Internal_Get_Qualified_Name (Self.Element); begin if Aux = null then return (Is_Empty => True); else return (False, League.Strings.Internals.Create (Aux)); end if; end; end Get_Qualified_Name; ------------- -- Context -- ------------- overriding function Context (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.UML.Classifiers.UML_Classifier_Access is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Context unimplemented"); raise Program_Error with "Unimplemented procedure UML_Create_Object_Action_Proxy.Context"; return Context (Self); end Context; ------------------------ -- Is_Consistent_With -- ------------------------ overriding function Is_Consistent_With (Self : not null access constant UML_Create_Object_Action_Proxy; Redefinee : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access) return Boolean is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Is_Consistent_With unimplemented"); raise Program_Error with "Unimplemented procedure UML_Create_Object_Action_Proxy.Is_Consistent_With"; return Is_Consistent_With (Self, Redefinee); end Is_Consistent_With; ----------------------------------- -- Is_Redefinition_Context_Valid -- ----------------------------------- overriding function Is_Redefinition_Context_Valid (Self : not null access constant UML_Create_Object_Action_Proxy; Redefined : AMF.UML.Redefinable_Elements.UML_Redefinable_Element_Access) return Boolean is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Is_Redefinition_Context_Valid unimplemented"); raise Program_Error with "Unimplemented procedure UML_Create_Object_Action_Proxy.Is_Redefinition_Context_Valid"; return Is_Redefinition_Context_Valid (Self, Redefined); end Is_Redefinition_Context_Valid; ------------------------- -- All_Owning_Packages -- ------------------------- overriding function All_Owning_Packages (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.UML.Packages.Collections.Set_Of_UML_Package is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "All_Owning_Packages unimplemented"); raise Program_Error with "Unimplemented procedure UML_Create_Object_Action_Proxy.All_Owning_Packages"; return All_Owning_Packages (Self); end All_Owning_Packages; ----------------------------- -- Is_Distinguishable_From -- ----------------------------- overriding function Is_Distinguishable_From (Self : not null access constant UML_Create_Object_Action_Proxy; N : AMF.UML.Named_Elements.UML_Named_Element_Access; Ns : AMF.UML.Namespaces.UML_Namespace_Access) return Boolean is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Is_Distinguishable_From unimplemented"); raise Program_Error with "Unimplemented procedure UML_Create_Object_Action_Proxy.Is_Distinguishable_From"; return Is_Distinguishable_From (Self, N, Ns); end Is_Distinguishable_From; --------------- -- Namespace -- --------------- overriding function Namespace (Self : not null access constant UML_Create_Object_Action_Proxy) return AMF.UML.Namespaces.UML_Namespace_Access is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Namespace unimplemented"); raise Program_Error with "Unimplemented procedure UML_Create_Object_Action_Proxy.Namespace"; return Namespace (Self); end Namespace; end AMF.Internals.UML_Create_Object_Actions;
37.315549
118
0.623024
12c569ea4d29ddade0b6beb1c4b13cac77fa2635
2,202
ads
Ada
src/lumen-binary-endian.ads
darkestkhan/lumen
d560f322a8efccac7ed5d16db1d2d188245836ba
[ "0BSD" ]
null
null
null
src/lumen-binary-endian.ads
darkestkhan/lumen
d560f322a8efccac7ed5d16db1d2d188245836ba
[ "0BSD" ]
null
null
null
src/lumen-binary-endian.ads
darkestkhan/lumen
d560f322a8efccac7ed5d16db1d2d188245836ba
[ "0BSD" ]
null
null
null
-- Lumen.Binary.Endian -- Parent package for big- vs. little-endian -- byte-ordering services -- -- -- Chip Richards, NiEstu, Phoenix AZ, Summer 2010 -- This code is covered by the ISC License: -- -- Copyright © 2010, NiEstu -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear in all copies. -- -- The software is provided "as is" and the author disclaims all warranties -- with regard to this software including all implied warranties of -- merchantability and fitness. In no event shall the author be liable for any -- special, direct, indirect, or consequential damages or any damages -- whatsoever resulting from loss of use, data or profits, whether in an -- action of contract, negligence or other tortious action, arising out of or -- in connection with the use or performance of this software. package Lumen.Binary.Endian is pragma Elaborate_Body; --------------------------------------------------------------------------- type Byte_Order is (High_Order_First, Low_Order_First); --------------------------------------------------------------------------- -- This is the order defined as "network byte order" by the widely-used BSD -- networking routines, and by common practice on the Internet. Network_Byte_Order : constant Byte_Order := High_Order_First; --------------------------------------------------------------------------- -- Returns the current system's byte ordering configuration. function System_Byte_Order return Byte_Order; pragma Inline (System_Byte_Order); --------------------------------------------------------------------------- private -- This type is needed by the byte-order test in the Endian package body -- init code; otherwise, it could just go in the package body for -- Endian.Two_Byte type Two_Bytes is record B0 : Byte; B1 : Byte; end record; for Two_Bytes'Size use Short_Bits; for Two_Bytes use record B0 at 0 range 0 .. 7; B1 at 1 range 0 .. 7; end record; end Lumen.Binary.Endian;
35.516129
78
0.621253
1d840d5be940a26f1314fff6854325cdd75442e6
14,130
adb
Ada
src/traces/agate-traces__vcd.adb
Fabien-Chouteau/AGATE
cd8dbc54c1c70379c833e7cd710e2326ad6e9a91
[ "BSD-3-Clause" ]
3
2017-12-23T10:25:07.000Z
2021-06-09T13:47:19.000Z
src/traces/agate-traces__vcd.adb
Fabien-Chouteau/AGATE
cd8dbc54c1c70379c833e7cd710e2326ad6e9a91
[ "BSD-3-Clause" ]
null
null
null
src/traces/agate-traces__vcd.adb
Fabien-Chouteau/AGATE
cd8dbc54c1c70379c833e7cd710e2326ad6e9a91
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017-2020, Fabien Chouteau -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of the copyright holder nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ with AGATE.Traces_Output; use AGATE.Traces_Output; with AGATE.Timer; with AGATE_Types_Data.Traces; use AGATE_Types_Data.Traces; package body AGATE.Traces is Next_String_Token : String_Token := 0; Next_Wire_Token : Wire_Token := 0; Next_Reg_Token : Reg_Token := 0; Next_Event_Token : Event_Token := 0; Running_Task_Token : String_Token; Context_Switch_Token : Event_Token; Registration_Done : Boolean := False; procedure Initialize; procedure Put_Line (Str : String); procedure End_Of_Registration; function Timestamp (Now : Time := 0) return String; procedure Put_State_Change (Token : Reg_Token; Value : Word; Now : Time := 0); procedure Put_State_Change (Token : Wire_Token; Value : Boolean; Now : Time := 0); procedure Put_State_Change (Token : String_Token; Value : String; Now : Time := 0); procedure Put_State_Change (Token : Event_Token; Now : Time := 0); function Create return String_Token; function Create return Wire_Token; function Create return Reg_Token; function Create return Event_Token; function Image (Val : Natural) return String; function Image (Tok : String_Token) return String; function Image (Tok : Wire_Token) return String; function Image (Tok : Reg_Token) return String; function Image (Tok : Event_Token) return String; procedure Declare_Var (Tok : String_Token; Name : String); procedure Declare_Var (Tok : Wire_Token; Name : String); procedure Declare_Var (Tok : Reg_Token; Name : String); procedure Declare_Var (Tok : Event_Token; Name : String); function Clean (Name : String) return String; ---------------- -- Initialize -- ---------------- procedure Initialize is begin Traces_Output.Initialize ("agate_traces.vcd"); Put_Line ("$timescale 1 us $end"); Put_Line ("$scope module AGATE $end"); Running_Task_Token := Create; Declare_Var (Running_Task_Token, "Running_Task"); Context_Switch_Token := Create; Declare_Var (Context_Switch_Token, "Context_Switch"); end Initialize; -------------- -- Put_Line -- -------------- procedure Put_Line (Str : String) is To_Put : constant String := Str & ASCII.CR & ASCII.LF; begin if Traces_Output.Write (To_Put (To_Put'First)'Address, To_Put'Length) /= To_Put'Length then raise Program_Error; end if; end Put_Line; ------------------------- -- End_Of_Registration -- ------------------------- procedure End_Of_Registration is begin Put_Line ("$upscope $end"); Put_Line ("$enddefinitions $end"); -- Print initial values for X in Wire_Token'First .. Next_Wire_Token - 1 loop Put_Line ("#0 0" & Image (X)); end loop; for X in Reg_Token'First .. Next_Reg_Token - 1 loop Put_Line ("#0 b0 " & Image (X)); end loop; Registration_Done := True; end End_Of_Registration; --------------- -- Timestamp -- --------------- function Timestamp (Now : Time := 0) return String is T : constant Time := (if Now /= 0 then Now else Timer.Clock); Img : constant String := T'Img; begin return "#" & Img (Img'First + 1 .. Img'Last); end Timestamp; ---------------------- -- Put_State_Change -- ---------------------- procedure Put_State_Change (Token : Reg_Token; Value : Word; Now : Time := 0) is Bin : String (1 .. 32); Val : Word := Value; begin if not Registration_Done then End_Of_Registration; end if; for C of reverse Bin loop C := (if (Val and 1) = 0 then '0' else '1'); Val := Shift_Right (Val, 1); end loop; -- TODO: print the boolean value of the integer (e.g. b100101) Put_Line (Timestamp (Now) & " b" & Bin & " " & Image (Token)); end Put_State_Change; ---------------------- -- Put_State_Change -- ---------------------- procedure Put_State_Change (Token : Wire_Token; Value : Boolean; Now : Time := 0) is begin if not Registration_Done then End_Of_Registration; end if; Put_Line (Timestamp (Now) & (if Value then " 1" else " 0") & Image (Token)); end Put_State_Change; ---------------------- -- Put_State_Change -- ---------------------- procedure Put_State_Change (Token : String_Token; Value : String; Now : Time := 0) is begin if not Registration_Done then End_Of_Registration; end if; Put_Line (Timestamp (Now) & " s" & Value & " " & Image (Token)); end Put_State_Change; ---------------------- -- Put_State_Change -- ---------------------- procedure Put_State_Change (Token : Event_Token; Now : Time := 0) is begin if not Registration_Done then End_Of_Registration; end if; Put_Line (Timestamp (Now) & " x" & Image (Token)); end Put_State_Change; ----------- -- Clean -- ----------- function Clean (Name : String) return String is Ret : String := Name; begin for C of Ret loop if C in ASCII.NUL .. ' ' then C := '_'; end if; end loop; return Ret; end Clean; ------------ -- Create -- ------------ function Create return String_Token is Ret : constant String_Token := Next_String_Token; begin Next_String_Token := Next_String_Token + 1; return Ret; end Create; ------------ -- Create -- ------------ function Create return Wire_Token is Ret : constant Wire_Token := Next_Wire_Token; begin Next_Wire_Token := Next_Wire_Token + 1; return Ret; end Create; ------------ -- Create -- ------------ function Create return Reg_Token is Ret : constant Reg_Token := Next_Reg_Token; begin Next_Reg_Token := Next_Reg_Token + 1; return Ret; end Create; ------------ -- Create -- ------------ function Create return Event_Token is Ret : constant Event_Token := Next_Event_Token; begin Next_Event_Token := Next_Event_Token + 1; return Ret; end Create; ----------- -- Image -- ----------- function Image (Val : Natural) return String is Ret : constant String := Val'Img; begin return Ret (Ret'First + 1 .. Ret'Last); end Image; ----------- -- Image -- ----------- function Image (Tok : String_Token) return String is ("s" & Image (Natural (Tok))); ----------- -- Image -- ----------- function Image (Tok : Wire_Token) return String is ("w" & Image (Natural (Tok))); ----------- -- Image -- ----------- function Image (Tok : Reg_Token) return String is ("r" & Image (Natural (Tok))); ----------- -- Image -- ----------- function Image (Tok : Event_Token) return String is ("e" & Image (Natural (Tok))); ----------------- -- Declare_Var -- ----------------- procedure Declare_Var (Tok : String_Token; Name : String) is begin Put_Line ("$var string 1 " & Image (Tok) & " " & Name & " $end"); end Declare_Var; ----------------- -- Declare_Var -- ----------------- procedure Declare_Var (Tok : Wire_Token; Name : String) is begin Put_Line ("$var wire 1 " & Image (Tok) & " " & Name & " $end"); end Declare_Var; ----------------- -- Declare_Var -- ----------------- procedure Declare_Var (Tok : Reg_Token; Name : String) is begin Put_Line ("$var reg 32 " & Image (Tok) & " " & Name & " $end"); end Declare_Var; ----------------- -- Declare_Var -- ----------------- procedure Declare_Var (Tok : Event_Token; Name : String) is begin Put_Line ("$var event 1 " & Image (Tok) & " " & Name & " $end"); end Declare_Var; -------------- -- Register -- -------------- procedure Register (ID : Task_ID; Name : String) is begin ID.Trace_Data.Running := Create; ID.Trace_Data.Status := Create; ID.Trace_Data.Prio := Create; Declare_Var (ID.Trace_Data.Running, Clean (Name)); Declare_Var (ID.Trace_Data.Status, Clean (Name) & "_Status"); Declare_Var (ID.Trace_Data.Prio, Clean (Name) & "_Priority"); end Register; ------------ -- Resume -- ------------ procedure Resume (ID : Task_ID) is begin Put_State_Change (ID.Trace_Data.Status, Clean (Image (ID.Status))); Put_State_Change (ID.Trace_Data.Prio, Word (ID.Current_Prio)); end Resume; ------------- -- Suspend -- ------------- procedure Suspend (ID : Task_ID) is begin Put_State_Change (ID.Trace_Data.Status, Clean (Image (ID.Status))); end Suspend; ----------- -- Fault -- ----------- procedure Fault (ID : Task_ID) is begin Put_State_Change (ID.Trace_Data.Status, Clean (Image (ID.Status))); end Fault; ------------- -- Running -- ------------- procedure Running (ID : Task_ID) is begin Put_State_Change (ID.Trace_Data.Status, Clean (Image (ID.Status))); end Running; --------------------- -- Change_Priority -- --------------------- procedure Change_Priority (ID : Task_ID; New_Prio : Internal_Task_Priority) is begin Put_State_Change (ID.Trace_Data.Prio, Word (New_Prio)); end Change_Priority; -------------------- -- Context_Switch -- -------------------- procedure Context_Switch (Old, Next : Task_ID) is Now : constant Time := Timer.Clock; begin Put_State_Change (Old.Trace_Data.Running, False, Now); Put_State_Change (Next.Trace_Data.Running, True, Now); Put_State_Change (Running_Task_Token, Clean (Next.Name), Now); Put_State_Change (Context_Switch_Token, Now); end Context_Switch; -------------- -- Register -- -------------- procedure Register (ID : Semaphore_ID; Name : String) is begin ID.Trace_Data.Token := Create; Declare_Var (ID.Trace_Data.Token, Clean (Name)); end Register; ------------------- -- Value_Changed -- ------------------- procedure Value_Changed (ID : Semaphore_ID; Count : Semaphore_Count; By : Task_ID) is pragma Unreferenced (By); begin Put_State_Change (ID.Trace_Data.Token, Word (Count)); end Value_Changed; -------------- -- Register -- -------------- procedure Register (ID : Mutex_ID; Name : String) is begin ID.Trace_Data.Token := Create; Declare_Var (ID.Trace_Data.Token, Clean (Name) & "_Owner"); end Register; ---------- -- Lock -- ---------- procedure Lock (ID : Mutex_ID; By : Task_ID) is begin Put_State_Change (ID.Trace_Data.Token, Clean (By.Name)); end Lock; ------------- -- Release -- ------------- procedure Release (ID : Mutex_ID; By : Task_ID) is pragma Unreferenced (By); begin Put_State_Change (ID.Trace_Data.Token, "unlocked"); end Release; -------------- -- Shutdown -- -------------- procedure Shutdown is begin Traces_Output.Finalize; end Shutdown; begin Initialize; end AGATE.Traces;
25.277281
78
0.526256
1c526c9966e91592650e8f9fd601b8c923b3cac5
154
ada
Ada
bugs/bug22a.ada
daveshields/AdaEd
57daecfb7ccadfd9aaf13b4d54f51065affbe599
[ "BSD-4-Clause", "BSD-3-Clause" ]
3
2019-05-11T04:11:33.000Z
2021-04-18T14:55:43.000Z
bugs/bug22a.ada
daveshields/AdaEd
57daecfb7ccadfd9aaf13b4d54f51065affbe599
[ "BSD-4-Clause", "BSD-3-Clause" ]
null
null
null
bugs/bug22a.ada
daveshields/AdaEd
57daecfb7ccadfd9aaf13b4d54f51065affbe599
[ "BSD-4-Clause", "BSD-3-Clause" ]
2
2016-10-29T22:52:56.000Z
2021-04-18T14:55:45.000Z
package Test1 is Question: constant string := "How Many Characters?"; Ask_Twice: constant string := Question & Question; end Test1;
22
60
0.649351
2fbd0d48124e9ce5dcfb738760f08acecea5142d
4,865
ads
Ada
source/amf/uml/amf-uml-messages-collections.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/uml/amf-uml-messages-collections.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/uml/amf-uml-messages-collections.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ with AMF.Generic_Collections; package AMF.UML.Messages.Collections is pragma Preelaborate; package UML_Message_Collections is new AMF.Generic_Collections (UML_Message, UML_Message_Access); type Set_Of_UML_Message is new UML_Message_Collections.Set with null record; Empty_Set_Of_UML_Message : constant Set_Of_UML_Message; type Ordered_Set_Of_UML_Message is new UML_Message_Collections.Ordered_Set with null record; Empty_Ordered_Set_Of_UML_Message : constant Ordered_Set_Of_UML_Message; type Bag_Of_UML_Message is new UML_Message_Collections.Bag with null record; Empty_Bag_Of_UML_Message : constant Bag_Of_UML_Message; type Sequence_Of_UML_Message is new UML_Message_Collections.Sequence with null record; Empty_Sequence_Of_UML_Message : constant Sequence_Of_UML_Message; private Empty_Set_Of_UML_Message : constant Set_Of_UML_Message := (UML_Message_Collections.Set with null record); Empty_Ordered_Set_Of_UML_Message : constant Ordered_Set_Of_UML_Message := (UML_Message_Collections.Ordered_Set with null record); Empty_Bag_Of_UML_Message : constant Bag_Of_UML_Message := (UML_Message_Collections.Bag with null record); Empty_Sequence_Of_UML_Message : constant Sequence_Of_UML_Message := (UML_Message_Collections.Sequence with null record); end AMF.UML.Messages.Collections;
52.880435
78
0.502775
59c502811ca0b8a910fc2cbcd891486a8500c852
6,967
adb
Ada
tests/kat/hash_runner.adb
damaki/libkeccak
d06217e525f7927380690d6c37b485bdbe8aa96e
[ "BSD-3-Clause" ]
26
2015-09-20T17:52:38.000Z
2021-07-29T21:47:04.000Z
tests/kat/hash_runner.adb
damaki/libkeccak
d06217e525f7927380690d6c37b485bdbe8aa96e
[ "BSD-3-Clause" ]
3
2019-03-12T16:01:36.000Z
2020-05-23T13:06:43.000Z
tests/kat/hash_runner.adb
damaki/libkeccak
d06217e525f7927380690d6c37b485bdbe8aa96e
[ "BSD-3-Clause" ]
2
2019-04-15T18:02:19.000Z
2020-11-22T11:22:18.000Z
------------------------------------------------------------------------------- -- Copyright (c) 2019, Daniel King -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- * Redistributions of source code must retain the above copyright -- notice, this list of conditions and the following disclaimer. -- * Redistributions in binary form must reproduce the above copyright -- notice, this list of conditions and the following disclaimer in the -- documentation and/or other materials provided with the distribution. -- * The name of the copyright holder may not be used to endorse or promote -- Products derived from this software without specific prior written -- permission. -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY -- DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -- ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -- THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------- with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Text_IO; with Ada.Unchecked_Deallocation; with Interfaces; use Interfaces; with Keccak.Types; with Test_Vectors; use Test_Vectors; package body Hash_Runner is procedure Free is new Ada.Unchecked_Deallocation (Object => Keccak.Types.Byte_Array, Name => Byte_Array_Access); procedure Run_Tests (File_Name : in String; Align_Bits : in Boolean; Num_Passed : out Natural; Num_Failed : out Natural) is use type Keccak.Types.Byte_Array; package Integer_IO is new Ada.Text_IO.Integer_IO(Integer); Len_Key : constant Unbounded_String := To_Unbounded_String ("Len"); Msg_Key : constant Unbounded_String := To_Unbounded_String ("Msg"); Repeat_Key : constant Unbounded_String := To_Unbounded_String ("Repeat"); Text_Key : constant Unbounded_String := To_Unbounded_String ("Text"); MD_Key : constant Unbounded_String := To_Unbounded_String ("MD"); Schema : Test_Vectors.Schema_Maps.Map; Tests : Test_Vectors.Lists.List; Ctx : Hash.Context; Digest : Hash.Digest_Type; Msg : Byte_Array_Access; Len : Natural; begin Num_Passed := 0; Num_Failed := 0; -- Setup schema to support two types of test vector files: -- Long or ShortMsgKAT containing: "Len", "Msg", and "MD" fields; and -- ExtremelyLongMsgKAT containing: "Repeat", "Text", and "MD" fields. Schema.Insert (Key => Len_Key, New_Item => Schema_Entry'(VType => Integer_Type, Required => False, Is_List => False)); Schema.Insert (Key => Msg_Key, New_Item => Schema_Entry'(VType => Hex_Array_Type, Required => False, Is_List => False)); Schema.Insert (Key => Repeat_Key, New_Item => Schema_Entry'(VType => Integer_Type, Required => False, Is_List => False)); Schema.Insert (Key => Text_Key, New_Item => Schema_Entry'(VType => String_Type, Required => False, Is_List => False)); Schema.Insert (Key => MD_Key, New_Item => Schema_Entry'(VType => Hex_Array_Type, Required => True, Is_List => False)); -- Load the test file using the file name given on the command line Ada.Text_IO.Put_Line("Loading file: " & File_Name); Test_Vectors.Load (File_Name => File_Name, Schema => Schema, Vectors_List => Tests); Ada.Text_IO.Put ("Running "); Integer_IO.Put (Integer (Tests.Length), Width => 0); Ada.Text_IO.Put_Line (" tests ..."); -- Run each test. for C of Tests loop Hash.Init(Ctx); if C.Contains (Len_Key) then -- Test vector contains "Len", "Msg", and "MD" fields Len := C.Element (Len_Key).First_Element.Int; if Len > 0 then Msg := new Keccak.Types.Byte_Array'(C.Element (Msg_Key).First_Element.Hex.all); if Align_Bits and Len mod 8 /= 0 and Msg.all'Length > 0 then -- Align last byte on the least significant bit Msg.all(Msg.all'Last) := Shift_Right(Msg.all(Msg.all'Last), 8 - (Len mod 8)); end if; Hash.Update(Ctx, Msg.all, Len); Free (Msg); end if; else -- Assume test vector defines "Repeat", "Text", and "MD" fields Msg := String_To_Byte_Array (To_String (C.Element (Text_Key).First_Element.Str)); for I in 1 .. C.Element (Repeat_Key).First_Element.Int loop Hash.Update(Ctx, Msg.all); end loop; Free (Msg); end if; Hash.Final(Ctx, Digest); if Digest = C.Element(MD_Key).First_Element.Hex.all then Num_Passed := Num_Passed + 1; else Num_Failed := Num_Failed + 1; -- Display a message on failure to help with debugging. if C.Contains (Len_Key) then Ada.Text_IO.Put("FAILURE (Msg bit-len: "); Integer_IO.Put(C.Element (Len_Key).First_Element.Int, Width => 0); Ada.Text_IO.Put_Line(")"); else Ada.Text_IO.Put_Line("FAILURE:"); end if; Ada.Text_IO.Put(" Expected MD: "); Ada.Text_IO.Put(Byte_Array_To_String (C.Element (MD_Key).First_Element.Hex.all)); Ada.Text_IO.New_Line; Ada.Text_IO.Put(" Actual MD: "); Ada.Text_IO.Put(Byte_Array_To_String(Digest)); Ada.Text_IO.New_Line; end if; end loop; end Run_Tests; end Hash_Runner;
40.505814
95
0.563227
0638f79a3344c1ebd24d3fb349815da33718ff7f
2,133
adb
Ada
3-mid/opengl/source/platform/osmesa/opengl-surface.adb
charlie5/lace
e9b7dc751d500ff3f559617a6fc3089ace9dc134
[ "0BSD" ]
20
2015-11-04T09:23:59.000Z
2022-01-14T10:21:42.000Z
3-mid/opengl/source/platform/osmesa/opengl-surface.adb
charlie5/lace-alire
9ace9682cf4daac7adb9f980c2868d6225b8111c
[ "0BSD" ]
2
2015-11-04T17:05:56.000Z
2015-12-08T03:16:13.000Z
3-mid/opengl/source/platform/osmesa/opengl-surface.adb
charlie5/lace-alire
9ace9682cf4daac7adb9f980c2868d6225b8111c
[ "0BSD" ]
1
2015-12-07T12:53:52.000Z
2015-12-07T12:53:52.000Z
with openGL.Context, interfaces.C; package body openGL.Surface is use -- Glx, Interfaces; -- visual_attribs : array (Positive range <>) of aliased C.int := (GLX_X_RENDERABLE, 1, -- GLX_DRAWABLE_TYPE, GLX_WINDOW_BIT, -- GLX_RENDER_TYPE, GLX_RGBA_BIT, -- GLX_X_VISUAL_TYPE, GLX_TRUE_COLOR, -- GLX_RED_SIZE, 8, -- GLX_GREEN_SIZE, 8, -- GLX_BLUE_SIZE, 8, -- GLX_ALPHA_SIZE, 8, -- GLX_DEPTH_SIZE, 24, -- GLX_STENCIL_SIZE, 8, -- GLX_DOUBLEBUFFER, 1, -- -- GLX_SAMPLE_BUFFERS , 1, -- -- GLX_SAMPLES , 4, -- 0 -- ); procedure define (Self : in out Item; surface_Profile : in openGL.surface_Profile.item'Class; Display : in openGL.Display.Item; Window_Id : in Natural) is pragma Unreferenced (Window_Id); the_surface_Profile : constant openGL.surface_Profile.item'Class := surface_Profile; begin Self.Display := Display; end define; -- Operations -- procedure swap_Buffers (Self : in Item) is begin null; end swap_Buffers; end openGL.Surface;
40.245283
107
0.325832
0ba5cb8d2bf59b343bd452fe9a11ec711a398a77
9,312
adb
Ada
source/nodes/program-nodes-procedure_instantiations.adb
optikos/oasis
9f64d46d26d964790d69f9db681c874cfb3bf96d
[ "MIT" ]
null
null
null
source/nodes/program-nodes-procedure_instantiations.adb
optikos/oasis
9f64d46d26d964790d69f9db681c874cfb3bf96d
[ "MIT" ]
null
null
null
source/nodes/program-nodes-procedure_instantiations.adb
optikos/oasis
9f64d46d26d964790d69f9db681c874cfb3bf96d
[ "MIT" ]
2
2019-09-14T23:18:50.000Z
2019-10-02T10:11:40.000Z
-- Copyright (c) 2019 Maxim Reznik <[email protected]> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Nodes.Procedure_Instantiations is function Create (Not_Token : Program.Lexical_Elements.Lexical_Element_Access; Overriding_Token : Program.Lexical_Elements.Lexical_Element_Access; Procedure_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Name : not null Program.Elements.Defining_Names .Defining_Name_Access; Is_Token : not null Program.Lexical_Elements .Lexical_Element_Access; New_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Generic_Procedure_Name : not null Program.Elements.Expressions .Expression_Access; Left_Bracket_Token : Program.Lexical_Elements.Lexical_Element_Access; Parameters : Program.Elements.Parameter_Associations .Parameter_Association_Vector_Access; Right_Bracket_Token : Program.Lexical_Elements.Lexical_Element_Access; With_Token : Program.Lexical_Elements.Lexical_Element_Access; Aspects : Program.Elements.Aspect_Specifications .Aspect_Specification_Vector_Access; Semicolon_Token : not null Program.Lexical_Elements .Lexical_Element_Access) return Procedure_Instantiation is begin return Result : Procedure_Instantiation := (Not_Token => Not_Token, Overriding_Token => Overriding_Token, Procedure_Token => Procedure_Token, Name => Name, Is_Token => Is_Token, New_Token => New_Token, Generic_Procedure_Name => Generic_Procedure_Name, Left_Bracket_Token => Left_Bracket_Token, Parameters => Parameters, Right_Bracket_Token => Right_Bracket_Token, With_Token => With_Token, Aspects => Aspects, Semicolon_Token => Semicolon_Token, Enclosing_Element => null) do Initialize (Result); end return; end Create; function Create (Name : not null Program.Elements.Defining_Names .Defining_Name_Access; Generic_Procedure_Name : not null Program.Elements.Expressions .Expression_Access; Parameters : Program.Elements.Parameter_Associations .Parameter_Association_Vector_Access; Aspects : Program.Elements.Aspect_Specifications .Aspect_Specification_Vector_Access; Is_Part_Of_Implicit : Boolean := False; Is_Part_Of_Inherited : Boolean := False; Is_Part_Of_Instance : Boolean := False; Has_Not : Boolean := False; Has_Overriding : Boolean := False) return Implicit_Procedure_Instantiation is begin return Result : Implicit_Procedure_Instantiation := (Name => Name, Generic_Procedure_Name => Generic_Procedure_Name, Parameters => Parameters, Aspects => Aspects, Is_Part_Of_Implicit => Is_Part_Of_Implicit, Is_Part_Of_Inherited => Is_Part_Of_Inherited, Is_Part_Of_Instance => Is_Part_Of_Instance, Has_Not => Has_Not, Has_Overriding => Has_Overriding, Enclosing_Element => null) do Initialize (Result); end return; end Create; overriding function Name (Self : Base_Procedure_Instantiation) return not null Program.Elements.Defining_Names.Defining_Name_Access is begin return Self.Name; end Name; overriding function Generic_Procedure_Name (Self : Base_Procedure_Instantiation) return not null Program.Elements.Expressions.Expression_Access is begin return Self.Generic_Procedure_Name; end Generic_Procedure_Name; overriding function Parameters (Self : Base_Procedure_Instantiation) return Program.Elements.Parameter_Associations .Parameter_Association_Vector_Access is begin return Self.Parameters; end Parameters; overriding function Aspects (Self : Base_Procedure_Instantiation) return Program.Elements.Aspect_Specifications .Aspect_Specification_Vector_Access is begin return Self.Aspects; end Aspects; overriding function Not_Token (Self : Procedure_Instantiation) return Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Not_Token; end Not_Token; overriding function Overriding_Token (Self : Procedure_Instantiation) return Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Overriding_Token; end Overriding_Token; overriding function Procedure_Token (Self : Procedure_Instantiation) return not null Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Procedure_Token; end Procedure_Token; overriding function Is_Token (Self : Procedure_Instantiation) return not null Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Is_Token; end Is_Token; overriding function New_Token (Self : Procedure_Instantiation) return not null Program.Lexical_Elements.Lexical_Element_Access is begin return Self.New_Token; end New_Token; overriding function Left_Bracket_Token (Self : Procedure_Instantiation) return Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Left_Bracket_Token; end Left_Bracket_Token; overriding function Right_Bracket_Token (Self : Procedure_Instantiation) return Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Right_Bracket_Token; end Right_Bracket_Token; overriding function With_Token (Self : Procedure_Instantiation) return Program.Lexical_Elements.Lexical_Element_Access is begin return Self.With_Token; end With_Token; overriding function Semicolon_Token (Self : Procedure_Instantiation) return not null Program.Lexical_Elements.Lexical_Element_Access is begin return Self.Semicolon_Token; end Semicolon_Token; overriding function Has_Not (Self : Procedure_Instantiation) return Boolean is begin return Self.Not_Token.Assigned; end Has_Not; overriding function Has_Overriding (Self : Procedure_Instantiation) return Boolean is begin return Self.Overriding_Token.Assigned; end Has_Overriding; overriding function Is_Part_Of_Implicit (Self : Implicit_Procedure_Instantiation) return Boolean is begin return Self.Is_Part_Of_Implicit; end Is_Part_Of_Implicit; overriding function Is_Part_Of_Inherited (Self : Implicit_Procedure_Instantiation) return Boolean is begin return Self.Is_Part_Of_Inherited; end Is_Part_Of_Inherited; overriding function Is_Part_Of_Instance (Self : Implicit_Procedure_Instantiation) return Boolean is begin return Self.Is_Part_Of_Instance; end Is_Part_Of_Instance; overriding function Has_Not (Self : Implicit_Procedure_Instantiation) return Boolean is begin return Self.Has_Not; end Has_Not; overriding function Has_Overriding (Self : Implicit_Procedure_Instantiation) return Boolean is begin return Self.Has_Overriding; end Has_Overriding; procedure Initialize (Self : aliased in out Base_Procedure_Instantiation'Class) is begin Set_Enclosing_Element (Self.Name, Self'Unchecked_Access); Set_Enclosing_Element (Self.Generic_Procedure_Name, Self'Unchecked_Access); for Item in Self.Parameters.Each_Element loop Set_Enclosing_Element (Item.Element, Self'Unchecked_Access); end loop; for Item in Self.Aspects.Each_Element loop Set_Enclosing_Element (Item.Element, Self'Unchecked_Access); end loop; null; end Initialize; overriding function Is_Procedure_Instantiation_Element (Self : Base_Procedure_Instantiation) return Boolean is pragma Unreferenced (Self); begin return True; end Is_Procedure_Instantiation_Element; overriding function Is_Declaration_Element (Self : Base_Procedure_Instantiation) return Boolean is pragma Unreferenced (Self); begin return True; end Is_Declaration_Element; overriding procedure Visit (Self : not null access Base_Procedure_Instantiation; Visitor : in out Program.Element_Visitors.Element_Visitor'Class) is begin Visitor.Procedure_Instantiation (Self); end Visit; overriding function To_Procedure_Instantiation_Text (Self : aliased in out Procedure_Instantiation) return Program.Elements.Procedure_Instantiations .Procedure_Instantiation_Text_Access is begin return Self'Unchecked_Access; end To_Procedure_Instantiation_Text; overriding function To_Procedure_Instantiation_Text (Self : aliased in out Implicit_Procedure_Instantiation) return Program.Elements.Procedure_Instantiations .Procedure_Instantiation_Text_Access is pragma Unreferenced (Self); begin return null; end To_Procedure_Instantiation_Text; end Program.Nodes.Procedure_Instantiations;
34.10989
78
0.721649
a1581de889f216743191dcbe4361f671e1e201fb
779
ads
Ada
source/calendar/a-calari.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
33
2015-04-04T09:19:36.000Z
2021-11-10T05:33:34.000Z
source/calendar/a-calari.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
8
2017-11-14T13:05:07.000Z
2018-08-09T15:28:49.000Z
source/calendar/a-calari.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
9
2015-02-03T17:09:53.000Z
2021-11-12T01:16:05.000Z
pragma License (Unrestricted); package Ada.Calendar.Arithmetic is -- Arithmetic on days: type Day_Count is range -366 * (1 + Year_Number'Last - Year_Number'First) .. +366 * (1 + Year_Number'Last - Year_Number'First); subtype Leap_Seconds_Count is Integer range -2047 .. 2047; procedure Difference ( Left, Right : Time; Days : out Day_Count; Seconds : out Duration; Leap_Seconds : out Leap_Seconds_Count); function "+" (Left : Time; Right : Day_Count) return Time; function "+" (Left : Day_Count; Right : Time) return Time; function "-" (Left : Time; Right : Day_Count) return Time; function "-" (Left, Right : Time) return Day_Count; pragma Inline ("+"); pragma Inline ("-"); end Ada.Calendar.Arithmetic;
28.851852
61
0.655969
59a1c47fd9c1069a93b3610e5282f207650fb9d1
14,140
adb
Ada
generated-sources/ada-server/mojang-authentication/src/server/com-github-asyncmc-mojang-authentication-ada-server-model-skeletons.adb
AsyncMC/Mojang-API-Libs
b01bbd2bce44bfa2b9ed705a128cf4ecda077916
[ "Apache-2.0" ]
null
null
null
generated-sources/ada-server/mojang-authentication/src/server/com-github-asyncmc-mojang-authentication-ada-server-model-skeletons.adb
AsyncMC/Mojang-API-Libs
b01bbd2bce44bfa2b9ed705a128cf4ecda077916
[ "Apache-2.0" ]
null
null
null
generated-sources/ada-server/mojang-authentication/src/server/com-github-asyncmc-mojang-authentication-ada-server-model-skeletons.adb
AsyncMC/Mojang-API-Libs
b01bbd2bce44bfa2b9ed705a128cf4ecda077916
[ "Apache-2.0" ]
null
null
null
-- Mojang Authentication API -- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -- -- OpenAPI spec version: 2020_06_05 -- -- -- NOTE: This package is auto generated by the swagger code generator 3.3.4. -- https://openapi-generator.tech -- Do not edit the class manually. with Swagger.Streams; with Swagger.Servers.Operation; package body com.github.asyncmc.mojang.authentication.ada.server.model.Skeletons is package body Skeleton is package API_Authenticate is new Swagger.Servers.Operation (Handler => Authenticate, Method => Swagger.Servers.POST, URI => URI_Prefix & "/authenticate"); -- procedure Authenticate (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Input : Swagger.Value_Type; Impl : Implementation_Type; Authentication_Request_Type : AuthenticationRequest_Type; Result : com.github.asyncmc.mojang.authentication.ada.server.model.Models.Authentication_Type; begin Swagger.Servers.Read (Req, Input); com.github.asyncmc.mojang.authentication.ada.server.model.Models.Deserialize (Input, "AuthenticationRequest_Type", Authentication_Request_Type); Impl.Authenticate (Authentication_Request_Type, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; com.github.asyncmc.mojang.authentication.ada.server.model.Models.Serialize (Stream, "", Result); Stream.End_Document; end if; end Authenticate; package API_Invalidate is new Swagger.Servers.Operation (Handler => Invalidate, Method => Swagger.Servers.POST, URI => URI_Prefix & "/invalidate"); -- procedure Invalidate (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Input : Swagger.Value_Type; Impl : Implementation_Type; Access_Keys_Type : AccessKeys_Type; begin Swagger.Servers.Read (Req, Input); com.github.asyncmc.mojang.authentication.ada.server.model.Models.Deserialize (Input, "AccessKeys_Type", Access_Keys_Type); Impl.Invalidate (Access_Keys_Type, Context); end Invalidate; package API_Refresh is new Swagger.Servers.Operation (Handler => Refresh, Method => Swagger.Servers.POST, URI => URI_Prefix & "/refresh"); -- procedure Refresh (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Input : Swagger.Value_Type; Impl : Implementation_Type; Refresh_Request_Type : RefreshRequest_Type; Result : com.github.asyncmc.mojang.authentication.ada.server.model.Models.RefreshResponse_Type; begin Swagger.Servers.Read (Req, Input); com.github.asyncmc.mojang.authentication.ada.server.model.Models.Deserialize (Input, "RefreshRequest_Type", Refresh_Request_Type); Impl.Refresh (Refresh_Request_Type, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; com.github.asyncmc.mojang.authentication.ada.server.model.Models.Serialize (Stream, "", Result); Stream.End_Document; end if; end Refresh; package API_Siginout is new Swagger.Servers.Operation (Handler => Siginout, Method => Swagger.Servers.POST, URI => URI_Prefix & "/signout"); -- procedure Siginout (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Input : Swagger.Value_Type; Impl : Implementation_Type; Username_Password_Type : UsernamePassword_Type; begin Swagger.Servers.Read (Req, Input); com.github.asyncmc.mojang.authentication.ada.server.model.Models.Deserialize (Input, "UsernamePassword_Type", Username_Password_Type); Impl.Siginout (Username_Password_Type, Context); end Siginout; package API_Validate is new Swagger.Servers.Operation (Handler => Validate, Method => Swagger.Servers.POST, URI => URI_Prefix & "/validate"); -- procedure Validate (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Input : Swagger.Value_Type; Impl : Implementation_Type; Access_Keys_Type : AccessKeys_Type; begin Swagger.Servers.Read (Req, Input); com.github.asyncmc.mojang.authentication.ada.server.model.Models.Deserialize (Input, "AccessKeys_Type", Access_Keys_Type); Impl.Validate (Access_Keys_Type, Context); end Validate; procedure Register (Server : in out Swagger.Servers.Application_Type'Class) is begin Swagger.Servers.Register (Server, API_Authenticate.Definition); Swagger.Servers.Register (Server, API_Invalidate.Definition); Swagger.Servers.Register (Server, API_Refresh.Definition); Swagger.Servers.Register (Server, API_Siginout.Definition); Swagger.Servers.Register (Server, API_Validate.Definition); end Register; end Skeleton; package body Shared_Instance is -- procedure Authenticate (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Input : Swagger.Value_Type; Authentication_Request_Type : AuthenticationRequest_Type; Result : com.github.asyncmc.mojang.authentication.ada.server.model.Models.Authentication_Type; begin Swagger.Servers.Read (Req, Input); com.github.asyncmc.mojang.authentication.ada.server.model.Models.Deserialize (Input, "AuthenticationRequest_Type", Authentication_Request_Type); Server.Authenticate (Authentication_Request_Type, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; com.github.asyncmc.mojang.authentication.ada.server.model.Models.Serialize (Stream, "", Result); Stream.End_Document; end if; end Authenticate; package API_Authenticate is new Swagger.Servers.Operation (Handler => Authenticate, Method => Swagger.Servers.POST, URI => URI_Prefix & "/authenticate"); -- procedure Invalidate (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Input : Swagger.Value_Type; Access_Keys_Type : AccessKeys_Type; begin Swagger.Servers.Read (Req, Input); com.github.asyncmc.mojang.authentication.ada.server.model.Models.Deserialize (Input, "AccessKeys_Type", Access_Keys_Type); Server.Invalidate (Access_Keys_Type, Context); end Invalidate; package API_Invalidate is new Swagger.Servers.Operation (Handler => Invalidate, Method => Swagger.Servers.POST, URI => URI_Prefix & "/invalidate"); -- procedure Refresh (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Input : Swagger.Value_Type; Refresh_Request_Type : RefreshRequest_Type; Result : com.github.asyncmc.mojang.authentication.ada.server.model.Models.RefreshResponse_Type; begin Swagger.Servers.Read (Req, Input); com.github.asyncmc.mojang.authentication.ada.server.model.Models.Deserialize (Input, "RefreshRequest_Type", Refresh_Request_Type); Server.Refresh (Refresh_Request_Type, Result, Context); if Context.Get_Status = 200 then Stream.Start_Document; com.github.asyncmc.mojang.authentication.ada.server.model.Models.Serialize (Stream, "", Result); Stream.End_Document; end if; end Refresh; package API_Refresh is new Swagger.Servers.Operation (Handler => Refresh, Method => Swagger.Servers.POST, URI => URI_Prefix & "/refresh"); -- procedure Siginout (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Input : Swagger.Value_Type; Username_Password_Type : UsernamePassword_Type; begin Swagger.Servers.Read (Req, Input); com.github.asyncmc.mojang.authentication.ada.server.model.Models.Deserialize (Input, "UsernamePassword_Type", Username_Password_Type); Server.Siginout (Username_Password_Type, Context); end Siginout; package API_Siginout is new Swagger.Servers.Operation (Handler => Siginout, Method => Swagger.Servers.POST, URI => URI_Prefix & "/signout"); -- procedure Validate (Req : in out Swagger.Servers.Request'Class; Reply : in out Swagger.Servers.Response'Class; Stream : in out Swagger.Servers.Output_Stream'Class; Context : in out Swagger.Servers.Context_Type) is Input : Swagger.Value_Type; Access_Keys_Type : AccessKeys_Type; begin Swagger.Servers.Read (Req, Input); com.github.asyncmc.mojang.authentication.ada.server.model.Models.Deserialize (Input, "AccessKeys_Type", Access_Keys_Type); Server.Validate (Access_Keys_Type, Context); end Validate; package API_Validate is new Swagger.Servers.Operation (Handler => Validate, Method => Swagger.Servers.POST, URI => URI_Prefix & "/validate"); procedure Register (Server : in out Swagger.Servers.Application_Type'Class) is begin Swagger.Servers.Register (Server, API_Authenticate.Definition); Swagger.Servers.Register (Server, API_Invalidate.Definition); Swagger.Servers.Register (Server, API_Refresh.Definition); Swagger.Servers.Register (Server, API_Siginout.Definition); Swagger.Servers.Register (Server, API_Validate.Definition); end Register; protected body Server is -- procedure Authenticate (Authentication_Request_Type : in AuthenticationRequest_Type; Result : out com.github.asyncmc.mojang.authentication.ada.server.model.Models.Authentication_Type; Context : in out Swagger.Servers.Context_Type) is begin Impl.Authenticate (Authentication_Request_Type, Result, Context); end Authenticate; -- procedure Invalidate (Access_Keys_Type : in AccessKeys_Type; Context : in out Swagger.Servers.Context_Type) is begin Impl.Invalidate (Access_Keys_Type, Context); end Invalidate; -- procedure Refresh (Refresh_Request_Type : in RefreshRequest_Type; Result : out com.github.asyncmc.mojang.authentication.ada.server.model.Models.RefreshResponse_Type; Context : in out Swagger.Servers.Context_Type) is begin Impl.Refresh (Refresh_Request_Type, Result, Context); end Refresh; -- procedure Siginout (Username_Password_Type : in UsernamePassword_Type; Context : in out Swagger.Servers.Context_Type) is begin Impl.Siginout (Username_Password_Type, Context); end Siginout; -- procedure Validate (Access_Keys_Type : in AccessKeys_Type; Context : in out Swagger.Servers.Context_Type) is begin Impl.Validate (Access_Keys_Type, Context); end Validate; end Server; end Shared_Instance; end com.github.asyncmc.mojang.authentication.ada.server.model.Skeletons;
40.985507
153
0.60884
5953c0677ce4c90c2264e25d09ee2cfc5c074c34
3,368
adb
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-sopco3.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-sopco3.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-sopco3.adb
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . S T R I N G _ O P S _ C O N C A T _ 3 -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2020, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- NOTE: This package is obsolescent. It is no longer used by the compiler -- which now generates concatenation inline. It is retained only because -- it may be used during bootstrapping using old versions of the compiler. pragma Compiler_Unit_Warning; package body System.String_Ops_Concat_3 is ------------------ -- Str_Concat_3 -- ------------------ function Str_Concat_3 (S1, S2, S3 : String) return String is begin if S1'Length = 0 then return S2 & S3; else declare L12 : constant Natural := S1'Length + S2'Length; L13 : constant Natural := L12 + S3'Length; R : String (S1'First .. S1'First + L13 - 1); begin R (S1'First .. S1'Last) := S1; R (S1'Last + 1 .. S1'First + L12 - 1) := S2; R (S1'First + L12 .. R'Last) := S3; return R; end; end if; end Str_Concat_3; end System.String_Ops_Concat_3;
51.815385
78
0.421912
0be552b7b11511247065de20ba8b56e53332f661
17,061
ads
Ada
ada-characters-latin_1.ads
mgrojo/adalib
dc1355a5b65c2843e702ac76252addb2caf3c56b
[ "BSD-3-Clause" ]
15
2018-07-08T07:09:19.000Z
2021-11-21T09:58:55.000Z
ada-characters-latin_1.ads
mgrojo/adalib
dc1355a5b65c2843e702ac76252addb2caf3c56b
[ "BSD-3-Clause" ]
4
2019-11-17T20:04:33.000Z
2021-08-29T21:24:55.000Z
ada-characters-latin_1.ads
mgrojo/adalib
dc1355a5b65c2843e702ac76252addb2caf3c56b
[ "BSD-3-Clause" ]
3
2020-04-23T11:17:11.000Z
2021-08-29T19:31:09.000Z
-- Standard Ada library specification -- Copyright (c) 2003-2018 Maxim Reznik <[email protected]> -- Copyright (c) 2004-2016 AXE Consultants -- Copyright (c) 2004, 2005, 2006 Ada-Europe -- Copyright (c) 2000 The MITRE Corporation, Inc. -- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc. -- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaReferenceManual --------------------------------------------------------------------------- package Ada.Characters.Latin_1 is pragma Pure (Latin_1); -- Control characters: NUL : constant Character := Character'Val(0); SOH : constant Character := Character'Val(1); STX : constant Character := Character'Val(2); ETX : constant Character := Character'Val(3); EOT : constant Character := Character'Val(4); ENQ : constant Character := Character'Val(5); ACK : constant Character := Character'Val(6); BEL : constant Character := Character'Val(7); BS : constant Character := Character'Val(8); HT : constant Character := Character'Val(9); LF : constant Character := Character'Val(10); VT : constant Character := Character'Val(11); FF : constant Character := Character'Val(12); CR : constant Character := Character'Val(13); SO : constant Character := Character'Val(14); SI : constant Character := Character'Val(15); DLE : constant Character := Character'Val(16); DC1 : constant Character := Character'Val(17); DC2 : constant Character := Character'Val(18); DC3 : constant Character := Character'Val(19); DC4 : constant Character := Character'Val(20); NAK : constant Character := Character'Val(21); SYN : constant Character := Character'Val(22); ETB : constant Character := Character'Val(23); CAN : constant Character := Character'Val(24); EM : constant Character := Character'Val(25); SUB : constant Character := Character'Val(26); ESC : constant Character := Character'Val(27); FS : constant Character := Character'Val(28); GS : constant Character := Character'Val(29); RS : constant Character := Character'Val(30); US : constant Character := Character'Val(31); -- ISO 646 graphic characters: Space : constant Character := ' '; -- Character'Val(32) Exclamation : constant Character := '!'; -- Character'Val(33) Quotation : constant Character := '"'; -- Character'Val(34) Number_Sign : constant Character := '#'; -- Character'Val(35) Dollar_Sign : constant Character := '$'; -- Character'Val(36) Percent_Sign : constant Character := '%'; -- Character'Val(37) Ampersand : constant Character := '&'; -- Character'Val(38) Apostrophe : constant Character := '''; -- Character'Val(39) Left_Parenthesis : constant Character := '('; -- Character'Val(40) Right_Parenthesis : constant Character := ')'; -- Character'Val(41) Asterisk : constant Character := '*'; -- Character'Val(42) Plus_Sign : constant Character := '+'; -- Character'Val(43) Comma : constant Character := ','; -- Character'Val(44) Hyphen : constant Character := '-'; -- Character'Val(45) Minus_Sign : Character renames Hyphen; Full_Stop : constant Character := '.'; -- Character'Val(46) Solidus : constant Character := '/'; -- Character'Val(47) -- Decimal digits '0' though '9' are at positions 48 through 57 Colon : constant Character := ':'; -- Character'Val(58) Semicolon : constant Character := ';'; -- Character'Val(59) Less_Than_Sign : constant Character := '<'; -- Character'Val(60) Equals_Sign : constant Character := '='; -- Character'Val(61) Greater_Than_Sign : constant Character := '>'; -- Character'Val(62) Question : constant Character := '?'; -- Character'Val(63) Commercial_At : constant Character := '@'; -- Character'Val(64) -- Letters 'A' through 'Z' are at positions 65 through 90 Left_Square_Bracket : constant Character := '['; -- Character'Val(91) Reverse_Solidus : constant Character := '\'; -- Character'Val(92) Right_Square_Bracket : constant Character := ']'; -- Character'Val(93) Circumflex : constant Character := '^'; -- Character'Val(94) Low_Line : constant Character := '_'; -- Character'Val(95) Grave : constant Character := '`'; -- Character'Val(96) LC_A : constant Character := 'a'; -- Character'Val(97) LC_B : constant Character := 'b'; -- Character'Val(98) LC_C : constant Character := 'c'; -- Character'Val(99) LC_D : constant Character := 'd'; -- Character'Val(100) LC_E : constant Character := 'e'; -- Character'Val(101) LC_F : constant Character := 'f'; -- Character'Val(102) LC_G : constant Character := 'g'; -- Character'Val(103) LC_H : constant Character := 'h'; -- Character'Val(104) LC_I : constant Character := 'i'; -- Character'Val(105) LC_J : constant Character := 'j'; -- Character'Val(106) LC_K : constant Character := 'k'; -- Character'Val(107) LC_L : constant Character := 'l'; -- Character'Val(108) LC_M : constant Character := 'm'; -- Character'Val(109) LC_N : constant Character := 'n'; -- Character'Val(110) LC_O : constant Character := 'o'; -- Character'Val(111) LC_P : constant Character := 'p'; -- Character'Val(112) LC_Q : constant Character := 'q'; -- Character'Val(113) LC_R : constant Character := 'r'; -- Character'Val(114) LC_S : constant Character := 's'; -- Character'Val(115) LC_T : constant Character := 't'; -- Character'Val(116) LC_U : constant Character := 'u'; -- Character'Val(117) LC_V : constant Character := 'v'; -- Character'Val(118) LC_W : constant Character := 'w'; -- Character'Val(119) LC_X : constant Character := 'x'; -- Character'Val(120) LC_Y : constant Character := 'y'; -- Character'Val(121) LC_Z : constant Character := 'z'; -- Character'Val(122) Left_Curly_Bracket : constant Character := '{'; -- Character'Val(123) Vertical_Line : constant Character := '|'; -- Character'Val(124) Right_Curly_Bracket : constant Character := '}'; -- Character'Val(125) Tilde : constant Character := '~'; -- Character'Val(126) DEL : constant Character := Character'Val(127); -- ISO 6429 control characters: IS4 : Character renames FS; IS3 : Character renames GS; IS2 : Character renames RS; IS1 : Character renames US; Reserved_128 : constant Character := Character'Val(128); Reserved_129 : constant Character := Character'Val(129); BPH : constant Character := Character'Val(130); NBH : constant Character := Character'Val(131); Reserved_132 : constant Character := Character'Val(132); NEL : constant Character := Character'Val(133); SSA : constant Character := Character'Val(134); ESA : constant Character := Character'Val(135); HTS : constant Character := Character'Val(136); HTJ : constant Character := Character'Val(137); VTS : constant Character := Character'Val(138); PLD : constant Character := Character'Val(139); PLU : constant Character := Character'Val(140); RI : constant Character := Character'Val(141); SS2 : constant Character := Character'Val(142); SS3 : constant Character := Character'Val(143); DCS : constant Character := Character'Val(144); PU1 : constant Character := Character'Val(145); PU2 : constant Character := Character'Val(146); STS : constant Character := Character'Val(147); CCH : constant Character := Character'Val(148); MW : constant Character := Character'Val(149); SPA : constant Character := Character'Val(150); EPA : constant Character := Character'Val(151); SOS : constant Character := Character'Val(152); Reserved_153 : constant Character := Character'Val(153); SCI : constant Character := Character'Val(154); CSI : constant Character := Character'Val(155); ST : constant Character := Character'Val(156); OSC : constant Character := Character'Val(157); PM : constant Character := Character'Val(158); APC : constant Character := Character'Val(159); -- Other graphic characters: -- Character positions 160 (16#A0#) .. 175 (16#AF#): No_Break_Space : constant Character := ' '; --Character'Val(160) NBSP : Character renames No_Break_Space; Inverted_Exclamation : constant Character := '¡'; --Character'Val(161) Cent_Sign : constant Character := '¢'; --Character'Val(162) Pound_Sign : constant Character := '£'; --Character'Val(163) Currency_Sign : constant Character := '¤'; --Character'Val(164) Yen_Sign : constant Character := '¥'; --Character'Val(165) Broken_Bar : constant Character := '¦'; --Character'Val(166) Section_Sign : constant Character := '§'; --Character'Val(167) Diaeresis : constant Character := '¨'; --Character'Val(168) Copyright_Sign : constant Character := '©'; --Character'Val(169) Feminine_Ordinal_Indicator : constant Character := 'ª'; --Character'Val(170) Left_Angle_Quotation : constant Character := '«'; --Character'Val(171) Not_Sign : constant Character := '¬'; --Character'Val(172) Soft_Hyphen : constant Character := '­'; --Character'Val(173) Registered_Trade_Mark_Sign : constant Character := '®'; --Character'Val(174) Macron : constant Character := '¯'; --Character'Val(175) -- Character positions 176 (16#B0#) .. 191 (16#BF#): Degree_Sign : constant Character := '°'; --Character'Val(176) Ring_Above : Character renames Degree_Sign; Plus_Minus_Sign : constant Character := '±'; --Character'Val(177) Superscript_Two : constant Character := '²'; --Character'Val(178) Superscript_Three : constant Character := '³'; --Character'Val(179) Acute : constant Character := '´'; --Character'Val(180) Micro_Sign : constant Character := 'µ'; --Character'Val(181) Pilcrow_Sign : constant Character := '¶'; --Character'Val(182) Paragraph_Sign : Character renames Pilcrow_Sign; Middle_Dot : constant Character := '·'; --Character'Val(183) Cedilla : constant Character := '¸'; --Character'Val(184) Superscript_One : constant Character := '¹'; --Character'Val(185) Masculine_Ordinal_Indicator : constant Character := 'º'; --Character'Val(186) Right_Angle_Quotation : constant Character := '»'; --Character'Val(187) Fraction_One_Quarter : constant Character := '¼'; --Character'Val(188) Fraction_One_Half : constant Character := '½'; --Character'Val(189) Fraction_Three_Quarters : constant Character := '¾'; --Character'Val(190) Inverted_Question : constant Character := '¿'; --Character'Val(191) -- Character positions 192 (16#C0#) .. 207 (16#CF#): UC_A_Grave : constant Character := 'À'; --Character'Val(192) UC_A_Acute : constant Character := 'Á'; --Character'Val(193) UC_A_Circumflex : constant Character := 'Â'; --Character'Val(194) UC_A_Tilde : constant Character := 'Ã'; --Character'Val(195) UC_A_Diaeresis : constant Character := 'Ä'; --Character'Val(196) UC_A_Ring : constant Character := 'Å'; --Character'Val(197) UC_AE_Diphthong : constant Character := 'Æ'; --Character'Val(198) UC_C_Cedilla : constant Character := 'Ç'; --Character'Val(199) UC_E_Grave : constant Character := 'È'; --Character'Val(200) UC_E_Acute : constant Character := 'É'; --Character'Val(201) UC_E_Circumflex : constant Character := 'Ê'; --Character'Val(202) UC_E_Diaeresis : constant Character := 'Ë'; --Character'Val(203) UC_I_Grave : constant Character := 'Ì'; --Character'Val(204) UC_I_Acute : constant Character := 'Í'; --Character'Val(205) UC_I_Circumflex : constant Character := 'Î'; --Character'Val(206) UC_I_Diaeresis : constant Character := 'Ï'; --Character'Val(207) -- Character positions 208 (16#D0#) .. 223 (16#DF#): UC_Icelandic_Eth : constant Character := 'Ð'; --Character'Val(208) UC_N_Tilde : constant Character := 'Ñ'; --Character'Val(209) UC_O_Grave : constant Character := 'Ò'; --Character'Val(210) UC_O_Acute : constant Character := 'Ó'; --Character'Val(211) UC_O_Circumflex : constant Character := 'Ô'; --Character'Val(212) UC_O_Tilde : constant Character := 'Õ'; --Character'Val(213) UC_O_Diaeresis : constant Character := 'Ö'; --Character'Val(214) Multiplication_Sign : constant Character := '×'; --Character'Val(215) UC_O_Oblique_Stroke : constant Character := 'Ø'; --Character'Val(216) UC_U_Grave : constant Character := 'Ù'; --Character'Val(217) UC_U_Acute : constant Character := 'Ú'; --Character'Val(218) UC_U_Circumflex : constant Character := 'Û'; --Character'Val(219) UC_U_Diaeresis : constant Character := 'Ü'; --Character'Val(220) UC_Y_Acute : constant Character := 'Ý'; --Character'Val(221) UC_Icelandic_Thorn : constant Character := 'Þ'; --Character'Val(222) LC_German_Sharp_S : constant Character := 'ß'; --Character'Val(223) -- Character positions 224 (16#E0#) .. 239 (16#EF#): LC_A_Grave : constant Character := 'à'; --Character'Val(224) LC_A_Acute : constant Character := 'á'; --Character'Val(225) LC_A_Circumflex : constant Character := 'â'; --Character'Val(226) LC_A_Tilde : constant Character := 'ã'; --Character'Val(227) LC_A_Diaeresis : constant Character := 'ä'; --Character'Val(228) LC_A_Ring : constant Character := 'å'; --Character'Val(229) LC_AE_Diphthong : constant Character := 'æ'; --Character'Val(230) LC_C_Cedilla : constant Character := 'ç'; --Character'Val(231) LC_E_Grave : constant Character := 'è'; --Character'Val(232) LC_E_Acute : constant Character := 'é'; --Character'Val(233) LC_E_Circumflex : constant Character := 'ê'; --Character'Val(234) LC_E_Diaeresis : constant Character := 'ë'; --Character'Val(235) LC_I_Grave : constant Character := 'ì'; --Character'Val(236) LC_I_Acute : constant Character := 'í'; --Character'Val(237) LC_I_Circumflex : constant Character := 'î'; --Character'Val(238) LC_I_Diaeresis : constant Character := 'ï'; --Character'Val(239) -- Character positions 240 (16#F0#) .. 255 (16#FF#): LC_Icelandic_Eth : constant Character := 'ð'; --Character'Val(240) LC_N_Tilde : constant Character := 'ñ'; --Character'Val(241) LC_O_Grave : constant Character := 'ò'; --Character'Val(242) LC_O_Acute : constant Character := 'ó'; --Character'Val(243) LC_O_Circumflex : constant Character := 'ô'; --Character'Val(244) LC_O_Tilde : constant Character := 'õ'; --Character'Val(245) LC_O_Diaeresis : constant Character := 'ö'; --Character'Val(246) Division_Sign : constant Character := '÷'; --Character'Val(247) LC_O_Oblique_Stroke : constant Character := 'ø'; --Character'Val(248) LC_U_Grave : constant Character := 'ù'; --Character'Val(249) LC_U_Acute : constant Character := 'ú'; --Character'Val(250) LC_U_Circumflex : constant Character := 'û'; --Character'Val(251) LC_U_Diaeresis : constant Character := 'ü'; --Character'Val(252) LC_Y_Acute : constant Character := 'ý'; --Character'Val(253) LC_Icelandic_Thorn : constant Character := 'þ'; --Character'Val(254) LC_Y_Diaeresis : constant Character := 'ÿ'; --Character'Val(255) end Ada.Characters.Latin_1;
39.22069
75
0.583553
3106ec7388cf84b50d5e12c2630d39e504cdcd49
142
ads
Ada
src/GBA.Handles.ads
98devin/ada-gba-dev
6ebca014b7537117144d878db8d13db49aa00cee
[ "Zlib" ]
7
2021-04-08T02:32:54.000Z
2022-02-14T01:21:43.000Z
src/GBA.Handles.ads
98devin/ada-gba-dev
6ebca014b7537117144d878db8d13db49aa00cee
[ "Zlib" ]
15
2021-04-09T20:13:33.000Z
2021-12-22T01:03:59.000Z
src/GBA.Handles.ads
98devin/ada-gba-dev
6ebca014b7537117144d878db8d13db49aa00cee
[ "Zlib" ]
1
2021-06-12T07:48:05.000Z
2021-06-12T07:48:05.000Z
-- Copyright (c) 2021 Devin Hill -- zlib License -- see LICENSE for details. package GBA.Handles is pragma Preelaborate; end GBA.Handles;
17.75
43
0.732394
292b13e14cac61fd356ce4d7303ad094e2265e4d
904
adb
Ada
Fibonacci/fibonacci.adb
veyselharun/ABench2020
1a6aace6ee05f2a3b30b707f42a47eb66910823e
[ "MIT" ]
null
null
null
Fibonacci/fibonacci.adb
veyselharun/ABench2020
1a6aace6ee05f2a3b30b707f42a47eb66910823e
[ "MIT" ]
null
null
null
Fibonacci/fibonacci.adb
veyselharun/ABench2020
1a6aace6ee05f2a3b30b707f42a47eb66910823e
[ "MIT" ]
1
2021-11-22T14:56:29.000Z
2021-11-22T14:56:29.000Z
-- -- ABench2020 Benchmark Suite -- -- Fibonacci Program -- -- Licensed under the MIT License. See LICENSE file in the ABench root -- directory for license information. -- -- Uncomment the line below to print the result. -- with Ada.Text_IO; use Ada.Text_IO; with Ada.Command_Line; use Ada.Command_Line; procedure Fibonacci is function Calculate_Fibonacci (Index_Value: Positive) return Positive is begin if Index_Value <= 2 then return 1; else return Calculate_Fibonacci (Index_Value - 1) + Calculate_Fibonacci (Index_Value - 2); end if; end; External_Value : Positive := Positive'Value (Ada.Command_Line.Argument (1)); Result : Positive; begin Result := Calculate_Fibonacci (External_Value); -- Uncomment the line below to print the result. -- Put_Line (Integer'Image (Result)); end Fibonacci;
22.6
97
0.674779
590dc09193e4613fcd1205b8b55e4c3f172322cc
18,046
ads
Ada
bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/a-cobove.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/a-cobove.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/a-cobove.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- A D A . C O N T A I N E R S . B O U N D E D _ V E C T O R S -- -- -- -- S p e c -- -- -- -- Copyright (C) 2004-2021, Free Software Foundation, Inc. -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. The copyright notice above, and the license provisions that follow -- -- apply solely to the contents of the part following the private keyword. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- This unit was originally developed by Matthew J Heaney. -- ------------------------------------------------------------------------------ with Ada.Iterator_Interfaces; with Ada.Containers.Helpers; private with Ada.Streams; private with Ada.Finalization; private with Ada.Strings.Text_Buffers; generic type Index_Type is range <>; type Element_Type is private; with function "=" (Left, Right : Element_Type) return Boolean is <>; package Ada.Containers.Bounded_Vectors is pragma Annotate (CodePeer, Skip_Analysis); pragma Pure; pragma Remote_Types; subtype Extended_Index is Index_Type'Base range Index_Type'First - 1 .. Index_Type'Min (Index_Type'Base'Last - 1, Index_Type'Last) + 1; No_Index : constant Extended_Index := Extended_Index'First; type Vector (Capacity : Count_Type) is tagged private with Constant_Indexing => Constant_Reference, Variable_Indexing => Reference, Default_Iterator => Iterate, Iterator_Element => Element_Type, Aggregate => (Empty => Empty, Add_Unnamed => Append, New_Indexed => New_Vector, Assign_Indexed => Replace_Element); pragma Preelaborable_Initialization (Vector); type Cursor is private; pragma Preelaborable_Initialization (Cursor); Empty_Vector : constant Vector; No_Element : constant Cursor; function Has_Element (Position : Cursor) return Boolean; package Vector_Iterator_Interfaces is new Ada.Iterator_Interfaces (Cursor, Has_Element); function Empty (Capacity : Count_Type := 10) return Vector; pragma Ada_2022 (Empty); overriding function "=" (Left, Right : Vector) return Boolean; function New_Vector (First, Last : Index_Type) return Vector with Pre => First = Index_Type'First; -- Ada 2022 aggregate operation. pragma Ada_2022 (New_Vector); function To_Vector (Length : Count_Type) return Vector; function To_Vector (New_Item : Element_Type; Length : Count_Type) return Vector; function "&" (Left, Right : Vector) return Vector; function "&" (Left : Vector; Right : Element_Type) return Vector; function "&" (Left : Element_Type; Right : Vector) return Vector; function "&" (Left, Right : Element_Type) return Vector; function Capacity (Container : Vector) return Count_Type; procedure Reserve_Capacity (Container : in out Vector; Capacity : Count_Type); function Length (Container : Vector) return Count_Type; procedure Set_Length (Container : in out Vector; Length : Count_Type); function Is_Empty (Container : Vector) return Boolean; procedure Clear (Container : in out Vector); function To_Cursor (Container : Vector; Index : Extended_Index) return Cursor; function To_Index (Position : Cursor) return Extended_Index; function Element (Container : Vector; Index : Index_Type) return Element_Type; function Element (Position : Cursor) return Element_Type; procedure Replace_Element (Container : in out Vector; Index : Index_Type; New_Item : Element_Type); procedure Replace_Element (Container : in out Vector; Position : Cursor; New_Item : Element_Type); procedure Query_Element (Container : Vector; Index : Index_Type; Process : not null access procedure (Element : Element_Type)); procedure Query_Element (Position : Cursor; Process : not null access procedure (Element : Element_Type)); procedure Update_Element (Container : in out Vector; Index : Index_Type; Process : not null access procedure (Element : in out Element_Type)); procedure Update_Element (Container : in out Vector; Position : Cursor; Process : not null access procedure (Element : in out Element_Type)); type Constant_Reference_Type (Element : not null access constant Element_Type) is private with Implicit_Dereference => Element; type Reference_Type (Element : not null access Element_Type) is private with Implicit_Dereference => Element; function Constant_Reference (Container : aliased Vector; Position : Cursor) return Constant_Reference_Type; function Reference (Container : aliased in out Vector; Position : Cursor) return Reference_Type; function Constant_Reference (Container : aliased Vector; Index : Index_Type) return Constant_Reference_Type; function Reference (Container : aliased in out Vector; Index : Index_Type) return Reference_Type; procedure Assign (Target : in out Vector; Source : Vector); function Copy (Source : Vector; Capacity : Count_Type := 0) return Vector; procedure Move (Target : in out Vector; Source : in out Vector); procedure Insert_Vector (Container : in out Vector; Before : Extended_Index; New_Item : Vector); pragma Ada_2022 (Insert_Vector); procedure Insert (Container : in out Vector; Before : Extended_Index; New_Item : Vector) renames Insert_Vector; -- Retained for now for compatibility; AI12-0400 will remove this. procedure Insert_Vector (Container : in out Vector; Before : Cursor; New_Item : Vector); pragma Ada_2022 (Insert_Vector); procedure Insert (Container : in out Vector; Before : Cursor; New_Item : Vector) renames Insert_Vector; -- Retained for now for compatibility; AI12-0400 will remove this. procedure Insert_Vector (Container : in out Vector; Before : Cursor; New_Item : Vector; Position : out Cursor); pragma Ada_2022 (Insert_Vector); procedure Insert (Container : in out Vector; Before : Cursor; New_Item : Vector; Position : out Cursor) renames Insert_Vector; -- Retained for now for compatibility; AI12-0400 will remove this. procedure Insert (Container : in out Vector; Before : Extended_Index; New_Item : Element_Type; Count : Count_Type := 1); procedure Insert (Container : in out Vector; Before : Cursor; New_Item : Element_Type; Count : Count_Type := 1); procedure Insert (Container : in out Vector; Before : Cursor; New_Item : Element_Type; Position : out Cursor; Count : Count_Type := 1); procedure Insert (Container : in out Vector; Before : Extended_Index; Count : Count_Type := 1); procedure Insert (Container : in out Vector; Before : Cursor; Position : out Cursor; Count : Count_Type := 1); procedure Prepend_Vector (Container : in out Vector; New_Item : Vector); pragma Ada_2022 (Prepend_Vector); procedure Prepend (Container : in out Vector; New_Item : Vector) renames Prepend_Vector; -- Retained for now for compatibility; AI12-0400 will remove this. procedure Prepend (Container : in out Vector; New_Item : Element_Type; Count : Count_Type := 1); procedure Append_Vector (Container : in out Vector; New_Item : Vector); pragma Ada_2022 (Append_Vector); procedure Append (Container : in out Vector; New_Item : Vector) renames Append_Vector; -- Retained for now for compatibility; AI12-0400 will remove this. procedure Append (Container : in out Vector; New_Item : Element_Type; Count : Count_Type); procedure Append (Container : in out Vector; New_Item : Element_Type); procedure Insert_Space (Container : in out Vector; Before : Extended_Index; Count : Count_Type := 1); procedure Insert_Space (Container : in out Vector; Before : Cursor; Position : out Cursor; Count : Count_Type := 1); procedure Delete (Container : in out Vector; Index : Extended_Index; Count : Count_Type := 1); procedure Delete (Container : in out Vector; Position : in out Cursor; Count : Count_Type := 1); procedure Delete_First (Container : in out Vector; Count : Count_Type := 1); procedure Delete_Last (Container : in out Vector; Count : Count_Type := 1); procedure Reverse_Elements (Container : in out Vector); procedure Swap (Container : in out Vector; I, J : Index_Type); procedure Swap (Container : in out Vector; I, J : Cursor); function First_Index (Container : Vector) return Index_Type; function First (Container : Vector) return Cursor; function First_Element (Container : Vector) return Element_Type; function Last_Index (Container : Vector) return Extended_Index; function Last (Container : Vector) return Cursor; function Last_Element (Container : Vector) return Element_Type; function Next (Position : Cursor) return Cursor; procedure Next (Position : in out Cursor); function Previous (Position : Cursor) return Cursor; procedure Previous (Position : in out Cursor); function Find_Index (Container : Vector; Item : Element_Type; Index : Index_Type := Index_Type'First) return Extended_Index; function Find (Container : Vector; Item : Element_Type; Position : Cursor := No_Element) return Cursor; function Reverse_Find_Index (Container : Vector; Item : Element_Type; Index : Index_Type := Index_Type'Last) return Extended_Index; function Reverse_Find (Container : Vector; Item : Element_Type; Position : Cursor := No_Element) return Cursor; function Contains (Container : Vector; Item : Element_Type) return Boolean; procedure Iterate (Container : Vector; Process : not null access procedure (Position : Cursor)); procedure Reverse_Iterate (Container : Vector; Process : not null access procedure (Position : Cursor)); function Iterate (Container : Vector) return Vector_Iterator_Interfaces.Reversible_Iterator'Class; function Iterate (Container : Vector; Start : Cursor) return Vector_Iterator_Interfaces.Reversible_Iterator'class; generic with function "<" (Left, Right : Element_Type) return Boolean is <>; package Generic_Sorting is function Is_Sorted (Container : Vector) return Boolean; procedure Sort (Container : in out Vector); procedure Merge (Target : in out Vector; Source : in out Vector); end Generic_Sorting; private pragma Inline (First_Index); pragma Inline (Last_Index); pragma Inline (Element); pragma Inline (First_Element); pragma Inline (Last_Element); pragma Inline (Query_Element); pragma Inline (Update_Element); pragma Inline (Replace_Element); pragma Inline (Is_Empty); pragma Inline (Contains); pragma Inline (Next); pragma Inline (Previous); use Ada.Containers.Helpers; package Implementation is new Generic_Implementation; use Implementation; use Ada.Streams; use Ada.Finalization; type Elements_Array is array (Count_Type range <>) of aliased Element_Type; function "=" (L, R : Elements_Array) return Boolean is abstract; type Vector (Capacity : Count_Type) is tagged record Elements : Elements_Array (1 .. Capacity); Last : Extended_Index := No_Index; TC : aliased Tamper_Counts; end record with Put_Image => Put_Image; procedure Put_Image (S : in out Ada.Strings.Text_Buffers.Root_Buffer_Type'Class; V : Vector); procedure Write (Stream : not null access Root_Stream_Type'Class; Container : Vector); for Vector'Write use Write; procedure Read (Stream : not null access Root_Stream_Type'Class; Container : out Vector); for Vector'Read use Read; type Vector_Access is access all Vector; for Vector_Access'Storage_Size use 0; type Cursor is record Container : Vector_Access; Index : Index_Type := Index_Type'First; end record; procedure Write (Stream : not null access Root_Stream_Type'Class; Position : Cursor); for Cursor'Write use Write; procedure Read (Stream : not null access Root_Stream_Type'Class; Position : out Cursor); for Cursor'Read use Read; subtype Reference_Control_Type is Implementation.Reference_Control_Type; -- It is necessary to rename this here, so that the compiler can find it type Constant_Reference_Type (Element : not null access constant Element_Type) is record Control : Reference_Control_Type := raise Program_Error with "uninitialized reference"; -- The RM says, "The default initialization of an object of -- type Constant_Reference_Type or Reference_Type propagates -- Program_Error." end record; procedure Read (Stream : not null access Root_Stream_Type'Class; Item : out Constant_Reference_Type); for Constant_Reference_Type'Read use Read; procedure Write (Stream : not null access Root_Stream_Type'Class; Item : Constant_Reference_Type); for Constant_Reference_Type'Write use Write; type Reference_Type (Element : not null access Element_Type) is record Control : Reference_Control_Type := raise Program_Error with "uninitialized reference"; -- The RM says, "The default initialization of an object of -- type Constant_Reference_Type or Reference_Type propagates -- Program_Error." end record; procedure Read (Stream : not null access Root_Stream_Type'Class; Item : out Reference_Type); for Reference_Type'Read use Read; procedure Write (Stream : not null access Root_Stream_Type'Class; Item : Reference_Type); for Reference_Type'Write use Write; -- Three operations are used to optimize in the expansion of "for ... of" -- loops: the Next(Cursor) procedure in the visible part, and the following -- Pseudo_Reference and Get_Element_Access functions. See Exp_Ch5 for -- details. function Pseudo_Reference (Container : aliased Vector'Class) return Reference_Control_Type; pragma Inline (Pseudo_Reference); -- Creates an object of type Reference_Control_Type pointing to the -- container, and increments the Lock. Finalization of this object will -- decrement the Lock. type Element_Access is access all Element_Type with Storage_Size => 0; function Get_Element_Access (Position : Cursor) return not null Element_Access; -- Returns a pointer to the element designated by Position. Empty_Vector : constant Vector := (Capacity => 0, others => <>); No_Element : constant Cursor := Cursor'(null, Index_Type'First); type Iterator is new Limited_Controlled and Vector_Iterator_Interfaces.Reversible_Iterator with record Container : Vector_Access; Index : Index_Type'Base; end record with Disable_Controlled => not T_Check; overriding procedure Finalize (Object : in out Iterator); overriding function First (Object : Iterator) return Cursor; overriding function Last (Object : Iterator) return Cursor; overriding function Next (Object : Iterator; Position : Cursor) return Cursor; overriding function Previous (Object : Iterator; Position : Cursor) return Cursor; end Ada.Containers.Bounded_Vectors;
32.225
79
0.626843
29bc9b2df1f780cff5ccd1076665cffd5aea684c
16,078
adb
Ada
source/strings/a-stgebo.adb
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
33
2015-04-04T09:19:36.000Z
2021-11-10T05:33:34.000Z
source/strings/a-stgebo.adb
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
8
2017-11-14T13:05:07.000Z
2018-08-09T15:28:49.000Z
source/strings/a-stgebo.adb
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
9
2015-02-03T17:09:53.000Z
2021-11-12T01:16:05.000Z
package body Ada.Strings.Generic_Bounded is type String_Access is access all String_Type; function Length (Source : Bounded_String) return Natural is begin return Source.Length; end Length; function To_String (Source : Bounded_String) return String_Type is begin return Source.Element (1 .. Source.Length); end To_String; procedure Set_Bounded_String ( Target : out Bounded_String; Source : String_Type; Drop : Truncation := Error) is Source_Length : constant Natural := Source'Length; begin if Source_Length > Target.Capacity then case Drop is when Right => Target.Length := Target.Capacity; Target.Element := Source (Source'First .. Source'First + Target.Capacity - 1); when Left => Target.Length := Target.Capacity; Target.Element := Source (Source'Last - Target.Capacity + 1 .. Source'Last); when Error => raise Length_Error; end case; else Target.Length := Source_Length; Target.Element (1 .. Target.Length) := Source; end if; end Set_Bounded_String; procedure Append ( Source : in out Bounded_String; New_Item : Bounded_String; Drop : Truncation := Error) is begin Append (Source, New_Item.Element (1 .. New_Item.Length), Drop); end Append; procedure Append ( Source : in out Bounded_String; New_Item : String_Type; Drop : Truncation := Error) is New_Item_Length : constant Natural := New_Item'Length; Old_Length : constant Natural := Source.Length; Rest : constant Natural := Source.Capacity - Old_Length; begin if New_Item_Length > Rest then case Drop is when Right => Source.Length := Source.Capacity; Source.Element (Old_Length + 1 .. Source.Capacity) := New_Item (New_Item'First .. New_Item'First + Rest - 1); when Left => Source.Length := Source.Capacity; declare Moving : constant Natural := Integer'Max (Source.Capacity - New_Item_Length, 0); S : constant String_Type (1 .. Moving) := Source.Element (Old_Length - Moving + 1 .. Old_Length); -- Save it before copying for Append (B, B). begin Source.Element (Moving + 1 .. Source.Capacity) := New_Item ( New_Item'Last - (Source.Capacity - Moving) + 1 .. New_Item'Last); Source.Element (1 .. Moving) := S; end; when Error => raise Length_Error; end case; else Source.Length := Old_Length + New_Item_Length; Source.Element (Old_Length + 1 .. Source.Length) := New_Item; end if; end Append; procedure Append_Element ( Source : in out Bounded_String; New_Item : Character_Type; Drop : Truncation := Error) is begin Append (Source, String_Type'(1 => New_Item), Drop); end Append_Element; function Element ( Source : Bounded_String; Index : Positive) return Character_Type is pragma Check (Pre, Index <= Source.Length or else raise Index_Error); begin return Source.Element (Index); end Element; procedure Replace_Element ( Source : in out Bounded_String; Index : Positive; By : Character_Type) is pragma Check (Pre, Index <= Source.Length or else raise Index_Error); begin Source.Element (Index) := By; end Replace_Element; function Slice ( Source : Bounded_String; Low : Positive; High : Natural) return String_Type is pragma Check (Pre, Check => (Low <= Source.Length + 1 and then High <= Source.Length) or else raise Index_Error); -- CXA4034 begin return Source.Element (Low .. High); end Slice; overriding function "=" (Left, Right : Bounded_String) return Boolean is begin return Left.Element (1 .. Left.Length) = Right.Element (1 .. Right.Length); end "="; function "=" (Left : Bounded_String; Right : String_Type) return Boolean is begin return Left.Element (1 .. Left.Length) = Right; end "="; function "=" (Left : String_Type; Right : Bounded_String) return Boolean is begin return Left = Right.Element (1 .. Right.Length); end "="; function "<" (Left, Right : Bounded_String) return Boolean is begin return Left.Element (1 .. Left.Length) < Right.Element (1 .. Right.Length); end "<"; function "<" (Left : Bounded_String; Right : String_Type) return Boolean is begin return Left.Element (1 .. Left.Length) < Right; end "<"; function "<" (Left : String_Type; Right : Bounded_String) return Boolean is begin return Left < Right.Element (1 .. Right.Length); end "<"; function "<=" (Left, Right : Bounded_String) return Boolean is begin return not (Right < Left); end "<="; function "<=" (Left : Bounded_String; Right : String_Type) return Boolean is begin return not (Right < Left); end "<="; function "<=" (Left : String_Type; Right : Bounded_String) return Boolean is begin return not (Right < Left); end "<="; function ">" (Left, Right : Bounded_String) return Boolean is begin return Right < Left; end ">"; function ">" (Left : Bounded_String; Right : String_Type) return Boolean is begin return Right < Left; end ">"; function ">" (Left : String_Type; Right : Bounded_String) return Boolean is begin return Right < Left; end ">"; function ">=" (Left, Right : Bounded_String) return Boolean is begin return not (Left < Right); end ">="; function ">=" (Left : Bounded_String; Right : String_Type) return Boolean is begin return not (Left < Right); end ">="; function ">=" (Left : String_Type; Right : Bounded_String) return Boolean is begin return not (Left < Right); end ">="; function Constant_Reference ( Source : aliased Bounded_String) return Slicing.Constant_Reference_Type is begin return Slicing.Constant_Slice ( String_Access'(Source.Element'Unrestricted_Access).all, 1, Source.Length); end Constant_Reference; function Reference ( Source : aliased in out Bounded_String) return Slicing.Reference_Type is begin return Slicing.Slice ( String_Access'(Source.Element'Unrestricted_Access).all, 1, Source.Length); end Reference; package body Generic_Bounded_Length is function Null_Bounded_String return Bounded_String is begin return (Capacity => Max, Length => 0, Element => <>); end Null_Bounded_String; function To_Bounded_String ( Source : String_Type; Drop : Truncation := Error) return Bounded_String is begin return Result : Bounded_String do Set_Bounded_String (Result, Source, Drop); end return; end To_Bounded_String; function "+" (Source : String_Type) return Bounded_String is begin return To_Bounded_String (Source); end "+"; function Append ( Left, Right : Bounded_String; Drop : Truncation := Error) return Bounded_String is begin return Result : Bounded_String do Assign (Result, Left); Append (Result, Right, Drop); end return; end Append; function Append ( Left : Bounded_String; Right : String_Type; Drop : Truncation := Error) return Bounded_String is begin return Result : Bounded_String do Assign (Result, Left); Append (Result, Right, Drop); end return; end Append; function Append ( Left : String_Type; Right : Bounded_String; Drop : Truncation := Error) return Bounded_String is begin return Result : Bounded_String do Set_Bounded_String (Result, Left, Drop); Append (Result, Right, Drop); end return; end Append; function Append_Element ( Left : Bounded_String; Right : Character_Type; Drop : Truncation := Error) return Bounded_String is begin return Result : Bounded_String do Assign (Result, Left); Append_Element (Result, Right, Drop); end return; end Append_Element; function Append_Element ( Left : Character_Type; Right : Bounded_String; Drop : Truncation := Error) return Bounded_String is begin return Result : Bounded_String do Set_Bounded_String (Result, (1 => Left), Drop); Append (Result, Right, Drop); end return; end Append_Element; function "&" (Left, Right : Bounded_String) return Bounded_String is begin return Append (Left, Right); end "&"; function "&" (Left : Bounded_String; Right : String_Type) return Bounded_String is begin return Append (Left, Right); end "&"; function "&" (Left : String_Type; Right : Bounded_String) return Bounded_String is begin return Append (Left, Right); end "&"; function "&" (Left : Bounded_String; Right : Character_Type) return Bounded_String is begin return Append_Element (Left, Right); end "&"; function "&" (Left : Character_Type; Right : Bounded_String) return Bounded_String is begin return Append_Element (Left, Right); end "&"; function Bounded_Slice ( Source : Bounded_String; Low : Positive; High : Natural) return Bounded_String is begin return Result : Bounded_String do Bounded_Slice (Source, Result, Low, High); -- checking Index_Error end return; end Bounded_Slice; procedure Bounded_Slice ( Source : Bounded_String; Target : out Bounded_String; Low : Positive; High : Natural) is pragma Check (Pre, Check => (Low <= Source.Length + 1 and then High <= Source.Length) or else raise Index_Error); begin -- Target.Length <= Max because High <= Source.Length Target.Length := Integer'Max (High - Low + 1, 0); Target.Element (1 .. Target.Length) := Source.Element (Low .. High); end Bounded_Slice; procedure Assign ( Target : in out Bounded_String; Source : Bounded_String) is begin Target.Element (1 .. Source.Length) := Source.Element (1 .. Source.Length); Target.Length := Source.Length; end Assign; procedure Move ( Target : in out Bounded_String; Source : in out Bounded_String) is begin Assign (Target, Source); Source.Length := 0; end Move; function "*" (Left : Natural; Right : Character_Type) return Bounded_String is begin return Replicate_Element (Left, Right, Error); end "*"; function "*" (Left : Natural; Right : String_Type) return Bounded_String is begin return Replicate (Left, Right, Error); end "*"; function "*" (Left : Natural; Right : Bounded_String) return Bounded_String is begin return Replicate (Left, Right, Error); end "*"; function Replicate_Element ( Count : Natural; Item : Character_Type; Drop : Truncation := Error) return Bounded_String is begin if Count > Max and then Drop = Error then raise Length_Error; else return ( Capacity => Max, Length => Natural'Min (Count, Max), Element => (others => Item)); end if; end Replicate_Element; function Replicate ( Count : Natural; Item : String_Type; Drop : Truncation := Error) return Bounded_String is Item_Length : constant Natural := Item'Length; Total_Length : Natural := Count * Item_Length; Actual_Count : Natural := Count; begin if Total_Length > Max then if Drop = Error then raise Length_Error; end if; Total_Length := Max; Actual_Count := Total_Length / Item_Length; end if; return Result : Bounded_String := (Capacity => Max, Length => Total_Length, Element => <>) do case Drop is when Right | Error => declare Last : Natural := 0; begin for I in 1 .. Actual_Count loop Result.Element (Last + 1 .. Last + Item_Length) := Item; Last := Last + Item_Length; end loop; if Last < Total_Length then Result.Element (Last + 1 .. Total_Length) := Item ( Item'First .. Item'First + Total_Length - (Last + 1)); end if; end; when Left => declare First : Positive := Total_Length + 1; begin for I in 1 .. Actual_Count loop Result.Element (First - Item_Length .. First - 1) := Item; First := First - Item_Length; end loop; if First > 1 then Result.Element (1 .. First - 1) := Item (Item'Last - (First - 1) + 1 .. Item'Last); end if; end; end case; end return; end Replicate; function Replicate ( Count : Natural; Item : Bounded_String; Drop : Truncation := Error) return Bounded_String is begin return Replicate (Count, Item.Element (1 .. Item.Length), Drop); end Replicate; package body Streaming is procedure Read ( Stream : not null access Streams.Root_Stream_Type'Class; Item : out Bounded_String) is First : Integer; Last : Integer; begin Integer'Read (Stream, First); Integer'Read (Stream, Last); declare Length : constant Integer := Last - First + 1; begin if Length > Item.Capacity then raise Length_Error; end if; Item.Length := Length; Read (Stream, Item.Element (1 .. Length)); end; end Read; procedure Write ( Stream : not null access Streams.Root_Stream_Type'Class; Item : Bounded_String) is begin Integer'Write (Stream, 1); Integer'Write (Stream, Item.Length); Write (Stream, Item.Element (1 .. Item.Length)); end Write; function Input ( Stream : not null access Streams.Root_Stream_Type'Class) return Bounded_String is begin return Result : Bounded_String do Read (Stream, Result); end return; end Input; end Streaming; end Generic_Bounded_Length; end Ada.Strings.Generic_Bounded;
30.624762
79
0.552183
1d8c126ec6076ac8f5c5fa0bbbf04fbf533f8666
169
ads
Ada
day22/src/day.ads
jwarwick/aoc_2020
b88e5a69f7ce035c4bc0a2474e0e0cdbb7b43377
[ "MIT" ]
3
2020-12-26T23:44:33.000Z
2021-12-06T16:00:54.000Z
day22/src/day.ads
jwarwick/aoc_2020
b88e5a69f7ce035c4bc0a2474e0e0cdbb7b43377
[ "MIT" ]
null
null
null
day22/src/day.ads
jwarwick/aoc_2020
b88e5a69f7ce035c4bc0a2474e0e0cdbb7b43377
[ "MIT" ]
null
null
null
-- AOC 2020, Day 22 package Day is function combat(filename : in String) return Natural; function recursive_combat(filename : in String) return Natural; end Day;
18.777778
65
0.745562
29b4fd07852a4e2d624babab5496b12d597b0db1
3,458
adb
Ada
tools/css-commands.adb
stcarrez/ada-css
f7c337306094993186c507540701d04a4753b724
[ "Apache-2.0" ]
3
2017-01-03T22:18:22.000Z
2017-01-10T07:58:17.000Z
tools/css-commands.adb
stcarrez/ada-css
f7c337306094993186c507540701d04a4753b724
[ "Apache-2.0" ]
null
null
null
tools/css-commands.adb
stcarrez/ada-css
f7c337306094993186c507540701d04a4753b724
[ "Apache-2.0" ]
null
null
null
----------------------------------------------------------------------- -- css-commands -- Commands for CSS tools -- Copyright (C) 2018 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Ada.Text_IO; with Ada.Command_Line; with CSS.Parser; with CSS.Tools.Configs; with CSS.Commands.Analyze; with CSS.Commands.List; package body CSS.Commands is Analyze_Command : aliased CSS.Commands.Analyze.Command; List_Command : aliased CSS.Commands.List.Command; List_Colors_Command : aliased CSS.Commands.List.Command; List_Length_Command : aliased CSS.Commands.List.Command; Help_Command : aliased CSS.Commands.Drivers.Help_Command_Type; -- ------------------------------ -- Load the CSS files. -- ------------------------------ procedure Load (Args : in Argument_List'Class; Context : in out Context_Type) is begin for I in 1 .. Args.Get_Count loop declare Path : constant String := Args.Get_Argument (I); begin exit when Path'Length = 0; Context.Doc.Set_Href (Path); CSS.Parser.Load (Path, Context.Doc'Unchecked_Access, Context.Err_Handler'Unchecked_Access); end; end loop; end Load; -- ------------------------------ -- Initialize the context. -- ------------------------------ procedure Initialize (Context : in out Context_Type) is begin Driver.Set_Description (CSS.Tools.Configs.RELEASE); Driver.Set_Usage ("[-dpqv] [-o file] [-r file] [-c dir] command file..." & ASCII.LF & " -d Turn on parser debugging" & ASCII.LF & " -v Verbose mode" & ASCII.LF & " -q Quiet mode" & ASCII.LF & " -p Pretty print CSS output" & ASCII.LF & " -o file Generate the CSS output file" & ASCII.LF & " -r file Generate a report about the CSS file" & ASCII.LF & " -c dir Define the path for the configuration directory"); Driver.Add_Command ("help", Help_Command'Access); Driver.Add_Command ("analyze", Analyze_Command'Access); Driver.Add_Command ("list", List_Command'Access); Driver.Add_Command ("list-colors", List_Colors_Command'Access); Driver.Add_Command ("list-length", List_Length_Command'Access); end Initialize; -- ------------------------------ -- Print csstools short usage. -- ------------------------------ procedure Short_Help_Usage is use Ada.Text_IO; begin New_Line; Put ("Type '"); Put (Ada.Command_Line.Command_Name); Put_Line (" help' for the list of commands."); end Short_Help_Usage; end CSS.Commands;
41.662651
103
0.57085
067685c9764b460f71a505b8cc44190f2c89e699
6,654
ads
Ada
src/kvflyweights/basic_untracked_kvflyweights.ads
jhumphry/auto_counters
bc7dfabf82febd09facf90371c8c11a628a06266
[ "0BSD" ]
5
2016-02-22T10:29:26.000Z
2021-12-18T08:20:12.000Z
src/kvflyweights/basic_untracked_kvflyweights.ads
jhumphry/auto_counters
bc7dfabf82febd09facf90371c8c11a628a06266
[ "0BSD" ]
1
2022-02-16T03:38:08.000Z
2022-02-20T21:11:30.000Z
src/kvflyweights/basic_untracked_kvflyweights.ads
jhumphry/auto_counters
bc7dfabf82febd09facf90371c8c11a628a06266
[ "0BSD" ]
null
null
null
-- basic_untracked_kvflyweights.ads -- A package for ensuring resources are not duplicated in a manner similar -- to the C++ Boost flyweight classes. This package provides a non-task-safe -- implementation that does not track or release resources. Resources are -- associated with a key that can be used to create them if they have not -- already been created. -- Copyright (c) 2016, James Humphry -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear in all copies. -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE -- OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -- PERFORMANCE OF THIS SOFTWARE. pragma Profile (No_Implementation_Extensions); with Ada.Containers; with KVFlyweights.Untracked_Lists; with KVFlyweights.Basic_Hashtables; with KVFlyweights.Untracked_Ptrs; generic type Key(<>) is private; type Value(<>) is limited private; type Value_Access is access Value; with function Factory (K : in Key) return Value_Access; with function Hash (K : in Key) return Ada.Containers.Hash_Type; Capacity : Ada.Containers.Hash_Type := 256; with function "=" (Left, Right : in Key) return Boolean is <>; package Basic_Untracked_KVFlyweights is type Key_Access is access Key; package Lists is new KVFlyweights.Untracked_Lists(Key => Key, Key_Access => Key_Access, Value => Value, Value_Access => Value_Access, Factory => Factory, "=" => "="); package Hashtables is new KVFlyweights.Basic_Hashtables(Key => Key, Key_Access => Key_Access, Value => Value, Value_Access => Value_Access, Hash => Hash, KVLists_Spec => Lists.Lists_Spec, Capacity => Capacity); package Ptrs is new KVFlyweights.Untracked_Ptrs(Key => Key, Key_Access => Key_Access, Value => Value, Value_Access => Value_Access, KVFlyweight_Hashtables => Hashtables.Hashtables_Spec); subtype KVFlyweight is Hashtables.KVFlyweight; -- This KVFlyweight type is an implementation of the key-value flyweight -- pattern, which helps prevent the resource usage caused by the storage -- of duplicate values. No reference counting is used so resources aren't -- released until the program terminates. This implementation is not -- protected so it is not safe to use if multiple tasks could attempt to -- add or remove resources simultaneously. subtype V_Ref is Ptrs.V_Ref; -- This is a generic generalised reference type which is used to make -- Value_Ptr easier to use and which should not be stored or reused. subtype Value_Ptr is Ptrs.Untracked_Value_Ptr; -- The Value_Ptr type points to a resource inside a Flyweight. It is -- reference-counted (shared with Value_Ref) so that when the last Value_Ptr -- or Value_Ref pointing to a resource is destroyed, the resource will be -- deallocated as well. The 'Get' function returns an access value to the -- resource. use type Ptrs.Untracked_Value_Ptr; subtype Value_Ref is Ptrs.Untracked_Value_Ref; -- The Value_Ref type points to a resource inside a Flyweight. No reference -- counting is used so resources aren't released until the program -- terminates. The Value_Ref type can be implicitly derefenced to return -- the resource. use type Ptrs.Untracked_Value_Ref; function P (P : Ptrs.Untracked_Value_Ptr) return V_Ref renames Ptrs.P; -- P returns an V_Ref which is a generalised reference to the stored value. -- This is an alternative to calling the Get function and dereferencing the -- access value returned with '.all'. function Get (P : Ptrs.Untracked_Value_Ptr) return Value_Access renames Ptrs.Get; -- Get returns an access value that points to a resource inside a Flyweight. function Get (P : Ptrs.Untracked_Value_Ref) return Value_Access renames Ptrs.Get; -- Get returns an access value that points to a resource inside a Flyweight. function Make_Ref (P : Ptrs.Untracked_Value_Ptr'Class) return Ptrs.Untracked_Value_Ref renames Ptrs.Make_Ref; -- Make_Ref converts a Untracked_Value_Ptr into a Untracked_Value_Ref. function Insert_Ptr (F : aliased in out Hashtables.KVFlyweight; K : in Key) return Ptrs.Untracked_Value_Ptr renames Ptrs.Insert_Ptr; -- Insert_Ref looks to see if the Key K already exists inside the KVFlyweight -- F. If not, F makes a new value from K using the specified Factory function -- and stores it for future use. A Untracked_Value_Ptr is returned. function Make_Ptr (R : Ptrs.Untracked_Value_Ref'Class) return Ptrs.Untracked_Value_Ptr renames Ptrs.Make_Ptr; -- Make_Ref converts a Untracked_Value_Ref into a Untracked_Value_Ptr. function Insert_Ref (F : aliased in out Hashtables.KVFlyweight; K : in Key) return Ptrs.Untracked_Value_Ref renames Ptrs.Insert_Ref; -- Insert_Ref looks to see if the Key K already exists inside the KVFlyweight -- F. If not, F makes a new value from K using the specified Factory function -- and stores it for future use. A Untracked_Value_Ref is returned. -- Note - ideally Insert_Ptr and Insert_Ref could both be overloadings of -- Insert. However this seems to cause problems for GNAT GPL 2015 so for now -- the type is suffixed to the name. end Basic_Untracked_KVFlyweights;
47.528571
91
0.648482
294f4072ba733f5ef51417722b7efd7c03b8f98d
3,297
adb
Ada
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-widllu.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-widllu.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-widllu.adb
orb-zhuchen/Orb
6da2404b949ac28bde786e08bf4debe4a27cd3a0
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . W I D _ L L U -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2019, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ with System.Unsigned_Types; use System.Unsigned_Types; package body System.Wid_LLU is ------------------------------ -- Width_Long_Long_Unsigned -- ------------------------------ function Width_Long_Long_Unsigned (Lo, Hi : Long_Long_Unsigned) return Natural is W : Natural; T : Long_Long_Unsigned; begin if Lo > Hi then return 0; else -- Minimum value is 2, one for sign, one for digit W := 2; -- Get max of absolute values, but avoid bomb if we have the maximum -- negative number (note that First + 1 has same digits as First) T := Long_Long_Unsigned'Max (Lo, Hi); -- Increase value if more digits required while T >= 10 loop T := T / 10; W := W + 1; end loop; return W; end if; end Width_Long_Long_Unsigned; end System.Wid_LLU;
44.554054
78
0.4128
31bc440398b01484321ff16baf565f1052cbec7e
7,361
ads
Ada
source/strings/a-ueaswi.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
33
2015-04-04T09:19:36.000Z
2021-11-10T05:33:34.000Z
source/strings/a-ueaswi.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
8
2017-11-14T13:05:07.000Z
2018-08-09T15:28:49.000Z
source/strings/a-ueaswi.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
9
2015-02-03T17:09:53.000Z
2021-11-12T01:16:05.000Z
pragma License (Unrestricted); -- implementation unit, translated from DerivedEastAsianWidth.txt package Ada.UCD.East_Asian_Width is pragma Pure; type Run_Length_13 is mod 2 ** 13; type Run_Length_29 is mod 2 ** 29; type Table_16_Item_Type is record Start : UCS_2; Length : Run_Length_13; Width : East_Asian_Width_Type; end record; pragma Suppress_Initialization (Table_16_Item_Type); for Table_16_Item_Type'Size use 32; -- 16 + 13 + 3 for Table_16_Item_Type use record Start at 0 range 0 .. 15; Length at 0 range 16 .. 28; Width at 0 range 29 .. 31; end record; type Table_16_Type is array (Positive range <>) of Table_16_Item_Type; pragma Suppress_Initialization (Table_16_Type); for Table_16_Type'Component_Size use 32; type Table_32_Item_Type is record Start : UCS_4; Length : Run_Length_29; Width : East_Asian_Width_Type; end record; pragma Suppress_Initialization (Table_32_Item_Type); for Table_32_Item_Type'Size use 64; -- 32 + 29 + 3 for Table_32_Item_Type use record Start at 0 range 0 .. 31; Length at 0 range 32 .. 60; Width at 0 range 61 .. 63; end record; type Table_32_Type is array (Positive range <>) of Table_32_Item_Type; pragma Suppress_Initialization (Table_32_Type); for Table_32_Type'Component_Size use 64; subtype Table_XXXX_Type is Table_16_Type (1 .. 216); subtype Table_1XXXX_Type is Table_16_Type (217 .. 225); subtype Table_XXXXXXXX_Type is Table_32_Type (226 .. 230); Table_XXXX : constant Table_XXXX_Type := ( (16#0020#, 95, Na), (16#00A1#, 1, A), (16#00A2#, 2, Na), (16#00A4#, 1, A), (16#00A5#, 2, Na), (16#00A7#, 2, A), (16#00AA#, 1, A), (16#00AC#, 1, Na), (16#00AD#, 2, A), (16#00AF#, 1, Na), (16#00B0#, 5, A), (16#00B6#, 5, A), (16#00BC#, 4, A), (16#00C6#, 1, A), (16#00D0#, 1, A), (16#00D7#, 2, A), (16#00DE#, 4, A), (16#00E6#, 1, A), (16#00E8#, 3, A), (16#00EC#, 2, A), (16#00F0#, 1, A), (16#00F2#, 2, A), (16#00F7#, 4, A), (16#00FC#, 1, A), (16#00FE#, 1, A), (16#0101#, 1, A), (16#0111#, 1, A), (16#0113#, 1, A), (16#011B#, 1, A), (16#0126#, 2, A), (16#012B#, 1, A), (16#0131#, 3, A), (16#0138#, 1, A), (16#013F#, 4, A), (16#0144#, 1, A), (16#0148#, 4, A), (16#014D#, 1, A), (16#0152#, 2, A), (16#0166#, 2, A), (16#016B#, 1, A), (16#01CE#, 1, A), (16#01D0#, 1, A), (16#01D2#, 1, A), (16#01D4#, 1, A), (16#01D6#, 1, A), (16#01D8#, 1, A), (16#01DA#, 1, A), (16#01DC#, 1, A), (16#0251#, 1, A), (16#0261#, 1, A), (16#02C4#, 1, A), (16#02C7#, 1, A), (16#02C9#, 3, A), (16#02CD#, 1, A), (16#02D0#, 1, A), (16#02D8#, 4, A), (16#02DD#, 1, A), (16#02DF#, 1, A), (16#0300#, 112, A), (16#0391#, 17, A), (16#03A3#, 7, A), (16#03B1#, 17, A), (16#03C3#, 7, A), (16#0401#, 1, A), (16#0410#, 64, A), (16#0451#, 1, A), (16#1100#, 96, W), (16#11A3#, 5, W), (16#11FA#, 6, W), (16#2010#, 1, A), (16#2013#, 4, A), (16#2018#, 2, A), (16#201C#, 2, A), (16#2020#, 3, A), (16#2024#, 4, A), (16#2030#, 1, A), (16#2032#, 2, A), (16#2035#, 1, A), (16#203B#, 1, A), (16#203E#, 1, A), (16#2074#, 1, A), (16#207F#, 1, A), (16#2081#, 4, A), (16#20A9#, 1, H), (16#20AC#, 1, A), (16#2103#, 1, A), (16#2105#, 1, A), (16#2109#, 1, A), (16#2113#, 1, A), (16#2116#, 1, A), (16#2121#, 2, A), (16#2126#, 1, A), (16#212B#, 1, A), (16#2153#, 2, A), (16#215B#, 4, A), (16#2160#, 12, A), (16#2170#, 10, A), (16#2189#, 1, A), (16#2190#, 10, A), (16#21B8#, 2, A), (16#21D2#, 1, A), (16#21D4#, 1, A), (16#21E7#, 1, A), (16#2200#, 1, A), (16#2202#, 2, A), (16#2207#, 2, A), (16#220B#, 1, A), (16#220F#, 1, A), (16#2211#, 1, A), (16#2215#, 1, A), (16#221A#, 1, A), (16#221D#, 4, A), (16#2223#, 1, A), (16#2225#, 1, A), (16#2227#, 6, A), (16#222E#, 1, A), (16#2234#, 4, A), (16#223C#, 2, A), (16#2248#, 1, A), (16#224C#, 1, A), (16#2252#, 1, A), (16#2260#, 2, A), (16#2264#, 4, A), (16#226A#, 2, A), (16#226E#, 2, A), (16#2282#, 2, A), (16#2286#, 2, A), (16#2295#, 1, A), (16#2299#, 1, A), (16#22A5#, 1, A), (16#22BF#, 1, A), (16#2312#, 1, A), (16#2329#, 2, W), (16#2460#, 138, A), (16#24EB#, 97, A), (16#2550#, 36, A), (16#2580#, 16, A), (16#2592#, 4, A), (16#25A0#, 2, A), (16#25A3#, 7, A), (16#25B2#, 2, A), (16#25B6#, 2, A), (16#25BC#, 2, A), (16#25C0#, 2, A), (16#25C6#, 3, A), (16#25CB#, 1, A), (16#25CE#, 4, A), (16#25E2#, 4, A), (16#25EF#, 1, A), (16#2605#, 2, A), (16#2609#, 1, A), (16#260E#, 2, A), (16#2614#, 2, A), (16#261C#, 1, A), (16#261E#, 1, A), (16#2640#, 1, A), (16#2642#, 1, A), (16#2660#, 2, A), (16#2663#, 3, A), (16#2667#, 4, A), (16#266C#, 2, A), (16#266F#, 1, A), (16#269E#, 2, A), (16#26BE#, 2, A), (16#26C4#, 10, A), (16#26CF#, 19, A), (16#26E3#, 1, A), (16#26E8#, 24, A), (16#273D#, 1, A), (16#2757#, 1, A), (16#2776#, 10, A), (16#27E6#, 8, Na), (16#2985#, 2, Na), (16#2B55#, 5, A), (16#2E80#, 26, W), (16#2E9B#, 89, W), (16#2F00#, 214, W), (16#2FF0#, 12, W), (16#3000#, 1, F), (16#3001#, 62, W), (16#3041#, 86, W), (16#3099#, 103, W), (16#3105#, 41, W), (16#3131#, 94, W), (16#3190#, 43, W), (16#31C0#, 36, W), (16#31F0#, 47, W), (16#3220#, 40, W), (16#3248#, 8, A), (16#3250#, 175, W), (16#3300#, 6848, W), (16#4E00#, 8191, W), (16#6DFF#, 8191, W), (16#8DFE#, 5775, W), (16#A490#, 55, W), (16#A960#, 29, W), (16#AC00#, 8191, W), (16#CBFF#, 2981, W), (16#D7B0#, 23, W), (16#D7CB#, 49, W), (16#E000#, 6400, A), (16#F900#, 512, W), (16#FE00#, 16, A), (16#FE10#, 10, W), (16#FE30#, 35, W), (16#FE54#, 19, W), (16#FE68#, 4, W), (16#FF01#, 96, F), (16#FF61#, 94, H), (16#FFC2#, 6, H), (16#FFCA#, 6, H), (16#FFD2#, 6, H), (16#FFDA#, 3, H), (16#FFE0#, 7, F), (16#FFE8#, 7, H), (16#FFFD#, 1, A)); Table_1XXXX : constant Table_1XXXX_Type := ( (16#B000#, 2, W), (16#F100#, 11, A), (16#F110#, 30, A), (16#F130#, 58, A), (16#F170#, 43, A), (16#F200#, 3, W), (16#F210#, 43, W), (16#F240#, 9, W), (16#F250#, 2, W)); Table_XXXXXXXX : constant Table_XXXXXXXX_Type := ( (16#20000#, 65534, W), (16#30000#, 65534, W), (16#E0100#, 240, A), (16#F0000#, 65534, A), (16#100000#, 65534, A)); end Ada.UCD.East_Asian_Width;
25.737762
73
0.432414
3122400b533004b8e490a07a8c5212b39ca89609
1,499
ads
Ada
source/server/ada_lsp-ada_parser_data.ads
reznikmm/ada_lsp
b0e2666f758d6e46b973b5d7e4b9a7ba66c46157
[ "MIT" ]
11
2017-10-18T18:22:04.000Z
2022-01-01T12:22:23.000Z
source/server/ada_lsp-ada_parser_data.ads
reznikmm/ada_lsp
b0e2666f758d6e46b973b5d7e4b9a7ba66c46157
[ "MIT" ]
null
null
null
source/server/ada_lsp-ada_parser_data.ads
reznikmm/ada_lsp
b0e2666f758d6e46b973b5d7e4b9a7ba66c46157
[ "MIT" ]
1
2019-09-14T23:13:33.000Z
2019-09-14T23:13:33.000Z
-- Copyright (c) 2017 Maxim Reznik <[email protected]> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Incr.Documents; with Incr.Nodes; with Incr.Parsers.Incremental; package Ada_LSP.Ada_Parser_Data is package P renames Incr.Parsers.Incremental.Parser_Data_Providers; type Provider is abstract new P.Parser_Data_Provider with null record; type Provider_Access is access constant Provider'Class; overriding function Actions (Self : Provider) return P.Action_Table_Access; overriding function Part_Counts (Self : Provider) return P.Parts_Count_Table_Access; overriding function States (Self : Provider) return P.State_Table_Access; overriding function Kind_Image (Self : Provider; Kind : Incr.Nodes.Node_Kind) return Wide_Wide_String; not overriding function Is_Defining_Name (Self : Provider; Kind : Incr.Nodes.Node_Kind) return Boolean is abstract; type Node_Factory (Document : Incr.Documents.Document_Access) is new P.Node_Factory with null record; overriding procedure Create_Node (Self : aliased in out Node_Factory; Prod : P.Production_Index; Children : Incr.Nodes.Node_Array; Node : out Incr.Nodes.Node_Access; Kind : out Incr.Nodes.Node_Kind); private type Node_Kind_Array is array (P.Production_Index range <>) of Incr.Nodes.Node_Kind; end Ada_LSP.Ada_Parser_Data;
29.392157
73
0.70447
4d0cad2af4a1ec26c3552355034f19c8e4c1d2e4
18,778
ads
Ada
bb-runtimes/arm/stm32/stm32f429x/svd/i-stm32-usart.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/arm/stm32/stm32f429x/svd/i-stm32-usart.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/arm/stm32/stm32f429x/svd/i-stm32-usart.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
-- -- Copyright (C) 2017, AdaCore -- -- This spec has been automatically generated from STM32F429x.svd pragma Ada_2012; pragma Style_Checks (Off); with System; package Interfaces.STM32.USART is pragma Preelaborate; pragma No_Elaboration_Code_All; --------------- -- Registers -- --------------- subtype SR_PE_Field is Interfaces.STM32.Bit; subtype SR_FE_Field is Interfaces.STM32.Bit; subtype SR_NF_Field is Interfaces.STM32.Bit; subtype SR_ORE_Field is Interfaces.STM32.Bit; subtype SR_IDLE_Field is Interfaces.STM32.Bit; subtype SR_RXNE_Field is Interfaces.STM32.Bit; subtype SR_TC_Field is Interfaces.STM32.Bit; subtype SR_TXE_Field is Interfaces.STM32.Bit; subtype SR_LBD_Field is Interfaces.STM32.Bit; -- Status register type SR_Register is record -- Read-only. Parity error PE : SR_PE_Field := 16#0#; -- Read-only. Framing error FE : SR_FE_Field := 16#0#; -- Read-only. Noise detected flag NF : SR_NF_Field := 16#0#; -- Read-only. Overrun error ORE : SR_ORE_Field := 16#0#; -- Read-only. IDLE line detected IDLE : SR_IDLE_Field := 16#0#; -- Read data register not empty RXNE : SR_RXNE_Field := 16#0#; -- Transmission complete TC : SR_TC_Field := 16#0#; -- Read-only. Transmit data register empty TXE : SR_TXE_Field := 16#0#; -- LIN break detection flag LBD : SR_LBD_Field := 16#0#; -- unspecified Reserved_9_31 : Interfaces.STM32.UInt23 := 16#6000#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SR_Register use record PE at 0 range 0 .. 0; FE at 0 range 1 .. 1; NF at 0 range 2 .. 2; ORE at 0 range 3 .. 3; IDLE at 0 range 4 .. 4; RXNE at 0 range 5 .. 5; TC at 0 range 6 .. 6; TXE at 0 range 7 .. 7; LBD at 0 range 8 .. 8; Reserved_9_31 at 0 range 9 .. 31; end record; subtype DR_DR_Field is Interfaces.STM32.UInt9; -- Data register type DR_Register is record -- Data value DR : DR_DR_Field := 16#0#; -- unspecified Reserved_9_31 : Interfaces.STM32.UInt23 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DR_Register use record DR at 0 range 0 .. 8; Reserved_9_31 at 0 range 9 .. 31; end record; subtype BRR_DIV_Fraction_Field is Interfaces.STM32.UInt4; subtype BRR_DIV_Mantissa_Field is Interfaces.STM32.UInt12; -- Baud rate register type BRR_Register is record -- fraction of USARTDIV DIV_Fraction : BRR_DIV_Fraction_Field := 16#0#; -- mantissa of USARTDIV DIV_Mantissa : BRR_DIV_Mantissa_Field := 16#0#; -- unspecified Reserved_16_31 : Interfaces.STM32.UInt16 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for BRR_Register use record DIV_Fraction at 0 range 0 .. 3; DIV_Mantissa at 0 range 4 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CR1_SBK_Field is Interfaces.STM32.Bit; subtype CR1_RWU_Field is Interfaces.STM32.Bit; subtype CR1_RE_Field is Interfaces.STM32.Bit; subtype CR1_TE_Field is Interfaces.STM32.Bit; subtype CR1_IDLEIE_Field is Interfaces.STM32.Bit; subtype CR1_RXNEIE_Field is Interfaces.STM32.Bit; subtype CR1_TCIE_Field is Interfaces.STM32.Bit; subtype CR1_TXEIE_Field is Interfaces.STM32.Bit; subtype CR1_PEIE_Field is Interfaces.STM32.Bit; subtype CR1_PS_Field is Interfaces.STM32.Bit; subtype CR1_PCE_Field is Interfaces.STM32.Bit; subtype CR1_WAKE_Field is Interfaces.STM32.Bit; subtype CR1_M_Field is Interfaces.STM32.Bit; subtype CR1_UE_Field is Interfaces.STM32.Bit; subtype CR1_OVER8_Field is Interfaces.STM32.Bit; -- Control register 1 type CR1_Register is record -- Send break SBK : CR1_SBK_Field := 16#0#; -- Receiver wakeup RWU : CR1_RWU_Field := 16#0#; -- Receiver enable RE : CR1_RE_Field := 16#0#; -- Transmitter enable TE : CR1_TE_Field := 16#0#; -- IDLE interrupt enable IDLEIE : CR1_IDLEIE_Field := 16#0#; -- RXNE interrupt enable RXNEIE : CR1_RXNEIE_Field := 16#0#; -- Transmission complete interrupt enable TCIE : CR1_TCIE_Field := 16#0#; -- TXE interrupt enable TXEIE : CR1_TXEIE_Field := 16#0#; -- PE interrupt enable PEIE : CR1_PEIE_Field := 16#0#; -- Parity selection PS : CR1_PS_Field := 16#0#; -- Parity control enable PCE : CR1_PCE_Field := 16#0#; -- Wakeup method WAKE : CR1_WAKE_Field := 16#0#; -- Word length M : CR1_M_Field := 16#0#; -- USART enable UE : CR1_UE_Field := 16#0#; -- unspecified Reserved_14_14 : Interfaces.STM32.Bit := 16#0#; -- Oversampling mode OVER8 : CR1_OVER8_Field := 16#0#; -- unspecified Reserved_16_31 : Interfaces.STM32.UInt16 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CR1_Register use record SBK at 0 range 0 .. 0; RWU at 0 range 1 .. 1; RE at 0 range 2 .. 2; TE at 0 range 3 .. 3; IDLEIE at 0 range 4 .. 4; RXNEIE at 0 range 5 .. 5; TCIE at 0 range 6 .. 6; TXEIE at 0 range 7 .. 7; PEIE at 0 range 8 .. 8; PS at 0 range 9 .. 9; PCE at 0 range 10 .. 10; WAKE at 0 range 11 .. 11; M at 0 range 12 .. 12; UE at 0 range 13 .. 13; Reserved_14_14 at 0 range 14 .. 14; OVER8 at 0 range 15 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CR2_ADD_Field is Interfaces.STM32.UInt4; subtype CR2_LBDL_Field is Interfaces.STM32.Bit; subtype CR2_LBDIE_Field is Interfaces.STM32.Bit; subtype CR2_STOP_Field is Interfaces.STM32.UInt2; subtype CR2_LINEN_Field is Interfaces.STM32.Bit; -- Control register 2 type CR2_Register is record -- Address of the USART node ADD : CR2_ADD_Field := 16#0#; -- unspecified Reserved_4_4 : Interfaces.STM32.Bit := 16#0#; -- lin break detection length LBDL : CR2_LBDL_Field := 16#0#; -- LIN break detection interrupt enable LBDIE : CR2_LBDIE_Field := 16#0#; -- unspecified Reserved_7_11 : Interfaces.STM32.UInt5 := 16#0#; -- STOP bits STOP : CR2_STOP_Field := 16#0#; -- LIN mode enable LINEN : CR2_LINEN_Field := 16#0#; -- unspecified Reserved_15_31 : Interfaces.STM32.UInt17 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CR2_Register use record ADD at 0 range 0 .. 3; Reserved_4_4 at 0 range 4 .. 4; LBDL at 0 range 5 .. 5; LBDIE at 0 range 6 .. 6; Reserved_7_11 at 0 range 7 .. 11; STOP at 0 range 12 .. 13; LINEN at 0 range 14 .. 14; Reserved_15_31 at 0 range 15 .. 31; end record; subtype CR3_EIE_Field is Interfaces.STM32.Bit; subtype CR3_IREN_Field is Interfaces.STM32.Bit; subtype CR3_IRLP_Field is Interfaces.STM32.Bit; subtype CR3_HDSEL_Field is Interfaces.STM32.Bit; subtype CR3_DMAR_Field is Interfaces.STM32.Bit; subtype CR3_DMAT_Field is Interfaces.STM32.Bit; subtype CR3_ONEBIT_Field is Interfaces.STM32.Bit; -- Control register 3 type CR3_Register is record -- Error interrupt enable EIE : CR3_EIE_Field := 16#0#; -- IrDA mode enable IREN : CR3_IREN_Field := 16#0#; -- IrDA low-power IRLP : CR3_IRLP_Field := 16#0#; -- Half-duplex selection HDSEL : CR3_HDSEL_Field := 16#0#; -- unspecified Reserved_4_5 : Interfaces.STM32.UInt2 := 16#0#; -- DMA enable receiver DMAR : CR3_DMAR_Field := 16#0#; -- DMA enable transmitter DMAT : CR3_DMAT_Field := 16#0#; -- unspecified Reserved_8_10 : Interfaces.STM32.UInt3 := 16#0#; -- One sample bit method enable ONEBIT : CR3_ONEBIT_Field := 16#0#; -- unspecified Reserved_12_31 : Interfaces.STM32.UInt20 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CR3_Register use record EIE at 0 range 0 .. 0; IREN at 0 range 1 .. 1; IRLP at 0 range 2 .. 2; HDSEL at 0 range 3 .. 3; Reserved_4_5 at 0 range 4 .. 5; DMAR at 0 range 6 .. 6; DMAT at 0 range 7 .. 7; Reserved_8_10 at 0 range 8 .. 10; ONEBIT at 0 range 11 .. 11; Reserved_12_31 at 0 range 12 .. 31; end record; subtype SR_CTS_Field is Interfaces.STM32.Bit; -- Status register type SR_Register_1 is record -- Read-only. Parity error PE : SR_PE_Field := 16#0#; -- Read-only. Framing error FE : SR_FE_Field := 16#0#; -- Read-only. Noise detected flag NF : SR_NF_Field := 16#0#; -- Read-only. Overrun error ORE : SR_ORE_Field := 16#0#; -- Read-only. IDLE line detected IDLE : SR_IDLE_Field := 16#0#; -- Read data register not empty RXNE : SR_RXNE_Field := 16#0#; -- Transmission complete TC : SR_TC_Field := 16#0#; -- Read-only. Transmit data register empty TXE : SR_TXE_Field := 16#0#; -- LIN break detection flag LBD : SR_LBD_Field := 16#0#; -- CTS flag CTS : SR_CTS_Field := 16#0#; -- unspecified Reserved_10_31 : Interfaces.STM32.UInt22 := 16#3000#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for SR_Register_1 use record PE at 0 range 0 .. 0; FE at 0 range 1 .. 1; NF at 0 range 2 .. 2; ORE at 0 range 3 .. 3; IDLE at 0 range 4 .. 4; RXNE at 0 range 5 .. 5; TC at 0 range 6 .. 6; TXE at 0 range 7 .. 7; LBD at 0 range 8 .. 8; CTS at 0 range 9 .. 9; Reserved_10_31 at 0 range 10 .. 31; end record; subtype CR2_LBCL_Field is Interfaces.STM32.Bit; subtype CR2_CPHA_Field is Interfaces.STM32.Bit; subtype CR2_CPOL_Field is Interfaces.STM32.Bit; subtype CR2_CLKEN_Field is Interfaces.STM32.Bit; -- Control register 2 type CR2_Register_1 is record -- Address of the USART node ADD : CR2_ADD_Field := 16#0#; -- unspecified Reserved_4_4 : Interfaces.STM32.Bit := 16#0#; -- lin break detection length LBDL : CR2_LBDL_Field := 16#0#; -- LIN break detection interrupt enable LBDIE : CR2_LBDIE_Field := 16#0#; -- unspecified Reserved_7_7 : Interfaces.STM32.Bit := 16#0#; -- Last bit clock pulse LBCL : CR2_LBCL_Field := 16#0#; -- Clock phase CPHA : CR2_CPHA_Field := 16#0#; -- Clock polarity CPOL : CR2_CPOL_Field := 16#0#; -- Clock enable CLKEN : CR2_CLKEN_Field := 16#0#; -- STOP bits STOP : CR2_STOP_Field := 16#0#; -- LIN mode enable LINEN : CR2_LINEN_Field := 16#0#; -- unspecified Reserved_15_31 : Interfaces.STM32.UInt17 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CR2_Register_1 use record ADD at 0 range 0 .. 3; Reserved_4_4 at 0 range 4 .. 4; LBDL at 0 range 5 .. 5; LBDIE at 0 range 6 .. 6; Reserved_7_7 at 0 range 7 .. 7; LBCL at 0 range 8 .. 8; CPHA at 0 range 9 .. 9; CPOL at 0 range 10 .. 10; CLKEN at 0 range 11 .. 11; STOP at 0 range 12 .. 13; LINEN at 0 range 14 .. 14; Reserved_15_31 at 0 range 15 .. 31; end record; subtype CR3_NACK_Field is Interfaces.STM32.Bit; subtype CR3_SCEN_Field is Interfaces.STM32.Bit; subtype CR3_RTSE_Field is Interfaces.STM32.Bit; subtype CR3_CTSE_Field is Interfaces.STM32.Bit; subtype CR3_CTSIE_Field is Interfaces.STM32.Bit; -- Control register 3 type CR3_Register_1 is record -- Error interrupt enable EIE : CR3_EIE_Field := 16#0#; -- IrDA mode enable IREN : CR3_IREN_Field := 16#0#; -- IrDA low-power IRLP : CR3_IRLP_Field := 16#0#; -- Half-duplex selection HDSEL : CR3_HDSEL_Field := 16#0#; -- Smartcard NACK enable NACK : CR3_NACK_Field := 16#0#; -- Smartcard mode enable SCEN : CR3_SCEN_Field := 16#0#; -- DMA enable receiver DMAR : CR3_DMAR_Field := 16#0#; -- DMA enable transmitter DMAT : CR3_DMAT_Field := 16#0#; -- RTS enable RTSE : CR3_RTSE_Field := 16#0#; -- CTS enable CTSE : CR3_CTSE_Field := 16#0#; -- CTS interrupt enable CTSIE : CR3_CTSIE_Field := 16#0#; -- One sample bit method enable ONEBIT : CR3_ONEBIT_Field := 16#0#; -- unspecified Reserved_12_31 : Interfaces.STM32.UInt20 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for CR3_Register_1 use record EIE at 0 range 0 .. 0; IREN at 0 range 1 .. 1; IRLP at 0 range 2 .. 2; HDSEL at 0 range 3 .. 3; NACK at 0 range 4 .. 4; SCEN at 0 range 5 .. 5; DMAR at 0 range 6 .. 6; DMAT at 0 range 7 .. 7; RTSE at 0 range 8 .. 8; CTSE at 0 range 9 .. 9; CTSIE at 0 range 10 .. 10; ONEBIT at 0 range 11 .. 11; Reserved_12_31 at 0 range 12 .. 31; end record; subtype GTPR_PSC_Field is Interfaces.STM32.Byte; subtype GTPR_GT_Field is Interfaces.STM32.Byte; -- Guard time and prescaler register type GTPR_Register is record -- Prescaler value PSC : GTPR_PSC_Field := 16#0#; -- Guard time value GT : GTPR_GT_Field := 16#0#; -- unspecified Reserved_16_31 : Interfaces.STM32.UInt16 := 16#0#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for GTPR_Register use record PSC at 0 range 0 .. 7; GT at 0 range 8 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- Universal synchronous asynchronous receiver transmitter type UART4_Peripheral is record -- Status register SR : aliased SR_Register; -- Data register DR : aliased DR_Register; -- Baud rate register BRR : aliased BRR_Register; -- Control register 1 CR1 : aliased CR1_Register; -- Control register 2 CR2 : aliased CR2_Register; -- Control register 3 CR3 : aliased CR3_Register; end record with Volatile; for UART4_Peripheral use record SR at 16#0# range 0 .. 31; DR at 16#4# range 0 .. 31; BRR at 16#8# range 0 .. 31; CR1 at 16#C# range 0 .. 31; CR2 at 16#10# range 0 .. 31; CR3 at 16#14# range 0 .. 31; end record; -- Universal synchronous asynchronous receiver transmitter UART4_Periph : aliased UART4_Peripheral with Import, Address => System'To_Address (16#40004C00#); -- Universal synchronous asynchronous receiver transmitter UART5_Periph : aliased UART4_Peripheral with Import, Address => System'To_Address (16#40005000#); -- Universal synchronous asynchronous receiver transmitter UART7_Periph : aliased UART4_Peripheral with Import, Address => System'To_Address (16#40007800#); -- Universal synchronous asynchronous receiver transmitter UART8_Periph : aliased UART4_Peripheral with Import, Address => System'To_Address (16#40007C00#); -- Universal synchronous asynchronous receiver transmitter type USART1_Peripheral is record -- Status register SR : aliased SR_Register_1; -- Data register DR : aliased DR_Register; -- Baud rate register BRR : aliased BRR_Register; -- Control register 1 CR1 : aliased CR1_Register; -- Control register 2 CR2 : aliased CR2_Register_1; -- Control register 3 CR3 : aliased CR3_Register_1; -- Guard time and prescaler register GTPR : aliased GTPR_Register; end record with Volatile; for USART1_Peripheral use record SR at 16#0# range 0 .. 31; DR at 16#4# range 0 .. 31; BRR at 16#8# range 0 .. 31; CR1 at 16#C# range 0 .. 31; CR2 at 16#10# range 0 .. 31; CR3 at 16#14# range 0 .. 31; GTPR at 16#18# range 0 .. 31; end record; -- Universal synchronous asynchronous receiver transmitter USART1_Periph : aliased USART1_Peripheral with Import, Address => System'To_Address (16#40011000#); -- Universal synchronous asynchronous receiver transmitter USART2_Periph : aliased USART1_Peripheral with Import, Address => System'To_Address (16#40004400#); -- Universal synchronous asynchronous receiver transmitter USART3_Periph : aliased USART1_Peripheral with Import, Address => System'To_Address (16#40004800#); -- Universal synchronous asynchronous receiver transmitter USART6_Periph : aliased USART1_Peripheral with Import, Address => System'To_Address (16#40011400#); end Interfaces.STM32.USART;
35.430189
66
0.5761
2fafcd677941b764adfd49e4ebc33799c90c4b63
1,098
adb
Ada
icasrc/pedestrianlightswitcher.adb
bhayward93/Ada-Traffic-Light-Sim
046bdc537a1365191aea142f31d36db53adf6e30
[ "MIT" ]
null
null
null
icasrc/pedestrianlightswitcher.adb
bhayward93/Ada-Traffic-Light-Sim
046bdc537a1365191aea142f31d36db53adf6e30
[ "MIT" ]
null
null
null
icasrc/pedestrianlightswitcher.adb
bhayward93/Ada-Traffic-Light-Sim
046bdc537a1365191aea142f31d36db53adf6e30
[ "MIT" ]
null
null
null
with HWIF;use HWIF; with HWIF_Types; use HWIF_Types; with Ada.Text_IO; use Ada.Text_IO; with TrafficLightSwitcher; procedure PedestrianLightSwitcher (dir : in Direction) is begin Pedestrian_Wait(dir) := 1; --Wait light on. loop exit when ((Traffic_Light(North) = 4) and (Traffic_Light(South) = 4) and (Traffic_Light(East) = 4) and (Traffic_Light(West) = 4)); delay 1.0; for directionItt in Direction loop if Traffic_Light(directionItt) = 1 then TrafficLightSwitcher(directionItt); end if; end loop; end loop; --Put_Line("PedWait off"); Pedestrian_Wait(dir) := 0; --Put_Line("PedLight green"); Pedestrian_Light(dir) := 1; --Green light on. delay 6.0; --Req: 6 seconds of pedestrian green time. Pedestrian_Light(dir) := 2; --Red light on. Pedestrian_Wait(dir) := 0; --Not Pressed Put_Line("PedLight red"); end; --red, amber and green lights for motor vehicles --red and green lights for pedestrians, --a button for pedestrians to press
31.371429
62
0.635701
594847cc97d4c144f72756c98b0f4601e3ecff9e
801
ads
Ada
gnu/src/gdb/gdb/testsuite/gdb.ada/widewide/pck.ads
ghsecuritylab/ellcc-mirror
b03a4afac74d50cf0987554b8c0cd8209bcb92a2
[ "BSD-2-Clause" ]
null
null
null
gnu/src/gdb/gdb/testsuite/gdb.ada/widewide/pck.ads
ghsecuritylab/ellcc-mirror
b03a4afac74d50cf0987554b8c0cd8209bcb92a2
[ "BSD-2-Clause" ]
null
null
null
gnu/src/gdb/gdb/testsuite/gdb.ada/widewide/pck.ads
ghsecuritylab/ellcc-mirror
b03a4afac74d50cf0987554b8c0cd8209bcb92a2
[ "BSD-2-Clause" ]
null
null
null
-- Copyright 2011-2015 Free Software Foundation, Inc. -- -- This program 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 3 of the License, or -- (at your option) any later version. -- -- This program 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 this program. If not, see <http://www.gnu.org/licenses/>. with System; package Pck is procedure Do_Nothing (A : System.Address); end Pck;
34.826087
73
0.735331
2f32ffc7654176407372ee78ec7b1f46086d08bc
3,043
ads
Ada
bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/s-valflt.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/s-valflt.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/runtimes/ravenscar-full-stm32f3x4/gnat/s-valflt.ads
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . V A L _ F L T -- -- -- -- S p e c -- -- -- -- Copyright (C) 2020-2021, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- -- -- -- -- -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package contains routines for scanning real values for floating point -- type Float, for use in Text_IO.Float_IO and the Value attribute. with System.Powten_Flt; with System.Unsigned_Types; with System.Val_Real; package System.Val_Flt is pragma Preelaborate; package Impl is new Val_Real (Float, System.Powten_Flt.Maxpow, System.Powten_Flt.Powten'Address, Unsigned_Types.Unsigned); function Scan_Float (Str : String; Ptr : not null access Integer; Max : Integer) return Float renames Impl.Scan_Real; function Value_Float (Str : String) return Float renames Impl.Value_Real; end System.Val_Flt;
52.465517
78
0.389747
29a5b17936bbe2ba8240223758098d99d01570aa
4,068
ads
Ada
source/nodes/program-nodes-record_aggregates.ads
optikos/oasis
9f64d46d26d964790d69f9db681c874cfb3bf96d
[ "MIT" ]
null
null
null
source/nodes/program-nodes-record_aggregates.ads
optikos/oasis
9f64d46d26d964790d69f9db681c874cfb3bf96d
[ "MIT" ]
null
null
null
source/nodes/program-nodes-record_aggregates.ads
optikos/oasis
9f64d46d26d964790d69f9db681c874cfb3bf96d
[ "MIT" ]
2
2019-09-14T23:18:50.000Z
2019-10-02T10:11:40.000Z
-- Copyright (c) 2019 Maxim Reznik <[email protected]> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Record_Component_Associations; with Program.Elements.Record_Aggregates; with Program.Element_Visitors; package Program.Nodes.Record_Aggregates is pragma Preelaborate; type Record_Aggregate is new Program.Nodes.Node and Program.Elements.Record_Aggregates.Record_Aggregate and Program.Elements.Record_Aggregates.Record_Aggregate_Text with private; function Create (Left_Bracket_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Components : Program.Elements.Record_Component_Associations .Record_Component_Association_Vector_Access; Right_Bracket_Token : not null Program.Lexical_Elements .Lexical_Element_Access) return Record_Aggregate; type Implicit_Record_Aggregate is new Program.Nodes.Node and Program.Elements.Record_Aggregates.Record_Aggregate with private; function Create (Components : Program.Elements.Record_Component_Associations .Record_Component_Association_Vector_Access; Is_Part_Of_Implicit : Boolean := False; Is_Part_Of_Inherited : Boolean := False; Is_Part_Of_Instance : Boolean := False) return Implicit_Record_Aggregate with Pre => Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance; private type Base_Record_Aggregate is abstract new Program.Nodes.Node and Program.Elements.Record_Aggregates.Record_Aggregate with record Components : Program.Elements.Record_Component_Associations .Record_Component_Association_Vector_Access; end record; procedure Initialize (Self : aliased in out Base_Record_Aggregate'Class); overriding procedure Visit (Self : not null access Base_Record_Aggregate; Visitor : in out Program.Element_Visitors.Element_Visitor'Class); overriding function Components (Self : Base_Record_Aggregate) return Program.Elements.Record_Component_Associations .Record_Component_Association_Vector_Access; overriding function Is_Record_Aggregate_Element (Self : Base_Record_Aggregate) return Boolean; overriding function Is_Expression_Element (Self : Base_Record_Aggregate) return Boolean; type Record_Aggregate is new Base_Record_Aggregate and Program.Elements.Record_Aggregates.Record_Aggregate_Text with record Left_Bracket_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Right_Bracket_Token : not null Program.Lexical_Elements .Lexical_Element_Access; end record; overriding function To_Record_Aggregate_Text (Self : aliased in out Record_Aggregate) return Program.Elements.Record_Aggregates.Record_Aggregate_Text_Access; overriding function Left_Bracket_Token (Self : Record_Aggregate) return not null Program.Lexical_Elements.Lexical_Element_Access; overriding function Right_Bracket_Token (Self : Record_Aggregate) return not null Program.Lexical_Elements.Lexical_Element_Access; type Implicit_Record_Aggregate is new Base_Record_Aggregate with record Is_Part_Of_Implicit : Boolean; Is_Part_Of_Inherited : Boolean; Is_Part_Of_Instance : Boolean; end record; overriding function To_Record_Aggregate_Text (Self : aliased in out Implicit_Record_Aggregate) return Program.Elements.Record_Aggregates.Record_Aggregate_Text_Access; overriding function Is_Part_Of_Implicit (Self : Implicit_Record_Aggregate) return Boolean; overriding function Is_Part_Of_Inherited (Self : Implicit_Record_Aggregate) return Boolean; overriding function Is_Part_Of_Instance (Self : Implicit_Record_Aggregate) return Boolean; end Program.Nodes.Record_Aggregates;
33.619835
77
0.747788
1dcaec966e949e79e06313eb89d74283ca3deb5e
3,229
adb
Ada
examples/NRF52_DK/buttons/src/main.adb
shakram02/Ada_Drivers_Library
a407ca7ddbc2d9756647016c2f8fd8ef24a239ff
[ "BSD-3-Clause" ]
192
2016-06-01T18:32:04.000Z
2022-03-26T22:52:31.000Z
examples/NRF52_DK/buttons/src/main.adb
shakram02/Ada_Drivers_Library
a407ca7ddbc2d9756647016c2f8fd8ef24a239ff
[ "BSD-3-Clause" ]
239
2016-05-26T20:02:01.000Z
2022-03-31T09:46:56.000Z
examples/NRF52_DK/buttons/src/main.adb
shakram02/Ada_Drivers_Library
a407ca7ddbc2d9756647016c2f8fd8ef24a239ff
[ "BSD-3-Clause" ]
142
2016-06-05T08:12:20.000Z
2022-03-24T17:37:17.000Z
------------------------------------------------------------------------------ -- -- -- Copyright © AdaCore and other contributors, 2018-2020 -- -- See https://github.com/AdaCore/Ada_Drivers_Library/graphs/contributors -- -- for more information -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of the copyright holder nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ with NRF52_DK.Buttons; use NRF52_DK.Buttons; with NRF52_DK.LEDs; use NRF52_DK.LEDs; with NRF52_DK.Time; procedure Main is begin Initialize_LEDs; loop Turn_Off (LED1); Turn_Off (LED2); Turn_Off (LED3); Turn_Off (LED4); if NRF52_DK.Buttons.State (Button_1) = Pressed then Turn_On (LED1); end if; if NRF52_DK.Buttons.State (Button_2) = Pressed then Turn_On (LED2); end if; if NRF52_DK.Buttons.State (Button_3) = Pressed then Turn_On (LED3); end if; if NRF52_DK.Buttons.State (Button_4) = Pressed then Turn_On (LED4); end if; NRF52_DK.Time.Delay_Ms (200); end loop; end Main;
49.676923
78
0.53546
1cb91219d2211138f8b68c2308550886dc08ab4b
2,235
adb
Ada
src/actions-func.adb
psyomn/agen
f1770307887e5b073f5d4c3bcce126fdc12b9625
[ "Apache-2.0" ]
1
2017-10-07T06:13:11.000Z
2017-10-07T06:13:11.000Z
src/actions-func.adb
psyomn/gnatgen
f1770307887e5b073f5d4c3bcce126fdc12b9625
[ "Apache-2.0" ]
9
2019-04-17T15:42:25.000Z
2019-04-24T05:37:13.000Z
src/actions-func.adb
psyomn/gnatgen
f1770307887e5b073f5d4c3bcce126fdc12b9625
[ "Apache-2.0" ]
1
2019-04-18T14:57:22.000Z
2019-04-18T14:57:22.000Z
-- Copyright 2014-2019 Simon Symeonidis (psyomn) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. with Ada.Text_IO; use Ada.Text_IO; with Ada.Characters.Handling; use Ada.Characters.Handling; with Agen; use Agen; with Argument_Stack; package body Actions.Func is procedure Help is begin Put_Line(" (func|function) name:return_type [parameter:type]* - Print the generated function"); end Help; function Try_Act return Boolean is Func : Parameter; begin if Argument_Stack.Is_Empty then goto Fail; end if; declare Action : constant String := Argument_Stack.Pop; begin if To_Upper(Action) /= "FUNC" and To_Upper(Action) /= "FUNCTION" then goto Fail; end if; end; if Argument_Stack.Is_Empty then Put_Line(Standard_Error, "Error: No function signature was specified"); goto Fail; end if; if not Try_Parse(Argument_Stack.Pop, Func) then Put_Line(Standard_Error, "Error: The function signature was invalid"); goto Fail; end if; if Argument_Stack.Is_Empty then Print_Function(Func); else declare Params : Parameter_Array(1 .. Argument_Stack.Length); begin for I in 1 .. Argument_Stack.Length loop if not Try_Parse(Argument_Stack.Pop, Params(I)) then Argument_Stack.Push_Back; Put_Line(Standard_Error, "Error: The parameter signature """ & Argument_Stack.Pop & """ was invalid"); goto Fail; end if; end loop; Print_Function(Func, Params); end; end if; return True; <<Fail>> Argument_Stack.Reset; return False; end Try_Act; end Actions.Func;
32.391304
114
0.668009
2f448ac71a9472585372d77a0336ff310f89704b
5,065
adb
Ada
project/adl/testsuite/tests/fat_driver/src/tc_fat_read.adb
corentingay/adaboy
68f08afa246c8255a42897376d375edcb4e2efc2
[ "MIT" ]
null
null
null
project/adl/testsuite/tests/fat_driver/src/tc_fat_read.adb
corentingay/adaboy
68f08afa246c8255a42897376d375edcb4e2efc2
[ "MIT" ]
null
null
null
project/adl/testsuite/tests/fat_driver/src/tc_fat_read.adb
corentingay/adaboy
68f08afa246c8255a42897376d375edcb4e2efc2
[ "MIT" ]
null
null
null
with Ada.Text_IO; use Ada.Text_IO; with Filesystem.Native; use Filesystem.Native; with Test_Directories; use Test_Directories; with File_Block_Drivers; use File_Block_Drivers; with File_IO; use File_IO; with Filesystem.FAT; use Filesystem.FAT; with HAL.Filesystem; use HAL.Filesystem; with Compare_Files; procedure TC_FAT_Read is function Check_Dir (Dirname : String) return Boolean; function Check_File (Basename : String; Dirname : String) return Boolean; function Check_Expected_Number return Boolean; Number_Of_Files_Checked : Natural := 0; --------------- -- Check_Dir -- --------------- function Check_Dir (Dirname : String) return Boolean is DD : Directory_Descriptor; Status : File_IO.Status_Code; begin Put_Line ("Checking directory: '" & Dirname & "'"); Status := Open (DD, Dirname); if Status /= OK then Put_Line ("Cannot open directory: '" & Dirname & "'"); Put_Line ("Status: " & Status'Img); return False; end if; loop declare Ent : constant Directory_Entry := Read (DD); begin if Ent /= Invalid_Dir_Entry then if Ent.Name = "." or else Ent.Name = ".." then null; -- do nothing elsif Ent.Subdirectory then if not Check_Dir (Dirname & "/" & Ent.Name) then return False; end if; elsif not Ent.Symlink then if not Check_File (Ent.Name, Dirname) then return False; end if; end if; else exit; end if; end; end loop; return True; end Check_Dir; ---------------- -- Check_File -- ---------------- function Check_File (Basename : String; Dirname : String) return Boolean is FD : File_Descriptor; Status : File_IO.Status_Code; Path : constant String := Dirname & "/" & Basename; begin Status := Open (FD, Path, Read_Only); if Status /= OK then Put_Line ("Cannot open file: '" & Path & "'"); Put_Line ("Status: " & Status'Img); return False; end if; declare Hash_Str : constant String := Compare_Files.Compute_Hash (FD); begin if Hash_Str /= Basename then Put_Line ("Error: Hash is different than filename"); return False; else Number_Of_Files_Checked := Number_Of_Files_Checked + 1; return True; end if; end; end Check_File; --------------------------- -- Check_Expected_Number -- --------------------------- function Check_Expected_Number return Boolean is FD : File_Descriptor; Status : File_IO.Status_Code; Path : constant String := "/disk_img/number_of_files_to_check"; C : Character; Amount : File_IO.File_Size; begin Status := Open (FD, Path, Read_Only); if Status /= OK then Put_Line ("Cannot open file: '" & Path & "'"); Put_Line ("Status: " & Status'Img); return False; end if; Amount := 1; if Read (FD, C'Address, Amount) /= Amount then Put_Line ("Cannot read file: '" & Path & "'"); Put_Line ("Status: " & Status'Img); return False; end if; if C in '0' .. '9' and then Number_Of_Files_Checked = (Character'Pos (C) - Character'Pos ('0')) then return True; else Put_Line ("Incorrect number of files"); return False; end if; end Check_Expected_Number; Disk_Img_Path : constant String := "/test_dir/fat.fs"; Disk : aliased File_Block_Driver; FAT_FS : access FAT_Filesystem; FIO_Status : File_IO.Status_Code; HALFS_Status : HAL.Filesystem.Status_Code; begin Test_Directories.Mount_Test_Directory ("test_dir"); FIO_Status := Disk.Open (Disk_Img_Path, Read_Only); if FIO_Status /= OK then Put_Line ("Cannot open disk image '" & Disk_Img_Path & "': " & FIO_Status'Img); return; end if; FAT_FS := new FAT_Filesystem; HALFS_Status := Open (Controller => Disk'Unchecked_Access, LBA => 0, FS => FAT_FS.all); if HALFS_Status /= OK then Put_Line ("Cannot open FAT FS - Status:" & HALFS_Status'Img); return; end if; FIO_Status := File_IO.Mount_Volume (Mount_Point => "disk_img", FS => FAT_FS); if FIO_Status /= OK then Put_Line ("Cannot mount volume - Status: " & FIO_Status'Img); return; end if; if Check_Dir ("/disk_img/read_test") and then Check_Expected_Number then Put_Line ("PASS"); else Put_Line ("FAIL"); end if; end TC_FAT_Read;
28.615819
77
0.541362
29ac3ea7bfbec14e7ba14659b0879bbeea2fc6b3
3,534
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3906e.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3906e.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3906e.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- CE3906E.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- HISTORY: -- CHECK THAT PUT FOR ENUMERATION TYPES RAISES LAYOUT_ERROR WHEN -- THE NUMBER OF CHARACTERS TO BE OUTPUT EXCEEDS THE MAXIMUM LINE -- LENGTH. CHECK THAT LAYOUT_ERROR IS NOT RAISED WHEN THE NUMBER -- OF CHARACTERS TO BE OUTPUT DOES NOT EXCEED THE MAXIMUM LINE -- LENGTH, BUT WHEN ADDED TO THE CURRENT COLUMN NUMBER, THE TOTAL -- EXCEEDS THE MAXIMUM LINE LENGTH. -- APPLICABILITY CRITERIA: -- THIS TEST IS APPLICABLE ONLY TO IMPLEMETATIONS WHICH -- SUPPORT TEXT FILES. -- HISTORY: -- SPS 10/11/82 -- JBG 02/22/84 CHANGED TO .ADA TEST -- RJW 11/04/86 REVISED TEST TO OUTPUT A NON_APPLICABLE -- RESULT WHEN FILES ARE NOT SUPPORTED. -- DWC 09/18/87 CORRECTED EXCEPTION HANDLING. WITH REPORT; USE REPORT; WITH TEXT_IO; USE TEXT_IO; WITH CHECK_FILE; PROCEDURE CE3906E IS INCOMPLETE : EXCEPTION; BEGIN TEST ("CE3906E", "CHECK THAT ENUMERATION_IO PUT RAISES " & "LAYOUT_ERROR CORRECTLY"); DECLARE FT : FILE_TYPE; TYPE COLOR IS (RED, BLU, YELLOW, ORANGE, RD); PACKAGE COLOR_IO IS NEW ENUMERATION_IO (COLOR); USE COLOR_IO; CRAYON : COLOR := ORANGE; BEGIN BEGIN CREATE (FT); EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE ("USE_ERROR RAISED; TEXT " & "CREATE FOR TEMP FILES WITH " & "OUT_FILE MODE - 1"); RAISE INCOMPLETE; END; SET_LINE_LENGTH (FT, 5); BEGIN PUT (FT, CRAYON); FAILED("LAYOUT_ERROR NOT RAISED"); EXCEPTION WHEN LAYOUT_ERROR => NULL; WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED"); END; PUT (FT, RED); PUT (FT, BLU); IF LINE (FT) /= 2 THEN FAILED ("PUT DID NOT CAUSE NEW_LINE EFFECT"); END IF; PUT (FT, RD); CHECK_FILE (FT, "RED#" & "BLURD#@%"); CLOSE (FT); EXCEPTION WHEN INCOMPLETE => NULL; END; RESULT; END CE3906E;
32.127273
79
0.580645
2fef0881ba9accae01cccf44565b6d2384c200af
4,572
ada
Ada
demos/phil.ada
daveshields/AdaEd
57daecfb7ccadfd9aaf13b4d54f51065affbe599
[ "BSD-4-Clause", "BSD-3-Clause" ]
3
2019-05-11T04:11:33.000Z
2021-04-18T14:55:43.000Z
demos/phil.ada
daveshields/AdaEd
57daecfb7ccadfd9aaf13b4d54f51065affbe599
[ "BSD-4-Clause", "BSD-3-Clause" ]
null
null
null
demos/phil.ada
daveshields/AdaEd
57daecfb7ccadfd9aaf13b4d54f51065affbe599
[ "BSD-4-Clause", "BSD-3-Clause" ]
2
2016-10-29T22:52:56.000Z
2021-04-18T14:55:45.000Z
---------------------------------------------------------------------- -- -- The Dining Philosophers' Problem -- -- written by -- -- Edmond Schonberg -- and -- Gerry Fisher -- -- Ada Project -- Courant Institute -- New York University -- 251 Mercer Street -- New York, New York 10012 -- ----------------------------------------------------------------------- with TEXT_IO; use TEXT_IO; procedure DINING_PHILOSOPHERS is type PHILOSOPHER is (Descartes, Hegel, Turing, Plato, Sartre); meals: constant array(PHILOSOPHER) of INTEGER := (3,2,2,2,3); Message1: constant array(PHILOSOPHER) of STRING(1 .. 30) := ("I eat: therefore I am ", "Hegel synthesizes ", "Turing shifts ", "Plato eats the ideal spaghetti", "Sartre gorges " ); Message2: constant array(PHILOSOPHER) of STRING(1 .. 30) := ("Descartes cogitates ", "Hegel's pure spirit at work ", "Turing machinates ", "Plato watches the shadows ", "Sartre eats nothing " ); Message3: constant array(PHILOSOPHER) of STRING(1 .. 30) := ("Descartes concludes ", "The owl of Minerva is stuffed ", "Turing halts ", "Plato retreats ", "Sartre is nauseated " ); task type DINING is entry WHO_AM_I(p: PHILOSOPHER); end DINING; task TABLE_MANAGER is entry EAT(PHILOSOPHER); entry REST(p: PHILOSOPHER); entry FAST_RELIEF(p: PHILOSOPHER); end TABLE_MANAGER; task body DINING is separate; task body TABLE_MANAGER is separate; begin declare PHILS: array(PHILOSOPHER) of DINING; begin for philo in PHILOSOPHER loop PHILS(philo).WHO_AM_I(philo); end loop; end; put_line("Closing time ..."); end DINING_PHILOSOPHERS; ----------------------------------------------------------------------- separate(DINING_PHILOSOPHERS) task body DINING is philo: PHILOSOPHER; begin accept WHO_AM_I(p: PHILOSOPHER) do philo := p; end WHO_AM_I; for n in 1 .. meals(philo) loop TABLE_MANAGER.EAT(philo); delay 1.0; TABLE_MANAGER.REST(philo); delay 0.5; end loop; TABLE_MANAGER.FAST_RELIEF(philo); end DINING; ------------------------------------------------------------------------ separate(DINING_PHILOSOPHERS) task body TABLE_MANAGER is type AVAIL is record LEFT, RIGHT: BOOLEAN; end record; FORKS: array(PHILOSOPHER) of AVAIL := (PHILOSOPHER'FIRST..PHILOSOPHER'LAST => (TRUE, TRUE)); type ACTION is (seize,release); numphil: constant INTEGER := 5; TWO: constant AVAIL := (TRUE,TRUE); procedure fork_action(p: PHILOSOPHER; a: ACTION) is separate; begin loop select when FORKS(Descartes) = TWO => accept EAT(Descartes); fork_action(Descartes, seize); put_line(Message1(Descartes)); or when FORKS(Hegel) = TWO => accept EAT(Hegel); fork_action(Hegel, seize); put_line(Message1(Hegel)); or when FORKS(Turing) = TWO => accept EAT(Turing); fork_action(Turing, seize); put_line(Message1(Turing)); or when FORKS(Plato) = TWO => accept EAT(Plato); fork_action(Plato, seize); put_line(Message1(Plato)); or when FORKS(Sartre) = TWO => accept EAT(Sartre); fork_action(Sartre, seize); put_line(Message1(Sartre)); or accept REST(p: PHILOSOPHER) do fork_action(p, release); put_line(Message2(p)); end REST; or accept FAST_RELIEF(p: PHILOSOPHER) do put_line(Message3(p)); end FAST_RELIEF; or terminate; end select ; end loop ; end TABLE_MANAGER ; ---------------------------------------------------------------------- separate(DINING_PHILOSOPHERS.TABLE_MANAGER) procedure fork_action(p: PHILOSOPHER; a: ACTION) is pp: PHILOSOPHER; v: array(ACTION) of BOOLEAN := (FALSE, TRUE); begin pp := PHILOSOPHER'VAL((PHILOSOPHER'POS(p) + 1) mod numphil); FORKS(pp).LEFT := v(a); pp := PHILOSOPHER'VAL((PHILOSOPHER'POS(p) + 4) mod numphil); FORKS(pp).RIGHT := v(a); end fork_action;
24.847826
72
0.52056
0616de4997d3467d86ce5417791c5b73ffb82fe2
3,698
ads
Ada
src/generated/portability_h.ads
csb6/libtcod-ada
89c2a75eb357a8468ccb0a6476391a6b388f00b4
[ "BSD-3-Clause" ]
null
null
null
src/generated/portability_h.ads
csb6/libtcod-ada
89c2a75eb357a8468ccb0a6476391a6b388f00b4
[ "BSD-3-Clause" ]
null
null
null
src/generated/portability_h.ads
csb6/libtcod-ada
89c2a75eb357a8468ccb0a6476391a6b388f00b4
[ "BSD-3-Clause" ]
null
null
null
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Strings; with sys_utypes_usize_t_h; package portability_h is -- BSD 3-Clause License -- * -- * Copyright © 2008-2021, Jice and the libtcod contributors. -- * All rights reserved. -- * -- * Redistribution and use in source and binary forms, with or without -- * modification, are permitted provided that the following conditions are met: -- * -- * 1. Redistributions of source code must retain the above copyright notice, -- * this list of conditions and the following disclaimer. -- * -- * 2. Redistributions in binary form must reproduce the above copyright notice, -- * this list of conditions and the following disclaimer in the documentation -- * and/or other materials provided with the distribution. -- * -- * 3. Neither the name of the copyright holder nor the names of its -- * contributors may be used to endorse or promote products derived from -- * this software without specific prior written permission. -- * -- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -- * POSSIBILITY OF SUCH DAMAGE. -- -- uncomment to disable unicode support --#define NO_UNICODE -- uncomment to disable opengl support --#define NO_OPENGL -- os identification -- TCOD_WINDOWS : OS is windows -- TCOD_LINUX : OS is Linux -- TCOD_MACOSX : OS is Mac OS X -- TCOD_HAIKU : OS is Haiku -- compiler identification -- TCOD_VISUAL_STUDIO : compiler is Microsoft Visual Studio -- TCOD_MINGW32 : compiler is Mingw32 -- TCOD_GCC : compiler is gcc/g++ -- word size -- TCOD_64BITS : 64 bits OS -- TCOD_WIN64 : 64 bits Windows -- TCOD_WIN32 : 32 bits Windows -- TCOD_LINUX64 : 64 bits Linux -- TCOD_LINUX32 : 32 bits Linux -- TCOD_FREEBSD64 : 64 bits FreeBSD -- TCOD_FREEBSD32 : 32 bits FreeBSD -- unicode rendering functions support -- int types -- bool type -- ansi C lacks support for those functions --* -- Allocate and return a duplicate of string `s`. The returned memory must be freed manually. -- function TCOD_strdup (arg1 : Interfaces.C.Strings.chars_ptr) return Interfaces.C.Strings.chars_ptr -- portability.h:126 with Import => True, Convention => C, External_Name => "TCOD_strdup"; function TCOD_strcasecmp (s1 : Interfaces.C.Strings.chars_ptr; s2 : Interfaces.C.Strings.chars_ptr) return int -- portability.h:127 with Import => True, Convention => C, External_Name => "TCOD_strcasecmp"; function TCOD_strncasecmp (s1 : Interfaces.C.Strings.chars_ptr; s2 : Interfaces.C.Strings.chars_ptr; n : sys_utypes_usize_t_h.size_t) return int -- portability.h:128 with Import => True, Convention => C, External_Name => "TCOD_strncasecmp"; -- Define vswprintf across platforms. end portability_h;
39.340426
135
0.692537
2922dbc2702f11a0d47faea07336a1fa13a7a4ed
3,786
adb
Ada
dependencies/agar/ada-core/SYSDEPS/ver_gnat.adb
amvb/GUCEF
08fd423bbb5cdebbe4b70df24c0ae51716b65825
[ "Apache-2.0" ]
5
2016-04-18T23:12:51.000Z
2022-03-06T05:12:07.000Z
SYSDEPS/ver_gnat.adb
io7m/coreland-postgres-ada
0e7c5294b7638899d10d8cdd4f433c87b4eaf360
[ "BSD-3-Clause" ]
2
2015-10-09T19:13:25.000Z
2018-12-25T17:16:54.000Z
SYSDEPS/ver_gnat.adb
io7m/coreland-postgres-ada
0e7c5294b7638899d10d8cdd4f433c87b4eaf360
[ "BSD-3-Clause" ]
15
2015-02-23T16:35:28.000Z
2022-03-25T13:40:33.000Z
-- auto generated, do not edit with GNAT.Compiler_Version; with GNAT.Regpat; with Ada.Text_IO; with Ada.Strings.Fixed; with Ada.Strings; procedure Ver_GNAT is -- -- gnatver.ads -- type Variant_t is (GNAT_UNKNOWN, GNAT_FSF, GNAT_GPL, GNAT_PRO, GNAT_GAP); type Version_t is record Variant : Variant_t := GNAT_UNKNOWN; Major : Natural := 0; Minor : Natural := 0; Patch : Natural := 0; end record; procedure Decode (Version : out Version_t; Image : in String); procedure Decode_Current (Version : out Version_t); -- -- gnatver.adb -- package Ver is new GNAT.Compiler_Version; use type GNAT.Regpat.Match_Location; Regex_FSF : constant String := "^(GNAT Version: ){0,1}([0-9]).([0-9]).([0-9])"; Regex_GPL : constant String := "^(GNAT Version: ){0,1}GPL [0-9]+ \(([0-9]{4})([0-9]{2})([0-9]{2})\)"; Regex_GAP : constant String := "^(GNAT Version: ){0,1}GAP [0-9]+ \(([0-9]{4})([0-9]{2})([0-9]{2})\)"; Regex_Pro : constant String := "^(GNAT Version: ){0,1}Pro ([0-9]).([0-9]).([0-9])"; procedure Decode (Version : out Version_t; Image : in String) is Matches : GNAT.Regpat.Match_Array (0 .. 4); begin -- check FSF GNAT.Regpat.Match (Expression => Regex_FSF, Data => Image, Matches => Matches); if Matches (0) /= GNAT.Regpat.No_Match then Version.Variant := GNAT_FSF; Version.Major := Natural'Value (Image (Matches (2).First .. Matches (2).Last)); Version.Minor := Natural'Value (Image (Matches (3).First .. Matches (3).Last)); Version.Patch := Natural'Value (Image (Matches (4).First .. Matches (4).Last)); end if; -- check GPL GNAT.Regpat.Match (Expression => Regex_GPL, Data => Image, Matches => Matches); if Matches (0) /= GNAT.Regpat.No_Match then Version.Variant := GNAT_GPL; Version.Major := Natural'Value (Image (Matches (2).First .. Matches (2).Last)); Version.Minor := Natural'Value (Image (Matches (3).First .. Matches (3).Last)); Version.Patch := Natural'Value (Image (Matches (4).First .. Matches (4).Last)); end if; -- check GAP GNAT.Regpat.Match (Expression => Regex_GAP, Data => Image, Matches => Matches); if Matches (0) /= GNAT.Regpat.No_Match then Version.Variant := GNAT_GAP; Version.Major := Natural'Value (Image (Matches (2).First .. Matches (2).Last)); Version.Minor := Natural'Value (Image (Matches (3).First .. Matches (3).Last)); Version.Patch := Natural'Value (Image (Matches (4).First .. Matches (4).Last)); end if; -- check Pro GNAT.Regpat.Match (Expression => Regex_Pro, Data => Image, Matches => Matches); if Matches (0) /= GNAT.Regpat.No_Match then Version.Variant := GNAT_PRO; Version.Major := Natural'Value (Image (Matches (2).First .. Matches (2).Last)); Version.Minor := Natural'Value (Image (Matches (3).First .. Matches (3).Last)); Version.Patch := Natural'Value (Image (Matches (4).First .. Matches (4).Last)); end if; end Decode; procedure Decode_Current (Version : out Version_t) is begin Decode (Version => Version, Image => Ver.Version); end Decode_Current; -- ver_gnat.adb function To_String (Number : Integer) return String is begin return Ada.Strings.Fixed.Trim (Integer'Image (Number), Ada.Strings.Left); end To_String; Version : Version_t; begin Decode_Current (Version); Ada.Text_IO.Put_Line (Variant_t'Image (Version.Variant) & " " & To_String (Version.Major) & "." & To_String (Version.Minor) & "." & To_String (Version.Patch)); end Ver_GNAT;
34.733945
103
0.60037
29a794d80e50fc3112d6cf4bb5246416baab80ae
1,396
adb
Ada
examples/shared/hello_world_blinky/src/blinky.adb
webgeeks/Ada_Drivers_Library
bcd4ca187f004ec2e5d7d7147870f1e713cf7db3
[ "BSD-3-Clause" ]
null
null
null
examples/shared/hello_world_blinky/src/blinky.adb
webgeeks/Ada_Drivers_Library
bcd4ca187f004ec2e5d7d7147870f1e713cf7db3
[ "BSD-3-Clause" ]
null
null
null
examples/shared/hello_world_blinky/src/blinky.adb
webgeeks/Ada_Drivers_Library
bcd4ca187f004ec2e5d7d7147870f1e713cf7db3
[ "BSD-3-Clause" ]
null
null
null
with Last_Chance_Handler; pragma Unreferenced (Last_Chance_Handler); with HAL; use HAL; with STM32.GPIO; use STM32.GPIO; with STM32.Device; use STM32.Device; with Ada.Real_Time; use Ada.Real_Time; with serial; use serial; with analog; use analog; with control; use control; procedure Robot is flt : Short_Float := 0.0; Raw : UInt32; ADC_Pin : constant GPIO_Point := PA5; channel_5 : constant Uint5 := 5; data : Character := '0'; procedure Send_Reading; procedure Send_Reading is begin Raw := UInt32 (Analog_Read); flt := (Short_Float(Raw)*3.3)/4095.0; Serial_Print ("{ ""val"":"&flt'Img&"}\r\n"); end Send_Reading; begin Initialize(115200); ADC_Init(ADC_Pin, channel_5); Intialize_Controls; declare begin loop data := Character'Val(Serial_Read); if data /= '0' then Serial_Print(data'Image); end if; case data is when 'w' => forward; when 's' => backward; when 'a' => left; when 'd' => right; when 'q' => stop; when 'e' => front; when 'z' => Drop_Seed; when 'x' => Measure; when 'f' => Send_Reading; when others => stop; end case; delay until Clock + Milliseconds (1000); end loop; end; end Robot;
24.068966
69
0.560888
29408137a08541d043b69a48e1969acfc661b0b7
2,467
adb
Ada
tracker-datasource.adb
mimo/Tracker
a913446c6d2f6679a2e557bd92194e255190e6a7
[ "MIT" ]
1
2020-09-30T01:30:48.000Z
2020-09-30T01:30:48.000Z
tracker-datasource.adb
mimo/Tracker
a913446c6d2f6679a2e557bd92194e255190e6a7
[ "MIT" ]
null
null
null
tracker-datasource.adb
mimo/Tracker
a913446c6d2f6679a2e557bd92194e255190e6a7
[ "MIT" ]
null
null
null
with Input_Sources.File; use Input_Sources.File; with Sax.Readers; use Sax.Readers; with DOM.Readers; use DOM.Readers; with DOM.Core; use DOM.Core; with DOM.Core.Documents; use DOM.Core.Documents; with DOM.Core.Nodes; use DOM.Core.Nodes; with DOM.Core.Attrs; use DOM.Core.Attrs; with Ada.Text_IO; use Ada.Text_IO; package body tracker.datasource is procedure Load is Input : File_Input; Reader : Tree_Reader; Doc : Document; Activities_List : Node_List; Activity_Node : Node; Focus_Attrib : Attr; Current_Child : Node; begin Set_Public_Id (Input, "Activities file"); Open ("activities.xml", Input); Set_Feature (Reader, Validation_Feature, False); Set_Feature (Reader, Namespace_Feature, False); Parse (Reader, Input); Close (Input); Doc := Get_Tree (Reader); Activities_List := Get_Elements_By_Tag_Name (Doc, "activity"); for Index in 1 .. Length (Activities_List) loop READING_COL : declare Col : Collection; begin Activity_Node := DOM.Core.Nodes.Item (Activities_List, Index - 1); Focus_Attrib := Get_Named_Item (Attributes (Activity_Node), "focus"); if Focus_Attrib = null then Col.Focused := False; else Col.Focused := Boolean'Value (Value (Focus_Attrib)); end if; Current_Child := First_Child (Activity_Node); loop exit when Current_Child = null; if Node_Type (Current_Child) = Element_Node then if Node_Name (Current_Child) = "name" then Set_Name (Col, Node_Value (First_Child (Current_Child))); else Add_Item ( Col, Node_Value (First_Child (Current_Child)), Item_Status'Value ( Value ( Get_Named_Item (Attributes(Current_Child), "state")))); end if; end if; Current_Child := Next_Sibling (Current_Child); end loop; Add_Collection (Activities, Col); end READING_COL; end loop; Free (Activities_List); Free (Reader); end Load; end tracker.datasource;
32.460526
81
0.548034
290302d9428a3fbe92b0a8d0325377afef8e2ca6
255
adb
Ada
day03/tests/test_day.adb
jwarwick/aoc_2019_ada
2168249071d235ec76d8424967811d03e9415f5c
[ "MIT" ]
null
null
null
day03/tests/test_day.adb
jwarwick/aoc_2019_ada
2168249071d235ec76d8424967811d03e9415f5c
[ "MIT" ]
null
null
null
day03/tests/test_day.adb
jwarwick/aoc_2019_ada
2168249071d235ec76d8424967811d03e9415f5c
[ "MIT" ]
null
null
null
with AUnit.Reporter.Text; with AUnit.Run; with AOC_Test_Suite; use AOC_Test_Suite; procedure Test_Day is procedure Runner is new AUnit.Run.Test_Runner (Suite); Reporter : AUnit.Reporter.Text.Text_Reporter; begin Runner (Reporter); end Test_Day;
23.181818
57
0.780392
1c02ca461fb2bbe32b1cfc734e1958d227efecfc
3,249
ads
Ada
3-mid/impact/source/3d/collision/shapes/impact-d3-shape-concave-triangle_mesh.ads
charlie5/lace
e9b7dc751d500ff3f559617a6fc3089ace9dc134
[ "0BSD" ]
20
2015-11-04T09:23:59.000Z
2022-01-14T10:21:42.000Z
3-mid/impact/source/3d/collision/shapes/impact-d3-shape-concave-triangle_mesh.ads
charlie5/lace
e9b7dc751d500ff3f559617a6fc3089ace9dc134
[ "0BSD" ]
2
2015-11-04T17:05:56.000Z
2015-12-08T03:16:13.000Z
3-mid/impact/source/3d/collision/shapes/impact-d3-shape-concave-triangle_mesh.ads
charlie5/lace
e9b7dc751d500ff3f559617a6fc3089ace9dc134
[ "0BSD" ]
1
2015-12-07T12:53:52.000Z
2015-12-07T12:53:52.000Z
with impact.d3.Shape.concave, impact.d3.triangle_Callback, impact.d3.striding_Mesh; package impact.d3.Shape.concave.triangle_mesh -- -- The impact.d3.Shape.concave.triangle_mesh is an internal concave triangle mesh interface. -- -- Don't use this class directly, use impact.d3.Shape.concave.triangle_mesh.bvh instead. -- is type Item is new impact.d3.Shape.concave.Item with private; --- Forge -- overriding procedure destruct (Self : in out Item); --- Attributes -- overriding procedure setLocalScaling (Self : in out Item; scaling : in math.Vector_3); overriding function getLocalScaling (Self : in Item) return math.Vector_3; overriding function getName (Self : in Item) return String; function localGetSupportingVertex (Self : in Item; vec : in math.Vector_3) return math.Vector_3; function getMeshInterface (Self : in Item) return access impact.d3.striding_Mesh.item'Class; function getLocalAabbMin (Self : in Item) return math.Vector_3; function getLocalAabbMax (Self : in Item) return math.Vector_3; -- Operations -- procedure recalcLocalAabb (Self : in out Item); overriding procedure processAllTriangles (Self : in Item; callback : access impact.d3.triangle_Callback.Item'Class; aabbMin, aabbMax : in math.Vector_3); overriding procedure calculateLocalInertia (Self : in Item; mass : in math.Real; inertia : out math.Vector_3); overriding procedure getAabb (Self : in Item; t : in Transform_3d; aabbMin, aabbMax : out math.Vector_3); private type Item is new impact.d3.Shape.concave.Item with record m_localAabbMin, m_localAabbMax : math.Vector_3; m_meshInterface : impact.d3.striding_Mesh.view; end record; function to_triangle_mesh_Shape (meshInterface : access impact.d3.striding_Mesh.Item'Class) return Item'Class; --- SupportVertexCallback -- type SupportVertexCallback is new impact.d3.triangle_Callback.Item with record m_supportVertexLocal : math.Vector_3; m_worldTrans : Transform_3d; m_maxDot : math.Real; m_supportVecLocal : math.Vector_3; end record; function to_SupportVertexCallback (supportVecWorld : in math.Vector_3; trans : in Transform_3d) return SupportVertexCallback; overriding procedure processTriangle (Self : in out SupportVertexCallback; triangle : access math.Matrix_3x3; partId : in Integer; triangleIndex : in Integer ); function GetSupportVertexLocal (Self : in SupportVertexCallback) return math.Vector_3; end impact.d3.Shape.concave.triangle_mesh;
30.083333
134
0.588489
0656e1c20fbf4fefff99788e8a608a2e84054d24
1,402
ads
Ada
tier-1/xcb/source/thin/xcb-xcb_glx_query_version_cookie_t.ads
charlie5/cBound
741be08197a61ad9c72553e3302f3b669902216d
[ "0BSD" ]
2
2015-11-12T11:16:20.000Z
2021-08-24T22:32:04.000Z
tier-1/xcb/source/thin/xcb-xcb_glx_query_version_cookie_t.ads
charlie5/cBound
741be08197a61ad9c72553e3302f3b669902216d
[ "0BSD" ]
1
2018-06-05T05:19:35.000Z
2021-11-20T01:13:23.000Z
tier-1/xcb/source/thin/xcb-xcb_glx_query_version_cookie_t.ads
charlie5/cBound
741be08197a61ad9c72553e3302f3b669902216d
[ "0BSD" ]
null
null
null
-- This file is generated by SWIG. Please do not modify by hand. -- with Interfaces.C; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_glx_query_version_cookie_t is -- Item -- type Item is record sequence : aliased Interfaces.C.unsigned; end record; -- Item_Array -- type Item_Array is array (Interfaces.C .size_t range <>) of aliased xcb.xcb_glx_query_version_cookie_t .Item; -- Pointer -- package C_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_glx_query_version_cookie_t.Item, Element_Array => xcb.xcb_glx_query_version_cookie_t.Item_Array, Default_Terminator => (others => <>)); subtype Pointer is C_Pointers.Pointer; -- Pointer_Array -- type Pointer_Array is array (Interfaces.C .size_t range <>) of aliased xcb.xcb_glx_query_version_cookie_t .Pointer; -- Pointer_Pointer -- package C_Pointer_Pointers is new Interfaces.C.Pointers (Index => Interfaces.C.size_t, Element => xcb.xcb_glx_query_version_cookie_t.Pointer, Element_Array => xcb.xcb_glx_query_version_cookie_t.Pointer_Array, Default_Terminator => null); subtype Pointer_Pointer is C_Pointer_Pointers.Pointer; end xcb.xcb_glx_query_version_cookie_t;
26.45283
77
0.669757
2f5a691a31b35e45bd2d46cf14cdb9c685ab335e
2,249
ads
Ada
tests/unit_tests/parallel_sponge_tests.ads
damaki/libkeccak
d06217e525f7927380690d6c37b485bdbe8aa96e
[ "BSD-3-Clause" ]
26
2015-09-20T17:52:38.000Z
2021-07-29T21:47:04.000Z
tests/unit_tests/parallel_sponge_tests.ads
damaki/libkeccak
d06217e525f7927380690d6c37b485bdbe8aa96e
[ "BSD-3-Clause" ]
3
2019-03-12T16:01:36.000Z
2020-05-23T13:06:43.000Z
tests/unit_tests/parallel_sponge_tests.ads
damaki/libkeccak
d06217e525f7927380690d6c37b485bdbe8aa96e
[ "BSD-3-Clause" ]
2
2019-04-15T18:02:19.000Z
2020-11-22T11:22:18.000Z
------------------------------------------------------------------------------- -- Copyright (c) 2017, Daniel King -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- * Redistributions of source code must retain the above copyright -- notice, this list of conditions and the following disclaimer. -- * Redistributions in binary form must reproduce the above copyright -- notice, this list of conditions and the following disclaimer in the -- documentation and/or other materials provided with the distribution. -- * The name of the copyright holder may not be used to endorse or promote -- Products derived from this software without specific prior written -- permission. -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY -- DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -- ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -- THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------- with Keccak.Generic_Parallel_Sponge; with Keccak.Generic_Sponge; with AUnit.Test_Fixtures; generic with package Serial_Sponge is new Keccak.Generic_Sponge(<>); with package Parallel_Sponge is new Keccak.Generic_Parallel_Sponge(<>); Capacity : Positive; package Parallel_Sponge_Tests is type Test is new AUnit.Test_Fixtures.Test_Fixture with record Ctx : Parallel_Sponge.Context (Capacity); end record; procedure Set_Up (T : in out Test); procedure Test_Same_Output_As_Serial (T : in out Test); end Parallel_Sponge_Tests;
47.851064
79
0.70787
1d6dd25e1dff75305fd425da93bc24e729e7b8dd
29,464
ads
Ada
.build/ada/asis-gela-elements-defs-types.ads
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
4
2016-02-05T15:51:56.000Z
2022-03-25T20:38:32.000Z
.build/ada/asis-gela-elements-defs-types.ads
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
null
null
null
.build/ada/asis-gela-elements-defs-types.ads
faelys/gela-asis
48a3bee90eda9f0c9d958b4e3c80a5a9b1c65253
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- Copyright (c) 2006-2013, Maxim Reznik -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain the above copyright notice, -- this list of conditions and the following disclaimer. -- * Redistributions in binary form must reproduce the above copyright -- notice, this list of conditions and the following disclaimer in the -- documentation and/or other materials provided with the distribution. -- * Neither the name of the Maxim Reznik, IE nor the names of its -- contributors may be used to endorse or promote products derived from -- this software without specific prior written permission. -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE -- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -- POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------ package Asis.Gela.Elements.Defs.Types is ----------------------- -- Derived_Type_Node -- ----------------------- type Derived_Type_Node is new Type_Definition_Node with private; type Derived_Type_Ptr is access all Derived_Type_Node; for Derived_Type_Ptr'Storage_Pool use Lists.Pool; function New_Derived_Type_Node (The_Context : ASIS.Context) return Derived_Type_Ptr; function Corresponding_Parent_Subtype (Element : Derived_Type_Node) return Asis.Declaration; procedure Set_Corresponding_Parent_Subtype (Element : in out Derived_Type_Node; Value : in Asis.Declaration); function Corresponding_Root_Type (Element : Derived_Type_Node) return Asis.Declaration; procedure Set_Corresponding_Root_Type (Element : in out Derived_Type_Node; Value : in Asis.Declaration); function Implicit_Inherited_Declarations (Element : Derived_Type_Node; Include_Pragmas : in Boolean := False) return Asis.Element_List; procedure Add_To_Implicit_Inherited_Declarations (Element : in out Derived_Type_Node; Item : in Asis.Element); function Implicit_Inherited_Subprograms (Element : Derived_Type_Node; Include_Pragmas : in Boolean := False) return Asis.Element_List; procedure Add_To_Implicit_Inherited_Subprograms (Element : in out Derived_Type_Node; Item : in Asis.Element); function Corresponding_Type_Structure (Element : Derived_Type_Node) return Asis.Declaration; procedure Set_Corresponding_Type_Structure (Element : in out Derived_Type_Node; Value : in Asis.Declaration); function Trait_Kind (Element : Derived_Type_Node) return Asis.Trait_Kinds; procedure Set_Trait_Kind (Element : in out Derived_Type_Node; Value : in Asis.Trait_Kinds); function Parent_Subtype_Indication (Element : Derived_Type_Node) return Asis.Subtype_Indication; procedure Set_Parent_Subtype_Indication (Element : in out Derived_Type_Node; Value : in Asis.Subtype_Indication); function Has_Limited (Element : Derived_Type_Node) return Boolean; procedure Set_Has_Limited (Element : in out Derived_Type_Node; Value : in Boolean); function Has_Abstract (Element : Derived_Type_Node) return Boolean; procedure Set_Has_Abstract (Element : in out Derived_Type_Node; Value : in Boolean); function Type_Definition_Kind (Element : Derived_Type_Node) return Asis.Type_Kinds; function Children (Element : access Derived_Type_Node) return Traverse_List; function Clone (Element : Derived_Type_Node; Parent : Asis.Element) return Asis.Element; procedure Copy (Source : in Asis.Element; Target : access Derived_Type_Node; Cloner : in Cloner_Class; Parent : in Asis.Element); ----------------------------------- -- Derived_Record_Extension_Node -- ----------------------------------- type Derived_Record_Extension_Node is new Derived_Type_Node with private; type Derived_Record_Extension_Ptr is access all Derived_Record_Extension_Node; for Derived_Record_Extension_Ptr'Storage_Pool use Lists.Pool; function New_Derived_Record_Extension_Node (The_Context : ASIS.Context) return Derived_Record_Extension_Ptr; function Progenitor_List (Element : Derived_Record_Extension_Node; Include_Pragmas : in Boolean := False) return Asis.Element_List; procedure Set_Progenitor_List (Element : in out Derived_Record_Extension_Node; Value : in Asis.Element); function Progenitor_List_List (Element : Derived_Record_Extension_Node) return Asis.Element; function Get_Record_Definition (Element : Derived_Record_Extension_Node) return Asis.Definition; procedure Set_Record_Definition (Element : in out Derived_Record_Extension_Node; Value : in Asis.Definition); function Type_Definition_Kind (Element : Derived_Record_Extension_Node) return Asis.Type_Kinds; function Children (Element : access Derived_Record_Extension_Node) return Traverse_List; function Clone (Element : Derived_Record_Extension_Node; Parent : Asis.Element) return Asis.Element; procedure Copy (Source : in Asis.Element; Target : access Derived_Record_Extension_Node; Cloner : in Cloner_Class; Parent : in Asis.Element); --------------------------- -- Enumeration_Type_Node -- --------------------------- type Enumeration_Type_Node is new Type_Definition_Node with private; type Enumeration_Type_Ptr is access all Enumeration_Type_Node; for Enumeration_Type_Ptr'Storage_Pool use Lists.Pool; function New_Enumeration_Type_Node (The_Context : ASIS.Context) return Enumeration_Type_Ptr; function Enumeration_Literal_Declarations (Element : Enumeration_Type_Node; Include_Pragmas : in Boolean := False) return Asis.Element_List; procedure Set_Enumeration_Literal_Declarations (Element : in out Enumeration_Type_Node; Value : in Asis.Element); function Enumeration_Literal_Declarations_List (Element : Enumeration_Type_Node) return Asis.Element; function Type_Definition_Kind (Element : Enumeration_Type_Node) return Asis.Type_Kinds; function Children (Element : access Enumeration_Type_Node) return Traverse_List; function Clone (Element : Enumeration_Type_Node; Parent : Asis.Element) return Asis.Element; procedure Copy (Source : in Asis.Element; Target : access Enumeration_Type_Node; Cloner : in Cloner_Class; Parent : in Asis.Element); ------------------------------ -- Signed_Integer_Type_Node -- ------------------------------ type Signed_Integer_Type_Node is new Type_Definition_Node with private; type Signed_Integer_Type_Ptr is access all Signed_Integer_Type_Node; for Signed_Integer_Type_Ptr'Storage_Pool use Lists.Pool; function New_Signed_Integer_Type_Node (The_Context : ASIS.Context) return Signed_Integer_Type_Ptr; function Integer_Constraint (Element : Signed_Integer_Type_Node) return Asis.Range_Constraint; procedure Set_Integer_Constraint (Element : in out Signed_Integer_Type_Node; Value : in Asis.Range_Constraint); function Type_Definition_Kind (Element : Signed_Integer_Type_Node) return Asis.Type_Kinds; function Children (Element : access Signed_Integer_Type_Node) return Traverse_List; function Clone (Element : Signed_Integer_Type_Node; Parent : Asis.Element) return Asis.Element; procedure Copy (Source : in Asis.Element; Target : access Signed_Integer_Type_Node; Cloner : in Cloner_Class; Parent : in Asis.Element); ----------------------- -- Modular_Type_Node -- ----------------------- type Modular_Type_Node is new Type_Definition_Node with private; type Modular_Type_Ptr is access all Modular_Type_Node; for Modular_Type_Ptr'Storage_Pool use Lists.Pool; function New_Modular_Type_Node (The_Context : ASIS.Context) return Modular_Type_Ptr; function Mod_Static_Expression (Element : Modular_Type_Node) return Asis.Expression; procedure Set_Mod_Static_Expression (Element : in out Modular_Type_Node; Value : in Asis.Expression); function Type_Definition_Kind (Element : Modular_Type_Node) return Asis.Type_Kinds; function Children (Element : access Modular_Type_Node) return Traverse_List; function Clone (Element : Modular_Type_Node; Parent : Asis.Element) return Asis.Element; procedure Copy (Source : in Asis.Element; Target : access Modular_Type_Node; Cloner : in Cloner_Class; Parent : in Asis.Element); -------------------- -- Root_Type_Node -- -------------------- type Root_Type_Node is new Type_Definition_Node with private; type Root_Type_Ptr is access all Root_Type_Node; for Root_Type_Ptr'Storage_Pool use Lists.Pool; function New_Root_Type_Node (The_Context : ASIS.Context) return Root_Type_Ptr; function Root_Type_Kind (Element : Root_Type_Node) return Asis.Root_Type_Kinds; procedure Set_Root_Type_Kind (Element : in out Root_Type_Node; Value : in Asis.Root_Type_Kinds); function Type_Definition_Kind (Element : Root_Type_Node) return Asis.Type_Kinds; function Clone (Element : Root_Type_Node; Parent : Asis.Element) return Asis.Element; ------------------------- -- Floating_Point_Node -- ------------------------- type Floating_Point_Node is new Type_Definition_Node with private; type Floating_Point_Ptr is access all Floating_Point_Node; for Floating_Point_Ptr'Storage_Pool use Lists.Pool; function New_Floating_Point_Node (The_Context : ASIS.Context) return Floating_Point_Ptr; function Digits_Expression (Element : Floating_Point_Node) return Asis.Expression; procedure Set_Digits_Expression (Element : in out Floating_Point_Node; Value : in Asis.Expression); function Real_Range_Constraint (Element : Floating_Point_Node) return Asis.Range_Constraint; procedure Set_Real_Range_Constraint (Element : in out Floating_Point_Node; Value : in Asis.Range_Constraint); function Type_Definition_Kind (Element : Floating_Point_Node) return Asis.Type_Kinds; function Children (Element : access Floating_Point_Node) return Traverse_List; function Clone (Element : Floating_Point_Node; Parent : Asis.Element) return Asis.Element; procedure Copy (Source : in Asis.Element; Target : access Floating_Point_Node; Cloner : in Cloner_Class; Parent : in Asis.Element); ------------------------------- -- Ordinary_Fixed_Point_Node -- ------------------------------- type Ordinary_Fixed_Point_Node is new Type_Definition_Node with private; type Ordinary_Fixed_Point_Ptr is access all Ordinary_Fixed_Point_Node; for Ordinary_Fixed_Point_Ptr'Storage_Pool use Lists.Pool; function New_Ordinary_Fixed_Point_Node (The_Context : ASIS.Context) return Ordinary_Fixed_Point_Ptr; function Delta_Expression (Element : Ordinary_Fixed_Point_Node) return Asis.Expression; procedure Set_Delta_Expression (Element : in out Ordinary_Fixed_Point_Node; Value : in Asis.Expression); function Real_Range_Constraint (Element : Ordinary_Fixed_Point_Node) return Asis.Range_Constraint; procedure Set_Real_Range_Constraint (Element : in out Ordinary_Fixed_Point_Node; Value : in Asis.Range_Constraint); function Type_Definition_Kind (Element : Ordinary_Fixed_Point_Node) return Asis.Type_Kinds; function Children (Element : access Ordinary_Fixed_Point_Node) return Traverse_List; function Clone (Element : Ordinary_Fixed_Point_Node; Parent : Asis.Element) return Asis.Element; procedure Copy (Source : in Asis.Element; Target : access Ordinary_Fixed_Point_Node; Cloner : in Cloner_Class; Parent : in Asis.Element); ------------------------------ -- Decimal_Fixed_Point_Node -- ------------------------------ type Decimal_Fixed_Point_Node is new Ordinary_Fixed_Point_Node with private; type Decimal_Fixed_Point_Ptr is access all Decimal_Fixed_Point_Node; for Decimal_Fixed_Point_Ptr'Storage_Pool use Lists.Pool; function New_Decimal_Fixed_Point_Node (The_Context : ASIS.Context) return Decimal_Fixed_Point_Ptr; function Digits_Expression (Element : Decimal_Fixed_Point_Node) return Asis.Expression; procedure Set_Digits_Expression (Element : in out Decimal_Fixed_Point_Node; Value : in Asis.Expression); function Type_Definition_Kind (Element : Decimal_Fixed_Point_Node) return Asis.Type_Kinds; function Children (Element : access Decimal_Fixed_Point_Node) return Traverse_List; function Clone (Element : Decimal_Fixed_Point_Node; Parent : Asis.Element) return Asis.Element; procedure Copy (Source : in Asis.Element; Target : access Decimal_Fixed_Point_Node; Cloner : in Cloner_Class; Parent : in Asis.Element); ------------------------------ -- Unconstrained_Array_Node -- ------------------------------ type Unconstrained_Array_Node is new Type_Definition_Node with private; type Unconstrained_Array_Ptr is access all Unconstrained_Array_Node; for Unconstrained_Array_Ptr'Storage_Pool use Lists.Pool; function New_Unconstrained_Array_Node (The_Context : ASIS.Context) return Unconstrained_Array_Ptr; function Index_Subtype_Definitions (Element : Unconstrained_Array_Node; Include_Pragmas : in Boolean := False) return Asis.Element_List; procedure Set_Index_Subtype_Definitions (Element : in out Unconstrained_Array_Node; Value : in Asis.Element); function Index_Subtype_Definitions_List (Element : Unconstrained_Array_Node) return Asis.Element; function Array_Component_Definition (Element : Unconstrained_Array_Node) return Asis.Component_Definition; procedure Set_Array_Component_Definition (Element : in out Unconstrained_Array_Node; Value : in Asis.Component_Definition); function Type_Definition_Kind (Element : Unconstrained_Array_Node) return Asis.Type_Kinds; function Children (Element : access Unconstrained_Array_Node) return Traverse_List; function Clone (Element : Unconstrained_Array_Node; Parent : Asis.Element) return Asis.Element; procedure Copy (Source : in Asis.Element; Target : access Unconstrained_Array_Node; Cloner : in Cloner_Class; Parent : in Asis.Element); ---------------------------- -- Constrained_Array_Node -- ---------------------------- type Constrained_Array_Node is new Type_Definition_Node with private; type Constrained_Array_Ptr is access all Constrained_Array_Node; for Constrained_Array_Ptr'Storage_Pool use Lists.Pool; function New_Constrained_Array_Node (The_Context : ASIS.Context) return Constrained_Array_Ptr; function Discrete_Subtype_Definitions (Element : Constrained_Array_Node; Include_Pragmas : in Boolean := False) return Asis.Element_List; procedure Set_Discrete_Subtype_Definitions (Element : in out Constrained_Array_Node; Value : in Asis.Element); function Discrete_Subtype_Definitions_List (Element : Constrained_Array_Node) return Asis.Element; function Array_Component_Definition (Element : Constrained_Array_Node) return Asis.Component_Definition; procedure Set_Array_Component_Definition (Element : in out Constrained_Array_Node; Value : in Asis.Component_Definition); function Type_Definition_Kind (Element : Constrained_Array_Node) return Asis.Type_Kinds; function Children (Element : access Constrained_Array_Node) return Traverse_List; function Clone (Element : Constrained_Array_Node; Parent : Asis.Element) return Asis.Element; procedure Copy (Source : in Asis.Element; Target : access Constrained_Array_Node; Cloner : in Cloner_Class; Parent : in Asis.Element); ---------------------- -- Record_Type_Node -- ---------------------- type Record_Type_Node is new Type_Definition_Node with private; type Record_Type_Ptr is access all Record_Type_Node; for Record_Type_Ptr'Storage_Pool use Lists.Pool; function New_Record_Type_Node (The_Context : ASIS.Context) return Record_Type_Ptr; function Trait_Kind (Element : Record_Type_Node) return Asis.Trait_Kinds; procedure Set_Trait_Kind (Element : in out Record_Type_Node; Value : in Asis.Trait_Kinds); function Get_Record_Definition (Element : Record_Type_Node) return Asis.Definition; procedure Set_Record_Definition (Element : in out Record_Type_Node; Value : in Asis.Definition); function Has_Limited (Element : Record_Type_Node) return Boolean; procedure Set_Has_Limited (Element : in out Record_Type_Node; Value : in Boolean); function Type_Definition_Kind (Element : Record_Type_Node) return Asis.Type_Kinds; function Children (Element : access Record_Type_Node) return Traverse_List; function Clone (Element : Record_Type_Node; Parent : Asis.Element) return Asis.Element; procedure Copy (Source : in Asis.Element; Target : access Record_Type_Node; Cloner : in Cloner_Class; Parent : in Asis.Element); ----------------------------- -- Tagged_Record_Type_Node -- ----------------------------- type Tagged_Record_Type_Node is new Record_Type_Node with private; type Tagged_Record_Type_Ptr is access all Tagged_Record_Type_Node; for Tagged_Record_Type_Ptr'Storage_Pool use Lists.Pool; function New_Tagged_Record_Type_Node (The_Context : ASIS.Context) return Tagged_Record_Type_Ptr; function Has_Abstract (Element : Tagged_Record_Type_Node) return Boolean; procedure Set_Has_Abstract (Element : in out Tagged_Record_Type_Node; Value : in Boolean); function Has_Tagged (Element : Tagged_Record_Type_Node) return Boolean; procedure Set_Has_Tagged (Element : in out Tagged_Record_Type_Node; Value : in Boolean); function Type_Definition_Kind (Element : Tagged_Record_Type_Node) return Asis.Type_Kinds; function Clone (Element : Tagged_Record_Type_Node; Parent : Asis.Element) return Asis.Element; procedure Copy (Source : in Asis.Element; Target : access Tagged_Record_Type_Node; Cloner : in Cloner_Class; Parent : in Asis.Element); ------------------------- -- Interface_Type_Node -- ------------------------- type Interface_Type_Node is new Type_Definition_Node with private; type Interface_Type_Ptr is access all Interface_Type_Node; for Interface_Type_Ptr'Storage_Pool use Lists.Pool; function New_Interface_Type_Node (The_Context : ASIS.Context) return Interface_Type_Ptr; function Interface_Kind (Element : Interface_Type_Node) return Asis.Interface_Kinds; procedure Set_Interface_Kind (Element : in out Interface_Type_Node; Value : in Asis.Interface_Kinds); function Has_Limited (Element : Interface_Type_Node) return Boolean; procedure Set_Has_Limited (Element : in out Interface_Type_Node; Value : in Boolean); function Has_Synchronized (Element : Interface_Type_Node) return Boolean; procedure Set_Has_Synchronized (Element : in out Interface_Type_Node; Value : in Boolean); function Has_Protected (Element : Interface_Type_Node) return Boolean; procedure Set_Has_Protected (Element : in out Interface_Type_Node; Value : in Boolean); function Has_Task (Element : Interface_Type_Node) return Boolean; procedure Set_Has_Task (Element : in out Interface_Type_Node; Value : in Boolean); function Progenitor_List (Element : Interface_Type_Node; Include_Pragmas : in Boolean := False) return Asis.Element_List; procedure Set_Progenitor_List (Element : in out Interface_Type_Node; Value : in Asis.Element); function Progenitor_List_List (Element : Interface_Type_Node) return Asis.Element; function Implicit_Inherited_Subprograms (Element : Interface_Type_Node; Include_Pragmas : in Boolean := False) return Asis.Element_List; procedure Add_To_Implicit_Inherited_Subprograms (Element : in out Interface_Type_Node; Item : in Asis.Element); function Type_Definition_Kind (Element : Interface_Type_Node) return Asis.Type_Kinds; function Children (Element : access Interface_Type_Node) return Traverse_List; function Clone (Element : Interface_Type_Node; Parent : Asis.Element) return Asis.Element; procedure Copy (Source : in Asis.Element; Target : access Interface_Type_Node; Cloner : in Cloner_Class; Parent : in Asis.Element); ---------------------- -- Access_Type_Node -- ---------------------- type Access_Type_Node is new Type_Definition_Node with private; type Access_Type_Ptr is access all Access_Type_Node; for Access_Type_Ptr'Storage_Pool use Lists.Pool; function New_Access_Type_Node (The_Context : ASIS.Context) return Access_Type_Ptr; function Access_Type_Kind (Element : Access_Type_Node) return Asis.Access_Type_Kinds; procedure Set_Access_Type_Kind (Element : in out Access_Type_Node; Value : in Asis.Access_Type_Kinds); function Get_Access_To_Object_Definition (Element : Access_Type_Node) return Asis.Subtype_Indication; procedure Set_Access_To_Object_Definition (Element : in out Access_Type_Node; Value : in Asis.Subtype_Indication); function Access_To_Subprogram_Parameter_Profile (Element : Access_Type_Node; Include_Pragmas : in Boolean := False) return Asis.Element_List; procedure Set_Access_To_Subprogram_Parameter_Profile (Element : in out Access_Type_Node; Value : in Asis.Element); function Access_To_Subprogram_Parameter_Profile_List (Element : Access_Type_Node) return Asis.Element; function Access_To_Function_Result_Subtype (Element : Access_Type_Node) return Asis.Definition; procedure Set_Access_To_Function_Result_Subtype (Element : in out Access_Type_Node; Value : in Asis.Definition); function Has_Null_Exclusion (Element : Access_Type_Node) return Boolean; procedure Set_Has_Null_Exclusion (Element : in out Access_Type_Node; Value : in Boolean); function Type_Definition_Kind (Element : Access_Type_Node) return Asis.Type_Kinds; function Children (Element : access Access_Type_Node) return Traverse_List; function Clone (Element : Access_Type_Node; Parent : Asis.Element) return Asis.Element; procedure Copy (Source : in Asis.Element; Target : access Access_Type_Node; Cloner : in Cloner_Class; Parent : in Asis.Element); private type Derived_Type_Node is new Type_Definition_Node with record Corresponding_Parent_Subtype : aliased Asis.Declaration; Corresponding_Root_Type : aliased Asis.Declaration; Implicit_Inherited_Declarations : aliased Secondary_Declaration_Lists.List_Node; Implicit_Inherited_Subprograms : aliased Secondary_Declaration_Lists.List_Node; Corresponding_Type_Structure : aliased Asis.Declaration; Trait_Kind : aliased Asis.Trait_Kinds := An_Ordinary_Trait; Parent_Subtype_Indication : aliased Asis.Subtype_Indication; Has_Limited : aliased Boolean := False; Has_Abstract : aliased Boolean := False; end record; type Derived_Record_Extension_Node is new Derived_Type_Node with record Progenitor_List : aliased Primary_Expression_Lists.List; Record_Definition : aliased Asis.Definition; end record; type Enumeration_Type_Node is new Type_Definition_Node with record Enumeration_Literal_Declarations : aliased Primary_Declaration_Lists.List; end record; type Signed_Integer_Type_Node is new Type_Definition_Node with record Integer_Constraint : aliased Asis.Range_Constraint; end record; type Modular_Type_Node is new Type_Definition_Node with record Mod_Static_Expression : aliased Asis.Expression; end record; type Root_Type_Node is new Type_Definition_Node with record Root_Type_Kind : aliased Asis.Root_Type_Kinds := Not_A_Root_Type_Definition; end record; type Floating_Point_Node is new Type_Definition_Node with record Digits_Expression : aliased Asis.Expression; Real_Range_Constraint : aliased Asis.Range_Constraint; end record; type Ordinary_Fixed_Point_Node is new Type_Definition_Node with record Delta_Expression : aliased Asis.Expression; Real_Range_Constraint : aliased Asis.Range_Constraint; end record; type Decimal_Fixed_Point_Node is new Ordinary_Fixed_Point_Node with record Digits_Expression : aliased Asis.Expression; end record; type Unconstrained_Array_Node is new Type_Definition_Node with record Index_Subtype_Definitions : aliased Primary_Identifier_Lists.List; Array_Component_Definition : aliased Asis.Component_Definition; end record; type Constrained_Array_Node is new Type_Definition_Node with record Discrete_Subtype_Definitions : aliased Primary_Definition_Lists.List; Array_Component_Definition : aliased Asis.Component_Definition; end record; type Record_Type_Node is new Type_Definition_Node with record Trait_Kind : aliased Asis.Trait_Kinds := An_Ordinary_Trait; Record_Definition : aliased Asis.Definition; Has_Limited : aliased Boolean := False; end record; type Tagged_Record_Type_Node is new Record_Type_Node with record Has_Abstract : aliased Boolean := False; Has_Tagged : aliased Boolean := False; end record; type Interface_Type_Node is new Type_Definition_Node with record Interface_Kind : aliased Asis.Interface_Kinds := Not_An_Interface; Has_Limited : aliased Boolean := False; Has_Synchronized : aliased Boolean := False; Has_Protected : aliased Boolean := False; Has_Task : aliased Boolean := False; Progenitor_List : aliased Primary_Expression_Lists.List; Implicit_Inherited_Subprograms : aliased Secondary_Declaration_Lists.List_Node; end record; type Access_Type_Node is new Type_Definition_Node with record Access_Type_Kind : aliased Asis.Access_Type_Kinds := A_Pool_Specific_Access_To_Variable; Access_To_Object_Definition : aliased Asis.Subtype_Indication; Access_To_Subprogram_Parameter_Profile : aliased Primary_Parameter_Lists.List; Access_To_Function_Result_Subtype : aliased Asis.Definition; Has_Null_Exclusion : aliased Boolean := False; end record; end Asis.Gela.Elements.Defs.Types;
31.047418
111
0.685073
59950e9deee00d4552384121e4466412dd76fe88
130
ads
Ada
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/package_renaming_declaration.ads
LaudateCorpus1/rose-1
5fe906d2a01253130c5de465aded6a917a8476a0
[ "BSD-3-Clause" ]
488
2015-01-09T08:54:48.000Z
2022-03-30T07:15:46.000Z
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/package_renaming_declaration.ads
LaudateCorpus1/rose-1
5fe906d2a01253130c5de465aded6a917a8476a0
[ "BSD-3-Clause" ]
174
2015-01-28T18:41:32.000Z
2022-03-31T16:51:05.000Z
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/package_renaming_declaration.ads
LaudateCorpus1/rose-1
5fe906d2a01253130c5de465aded6a917a8476a0
[ "BSD-3-Clause" ]
146
2015-04-27T02:48:34.000Z
2022-03-04T07:32:53.000Z
with Ada.Text_IO; package package_renaming_declaration is package IO renames Ada.Text_IO; end package_renaming_declaration;
21.666667
39
0.830769
1260fba05ccf6af14c7feccefad2419bdb1916cc
14,693
ads
Ada
gcc-gcc-7_3_0-release/gcc/ada/a-coorse.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/ada/a-coorse.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/ada/a-coorse.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- A D A . C O N T A I N E R S . O R D E R E D _ S E T S -- -- -- -- S p e c -- -- -- -- Copyright (C) 2004-2015, Free Software Foundation, Inc. -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. The copyright notice above, and the license provisions that follow -- -- apply solely to the contents of the part following the private keyword. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- This unit was originally developed by Matthew J Heaney. -- ------------------------------------------------------------------------------ with Ada.Iterator_Interfaces; with Ada.Containers.Helpers; private with Ada.Containers.Red_Black_Trees; private with Ada.Finalization; private with Ada.Streams; generic type Element_Type is private; with function "<" (Left, Right : Element_Type) return Boolean is <>; with function "=" (Left, Right : Element_Type) return Boolean is <>; package Ada.Containers.Ordered_Sets is pragma Annotate (CodePeer, Skip_Analysis); pragma Preelaborate; pragma Remote_Types; function Equivalent_Elements (Left, Right : Element_Type) return Boolean; type Set is tagged private with Constant_Indexing => Constant_Reference, Default_Iterator => Iterate, Iterator_Element => Element_Type; pragma Preelaborable_Initialization (Set); type Cursor is private; pragma Preelaborable_Initialization (Cursor); function Has_Element (Position : Cursor) return Boolean; Empty_Set : constant Set; No_Element : constant Cursor; package Set_Iterator_Interfaces is new Ada.Iterator_Interfaces (Cursor, Has_Element); function "=" (Left, Right : Set) return Boolean; function Equivalent_Sets (Left, Right : Set) return Boolean; function To_Set (New_Item : Element_Type) return Set; function Length (Container : Set) return Count_Type; function Is_Empty (Container : Set) return Boolean; procedure Clear (Container : in out Set); function Element (Position : Cursor) return Element_Type; procedure Replace_Element (Container : in out Set; Position : Cursor; New_Item : Element_Type); procedure Query_Element (Position : Cursor; Process : not null access procedure (Element : Element_Type)); type Constant_Reference_Type (Element : not null access constant Element_Type) is private with Implicit_Dereference => Element; function Constant_Reference (Container : aliased Set; Position : Cursor) return Constant_Reference_Type; pragma Inline (Constant_Reference); procedure Assign (Target : in out Set; Source : Set); function Copy (Source : Set) return Set; procedure Move (Target : in out Set; Source : in out Set); procedure Insert (Container : in out Set; New_Item : Element_Type; Position : out Cursor; Inserted : out Boolean); procedure Insert (Container : in out Set; New_Item : Element_Type); procedure Include (Container : in out Set; New_Item : Element_Type); procedure Replace (Container : in out Set; New_Item : Element_Type); procedure Exclude (Container : in out Set; Item : Element_Type); procedure Delete (Container : in out Set; Item : Element_Type); procedure Delete (Container : in out Set; Position : in out Cursor); procedure Delete_First (Container : in out Set); procedure Delete_Last (Container : in out Set); procedure Union (Target : in out Set; Source : Set); function Union (Left, Right : Set) return Set; function "or" (Left, Right : Set) return Set renames Union; procedure Intersection (Target : in out Set; Source : Set); function Intersection (Left, Right : Set) return Set; function "and" (Left, Right : Set) return Set renames Intersection; procedure Difference (Target : in out Set; Source : Set); function Difference (Left, Right : Set) return Set; function "-" (Left, Right : Set) return Set renames Difference; procedure Symmetric_Difference (Target : in out Set; Source : Set); function Symmetric_Difference (Left, Right : Set) return Set; function "xor" (Left, Right : Set) return Set renames Symmetric_Difference; function Overlap (Left, Right : Set) return Boolean; function Is_Subset (Subset : Set; Of_Set : Set) return Boolean; function First (Container : Set) return Cursor; function First_Element (Container : Set) return Element_Type; function Last (Container : Set) return Cursor; function Last_Element (Container : Set) return Element_Type; function Next (Position : Cursor) return Cursor; procedure Next (Position : in out Cursor); function Previous (Position : Cursor) return Cursor; procedure Previous (Position : in out Cursor); function Find (Container : Set; Item : Element_Type) return Cursor; function Floor (Container : Set; Item : Element_Type) return Cursor; function Ceiling (Container : Set; Item : Element_Type) return Cursor; function Contains (Container : Set; Item : Element_Type) return Boolean; function "<" (Left, Right : Cursor) return Boolean; function ">" (Left, Right : Cursor) return Boolean; function "<" (Left : Cursor; Right : Element_Type) return Boolean; function ">" (Left : Cursor; Right : Element_Type) return Boolean; function "<" (Left : Element_Type; Right : Cursor) return Boolean; function ">" (Left : Element_Type; Right : Cursor) return Boolean; procedure Iterate (Container : Set; Process : not null access procedure (Position : Cursor)); procedure Reverse_Iterate (Container : Set; Process : not null access procedure (Position : Cursor)); function Iterate (Container : Set) return Set_Iterator_Interfaces.Reversible_Iterator'class; function Iterate (Container : Set; Start : Cursor) return Set_Iterator_Interfaces.Reversible_Iterator'class; generic type Key_Type (<>) is private; with function Key (Element : Element_Type) return Key_Type; with function "<" (Left, Right : Key_Type) return Boolean is <>; package Generic_Keys is function Equivalent_Keys (Left, Right : Key_Type) return Boolean; function Key (Position : Cursor) return Key_Type; function Element (Container : Set; Key : Key_Type) return Element_Type; procedure Replace (Container : in out Set; Key : Key_Type; New_Item : Element_Type); procedure Exclude (Container : in out Set; Key : Key_Type); procedure Delete (Container : in out Set; Key : Key_Type); function Find (Container : Set; Key : Key_Type) return Cursor; function Floor (Container : Set; Key : Key_Type) return Cursor; function Ceiling (Container : Set; Key : Key_Type) return Cursor; function Contains (Container : Set; Key : Key_Type) return Boolean; procedure Update_Element_Preserving_Key (Container : in out Set; Position : Cursor; Process : not null access procedure (Element : in out Element_Type)); type Reference_Type (Element : not null access Element_Type) is private with Implicit_Dereference => Element; function Reference_Preserving_Key (Container : aliased in out Set; Position : Cursor) return Reference_Type; function Constant_Reference (Container : aliased Set; Key : Key_Type) return Constant_Reference_Type; function Reference_Preserving_Key (Container : aliased in out Set; Key : Key_Type) return Reference_Type; private type Set_Access is access all Set; for Set_Access'Storage_Size use 0; type Key_Access is access all Key_Type; package Impl is new Helpers.Generic_Implementation; type Reference_Control_Type is new Impl.Reference_Control_Type with record Container : Set_Access; Pos : Cursor; Old_Key : Key_Access; end record; overriding procedure Finalize (Control : in out Reference_Control_Type); pragma Inline (Finalize); type Reference_Type (Element : not null access Element_Type) is record Control : Reference_Control_Type; end record; use Ada.Streams; procedure Write (Stream : not null access Root_Stream_Type'Class; Item : Reference_Type); for Reference_Type'Write use Write; procedure Read (Stream : not null access Root_Stream_Type'Class; Item : out Reference_Type); for Reference_Type'Read use Read; end Generic_Keys; private pragma Inline (Next); pragma Inline (Previous); type Node_Type; type Node_Access is access Node_Type; type Node_Type is limited record Parent : Node_Access; Left : Node_Access; Right : Node_Access; Color : Red_Black_Trees.Color_Type := Red_Black_Trees.Red; Element : aliased Element_Type; end record; package Tree_Types is new Red_Black_Trees.Generic_Tree_Types (Node_Type, Node_Access); type Set is new Ada.Finalization.Controlled with record Tree : Tree_Types.Tree_Type; end record; overriding procedure Adjust (Container : in out Set); overriding procedure Finalize (Container : in out Set) renames Clear; use Red_Black_Trees; use Tree_Types, Tree_Types.Implementation; use Ada.Finalization; use Ada.Streams; procedure Write (Stream : not null access Root_Stream_Type'Class; Container : Set); for Set'Write use Write; procedure Read (Stream : not null access Root_Stream_Type'Class; Container : out Set); for Set'Read use Read; type Set_Access is access all Set; for Set_Access'Storage_Size use 0; type Cursor is record Container : Set_Access; Node : Node_Access; end record; procedure Write (Stream : not null access Root_Stream_Type'Class; Item : Cursor); for Cursor'Write use Write; procedure Read (Stream : not null access Root_Stream_Type'Class; Item : out Cursor); for Cursor'Read use Read; subtype Reference_Control_Type is Implementation.Reference_Control_Type; -- It is necessary to rename this here, so that the compiler can find it type Constant_Reference_Type (Element : not null access constant Element_Type) is record Control : Reference_Control_Type := raise Program_Error with "uninitialized reference"; -- The RM says, "The default initialization of an object of -- type Constant_Reference_Type or Reference_Type propagates -- Program_Error." end record; procedure Write (Stream : not null access Root_Stream_Type'Class; Item : Constant_Reference_Type); for Constant_Reference_Type'Write use Write; procedure Read (Stream : not null access Root_Stream_Type'Class; Item : out Constant_Reference_Type); for Constant_Reference_Type'Read use Read; -- Three operations are used to optimize in the expansion of "for ... of" -- loops: the Next(Cursor) procedure in the visible part, and the following -- Pseudo_Reference and Get_Element_Access functions. See Sem_Ch5 for -- details. function Pseudo_Reference (Container : aliased Set'Class) return Reference_Control_Type; pragma Inline (Pseudo_Reference); -- Creates an object of type Reference_Control_Type pointing to the -- container, and increments the Lock. Finalization of this object will -- decrement the Lock. type Element_Access is access all Element_Type with Storage_Size => 0; function Get_Element_Access (Position : Cursor) return not null Element_Access; -- Returns a pointer to the element designated by Position. Empty_Set : constant Set := (Controlled with others => <>); No_Element : constant Cursor := Cursor'(null, null); type Iterator is new Limited_Controlled and Set_Iterator_Interfaces.Reversible_Iterator with record Container : Set_Access; Node : Node_Access; end record with Disable_Controlled => not T_Check; overriding procedure Finalize (Object : in out Iterator); overriding function First (Object : Iterator) return Cursor; overriding function Last (Object : Iterator) return Cursor; overriding function Next (Object : Iterator; Position : Cursor) return Cursor; overriding function Previous (Object : Iterator; Position : Cursor) return Cursor; end Ada.Containers.Ordered_Sets;
32.363436
79
0.637378
1cc06de6d0d3e4b41d843457ddfa4a0bbb1613c1
2,804
ads
Ada
gcc-gcc-7_3_0-release/gcc/ada/g-sptain.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/ada/g-sptain.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/ada/g-sptain.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- G N A T . S P I T B O L . T A B L E _ I N T E G E R -- -- -- -- S p e c -- -- -- -- Copyright (C) 1997-2010, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- SPITBOL tables with integer values -- This package provides a predefined instantiation of the table abstraction -- for type Standard.Integer. The largest negative integer is used as the -- null value for the table. This package is based on Macro-SPITBOL created -- by Robert Dewar. package GNAT.Spitbol.Table_Integer is new GNAT.Spitbol.Table (Integer, Integer'First, Integer'Image); pragma Preelaborate (Table_Integer);
66.761905
78
0.426177
59f13e8929aa6758168fcfbe165e36fff48ecfb3
112,071
adb
Ada
Vision/video_edge/proj/sol1/.autopilot/db/image_filter.sched.adb
3togo/HLx_Examples
6ae03055eead7a434dc7f397be3d5fdcb0046e65
[ "BSD-3-Clause" ]
null
null
null
Vision/video_edge/proj/sol1/.autopilot/db/image_filter.sched.adb
3togo/HLx_Examples
6ae03055eead7a434dc7f397be3d5fdcb0046e65
[ "BSD-3-Clause" ]
null
null
null
Vision/video_edge/proj/sol1/.autopilot/db/image_filter.sched.adb
3togo/HLx_Examples
6ae03055eead7a434dc7f397be3d5fdcb0046e65
[ "BSD-3-Clause" ]
null
null
null
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" version="0" object_id="_0"> <name>image_filter</name> <ret_bitwidth>0</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>14</count> <item_version>0</item_version> <item class_id="3" tracking_level="1" version="0" object_id="_1"> <Value class_id="4" tracking_level="0" version="0"> <Obj class_id="5" tracking_level="0" version="0"> <type>1</type> <id>1</id> <name>VIDEO_IN_V_data_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo class_id="6" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>INPUT_STREAM.V.data.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs class_id="7" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_2"> <Value> <Obj> <type>1</type> <id>2</id> <name>VIDEO_IN_V_keep_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>INPUT_STREAM.V.keep.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>4</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_3"> <Value> <Obj> <type>1</type> <id>3</id> <name>VIDEO_IN_V_strb_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>INPUT_STREAM.V.strb.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>4</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_4"> <Value> <Obj> <type>1</type> <id>4</id> <name>VIDEO_IN_V_user_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>INPUT_STREAM.V.user.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_5"> <Value> <Obj> <type>1</type> <id>5</id> <name>VIDEO_IN_V_last_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>INPUT_STREAM.V.last.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_6"> <Value> <Obj> <type>1</type> <id>6</id> <name>VIDEO_IN_V_id_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>INPUT_STREAM.V.id.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_7"> <Value> <Obj> <type>1</type> <id>7</id> <name>VIDEO_IN_V_dest_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>INPUT_STREAM.V.dest.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <direction>0</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_8"> <Value> <Obj> <type>1</type> <id>8</id> <name>VIDEO_OUT_V_data_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>OUTPUT_STREAM.V.data.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>32</bitwidth> </Value> <direction>1</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_9"> <Value> <Obj> <type>1</type> <id>9</id> <name>VIDEO_OUT_V_keep_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>OUTPUT_STREAM.V.keep.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>4</bitwidth> </Value> <direction>1</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_10"> <Value> <Obj> <type>1</type> <id>10</id> <name>VIDEO_OUT_V_strb_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>OUTPUT_STREAM.V.strb.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>4</bitwidth> </Value> <direction>1</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_11"> <Value> <Obj> <type>1</type> <id>11</id> <name>VIDEO_OUT_V_user_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>OUTPUT_STREAM.V.user.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <direction>1</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_12"> <Value> <Obj> <type>1</type> <id>12</id> <name>VIDEO_OUT_V_last_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>OUTPUT_STREAM.V.last.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <direction>1</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_13"> <Value> <Obj> <type>1</type> <id>13</id> <name>VIDEO_OUT_V_id_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>OUTPUT_STREAM.V.id.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <direction>1</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_14"> <Value> <Obj> <type>1</type> <id>14</id> <name>VIDEO_OUT_V_dest_V</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>OUTPUT_STREAM.V.dest.V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>1</bitwidth> </Value> <direction>1</direction> <if_type>0</if_type> <array_size>0</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> </ports> <nodes class_id="8" tracking_level="0" version="0"> <count>25</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_15"> <Value> <Obj> <type>0</type> <id>31</id> <name>img_0_data_stream_0</name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>55</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="10" tracking_level="0" version="0"> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second class_id="11" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="12" tracking_level="0" version="0"> <first class_id="13" tracking_level="0" version="0"> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>55</second> </item> </second> </item> </inlineStackInfo> <originalName>img_0.data_stream[0].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>96</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>1</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_16"> <Value> <Obj> <type>0</type> <id>34</id> <name>img_0_data_stream_1</name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>55</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>55</second> </item> </second> </item> </inlineStackInfo> <originalName>img_0.data_stream[1].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>97</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>2</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_17"> <Value> <Obj> <type>0</type> <id>37</id> <name>img_0_data_stream_2</name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>55</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>55</second> </item> </second> </item> </inlineStackInfo> <originalName>img_0.data_stream[2].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>98</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>3</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_18"> <Value> <Obj> <type>0</type> <id>40</id> <name>img_1a_data_stream_0</name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>56</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>56</second> </item> </second> </item> </inlineStackInfo> <originalName>img_1a.data_stream[0].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>99</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>4</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_19"> <Value> <Obj> <type>0</type> <id>43</id> <name>img_1a_data_stream_1</name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>56</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>56</second> </item> </second> </item> </inlineStackInfo> <originalName>img_1a.data_stream[1].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>100</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>5</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_20"> <Value> <Obj> <type>0</type> <id>46</id> <name>img_1a_data_stream_2</name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>56</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>56</second> </item> </second> </item> </inlineStackInfo> <originalName>img_1a.data_stream[2].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>101</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>6</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_21"> <Value> <Obj> <type>0</type> <id>49</id> <name>img_1b_data_stream_0</name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>57</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>57</second> </item> </second> </item> </inlineStackInfo> <originalName>img_1b.data_stream[0].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>102</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>7</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_22"> <Value> <Obj> <type>0</type> <id>52</id> <name>img_1b_data_stream_1</name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>57</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>57</second> </item> </second> </item> </inlineStackInfo> <originalName>img_1b.data_stream[1].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>103</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>8</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_23"> <Value> <Obj> <type>0</type> <id>55</id> <name>img_1b_data_stream_2</name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>57</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>57</second> </item> </second> </item> </inlineStackInfo> <originalName>img_1b.data_stream[2].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>104</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>9</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_24"> <Value> <Obj> <type>0</type> <id>58</id> <name>img_2a_data_stream_0</name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>58</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>58</second> </item> </second> </item> </inlineStackInfo> <originalName>img_2a.data_stream[0].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>105</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>10</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_25"> <Value> <Obj> <type>0</type> <id>61</id> <name>img_2a_data_stream_1</name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>58</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>58</second> </item> </second> </item> </inlineStackInfo> <originalName>img_2a.data_stream[1].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>106</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>11</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_26"> <Value> <Obj> <type>0</type> <id>64</id> <name>img_2a_data_stream_2</name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>58</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>58</second> </item> </second> </item> </inlineStackInfo> <originalName>img_2a.data_stream[2].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>107</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>12</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_27"> <Value> <Obj> <type>0</type> <id>67</id> <name>img_2b_data_stream_0</name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>59</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>59</second> </item> </second> </item> </inlineStackInfo> <originalName>img_2b.data_stream[0].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>108</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>13</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_28"> <Value> <Obj> <type>0</type> <id>70</id> <name>img_2b_data_stream_1</name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>59</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>59</second> </item> </second> </item> </inlineStackInfo> <originalName>img_2b.data_stream[1].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>109</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>14</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_29"> <Value> <Obj> <type>0</type> <id>73</id> <name>img_2b_data_stream_2</name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>59</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>59</second> </item> </second> </item> </inlineStackInfo> <originalName>img_2b.data_stream[2].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>110</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>15</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_30"> <Value> <Obj> <type>0</type> <id>76</id> <name>img_3_data_stream_0</name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>60</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>60</second> </item> </second> </item> </inlineStackInfo> <originalName>img_3.data_stream[0].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>111</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>16</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_31"> <Value> <Obj> <type>0</type> <id>79</id> <name>img_3_data_stream_1</name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>60</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>60</second> </item> </second> </item> </inlineStackInfo> <originalName>img_3.data_stream[1].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>112</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>17</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_32"> <Value> <Obj> <type>0</type> <id>82</id> <name>img_3_data_stream_2</name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>60</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>60</second> </item> </second> </item> </inlineStackInfo> <originalName>img_3.data_stream[2].V</originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>113</item> </oprand_edges> <opcode>alloca</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>18</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_33"> <Value> <Obj> <type>0</type> <id>87</id> <name></name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>63</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>63</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>11</count> <item_version>0</item_version> <item>115</item> <item>116</item> <item>117</item> <item>118</item> <item>119</item> <item>120</item> <item>121</item> <item>122</item> <item>123</item> <item>124</item> <item>125</item> </oprand_edges> <opcode>call</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>19</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_34"> <Value> <Obj> <type>0</type> <id>88</id> <name></name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>66</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>66</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>12</count> <item_version>0</item_version> <item>127</item> <item>128</item> <item>129</item> <item>130</item> <item>131</item> <item>132</item> <item>133</item> <item>134</item> <item>135</item> <item>136</item> <item>890</item> <item>891</item> </oprand_edges> <opcode>call</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>20</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_35"> <Value> <Obj> <type>0</type> <id>89</id> <name></name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>69</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>69</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>9</count> <item_version>0</item_version> <item>138</item> <item>139</item> <item>140</item> <item>141</item> <item>142</item> <item>143</item> <item>144</item> <item>888</item> <item>892</item> </oprand_edges> <opcode>call</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>21</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_36"> <Value> <Obj> <type>0</type> <id>90</id> <name></name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>70</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>70</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>8</count> <item_version>0</item_version> <item>146</item> <item>147</item> <item>148</item> <item>149</item> <item>150</item> <item>151</item> <item>152</item> <item>889</item> </oprand_edges> <opcode>call</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>22</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_37"> <Value> <Obj> <type>0</type> <id>91</id> <name></name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>74</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>74</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>13</count> <item_version>0</item_version> <item>154</item> <item>155</item> <item>156</item> <item>157</item> <item>158</item> <item>159</item> <item>160</item> <item>161</item> <item>162</item> <item>163</item> <item>886</item> <item>887</item> <item>893</item> </oprand_edges> <opcode>call</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>23</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_38"> <Value> <Obj> <type>0</type> <id>92</id> <name></name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>77</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>77</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>13</count> <item_version>0</item_version> <item>165</item> <item>166</item> <item>167</item> <item>168</item> <item>169</item> <item>170</item> <item>171</item> <item>172</item> <item>173</item> <item>174</item> <item>175</item> <item>885</item> <item>894</item> </oprand_edges> <opcode>call</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>24</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_39"> <Value> <Obj> <type>0</type> <id>93</id> <name></name> <fileName>image_filter.cpp</fileName> <fileDirectory>/home/eli/git/others/HLx_Examples/Vision/video_edge</fileDirectory> <lineNumber>79</lineNumber> <contextFuncName>image_filter</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/home/eli/git/others/HLx_Examples/Vision/video_edge</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>image_filter.cpp</first> <second>image_filter</second> </first> <second>79</second> </item> </second> </item> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>0</count> <item_version>0</item_version> </oprand_edges> <opcode>ret</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>25</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> </nodes> <consts class_id="15" tracking_level="0" version="0"> <count>7</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_40"> <Value> <Obj> <type>2</type> <id>95</id> <name>empty</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>64</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_41"> <Value> <Obj> <type>2</type> <id>114</id> <name>AXIvideo2Mat</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <const_type>6</const_type> <content>&lt;constant:AXIvideo2Mat&gt;</content> </item> <item class_id_reference="16" object_id="_42"> <Value> <Obj> <type>2</type> <id>126</id> <name>replicate_by2</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <const_type>6</const_type> <content>&lt;constant:replicate_by2&gt;</content> </item> <item class_id_reference="16" object_id="_43"> <Value> <Obj> <type>2</type> <id>137</id> <name>grad_vertical_Mat_s</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <const_type>6</const_type> <content>&lt;constant:grad_vertical&lt;Mat &gt;&gt;</content> </item> <item class_id_reference="16" object_id="_44"> <Value> <Obj> <type>2</type> <id>145</id> <name>grad_horizontal</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <const_type>6</const_type> <content>&lt;constant:grad_horizontal&gt;</content> </item> <item class_id_reference="16" object_id="_45"> <Value> <Obj> <type>2</type> <id>153</id> <name>add_with_color</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <const_type>6</const_type> <content>&lt;constant:add_with_color&gt;</content> </item> <item class_id_reference="16" object_id="_46"> <Value> <Obj> <type>2</type> <id>164</id> <name>Mat2AXIvideo</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <bitwidth>0</bitwidth> </Value> <const_type>6</const_type> <content>&lt;constant:Mat2AXIvideo&gt;</content> </item> </consts> <blocks class_id="17" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="18" tracking_level="1" version="0" object_id="_47"> <Obj> <type>3</type> <id>94</id> <name>image_filter</name> <fileName></fileName> <fileDirectory></fileDirectory> <lineNumber>0</lineNumber> <contextFuncName></contextFuncName> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName></originalName> <rtlName></rtlName> <coreName></coreName> </Obj> <node_objs> <count>25</count> <item_version>0</item_version> <item>31</item> <item>34</item> <item>37</item> <item>40</item> <item>43</item> <item>46</item> <item>49</item> <item>52</item> <item>55</item> <item>58</item> <item>61</item> <item>64</item> <item>67</item> <item>70</item> <item>73</item> <item>76</item> <item>79</item> <item>82</item> <item>87</item> <item>88</item> <item>89</item> <item>90</item> <item>91</item> <item>92</item> <item>93</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>84</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_48"> <id>96</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>31</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_49"> <id>97</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>34</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_50"> <id>98</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>37</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_51"> <id>99</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>40</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_52"> <id>100</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>43</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_53"> <id>101</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>46</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_54"> <id>102</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>49</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_55"> <id>103</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>52</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_56"> <id>104</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>55</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_57"> <id>105</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>58</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_58"> <id>106</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>61</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_59"> <id>107</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>64</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_60"> <id>108</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>67</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_61"> <id>109</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>70</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_62"> <id>110</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>73</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_63"> <id>111</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>76</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_64"> <id>112</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>79</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_65"> <id>113</id> <edge_type>1</edge_type> <source_obj>95</source_obj> <sink_obj>82</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_66"> <id>115</id> <edge_type>1</edge_type> <source_obj>114</source_obj> <sink_obj>87</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_67"> <id>116</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>87</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_68"> <id>117</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>87</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_69"> <id>118</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>87</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_70"> <id>119</id> <edge_type>1</edge_type> <source_obj>4</source_obj> <sink_obj>87</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_71"> <id>120</id> <edge_type>1</edge_type> <source_obj>5</source_obj> <sink_obj>87</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_72"> <id>121</id> <edge_type>1</edge_type> <source_obj>6</source_obj> <sink_obj>87</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_73"> <id>122</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>87</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_74"> <id>123</id> <edge_type>1</edge_type> <source_obj>31</source_obj> <sink_obj>87</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_75"> <id>124</id> <edge_type>1</edge_type> <source_obj>34</source_obj> <sink_obj>87</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_76"> <id>125</id> <edge_type>1</edge_type> <source_obj>37</source_obj> <sink_obj>87</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_77"> <id>127</id> <edge_type>1</edge_type> <source_obj>126</source_obj> <sink_obj>88</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_78"> <id>128</id> <edge_type>1</edge_type> <source_obj>31</source_obj> <sink_obj>88</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_79"> <id>129</id> <edge_type>1</edge_type> <source_obj>34</source_obj> <sink_obj>88</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_80"> <id>130</id> <edge_type>1</edge_type> <source_obj>37</source_obj> <sink_obj>88</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_81"> <id>131</id> <edge_type>1</edge_type> <source_obj>40</source_obj> <sink_obj>88</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_82"> <id>132</id> <edge_type>1</edge_type> <source_obj>43</source_obj> <sink_obj>88</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_83"> <id>133</id> <edge_type>1</edge_type> <source_obj>46</source_obj> <sink_obj>88</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_84"> <id>134</id> <edge_type>1</edge_type> <source_obj>49</source_obj> <sink_obj>88</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_85"> <id>135</id> <edge_type>1</edge_type> <source_obj>52</source_obj> <sink_obj>88</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_86"> <id>136</id> <edge_type>1</edge_type> <source_obj>55</source_obj> <sink_obj>88</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_87"> <id>138</id> <edge_type>1</edge_type> <source_obj>137</source_obj> <sink_obj>89</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_88"> <id>139</id> <edge_type>1</edge_type> <source_obj>40</source_obj> <sink_obj>89</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_89"> <id>140</id> <edge_type>1</edge_type> <source_obj>43</source_obj> <sink_obj>89</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_90"> <id>141</id> <edge_type>1</edge_type> <source_obj>46</source_obj> <sink_obj>89</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_91"> <id>142</id> <edge_type>1</edge_type> <source_obj>58</source_obj> <sink_obj>89</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_92"> <id>143</id> <edge_type>1</edge_type> <source_obj>61</source_obj> <sink_obj>89</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_93"> <id>144</id> <edge_type>1</edge_type> <source_obj>64</source_obj> <sink_obj>89</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_94"> <id>146</id> <edge_type>1</edge_type> <source_obj>145</source_obj> <sink_obj>90</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_95"> <id>147</id> <edge_type>1</edge_type> <source_obj>49</source_obj> <sink_obj>90</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_96"> <id>148</id> <edge_type>1</edge_type> <source_obj>52</source_obj> <sink_obj>90</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_97"> <id>149</id> <edge_type>1</edge_type> <source_obj>55</source_obj> <sink_obj>90</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_98"> <id>150</id> <edge_type>1</edge_type> <source_obj>67</source_obj> <sink_obj>90</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_99"> <id>151</id> <edge_type>1</edge_type> <source_obj>70</source_obj> <sink_obj>90</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_100"> <id>152</id> <edge_type>1</edge_type> <source_obj>73</source_obj> <sink_obj>90</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_101"> <id>154</id> <edge_type>1</edge_type> <source_obj>153</source_obj> <sink_obj>91</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_102"> <id>155</id> <edge_type>1</edge_type> <source_obj>58</source_obj> <sink_obj>91</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_103"> <id>156</id> <edge_type>1</edge_type> <source_obj>61</source_obj> <sink_obj>91</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_104"> <id>157</id> <edge_type>1</edge_type> <source_obj>64</source_obj> <sink_obj>91</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_105"> <id>158</id> <edge_type>1</edge_type> <source_obj>67</source_obj> <sink_obj>91</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_106"> <id>159</id> <edge_type>1</edge_type> <source_obj>70</source_obj> <sink_obj>91</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_107"> <id>160</id> <edge_type>1</edge_type> <source_obj>73</source_obj> <sink_obj>91</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_108"> <id>161</id> <edge_type>1</edge_type> <source_obj>76</source_obj> <sink_obj>91</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_109"> <id>162</id> <edge_type>1</edge_type> <source_obj>79</source_obj> <sink_obj>91</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_110"> <id>163</id> <edge_type>1</edge_type> <source_obj>82</source_obj> <sink_obj>91</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_111"> <id>165</id> <edge_type>1</edge_type> <source_obj>164</source_obj> <sink_obj>92</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_112"> <id>166</id> <edge_type>1</edge_type> <source_obj>76</source_obj> <sink_obj>92</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_113"> <id>167</id> <edge_type>1</edge_type> <source_obj>79</source_obj> <sink_obj>92</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_114"> <id>168</id> <edge_type>1</edge_type> <source_obj>82</source_obj> <sink_obj>92</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_115"> <id>169</id> <edge_type>1</edge_type> <source_obj>8</source_obj> <sink_obj>92</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_116"> <id>170</id> <edge_type>1</edge_type> <source_obj>9</source_obj> <sink_obj>92</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_117"> <id>171</id> <edge_type>1</edge_type> <source_obj>10</source_obj> <sink_obj>92</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_118"> <id>172</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>92</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_119"> <id>173</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>92</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_120"> <id>174</id> <edge_type>1</edge_type> <source_obj>13</source_obj> <sink_obj>92</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_121"> <id>175</id> <edge_type>1</edge_type> <source_obj>14</source_obj> <sink_obj>92</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_122"> <id>885</id> <edge_type>4</edge_type> <source_obj>91</source_obj> <sink_obj>92</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_123"> <id>886</id> <edge_type>4</edge_type> <source_obj>90</source_obj> <sink_obj>91</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_124"> <id>887</id> <edge_type>4</edge_type> <source_obj>89</source_obj> <sink_obj>91</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_125"> <id>888</id> <edge_type>4</edge_type> <source_obj>88</source_obj> <sink_obj>89</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_126"> <id>889</id> <edge_type>4</edge_type> <source_obj>88</source_obj> <sink_obj>90</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_127"> <id>890</id> <edge_type>4</edge_type> <source_obj>87</source_obj> <sink_obj>88</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_128"> <id>891</id> <edge_type>4</edge_type> <source_obj>87</source_obj> <sink_obj>88</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_129"> <id>892</id> <edge_type>4</edge_type> <source_obj>88</source_obj> <sink_obj>89</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_130"> <id>893</id> <edge_type>4</edge_type> <source_obj>89</source_obj> <sink_obj>91</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_131"> <id>894</id> <edge_type>4</edge_type> <source_obj>91</source_obj> <sink_obj>92</sink_obj> <is_back_edge>0</is_back_edge> </item> </edges> </cdfg> <cdfg_regions class_id="21" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="22" tracking_level="1" version="0" object_id="_132"> <mId>1</mId> <mTag>image_filter</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>94</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>151190</mMinLatency> <mMaxLatency>151190</mMaxLatency> <mIsDfPipe>1</mIsDfPipe> <mDfPipe class_id="23" tracking_level="1" version="0" object_id="_133"> <port_list class_id="24" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </port_list> <process_list class_id="25" tracking_level="0" version="0"> <count>6</count> <item_version>0</item_version> <item class_id="26" tracking_level="1" version="0" object_id="_134"> <type>0</type> <name>AXIvideo2Mat_U0</name> <ssdmobj_id>87</ssdmobj_id> <pins class_id="27" tracking_level="0" version="0"> <count>10</count> <item_version>0</item_version> <item class_id="28" tracking_level="1" version="0" object_id="_135"> <port class_id="29" tracking_level="1" version="0" object_id="_136"> <name>AXI_video_strm_V_data_V</name> <dir>3</dir> <type>0</type> </port> <inst class_id="30" tracking_level="1" version="0" object_id="_137"> <type>0</type> <name>AXIvideo2Mat_U0</name> <ssdmobj_id>87</ssdmobj_id> </inst> </item> <item class_id_reference="28" object_id="_138"> <port class_id_reference="29" object_id="_139"> <name>AXI_video_strm_V_keep_V</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_137"></inst> </item> <item class_id_reference="28" object_id="_140"> <port class_id_reference="29" object_id="_141"> <name>AXI_video_strm_V_strb_V</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_137"></inst> </item> <item class_id_reference="28" object_id="_142"> <port class_id_reference="29" object_id="_143"> <name>AXI_video_strm_V_user_V</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_137"></inst> </item> <item class_id_reference="28" object_id="_144"> <port class_id_reference="29" object_id="_145"> <name>AXI_video_strm_V_last_V</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_137"></inst> </item> <item class_id_reference="28" object_id="_146"> <port class_id_reference="29" object_id="_147"> <name>AXI_video_strm_V_id_V</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_137"></inst> </item> <item class_id_reference="28" object_id="_148"> <port class_id_reference="29" object_id="_149"> <name>AXI_video_strm_V_dest_V</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_137"></inst> </item> <item class_id_reference="28" object_id="_150"> <port class_id_reference="29" object_id="_151"> <name>img_data_stream_0_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_137"></inst> </item> <item class_id_reference="28" object_id="_152"> <port class_id_reference="29" object_id="_153"> <name>img_data_stream_1_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_137"></inst> </item> <item class_id_reference="28" object_id="_154"> <port class_id_reference="29" object_id="_155"> <name>img_data_stream_2_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_137"></inst> </item> </pins> </item> <item class_id_reference="26" object_id="_156"> <type>0</type> <name>replicate_by2_U0</name> <ssdmobj_id>88</ssdmobj_id> <pins> <count>9</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_157"> <port class_id_reference="29" object_id="_158"> <name>img_in_data_stream_0_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id="_159"> <type>0</type> <name>replicate_by2_U0</name> <ssdmobj_id>88</ssdmobj_id> </inst> </item> <item class_id_reference="28" object_id="_160"> <port class_id_reference="29" object_id="_161"> <name>img_in_data_stream_1_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_159"></inst> </item> <item class_id_reference="28" object_id="_162"> <port class_id_reference="29" object_id="_163"> <name>img_in_data_stream_2_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_159"></inst> </item> <item class_id_reference="28" object_id="_164"> <port class_id_reference="29" object_id="_165"> <name>img_out0_data_stream_0_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_159"></inst> </item> <item class_id_reference="28" object_id="_166"> <port class_id_reference="29" object_id="_167"> <name>img_out0_data_stream_1_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_159"></inst> </item> <item class_id_reference="28" object_id="_168"> <port class_id_reference="29" object_id="_169"> <name>img_out0_data_stream_2_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_159"></inst> </item> <item class_id_reference="28" object_id="_170"> <port class_id_reference="29" object_id="_171"> <name>img_out1_data_stream_0_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_159"></inst> </item> <item class_id_reference="28" object_id="_172"> <port class_id_reference="29" object_id="_173"> <name>img_out1_data_stream_1_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_159"></inst> </item> <item class_id_reference="28" object_id="_174"> <port class_id_reference="29" object_id="_175"> <name>img_out1_data_stream_2_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_159"></inst> </item> </pins> </item> <item class_id_reference="26" object_id="_176"> <type>0</type> <name>grad_vertical_Mat_U0</name> <ssdmobj_id>89</ssdmobj_id> <pins> <count>6</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_177"> <port class_id_reference="29" object_id="_178"> <name>img_in_data_stream_0_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id="_179"> <type>0</type> <name>grad_vertical_Mat_U0</name> <ssdmobj_id>89</ssdmobj_id> </inst> </item> <item class_id_reference="28" object_id="_180"> <port class_id_reference="29" object_id="_181"> <name>img_in_data_stream_1_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_179"></inst> </item> <item class_id_reference="28" object_id="_182"> <port class_id_reference="29" object_id="_183"> <name>img_in_data_stream_2_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_179"></inst> </item> <item class_id_reference="28" object_id="_184"> <port class_id_reference="29" object_id="_185"> <name>img_out_data_stream_0_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_179"></inst> </item> <item class_id_reference="28" object_id="_186"> <port class_id_reference="29" object_id="_187"> <name>img_out_data_stream_1_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_179"></inst> </item> <item class_id_reference="28" object_id="_188"> <port class_id_reference="29" object_id="_189"> <name>img_out_data_stream_2_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_179"></inst> </item> </pins> </item> <item class_id_reference="26" object_id="_190"> <type>0</type> <name>grad_horizontal_U0</name> <ssdmobj_id>90</ssdmobj_id> <pins> <count>6</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_191"> <port class_id_reference="29" object_id="_192"> <name>img_in_data_stream_0_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id="_193"> <type>0</type> <name>grad_horizontal_U0</name> <ssdmobj_id>90</ssdmobj_id> </inst> </item> <item class_id_reference="28" object_id="_194"> <port class_id_reference="29" object_id="_195"> <name>img_in_data_stream_1_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_193"></inst> </item> <item class_id_reference="28" object_id="_196"> <port class_id_reference="29" object_id="_197"> <name>img_in_data_stream_2_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_193"></inst> </item> <item class_id_reference="28" object_id="_198"> <port class_id_reference="29" object_id="_199"> <name>img_out_data_stream_0_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_193"></inst> </item> <item class_id_reference="28" object_id="_200"> <port class_id_reference="29" object_id="_201"> <name>img_out_data_stream_1_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_193"></inst> </item> <item class_id_reference="28" object_id="_202"> <port class_id_reference="29" object_id="_203"> <name>img_out_data_stream_2_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_193"></inst> </item> </pins> </item> <item class_id_reference="26" object_id="_204"> <type>0</type> <name>add_with_color_U0</name> <ssdmobj_id>91</ssdmobj_id> <pins> <count>9</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_205"> <port class_id_reference="29" object_id="_206"> <name>img_in0_data_stream_0_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id="_207"> <type>0</type> <name>add_with_color_U0</name> <ssdmobj_id>91</ssdmobj_id> </inst> </item> <item class_id_reference="28" object_id="_208"> <port class_id_reference="29" object_id="_209"> <name>img_in0_data_stream_1_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_207"></inst> </item> <item class_id_reference="28" object_id="_210"> <port class_id_reference="29" object_id="_211"> <name>img_in0_data_stream_2_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_207"></inst> </item> <item class_id_reference="28" object_id="_212"> <port class_id_reference="29" object_id="_213"> <name>img_in1_data_stream_0_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_207"></inst> </item> <item class_id_reference="28" object_id="_214"> <port class_id_reference="29" object_id="_215"> <name>img_in1_data_stream_1_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_207"></inst> </item> <item class_id_reference="28" object_id="_216"> <port class_id_reference="29" object_id="_217"> <name>img_in1_data_stream_2_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_207"></inst> </item> <item class_id_reference="28" object_id="_218"> <port class_id_reference="29" object_id="_219"> <name>img_out_data_stream_0_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_207"></inst> </item> <item class_id_reference="28" object_id="_220"> <port class_id_reference="29" object_id="_221"> <name>img_out_data_stream_1_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_207"></inst> </item> <item class_id_reference="28" object_id="_222"> <port class_id_reference="29" object_id="_223"> <name>img_out_data_stream_2_V</name> <dir>0</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_207"></inst> </item> </pins> </item> <item class_id_reference="26" object_id="_224"> <type>0</type> <name>Mat2AXIvideo_U0</name> <ssdmobj_id>92</ssdmobj_id> <pins> <count>10</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_225"> <port class_id_reference="29" object_id="_226"> <name>img_data_stream_0_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id="_227"> <type>0</type> <name>Mat2AXIvideo_U0</name> <ssdmobj_id>92</ssdmobj_id> </inst> </item> <item class_id_reference="28" object_id="_228"> <port class_id_reference="29" object_id="_229"> <name>img_data_stream_1_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_227"></inst> </item> <item class_id_reference="28" object_id="_230"> <port class_id_reference="29" object_id="_231"> <name>img_data_stream_2_V</name> <dir>0</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_227"></inst> </item> <item class_id_reference="28" object_id="_232"> <port class_id_reference="29" object_id="_233"> <name>AXI_video_strm_V_data_V</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_227"></inst> </item> <item class_id_reference="28" object_id="_234"> <port class_id_reference="29" object_id="_235"> <name>AXI_video_strm_V_keep_V</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_227"></inst> </item> <item class_id_reference="28" object_id="_236"> <port class_id_reference="29" object_id="_237"> <name>AXI_video_strm_V_strb_V</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_227"></inst> </item> <item class_id_reference="28" object_id="_238"> <port class_id_reference="29" object_id="_239"> <name>AXI_video_strm_V_user_V</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_227"></inst> </item> <item class_id_reference="28" object_id="_240"> <port class_id_reference="29" object_id="_241"> <name>AXI_video_strm_V_last_V</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_227"></inst> </item> <item class_id_reference="28" object_id="_242"> <port class_id_reference="29" object_id="_243"> <name>AXI_video_strm_V_id_V</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_227"></inst> </item> <item class_id_reference="28" object_id="_244"> <port class_id_reference="29" object_id="_245"> <name>AXI_video_strm_V_dest_V</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_227"></inst> </item> </pins> </item> </process_list> <channel_list class_id="31" tracking_level="0" version="0"> <count>18</count> <item_version>0</item_version> <item class_id="32" tracking_level="1" version="0" object_id="_246"> <type>1</type> <name>img_0_data_stream_0</name> <ssdmobj_id>31</ssdmobj_id> <ctype>0</ctype> <depth>2</depth> <bitwidth>8</bitwidth> <source class_id_reference="28" object_id="_247"> <port class_id_reference="29" object_id="_248"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_137"></inst> </source> <sink class_id_reference="28" object_id="_249"> <port class_id_reference="29" object_id="_250"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_159"></inst> </sink> </item> <item class_id_reference="32" object_id="_251"> <type>1</type> <name>img_0_data_stream_1</name> <ssdmobj_id>34</ssdmobj_id> <ctype>0</ctype> <depth>2</depth> <bitwidth>8</bitwidth> <source class_id_reference="28" object_id="_252"> <port class_id_reference="29" object_id="_253"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_137"></inst> </source> <sink class_id_reference="28" object_id="_254"> <port class_id_reference="29" object_id="_255"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_159"></inst> </sink> </item> <item class_id_reference="32" object_id="_256"> <type>1</type> <name>img_0_data_stream_2</name> <ssdmobj_id>37</ssdmobj_id> <ctype>0</ctype> <depth>2</depth> <bitwidth>8</bitwidth> <source class_id_reference="28" object_id="_257"> <port class_id_reference="29" object_id="_258"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_137"></inst> </source> <sink class_id_reference="28" object_id="_259"> <port class_id_reference="29" object_id="_260"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_159"></inst> </sink> </item> <item class_id_reference="32" object_id="_261"> <type>1</type> <name>img_1a_data_stream_0</name> <ssdmobj_id>40</ssdmobj_id> <ctype>0</ctype> <depth>2</depth> <bitwidth>8</bitwidth> <source class_id_reference="28" object_id="_262"> <port class_id_reference="29" object_id="_263"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_159"></inst> </source> <sink class_id_reference="28" object_id="_264"> <port class_id_reference="29" object_id="_265"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_179"></inst> </sink> </item> <item class_id_reference="32" object_id="_266"> <type>1</type> <name>img_1a_data_stream_1</name> <ssdmobj_id>43</ssdmobj_id> <ctype>0</ctype> <depth>2</depth> <bitwidth>8</bitwidth> <source class_id_reference="28" object_id="_267"> <port class_id_reference="29" object_id="_268"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_159"></inst> </source> <sink class_id_reference="28" object_id="_269"> <port class_id_reference="29" object_id="_270"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_179"></inst> </sink> </item> <item class_id_reference="32" object_id="_271"> <type>1</type> <name>img_1a_data_stream_2</name> <ssdmobj_id>46</ssdmobj_id> <ctype>0</ctype> <depth>2</depth> <bitwidth>8</bitwidth> <source class_id_reference="28" object_id="_272"> <port class_id_reference="29" object_id="_273"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_159"></inst> </source> <sink class_id_reference="28" object_id="_274"> <port class_id_reference="29" object_id="_275"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_179"></inst> </sink> </item> <item class_id_reference="32" object_id="_276"> <type>1</type> <name>img_1b_data_stream_0</name> <ssdmobj_id>49</ssdmobj_id> <ctype>0</ctype> <depth>2</depth> <bitwidth>8</bitwidth> <source class_id_reference="28" object_id="_277"> <port class_id_reference="29" object_id="_278"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_159"></inst> </source> <sink class_id_reference="28" object_id="_279"> <port class_id_reference="29" object_id="_280"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_193"></inst> </sink> </item> <item class_id_reference="32" object_id="_281"> <type>1</type> <name>img_1b_data_stream_1</name> <ssdmobj_id>52</ssdmobj_id> <ctype>0</ctype> <depth>2</depth> <bitwidth>8</bitwidth> <source class_id_reference="28" object_id="_282"> <port class_id_reference="29" object_id="_283"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_159"></inst> </source> <sink class_id_reference="28" object_id="_284"> <port class_id_reference="29" object_id="_285"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_193"></inst> </sink> </item> <item class_id_reference="32" object_id="_286"> <type>1</type> <name>img_1b_data_stream_2</name> <ssdmobj_id>55</ssdmobj_id> <ctype>0</ctype> <depth>2</depth> <bitwidth>8</bitwidth> <source class_id_reference="28" object_id="_287"> <port class_id_reference="29" object_id="_288"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_159"></inst> </source> <sink class_id_reference="28" object_id="_289"> <port class_id_reference="29" object_id="_290"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_193"></inst> </sink> </item> <item class_id_reference="32" object_id="_291"> <type>1</type> <name>img_2a_data_stream_0</name> <ssdmobj_id>58</ssdmobj_id> <ctype>0</ctype> <depth>2</depth> <bitwidth>8</bitwidth> <source class_id_reference="28" object_id="_292"> <port class_id_reference="29" object_id="_293"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_179"></inst> </source> <sink class_id_reference="28" object_id="_294"> <port class_id_reference="29" object_id="_295"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_207"></inst> </sink> </item> <item class_id_reference="32" object_id="_296"> <type>1</type> <name>img_2a_data_stream_1</name> <ssdmobj_id>61</ssdmobj_id> <ctype>0</ctype> <depth>2</depth> <bitwidth>8</bitwidth> <source class_id_reference="28" object_id="_297"> <port class_id_reference="29" object_id="_298"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_179"></inst> </source> <sink class_id_reference="28" object_id="_299"> <port class_id_reference="29" object_id="_300"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_207"></inst> </sink> </item> <item class_id_reference="32" object_id="_301"> <type>1</type> <name>img_2a_data_stream_2</name> <ssdmobj_id>64</ssdmobj_id> <ctype>0</ctype> <depth>2</depth> <bitwidth>8</bitwidth> <source class_id_reference="28" object_id="_302"> <port class_id_reference="29" object_id="_303"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_179"></inst> </source> <sink class_id_reference="28" object_id="_304"> <port class_id_reference="29" object_id="_305"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_207"></inst> </sink> </item> <item class_id_reference="32" object_id="_306"> <type>1</type> <name>img_2b_data_stream_0</name> <ssdmobj_id>67</ssdmobj_id> <ctype>0</ctype> <depth>2</depth> <bitwidth>8</bitwidth> <source class_id_reference="28" object_id="_307"> <port class_id_reference="29" object_id="_308"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_193"></inst> </source> <sink class_id_reference="28" object_id="_309"> <port class_id_reference="29" object_id="_310"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_207"></inst> </sink> </item> <item class_id_reference="32" object_id="_311"> <type>1</type> <name>img_2b_data_stream_1</name> <ssdmobj_id>70</ssdmobj_id> <ctype>0</ctype> <depth>2</depth> <bitwidth>8</bitwidth> <source class_id_reference="28" object_id="_312"> <port class_id_reference="29" object_id="_313"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_193"></inst> </source> <sink class_id_reference="28" object_id="_314"> <port class_id_reference="29" object_id="_315"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_207"></inst> </sink> </item> <item class_id_reference="32" object_id="_316"> <type>1</type> <name>img_2b_data_stream_2</name> <ssdmobj_id>73</ssdmobj_id> <ctype>0</ctype> <depth>2</depth> <bitwidth>8</bitwidth> <source class_id_reference="28" object_id="_317"> <port class_id_reference="29" object_id="_318"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_193"></inst> </source> <sink class_id_reference="28" object_id="_319"> <port class_id_reference="29" object_id="_320"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_207"></inst> </sink> </item> <item class_id_reference="32" object_id="_321"> <type>1</type> <name>img_3_data_stream_0</name> <ssdmobj_id>76</ssdmobj_id> <ctype>0</ctype> <depth>2</depth> <bitwidth>8</bitwidth> <source class_id_reference="28" object_id="_322"> <port class_id_reference="29" object_id="_323"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_207"></inst> </source> <sink class_id_reference="28" object_id="_324"> <port class_id_reference="29" object_id="_325"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_227"></inst> </sink> </item> <item class_id_reference="32" object_id="_326"> <type>1</type> <name>img_3_data_stream_1</name> <ssdmobj_id>79</ssdmobj_id> <ctype>0</ctype> <depth>2</depth> <bitwidth>8</bitwidth> <source class_id_reference="28" object_id="_327"> <port class_id_reference="29" object_id="_328"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_207"></inst> </source> <sink class_id_reference="28" object_id="_329"> <port class_id_reference="29" object_id="_330"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_227"></inst> </sink> </item> <item class_id_reference="32" object_id="_331"> <type>1</type> <name>img_3_data_stream_2</name> <ssdmobj_id>82</ssdmobj_id> <ctype>0</ctype> <depth>2</depth> <bitwidth>8</bitwidth> <source class_id_reference="28" object_id="_332"> <port class_id_reference="29" object_id="_333"> <name>in</name> <dir>3</dir> <type>0</type> </port> <inst class_id_reference="30" object_id_reference="_207"></inst> </source> <sink class_id_reference="28" object_id="_334"> <port class_id_reference="29" object_id="_335"> <name>out</name> <dir>3</dir> <type>1</type> </port> <inst class_id_reference="30" object_id_reference="_227"></inst> </sink> </item> </channel_list> <net_list class_id="33" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </net_list> </mDfPipe> </item> </cdfg_regions> <fsm class_id="-1"></fsm> <res class_id="-1"></res> <node_label_latency class_id="36" tracking_level="0" version="0"> <count>25</count> <item_version>0</item_version> <item class_id="37" tracking_level="0" version="0"> <first>31</first> <second class_id="38" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>34</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>37</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>40</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>43</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>46</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>49</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>52</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>55</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>58</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>61</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>64</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>67</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>70</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>73</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>76</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>79</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>82</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>87</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>88</first> <second> <first>3</first> <second>1</second> </second> </item> <item> <first>89</first> <second> <first>5</first> <second>1</second> </second> </item> <item> <first>90</first> <second> <first>5</first> <second>1</second> </second> </item> <item> <first>91</first> <second> <first>7</first> <second>1</second> </second> </item> <item> <first>92</first> <second> <first>9</first> <second>1</second> </second> </item> <item> <first>93</first> <second> <first>11</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="39" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="40" tracking_level="0" version="0"> <first>94</first> <second class_id="41" tracking_level="0" version="0"> <first>0</first> <second>11</second> </second> </item> </bblk_ent_exit> <regions class_id="42" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="43" tracking_level="1" version="0" object_id="_336"> <region_name>image_filter</region_name> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>94</item> </basic_blocks> <nodes> <count>79</count> <item_version>0</item_version> <item>15</item> <item>16</item> <item>17</item> <item>18</item> <item>19</item> <item>20</item> <item>21</item> <item>22</item> <item>23</item> <item>24</item> <item>25</item> <item>26</item> <item>27</item> <item>28</item> <item>29</item> <item>30</item> <item>31</item> <item>32</item> <item>33</item> <item>34</item> <item>35</item> <item>36</item> <item>37</item> <item>38</item> <item>39</item> <item>40</item> <item>41</item> <item>42</item> <item>43</item> <item>44</item> <item>45</item> <item>46</item> <item>47</item> <item>48</item> <item>49</item> <item>50</item> <item>51</item> <item>52</item> <item>53</item> <item>54</item> <item>55</item> <item>56</item> <item>57</item> <item>58</item> <item>59</item> <item>60</item> <item>61</item> <item>62</item> <item>63</item> <item>64</item> <item>65</item> <item>66</item> <item>67</item> <item>68</item> <item>69</item> <item>70</item> <item>71</item> <item>72</item> <item>73</item> <item>74</item> <item>75</item> <item>76</item> <item>77</item> <item>78</item> <item>79</item> <item>80</item> <item>81</item> <item>82</item> <item>83</item> <item>84</item> <item>85</item> <item>86</item> <item>87</item> <item>88</item> <item>89</item> <item>90</item> <item>91</item> <item>92</item> <item>93</item> </nodes> <anchor_node>-1</anchor_node> <region_type>16</region_type> <interval>0</interval> <pipe_depth>0</pipe_depth> </item> </regions> <dp_fu_nodes class_id="44" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_fu_nodes> <dp_fu_nodes_expression class_id="45" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_expression> <dp_fu_nodes_module> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_module> <dp_fu_nodes_io> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_io> <return_ports> <count>0</count> <item_version>0</item_version> </return_ports> <dp_mem_port_nodes class_id="46" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_mem_port_nodes> <dp_reg_nodes> <count>0</count> <item_version>0</item_version> </dp_reg_nodes> <dp_regname_nodes> <count>0</count> <item_version>0</item_version> </dp_regname_nodes> <dp_reg_phi> <count>0</count> <item_version>0</item_version> </dp_reg_phi> <dp_regname_phi> <count>0</count> <item_version>0</item_version> </dp_regname_phi> <dp_port_io_nodes class_id="47" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_port_io_nodes> <port2core class_id="48" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </port2core> <node2core> <count>0</count> <item_version>0</item_version> </node2core> </syndb> </boost_serialization>
29.671962
88
0.603216
5978491d55f9773ce3369b68be305124e5b40f6f
7,990
ads
Ada
awa/plugins/awa-storages/src/awa-storages-beans.ads
My-Colaborations/ada-awa
cc2dee291a14e4df0dbc9c10285bf284a7f1caa8
[ "Apache-2.0" ]
81
2015-01-18T23:02:30.000Z
2022-03-19T17:34:57.000Z
awa/plugins/awa-storages/src/awa-storages-beans.ads
My-Colaborations/ada-awa
cc2dee291a14e4df0dbc9c10285bf284a7f1caa8
[ "Apache-2.0" ]
20
2015-12-09T19:26:19.000Z
2022-03-23T14:32:43.000Z
awa/plugins/awa-storages/src/awa-storages-beans.ads
My-Colaborations/ada-awa
cc2dee291a14e4df0dbc9c10285bf284a7f1caa8
[ "Apache-2.0" ]
16
2015-06-29T02:44:06.000Z
2021-09-23T18:47:50.000Z
----------------------------------------------------------------------- -- awa-storages-beans -- Storage Ada Beans -- Copyright (C) 2012, 2016, 2018, 2019, 2020 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Ada.Strings.Unbounded; with AWA.Storages.Models; with AWA.Storages.Modules; with ASF.Parts; with ADO; with Util.Beans.Objects; with Util.Beans.Basic; -- == Storage Beans == -- The <tt>Upload_Bean</tt> type is used to upload a file in the storage space. -- It expect that the folder already exists. -- -- The <tt>Folder_Bean</tt> type controls the creation of new folders. -- -- The <tt>Storage_List_Bean</tt> type gives the files associated with a given folder. package AWA.Storages.Beans is FOLDER_ID_PARAMETER : constant String := "folderId"; -- ------------------------------ -- Upload Bean -- ------------------------------ -- The <b>Upload_Bean</b> allows to upload a file in the storage space. type Upload_Bean is new AWA.Storages.Models.Upload_Bean with record Module : AWA.Storages.Modules.Storage_Module_Access := null; Folder_Id : ADO.Identifier; Error : Boolean := False; end record; type Upload_Bean_Access is access all Upload_Bean'Class; -- Get the value identified by the name. overriding function Get_Value (From : in Upload_Bean; Name : in String) return Util.Beans.Objects.Object; -- Set the value identified by the name. overriding procedure Set_Value (From : in out Upload_Bean; Name : in String; Value : in Util.Beans.Objects.Object); -- Save the uploaded file in the storage service. -- @method procedure Save_Part (Bean : in out Upload_Bean; Part : in ASF.Parts.Part'Class); -- Upload the file. overriding procedure Upload (Bean : in out Upload_Bean; Outcome : in out Ada.Strings.Unbounded.Unbounded_String); -- Delete the file. overriding procedure Delete (Bean : in out Upload_Bean; Outcome : in out Ada.Strings.Unbounded.Unbounded_String); -- Publish the file. overriding procedure Publish (Bean : in out Upload_Bean; Outcome : in out Ada.Strings.Unbounded.Unbounded_String); -- Create the Upload_Bean bean instance. function Create_Upload_Bean (Module : in AWA.Storages.Modules.Storage_Module_Access) return Util.Beans.Basic.Readonly_Bean_Access; -- ------------------------------ -- Folder Bean -- ------------------------------ -- The <b>Folder_Bean</b> allows to create or update the folder name. type Folder_Bean is new AWA.Storages.Models.Folder_Bean with record Module : AWA.Storages.Modules.Storage_Module_Access := null; end record; type Folder_Bean_Access is access all Folder_Bean'Class; -- Get the value identified by the name. overriding function Get_Value (From : in Folder_Bean; Name : in String) return Util.Beans.Objects.Object; -- Set the value identified by the name. overriding procedure Set_Value (From : in out Folder_Bean; Name : in String; Value : in Util.Beans.Objects.Object); -- Create or save the folder. overriding procedure Save (Bean : in out Folder_Bean; Outcome : in out Ada.Strings.Unbounded.Unbounded_String); -- Create the Folder_Bean bean instance. function Create_Folder_Bean (Module : in AWA.Storages.Modules.Storage_Module_Access) return Util.Beans.Basic.Readonly_Bean_Access; type Init_Flag is (INIT_FOLDER, INIT_FOLDER_LIST, INIT_FILE_LIST); type Init_Map is array (Init_Flag) of Boolean; -- ------------------------------ -- Storage List Bean -- ------------------------------ -- This bean represents a list of storage files for a given folder. type Storage_List_Bean is new AWA.Storages.Models.Storage_List_Bean with record Module : AWA.Storages.Modules.Storage_Module_Access := null; -- Current folder. Folder : aliased Folder_Bean; Folder_Bean : Folder_Bean_Access; Folder_Id : ADO.Identifier := ADO.NO_IDENTIFIER; -- List of folders. Folder_List : aliased AWA.Storages.Models.Folder_Info_List_Bean; Folder_List_Bean : AWA.Storages.Models.Folder_Info_List_Bean_Access; -- List of files. Files_List : aliased AWA.Storages.Models.Storage_Info_List_Bean; Files_List_Bean : AWA.Storages.Models.Storage_Info_List_Bean_Access; Init_Flags : aliased Init_Map := (others => False); Flags : access Init_Map; end record; type Storage_List_Bean_Access is access all Storage_List_Bean'Class; -- Load the folder instance. procedure Load_Folder (Storage : in out Storage_List_Bean); -- Load the list of folders. procedure Load_Folders (Storage : in out Storage_List_Bean); -- Load the list of files associated with the current folder. procedure Load_Files (Storage : in out Storage_List_Bean); overriding function Get_Value (List : in Storage_List_Bean; Name : in String) return Util.Beans.Objects.Object; -- Set the value identified by the name. overriding procedure Set_Value (From : in out Storage_List_Bean; Name : in String; Value : in Util.Beans.Objects.Object); -- Load the files and folder information. overriding procedure Load (List : in out Storage_List_Bean; Outcome : in out Ada.Strings.Unbounded.Unbounded_String); -- Create the Folder_List_Bean bean instance. function Create_Folder_List_Bean (Module : in AWA.Storages.Modules.Storage_Module_Access) return Util.Beans.Basic.Readonly_Bean_Access; -- Create the Storage_List_Bean bean instance. function Create_Storage_List_Bean (Module : in AWA.Storages.Modules.Storage_Module_Access) return Util.Beans.Basic.Readonly_Bean_Access; -- ------------------------------ -- Storage Bean -- ------------------------------ -- Information about a document (excluding the document data itself). type Storage_Bean is new AWA.Storages.Models.Storage_Bean with record Module : AWA.Storages.Modules.Storage_Module_Access; end record; type Storage_Bean_Access is access all Storage_Bean'Class; overriding function Get_Value (From : in Storage_Bean; Name : in String) return Util.Beans.Objects.Object; overriding procedure Load (Into : in out Storage_Bean; Outcome : in out Ada.Strings.Unbounded.Unbounded_String); -- Create the Storage_Bean bean instance. function Create_Storage_Bean (Module : in AWA.Storages.Modules.Storage_Module_Access) return Util.Beans.Basic.Readonly_Bean_Access; -- Returns true if the given mime type can be displayed by a browser. -- Mime types: application/pdf, text/*, image/* function Is_Browser_Visible (Mime_Type : in String) return Boolean; end AWA.Storages.Beans;
39.554455
93
0.638423
293a78dfc8c572f774b52ec1736efecc1caf5cb7
1,316
ada
Ada
Task/JSON/Ada/json-2.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
1
2018-11-09T22:08:38.000Z
2018-11-09T22:08:38.000Z
Task/JSON/Ada/json-2.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
null
null
null
Task/JSON/Ada/json-2.ada
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
1
2018-11-09T22:08:40.000Z
2018-11-09T22:08:40.000Z
with Ada.Wide_Wide_Text_IO; use Ada.Wide_Wide_Text_IO; with League.JSON.Arrays; use League.JSON.Arrays; with League.JSON.Documents; use League.JSON.Documents; with League.JSON.Objects; use League.JSON.Objects; with League.JSON.Values; use League.JSON.Values; with League.Strings; use League.Strings; procedure Main is function "+" (Item : Wide_Wide_String) return Universal_String renames To_Universal_String; JSON_String : constant Universal_String := +"{""name"":""Pingu"",""born"":1986}"; Penguin : JSON_Object; Parents : JSON_Array; begin Penguin.Insert (+"name", To_JSON_Value (+"Linux")); Penguin.Insert (+"born", To_JSON_Value (1992)); Parents.Append (To_JSON_Value (+"Linus Torvalds")); Parents.Append (To_JSON_Value (+"Alan Cox")); Parents.Append (To_JSON_Value (+"Greg Kroah-Hartman")); Penguin.Insert (+"parents", To_JSON_Value (Parents)); Put_Line (To_JSON_Document (Penguin).To_JSON.To_Wide_Wide_String); Penguin := From_JSON (JSON_String).To_Object; Parents := Empty_JSON_Array; Parents.Append (To_JSON_Value (+"Otmar Gutmann")); Parents.Append (To_JSON_Value (+"Silvio Mazzola")); Penguin.Insert (+"parents", To_JSON_Value (Parents)); Put_Line (To_JSON_Document (Penguin).To_JSON.To_Wide_Wide_String); end Main;
31.333333
69
0.719605
2f0adf311db678e1747a50fe1a270ee9cebbc49e
5,232
ads
Ada
source/directories/machine-w64-mingw32/a-hifina.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
33
2015-04-04T09:19:36.000Z
2021-11-10T05:33:34.000Z
source/directories/machine-w64-mingw32/a-hifina.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
8
2017-11-14T13:05:07.000Z
2018-08-09T15:28:49.000Z
source/directories/machine-w64-mingw32/a-hifina.ads
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
9
2015-02-03T17:09:53.000Z
2021-11-12T01:16:05.000Z
pragma License (Unrestricted); -- extended unit specialized for Windows with Ada.IO_Exceptions; package Ada.Hierarchical_File_Names is -- "Pure" and detailed version of Ada.Directories.Hierarchical_File_Names. -- This package is system-specific. pragma Pure; -- path delimiter subtype Path_Delimiter_Type is Character; -- with Static_Predicate => Path_Delimiter in '/' | '\'; Default_Path_Delimiter : constant Character := '\'; function Is_Path_Delimiter (Item : Character) return Boolean; pragma Inline (Is_Path_Delimiter); procedure Include_Trailing_Path_Delimiter ( S : in out String; Last : in out Natural; Path_Delimiter : Path_Delimiter_Type := Default_Path_Delimiter); procedure Exclude_Trailing_Path_Delimiter ( S : String; Last : in out Natural); -- operations in Ada.Directories function Simple_Name (Name : String) return String; -- extended -- This function returns null string instead of Name_Error, -- if Name has no simple name part. function Unchecked_Simple_Name (Name : String) return String; function Containing_Directory (Name : String) return String; -- extended -- This function returns null string instead of Use_Error, -- if Name has no directory part. function Unchecked_Containing_Directory (Name : String) return String; function Extension (Name : String) return String; function Base_Name (Name : String) return String; -- extended -- There are procedure version. procedure Simple_Name ( Name : String; First : out Positive; Last : out Natural); procedure Containing_Directory ( Name : String; First : out Positive; Last : out Natural); procedure Extension ( Name : String; First : out Positive; Last : out Natural); procedure Base_Name ( Name : String; First : out Positive; Last : out Natural); -- operations in Ada.Directories.Hierarchical_File_Names function Is_Simple_Name (Name : String) return Boolean; function Is_Root_Directory_Name (Name : String) return Boolean; function Is_Parent_Directory_Name (Name : String) return Boolean; function Is_Current_Directory_Name (Name : String) return Boolean; function Is_Full_Name (Name : String) return Boolean; function Is_Relative_Name (Name : String) return Boolean; -- function Simple_Name (Name : String) return String -- renames Directories.Simple_Name; -- function Containing_Directory (Name : String) return String -- renames Directories.Containing_Directory; function Initial_Directory (Name : String) return String; function Relative_Name (Name : String) return String; -- extended -- This function returns null string instead of Name_Error, -- if Name has no directory part. function Unchecked_Relative_Name (Name : String) return String; -- extended -- There are procedure version. procedure Initial_Directory ( Name : String; First : out Positive; Last : out Natural); procedure Relative_Name ( Name : String; First : out Positive; Last : out Natural); function Compose ( Directory : String := ""; Relative_Name : String; Extension : String := ""; Path_Delimiter : Path_Delimiter_Type := Default_Path_Delimiter) return String; -- extended -- This function folds current/parent directory names. -- For example: Normalized_Compose ("A/B", "../C") = "A/C". function Normalized_Compose ( Directory : String := ""; Relative_Name : String; Extension : String := ""; Path_Delimiter : Path_Delimiter_Type := Default_Path_Delimiter) return String; -- extended -- This function returns the relative name from the base directory. -- For example: Relative_Name ("A", "B") = "../A", -- Relative_Name (Name, Initial_Directory (Name)) = Relative_Name (Name) function Relative_Name ( Name : String; From : String; Path_Delimiter : Path_Delimiter_Type := Default_Path_Delimiter) return String; -- extended -- There is a procedure version. It also propagates Use_Error. procedure Relative_Name ( Name : String; First : out Positive; Last : out Natural; From : String; Parent_Count : out Natural); -- extended -- This is a "folded" version of Containing_Directory if Directory /= "". -- Otherwise, it returns ".." as the parent directory name. -- For example: Parent_Directory ("A/B/.") = "A" -- Parent_Directory ("A/B/C/..") = "A" -- Parent_Directory (Name) = Normalized_Compose (Name, "..") function Parent_Directory ( Directory : String; Path_Delimiter : Path_Delimiter_Type := Default_Path_Delimiter) return String; -- extended -- There is a procedure version. procedure Parent_Directory ( Directory : String; First : out Positive; Last : out Natural; Parent_Count : out Natural); -- exceptions Name_Error : exception renames IO_Exceptions.Name_Error; Use_Error : exception renames IO_Exceptions.Use_Error; end Ada.Hierarchical_File_Names;
31.518072
78
0.67909
31448fb9b2735944740e44bb948fe11bb18d5908
4,856
adb
Ada
tools-src/gnu/gcc/gcc/ada/s-mastop.adb
modern-tomato/tomato
96f09fab4929c6ddde5c9113f1b2476ad37133c4
[ "FSFAP" ]
80
2015-01-02T10:14:04.000Z
2021-06-07T06:29:49.000Z
tools-src/gnu/gcc/gcc/ada/s-mastop.adb
modern-tomato/tomato
96f09fab4929c6ddde5c9113f1b2476ad37133c4
[ "FSFAP" ]
9
2015-05-14T11:03:12.000Z
2018-01-04T07:12:58.000Z
tools-src/gnu/gcc/gcc/ada/s-mastop.adb
modern-tomato/tomato
96f09fab4929c6ddde5c9113f1b2476ad37133c4
[ "FSFAP" ]
69
2015-01-02T10:45:56.000Z
2021-09-06T07:52:13.000Z
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- SYSTEM.MACHINE_STATE_OPERATIONS -- -- -- -- B o d y -- -- (Dummy version) -- -- -- -- $Revision$ -- -- -- Copyright (C) 1999-2001 Ada Core Technologies, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT 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 distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, -- -- MA 02111-1307, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). -- -- -- ------------------------------------------------------------------------------ -- This dummy version of System.Machine_State_Operations is used -- on targets for which zero cost exception handling is not implemented. package body System.Machine_State_Operations is use System.Exceptions; ---------------------------- -- Allocate_Machine_State -- ---------------------------- function Allocate_Machine_State return Machine_State is begin return Machine_State (Null_Address); end Allocate_Machine_State; ------------------- -- Enter_Handler -- ------------------- procedure Enter_Handler (M : Machine_State; Handler : Handler_Loc) is begin null; end Enter_Handler; ---------------- -- Fetch_Code -- ---------------- function Fetch_Code (Loc : Code_Loc) return Code_Loc is begin return Loc; end Fetch_Code; ------------------------ -- Free_Machine_State -- ------------------------ procedure Free_Machine_State (M : in out Machine_State) is begin M := Machine_State (Null_Address); end Free_Machine_State; ------------------ -- Get_Code_Loc -- ------------------ function Get_Code_Loc (M : Machine_State) return Code_Loc is begin return Null_Address; end Get_Code_Loc; -------------------------- -- Machine_State_Length -- -------------------------- function Machine_State_Length return System.Storage_Elements.Storage_Offset is begin return 0; end Machine_State_Length; --------------- -- Pop_Frame -- --------------- procedure Pop_Frame (M : Machine_State; Info : Subprogram_Info_Type) is begin null; end Pop_Frame; ----------------------- -- Set_Machine_State -- ----------------------- procedure Set_Machine_State (M : Machine_State) is begin null; end Set_Machine_State; ------------------------------ -- Set_Signal_Machine_State -- ------------------------------ procedure Set_Signal_Machine_State (M : Machine_State; Context : System.Address) is begin null; end Set_Signal_Machine_State; end System.Machine_State_Operations;
37.068702
78
0.458196
2f3b8841f41579247fe5761fafd9ed51e5eae5b8
3,820
adb
Ada
bb-runtimes/arm/smartfusion2/s-textio.adb
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/arm/smartfusion2/s-textio.adb
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
bb-runtimes/arm/smartfusion2/s-textio.adb
JCGobbi/Nucleo-STM32F334R8
2a0b1b4b2664c92773703ac5e95dcb71979d051c
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . T E X T _ I O -- -- -- -- B o d y -- -- -- -- Copyright (C) 1992-2016, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- Minimal version of Text_IO body for use on SmartFusion2, uses MUART_0 with System.SF2.UART; use System.SF2.UART; with Interfaces.SF2; use Interfaces.SF2; package body System.Text_IO is MSS_UART0 : aliased MSS_UART with Import, Address => MMUART_0_Base; -- UART to use Baudrate : constant MSS_UART_Baud_Rate := Baud_115200; -- Bitrate to use ---------------- -- Initialize -- ---------------- procedure Initialize is Status : Boolean; begin Initialized := True; Configure (MSS_UART0, Baudrate, (Word_Length => Length_8_Bits, others => <>), Status); -- pragma Assert (Status, "Cannot initialize the UART interface"); end Initialize; ----------------- -- Is_Tx_Ready -- ----------------- function Is_Tx_Ready return Boolean is (True); ----------------- -- Is_Rx_Ready -- ----------------- function Is_Rx_Ready return Boolean is (False); --------- -- Get -- --------- function Get return Character is ('?'); --------- -- Put -- --------- procedure Put (C : Character) is S : constant String := (1 => C); begin Send (MSS_UART0, S); end Put; ---------------------------- -- Use_Cr_Lf_For_New_Line -- ---------------------------- function Use_Cr_Lf_For_New_Line return Boolean is (True); end System.Text_IO;
38.585859
78
0.421204
fbadc5249a5d0c9d4b2b901ac448a261e1c9b921
2,499
ads
Ada
source/oasis/program-elements-select_statements.ads
reznikmm/gela
20134f1d154fb763812e73860c6f4b04f353df79
[ "MIT" ]
null
null
null
source/oasis/program-elements-select_statements.ads
reznikmm/gela
20134f1d154fb763812e73860c6f4b04f353df79
[ "MIT" ]
null
null
null
source/oasis/program-elements-select_statements.ads
reznikmm/gela
20134f1d154fb763812e73860c6f4b04f353df79
[ "MIT" ]
1
2019-10-16T09:05:27.000Z
2019-10-16T09:05:27.000Z
-- SPDX-FileCopyrightText: 2019 Max Reznik <[email protected]> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Statements; with Program.Lexical_Elements; with Program.Elements.Select_Paths; with Program.Element_Vectors; package Program.Elements.Select_Statements is pragma Pure (Program.Elements.Select_Statements); type Select_Statement is limited interface and Program.Elements.Statements.Statement; type Select_Statement_Access is access all Select_Statement'Class with Storage_Size => 0; not overriding function Paths (Self : Select_Statement) return not null Program.Elements.Select_Paths.Select_Path_Vector_Access is abstract; not overriding function Then_Abort_Statements (Self : Select_Statement) return Program.Element_Vectors.Element_Vector_Access is abstract; not overriding function Else_Statements (Self : Select_Statement) return Program.Element_Vectors.Element_Vector_Access is abstract; type Select_Statement_Text is limited interface; type Select_Statement_Text_Access is access all Select_Statement_Text'Class with Storage_Size => 0; not overriding function To_Select_Statement_Text (Self : in out Select_Statement) return Select_Statement_Text_Access is abstract; not overriding function Select_Token (Self : Select_Statement_Text) return not null Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function Then_Token (Self : Select_Statement_Text) return Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function Abort_Token (Self : Select_Statement_Text) return Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function Else_Token (Self : Select_Statement_Text) return Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function End_Token (Self : Select_Statement_Text) return not null Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function Select_Token_2 (Self : Select_Statement_Text) return not null Program.Lexical_Elements.Lexical_Element_Access is abstract; not overriding function Semicolon_Token (Self : Select_Statement_Text) return not null Program.Lexical_Elements.Lexical_Element_Access is abstract; end Program.Elements.Select_Statements;
32.881579
78
0.765906
a1b0985951d024e5adfad01a2d57d73dcc54bd5d
230,247
adb
Ada
Vivado_HLS_Tutorial/Design_Analysis/lab1/dct_prj/solution1/.autopilot/db/dct.adb
williambong/Vivado
68efafbc44b65c0bb047dbafc0ff7f1b56ee36bb
[ "MIT" ]
null
null
null
Vivado_HLS_Tutorial/Design_Analysis/lab1/dct_prj/solution1/.autopilot/db/dct.adb
williambong/Vivado
68efafbc44b65c0bb047dbafc0ff7f1b56ee36bb
[ "MIT" ]
null
null
null
Vivado_HLS_Tutorial/Design_Analysis/lab1/dct_prj/solution1/.autopilot/db/dct.adb
williambong/Vivado
68efafbc44b65c0bb047dbafc0ff7f1b56ee36bb
[ "MIT" ]
null
null
null
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="11"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName/> <cdfg class_id="1" tracking_level="1" version="0" object_id="_0"> <name>dct</name> <ret_bitwidth>0</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="3" tracking_level="1" version="0" object_id="_1"> <Value class_id="4" tracking_level="0" version="0"> <Obj class_id="5" tracking_level="0" version="0"> <type>1</type> <id>1</id> <name>input_r</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo class_id="6" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>input</originalName> <rtlName/> <coreName>RAM</coreName> </Obj> <bitwidth>16</bitwidth> </Value> <direction>0</direction> <if_type>1</if_type> <array_size>64</array_size> <bit_vecs class_id="7" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> <item class_id_reference="3" object_id="_2"> <Value> <Obj> <type>1</type> <id>2</id> <name>output_r</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>output</originalName> <rtlName/> <coreName>RAM</coreName> </Obj> <bitwidth>16</bitwidth> </Value> <direction>1</direction> <if_type>1</if_type> <array_size>64</array_size> <bit_vecs> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> </ports> <nodes class_id="8" tracking_level="0" version="0"> <count>56</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_3"> <Value> <Obj> <type>0</type> <id>7</id> <name>buf_2d_in</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>124</lineNumber> <contextFuncName>dct</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="10" tracking_level="0" version="0"> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second class_id="11" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="12" tracking_level="0" version="0"> <first class_id="13" tracking_level="0" version="0"> <first>dct.cpp</first> <second>dct</second> </first> <second>124</second> </item> </second> </item> </inlineStackInfo> <originalName>buf_2d_in</originalName> <rtlName>buf_2d_in_U</rtlName> <coreName>RAM</coreName> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>89</item> </oprand_edges> <opcode>alloca</opcode> </item> <item class_id_reference="9" object_id="_4"> <Value> <Obj> <type>0</type> <id>8</id> <name>buf_2d_out</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName>buf_2d_out_U</rtlName> <coreName>RAM</coreName> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>90</item> </oprand_edges> <opcode>alloca</opcode> </item> <item class_id_reference="9" object_id="_5"> <Value> <Obj> <type>0</type> <id>9</id> <name/> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>103</lineNumber> <contextFuncName>read_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>128</second> </item> <item> <first> <first>dct.cpp</first> <second>read_data</second> </first> <second>103</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>91</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_6"> <Value> <Obj> <type>0</type> <id>11</id> <name>r_i</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>r</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>93</item> <item>94</item> <item>95</item> <item>96</item> </oprand_edges> <opcode>phi</opcode> </item> <item class_id_reference="9" object_id="_7"> <Value> <Obj> <type>0</type> <id>12</id> <name>exitcond1_i</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>103</lineNumber> <contextFuncName>read_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>128</second> </item> <item> <first> <first>dct.cpp</first> <second>read_data</second> </first> <second>103</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>exitcond1_i_fu_156_p2</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>97</item> <item>99</item> </oprand_edges> <opcode>icmp</opcode> </item> <item class_id_reference="9" object_id="_8"> <Value> <Obj> <type>0</type> <id>14</id> <name>r</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>103</lineNumber> <contextFuncName>read_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>128</second> </item> <item> <first> <first>dct.cpp</first> <second>read_data</second> </first> <second>103</second> </item> </second> </item> </inlineStackInfo> <originalName>r</originalName> <rtlName>r_fu_162_p2</rtlName> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>100</item> <item>102</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_9"> <Value> <Obj> <type>0</type> <id>15</id> <name/> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>103</lineNumber> <contextFuncName>read_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>128</second> </item> <item> <first> <first>dct.cpp</first> <second>read_data</second> </first> <second>103</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>103</item> <item>104</item> <item>105</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_10"> <Value> <Obj> <type>0</type> <id>19</id> <name>tmp</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>103</lineNumber> <contextFuncName>read_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>128</second> </item> <item> <first> <first>dct.cpp</first> <second>read_data</second> </first> <second>103</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_fu_168_p1</rtlName> <coreName/> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>106</item> </oprand_edges> <opcode>trunc</opcode> </item> <item class_id_reference="9" object_id="_11"> <Value> <Obj> <type>0</type> <id>20</id> <name>tmp_i</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>106</lineNumber> <contextFuncName>read_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>128</second> </item> <item> <first> <first>dct.cpp</first> <second>read_data</second> </first> <second>106</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_i_fu_172_p3</rtlName> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>108</item> <item>109</item> <item>111</item> </oprand_edges> <opcode>bitconcatenate</opcode> </item> <item class_id_reference="9" object_id="_12"> <Value> <Obj> <type>0</type> <id>21</id> <name>tmp_1</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>103</lineNumber> <contextFuncName>read_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>128</second> </item> <item> <first> <first>dct.cpp</first> <second>read_data</second> </first> <second>103</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_1_fu_180_p3</rtlName> <coreName/> </Obj> <bitwidth>7</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>113</item> <item>114</item> <item>115</item> </oprand_edges> <opcode>bitconcatenate</opcode> </item> <item class_id_reference="9" object_id="_13"> <Value> <Obj> <type>0</type> <id>22</id> <name>p_addr_cast</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>105</lineNumber> <contextFuncName>read_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>128</second> </item> <item> <first> <first>dct.cpp</first> <second>read_data</second> </first> <second>105</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>p_addr_cast_fu_188_p1</rtlName> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>116</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_14"> <Value> <Obj> <type>0</type> <id>23</id> <name/> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>105</lineNumber> <contextFuncName>read_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>128</second> </item> <item> <first> <first>dct.cpp</first> <second>read_data</second> </first> <second>105</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>117</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_15"> <Value> <Obj> <type>0</type> <id>25</id> <name>c_i</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>c</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>118</item> <item>119</item> <item>120</item> <item>121</item> </oprand_edges> <opcode>phi</opcode> </item> <item class_id_reference="9" object_id="_16"> <Value> <Obj> <type>0</type> <id>26</id> <name>c_i_cast6</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>105</lineNumber> <contextFuncName>read_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>128</second> </item> <item> <first> <first>dct.cpp</first> <second>read_data</second> </first> <second>105</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>c_i_cast6_fu_192_p1</rtlName> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>122</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_17"> <Value> <Obj> <type>0</type> <id>27</id> <name>exitcond_i</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>105</lineNumber> <contextFuncName>read_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>128</second> </item> <item> <first> <first>dct.cpp</first> <second>read_data</second> </first> <second>105</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>exitcond_i_fu_196_p2</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>123</item> <item>124</item> </oprand_edges> <opcode>icmp</opcode> </item> <item class_id_reference="9" object_id="_18"> <Value> <Obj> <type>0</type> <id>29</id> <name>c</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>105</lineNumber> <contextFuncName>read_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>128</second> </item> <item> <first> <first>dct.cpp</first> <second>read_data</second> </first> <second>105</second> </item> </second> </item> </inlineStackInfo> <originalName>c</originalName> <rtlName>c_fu_202_p2</rtlName> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>125</item> <item>126</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_19"> <Value> <Obj> <type>0</type> <id>30</id> <name/> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>105</lineNumber> <contextFuncName>read_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>128</second> </item> <item> <first> <first>dct.cpp</first> <second>read_data</second> </first> <second>105</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>127</item> <item>128</item> <item>129</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_20"> <Value> <Obj> <type>0</type> <id>33</id> <name>tmp_5_i</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>106</lineNumber> <contextFuncName>read_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>128</second> </item> <item> <first> <first>dct.cpp</first> <second>read_data</second> </first> <second>106</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_5_i_fu_208_p2</rtlName> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>130</item> <item>131</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_21"> <Value> <Obj> <type>0</type> <id>34</id> <name>tmp_6_i</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>106</lineNumber> <contextFuncName>read_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>128</second> </item> <item> <first> <first>dct.cpp</first> <second>read_data</second> </first> <second>106</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_6_i_fu_213_p1</rtlName> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>132</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_22"> <Value> <Obj> <type>0</type> <id>35</id> <name>input_addr</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>106</lineNumber> <contextFuncName>read_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>128</second> </item> <item> <first> <first>dct.cpp</first> <second>read_data</second> </first> <second>106</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>133</item> <item>135</item> <item>136</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_23"> <Value> <Obj> <type>0</type> <id>36</id> <name>input_load</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>106</lineNumber> <contextFuncName>read_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>128</second> </item> <item> <first> <first>dct.cpp</first> <second>read_data</second> </first> <second>106</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>137</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_24"> <Value> <Obj> <type>0</type> <id>37</id> <name>tmp_7_i_trn_cast</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>106</lineNumber> <contextFuncName>read_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>128</second> </item> <item> <first> <first>dct.cpp</first> <second>read_data</second> </first> <second>106</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_7_i_trn_cast_fu_218_p1</rtlName> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>138</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_25"> <Value> <Obj> <type>0</type> <id>38</id> <name>p_addr1</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>106</lineNumber> <contextFuncName>read_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>128</second> </item> <item> <first> <first>dct.cpp</first> <second>read_data</second> </first> <second>106</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>p_addr1_fu_222_p2</rtlName> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>139</item> <item>140</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_26"> <Value> <Obj> <type>0</type> <id>39</id> <name>tmp_4</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>106</lineNumber> <contextFuncName>read_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>128</second> </item> <item> <first> <first>dct.cpp</first> <second>read_data</second> </first> <second>106</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_4_fu_227_p1</rtlName> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>141</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_27"> <Value> <Obj> <type>0</type> <id>40</id> <name>buf_2d_in_addr</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>106</lineNumber> <contextFuncName>read_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>128</second> </item> <item> <first> <first>dct.cpp</first> <second>read_data</second> </first> <second>106</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>142</item> <item>143</item> <item>144</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_28"> <Value> <Obj> <type>0</type> <id>41</id> <name/> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>106</lineNumber> <contextFuncName>read_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>128</second> </item> <item> <first> <first>dct.cpp</first> <second>read_data</second> </first> <second>106</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>145</item> <item>146</item> </oprand_edges> <opcode>store</opcode> </item> <item class_id_reference="9" object_id="_29"> <Value> <Obj> <type>0</type> <id>42</id> <name/> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>105</lineNumber> <contextFuncName>read_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>128</second> </item> <item> <first> <first>dct.cpp</first> <second>read_data</second> </first> <second>105</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>147</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_30"> <Value> <Obj> <type>0</type> <id>45</id> <name/> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>103</lineNumber> <contextFuncName>read_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>128</second> </item> <item> <first> <first>dct.cpp</first> <second>read_data</second> </first> <second>103</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>148</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_31"> <Value> <Obj> <type>0</type> <id>47</id> <name/> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>130</lineNumber> <contextFuncName>dct</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>130</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>grp_dct_dct_2d_fu_148</rtlName> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>150</item> <item>151</item> <item>152</item> <item>204</item> </oprand_edges> <opcode>call</opcode> </item> <item class_id_reference="9" object_id="_32"> <Value> <Obj> <type>0</type> <id>48</id> <name/> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>115</lineNumber> <contextFuncName>write_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>133</second> </item> <item> <first> <first>dct.cpp</first> <second>write_data</second> </first> <second>115</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>153</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_33"> <Value> <Obj> <type>0</type> <id>50</id> <name>r_i2</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>r</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>154</item> <item>155</item> <item>156</item> <item>157</item> </oprand_edges> <opcode>phi</opcode> </item> <item class_id_reference="9" object_id="_34"> <Value> <Obj> <type>0</type> <id>51</id> <name>exitcond1_i3</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>115</lineNumber> <contextFuncName>write_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>133</second> </item> <item> <first> <first>dct.cpp</first> <second>write_data</second> </first> <second>115</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>exitcond1_i3_fu_231_p2</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>158</item> <item>159</item> </oprand_edges> <opcode>icmp</opcode> </item> <item class_id_reference="9" object_id="_35"> <Value> <Obj> <type>0</type> <id>53</id> <name>r_1</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>115</lineNumber> <contextFuncName>write_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>133</second> </item> <item> <first> <first>dct.cpp</first> <second>write_data</second> </first> <second>115</second> </item> </second> </item> </inlineStackInfo> <originalName>r</originalName> <rtlName>r_1_fu_237_p2</rtlName> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>160</item> <item>161</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_36"> <Value> <Obj> <type>0</type> <id>54</id> <name/> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>115</lineNumber> <contextFuncName>write_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>133</second> </item> <item> <first> <first>dct.cpp</first> <second>write_data</second> </first> <second>115</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>162</item> <item>163</item> <item>164</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_37"> <Value> <Obj> <type>0</type> <id>58</id> <name>tmp_2</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>115</lineNumber> <contextFuncName>write_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>133</second> </item> <item> <first> <first>dct.cpp</first> <second>write_data</second> </first> <second>115</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_2_fu_243_p1</rtlName> <coreName/> </Obj> <bitwidth>3</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>165</item> </oprand_edges> <opcode>trunc</opcode> </item> <item class_id_reference="9" object_id="_38"> <Value> <Obj> <type>0</type> <id>59</id> <name>tmp_i5</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>118</lineNumber> <contextFuncName>write_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>133</second> </item> <item> <first> <first>dct.cpp</first> <second>write_data</second> </first> <second>118</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_i5_fu_247_p3</rtlName> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>166</item> <item>167</item> <item>168</item> </oprand_edges> <opcode>bitconcatenate</opcode> </item> <item class_id_reference="9" object_id="_39"> <Value> <Obj> <type>0</type> <id>60</id> <name>tmp_3</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>115</lineNumber> <contextFuncName>write_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>133</second> </item> <item> <first> <first>dct.cpp</first> <second>write_data</second> </first> <second>115</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_3_fu_255_p3</rtlName> <coreName/> </Obj> <bitwidth>7</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>169</item> <item>170</item> <item>171</item> </oprand_edges> <opcode>bitconcatenate</opcode> </item> <item class_id_reference="9" object_id="_40"> <Value> <Obj> <type>0</type> <id>61</id> <name>p_addr2_cast</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>117</lineNumber> <contextFuncName>write_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>133</second> </item> <item> <first> <first>dct.cpp</first> <second>write_data</second> </first> <second>117</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>p_addr2_cast_fu_263_p1</rtlName> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>172</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_41"> <Value> <Obj> <type>0</type> <id>62</id> <name/> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>117</lineNumber> <contextFuncName>write_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>133</second> </item> <item> <first> <first>dct.cpp</first> <second>write_data</second> </first> <second>117</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>173</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_42"> <Value> <Obj> <type>0</type> <id>64</id> <name>c_i6</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>c</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>4</count> <item_version>0</item_version> <item>174</item> <item>175</item> <item>176</item> <item>177</item> </oprand_edges> <opcode>phi</opcode> </item> <item class_id_reference="9" object_id="_43"> <Value> <Obj> <type>0</type> <id>65</id> <name>c_i6_cast2</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>117</lineNumber> <contextFuncName>write_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>133</second> </item> <item> <first> <first>dct.cpp</first> <second>write_data</second> </first> <second>117</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>c_i6_cast2_fu_267_p1</rtlName> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>178</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_44"> <Value> <Obj> <type>0</type> <id>66</id> <name>exitcond_i7</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>117</lineNumber> <contextFuncName>write_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>133</second> </item> <item> <first> <first>dct.cpp</first> <second>write_data</second> </first> <second>117</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>exitcond_i7_fu_271_p2</rtlName> <coreName/> </Obj> <bitwidth>1</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>179</item> <item>180</item> </oprand_edges> <opcode>icmp</opcode> </item> <item class_id_reference="9" object_id="_45"> <Value> <Obj> <type>0</type> <id>68</id> <name>c_1</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>117</lineNumber> <contextFuncName>write_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>133</second> </item> <item> <first> <first>dct.cpp</first> <second>write_data</second> </first> <second>117</second> </item> </second> </item> </inlineStackInfo> <originalName>c</originalName> <rtlName>c_1_fu_277_p2</rtlName> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>181</item> <item>182</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_46"> <Value> <Obj> <type>0</type> <id>69</id> <name/> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>117</lineNumber> <contextFuncName>write_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>133</second> </item> <item> <first> <first>dct.cpp</first> <second>write_data</second> </first> <second>117</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>183</item> <item>184</item> <item>185</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_47"> <Value> <Obj> <type>0</type> <id>72</id> <name>tmp_8_i_trn_cast</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>118</lineNumber> <contextFuncName>write_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>133</second> </item> <item> <first> <first>dct.cpp</first> <second>write_data</second> </first> <second>118</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_8_i_trn_cast_fu_283_p1</rtlName> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>186</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_48"> <Value> <Obj> <type>0</type> <id>73</id> <name>p_addr3</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>118</lineNumber> <contextFuncName>write_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>133</second> </item> <item> <first> <first>dct.cpp</first> <second>write_data</second> </first> <second>118</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>p_addr3_fu_287_p2</rtlName> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>187</item> <item>188</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_49"> <Value> <Obj> <type>0</type> <id>74</id> <name>tmp_5</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>118</lineNumber> <contextFuncName>write_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>133</second> </item> <item> <first> <first>dct.cpp</first> <second>write_data</second> </first> <second>118</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_5_fu_292_p1</rtlName> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>189</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_50"> <Value> <Obj> <type>0</type> <id>75</id> <name>buf_2d_out_addr</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>118</lineNumber> <contextFuncName>write_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>133</second> </item> <item> <first> <first>dct.cpp</first> <second>write_data</second> </first> <second>118</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>190</item> <item>191</item> <item>192</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_51"> <Value> <Obj> <type>0</type> <id>76</id> <name>buf_2d_out_load</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>118</lineNumber> <contextFuncName>write_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>133</second> </item> <item> <first> <first>dct.cpp</first> <second>write_data</second> </first> <second>118</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>16</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>193</item> </oprand_edges> <opcode>load</opcode> </item> <item class_id_reference="9" object_id="_52"> <Value> <Obj> <type>0</type> <id>77</id> <name>tmp_9_i</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>118</lineNumber> <contextFuncName>write_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>133</second> </item> <item> <first> <first>dct.cpp</first> <second>write_data</second> </first> <second>118</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_9_i_fu_297_p2</rtlName> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>194</item> <item>195</item> </oprand_edges> <opcode>add</opcode> </item> <item class_id_reference="9" object_id="_53"> <Value> <Obj> <type>0</type> <id>78</id> <name>tmp_3_i</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>118</lineNumber> <contextFuncName>write_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>133</second> </item> <item> <first> <first>dct.cpp</first> <second>write_data</second> </first> <second>118</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName>tmp_3_i_fu_302_p1</rtlName> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>196</item> </oprand_edges> <opcode>zext</opcode> </item> <item class_id_reference="9" object_id="_54"> <Value> <Obj> <type>0</type> <id>79</id> <name>output_addr</name> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>118</lineNumber> <contextFuncName>write_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>133</second> </item> <item> <first> <first>dct.cpp</first> <second>write_data</second> </first> <second>118</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>6</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>197</item> <item>198</item> <item>199</item> </oprand_edges> <opcode>getelementptr</opcode> </item> <item class_id_reference="9" object_id="_55"> <Value> <Obj> <type>0</type> <id>80</id> <name/> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>118</lineNumber> <contextFuncName>write_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>133</second> </item> <item> <first> <first>dct.cpp</first> <second>write_data</second> </first> <second>118</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>2</count> <item_version>0</item_version> <item>200</item> <item>201</item> </oprand_edges> <opcode>store</opcode> </item> <item class_id_reference="9" object_id="_56"> <Value> <Obj> <type>0</type> <id>81</id> <name/> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>117</lineNumber> <contextFuncName>write_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>133</second> </item> <item> <first> <first>dct.cpp</first> <second>write_data</second> </first> <second>117</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>202</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_57"> <Value> <Obj> <type>0</type> <id>84</id> <name/> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>115</lineNumber> <contextFuncName>write_data</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>2</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>133</second> </item> <item> <first> <first>dct.cpp</first> <second>write_data</second> </first> <second>115</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>203</item> </oprand_edges> <opcode>br</opcode> </item> <item class_id_reference="9" object_id="_58"> <Value> <Obj> <type>0</type> <id>86</id> <name/> <fileName>dct.cpp</fileName> <fileDirectory>..</fileDirectory> <lineNumber>134</lineNumber> <contextFuncName>dct</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>d:/opt/source/Vivado/Vivado_HLS_Tutorial/Design_Analysis/lab1</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>dct.cpp</first> <second>dct</second> </first> <second>134</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>0</count> <item_version>0</item_version> </oprand_edges> <opcode>ret</opcode> </item> </nodes> <consts class_id="15" tracking_level="0" version="0"> <count>7</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_59"> <Value> <Obj> <type>2</type> <id>88</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_60"> <Value> <Obj> <type>2</type> <id>92</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_61"> <Value> <Obj> <type>2</type> <id>98</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <const_type>0</const_type> <content>8</content> </item> <item class_id_reference="16" object_id="_62"> <Value> <Obj> <type>2</type> <id>101</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_63"> <Value> <Obj> <type>2</type> <id>110</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>3</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_64"> <Value> <Obj> <type>2</type> <id>134</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_65"> <Value> <Obj> <type>2</type> <id>149</id> <name>dct_dct_2d</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <const_type>6</const_type> <content>&lt;constant:dct_dct_2d&gt;</content> </item> </consts> <blocks class_id="17" tracking_level="0" version="0"> <count>13</count> <item_version>0</item_version> <item class_id="18" tracking_level="1" version="0" object_id="_66"> <Obj> <type>3</type> <id>10</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>3</count> <item_version>0</item_version> <item>7</item> <item>8</item> <item>9</item> </node_objs> </item> <item class_id_reference="18" object_id="_67"> <Obj> <type>3</type> <id>16</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>4</count> <item_version>0</item_version> <item>11</item> <item>12</item> <item>14</item> <item>15</item> </node_objs> </item> <item class_id_reference="18" object_id="_68"> <Obj> <type>3</type> <id>24</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>5</count> <item_version>0</item_version> <item>19</item> <item>20</item> <item>21</item> <item>22</item> <item>23</item> </node_objs> </item> <item class_id_reference="18" object_id="_69"> <Obj> <type>3</type> <id>31</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>5</count> <item_version>0</item_version> <item>25</item> <item>26</item> <item>27</item> <item>29</item> <item>30</item> </node_objs> </item> <item class_id_reference="18" object_id="_70"> <Obj> <type>3</type> <id>43</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>10</count> <item_version>0</item_version> <item>33</item> <item>34</item> <item>35</item> <item>36</item> <item>37</item> <item>38</item> <item>39</item> <item>40</item> <item>41</item> <item>42</item> </node_objs> </item> <item class_id_reference="18" object_id="_71"> <Obj> <type>3</type> <id>46</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>1</count> <item_version>0</item_version> <item>45</item> </node_objs> </item> <item class_id_reference="18" object_id="_72"> <Obj> <type>3</type> <id>49</id> <name>read_data.exit</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>2</count> <item_version>0</item_version> <item>47</item> <item>48</item> </node_objs> </item> <item class_id_reference="18" object_id="_73"> <Obj> <type>3</type> <id>55</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>4</count> <item_version>0</item_version> <item>50</item> <item>51</item> <item>53</item> <item>54</item> </node_objs> </item> <item class_id_reference="18" object_id="_74"> <Obj> <type>3</type> <id>63</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>5</count> <item_version>0</item_version> <item>58</item> <item>59</item> <item>60</item> <item>61</item> <item>62</item> </node_objs> </item> <item class_id_reference="18" object_id="_75"> <Obj> <type>3</type> <id>70</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>5</count> <item_version>0</item_version> <item>64</item> <item>65</item> <item>66</item> <item>68</item> <item>69</item> </node_objs> </item> <item class_id_reference="18" object_id="_76"> <Obj> <type>3</type> <id>82</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>10</count> <item_version>0</item_version> <item>72</item> <item>73</item> <item>74</item> <item>75</item> <item>76</item> <item>77</item> <item>78</item> <item>79</item> <item>80</item> <item>81</item> </node_objs> </item> <item class_id_reference="18" object_id="_77"> <Obj> <type>3</type> <id>85</id> <name/> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>1</count> <item_version>0</item_version> <item>84</item> </node_objs> </item> <item class_id_reference="18" object_id="_78"> <Obj> <type>3</type> <id>87</id> <name>write_data.exit</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>1</count> <item_version>0</item_version> <item>86</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>120</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_79"> <id>89</id> <edge_type>1</edge_type> <source_obj>88</source_obj> <sink_obj>7</sink_obj> </item> <item class_id_reference="20" object_id="_80"> <id>90</id> <edge_type>1</edge_type> <source_obj>88</source_obj> <sink_obj>8</sink_obj> </item> <item class_id_reference="20" object_id="_81"> <id>91</id> <edge_type>2</edge_type> <source_obj>16</source_obj> <sink_obj>9</sink_obj> </item> <item class_id_reference="20" object_id="_82"> <id>93</id> <edge_type>1</edge_type> <source_obj>92</source_obj> <sink_obj>11</sink_obj> </item> <item class_id_reference="20" object_id="_83"> <id>94</id> <edge_type>2</edge_type> <source_obj>10</source_obj> <sink_obj>11</sink_obj> </item> <item class_id_reference="20" object_id="_84"> <id>95</id> <edge_type>1</edge_type> <source_obj>14</source_obj> <sink_obj>11</sink_obj> </item> <item class_id_reference="20" object_id="_85"> <id>96</id> <edge_type>2</edge_type> <source_obj>46</source_obj> <sink_obj>11</sink_obj> </item> <item class_id_reference="20" object_id="_86"> <id>97</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_87"> <id>99</id> <edge_type>1</edge_type> <source_obj>98</source_obj> <sink_obj>12</sink_obj> </item> <item class_id_reference="20" object_id="_88"> <id>100</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>14</sink_obj> </item> <item class_id_reference="20" object_id="_89"> <id>102</id> <edge_type>1</edge_type> <source_obj>101</source_obj> <sink_obj>14</sink_obj> </item> <item class_id_reference="20" object_id="_90"> <id>103</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>15</sink_obj> </item> <item class_id_reference="20" object_id="_91"> <id>104</id> <edge_type>2</edge_type> <source_obj>24</source_obj> <sink_obj>15</sink_obj> </item> <item class_id_reference="20" object_id="_92"> <id>105</id> <edge_type>2</edge_type> <source_obj>49</source_obj> <sink_obj>15</sink_obj> </item> <item class_id_reference="20" object_id="_93"> <id>106</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>19</sink_obj> </item> <item class_id_reference="20" object_id="_94"> <id>109</id> <edge_type>1</edge_type> <source_obj>19</source_obj> <sink_obj>20</sink_obj> </item> <item class_id_reference="20" object_id="_95"> <id>111</id> <edge_type>1</edge_type> <source_obj>110</source_obj> <sink_obj>20</sink_obj> </item> <item class_id_reference="20" object_id="_96"> <id>114</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>21</sink_obj> </item> <item class_id_reference="20" object_id="_97"> <id>115</id> <edge_type>1</edge_type> <source_obj>110</source_obj> <sink_obj>21</sink_obj> </item> <item class_id_reference="20" object_id="_98"> <id>116</id> <edge_type>1</edge_type> <source_obj>21</source_obj> <sink_obj>22</sink_obj> </item> <item class_id_reference="20" object_id="_99"> <id>117</id> <edge_type>2</edge_type> <source_obj>31</source_obj> <sink_obj>23</sink_obj> </item> <item class_id_reference="20" object_id="_100"> <id>118</id> <edge_type>1</edge_type> <source_obj>92</source_obj> <sink_obj>25</sink_obj> </item> <item class_id_reference="20" object_id="_101"> <id>119</id> <edge_type>2</edge_type> <source_obj>24</source_obj> <sink_obj>25</sink_obj> </item> <item class_id_reference="20" object_id="_102"> <id>120</id> <edge_type>1</edge_type> <source_obj>29</source_obj> <sink_obj>25</sink_obj> </item> <item class_id_reference="20" object_id="_103"> <id>121</id> <edge_type>2</edge_type> <source_obj>43</source_obj> <sink_obj>25</sink_obj> </item> <item class_id_reference="20" object_id="_104"> <id>122</id> <edge_type>1</edge_type> <source_obj>25</source_obj> <sink_obj>26</sink_obj> </item> <item class_id_reference="20" object_id="_105"> <id>123</id> <edge_type>1</edge_type> <source_obj>25</source_obj> <sink_obj>27</sink_obj> </item> <item class_id_reference="20" object_id="_106"> <id>124</id> <edge_type>1</edge_type> <source_obj>98</source_obj> <sink_obj>27</sink_obj> </item> <item class_id_reference="20" object_id="_107"> <id>125</id> <edge_type>1</edge_type> <source_obj>25</source_obj> <sink_obj>29</sink_obj> </item> <item class_id_reference="20" object_id="_108"> <id>126</id> <edge_type>1</edge_type> <source_obj>101</source_obj> <sink_obj>29</sink_obj> </item> <item class_id_reference="20" object_id="_109"> <id>127</id> <edge_type>1</edge_type> <source_obj>27</source_obj> <sink_obj>30</sink_obj> </item> <item class_id_reference="20" object_id="_110"> <id>128</id> <edge_type>2</edge_type> <source_obj>43</source_obj> <sink_obj>30</sink_obj> </item> <item class_id_reference="20" object_id="_111"> <id>129</id> <edge_type>2</edge_type> <source_obj>46</source_obj> <sink_obj>30</sink_obj> </item> <item class_id_reference="20" object_id="_112"> <id>130</id> <edge_type>1</edge_type> <source_obj>20</source_obj> <sink_obj>33</sink_obj> </item> <item class_id_reference="20" object_id="_113"> <id>131</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>33</sink_obj> </item> <item class_id_reference="20" object_id="_114"> <id>132</id> <edge_type>1</edge_type> <source_obj>33</source_obj> <sink_obj>34</sink_obj> </item> <item class_id_reference="20" object_id="_115"> <id>133</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>35</sink_obj> </item> <item class_id_reference="20" object_id="_116"> <id>135</id> <edge_type>1</edge_type> <source_obj>134</source_obj> <sink_obj>35</sink_obj> </item> <item class_id_reference="20" object_id="_117"> <id>136</id> <edge_type>1</edge_type> <source_obj>34</source_obj> <sink_obj>35</sink_obj> </item> <item class_id_reference="20" object_id="_118"> <id>137</id> <edge_type>1</edge_type> <source_obj>35</source_obj> <sink_obj>36</sink_obj> </item> <item class_id_reference="20" object_id="_119"> <id>138</id> <edge_type>1</edge_type> <source_obj>25</source_obj> <sink_obj>37</sink_obj> </item> <item class_id_reference="20" object_id="_120"> <id>139</id> <edge_type>1</edge_type> <source_obj>37</source_obj> <sink_obj>38</sink_obj> </item> <item class_id_reference="20" object_id="_121"> <id>140</id> <edge_type>1</edge_type> <source_obj>22</source_obj> <sink_obj>38</sink_obj> </item> <item class_id_reference="20" object_id="_122"> <id>141</id> <edge_type>1</edge_type> <source_obj>38</source_obj> <sink_obj>39</sink_obj> </item> <item class_id_reference="20" object_id="_123"> <id>142</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>40</sink_obj> </item> <item class_id_reference="20" object_id="_124"> <id>143</id> <edge_type>1</edge_type> <source_obj>134</source_obj> <sink_obj>40</sink_obj> </item> <item class_id_reference="20" object_id="_125"> <id>144</id> <edge_type>1</edge_type> <source_obj>39</source_obj> <sink_obj>40</sink_obj> </item> <item class_id_reference="20" object_id="_126"> <id>145</id> <edge_type>1</edge_type> <source_obj>36</source_obj> <sink_obj>41</sink_obj> </item> <item class_id_reference="20" object_id="_127"> <id>146</id> <edge_type>1</edge_type> <source_obj>40</source_obj> <sink_obj>41</sink_obj> </item> <item class_id_reference="20" object_id="_128"> <id>147</id> <edge_type>2</edge_type> <source_obj>31</source_obj> <sink_obj>42</sink_obj> </item> <item class_id_reference="20" object_id="_129"> <id>148</id> <edge_type>2</edge_type> <source_obj>16</source_obj> <sink_obj>45</sink_obj> </item> <item class_id_reference="20" object_id="_130"> <id>150</id> <edge_type>1</edge_type> <source_obj>149</source_obj> <sink_obj>47</sink_obj> </item> <item class_id_reference="20" object_id="_131"> <id>151</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>47</sink_obj> </item> <item class_id_reference="20" object_id="_132"> <id>152</id> <edge_type>1</edge_type> <source_obj>8</source_obj> <sink_obj>47</sink_obj> </item> <item class_id_reference="20" object_id="_133"> <id>153</id> <edge_type>2</edge_type> <source_obj>55</source_obj> <sink_obj>48</sink_obj> </item> <item class_id_reference="20" object_id="_134"> <id>154</id> <edge_type>1</edge_type> <source_obj>92</source_obj> <sink_obj>50</sink_obj> </item> <item class_id_reference="20" object_id="_135"> <id>155</id> <edge_type>2</edge_type> <source_obj>49</source_obj> <sink_obj>50</sink_obj> </item> <item class_id_reference="20" object_id="_136"> <id>156</id> <edge_type>1</edge_type> <source_obj>53</source_obj> <sink_obj>50</sink_obj> </item> <item class_id_reference="20" object_id="_137"> <id>157</id> <edge_type>2</edge_type> <source_obj>85</source_obj> <sink_obj>50</sink_obj> </item> <item class_id_reference="20" object_id="_138"> <id>158</id> <edge_type>1</edge_type> <source_obj>50</source_obj> <sink_obj>51</sink_obj> </item> <item class_id_reference="20" object_id="_139"> <id>159</id> <edge_type>1</edge_type> <source_obj>98</source_obj> <sink_obj>51</sink_obj> </item> <item class_id_reference="20" object_id="_140"> <id>160</id> <edge_type>1</edge_type> <source_obj>50</source_obj> <sink_obj>53</sink_obj> </item> <item class_id_reference="20" object_id="_141"> <id>161</id> <edge_type>1</edge_type> <source_obj>101</source_obj> <sink_obj>53</sink_obj> </item> <item class_id_reference="20" object_id="_142"> <id>162</id> <edge_type>1</edge_type> <source_obj>51</source_obj> <sink_obj>54</sink_obj> </item> <item class_id_reference="20" object_id="_143"> <id>163</id> <edge_type>2</edge_type> <source_obj>63</source_obj> <sink_obj>54</sink_obj> </item> <item class_id_reference="20" object_id="_144"> <id>164</id> <edge_type>2</edge_type> <source_obj>87</source_obj> <sink_obj>54</sink_obj> </item> <item class_id_reference="20" object_id="_145"> <id>165</id> <edge_type>1</edge_type> <source_obj>50</source_obj> <sink_obj>58</sink_obj> </item> <item class_id_reference="20" object_id="_146"> <id>167</id> <edge_type>1</edge_type> <source_obj>58</source_obj> <sink_obj>59</sink_obj> </item> <item class_id_reference="20" object_id="_147"> <id>168</id> <edge_type>1</edge_type> <source_obj>110</source_obj> <sink_obj>59</sink_obj> </item> <item class_id_reference="20" object_id="_148"> <id>170</id> <edge_type>1</edge_type> <source_obj>50</source_obj> <sink_obj>60</sink_obj> </item> <item class_id_reference="20" object_id="_149"> <id>171</id> <edge_type>1</edge_type> <source_obj>110</source_obj> <sink_obj>60</sink_obj> </item> <item class_id_reference="20" object_id="_150"> <id>172</id> <edge_type>1</edge_type> <source_obj>60</source_obj> <sink_obj>61</sink_obj> </item> <item class_id_reference="20" object_id="_151"> <id>173</id> <edge_type>2</edge_type> <source_obj>70</source_obj> <sink_obj>62</sink_obj> </item> <item class_id_reference="20" object_id="_152"> <id>174</id> <edge_type>1</edge_type> <source_obj>92</source_obj> <sink_obj>64</sink_obj> </item> <item class_id_reference="20" object_id="_153"> <id>175</id> <edge_type>2</edge_type> <source_obj>63</source_obj> <sink_obj>64</sink_obj> </item> <item class_id_reference="20" object_id="_154"> <id>176</id> <edge_type>1</edge_type> <source_obj>68</source_obj> <sink_obj>64</sink_obj> </item> <item class_id_reference="20" object_id="_155"> <id>177</id> <edge_type>2</edge_type> <source_obj>82</source_obj> <sink_obj>64</sink_obj> </item> <item class_id_reference="20" object_id="_156"> <id>178</id> <edge_type>1</edge_type> <source_obj>64</source_obj> <sink_obj>65</sink_obj> </item> <item class_id_reference="20" object_id="_157"> <id>179</id> <edge_type>1</edge_type> <source_obj>64</source_obj> <sink_obj>66</sink_obj> </item> <item class_id_reference="20" object_id="_158"> <id>180</id> <edge_type>1</edge_type> <source_obj>98</source_obj> <sink_obj>66</sink_obj> </item> <item class_id_reference="20" object_id="_159"> <id>181</id> <edge_type>1</edge_type> <source_obj>64</source_obj> <sink_obj>68</sink_obj> </item> <item class_id_reference="20" object_id="_160"> <id>182</id> <edge_type>1</edge_type> <source_obj>101</source_obj> <sink_obj>68</sink_obj> </item> <item class_id_reference="20" object_id="_161"> <id>183</id> <edge_type>1</edge_type> <source_obj>66</source_obj> <sink_obj>69</sink_obj> </item> <item class_id_reference="20" object_id="_162"> <id>184</id> <edge_type>2</edge_type> <source_obj>82</source_obj> <sink_obj>69</sink_obj> </item> <item class_id_reference="20" object_id="_163"> <id>185</id> <edge_type>2</edge_type> <source_obj>85</source_obj> <sink_obj>69</sink_obj> </item> <item class_id_reference="20" object_id="_164"> <id>186</id> <edge_type>1</edge_type> <source_obj>64</source_obj> <sink_obj>72</sink_obj> </item> <item class_id_reference="20" object_id="_165"> <id>187</id> <edge_type>1</edge_type> <source_obj>72</source_obj> <sink_obj>73</sink_obj> </item> <item class_id_reference="20" object_id="_166"> <id>188</id> <edge_type>1</edge_type> <source_obj>61</source_obj> <sink_obj>73</sink_obj> </item> <item class_id_reference="20" object_id="_167"> <id>189</id> <edge_type>1</edge_type> <source_obj>73</source_obj> <sink_obj>74</sink_obj> </item> <item class_id_reference="20" object_id="_168"> <id>190</id> <edge_type>1</edge_type> <source_obj>8</source_obj> <sink_obj>75</sink_obj> </item> <item class_id_reference="20" object_id="_169"> <id>191</id> <edge_type>1</edge_type> <source_obj>134</source_obj> <sink_obj>75</sink_obj> </item> <item class_id_reference="20" object_id="_170"> <id>192</id> <edge_type>1</edge_type> <source_obj>74</source_obj> <sink_obj>75</sink_obj> </item> <item class_id_reference="20" object_id="_171"> <id>193</id> <edge_type>1</edge_type> <source_obj>75</source_obj> <sink_obj>76</sink_obj> </item> <item class_id_reference="20" object_id="_172"> <id>194</id> <edge_type>1</edge_type> <source_obj>59</source_obj> <sink_obj>77</sink_obj> </item> <item class_id_reference="20" object_id="_173"> <id>195</id> <edge_type>1</edge_type> <source_obj>65</source_obj> <sink_obj>77</sink_obj> </item> <item class_id_reference="20" object_id="_174"> <id>196</id> <edge_type>1</edge_type> <source_obj>77</source_obj> <sink_obj>78</sink_obj> </item> <item class_id_reference="20" object_id="_175"> <id>197</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>79</sink_obj> </item> <item class_id_reference="20" object_id="_176"> <id>198</id> <edge_type>1</edge_type> <source_obj>134</source_obj> <sink_obj>79</sink_obj> </item> <item class_id_reference="20" object_id="_177"> <id>199</id> <edge_type>1</edge_type> <source_obj>78</source_obj> <sink_obj>79</sink_obj> </item> <item class_id_reference="20" object_id="_178"> <id>200</id> <edge_type>1</edge_type> <source_obj>76</source_obj> <sink_obj>80</sink_obj> </item> <item class_id_reference="20" object_id="_179"> <id>201</id> <edge_type>1</edge_type> <source_obj>79</source_obj> <sink_obj>80</sink_obj> </item> <item class_id_reference="20" object_id="_180"> <id>202</id> <edge_type>2</edge_type> <source_obj>70</source_obj> <sink_obj>81</sink_obj> </item> <item class_id_reference="20" object_id="_181"> <id>203</id> <edge_type>2</edge_type> <source_obj>55</source_obj> <sink_obj>84</sink_obj> </item> <item class_id_reference="20" object_id="_182"> <id>204</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>47</sink_obj> </item> <item class_id_reference="20" object_id="_183"> <id>257</id> <edge_type>2</edge_type> <source_obj>10</source_obj> <sink_obj>16</sink_obj> </item> <item class_id_reference="20" object_id="_184"> <id>258</id> <edge_type>2</edge_type> <source_obj>16</source_obj> <sink_obj>49</sink_obj> </item> <item class_id_reference="20" object_id="_185"> <id>259</id> <edge_type>2</edge_type> <source_obj>16</source_obj> <sink_obj>24</sink_obj> </item> <item class_id_reference="20" object_id="_186"> <id>260</id> <edge_type>2</edge_type> <source_obj>24</source_obj> <sink_obj>31</sink_obj> </item> <item class_id_reference="20" object_id="_187"> <id>261</id> <edge_type>2</edge_type> <source_obj>31</source_obj> <sink_obj>46</sink_obj> </item> <item class_id_reference="20" object_id="_188"> <id>262</id> <edge_type>2</edge_type> <source_obj>31</source_obj> <sink_obj>43</sink_obj> </item> <item class_id_reference="20" object_id="_189"> <id>263</id> <edge_type>2</edge_type> <source_obj>43</source_obj> <sink_obj>31</sink_obj> </item> <item class_id_reference="20" object_id="_190"> <id>264</id> <edge_type>2</edge_type> <source_obj>46</source_obj> <sink_obj>16</sink_obj> </item> <item class_id_reference="20" object_id="_191"> <id>265</id> <edge_type>2</edge_type> <source_obj>49</source_obj> <sink_obj>55</sink_obj> </item> <item class_id_reference="20" object_id="_192"> <id>266</id> <edge_type>2</edge_type> <source_obj>55</source_obj> <sink_obj>87</sink_obj> </item> <item class_id_reference="20" object_id="_193"> <id>267</id> <edge_type>2</edge_type> <source_obj>55</source_obj> <sink_obj>63</sink_obj> </item> <item class_id_reference="20" object_id="_194"> <id>268</id> <edge_type>2</edge_type> <source_obj>63</source_obj> <sink_obj>70</sink_obj> </item> <item class_id_reference="20" object_id="_195"> <id>269</id> <edge_type>2</edge_type> <source_obj>70</source_obj> <sink_obj>85</sink_obj> </item> <item class_id_reference="20" object_id="_196"> <id>270</id> <edge_type>2</edge_type> <source_obj>70</source_obj> <sink_obj>82</sink_obj> </item> <item class_id_reference="20" object_id="_197"> <id>271</id> <edge_type>2</edge_type> <source_obj>82</source_obj> <sink_obj>70</sink_obj> </item> <item class_id_reference="20" object_id="_198"> <id>272</id> <edge_type>2</edge_type> <source_obj>85</source_obj> <sink_obj>55</sink_obj> </item> </edges> </cdfg> <cdfg_regions class_id="21" tracking_level="0" version="0"> <count>12</count> <item_version>0</item_version> <item class_id="22" tracking_level="1" version="0" object_id="_199"> <mId>1</mId> <mTag>dct</mTag> <mType>0</mType> <sub_regions> <count>5</count> <item_version>0</item_version> <item>2</item> <item>3</item> <item>7</item> <item>8</item> <item>12</item> </sub_regions> <basic_blocks> <count>0</count> <item_version>0</item_version> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>3959</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> <item class_id_reference="22" object_id="_200"> <mId>2</mId> <mTag>Entry</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>10</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> <item class_id_reference="22" object_id="_201"> <mId>3</mId> <mTag>RD_Loop_Row</mTag> <mType>1</mType> <sub_regions> <count>3</count> <item_version>0</item_version> <item>4</item> <item>5</item> <item>6</item> </sub_regions> <basic_blocks> <count>0</count> <item_version>0</item_version> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>8</mMinTripCount> <mMaxTripCount>8</mMaxTripCount> <mMinLatency>144</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> <item class_id_reference="22" object_id="_202"> <mId>4</mId> <mTag>Region 1</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>16</item> <item>24</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> <item class_id_reference="22" object_id="_203"> <mId>5</mId> <mTag>RD_Loop_Col</mTag> <mType>1</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>31</item> <item>43</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>8</mMinTripCount> <mMaxTripCount>8</mMaxTripCount> <mMinLatency>16</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> <item class_id_reference="22" object_id="_204"> <mId>6</mId> <mTag>Region 2</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>46</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> <item class_id_reference="22" object_id="_205"> <mId>7</mId> <mTag>Region 3</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>49</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>3669</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> <item class_id_reference="22" object_id="_206"> <mId>8</mId> <mTag>WR_Loop_Row</mTag> <mType>1</mType> <sub_regions> <count>3</count> <item_version>0</item_version> <item>9</item> <item>10</item> <item>11</item> </sub_regions> <basic_blocks> <count>0</count> <item_version>0</item_version> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>8</mMinTripCount> <mMaxTripCount>8</mMaxTripCount> <mMinLatency>144</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> <item class_id_reference="22" object_id="_207"> <mId>9</mId> <mTag>Region 4</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>55</item> <item>63</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> <item class_id_reference="22" object_id="_208"> <mId>10</mId> <mTag>WR_Loop_Col</mTag> <mType>1</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>2</count> <item_version>0</item_version> <item>70</item> <item>82</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>8</mMinTripCount> <mMaxTripCount>8</mMaxTripCount> <mMinLatency>16</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> <item class_id_reference="22" object_id="_209"> <mId>11</mId> <mTag>Region 5</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>85</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> <item class_id_reference="22" object_id="_210"> <mId>12</mId> <mTag>Return</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>87</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>0</mMinLatency> <mMaxLatency>-1</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> </cdfg_regions> <fsm class_id="24" tracking_level="1" version="0" object_id="_211"> <states class_id="25" tracking_level="0" version="0"> <count>8</count> <item_version>0</item_version> <item class_id="26" tracking_level="1" version="0" object_id="_212"> <id>1</id> <operations class_id="27" tracking_level="0" version="0"> <count>6</count> <item_version>0</item_version> <item class_id="28" tracking_level="1" version="0" object_id="_213"> <id>4</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_214"> <id>5</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_215"> <id>6</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_216"> <id>7</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_217"> <id>8</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_218"> <id>9</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_219"> <id>2</id> <operations> <count>13</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_220"> <id>11</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_221"> <id>12</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_222"> <id>13</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_223"> <id>14</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_224"> <id>15</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_225"> <id>17</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_226"> <id>18</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_227"> <id>19</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_228"> <id>20</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_229"> <id>21</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_230"> <id>22</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_231"> <id>23</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_232"> <id>47</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_233"> <id>3</id> <operations> <count>14</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_234"> <id>25</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_235"> <id>26</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_236"> <id>27</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_237"> <id>28</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_238"> <id>29</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_239"> <id>30</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_240"> <id>33</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_241"> <id>34</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_242"> <id>35</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_243"> <id>36</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_244"> <id>37</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_245"> <id>38</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_246"> <id>44</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_247"> <id>45</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_248"> <id>4</id> <operations> <count>6</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_249"> <id>32</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_250"> <id>36</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_251"> <id>39</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_252"> <id>40</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_253"> <id>41</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_254"> <id>42</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_255"> <id>5</id> <operations> <count>2</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_256"> <id>47</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_257"> <id>48</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_258"> <id>6</id> <operations> <count>13</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_259"> <id>50</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_260"> <id>51</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_261"> <id>52</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_262"> <id>53</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_263"> <id>54</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_264"> <id>56</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_265"> <id>57</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_266"> <id>58</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_267"> <id>59</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_268"> <id>60</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_269"> <id>61</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_270"> <id>62</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_271"> <id>86</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_272"> <id>7</id> <operations> <count>14</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_273"> <id>64</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_274"> <id>65</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_275"> <id>66</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_276"> <id>67</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_277"> <id>68</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_278"> <id>69</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_279"> <id>72</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_280"> <id>73</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_281"> <id>74</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_282"> <id>75</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_283"> <id>76</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_284"> <id>77</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_285"> <id>83</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_286"> <id>84</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_287"> <id>8</id> <operations> <count>6</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_288"> <id>71</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_289"> <id>76</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_290"> <id>78</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_291"> <id>79</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_292"> <id>80</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_293"> <id>81</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> </states> <transitions class_id="29" tracking_level="0" version="0"> <count>11</count> <item_version>0</item_version> <item class_id="30" tracking_level="1" version="0" object_id="_294"> <inState>1</inState> <outState>2</outState> <condition class_id="31" tracking_level="0" version="0"> <id>25</id> <sop class_id="32" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="33" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_295"> <inState>2</inState> <outState>5</outState> <condition> <id>26</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item class_id="34" tracking_level="0" version="0"> <first class_id="35" tracking_level="0" version="0"> <first>12</first> <second>0</second> </first> <second>0</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_296"> <inState>2</inState> <outState>3</outState> <condition> <id>28</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>12</first> <second>0</second> </first> <second>1</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_297"> <inState>3</inState> <outState>4</outState> <condition> <id>29</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>27</first> <second>0</second> </first> <second>1</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_298"> <inState>4</inState> <outState>3</outState> <condition> <id>32</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_299"> <inState>3</inState> <outState>2</outState> <condition> <id>34</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>27</first> <second>0</second> </first> <second>0</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_300"> <inState>5</inState> <outState>6</outState> <condition> <id>37</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_301"> <inState>6</inState> <outState>7</outState> <condition> <id>39</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>51</first> <second>0</second> </first> <second>1</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_302"> <inState>7</inState> <outState>8</outState> <condition> <id>40</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>66</first> <second>0</second> </first> <second>1</second> </item> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_303"> <inState>8</inState> <outState>7</outState> <condition> <id>43</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_304"> <inState>7</inState> <outState>6</outState> <condition> <id>45</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>1</count> <item_version>0</item_version> <item> <first> <first>66</first> <second>0</second> </first> <second>0</second> </item> </item> </sop> </condition> </item> </transitions> </fsm> <res class_id="36" tracking_level="1" version="0" object_id="_305"> <dp_component_resource class_id="37" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="38" tracking_level="0" version="0"> <first>grp_dct_dct_2d_fu_148 (dct_dct_2d)</first> <second class_id="39" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="40" tracking_level="0" version="0"> <first>BRAM</first> <second>3</second> </item> <item> <first>DSP48E</first> <second>1</second> </item> <item> <first>FF</first> <second>203</second> </item> <item> <first>LUT</first> <second>267</second> </item> </second> </item> </dp_component_resource> <dp_expression_resource> <count>12</count> <item_version>0</item_version> <item> <first>c_1_fu_277_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>4</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>4</second> </item> </second> </item> <item> <first>c_fu_202_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>4</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>4</second> </item> </second> </item> <item> <first>exitcond1_i3_fu_231_p2 ( icmp ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>4</second> </item> <item> <first>(1P1)</first> <second>5</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>exitcond1_i_fu_156_p2 ( icmp ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>4</second> </item> <item> <first>(1P1)</first> <second>5</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>exitcond_i7_fu_271_p2 ( icmp ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>4</second> </item> <item> <first>(1P1)</first> <second>5</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>exitcond_i_fu_196_p2 ( icmp ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>4</second> </item> <item> <first>(1P1)</first> <second>5</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>2</second> </item> </second> </item> <item> <first>p_addr1_fu_222_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>8</second> </item> <item> <first>(1P1)</first> <second>8</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>8</second> </item> </second> </item> <item> <first>p_addr3_fu_287_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>8</second> </item> <item> <first>(1P1)</first> <second>8</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>8</second> </item> </second> </item> <item> <first>r_1_fu_237_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>4</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>4</second> </item> </second> </item> <item> <first>r_fu_162_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>4</second> </item> <item> <first>(1P1)</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>4</second> </item> </second> </item> <item> <first>tmp_5_i_fu_208_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>6</second> </item> <item> <first>(1P1)</first> <second>6</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>6</second> </item> </second> </item> <item> <first>tmp_9_i_fu_297_p2 ( + ) </first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0P0)</first> <second>6</second> </item> <item> <first>(1P1)</first> <second>6</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>6</second> </item> </second> </item> </dp_expression_resource> <dp_fifo_resource> <count>0</count> <item_version>0</item_version> </dp_fifo_resource> <dp_memory_resource> <count>2</count> <item_version>0</item_version> <item> <first>buf_2d_in_U</first> <second> <count>7</count> <item_version>0</item_version> <item> <first>(0Words)</first> <second>64</second> </item> <item> <first>(1Bits)</first> <second>16</second> </item> <item> <first>(2Banks)</first> <second>1</second> </item> <item> <first>(3W*Bits*Banks)</first> <second>1024</second> </item> <item> <first>BRAM</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>0</second> </item> </second> </item> <item> <first>buf_2d_out_U</first> <second> <count>7</count> <item_version>0</item_version> <item> <first>(0Words)</first> <second>64</second> </item> <item> <first>(1Bits)</first> <second>16</second> </item> <item> <first>(2Banks)</first> <second>1</second> </item> <item> <first>(3W*Bits*Banks)</first> <second>1024</second> </item> <item> <first>BRAM</first> <second>1</second> </item> <item> <first>FF</first> <second>0</second> </item> <item> <first>LUT</first> <second>0</second> </item> </second> </item> </dp_memory_resource> <dp_multiplexer_resource> <count>10</count> <item_version>0</item_version> <item> <first>ap_NS_fsm</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>9</second> </item> <item> <first>(1Bits)</first> <second>1</second> </item> <item> <first>(2Count)</first> <second>9</second> </item> <item> <first>LUT</first> <second>4</second> </item> </second> </item> <item> <first>buf_2d_in_address0</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>3</second> </item> <item> <first>(1Bits)</first> <second>6</second> </item> <item> <first>(2Count)</first> <second>18</second> </item> <item> <first>LUT</first> <second>6</second> </item> </second> </item> <item> <first>buf_2d_in_ce0</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>3</second> </item> <item> <first>(1Bits)</first> <second>1</second> </item> <item> <first>(2Count)</first> <second>3</second> </item> <item> <first>LUT</first> <second>1</second> </item> </second> </item> <item> <first>buf_2d_out_address0</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>3</second> </item> <item> <first>(1Bits)</first> <second>6</second> </item> <item> <first>(2Count)</first> <second>18</second> </item> <item> <first>LUT</first> <second>6</second> </item> </second> </item> <item> <first>buf_2d_out_ce0</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>3</second> </item> <item> <first>(1Bits)</first> <second>1</second> </item> <item> <first>(2Count)</first> <second>3</second> </item> <item> <first>LUT</first> <second>1</second> </item> </second> </item> <item> <first>buf_2d_out_we0</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>1</second> </item> <item> <first>(2Count)</first> <second>2</second> </item> <item> <first>LUT</first> <second>1</second> </item> </second> </item> <item> <first>c_i6_reg_137</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>4</second> </item> <item> <first>(2Count)</first> <second>8</second> </item> <item> <first>LUT</first> <second>4</second> </item> </second> </item> <item> <first>c_i_reg_115</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>4</second> </item> <item> <first>(2Count)</first> <second>8</second> </item> <item> <first>LUT</first> <second>4</second> </item> </second> </item> <item> <first>r_i2_reg_126</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>4</second> </item> <item> <first>(2Count)</first> <second>8</second> </item> <item> <first>LUT</first> <second>4</second> </item> </second> </item> <item> <first>r_i_reg_104</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>4</second> </item> <item> <first>(2Count)</first> <second>8</second> </item> <item> <first>LUT</first> <second>4</second> </item> </second> </item> </dp_multiplexer_resource> <dp_register_resource> <count>16</count> <item_version>0</item_version> <item> <first>ap_CS_fsm</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>8</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>8</second> </item> </second> </item> <item> <first>c_1_reg_363</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>4</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>4</second> </item> </second> </item> <item> <first>c_i6_reg_137</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>4</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>4</second> </item> </second> </item> <item> <first>c_i_reg_115</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>4</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>4</second> </item> </second> </item> <item> <first>c_reg_327</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>4</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>4</second> </item> </second> </item> <item> <first>grp_dct_dct_2d_fu_148_ap_start_ap_start_reg</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>1</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>1</second> </item> </second> </item> <item> <first>p_addr1_reg_337</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>8</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>8</second> </item> </second> </item> <item> <first>p_addr2_cast_reg_355</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>8</second> </item> <item> <first>(Consts)</first> <second>4</second> </item> <item> <first>FF</first> <second>4</second> </item> </second> </item> <item> <first>p_addr_cast_reg_319</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>8</second> </item> <item> <first>(Consts)</first> <second>4</second> </item> <item> <first>FF</first> <second>4</second> </item> </second> </item> <item> <first>r_1_reg_345</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>4</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>4</second> </item> </second> </item> <item> <first>r_i2_reg_126</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>4</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>4</second> </item> </second> </item> <item> <first>r_i_reg_104</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>4</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>4</second> </item> </second> </item> <item> <first>r_reg_309</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>4</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>4</second> </item> </second> </item> <item> <first>tmp_9_i_reg_373</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>6</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>6</second> </item> </second> </item> <item> <first>tmp_i5_reg_350</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>6</second> </item> <item> <first>(Consts)</first> <second>3</second> </item> <item> <first>FF</first> <second>3</second> </item> </second> </item> <item> <first>tmp_i_reg_314</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>6</second> </item> <item> <first>(Consts)</first> <second>3</second> </item> <item> <first>FF</first> <second>3</second> </item> </second> </item> </dp_register_resource> <dp_component_map class_id="41" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="42" tracking_level="0" version="0"> <first>grp_dct_dct_2d_fu_148 (dct_dct_2d)</first> <second> <count>1</count> <item_version>0</item_version> <item>47</item> </second> </item> </dp_component_map> <dp_expression_map> <count>12</count> <item_version>0</item_version> <item> <first>c_1_fu_277_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>68</item> </second> </item> <item> <first>c_fu_202_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>29</item> </second> </item> <item> <first>exitcond1_i3_fu_231_p2 ( icmp ) </first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>exitcond1_i_fu_156_p2 ( icmp ) </first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> <item> <first>exitcond_i7_fu_271_p2 ( icmp ) </first> <second> <count>1</count> <item_version>0</item_version> <item>66</item> </second> </item> <item> <first>exitcond_i_fu_196_p2 ( icmp ) </first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> <item> <first>p_addr1_fu_222_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> <item> <first>p_addr3_fu_287_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>73</item> </second> </item> <item> <first>r_1_fu_237_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>53</item> </second> </item> <item> <first>r_fu_162_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>tmp_5_i_fu_208_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>33</item> </second> </item> <item> <first>tmp_9_i_fu_297_p2 ( + ) </first> <second> <count>1</count> <item_version>0</item_version> <item>77</item> </second> </item> </dp_expression_map> <dp_fifo_map> <count>0</count> <item_version>0</item_version> </dp_fifo_map> <dp_memory_map> <count>2</count> <item_version>0</item_version> <item> <first>buf_2d_in_U</first> <second> <count>1</count> <item_version>0</item_version> <item>111</item> </second> </item> <item> <first>buf_2d_out_U</first> <second> <count>1</count> <item_version>0</item_version> <item>120</item> </second> </item> </dp_memory_map> </res> <node_label_latency class_id="43" tracking_level="0" version="0"> <count>56</count> <item_version>0</item_version> <item class_id="44" tracking_level="0" version="0"> <first>7</first> <second class_id="45" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>8</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>9</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>11</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>12</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>14</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>15</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>19</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>20</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>21</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>22</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>23</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>25</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>26</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>27</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>29</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>30</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>33</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>34</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>35</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>36</first> <second> <first>2</first> <second>1</second> </second> </item> <item> <first>37</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>38</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>39</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>40</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>41</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>42</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>45</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>47</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>48</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>50</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>51</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>53</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>54</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>58</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>59</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>60</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>61</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>62</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>64</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>65</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>66</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>68</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>69</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>72</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>73</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>74</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>75</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>76</first> <second> <first>4</first> <second>1</second> </second> </item> <item> <first>77</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>78</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>79</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>80</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>81</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>84</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>86</first> <second> <first>3</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="46" tracking_level="0" version="0"> <count>13</count> <item_version>0</item_version> <item class_id="47" tracking_level="0" version="0"> <first>10</first> <second class_id="48" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>16</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>24</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>31</first> <second> <first>2</first> <second>2</second> </second> </item> <item> <first>43</first> <second> <first>2</first> <second>3</second> </second> </item> <item> <first>46</first> <second> <first>2</first> <second>2</second> </second> </item> <item> <first>49</first> <second> <first>1</first> <second>2</second> </second> </item> <item> <first>55</first> <second> <first>3</first> <second>3</second> </second> </item> <item> <first>63</first> <second> <first>3</first> <second>3</second> </second> </item> <item> <first>70</first> <second> <first>4</first> <second>4</second> </second> </item> <item> <first>82</first> <second> <first>4</first> <second>5</second> </second> </item> <item> <first>85</first> <second> <first>4</first> <second>4</second> </second> </item> <item> <first>87</first> <second> <first>3</first> <second>3</second> </second> </item> </bblk_ent_exit> <regions class_id="49" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </regions> <dp_fu_nodes class_id="50" tracking_level="0" version="0"> <count>43</count> <item_version>0</item_version> <item class_id="51" tracking_level="0" version="0"> <first>48</first> <second> <count>1</count> <item_version>0</item_version> <item>7</item> </second> </item> <item> <first>52</first> <second> <count>1</count> <item_version>0</item_version> <item>8</item> </second> </item> <item> <first>56</first> <second> <count>1</count> <item_version>0</item_version> <item>35</item> </second> </item> <item> <first>63</first> <second> <count>2</count> <item_version>0</item_version> <item>36</item> <item>36</item> </second> </item> <item> <first>68</first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>74</first> <second> <count>1</count> <item_version>0</item_version> <item>41</item> </second> </item> <item> <first>80</first> <second> <count>1</count> <item_version>0</item_version> <item>75</item> </second> </item> <item> <first>86</first> <second> <count>2</count> <item_version>0</item_version> <item>76</item> <item>76</item> </second> </item> <item> <first>91</first> <second> <count>1</count> <item_version>0</item_version> <item>79</item> </second> </item> <item> <first>98</first> <second> <count>1</count> <item_version>0</item_version> <item>80</item> </second> </item> <item> <first>108</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>119</first> <second> <count>1</count> <item_version>0</item_version> <item>25</item> </second> </item> <item> <first>130</first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>141</first> <second> <count>1</count> <item_version>0</item_version> <item>64</item> </second> </item> <item> <first>148</first> <second> <count>2</count> <item_version>0</item_version> <item>47</item> <item>47</item> </second> </item> <item> <first>156</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> <item> <first>162</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>168</first> <second> <count>1</count> <item_version>0</item_version> <item>19</item> </second> </item> <item> <first>172</first> <second> <count>1</count> <item_version>0</item_version> <item>20</item> </second> </item> <item> <first>180</first> <second> <count>1</count> <item_version>0</item_version> <item>21</item> </second> </item> <item> <first>188</first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> <item> <first>192</first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> <item> <first>196</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> <item> <first>202</first> <second> <count>1</count> <item_version>0</item_version> <item>29</item> </second> </item> <item> <first>208</first> <second> <count>1</count> <item_version>0</item_version> <item>33</item> </second> </item> <item> <first>213</first> <second> <count>1</count> <item_version>0</item_version> <item>34</item> </second> </item> <item> <first>218</first> <second> <count>1</count> <item_version>0</item_version> <item>37</item> </second> </item> <item> <first>222</first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> <item> <first>227</first> <second> <count>1</count> <item_version>0</item_version> <item>39</item> </second> </item> <item> <first>231</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>237</first> <second> <count>1</count> <item_version>0</item_version> <item>53</item> </second> </item> <item> <first>243</first> <second> <count>1</count> <item_version>0</item_version> <item>58</item> </second> </item> <item> <first>247</first> <second> <count>1</count> <item_version>0</item_version> <item>59</item> </second> </item> <item> <first>255</first> <second> <count>1</count> <item_version>0</item_version> <item>60</item> </second> </item> <item> <first>263</first> <second> <count>1</count> <item_version>0</item_version> <item>61</item> </second> </item> <item> <first>267</first> <second> <count>1</count> <item_version>0</item_version> <item>65</item> </second> </item> <item> <first>271</first> <second> <count>1</count> <item_version>0</item_version> <item>66</item> </second> </item> <item> <first>277</first> <second> <count>1</count> <item_version>0</item_version> <item>68</item> </second> </item> <item> <first>283</first> <second> <count>1</count> <item_version>0</item_version> <item>72</item> </second> </item> <item> <first>287</first> <second> <count>1</count> <item_version>0</item_version> <item>73</item> </second> </item> <item> <first>292</first> <second> <count>1</count> <item_version>0</item_version> <item>74</item> </second> </item> <item> <first>297</first> <second> <count>1</count> <item_version>0</item_version> <item>77</item> </second> </item> <item> <first>302</first> <second> <count>1</count> <item_version>0</item_version> <item>78</item> </second> </item> </dp_fu_nodes> <dp_fu_nodes_expression class_id="53" tracking_level="0" version="0"> <count>38</count> <item_version>0</item_version> <item class_id="54" tracking_level="0" version="0"> <first>buf_2d_in_addr_gep_fu_68</first> <second> <count>1</count> <item_version>0</item_version> <item>40</item> </second> </item> <item> <first>buf_2d_in_alloca_fu_48</first> <second> <count>1</count> <item_version>0</item_version> <item>7</item> </second> </item> <item> <first>buf_2d_out_addr_gep_fu_80</first> <second> <count>1</count> <item_version>0</item_version> <item>75</item> </second> </item> <item> <first>buf_2d_out_alloca_fu_52</first> <second> <count>1</count> <item_version>0</item_version> <item>8</item> </second> </item> <item> <first>c_1_fu_277</first> <second> <count>1</count> <item_version>0</item_version> <item>68</item> </second> </item> <item> <first>c_fu_202</first> <second> <count>1</count> <item_version>0</item_version> <item>29</item> </second> </item> <item> <first>c_i6_cast2_fu_267</first> <second> <count>1</count> <item_version>0</item_version> <item>65</item> </second> </item> <item> <first>c_i6_phi_fu_141</first> <second> <count>1</count> <item_version>0</item_version> <item>64</item> </second> </item> <item> <first>c_i_cast6_fu_192</first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> <item> <first>c_i_phi_fu_119</first> <second> <count>1</count> <item_version>0</item_version> <item>25</item> </second> </item> <item> <first>exitcond1_i3_fu_231</first> <second> <count>1</count> <item_version>0</item_version> <item>51</item> </second> </item> <item> <first>exitcond1_i_fu_156</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> <item> <first>exitcond_i7_fu_271</first> <second> <count>1</count> <item_version>0</item_version> <item>66</item> </second> </item> <item> <first>exitcond_i_fu_196</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> <item> <first>input_addr_gep_fu_56</first> <second> <count>1</count> <item_version>0</item_version> <item>35</item> </second> </item> <item> <first>output_addr_gep_fu_91</first> <second> <count>1</count> <item_version>0</item_version> <item>79</item> </second> </item> <item> <first>p_addr1_fu_222</first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> <item> <first>p_addr2_cast_fu_263</first> <second> <count>1</count> <item_version>0</item_version> <item>61</item> </second> </item> <item> <first>p_addr3_fu_287</first> <second> <count>1</count> <item_version>0</item_version> <item>73</item> </second> </item> <item> <first>p_addr_cast_fu_188</first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> <item> <first>r_1_fu_237</first> <second> <count>1</count> <item_version>0</item_version> <item>53</item> </second> </item> <item> <first>r_fu_162</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>r_i2_phi_fu_130</first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>r_i_phi_fu_108</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>tmp_1_fu_180</first> <second> <count>1</count> <item_version>0</item_version> <item>21</item> </second> </item> <item> <first>tmp_2_fu_243</first> <second> <count>1</count> <item_version>0</item_version> <item>58</item> </second> </item> <item> <first>tmp_3_fu_255</first> <second> <count>1</count> <item_version>0</item_version> <item>60</item> </second> </item> <item> <first>tmp_3_i_fu_302</first> <second> <count>1</count> <item_version>0</item_version> <item>78</item> </second> </item> <item> <first>tmp_4_fu_227</first> <second> <count>1</count> <item_version>0</item_version> <item>39</item> </second> </item> <item> <first>tmp_5_fu_292</first> <second> <count>1</count> <item_version>0</item_version> <item>74</item> </second> </item> <item> <first>tmp_5_i_fu_208</first> <second> <count>1</count> <item_version>0</item_version> <item>33</item> </second> </item> <item> <first>tmp_6_i_fu_213</first> <second> <count>1</count> <item_version>0</item_version> <item>34</item> </second> </item> <item> <first>tmp_7_i_trn_cast_fu_218</first> <second> <count>1</count> <item_version>0</item_version> <item>37</item> </second> </item> <item> <first>tmp_8_i_trn_cast_fu_283</first> <second> <count>1</count> <item_version>0</item_version> <item>72</item> </second> </item> <item> <first>tmp_9_i_fu_297</first> <second> <count>1</count> <item_version>0</item_version> <item>77</item> </second> </item> <item> <first>tmp_fu_168</first> <second> <count>1</count> <item_version>0</item_version> <item>19</item> </second> </item> <item> <first>tmp_i5_fu_247</first> <second> <count>1</count> <item_version>0</item_version> <item>59</item> </second> </item> <item> <first>tmp_i_fu_172</first> <second> <count>1</count> <item_version>0</item_version> <item>20</item> </second> </item> </dp_fu_nodes_expression> <dp_fu_nodes_module> <count>1</count> <item_version>0</item_version> <item> <first>grp_dct_dct_2d_fu_148</first> <second> <count>2</count> <item_version>0</item_version> <item>47</item> <item>47</item> </second> </item> </dp_fu_nodes_module> <dp_fu_nodes_io> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_io> <return_ports> <count>0</count> <item_version>0</item_version> </return_ports> <dp_mem_port_nodes class_id="55" tracking_level="0" version="0"> <count>7</count> <item_version>0</item_version> <item class_id="56" tracking_level="0" version="0"> <first class_id="57" tracking_level="0" version="0"> <first>buf_2d_in</first> <second>0</second> </first> <second> <count>1</count> <item_version>0</item_version> <item>41</item> </second> </item> <item> <first> <first>buf_2d_in</first> <second>100</second> </first> <second> <count>1</count> <item_version>0</item_version> <item>47</item> </second> </item> <item> <first> <first>buf_2d_out</first> <second>0</second> </first> <second> <count>2</count> <item_version>0</item_version> <item>76</item> <item>76</item> </second> </item> <item> <first> <first>buf_2d_out</first> <second>100</second> </first> <second> <count>1</count> <item_version>0</item_version> <item>47</item> </second> </item> <item> <first> <first>dct_coeff_table</first> <second>100</second> </first> <second> <count>1</count> <item_version>0</item_version> <item>47</item> </second> </item> <item> <first> <first>input_r</first> <second>0</second> </first> <second> <count>2</count> <item_version>0</item_version> <item>36</item> <item>36</item> </second> </item> <item> <first> <first>output_r</first> <second>0</second> </first> <second> <count>1</count> <item_version>0</item_version> <item>80</item> </second> </item> </dp_mem_port_nodes> <dp_reg_nodes> <count>16</count> <item_version>0</item_version> <item> <first>104</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>115</first> <second> <count>1</count> <item_version>0</item_version> <item>25</item> </second> </item> <item> <first>126</first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>137</first> <second> <count>1</count> <item_version>0</item_version> <item>64</item> </second> </item> <item> <first>309</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>314</first> <second> <count>1</count> <item_version>0</item_version> <item>20</item> </second> </item> <item> <first>319</first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> <item> <first>327</first> <second> <count>1</count> <item_version>0</item_version> <item>29</item> </second> </item> <item> <first>332</first> <second> <count>1</count> <item_version>0</item_version> <item>35</item> </second> </item> <item> <first>337</first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> <item> <first>345</first> <second> <count>1</count> <item_version>0</item_version> <item>53</item> </second> </item> <item> <first>350</first> <second> <count>1</count> <item_version>0</item_version> <item>59</item> </second> </item> <item> <first>355</first> <second> <count>1</count> <item_version>0</item_version> <item>61</item> </second> </item> <item> <first>363</first> <second> <count>1</count> <item_version>0</item_version> <item>68</item> </second> </item> <item> <first>368</first> <second> <count>1</count> <item_version>0</item_version> <item>75</item> </second> </item> <item> <first>373</first> <second> <count>1</count> <item_version>0</item_version> <item>77</item> </second> </item> </dp_reg_nodes> <dp_regname_nodes> <count>16</count> <item_version>0</item_version> <item> <first>buf_2d_out_addr_reg_368</first> <second> <count>1</count> <item_version>0</item_version> <item>75</item> </second> </item> <item> <first>c_1_reg_363</first> <second> <count>1</count> <item_version>0</item_version> <item>68</item> </second> </item> <item> <first>c_i6_reg_137</first> <second> <count>1</count> <item_version>0</item_version> <item>64</item> </second> </item> <item> <first>c_i_reg_115</first> <second> <count>1</count> <item_version>0</item_version> <item>25</item> </second> </item> <item> <first>c_reg_327</first> <second> <count>1</count> <item_version>0</item_version> <item>29</item> </second> </item> <item> <first>input_addr_reg_332</first> <second> <count>1</count> <item_version>0</item_version> <item>35</item> </second> </item> <item> <first>p_addr1_reg_337</first> <second> <count>1</count> <item_version>0</item_version> <item>38</item> </second> </item> <item> <first>p_addr2_cast_reg_355</first> <second> <count>1</count> <item_version>0</item_version> <item>61</item> </second> </item> <item> <first>p_addr_cast_reg_319</first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> <item> <first>r_1_reg_345</first> <second> <count>1</count> <item_version>0</item_version> <item>53</item> </second> </item> <item> <first>r_i2_reg_126</first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>r_i_reg_104</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>r_reg_309</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>tmp_9_i_reg_373</first> <second> <count>1</count> <item_version>0</item_version> <item>77</item> </second> </item> <item> <first>tmp_i5_reg_350</first> <second> <count>1</count> <item_version>0</item_version> <item>59</item> </second> </item> <item> <first>tmp_i_reg_314</first> <second> <count>1</count> <item_version>0</item_version> <item>20</item> </second> </item> </dp_regname_nodes> <dp_reg_phi> <count>4</count> <item_version>0</item_version> <item> <first>104</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>115</first> <second> <count>1</count> <item_version>0</item_version> <item>25</item> </second> </item> <item> <first>126</first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>137</first> <second> <count>1</count> <item_version>0</item_version> <item>64</item> </second> </item> </dp_reg_phi> <dp_regname_phi> <count>4</count> <item_version>0</item_version> <item> <first>c_i6_reg_137</first> <second> <count>1</count> <item_version>0</item_version> <item>64</item> </second> </item> <item> <first>c_i_reg_115</first> <second> <count>1</count> <item_version>0</item_version> <item>25</item> </second> </item> <item> <first>r_i2_reg_126</first> <second> <count>1</count> <item_version>0</item_version> <item>50</item> </second> </item> <item> <first>r_i_reg_104</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> </dp_regname_phi> <dp_port_io_nodes class_id="58" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="59" tracking_level="0" version="0"> <first>input_r(p0)</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>load</first> <second> <count>2</count> <item_version>0</item_version> <item>36</item> <item>36</item> </second> </item> </second> </item> <item> <first>output_r(p0)</first> <second> <count>1</count> <item_version>0</item_version> <item> <first>store</first> <second> <count>1</count> <item_version>0</item_version> <item>80</item> </second> </item> </second> </item> </dp_port_io_nodes> <port2core class_id="60" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="61" tracking_level="0" version="0"> <first>1</first> <second>RAM</second> </item> <item> <first>2</first> <second>RAM</second> </item> </port2core> <node2core> <count>2</count> <item_version>0</item_version> <item> <first>7</first> <second>RAM</second> </item> <item> <first>8</first> <second>RAM</second> </item> </node2core> </syndb> </boost_serialization>
30.399657
94
0.427332
59f5cac4f8f2f09e10a295bac7b097b5f6c20935
9,102
adb
Ada
1A/S5/PIM/tps/tp7/test_vecteurs_creux.adb
MOUDDENEHamza/ENSEEIHT
a90b1dee0c8d18a9578153a357278d99405bb534
[ "Apache-2.0" ]
4
2020-05-02T12:32:32.000Z
2022-01-12T20:20:35.000Z
1A/S5/PIM/tps/tp7/test_vecteurs_creux.adb
MOUDDENEHamza/ENSEEIHT
a90b1dee0c8d18a9578153a357278d99405bb534
[ "Apache-2.0" ]
2
2021-01-14T20:03:26.000Z
2022-01-30T01:10:00.000Z
1A/S5/PIM/tps/tp7/test_vecteurs_creux.adb
MOUDDENEHamza/ENSEEIHT
a90b1dee0c8d18a9578153a357278d99405bb534
[ "Apache-2.0" ]
13
2020-11-11T21:28:11.000Z
2022-02-19T13:54:22.000Z
with Ada.Text_IO; use Ada.Text_IO; with Vecteurs_Creux; use Vecteurs_Creux; procedure Test_Vecteurs_Creux is procedure Initialiser (VC0, VC1, VC2 : out T_Vecteur_Creux) is begin -- VC0 est un vecteur nul Initialiser (VC0); -- VC1 est un vecteur à deux composante Initialiser (VC1); Modifier (VC1, 10, 4.0); Modifier (VC1, 3, -3.0); Initialiser (VC2); Modifier (VC2, 100, 2.0); Modifier (VC2, 3, 3.0); Modifier (VC2, 1, 2.0); -- Afficher les vecteurs Put ("VC0 = "); Afficher (VC0); New_Line; Put ("VC1 = "); Afficher (VC1); New_Line; Put ("VC2 = "); Afficher (VC2); New_Line; end; procedure Detruire (VC0, VC1, VC2 : in out T_Vecteur_Creux) is begin Detruire (VC0); Detruire (VC1); Detruire (VC2); end; procedure Tester_Nul is VC0, VC1, VC2: T_Vecteur_Creux; begin Initialiser (VC0, VC1, VC2); pragma Assert (Est_Nul (VC0)); pragma Assert (not Est_Nul (VC1)); pragma Assert (not Est_Nul (VC2)); Detruire (VC0, VC1, VC2); end Tester_Nul; procedure Tester_Norme2 is VC0, VC1, VC2: T_Vecteur_Creux; begin Initialiser (VC0, VC1, VC2); pragma Assert (0.0 = Norme2 (VC0)); pragma Assert (25.0 = Norme2 (VC1)); Detruire (VC0, VC1, VC2); end Tester_Norme2; type T_Fonction_Composante is access Function (VC : in T_Vecteur_Creux ; Indice : in Integer) return Float; --// Un pointeur sur un sous-programme permet de manipuler un --// sous-programme comme une donnée. Composante : constant T_Fonction_Composante := Composante_Recursif'Access; --// Composante est donc une constante qui pointe sur le sous-programme --// Composante_Recursif. procedure Tester_Composante(La_Composante : T_Fonction_Composante) is --// Remarque : On aurait pu arriver au même résultat en définissant un --// sous-programme générique. --// Voir Tester_Sont_Egaux pour une version générique. VC0, VC1, VC2: T_Vecteur_Creux; begin Initialiser (VC0, VC1, VC2); pragma Assert ( 0.0 = La_Composante (VC0, 1)); pragma Assert ( 0.0 = La_Composante (VC1, 1)); pragma Assert (-3.0 = La_Composante (VC1, 3)); pragma Assert ( 0.0 = La_Composante (VC1, 4)); pragma Assert ( 0.0 = La_Composante (VC1, 9)); pragma Assert ( 4.0 = La_Composante (VC1, 10)); pragma Assert ( 0.0 = La_Composante (VC1, 11)); Detruire (VC0, VC1, VC2); end Tester_Composante; procedure Tester_Modifier is VC0, VC1, VC2: T_Vecteur_Creux; begin Initialiser (VC0, VC1, VC2); pragma Assert (2 = Nombre_Composantes_Non_Nulles (VC1)); -- Changer des composantes non nulles -- * en première position Modifier (VC1, 3, 3.0); pragma Assert (3.0 = Composante (VC1, 3)); pragma Assert (2 = Nombre_Composantes_Non_Nulles (VC1)); -- * après la première Modifier (VC1, 10, 15.0); pragma Assert (15.0 = Composante (VC1, 10)); pragma Assert (2 = Nombre_Composantes_Non_Nulles (VC1)); -- Ajouter au début Modifier (VC1, 1, 1.5); pragma Assert (1.5 = Composante (VC1, 1)); pragma Assert (3 = Nombre_Composantes_Non_Nulles (VC1)); -- Ajouter au milieu Modifier (VC1, 7, 7.5); pragma Assert (7.5 = Composante (VC1, 7)); pragma Assert (4 = Nombre_Composantes_Non_Nulles (VC1)); -- Ajouter à la fin. Modifier (VC1, 111, 0.5); pragma Assert (0.5 = Composante (VC1, 111)); pragma Assert (5 = Nombre_Composantes_Non_Nulles (VC1)); -- Mettre à 0.0 une composante existante -- * Au milieu Modifier (VC1, 10, 0.0); pragma Assert (0.0 = composante (VC1, 10)); pragma Assert (4 = Nombre_Composantes_Non_Nulles (VC1)); -- * À la fin Modifier (VC1, 111, 0.0); pragma Assert (0.0 = composante (VC1, 111)); pragma Assert (3 = Nombre_Composantes_Non_Nulles (VC1)); -- * Au début Modifier (VC1, 1, 0.0); pragma Assert (0.0 = composante (VC1, 1)); pragma Assert (2 = Nombre_Composantes_Non_Nulles (VC1)); -- Mettre à 0.0 une composante déjà nulle Modifier (VC1, 6, 0.0); pragma Assert (2 = Nombre_Composantes_Non_Nulles (VC1)); Modifier (VC1, 2, 0.0); pragma Assert (2 = Nombre_Composantes_Non_Nulles (VC1)); Modifier (VC1, 56, 0.0); pragma Assert (2 = Nombre_Composantes_Non_Nulles (VC1)); -- Supprimer toutes les composantes Modifier (VC1, 7, 0.0); pragma Assert (1 = Nombre_Composantes_Non_Nulles (VC1)); Modifier (VC1, 3, 0.0); pragma Assert (0 = Nombre_Composantes_Non_Nulles (VC1)); pragma Assert (Est_Nul (VC1)); Detruire (VC0, VC1, VC2); end Tester_Modifier; generic with function Egaux (Vecteur1, Vecteur2 : in T_Vecteur_Creux) return Boolean; procedure Tester_Sont_Egaux; procedure Tester_Sont_Egaux is VC0, VC1, VC2, VC3: T_Vecteur_Creux; begin Initialiser (VC0, VC1, VC2); pragma Assert (Egaux (VC0, VC0)); pragma Assert (Egaux (VC1, VC1)); pragma Assert (Egaux (VC2, VC2)); pragma Assert (not Egaux (VC0, VC1)); pragma Assert (not Egaux (VC0, VC2)); pragma Assert (not Egaux (VC1, VC2)); pragma Assert (not Egaux (VC1, VC0)); pragma Assert (not Egaux (VC2, VC0)); pragma Assert (not Egaux (VC2, VC1)); -- VC3 avec les mêmes composantes que VC1 Initialiser (VC3); Modifier (VC3, 10, 4.0); Modifier (VC3, 3, -3.0); pragma Assert (Egaux (VC1, VC3)); pragma Assert (Egaux (VC3, VC1)); Detruire (VC0, VC1, VC2); Detruire (VC3); end Tester_Sont_Egaux; --// Remarque : si on instancie les deux sous-programmes suivant juste --// avant l'implantation de Tester_Sont_Egaux ci-dessus, on n'a pas --// d'erreur de compilation mais une erreur à l'exécution. procedure Tester_Sont_Egaux_Iteratif is new Tester_Sont_Egaux (Sont_Egaux_Iteratif); procedure Tester_Sont_Egaux_Recursif is new Tester_Sont_Egaux (Sont_Egaux_Recursif); procedure Tester_Produit_Scalaire is VC0, VC1, VC2, VC3: T_Vecteur_Creux; begin Initialiser (VC0, VC1, VC2); pragma Assert (0.0 = Produit_Scalaire (VC0, VC1)); pragma Assert (0.0 = Produit_Scalaire (VC0, VC2)); pragma Assert (0.0 = Produit_Scalaire (VC1, VC0)); pragma Assert (-9.0 = Produit_Scalaire (VC1, VC2)); pragma Assert (25.0 = Produit_Scalaire (VC1, VC1)); Initialiser (VC3); Modifier (VC3, 150, 5.0); Modifier (VC3, 10, 4.0); Modifier (VC3, 3, 3.0); Modifier (VC3, 2, 2.0); Modifier (VC3, 1, 1.0); pragma Assert (11.0 = Produit_Scalaire (VC2, VC3)); pragma Assert (11.0 = Produit_Scalaire (VC3, VC2)); pragma Assert (7.0 = Produit_Scalaire (VC1, VC3)); pragma Assert (7.0 = Produit_Scalaire (VC3, VC1)); Detruire (VC0, VC1, VC2); Detruire (VC3); end Tester_Produit_Scalaire; procedure Tester_Additionner_Partage is VC0, VC1: T_Vecteur_Creux; begin -- Construire VC0 Initialiser (VC0); for I in 1..5 loop Modifier (VC0, I, Float(I)); end loop; -- Construire VC1 Initialiser (VC1); for I in 4..15 loop Modifier (VC1, I, Float(I)); end loop; -- Additionner Additionner (VC0, VC1); -- Vérifier qu'il n'y a pas de partage entre cellules de VC0 et VC1 Modifier (VC1, 10, 111.0); pragma Assert (111.0 = Composante (VC1, 10)); pragma Assert (10.0 = Composante (VC0, 10)); Detruire (VC0); Detruire (VC1); end Tester_Additionner_Partage; procedure Tester_Additionner is VC0, VC1, VC2: T_Vecteur_Creux; begin Initialiser (VC0, VC1, VC2); Additionner (VC0, VC1); pragma Assert (Sont_Egaux_Recursif (VC0, VC1)); pragma Assert (2 = Nombre_Composantes_Non_Nulles (VC0)); pragma Assert (-3.0 = Composante (VC0, 3)); pragma Assert ( 4.0 = Composante (VC0, 10)); Additionner (VC0, VC2); pragma Assert (3 = Nombre_Composantes_Non_Nulles (VC0)); pragma Assert (2.0 = Composante (VC0, 1)); pragma Assert (0.0 = Composante (VC0, 3)); pragma Assert (4.0 = Composante (VC0, 10)); pragma Assert (2.0 = Composante (VC0, 100)); Additionner (VC2, VC1); pragma Assert (Sont_Egaux_Recursif (VC0, VC2)); Detruire (VC0, VC1, VC2); end Tester_Additionner; begin New_Line; Put_Line("*************************** Début ****************************"); New_Line; -- Tester la fonction Est_Null. Tester_Nul; Put_line("Fonction Est_Nul testé avec succès."); --Tester_Norme2; -- Tester la fonction Composante_Recursif. Tester_Composante (Composante_Recursif'Access); Put_line("Fonction Composante_Recursif testé avec succès."); -- Tester la fonction Composante_Iteratif. Tester_Composante (Composante_Iteratif'Access); Put_line("Fonction Composante_Iteratif testé avec succès."); -- Tester la fonction Composante_Iteratif. Tester_Modifier; Put_line("Fonction Tester_Modifier testé avec succès."); -- Tester la fonction Sont_Egaux_Recursif. Tester_Sont_Egaux_Recursif; Put_line("Fonction Sont_Egaux_Recursif testé avec succès."); -- Tester la fonction Sont_Egaux_Iteratif. Tester_Sont_Egaux_Iteratif; Put_line("Fonction Sont_Egaux_Iteratif testé avec succès."); --Tester_Produit_Scalaire; --Tester_Additionner_Partage; -- Tester la fonction Sont_Egaux_Iteratif. Tester_Additionner; Put_line("Fonction Additionner testé avec succès."); New_Line; Put_Line("***************************** Fin ****************************"); end Test_Vecteurs_Creux;
27.089286
80
0.682268
2950135d162a48c6c5eae3b91f4f96396e4aea73
5,664
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c83027c.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c83027c.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c83027c.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- C83027C.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- OBJECTIVE: -- CHECK THAT A DECLARATION WITHIN THE DISCRIMINANT PART OF A -- PRIVATE TYPE DECLARATION, AN INCOMPLETE TYPE DECLARATION, AND A -- GENERIC FORMAL TYPE DECLARATION HIDES AN OUTER DECLARATION OF A -- HOMOGRAPH. ALSO, CHECK THAT THE OUTER DECLARATION IS DIRECTLY -- VISIBLE IN BOTH DECLARATIVE REGIONS BEFORE THE DECLARATION OF THE -- INNER HOMOGRAPH AND THE OUTER DECLARATION IS VISIBLE BY SELECTION -- AFTER THE INNER HOMOGRAPH DECLARATION. -- HISTORY: -- BCB 09/06/88 CREATED ORIGINAL TEST. WITH REPORT; USE REPORT; PROCEDURE C83027C IS GENERIC TYPE T IS PRIVATE; X : T; FUNCTION GEN_FUN RETURN T; FUNCTION GEN_FUN RETURN T IS BEGIN RETURN X; END GEN_FUN; BEGIN TEST ("C83027C", "CHECK THAT A DECLARATION IN THE DISCRIMINANT " & "PART OF A PRIVATE TYPE DECLARATION, AN " & "INCOMPLETE TYPE DECLARATION, AND A GENERIC " & "FORMAL TYPE DECLARATION HIDES AN OUTER " & "DECLARATION OF A HOMOGRAPH"); ONE: DECLARE A : INTEGER := IDENT_INT(2); D : INTEGER := IDENT_INT(2); G : INTEGER := IDENT_INT(2); H : INTEGER := G; TYPE REC (Z : INTEGER) IS RECORD NULL; END RECORD; GENERIC TYPE INNER3 (G : INTEGER) IS PRIVATE; PACKAGE P_ONE IS TYPE INNER (X : INTEGER := A; A : INTEGER := IDENT_INT(3); C : INTEGER := ONE.A) IS PRIVATE; TYPE INNER2 (Y : INTEGER := D; D : INTEGER := IDENT_INT(3); F : INTEGER := ONE.D); TYPE INNER2 (Y : INTEGER := D; D : INTEGER := IDENT_INT(3); F : INTEGER := ONE.D) IS RECORD E : INTEGER := D; END RECORD; PRIVATE TYPE INNER (X : INTEGER := A; A : INTEGER := IDENT_INT(3); C : INTEGER := ONE.A) IS RECORD B : INTEGER := A; END RECORD; END P_ONE; PACKAGE BODY P_ONE IS RECVAR : INNER; RECVAR2 : INNER2; RECVAR3 : INNER3(3); BEGIN IF RECVAR.A /= IDENT_INT(3) THEN FAILED ("INCORRECT VALUE FOR INNER HOMOGRAPH - 1"); END IF; IF A /= IDENT_INT(2) THEN FAILED ("INCORRECT VALUE FOR OUTER HOMOGRAPH - 2"); END IF; IF RECVAR.B /= IDENT_INT(3) THEN FAILED ("INCORRECT VALUE FOR INNER VARIABLE - 3"); END IF; IF RECVAR.C /= IDENT_INT(2) THEN FAILED ("INCORRECT VALUE FOR INNER VARIABLE - 4"); END IF; IF RECVAR.X /= IDENT_INT(2) THEN FAILED ("INCORRECT VALUE FOR INNER VARIABLE - 5"); END IF; IF RECVAR2.D /= IDENT_INT(3) THEN FAILED ("INCORRECT VALUE FOR INNER HOMOGRAPH - 6"); END IF; IF D /= IDENT_INT(2) THEN FAILED ("INCORRECT VALUE FOR OUTER HOMOGRAPH - 7"); END IF; IF RECVAR2.E /= IDENT_INT(3) THEN FAILED ("INCORRECT VALUE FOR INNER VARIABLE - 8"); END IF; IF RECVAR2.F /= IDENT_INT(2) THEN FAILED ("INCORRECT VALUE FOR INNER VARIABLE - 9"); END IF; IF RECVAR2.Y /= IDENT_INT(2) THEN FAILED ("INCORRECT VALUE FOR INNER VARIABLE - 10"); END IF; IF RECVAR3.G /= IDENT_INT(3) THEN FAILED ("INCORRECT VALUE FOR INNER HOMOGRAPH - 11"); END IF; IF G /= IDENT_INT(2) THEN FAILED ("INCORRECT VALUE FOR OUTER HOMOGRAPH - 12"); END IF; IF H /= IDENT_INT(2) THEN FAILED ("INCORRECT VALUE FOR OUTER VARIABLE - 13"); END IF; END P_ONE; PACKAGE NEW_P_ONE IS NEW P_ONE (REC); BEGIN -- ONE NULL; END ONE; RESULT; END C83027C;
35.848101
79
0.520657
3189227ee130e05135b89c4c0ec02af450a93b4b
3,453
ads
Ada
source/xml/sax/xml-sax-string_input_sources.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/xml/sax/xml-sax-string_input_sources.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/xml/sax/xml-sax-string_input_sources.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- XML Processor -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2014, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with XML.SAX.Input_Sources.Strings; package XML.SAX.String_Input_Sources renames XML.SAX.Input_Sources.Strings;
73.468085
78
0.400521
29943dd45c5da4a7b45ab16845a79e86ef598a5b
9,033
adb
Ada
ADL/drivers/stm32h743/stm32-opamp.adb
JCGobbi/Nucleo-STM32H743ZI
bb0b5a66e9ac8b3dbe381f9909df5ed5d77dad1c
[ "BSD-3-Clause" ]
null
null
null
ADL/drivers/stm32h743/stm32-opamp.adb
JCGobbi/Nucleo-STM32H743ZI
bb0b5a66e9ac8b3dbe381f9909df5ed5d77dad1c
[ "BSD-3-Clause" ]
null
null
null
ADL/drivers/stm32h743/stm32-opamp.adb
JCGobbi/Nucleo-STM32H743ZI
bb0b5a66e9ac8b3dbe381f9909df5ed5d77dad1c
[ "BSD-3-Clause" ]
null
null
null
with Ada.Real_Time; package body STM32.OPAMP is ------------ -- Enable -- ------------ procedure Enable (This : in out Operational_Amplifier) is use Ada.Real_Time; begin This.CSR.OPAEN := True; -- Delay 4 us for OPAMP startup time. See DS12110 Rev 8 chapter 7.3.27 -- Operational amplifier characteristics. delay until Clock + Microseconds (4); end Enable; ------------- -- Disable -- ------------- procedure Disable (This : in out Operational_Amplifier) is begin This.CSR.OPAEN := False; end Disable; ------------- -- Enabled -- ------------- function Enabled (This : Operational_Amplifier) return Boolean is begin return This.CSR.OPAEN; end Enabled; ----------------------- -- Set_NI_Input_Mode -- ----------------------- procedure Set_NI_Input_Mode (This : in out Operational_Amplifier; Input : NI_Input_Mode) is begin This.CSR.FORCE_VP := Input = Calibration_Mode; end Set_NI_Input_Mode; ----------------------- -- Get_NI_Input_Mode -- ----------------------- function Get_NI_Input_Mode (This : Operational_Amplifier) return NI_Input_Mode is begin return NI_Input_Mode'Val (Boolean'Pos (This.CSR.FORCE_VP)); end Get_NI_Input_Mode; ----------------------- -- Set_NI_Input_Port -- ----------------------- procedure Set_NI_Input_Port (This : in out Operational_Amplifier; Input : NI_Input_Port) is begin This.CSR.VP_SEL := Input'Enum_Rep; end Set_NI_Input_Port; ----------------------- -- Get_NI_Input_Port -- ----------------------- function Get_NI_Input_Port (This : Operational_Amplifier) return NI_Input_Port is begin return NI_Input_Port'Val (This.CSR.VP_SEL); end Get_NI_Input_Port; ---------------------- -- Set_I_Input_Port -- ---------------------- procedure Set_I_Input_Port (This : in out Operational_Amplifier; Input : I_Input_Port) is begin This.CSR.VM_SEL := Input'Enum_Rep; end Set_I_Input_Port; ---------------------- -- Get_I_Input_Port -- ---------------------- function Get_I_Input_Port (This : Operational_Amplifier) return I_Input_Port is begin return I_Input_Port'Val (This.CSR.VM_SEL); end Get_I_Input_Port; ----------------------- -- Set_PGA_Mode_Gain -- ----------------------- procedure Set_PGA_Mode_Gain (This : in out Operational_Amplifier; Input : PGA_Mode_Gain) is begin This.CSR.PGA_GAIN := Input'Enum_Rep; end Set_PGA_Mode_Gain; ----------------------- -- Get_PGA_Mode_Gain -- ----------------------- function Get_PGA_Mode_Gain (This : Operational_Amplifier) return PGA_Mode_Gain is begin return PGA_Mode_Gain'Val (This.CSR.PGA_GAIN); end Get_PGA_Mode_Gain; -------------------- -- Set_Speed_Mode -- -------------------- procedure Set_Speed_Mode (This : in out Operational_Amplifier; Input : Speed_Mode) is begin This.CSR.OPAHSM := Input = HighSpeed_Mode; end Set_Speed_Mode; --------------------- -- Get_Speed_Mode -- --------------------- function Get_Speed_Mode (This : Operational_Amplifier) return Speed_Mode is begin return Speed_Mode'Val (Boolean'Pos (This.CSR.OPAHSM)); end Get_Speed_Mode; --------------------- -- Configure_Opamp -- --------------------- procedure Configure_Opamp (This : in out Operational_Amplifier; Param : Init_Parameters) is begin This.CSR := (VM_SEL => Param.Input_Minus'Enum_Rep, VP_SEL => Param.Input_Plus'Enum_Rep, PGA_GAIN => Param.PGA_Mode'Enum_Rep, OPAHSM => Boolean'Val (Param.Power_Mode'Enum_Rep), others => <>); end Configure_Opamp; ----------------------- -- Set_User_Trimming -- ----------------------- procedure Set_User_Trimming (This : in out Operational_Amplifier; Enabled : Boolean) is begin This.CSR.USERTRIM := Enabled; end Set_User_Trimming; ------------------------ -- Get_User_Trimming -- ------------------------ function Get_User_Trimming (This : Operational_Amplifier) return Boolean is begin return This.CSR.USERTRIM; end Get_User_Trimming; ------------------------- -- Set_Offset_Trimming -- ------------------------- procedure Set_Offset_Trimming (This : in out Operational_Amplifier; Pair : Differential_Pair; Input : UInt5) is begin if This.CSR.OPAHSM then case Pair is when NMOS => This.HSOTR.TRIMHSOFFSETN := Input; when PMOS => This.HSOTR.TRIMHSOFFSETP := Input; end case; else case Pair is when NMOS => This.OTR.TRIMOFFSETN := Input; when PMOS => This.OTR.TRIMOFFSETP := Input; end case; end if; end Set_Offset_Trimming; -------------------------- -- Get_Offset_Trimming -- -------------------------- function Get_Offset_Trimming (This : Operational_Amplifier; Pair : Differential_Pair) return UInt5 is begin if This.CSR.OPAHSM then case Pair is when NMOS => return This.HSOTR.TRIMHSOFFSETN; when PMOS => return This.HSOTR.TRIMHSOFFSETP; end case; else case Pair is when NMOS => return This.OTR.TRIMOFFSETN; when PMOS => return This.OTR.TRIMOFFSETP; end case; end if; end Get_Offset_Trimming; -------------------------- -- Set_Calibration_Mode -- -------------------------- procedure Set_Calibration_Mode (This : in out Operational_Amplifier; Enabled : Boolean) is begin This.CSR.CALON := Enabled; end Set_Calibration_Mode; -------------------------- -- Get_Calibration_Mode -- -------------------------- function Get_Calibration_Mode (This : Operational_Amplifier) return Boolean is begin return This.CSR.CALON; end Get_Calibration_Mode; --------------------------- -- Set_Calibration_Value -- --------------------------- procedure Set_Calibration_Value (This : in out Operational_Amplifier; Input : Calibration_Value) is begin This.CSR.CALSEL := Input'Enum_Rep; end Set_Calibration_Value; --------------------------- -- Get_Calibration_Value -- --------------------------- function Get_Calibration_Value (This : Operational_Amplifier) return Calibration_Value is begin return Calibration_Value'Val (This.CSR.CALSEL); end Get_Calibration_Value; --------------- -- Calibrate -- --------------- procedure Calibrate (This : in out Operational_Amplifier) is use Ada.Real_Time; Trimoffset : UInt5 := 0; begin -- 1. Enable OPAMP by setting the OPAMPxEN bit. if not Enabled (This) then Enable (This); end if; -- 2. Enable the user offset trimming by setting the USERTRIM bit. Set_User_Trimming (This, Enabled => True); -- 3. Connect VM and VP to the internal reference voltage by setting -- the CALON bit. Set_Calibration_Mode (This, Enabled => True); -- 4. Set CALSEL to 11 (OPAMP internal reference = 0.9 x VDDA) for NMOS, -- Set CALSEL to 01 (OPAMP internal reference = 0.1 x VDDA) for PMOS. for Pair in Differential_Pair'Range loop if Pair = NMOS then Set_Calibration_Value (This, Input => VREFOPAMP_Is_90_VDDA); else Set_Calibration_Value (This, Input => VREFOPAMP_Is_10_VDDA); end if; -- 5. In a loop, increment the TRIMOFFSETN (for NMOS) or TRIMOFFSETP -- (for PMOS) value. To exit from the loop, the OUTCAL bit must be -- reset (non-inverting < inverting). -- In this case, the TRIMOFFSETN value must be stored. Set_Offset_Trimming (This, Pair => Pair, Input => Trimoffset); -- Wait the OFFTRIMmax delay timing specified < 1 ms. delay until Clock + Milliseconds (1); while Get_Output_Status_Flag (This) = NI_Greater_Then_I loop Trimoffset := Trimoffset + 1; Set_Offset_Trimming (This, Pair => Pair, Input => Trimoffset); -- Wait the OFFTRIMmax delay timing specified < 1 ms. delay until Clock + Milliseconds (1); end loop; end loop; Set_User_Trimming (This, Enabled => False); Set_Calibration_Mode (This, Enabled => False); end Calibrate; ----------------------------- -- Get_Output_Status_Flag -- ----------------------------- function Get_Output_Status_Flag (This : Operational_Amplifier) return Output_Status_Flag is begin return Output_Status_Flag'Val (Boolean'Pos (This.CSR.CALOUT)); end Get_Output_Status_Flag; end STM32.OPAMP;
27.207831
79
0.558397
599e4b4083edd4693f5c5871534a5c8a6b5db1ee
2,832
ads
Ada
src/construct_conversion_array.ads
joffreyhuguet/curve25519-spark2014
0cfdcd54ba112b135050391a8de260ee7a4ba6c6
[ "BSD-3-Clause" ]
4
2019-02-25T11:02:34.000Z
2019-08-08T11:54:04.000Z
src/construct_conversion_array.ads
joffreyhuguet/curve25519-spark2014
0cfdcd54ba112b135050391a8de260ee7a4ba6c6
[ "BSD-3-Clause" ]
null
null
null
src/construct_conversion_array.ads
joffreyhuguet/curve25519-spark2014
0cfdcd54ba112b135050391a8de260ee7a4ba6c6
[ "BSD-3-Clause" ]
null
null
null
with Big_Integers; use Big_Integers; with Types ; use Types; package Construct_Conversion_Array with SPARK_Mode, Ghost is function Property (Conversion_Array : Conversion_Array_Type; J, K : Index_Type) return Boolean is (if J mod 2 = 1 and then K mod 2 = 1 then Conversion_Array (J + K) * (+2) = Conversion_Array (J) * Conversion_Array (K) else Conversion_Array (J + K) = Conversion_Array (J) * Conversion_Array (K)); -- The conversion array has a property that helps to prove -- the product function. This function verifies the property -- at index J + K. -------------------------- -- Functions and lemmas -- -------------------------- function Two_Power (Expon : Natural) return Big_Integer is ((+2) ** Expon); -- Returns a big integer equal to 2 to the power Expon. procedure Two_Power_Lemma (A, B : Natural) with Pre => A <= Natural'Last - B, Post => Two_Power (A + B) = Two_Power (A) * Two_Power (B); procedure Two_Power_Lemma (A, B : Natural) is null; -- Basic property of exponentiation used in proof. function Exposant (J : Product_Index_Type) return Natural is (Natural (J) / 2 * 51 + (if J mod 2 = 1 then 26 else 0)) with Post => Exposant'Result <= Natural (J) * 51; -- Returns the exposant of 2 at J index of conversion array. -- (i.e Conversion_Array (J) = Two_Power (Exposant (J))) procedure Exposant_Lemma (J, K : Index_Type) with Contract_Cases => (J mod 2 = 1 and then K mod 2 = 1 => Exposant (J + K) + 1 = Exposant (J) + Exposant (K), others => Exposant (J + K) = Exposant (J) + Exposant (K)); procedure Exposant_Lemma (J, K : Index_Type) is null; -- Specificity of Exposant function, that helps to prove -- the property. ---------------------------------------------------------------- -- Computation and proof of Conversion array and its property -- ---------------------------------------------------------------- function Conversion_Array return Conversion_Array_Type with Post => (for all J in Index_Type => (for all K in Index_Type => Property (Conversion_Array'Result, J, K))); -- Computes the conversion array procedure Prove_Property (Conversion_Array : Conversion_Array_Type) with Pre => (for all J in Product_Index_Type => Conversion_Array (J) = Two_Power (Exposant (J))), Post => (for all L in Index_Type => (for all M in Index_Type => Property (Conversion_Array, L, M))); -- Helps to prove the property for all indexes of -- Conversion_Array. Preconditions states that -- the input array has the right content. end Construct_Conversion_Array;
40.457143
97
0.588277
1d24ca227f39ae575631ed9b76179029c9c854f5
20,808
adb
Ada
gcc-gcc-7_3_0-release/gcc/ada/sfn_scan.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/ada/sfn_scan.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/ada/sfn_scan.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S F N _ S C A N -- -- -- -- B o d y -- -- -- -- Copyright (C) 2000-2010, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ with Ada.Exceptions; use Ada.Exceptions; package body SFN_Scan is use ASCII; -- Allow easy access to control character definitions EOF : constant Character := ASCII.SUB; -- The character SUB (16#1A#) is used in DOS-derived systems, such as -- Windows to signal the end of a text file. If this character appears as -- the last character of a file scanned by a call to Scan_SFN_Pragmas, then -- it is ignored, otherwise it is treated as an illegal character. type String_Ptr is access String; S : String_Ptr; -- Points to the gnat.adc input file P : Natural; -- Subscript of next character to process in S Line_Num : Natural; -- Current line number Start_Of_Line : Natural; -- Subscript of first character at start of current line ---------------------- -- Local Procedures -- ---------------------- function Acquire_Integer return Natural; -- This function skips white space, and then scans and returns -- an unsigned integer. Raises Error if no integer is present -- or if the integer is greater than 999. function Acquire_String (B : Natural; E : Natural) return String; -- This function takes a string scanned out by Scan_String, strips -- the enclosing quote characters and any internal doubled quote -- characters, and returns the result as a String. The arguments -- B and E are as returned from a call to Scan_String. The lower -- bound of the string returned is always 1. function Acquire_Unit_Name return String; -- Skips white space, and then scans and returns a unit name. The -- unit name is cased exactly as it appears in the source file. -- The terminating character must be white space, or a comma or -- a right parenthesis or end of file. function At_EOF return Boolean; pragma Inline (At_EOF); -- Returns True if at end of file, False if not. Note that this -- function does NOT skip white space, so P is always unchanged. procedure Check_Not_At_EOF; pragma Inline (Check_Not_At_EOF); -- Skips past white space if any, and then raises Error if at -- end of file. Otherwise returns with P skipped past whitespace. function Check_File_Type return Character; -- Skips white space if any, and then looks for any of the tokens -- Spec_File_Name, Body_File_Name, or Subunit_File_Name. If one -- of these is found then the value returned is 's', 'b' or 'u' -- respectively, and P is bumped past the token. If none of -- these tokens is found, then P is unchanged (except for -- possible skip of white space), and a space is returned. function Check_Token (T : String) return Boolean; -- Skips white space if any, and then checks if the string at the -- current location matches the given string T, and the character -- immediately following is non-alphabetic, non-numeric. If so, -- P is stepped past the token, and True is returned. If not, -- P is unchanged (except for possibly skipping past whitespace), -- and False is returned. S may contain only lower-case letters -- ('a' .. 'z'). procedure Error (Err : String); -- Called if an error is detected. Raises Syntax_Error_In_GNAT_ADC -- with a message of the form gnat.adc:line:col: xxx, where xxx is -- the string Err passed as a parameter. procedure Require_Token (T : String); -- Skips white space if any, and then requires the given string -- to be present. If it is, the P is stepped past it, otherwise -- Error is raised, since this is a syntax error. Require_Token -- is used only for sequences of special characters, so there -- is no issue of terminators, or casing of letters. procedure Scan_String (B : out Natural; E : out Natural); -- Skips white space if any, then requires that a double quote -- or percent be present (start of string). Raises error if -- neither of these two characters is found. Otherwise scans -- out the string, and returns with P pointing past the -- closing quote and S (B .. E) contains the characters of the -- string (including the enclosing quotes, with internal quotes -- still doubled). Raises Error if the string is malformed. procedure Skip_WS; -- Skips P past any white space characters (end of line -- characters, spaces, comments, horizontal tab characters). --------------------- -- Acquire_Integer -- --------------------- function Acquire_Integer return Natural is N : Natural := 0; begin Skip_WS; if S (P) not in '0' .. '9' then Error ("missing index parameter"); end if; while S (P) in '0' .. '9' loop N := N * 10 + Character'Pos (S (P)) - Character'Pos ('0'); if N > 999 then Error ("index value greater than 999"); end if; P := P + 1; end loop; return N; end Acquire_Integer; -------------------- -- Acquire_String -- -------------------- function Acquire_String (B : Natural; E : Natural) return String is Str : String (1 .. E - B - 1); Q : constant Character := S (B); J : Natural; Ptr : Natural; begin Ptr := B + 1; J := 0; while Ptr < E loop J := J + 1; Str (J) := S (Ptr); if S (Ptr) = Q and then S (Ptr + 1) = Q then Ptr := Ptr + 2; else Ptr := Ptr + 1; end if; end loop; return Str (1 .. J); end Acquire_String; ----------------------- -- Acquire_Unit_Name -- ----------------------- function Acquire_Unit_Name return String is B : Natural; begin Check_Not_At_EOF; B := P; while not At_EOF loop exit when S (P) not in '0' .. '9' and then S (P) /= '.' and then S (P) /= '_' and then not (S (P) = '[' and then S (P + 1) = '"') and then not (S (P) = '"' and then S (P - 1) = '[') and then not (S (P) = '"' and then S (P + 1) = ']') and then not (S (P) = ']' and then S (P - 1) = '"') and then S (P) < 'A'; P := P + 1; end loop; if P = B then Error ("null unit name"); end if; return S (B .. P - 1); end Acquire_Unit_Name; ------------ -- At_EOF -- ------------ function At_EOF return Boolean is begin -- Immediate return (False) if before last character of file if P < S'Last then return False; -- Special case: DOS EOF character as last character of file is -- allowed and treated as an end of file. elsif P = S'Last then return S (P) = EOF; -- If beyond last character of file, then definitely at EOF else return True; end if; end At_EOF; --------------------- -- Check_File_Type -- --------------------- function Check_File_Type return Character is begin if Check_Token ("spec_file_name") then return 's'; elsif Check_Token ("body_file_name") then return 'b'; elsif Check_Token ("subunit_file_name") then return 'u'; else return ' '; end if; end Check_File_Type; ---------------------- -- Check_Not_At_EOF -- ---------------------- procedure Check_Not_At_EOF is begin Skip_WS; if At_EOF then Error ("unexpected end of file"); end if; return; end Check_Not_At_EOF; ----------------- -- Check_Token -- ----------------- function Check_Token (T : String) return Boolean is Save_P : Natural; C : Character; begin Skip_WS; Save_P := P; for K in T'Range loop if At_EOF then P := Save_P; return False; end if; C := S (P); if C in 'A' .. 'Z' then C := Character'Val (Character'Pos (C) + (Character'Pos ('a') - Character'Pos ('A'))); end if; if C /= T (K) then P := Save_P; return False; end if; P := P + 1; end loop; if At_EOF then return True; end if; C := S (P); if C in '0' .. '9' or else C in 'a' .. 'z' or else C in 'A' .. 'Z' or else C > Character'Val (127) then P := Save_P; return False; else return True; end if; end Check_Token; ----------- -- Error -- ----------- procedure Error (Err : String) is C : Natural := 0; -- Column number M : String (1 .. 80); -- Buffer used to build resulting error msg LM : Natural := 0; -- Pointer to last set location in M procedure Add_Nat (N : Natural); -- Add chars of integer to error msg buffer ------------- -- Add_Nat -- ------------- procedure Add_Nat (N : Natural) is begin if N > 9 then Add_Nat (N / 10); end if; LM := LM + 1; M (LM) := Character'Val (N mod 10 + Character'Pos ('0')); end Add_Nat; -- Start of processing for Error begin M (1 .. 9) := "gnat.adc:"; LM := 9; Add_Nat (Line_Num); LM := LM + 1; M (LM) := ':'; -- Determine column number for X in Start_Of_Line .. P loop C := C + 1; if S (X) = HT then C := (C + 7) / 8 * 8; end if; end loop; Add_Nat (C); M (LM + 1) := ':'; LM := LM + 1; M (LM + 1) := ' '; LM := LM + 1; M (LM + 1 .. LM + Err'Length) := Err; LM := LM + Err'Length; Raise_Exception (Syntax_Error_In_GNAT_ADC'Identity, M (1 .. LM)); end Error; ------------------- -- Require_Token -- ------------------- procedure Require_Token (T : String) is SaveP : Natural; begin Skip_WS; SaveP := P; for J in T'Range loop if At_EOF or else S (P) /= T (J) then declare S : String (1 .. T'Length + 10); begin S (1 .. 9) := "missing """; S (10 .. T'Length + 9) := T; S (T'Length + 10) := '"'; P := SaveP; Error (S); end; else P := P + 1; end if; end loop; end Require_Token; ---------------------- -- Scan_SFN_Pragmas -- ---------------------- procedure Scan_SFN_Pragmas (Source : String; SFN_Ptr : Set_File_Name_Ptr; SFNP_Ptr : Set_File_Name_Pattern_Ptr) is B, E : Natural; Typ : Character; Cas : Character; begin Line_Num := 1; S := Source'Unrestricted_Access; P := Source'First; Start_Of_Line := P; -- Loop through pragmas in file Main_Scan_Loop : loop Skip_WS; exit Main_Scan_Loop when At_EOF; -- Error if something other than pragma if not Check_Token ("pragma") then Error ("non pragma encountered"); end if; -- Source_File_Name pragma case if Check_Token ("source_file_name") or else Check_Token ("source_file_name_project") then Require_Token ("("); Typ := Check_File_Type; -- First format, with unit name first if Typ = ' ' then if Check_Token ("unit_name") then Require_Token ("=>"); end if; declare U : constant String := Acquire_Unit_Name; begin Require_Token (","); Typ := Check_File_Type; if Typ /= 's' and then Typ /= 'b' then Error ("bad pragma"); end if; Require_Token ("=>"); Scan_String (B, E); declare F : constant String := Acquire_String (B, E); X : Natural; begin -- Scan Index parameter if present if Check_Token (",") then if Check_Token ("index") then Require_Token ("=>"); end if; X := Acquire_Integer; else X := 0; end if; Require_Token (")"); Require_Token (";"); SFN_Ptr.all (Typ, U, F, X); end; end; -- Second format with pattern string else Require_Token ("=>"); Scan_String (B, E); declare Pat : constant String := Acquire_String (B, E); Nas : Natural := 0; begin -- Check exactly one asterisk for J in Pat'Range loop if Pat (J) = '*' then Nas := Nas + 1; end if; end loop; if Nas /= 1 then Error ("** not allowed"); end if; B := 0; E := 0; Cas := ' '; -- Loop to scan out Casing or Dot_Replacement parameters loop Check_Not_At_EOF; exit when S (P) = ')'; Require_Token (","); if Check_Token ("casing") then Require_Token ("=>"); if Cas /= ' ' then Error ("duplicate casing argument"); elsif Check_Token ("lowercase") then Cas := 'l'; elsif Check_Token ("uppercase") then Cas := 'u'; elsif Check_Token ("mixedcase") then Cas := 'm'; else Error ("invalid casing argument"); end if; elsif Check_Token ("dot_replacement") then Require_Token ("=>"); if E /= 0 then Error ("duplicate dot_replacement"); else Scan_String (B, E); end if; else Error ("invalid argument"); end if; end loop; Require_Token (")"); Require_Token (";"); if Cas = ' ' then Cas := 'l'; end if; if E = 0 then SFNP_Ptr.all (Pat, Typ, ".", Cas); else declare Dot : constant String := Acquire_String (B, E); begin SFNP_Ptr.all (Pat, Typ, Dot, Cas); end; end if; end; end if; -- Some other pragma, scan to semicolon at end of pragma else Skip_Loop : loop exit Main_Scan_Loop when At_EOF; exit Skip_Loop when S (P) = ';'; if S (P) = '"' or else S (P) = '%' then Scan_String (B, E); else P := P + 1; end if; end loop Skip_Loop; -- We successfully skipped to semicolon, so skip past it P := P + 1; end if; end loop Main_Scan_Loop; exception when others => Cursor := P - S'First + 1; raise; end Scan_SFN_Pragmas; ----------------- -- Scan_String -- ----------------- procedure Scan_String (B : out Natural; E : out Natural) is Q : Character; begin Check_Not_At_EOF; if S (P) = '"' then Q := '"'; elsif S (P) = '%' then Q := '%'; else Error ("bad string"); Q := '"'; end if; -- Scan out the string, B points to first char B := P; P := P + 1; loop if At_EOF or else S (P) = LF or else S (P) = CR then Error -- CODEFIX ("missing string quote"); elsif S (P) = HT then Error ("tab character in string"); elsif S (P) /= Q then P := P + 1; -- We have a quote else P := P + 1; -- Check for doubled quote if not At_EOF and then S (P) = Q then P := P + 1; -- Otherwise this is the terminating quote else E := P - 1; return; end if; end if; end loop; end Scan_String; ------------- -- Skip_WS -- ------------- procedure Skip_WS is begin WS_Scan : while not At_EOF loop case S (P) is -- End of physical line when CR | LF => Line_Num := Line_Num + 1; P := P + 1; while not At_EOF and then (S (P) = CR or else S (P) = LF) loop Line_Num := Line_Num + 1; P := P + 1; end loop; Start_Of_Line := P; -- All other cases of white space characters when ' ' | FF | VT | HT => P := P + 1; -- Comment when '-' => P := P + 1; if At_EOF then Error ("bad comment"); elsif S (P) = '-' then P := P + 1; while not At_EOF loop case S (P) is when CR | LF | FF | VT => exit; when others => P := P + 1; end case; end loop; else P := P - 1; exit WS_Scan; end if; when others => exit WS_Scan; end case; end loop WS_Scan; end Skip_WS; end SFN_Scan;
28.50411
79
0.453335
a18903921dcf145fc0442908e9803158688089e2
3,199
ads
Ada
tools/aflex/src/parser-goto_table.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
tools/aflex/src/parser-goto_table.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
tools/aflex/src/parser-goto_table.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
package Parser.Goto_Table is type Small_Integer is range -32_000 .. 32_000; type Goto_Entry is record Nonterm : Small_Integer; Newstate : Small_Integer; end record; --pragma suppress(index_check); subtype Row is Integer range -1 .. Integer'Last; type Goto_Parse_Table is array (Row range <>) of Goto_Entry; Goto_Matrix : constant Goto_Parse_Table := ((-1,-1) -- Dummy Entry. -- State 0 ,(-3, 1),(-2, 2) -- State 1 ,(-4, 3) -- State 2 -- State 3 ,(-8, 10) ,(-5, 9) -- State 4 -- State 5 -- State 6 -- State 7 -- State 8 -- State 9 ,(-6, 12) -- State 10 -- State 11 -- State 12 ,(-7, 14) -- State 13 ,(-9, 15) -- State 14 ,(-18, 28),(-17, 26),(-16, 24),(-15, 25) ,(-12, 20),(-11, 18),(-10, 35) -- State 15 -- State 16 -- State 17 -- State 18 ,(-18, 28) ,(-17, 26),(-16, 24),(-15, 25),(-12, 38) -- State 19 ,(-18, 28),(-17, 26),(-16, 24),(-15, 25) ,(-12, 41) -- State 20 ,(-13, 43) -- State 21 -- State 22 -- State 23 ,(-14, 46) -- State 24 ,(-18, 28) ,(-17, 26),(-15, 49) -- State 25 ,(-18, 28),(-17, 50) -- State 26 -- State 27 -- State 28 -- State 29 -- State 30 ,(-19, 55) -- State 31 ,(-18, 28),(-17, 26),(-16, 24) ,(-15, 25),(-12, 56) -- State 32 -- State 33 -- State 34 ,(-20, 57) -- State 35 -- State 36 -- State 37 -- State 38 ,(-13, 61) -- State 39 ,(-18, 28),(-17, 26),(-16, 24),(-15, 25) ,(-12, 62) -- State 40 -- State 41 ,(-13, 63) -- State 42 -- State 43 -- State 44 ,(-18, 28),(-17, 26) ,(-15, 64) -- State 45 -- State 46 -- State 47 -- State 48 -- State 49 ,(-18, 28),(-17, 50) -- State 50 -- State 51 -- State 52 -- State 53 -- State 54 -- State 55 -- State 56 -- State 57 -- State 58 ,(-20, 74) -- State 59 -- State 60 -- State 61 -- State 62 ,(-13, 75) -- State 63 -- State 64 ,(-18, 28),(-17, 50) -- State 65 -- State 66 -- State 67 -- State 68 -- State 69 -- State 70 -- State 71 -- State 72 -- State 73 -- State 74 -- State 75 -- State 76 -- State 77 -- State 78 -- State 79 -- State 80 -- State 81 -- State 82 -- State 83 -- State 84 ); -- The offset vector GOTO_OFFSET : constant array (0.. 84) of Integer := ( 0, 2, 3, 3, 5, 5, 5, 5, 5, 5, 6, 6, 6, 7, 8, 15, 15, 15, 15, 20, 25, 26, 26, 26, 27, 30, 32, 32, 32, 32, 32, 33, 38, 38, 38, 39, 39, 39, 39, 40, 45, 45, 46, 46, 46, 49, 49, 49, 49, 49, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 53, 53, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55); subtype Rule is Natural; subtype Nonterminal is Integer; Rule_Length : constant array (Rule range 0 .. 54) of Natural := ( 2, 5, 0, 5, 0, 2, 1, 1, 1, 3, 1, 1, 4, 0, 0, 4, 3, 3, 2, 2, 1, 1, 3, 3, 1, 1, 1, 0, 3, 2, 1, 2, 2, 1, 2, 2, 2, 6, 5, 4, 1, 1, 1, 3, 3, 1, 1, 3, 4, 4, 2, 2, 0, 2, 0); Get_LHS_Rule : constant array (Rule range 0 .. 54) of Nonterminal := (-1, -2,-3,-4,-4,-4,-5,-8,-8, -9,-9,-9,-6,-6,-7,-10,-10, -10,-10,-10,-10,-10,-11,-14,-14, -14,-13,-13,-12,-12,-12,-16,-15, -15,-17,-17,-17,-17,-17,-17,-17, -17,-17,-17,-17,-17,-17,-18,-18, -20,-20,-20,-20,-19,-19); end Parser.Goto_Table;
13.612766
78
0.499531
a13d704acfc7f6f1c0e324bb31fc7fd4d54365e9
9,399
ads
Ada
extern/game_support/stm32f4/src/stm32f4-i2c.ads
AdaCore/training_material
6651eb2c53f8c39649b8e0b3c757bc8ff963025a
[ "CC-BY-4.0" ]
15
2020-10-07T08:56:45.000Z
2022-02-08T23:13:22.000Z
extern/game_support/stm32f4/src/stm32f4-i2c.ads
AdaCore/training_material
6651eb2c53f8c39649b8e0b3c757bc8ff963025a
[ "CC-BY-4.0" ]
20
2020-11-05T14:35:20.000Z
2022-01-13T15:59:33.000Z
extern/game_support/stm32f4/src/stm32f4-i2c.ads
AdaCore/training_material
6651eb2c53f8c39649b8e0b3c757bc8ff963025a
[ "CC-BY-4.0" ]
6
2020-10-08T15:57:06.000Z
2021-08-31T12:03:08.000Z
------------------------------------------------------------------------------ -- -- -- Hardware Abstraction Layer for STM32 Targets -- -- -- -- Copyright (C) 2014, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This file provides definitions for the STM32F4 (ARM Cortex M4F -- from ST Microelectronics) Inter-Integrated Circuit (I2C) facility. package STM32F4.I2C is type I2C_Port is limited private; type I2C_Device_Mode is (I2C_Mode, SMBusDevice_Mode, SMBusHost_Mode); for I2C_Device_Mode use (I2C_Mode => 16#0000#, SMBusDevice_Mode => 16#0002#, SMBusHost_Mode => 16#000A#); type I2C_Duty_Cycle is (DutyCycle_16_9, DutyCycle_2); for I2C_Duty_Cycle use (DutyCycle_16_9 => 16#4000#, DutyCycle_2 => 16#BFFF#); type I2C_Acknowledgement is (Ack_Disable, Ack_Enable); for I2C_Acknowledgement use (Ack_Enable => 16#0400#, Ack_Disable => 16#0000#); type I2C_Direction is (Transmitter, Receiver); type I2C_Acknowledge_Address is (AcknowledgedAddress_7bit, AcknowledgedAddress_10bit); for I2C_Acknowledge_Address use (AcknowledgedAddress_7bit => 16#4000#, AcknowledgedAddress_10bit => 16#C000#); procedure Configure (Port : in out I2C_Port; Clock_Speed : Word; Mode : I2C_Device_Mode; Duty_Cycle : I2C_Duty_Cycle; Own_Address : Half_Word; Ack : I2C_Acknowledgement; Ack_Address : I2C_Acknowledge_Address) with Post => Port_Enabled (Port); type I2C_State is (Enabled, Disabled); procedure Set_State (Port : in out I2C_Port; State : I2C_State); function Port_Enabled (Port : I2C_Port) return Boolean; procedure Generate_Start (Port : in out I2C_Port; State : I2C_State); procedure Generate_Stop (Port : in out I2C_Port; State : I2C_State); procedure Send_7Bit_Address (Port : in out I2C_Port; Address : Byte; Direction : I2C_Direction); procedure Send_Data (Port : in out I2C_Port; Data : Byte); function Read_Data (Port : I2C_Port) return Byte; type I2C_Status_Flag is (Start_Bit, Address_Sent, Byte_Transfer_Finished, Address_Sent_10bit, Stop_Detection, Rx_Data_Register_Not_Empty, Tx_Data_Register_Empty, Bus_Error, Arbitration_Lost, Ack_Failure, Overrun, -- also for underrun Packet_Error, Timeout, SMB_Alert, Master_Slave_Mode, Busy, Transmitter_Receiver_Mode, General_Call, SMB_Default, SMB_Host, Dual_Flag); function Status (Port : I2C_Port; Flag : I2C_Status_Flag) return Boolean; subtype Clearable_I2C_Status_Flag is I2C_Status_Flag range Bus_Error .. SMB_Alert; procedure Clear_Status (Port : in out I2C_Port; Target : Clearable_I2C_Status_Flag); procedure Clear_Address_Sent_Status (Port : in out I2C_Port); procedure Clear_Stop_Detection_Status (Port : in out I2C_Port); procedure Wait_For_State (Port : I2C_Port; Queried : I2C_Status_Flag; State : I2C_State; Time_Out : Natural := 1_000_000); -- milliseconds I2C_Timeout : exception; -- Raised by Wait_For_Flag procedure Set_Ack_Config (Port : in out I2C_Port; State : I2C_State); type I2C_Nack_Position is (Next, Current); procedure Set_Nack_Config (Port : in out I2C_Port; Pos : I2C_Nack_Position); procedure Start (Port : in out I2C_Port; Address : Byte; Direction : I2C_Direction); function Read_Ack (Port : in out I2C_Port) return Byte; function Read_Nack (Port : in out I2C_Port) return Byte; procedure Write (Port : in out I2C_Port; Data : Byte); procedure Stop (Port : in out I2C_Port); type I2C_Interrupt is (Error_Interrupt, Event_Interrupt, Buffer_Interrupt); for I2C_Interrupt use (Error_Interrupt => 16#0100#, Event_Interrupt => 16#0200#, Buffer_Interrupt => 16#0400#); procedure Enable_Interrupt (Port : in out I2C_Port; Source : I2C_Interrupt) with Post => Enabled (Port, Source); procedure Disable_Interrupt (Port : in out I2C_Port; Source : I2C_Interrupt) with Post => not Enabled (Port, Source); function Enabled (Port : in out I2C_Port; Source : I2C_Interrupt) return Boolean; private type I2C_Port is record CR1 : Half_Word; Reserved1 : Half_Word; CR2 : Half_Word; Reserved2 : Half_Word; OAR1 : Half_Word; Reserved3 : Half_Word; OAR2 : Half_Word; Reserved4 : Half_Word; DR : Half_Word; Reserved5 : Half_Word; SR1 : Half_Word; Reserved6 : Half_Word; SR2 : Half_Word; Reserved7 : Half_Word; CCR : Half_Word; Reserved8 : Half_Word; TRISE : Half_Word; Reserved9 : Half_Word; FLTR : Half_Word; Reserved0 : Half_Word; end record with Volatile, Size => 20 * 16; for I2C_Port use record CR1 at 0 range 0 .. 15; Reserved1 at 2 range 0 .. 15; CR2 at 4 range 0 .. 15; Reserved2 at 6 range 0 .. 15; OAR1 at 8 range 0 .. 15; Reserved3 at 10 range 0 .. 15; OAR2 at 12 range 0 .. 15; Reserved4 at 14 range 0 .. 15; DR at 16 range 0 .. 15; Reserved5 at 18 range 0 .. 15; SR1 at 20 range 0 .. 15; Reserved6 at 22 range 0 .. 15; SR2 at 24 range 0 .. 15; Reserved7 at 26 range 0 .. 15; CCR at 28 range 0 .. 15; Reserved8 at 30 range 0 .. 15; TRISE at 32 range 0 .. 15; Reserved9 at 34 range 0 .. 15; FLTR at 36 range 0 .. 15; Reserved0 at 38 range 0 .. 15; end record; CR1_PE : constant := 16#0001#; -- Peripheral Enable CR1_SMBUS : constant := 16#0002#; -- SMBus Mode CR1_SMBTYPE : constant := 16#0008#; -- SMBus Type CR1_ENARP : constant := 16#0010#; -- ARP Enable CR1_ENPEC : constant := 16#0020#; -- PEC Enable CR1_ENGC : constant := 16#0040#; -- General Call Enable CR1_NOSTRETCH : constant := 16#0080#; -- Clock Stretching Disable (Slave mode) CR1_START : constant := 16#0100#; -- Start Generation CR1_STOP : constant := 16#0200#; -- Stop Generation CR1_ACK : constant := 16#0400#; -- Acknowledge Enable CR1_POS : constant := 16#0800#; -- Acknowledge/PEC Position (for data reception) CR1_PEC : constant := 16#1000#; -- Packet Error Checking CR1_ALERT : constant := 16#2000#; -- SMBus Alert CR1_SWRST : constant := 16#8000#; -- Software Reset CR1_Clear_Mask : constant := 16#FBF5#; CR2_FREQ : constant := 16#003F#; -- Peripheral Clock Frequency bits CCR_CCR : constant := 16#0FFF#; -- Clock Control Register CCR_FS : constant := 16#8000#; -- Master Mode Selection fast/std I2C_OAR1_ADD0 : constant := 16#0001#; I2C_OAR1_ADD1 : constant := 16#0002#; I2C_OAR1_ADD2 : constant := 16#0004#; I2C_OAR1_ADD3 : constant := 16#0008#; I2C_OAR1_ADD4 : constant := 16#0010#; I2C_OAR1_ADD5 : constant := 16#0020#; I2C_OAR1_ADD6 : constant := 16#0040#; I2C_OAR1_ADD7 : constant := 16#0080#; I2C_OAR1_ADD8 : constant := 16#0100#; I2C_OAR1_ADD9 : constant := 16#0200#; I2C_Direction_Transmitter : constant := 16#00#; I2C_Direction_Receiver : constant := 16#01#; end STM32F4.I2C;
34.428571
90
0.582934
dcededad86f4363dde5470a0bc94dd8eb25dba90
9,452
adb
Ada
source/league/matreshka-json_generator.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/league/matreshka-json_generator.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/league/matreshka-json_generator.adb
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Localization, Internationalization, Globalization for Ada -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2013-2014, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with League.Holders; with League.JSON.Arrays; with League.JSON.Objects; with League.JSON.Values; with League.String_Vectors; package body Matreshka.JSON_Generator is -------------- -- Generate -- -------------- function Generate (Document : League.JSON.Documents.JSON_Document'Class) return League.Strings.Universal_String is Result : League.Strings.Universal_String; procedure Generate_Array (Value : League.JSON.Arrays.JSON_Array); procedure Generate_Object (Value : League.JSON.Objects.JSON_Object); procedure Generate_Value (Value : League.JSON.Values.JSON_Value); procedure Generate_String (Value : League.Strings.Universal_String); -------------------- -- Generate_Array -- -------------------- procedure Generate_Array (Value : League.JSON.Arrays.JSON_Array) is begin Result.Append ('['); for J in 1 .. Value.Length loop if J /= 1 then Result.Append (','); end if; Generate_Value (Value.Element (J)); end loop; Result.Append (']'); end Generate_Array; --------------------- -- Generate_Object -- --------------------- procedure Generate_Object (Value : League.JSON.Objects.JSON_Object) is Members : constant League.String_Vectors.Universal_String_Vector := Value.Keys; begin Result.Append ('{'); for J in 1 .. Members.Length loop if J /= 1 then Result.Append (','); end if; Generate_String (Members.Element (J)); Result.Append (':'); Generate_Value (Value.Value (Members.Element (J))); end loop; Result.Append ('}'); end Generate_Object; --------------------- -- Generate_String -- --------------------- procedure Generate_String (Value : League.Strings.Universal_String) is To_Hex : constant array (Natural range 0 .. 15) of Wide_Wide_Character := "0123456789ABCDEF"; Code : Natural; begin Result.Append ('"'); for J in 1 .. Value.Length loop case Value.Element (J).To_Wide_Wide_Character is when Wide_Wide_Character'Val (16#0000#) .. Wide_Wide_Character'Val (16#0007#) | Wide_Wide_Character'Val (16#000B#) | Wide_Wide_Character'Val (16#000E#) .. Wide_Wide_Character'Val (16#001F#) => Code := Wide_Wide_Character'Pos (Value.Element (J).To_Wide_Wide_Character); Result.Append ("\u00"); Result.Append (To_Hex ((Code / 16) mod 16)); Result.Append (To_Hex (Code mod 16)); when Wide_Wide_Character'Val (16#0008#) => -- backspace Result.Append ("\b"); when Wide_Wide_Character'Val (16#0009#) => -- carriage return Result.Append ("\r"); when Wide_Wide_Character'Val (16#000A#) => -- line feed Result.Append ("\n"); when Wide_Wide_Character'Val (16#000C#) => -- form feed Result.Append ("\f"); when Wide_Wide_Character'Val (16#000D#) => -- tab Result.Append ("\t"); when '"' => Result.Append ("\"""); when '\' => Result.Append ("\\"); when others => Result.Append (Value.Element (J)); end case; end loop; Result.Append ('"'); end Generate_String; -------------------- -- Generate_Value -- -------------------- procedure Generate_Value (Value : League.JSON.Values.JSON_Value) is begin case Value.Kind is when League.JSON.Values.Empty_Value => null; when League.JSON.Values.Boolean_Value => case Value.To_Boolean is when False => Result.Append ("false"); when True => Result.Append ("true"); end case; when League.JSON.Values.Number_Value => if Value.Is_Integer_Number then declare Image : constant Wide_Wide_String := League.Holders.Universal_Integer'Wide_Wide_Image (Value.To_Integer); begin if Image (Image'First) /= ' ' then Result.Append (Image); else Result.Append (Image (Image'First + 1 .. Image'Last)); end if; end; else declare Image : constant Wide_Wide_String := League.Holders.Universal_Float'Wide_Wide_Image (Value.To_Float); begin if Image (Image'First) /= ' ' then Result.Append (Image); else Result.Append (Image (Image'First + 1 .. Image'Last)); end if; end; end if; when League.JSON.Values.String_Value => Generate_String (Value.To_String); when League.JSON.Values.Array_Value => Generate_Array (Value.To_Array); when League.JSON.Values.Object_Value => Generate_Object (Value.To_Object); when League.JSON.Values.Null_Value => Result.Append ("null"); end case; end Generate_Value; begin if Document.Is_Object then Generate_Object (Document.To_JSON_Object); elsif Document.Is_Array then Generate_Array (Document.To_JSON_Array); end if; return Result; end Generate; end Matreshka.JSON_Generator;
38.422764
79
0.460326
12bcaa7ea51031e06794c4a7a7dd01f14de36341
6,314
ads
Ada
tools-src/gnu/gcc/gcc/ada/s-valuti.ads
modern-tomato/tomato
96f09fab4929c6ddde5c9113f1b2476ad37133c4
[ "FSFAP" ]
80
2015-01-02T10:14:04.000Z
2021-06-07T06:29:49.000Z
tools-src/gnu/gcc/gcc/ada/s-valuti.ads
modern-tomato/tomato
96f09fab4929c6ddde5c9113f1b2476ad37133c4
[ "FSFAP" ]
9
2015-05-14T11:03:12.000Z
2018-01-04T07:12:58.000Z
tools-src/gnu/gcc/gcc/ada/s-valuti.ads
modern-tomato/tomato
96f09fab4929c6ddde5c9113f1b2476ad37133c4
[ "FSFAP" ]
69
2015-01-02T10:45:56.000Z
2021-09-06T07:52:13.000Z
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . V A L _ U T I L -- -- -- -- S p e c -- -- -- -- $Revision$ -- -- -- Copyright (C) 1992,1993,1994,1995,1996 Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT 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 distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, -- -- MA 02111-1307, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package provides some common utilities used by the s-valxxx files package System.Val_Util is pragma Pure (Val_Util); procedure Normalize_String (S : in out String; F, L : out Integer); -- This procedure scans the string S setting F to be the index of the first -- non-blank character of S and L to be the index of the last non-blank -- character of S. Any lower case characters present in S will be folded -- to their upper case equivalent except for character literals. If S -- consists of entirely blanks then Constraint_Error is raised. -- -- Note: if S is the null string, F is set to S'First, L to S'Last procedure Scan_Sign (Str : String; Ptr : access Integer; Max : Integer; Minus : out Boolean; Start : out Positive); -- The Str, Ptr, Max parameters are as for the scan routines (Str is the -- string to be scanned starting at Ptr.all, and Max is the index of the -- last character in the string). Scan_Sign first scans out any initial -- blanks, raising Constraint_Error if the field is all blank. It then -- checks for and skips an initial plus or minus, requiring a non-blank -- character to follow (Constraint_Error is raised if plus or minus -- appears at the end of the string or with a following blank). Minus is -- set True if a minus sign was skipped, and False otherwise. On exit -- Ptr.all points to the character after the sign, or to the first -- non-blank character if no sign is present. Start is set to the point -- to the first non-blank character (sign or digit after it). -- -- Note: if Str is null, i.e. if Max is less than Ptr, then this is a -- special case of an all-blank string, and Ptr is unchanged, and hence -- is greater than Max as required in this case. Constraint_Error is -- also raised in this case. function Scan_Exponent (Str : String; Ptr : access Integer; Max : Integer; Real : Boolean := False) return Integer; -- Called to scan a possible exponent. Str, Ptr, Max are as described above -- for Scan_Sign. If Ptr.all < Max and Str (Ptr.all) = 'E' or 'e', then an -- exponent is scanned out, with the exponent value returned in Exp, and -- Ptr.all updated to point past the exponent. If the exponent field is -- incorrectly formed or not present, then Ptr.all is unchanged, and the -- returned exponent value is zero. Real indicates whether a minus sign -- is permitted (True = permitted). Very large exponents are handled by -- returning a suitable large value. If the base is zero, then any value -- is allowed, and otherwise the large value will either cause underflow -- or overflow during the scaling process which is fine. procedure Scan_Trailing_Blanks (Str : String; P : Positive); -- Checks that the remainder of the field Str (P .. Str'Last) is all -- blanks. Raises Constraint_Error if a non-blank character is found. procedure Scan_Underscore (Str : String; P : in out Natural; Ptr : access Integer; Max : Integer; Ext : Boolean); -- Called if an underscore is encountered while scanning digits. Str (P) -- contains the underscore. Ptr it the pointer to be returned to the -- ultimate caller of the scan routine, Max is the maximum subscript in -- Str, and Ext indicates if extended digits are allowed. In the case -- where the underscore is invalid, Constraint_Error is raised with Ptr -- set appropriately, otherwise control returns with P incremented past -- the underscore. end System.Val_Util;
56.882883
79
0.566044
3112d9a66bf2611faa1e263a645c08f47e51aac0
541,278
ads
Ada
SVD2ada/svd/stm32_svd-hrtim.ads
JCGobbi/Nucleo-STM32G474RE
8dc1c4948ffeb11841eed10f1c3708f00fa1d832
[ "BSD-3-Clause" ]
null
null
null
SVD2ada/svd/stm32_svd-hrtim.ads
JCGobbi/Nucleo-STM32G474RE
8dc1c4948ffeb11841eed10f1c3708f00fa1d832
[ "BSD-3-Clause" ]
null
null
null
SVD2ada/svd/stm32_svd-hrtim.ads
JCGobbi/Nucleo-STM32G474RE
8dc1c4948ffeb11841eed10f1c3708f00fa1d832
[ "BSD-3-Clause" ]
null
null
null
pragma Style_Checks (Off); -- This spec has been automatically generated from STM32G474xx.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package STM32_SVD.HRTIM is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR1_AD1USRC_Field is HAL.UInt3; subtype CR1_AD2USRC_Field is HAL.UInt3; subtype CR1_AD3USRC_Field is HAL.UInt3; subtype CR1_AD4USRC_Field is HAL.UInt3; -- Control Register 1 type CR1_Register is record -- Master Update Disable MUDIS : Boolean := False; -- Timer A Update Disable TAUDIS : Boolean := False; -- Timer B Update Disable TBUDIS : Boolean := False; -- Timer C Update Disable TCUDIS : Boolean := False; -- Timer D Update Disable TDUDIS : Boolean := False; -- Timer E Update Disable TEUDIS : Boolean := False; -- Timer f Update Disable TFUDIS : Boolean := False; -- unspecified Reserved_7_15 : HAL.UInt9 := 16#0#; -- ADC Trigger 1 Update Source AD1USRC : CR1_AD1USRC_Field := 16#0#; -- ADC Trigger 2 Update Source AD2USRC : CR1_AD2USRC_Field := 16#0#; -- ADC Trigger 3 Update Source AD3USRC : CR1_AD3USRC_Field := 16#0#; -- ADC Trigger 4 Update Source AD4USRC : CR1_AD4USRC_Field := 16#0#; -- unspecified Reserved_28_31 : HAL.UInt4 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CR1_Register use record MUDIS at 0 range 0 .. 0; TAUDIS at 0 range 1 .. 1; TBUDIS at 0 range 2 .. 2; TCUDIS at 0 range 3 .. 3; TDUDIS at 0 range 4 .. 4; TEUDIS at 0 range 5 .. 5; TFUDIS at 0 range 6 .. 6; Reserved_7_15 at 0 range 7 .. 15; AD1USRC at 0 range 16 .. 18; AD2USRC at 0 range 19 .. 21; AD3USRC at 0 range 22 .. 24; AD4USRC at 0 range 25 .. 27; Reserved_28_31 at 0 range 28 .. 31; end record; -- Control Register 2 type CR2_Register is record -- Master Timer Software update MSWU : Boolean := False; -- Timer A Software update TASWU : Boolean := False; -- Timer B Software Update TBSWU : Boolean := False; -- Timer C Software Update TCSWU : Boolean := False; -- Timer D Software Update TDSWU : Boolean := False; -- Timer E Software Update TESWU : Boolean := False; -- Timer f Software Update TFSWU : Boolean := False; -- unspecified Reserved_7_7 : HAL.Bit := 16#0#; -- Master Counter software reset MRST : Boolean := False; -- Timer A counter software reset TARST : Boolean := False; -- Timer B counter software reset TBRST : Boolean := False; -- Timer C counter software reset TCRST : Boolean := False; -- Timer D counter software reset TDRST : Boolean := False; -- Timer E counter software reset TERST : Boolean := False; -- Timer f counter software reset TFRST : Boolean := False; -- unspecified Reserved_15_15 : HAL.Bit := 16#0#; -- Swap Timer A outputs SWPA : Boolean := False; -- Swap Timer B outputs SWPB : Boolean := False; -- Swap Timer C outputs SWPC : Boolean := False; -- Swap Timer D outputs SWPD : Boolean := False; -- Swap Timer E outputs SWPE : Boolean := False; -- Swap Timer F outputs SWPF : Boolean := False; -- unspecified Reserved_22_31 : HAL.UInt10 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CR2_Register use record MSWU at 0 range 0 .. 0; TASWU at 0 range 1 .. 1; TBSWU at 0 range 2 .. 2; TCSWU at 0 range 3 .. 3; TDSWU at 0 range 4 .. 4; TESWU at 0 range 5 .. 5; TFSWU at 0 range 6 .. 6; Reserved_7_7 at 0 range 7 .. 7; MRST at 0 range 8 .. 8; TARST at 0 range 9 .. 9; TBRST at 0 range 10 .. 10; TCRST at 0 range 11 .. 11; TDRST at 0 range 12 .. 12; TERST at 0 range 13 .. 13; TFRST at 0 range 14 .. 14; Reserved_15_15 at 0 range 15 .. 15; SWPA at 0 range 16 .. 16; SWPB at 0 range 17 .. 17; SWPC at 0 range 18 .. 18; SWPD at 0 range 19 .. 19; SWPE at 0 range 20 .. 20; SWPF at 0 range 21 .. 21; Reserved_22_31 at 0 range 22 .. 31; end record; -- ISR_FLT array type ISR_FLT_Field_Array is array (1 .. 5) of Boolean with Component_Size => 1, Size => 5; -- Type definition for ISR_FLT type ISR_FLT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- FLT as a value Val : HAL.UInt5; when True => -- FLT as an array Arr : ISR_FLT_Field_Array; end case; end record with Unchecked_Union, Size => 5; for ISR_FLT_Field use record Val at 0 range 0 .. 4; Arr at 0 range 0 .. 4; end record; -- Interrupt Status Register type ISR_Register is record -- Read-only. Fault 1 Interrupt Flag FLT : ISR_FLT_Field; -- Read-only. System Fault Interrupt Flag SYSFLT : Boolean; -- Read-only. Fault 6 Interrupt Flag FLT6 : Boolean; -- unspecified Reserved_7_15 : HAL.UInt9; -- Read-only. DLL Ready Interrupt Flag DLLRDY : Boolean; -- Read-only. Burst mode Period Interrupt Flag BMPER : Boolean; -- unspecified Reserved_18_31 : HAL.UInt14; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for ISR_Register use record FLT at 0 range 0 .. 4; SYSFLT at 0 range 5 .. 5; FLT6 at 0 range 6 .. 6; Reserved_7_15 at 0 range 7 .. 15; DLLRDY at 0 range 16 .. 16; BMPER at 0 range 17 .. 17; Reserved_18_31 at 0 range 18 .. 31; end record; -- Interrupt Clear Register type ICR_Register is record -- Write-only. Fault 1 Interrupt Flag Clear FLT1C : Boolean := False; -- Write-only. Fault 2 Interrupt Flag Clear FLT2C : Boolean := False; -- Write-only. Fault 3 Interrupt Flag Clear FLT3C : Boolean := False; -- Write-only. Fault 4 Interrupt Flag Clear FLT4C : Boolean := False; -- Write-only. Fault 5 Interrupt Flag Clear FLT5C : Boolean := False; -- Write-only. System Fault Interrupt Flag Clear SYSFLTC : Boolean := False; -- Write-only. Fault 6 Interrupt Flag Clear FLT6C : Boolean := False; -- unspecified Reserved_7_15 : HAL.UInt9 := 16#0#; -- Write-only. DLL Ready Interrupt flag Clear DLLRDYC : Boolean := False; -- Write-only. Burst mode period flag Clear BMPERC : Boolean := False; -- unspecified Reserved_18_31 : HAL.UInt14 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for ICR_Register use record FLT1C at 0 range 0 .. 0; FLT2C at 0 range 1 .. 1; FLT3C at 0 range 2 .. 2; FLT4C at 0 range 3 .. 3; FLT5C at 0 range 4 .. 4; SYSFLTC at 0 range 5 .. 5; FLT6C at 0 range 6 .. 6; Reserved_7_15 at 0 range 7 .. 15; DLLRDYC at 0 range 16 .. 16; BMPERC at 0 range 17 .. 17; Reserved_18_31 at 0 range 18 .. 31; end record; -- Interrupt Enable Register type IER_Register is record -- Fault 1 Interrupt Enable FLT1IE : Boolean := False; -- Fault 2 Interrupt Enable FLT2IE : Boolean := False; -- Fault 3 Interrupt Enable FLT3IE : Boolean := False; -- Fault 4 Interrupt Enable FLT4IE : Boolean := False; -- Fault 5 Interrupt Enable FLT5IE : Boolean := False; -- System Fault Interrupt Enable SYSFLTE : Boolean := False; -- Fault 6 Interrupt Enable FLT6IE : Boolean := False; -- unspecified Reserved_7_15 : HAL.UInt9 := 16#0#; -- DLL Ready Interrupt Enable DLLRDYIE : Boolean := False; -- Burst mode period Interrupt Enable BMPERIE : Boolean := False; -- unspecified Reserved_18_31 : HAL.UInt14 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for IER_Register use record FLT1IE at 0 range 0 .. 0; FLT2IE at 0 range 1 .. 1; FLT3IE at 0 range 2 .. 2; FLT4IE at 0 range 3 .. 3; FLT5IE at 0 range 4 .. 4; SYSFLTE at 0 range 5 .. 5; FLT6IE at 0 range 6 .. 6; Reserved_7_15 at 0 range 7 .. 15; DLLRDYIE at 0 range 16 .. 16; BMPERIE at 0 range 17 .. 17; Reserved_18_31 at 0 range 18 .. 31; end record; -- Output Enable Register type OENR_Register is record -- Timer A Output 1 Enable TA1OEN : Boolean := False; -- Timer A Output 2 Enable TA2OEN : Boolean := False; -- Timer B Output 1 Enable TB1OEN : Boolean := False; -- Timer B Output 2 Enable TB2OEN : Boolean := False; -- Timer C Output 1 Enable TC1OEN : Boolean := False; -- Timer C Output 2 Enable TC2OEN : Boolean := False; -- Timer D Output 1 Enable TD1OEN : Boolean := False; -- Timer D Output 2 Enable TD2OEN : Boolean := False; -- Timer E Output 1 Enable TE1OEN : Boolean := False; -- Timer E Output 2 Enable TE2OEN : Boolean := False; -- Timer F Output 1 disable status TF1OEN : Boolean := False; -- Timer F Output 2 disable status TF2OEN : Boolean := False; -- unspecified Reserved_12_31 : HAL.UInt20 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for OENR_Register use record TA1OEN at 0 range 0 .. 0; TA2OEN at 0 range 1 .. 1; TB1OEN at 0 range 2 .. 2; TB2OEN at 0 range 3 .. 3; TC1OEN at 0 range 4 .. 4; TC2OEN at 0 range 5 .. 5; TD1OEN at 0 range 6 .. 6; TD2OEN at 0 range 7 .. 7; TE1OEN at 0 range 8 .. 8; TE2OEN at 0 range 9 .. 9; TF1OEN at 0 range 10 .. 10; TF2OEN at 0 range 11 .. 11; Reserved_12_31 at 0 range 12 .. 31; end record; -- ODISR type ODISR_Register is record -- Write-only. TA1ODIS TA1ODIS : Boolean := False; -- Write-only. TA2ODIS TA2ODIS : Boolean := False; -- Write-only. TB1ODIS TB1ODIS : Boolean := False; -- Write-only. TB2ODIS TB2ODIS : Boolean := False; -- Write-only. TC1ODIS TC1ODIS : Boolean := False; -- Write-only. TC2ODIS TC2ODIS : Boolean := False; -- Write-only. TD1ODIS TD1ODIS : Boolean := False; -- Write-only. TD2ODIS TD2ODIS : Boolean := False; -- Write-only. TE1ODIS TE1ODIS : Boolean := False; -- Write-only. TE2ODIS TE2ODIS : Boolean := False; -- Write-only. TF1ODIS TF1ODIS : Boolean := False; -- Write-only. TF2ODIS TF2ODIS : Boolean := False; -- unspecified Reserved_12_31 : HAL.UInt20 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for ODISR_Register use record TA1ODIS at 0 range 0 .. 0; TA2ODIS at 0 range 1 .. 1; TB1ODIS at 0 range 2 .. 2; TB2ODIS at 0 range 3 .. 3; TC1ODIS at 0 range 4 .. 4; TC2ODIS at 0 range 5 .. 5; TD1ODIS at 0 range 6 .. 6; TD2ODIS at 0 range 7 .. 7; TE1ODIS at 0 range 8 .. 8; TE2ODIS at 0 range 9 .. 9; TF1ODIS at 0 range 10 .. 10; TF2ODIS at 0 range 11 .. 11; Reserved_12_31 at 0 range 12 .. 31; end record; -- Output Disable Status Register type ODSR_Register is record -- Read-only. Timer A Output 1 disable status TA1ODS : Boolean; -- Read-only. Timer A Output 2 disable status TA2ODS : Boolean; -- Read-only. Timer B Output 1 disable status TB1ODS : Boolean; -- Read-only. Timer B Output 2 disable status TB2ODS : Boolean; -- Read-only. Timer C Output 1 disable status TC1ODS : Boolean; -- Read-only. Timer C Output 2 disable status TC2ODS : Boolean; -- Read-only. Timer D Output 1 disable status TD1ODS : Boolean; -- Read-only. Timer D Output 2 disable status TD2ODS : Boolean; -- Read-only. Timer E Output 1 disable status TE1ODS : Boolean; -- Read-only. Timer E Output 2 disable status TE2ODS : Boolean; -- Read-only. TF1ODS TF1ODS : Boolean; -- Read-only. TF2ODS TF2ODS : Boolean; -- unspecified Reserved_12_31 : HAL.UInt20; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for ODSR_Register use record TA1ODS at 0 range 0 .. 0; TA2ODS at 0 range 1 .. 1; TB1ODS at 0 range 2 .. 2; TB2ODS at 0 range 3 .. 3; TC1ODS at 0 range 4 .. 4; TC2ODS at 0 range 5 .. 5; TD1ODS at 0 range 6 .. 6; TD2ODS at 0 range 7 .. 7; TE1ODS at 0 range 8 .. 8; TE2ODS at 0 range 9 .. 9; TF1ODS at 0 range 10 .. 10; TF2ODS at 0 range 11 .. 11; Reserved_12_31 at 0 range 12 .. 31; end record; subtype BMCR_BMCLK_Field is HAL.UInt4; subtype BMCR_BMPRSC_Field is HAL.UInt4; -- Burst Mode Control Register type BMCR_Register is record -- Burst Mode enable BME : Boolean := False; -- Burst Mode operating mode BMOM : Boolean := False; -- Burst Mode Clock source BMCLK : BMCR_BMCLK_Field := 16#0#; -- Burst Mode Prescaler BMPRSC : BMCR_BMPRSC_Field := 16#0#; -- Burst Mode Preload Enable BMPREN : Boolean := False; -- unspecified Reserved_11_15 : HAL.UInt5 := 16#0#; -- Master Timer Burst Mode MTBM : Boolean := False; -- Timer A Burst Mode TABM : Boolean := False; -- Timer B Burst Mode TBBM : Boolean := False; -- Timer C Burst Mode TCBM : Boolean := False; -- Timer D Burst Mode TDBM : Boolean := False; -- Timer E Burst Mode TEBM : Boolean := False; -- Timer f Burst Mode TFBM : Boolean := False; -- unspecified Reserved_23_30 : HAL.UInt8 := 16#0#; -- Burst Mode Status BMSTAT : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for BMCR_Register use record BME at 0 range 0 .. 0; BMOM at 0 range 1 .. 1; BMCLK at 0 range 2 .. 5; BMPRSC at 0 range 6 .. 9; BMPREN at 0 range 10 .. 10; Reserved_11_15 at 0 range 11 .. 15; MTBM at 0 range 16 .. 16; TABM at 0 range 17 .. 17; TBBM at 0 range 18 .. 18; TCBM at 0 range 19 .. 19; TDBM at 0 range 20 .. 20; TEBM at 0 range 21 .. 21; TFBM at 0 range 22 .. 22; Reserved_23_30 at 0 range 23 .. 30; BMSTAT at 0 range 31 .. 31; end record; -- BMTRG_MSTCMP array type BMTRG_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for BMTRG_MSTCMP type BMTRG_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : BMTRG_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for BMTRG_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- BMTRG_TACMP array type BMTRG_TACMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for BMTRG_TACMP type BMTRG_TACMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TACMP as a value Val : HAL.UInt2; when True => -- TACMP as an array Arr : BMTRG_TACMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for BMTRG_TACMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- BMTRG_TBCMP array type BMTRG_TBCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for BMTRG_TBCMP type BMTRG_TBCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TBCMP as a value Val : HAL.UInt2; when True => -- TBCMP as an array Arr : BMTRG_TBCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for BMTRG_TBCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- BMTRG_TCCMP array type BMTRG_TCCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for BMTRG_TCCMP type BMTRG_TCCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TCCMP as a value Val : HAL.UInt2; when True => -- TCCMP as an array Arr : BMTRG_TCCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for BMTRG_TCCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- BMTRG_TDCMP array type BMTRG_TDCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for BMTRG_TDCMP type BMTRG_TDCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TDCMP as a value Val : HAL.UInt2; when True => -- TDCMP as an array Arr : BMTRG_TDCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for BMTRG_TDCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- BMTRG_TECMP array type BMTRG_TECMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for BMTRG_TECMP type BMTRG_TECMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TECMP as a value Val : HAL.UInt2; when True => -- TECMP as an array Arr : BMTRG_TECMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for BMTRG_TECMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- BMTRG_TDEEV array type BMTRG_TDEEV_Field_Array is array (7 .. 8) of Boolean with Component_Size => 1, Size => 2; -- Type definition for BMTRG_TDEEV type BMTRG_TDEEV_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TDEEV as a value Val : HAL.UInt2; when True => -- TDEEV as an array Arr : BMTRG_TDEEV_Field_Array; end case; end record with Unchecked_Union, Size => 2; for BMTRG_TDEEV_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- BMTRG_EEV array type BMTRG_EEV_Field_Array is array (7 .. 8) of Boolean with Component_Size => 1, Size => 2; -- Type definition for BMTRG_EEV type BMTRG_EEV_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EEV as a value Val : HAL.UInt2; when True => -- EEV as an array Arr : BMTRG_EEV_Field_Array; end case; end record with Unchecked_Union, Size => 2; for BMTRG_EEV_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- BMTRG type BMTRG_Register is record -- SW SW : Boolean := False; -- MSTRST MSTRST : Boolean := False; -- MSTREP MSTREP : Boolean := False; -- MSTCMP1 MSTCMP : BMTRG_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- TARST TARST : Boolean := False; -- TAREP TAREP : Boolean := False; -- TACMP1 TACMP : BMTRG_TACMP_Field := (As_Array => False, Val => 16#0#); -- TBRST TBRST : Boolean := False; -- TBREP TBREP : Boolean := False; -- TBCMP1 TBCMP : BMTRG_TBCMP_Field := (As_Array => False, Val => 16#0#); -- TCRST TCRST : Boolean := False; -- TCREP TCREP : Boolean := False; -- TCCMP1 TCCMP : BMTRG_TCCMP_Field := (As_Array => False, Val => 16#0#); -- TDRST TDRST : Boolean := False; -- TDREP TDREP : Boolean := False; -- TDCMP1 TDCMP : BMTRG_TDCMP_Field := (As_Array => False, Val => 16#0#); -- TERST TERST : Boolean := False; -- TEREP TEREP : Boolean := False; -- TECMP1 TECMP : BMTRG_TECMP_Field := (As_Array => False, Val => 16#0#); -- TDEEV7 TDEEV : BMTRG_TDEEV_Field := (As_Array => False, Val => 16#0#); -- EEV7 EEV : BMTRG_EEV_Field := (As_Array => False, Val => 16#0#); -- OCHPEV OCHPEV : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for BMTRG_Register use record SW at 0 range 0 .. 0; MSTRST at 0 range 1 .. 1; MSTREP at 0 range 2 .. 2; MSTCMP at 0 range 3 .. 6; TARST at 0 range 7 .. 7; TAREP at 0 range 8 .. 8; TACMP at 0 range 9 .. 10; TBRST at 0 range 11 .. 11; TBREP at 0 range 12 .. 12; TBCMP at 0 range 13 .. 14; TCRST at 0 range 15 .. 15; TCREP at 0 range 16 .. 16; TCCMP at 0 range 17 .. 18; TDRST at 0 range 19 .. 19; TDREP at 0 range 20 .. 20; TDCMP at 0 range 21 .. 22; TERST at 0 range 23 .. 23; TEREP at 0 range 24 .. 24; TECMP at 0 range 25 .. 26; TDEEV at 0 range 27 .. 28; EEV at 0 range 29 .. 30; OCHPEV at 0 range 31 .. 31; end record; subtype BMCMPR_BMCMP_Field is HAL.UInt16; -- BMCMPR type BMCMPR_Register is record -- BMCMP BMCMP : BMCMPR_BMCMP_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for BMCMPR_Register use record BMCMP at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype BMPER_BMPER_Field is HAL.UInt16; -- Burst Mode Period Register type BMPER_Register is record -- Burst mode Period BMPER : BMPER_BMPER_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for BMPER_Register use record BMPER at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype EECR1_EE1SRC_Field is HAL.UInt2; subtype EECR1_EE1SNS_Field is HAL.UInt2; subtype EECR1_EE2SRC_Field is HAL.UInt2; subtype EECR1_EE2SNS_Field is HAL.UInt2; subtype EECR1_EE3SRC_Field is HAL.UInt2; subtype EECR1_EE3SNS_Field is HAL.UInt2; subtype EECR1_EE4SRC_Field is HAL.UInt2; subtype EECR1_EE4SNS_Field is HAL.UInt2; subtype EECR1_EE5SRC_Field is HAL.UInt2; subtype EECR1_EE5SNS_Field is HAL.UInt2; -- Timer External Event Control Register 1 type EECR1_Register is record -- External Event 1 Source EE1SRC : EECR1_EE1SRC_Field := 16#0#; -- External Event 1 Polarity EE1POL : Boolean := False; -- External Event 1 Sensitivity EE1SNS : EECR1_EE1SNS_Field := 16#0#; -- External Event 1 Fast mode EE1FAST : Boolean := False; -- External Event 2 Source EE2SRC : EECR1_EE2SRC_Field := 16#0#; -- External Event 2 Polarity EE2POL : Boolean := False; -- External Event 2 Sensitivity EE2SNS : EECR1_EE2SNS_Field := 16#0#; -- External Event 2 Fast mode EE2FAST : Boolean := False; -- External Event 3 Source EE3SRC : EECR1_EE3SRC_Field := 16#0#; -- External Event 3 Polarity EE3POL : Boolean := False; -- External Event 3 Sensitivity EE3SNS : EECR1_EE3SNS_Field := 16#0#; -- External Event 3 Fast mode EE3FAST : Boolean := False; -- External Event 4 Source EE4SRC : EECR1_EE4SRC_Field := 16#0#; -- External Event 4 Polarity EE4POL : Boolean := False; -- External Event 4 Sensitivity EE4SNS : EECR1_EE4SNS_Field := 16#0#; -- External Event 4 Fast mode EE4FAST : Boolean := False; -- External Event 5 Source EE5SRC : EECR1_EE5SRC_Field := 16#0#; -- External Event 5 Polarity EE5POL : Boolean := False; -- External Event 5 Sensitivity EE5SNS : EECR1_EE5SNS_Field := 16#0#; -- External Event 5 Fast mode EE5FAST : Boolean := False; -- unspecified Reserved_30_31 : HAL.UInt2 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for EECR1_Register use record EE1SRC at 0 range 0 .. 1; EE1POL at 0 range 2 .. 2; EE1SNS at 0 range 3 .. 4; EE1FAST at 0 range 5 .. 5; EE2SRC at 0 range 6 .. 7; EE2POL at 0 range 8 .. 8; EE2SNS at 0 range 9 .. 10; EE2FAST at 0 range 11 .. 11; EE3SRC at 0 range 12 .. 13; EE3POL at 0 range 14 .. 14; EE3SNS at 0 range 15 .. 16; EE3FAST at 0 range 17 .. 17; EE4SRC at 0 range 18 .. 19; EE4POL at 0 range 20 .. 20; EE4SNS at 0 range 21 .. 22; EE4FAST at 0 range 23 .. 23; EE5SRC at 0 range 24 .. 25; EE5POL at 0 range 26 .. 26; EE5SNS at 0 range 27 .. 28; EE5FAST at 0 range 29 .. 29; Reserved_30_31 at 0 range 30 .. 31; end record; subtype EECR2_EE6SRC_Field is HAL.UInt2; subtype EECR2_EE6SNS_Field is HAL.UInt2; subtype EECR2_EE7SRC_Field is HAL.UInt2; subtype EECR2_EE7SNS_Field is HAL.UInt2; subtype EECR2_EE8SRC_Field is HAL.UInt2; subtype EECR2_EE8SNS_Field is HAL.UInt2; subtype EECR2_EE9SRC_Field is HAL.UInt2; subtype EECR2_EE9SNS_Field is HAL.UInt2; subtype EECR2_EE10SRC_Field is HAL.UInt2; subtype EECR2_EE10SNS_Field is HAL.UInt2; -- Timer External Event Control Register 2 type EECR2_Register is record -- EE6SRC EE6SRC : EECR2_EE6SRC_Field := 16#0#; -- EE6POL EE6POL : Boolean := False; -- EE6SNS EE6SNS : EECR2_EE6SNS_Field := 16#0#; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- EE7SRC EE7SRC : EECR2_EE7SRC_Field := 16#0#; -- EE7POL EE7POL : Boolean := False; -- EE7SNS EE7SNS : EECR2_EE7SNS_Field := 16#0#; -- unspecified Reserved_11_11 : HAL.Bit := 16#0#; -- EE8SRC EE8SRC : EECR2_EE8SRC_Field := 16#0#; -- EE8POL EE8POL : Boolean := False; -- EE8SNS EE8SNS : EECR2_EE8SNS_Field := 16#0#; -- unspecified Reserved_17_17 : HAL.Bit := 16#0#; -- EE9SRC EE9SRC : EECR2_EE9SRC_Field := 16#0#; -- EE9POL EE9POL : Boolean := False; -- EE9SNS EE9SNS : EECR2_EE9SNS_Field := 16#0#; -- unspecified Reserved_23_23 : HAL.Bit := 16#0#; -- EE10SRC EE10SRC : EECR2_EE10SRC_Field := 16#0#; -- EE10POL EE10POL : Boolean := False; -- EE10SNS EE10SNS : EECR2_EE10SNS_Field := 16#0#; -- unspecified Reserved_29_31 : HAL.UInt3 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for EECR2_Register use record EE6SRC at 0 range 0 .. 1; EE6POL at 0 range 2 .. 2; EE6SNS at 0 range 3 .. 4; Reserved_5_5 at 0 range 5 .. 5; EE7SRC at 0 range 6 .. 7; EE7POL at 0 range 8 .. 8; EE7SNS at 0 range 9 .. 10; Reserved_11_11 at 0 range 11 .. 11; EE8SRC at 0 range 12 .. 13; EE8POL at 0 range 14 .. 14; EE8SNS at 0 range 15 .. 16; Reserved_17_17 at 0 range 17 .. 17; EE9SRC at 0 range 18 .. 19; EE9POL at 0 range 20 .. 20; EE9SNS at 0 range 21 .. 22; Reserved_23_23 at 0 range 23 .. 23; EE10SRC at 0 range 24 .. 25; EE10POL at 0 range 26 .. 26; EE10SNS at 0 range 27 .. 28; Reserved_29_31 at 0 range 29 .. 31; end record; subtype EECR3_EE6F_Field is HAL.UInt4; subtype EECR3_EE7F_Field is HAL.UInt4; subtype EECR3_EE8F_Field is HAL.UInt4; subtype EECR3_EE9F_Field is HAL.UInt4; subtype EECR3_EE10F_Field is HAL.UInt4; subtype EECR3_EEVSD_Field is HAL.UInt2; -- Timer External Event Control Register 3 type EECR3_Register is record -- EE6F EE6F : EECR3_EE6F_Field := 16#0#; -- unspecified Reserved_4_5 : HAL.UInt2 := 16#0#; -- EE7F EE7F : EECR3_EE7F_Field := 16#0#; -- unspecified Reserved_10_11 : HAL.UInt2 := 16#0#; -- EE8F EE8F : EECR3_EE8F_Field := 16#0#; -- unspecified Reserved_16_17 : HAL.UInt2 := 16#0#; -- EE9F EE9F : EECR3_EE9F_Field := 16#0#; -- unspecified Reserved_22_23 : HAL.UInt2 := 16#0#; -- EE10F EE10F : EECR3_EE10F_Field := 16#0#; -- unspecified Reserved_28_29 : HAL.UInt2 := 16#0#; -- EEVSD EEVSD : EECR3_EEVSD_Field := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for EECR3_Register use record EE6F at 0 range 0 .. 3; Reserved_4_5 at 0 range 4 .. 5; EE7F at 0 range 6 .. 9; Reserved_10_11 at 0 range 10 .. 11; EE8F at 0 range 12 .. 15; Reserved_16_17 at 0 range 16 .. 17; EE9F at 0 range 18 .. 21; Reserved_22_23 at 0 range 22 .. 23; EE10F at 0 range 24 .. 27; Reserved_28_29 at 0 range 28 .. 29; EEVSD at 0 range 30 .. 31; end record; -- ADC1R_AD1MC array type ADC1R_AD1MC_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for ADC1R_AD1MC type ADC1R_AD1MC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD1MC as a value Val : HAL.UInt4; when True => -- AD1MC as an array Arr : ADC1R_AD1MC_Field_Array; end case; end record with Unchecked_Union, Size => 4; for ADC1R_AD1MC_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- ADC1R_AD1EEV array type ADC1R_AD1EEV_Field_Array is array (1 .. 5) of Boolean with Component_Size => 1, Size => 5; -- Type definition for ADC1R_AD1EEV type ADC1R_AD1EEV_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD1EEV as a value Val : HAL.UInt5; when True => -- AD1EEV as an array Arr : ADC1R_AD1EEV_Field_Array; end case; end record with Unchecked_Union, Size => 5; for ADC1R_AD1EEV_Field use record Val at 0 range 0 .. 4; Arr at 0 range 0 .. 4; end record; -- ADC1R_AD1TAC array type ADC1R_AD1TAC_Field_Array is array (2 .. 4) of Boolean with Component_Size => 1, Size => 3; -- Type definition for ADC1R_AD1TAC type ADC1R_AD1TAC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD1TAC as a value Val : HAL.UInt3; when True => -- AD1TAC as an array Arr : ADC1R_AD1TAC_Field_Array; end case; end record with Unchecked_Union, Size => 3; for ADC1R_AD1TAC_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- ADC1R_AD1TBC array type ADC1R_AD1TBC_Field_Array is array (2 .. 4) of Boolean with Component_Size => 1, Size => 3; -- Type definition for ADC1R_AD1TBC type ADC1R_AD1TBC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD1TBC as a value Val : HAL.UInt3; when True => -- AD1TBC as an array Arr : ADC1R_AD1TBC_Field_Array; end case; end record with Unchecked_Union, Size => 3; for ADC1R_AD1TBC_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- ADC1R_AD1TCC array type ADC1R_AD1TCC_Field_Array is array (2 .. 4) of Boolean with Component_Size => 1, Size => 3; -- Type definition for ADC1R_AD1TCC type ADC1R_AD1TCC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD1TCC as a value Val : HAL.UInt3; when True => -- AD1TCC as an array Arr : ADC1R_AD1TCC_Field_Array; end case; end record with Unchecked_Union, Size => 3; for ADC1R_AD1TCC_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- ADC1R_AD1TDC array type ADC1R_AD1TDC_Field_Array is array (2 .. 4) of Boolean with Component_Size => 1, Size => 3; -- Type definition for ADC1R_AD1TDC type ADC1R_AD1TDC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD1TDC as a value Val : HAL.UInt3; when True => -- AD1TDC as an array Arr : ADC1R_AD1TDC_Field_Array; end case; end record with Unchecked_Union, Size => 3; for ADC1R_AD1TDC_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- ADC1R_AD1TEC array type ADC1R_AD1TEC_Field_Array is array (2 .. 4) of Boolean with Component_Size => 1, Size => 3; -- Type definition for ADC1R_AD1TEC type ADC1R_AD1TEC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD1TEC as a value Val : HAL.UInt3; when True => -- AD1TEC as an array Arr : ADC1R_AD1TEC_Field_Array; end case; end record with Unchecked_Union, Size => 3; for ADC1R_AD1TEC_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- ADC Trigger 1 Register type ADC1R_Register is record -- ADC trigger 1 on Master Compare 1 AD1MC : ADC1R_AD1MC_Field := (As_Array => False, Val => 16#0#); -- ADC trigger 1 on Master Period AD1MPER : Boolean := False; -- ADC trigger 1 on External Event 1 AD1EEV : ADC1R_AD1EEV_Field := (As_Array => False, Val => 16#0#); -- ADC trigger 1 on Timer A compare 2 AD1TAC : ADC1R_AD1TAC_Field := (As_Array => False, Val => 16#0#); -- ADC trigger 1 on Timer A Period AD1TAPER : Boolean := False; -- ADC trigger 1 on Timer A Reset AD1TARST : Boolean := False; -- ADC trigger 1 on Timer B compare 2 AD1TBC : ADC1R_AD1TBC_Field := (As_Array => False, Val => 16#0#); -- ADC trigger 1 on Timer B Period AD1TBPER : Boolean := False; -- ADC trigger 1 on Timer B Reset AD1TBRST : Boolean := False; -- ADC trigger 1 on Timer C compare 2 AD1TCC : ADC1R_AD1TCC_Field := (As_Array => False, Val => 16#0#); -- ADC trigger 1 on Timer C Period AD1TCPER : Boolean := False; -- ADC trigger 1 on Timer D compare 2 AD1TDC : ADC1R_AD1TDC_Field := (As_Array => False, Val => 16#0#); -- ADC trigger 1 on Timer D Period AD1TDPER : Boolean := False; -- ADC trigger 1 on Timer E compare 2 AD1TEC : ADC1R_AD1TEC_Field := (As_Array => False, Val => 16#0#); -- ADC trigger 1 on Timer E Period AD1TEPER : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for ADC1R_Register use record AD1MC at 0 range 0 .. 3; AD1MPER at 0 range 4 .. 4; AD1EEV at 0 range 5 .. 9; AD1TAC at 0 range 10 .. 12; AD1TAPER at 0 range 13 .. 13; AD1TARST at 0 range 14 .. 14; AD1TBC at 0 range 15 .. 17; AD1TBPER at 0 range 18 .. 18; AD1TBRST at 0 range 19 .. 19; AD1TCC at 0 range 20 .. 22; AD1TCPER at 0 range 23 .. 23; AD1TDC at 0 range 24 .. 26; AD1TDPER at 0 range 27 .. 27; AD1TEC at 0 range 28 .. 30; AD1TEPER at 0 range 31 .. 31; end record; -- ADC2R_AD2MC array type ADC2R_AD2MC_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for ADC2R_AD2MC type ADC2R_AD2MC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD2MC as a value Val : HAL.UInt4; when True => -- AD2MC as an array Arr : ADC2R_AD2MC_Field_Array; end case; end record with Unchecked_Union, Size => 4; for ADC2R_AD2MC_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- ADC2R_AD2EEV array type ADC2R_AD2EEV_Field_Array is array (6 .. 10) of Boolean with Component_Size => 1, Size => 5; -- Type definition for ADC2R_AD2EEV type ADC2R_AD2EEV_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD2EEV as a value Val : HAL.UInt5; when True => -- AD2EEV as an array Arr : ADC2R_AD2EEV_Field_Array; end case; end record with Unchecked_Union, Size => 5; for ADC2R_AD2EEV_Field use record Val at 0 range 0 .. 4; Arr at 0 range 0 .. 4; end record; -- ADC2R_AD2TAC array type ADC2R_AD2TAC_Field_Array is array (2 .. 4) of Boolean with Component_Size => 1, Size => 3; -- Type definition for ADC2R_AD2TAC type ADC2R_AD2TAC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD2TAC as a value Val : HAL.UInt3; when True => -- AD2TAC as an array Arr : ADC2R_AD2TAC_Field_Array; end case; end record with Unchecked_Union, Size => 3; for ADC2R_AD2TAC_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- ADC2R_AD2TBC array type ADC2R_AD2TBC_Field_Array is array (2 .. 4) of Boolean with Component_Size => 1, Size => 3; -- Type definition for ADC2R_AD2TBC type ADC2R_AD2TBC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD2TBC as a value Val : HAL.UInt3; when True => -- AD2TBC as an array Arr : ADC2R_AD2TBC_Field_Array; end case; end record with Unchecked_Union, Size => 3; for ADC2R_AD2TBC_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- ADC2R_AD2TCC array type ADC2R_AD2TCC_Field_Array is array (2 .. 4) of Boolean with Component_Size => 1, Size => 3; -- Type definition for ADC2R_AD2TCC type ADC2R_AD2TCC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD2TCC as a value Val : HAL.UInt3; when True => -- AD2TCC as an array Arr : ADC2R_AD2TCC_Field_Array; end case; end record with Unchecked_Union, Size => 3; for ADC2R_AD2TCC_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- ADC2R_AD2TDC array type ADC2R_AD2TDC_Field_Array is array (2 .. 4) of Boolean with Component_Size => 1, Size => 3; -- Type definition for ADC2R_AD2TDC type ADC2R_AD2TDC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD2TDC as a value Val : HAL.UInt3; when True => -- AD2TDC as an array Arr : ADC2R_AD2TDC_Field_Array; end case; end record with Unchecked_Union, Size => 3; for ADC2R_AD2TDC_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- ADC2R_AD2TEC array type ADC2R_AD2TEC_Field_Array is array (2 .. 4) of Boolean with Component_Size => 1, Size => 3; -- Type definition for ADC2R_AD2TEC type ADC2R_AD2TEC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD2TEC as a value Val : HAL.UInt3; when True => -- AD2TEC as an array Arr : ADC2R_AD2TEC_Field_Array; end case; end record with Unchecked_Union, Size => 3; for ADC2R_AD2TEC_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- ADC Trigger 2 Register type ADC2R_Register is record -- ADC trigger 2 on Master Compare 1 AD2MC : ADC2R_AD2MC_Field := (As_Array => False, Val => 16#0#); -- ADC trigger 2 on Master Period AD2MPER : Boolean := False; -- ADC trigger 2 on External Event 6 AD2EEV : ADC2R_AD2EEV_Field := (As_Array => False, Val => 16#0#); -- ADC trigger 2 on Timer A compare 2 AD2TAC : ADC2R_AD2TAC_Field := (As_Array => False, Val => 16#0#); -- ADC trigger 2 on Timer A Period AD2TAPER : Boolean := False; -- ADC trigger 2 on Timer B compare 2 AD2TBC : ADC2R_AD2TBC_Field := (As_Array => False, Val => 16#0#); -- ADC trigger 2 on Timer B Period AD2TBPER : Boolean := False; -- ADC trigger 2 on Timer C compare 2 AD2TCC : ADC2R_AD2TCC_Field := (As_Array => False, Val => 16#0#); -- ADC trigger 2 on Timer C Period AD2TCPER : Boolean := False; -- ADC trigger 2 on Timer C Reset AD2TCRST : Boolean := False; -- ADC trigger 2 on Timer D compare 2 AD2TDC : ADC2R_AD2TDC_Field := (As_Array => False, Val => 16#0#); -- ADC trigger 2 on Timer D Period AD2TDPER : Boolean := False; -- ADC trigger 2 on Timer D Reset AD2TDRST : Boolean := False; -- ADC trigger 2 on Timer E compare 2 AD2TEC : ADC2R_AD2TEC_Field := (As_Array => False, Val => 16#0#); -- ADC trigger 2 on Timer E Reset AD2TERST : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for ADC2R_Register use record AD2MC at 0 range 0 .. 3; AD2MPER at 0 range 4 .. 4; AD2EEV at 0 range 5 .. 9; AD2TAC at 0 range 10 .. 12; AD2TAPER at 0 range 13 .. 13; AD2TBC at 0 range 14 .. 16; AD2TBPER at 0 range 17 .. 17; AD2TCC at 0 range 18 .. 20; AD2TCPER at 0 range 21 .. 21; AD2TCRST at 0 range 22 .. 22; AD2TDC at 0 range 23 .. 25; AD2TDPER at 0 range 26 .. 26; AD2TDRST at 0 range 27 .. 27; AD2TEC at 0 range 28 .. 30; AD2TERST at 0 range 31 .. 31; end record; -- ADC3R_AD1MC array type ADC3R_AD1MC_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for ADC3R_AD1MC type ADC3R_AD1MC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD1MC as a value Val : HAL.UInt4; when True => -- AD1MC as an array Arr : ADC3R_AD1MC_Field_Array; end case; end record with Unchecked_Union, Size => 4; for ADC3R_AD1MC_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- ADC3R_AD1EEV array type ADC3R_AD1EEV_Field_Array is array (1 .. 5) of Boolean with Component_Size => 1, Size => 5; -- Type definition for ADC3R_AD1EEV type ADC3R_AD1EEV_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD1EEV as a value Val : HAL.UInt5; when True => -- AD1EEV as an array Arr : ADC3R_AD1EEV_Field_Array; end case; end record with Unchecked_Union, Size => 5; for ADC3R_AD1EEV_Field use record Val at 0 range 0 .. 4; Arr at 0 range 0 .. 4; end record; -- ADC3R_AD1TAC array type ADC3R_AD1TAC_Field_Array is array (2 .. 4) of Boolean with Component_Size => 1, Size => 3; -- Type definition for ADC3R_AD1TAC type ADC3R_AD1TAC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD1TAC as a value Val : HAL.UInt3; when True => -- AD1TAC as an array Arr : ADC3R_AD1TAC_Field_Array; end case; end record with Unchecked_Union, Size => 3; for ADC3R_AD1TAC_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- ADC3R_AD1TBC array type ADC3R_AD1TBC_Field_Array is array (2 .. 4) of Boolean with Component_Size => 1, Size => 3; -- Type definition for ADC3R_AD1TBC type ADC3R_AD1TBC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD1TBC as a value Val : HAL.UInt3; when True => -- AD1TBC as an array Arr : ADC3R_AD1TBC_Field_Array; end case; end record with Unchecked_Union, Size => 3; for ADC3R_AD1TBC_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- ADC3R_AD1TCC array type ADC3R_AD1TCC_Field_Array is array (2 .. 4) of Boolean with Component_Size => 1, Size => 3; -- Type definition for ADC3R_AD1TCC type ADC3R_AD1TCC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD1TCC as a value Val : HAL.UInt3; when True => -- AD1TCC as an array Arr : ADC3R_AD1TCC_Field_Array; end case; end record with Unchecked_Union, Size => 3; for ADC3R_AD1TCC_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- ADC3R_AD1TDC array type ADC3R_AD1TDC_Field_Array is array (2 .. 4) of Boolean with Component_Size => 1, Size => 3; -- Type definition for ADC3R_AD1TDC type ADC3R_AD1TDC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD1TDC as a value Val : HAL.UInt3; when True => -- AD1TDC as an array Arr : ADC3R_AD1TDC_Field_Array; end case; end record with Unchecked_Union, Size => 3; for ADC3R_AD1TDC_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- ADC3R_AD1TEC array type ADC3R_AD1TEC_Field_Array is array (2 .. 4) of Boolean with Component_Size => 1, Size => 3; -- Type definition for ADC3R_AD1TEC type ADC3R_AD1TEC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD1TEC as a value Val : HAL.UInt3; when True => -- AD1TEC as an array Arr : ADC3R_AD1TEC_Field_Array; end case; end record with Unchecked_Union, Size => 3; for ADC3R_AD1TEC_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- ADC Trigger 3 Register type ADC3R_Register is record -- AD1MC1 AD1MC : ADC3R_AD1MC_Field := (As_Array => False, Val => 16#0#); -- AD1MPER AD1MPER : Boolean := False; -- AD1EEV1 AD1EEV : ADC3R_AD1EEV_Field := (As_Array => False, Val => 16#0#); -- AD1TAC2 AD1TAC : ADC3R_AD1TAC_Field := (As_Array => False, Val => 16#0#); -- AD1TAPER AD1TAPER : Boolean := False; -- AD1TARST AD1TARST : Boolean := False; -- AD1TBC2 AD1TBC : ADC3R_AD1TBC_Field := (As_Array => False, Val => 16#0#); -- AD1TBPER AD1TBPER : Boolean := False; -- AD1TBRST AD1TBRST : Boolean := False; -- AD1TCC2 AD1TCC : ADC3R_AD1TCC_Field := (As_Array => False, Val => 16#0#); -- AD1TCPER AD1TCPER : Boolean := False; -- AD1TDC2 AD1TDC : ADC3R_AD1TDC_Field := (As_Array => False, Val => 16#0#); -- AD1TDPER AD1TDPER : Boolean := False; -- AD1TEC2 AD1TEC : ADC3R_AD1TEC_Field := (As_Array => False, Val => 16#0#); -- AD1TEPER AD1TEPER : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for ADC3R_Register use record AD1MC at 0 range 0 .. 3; AD1MPER at 0 range 4 .. 4; AD1EEV at 0 range 5 .. 9; AD1TAC at 0 range 10 .. 12; AD1TAPER at 0 range 13 .. 13; AD1TARST at 0 range 14 .. 14; AD1TBC at 0 range 15 .. 17; AD1TBPER at 0 range 18 .. 18; AD1TBRST at 0 range 19 .. 19; AD1TCC at 0 range 20 .. 22; AD1TCPER at 0 range 23 .. 23; AD1TDC at 0 range 24 .. 26; AD1TDPER at 0 range 27 .. 27; AD1TEC at 0 range 28 .. 30; AD1TEPER at 0 range 31 .. 31; end record; -- ADC4R_AD2MC array type ADC4R_AD2MC_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for ADC4R_AD2MC type ADC4R_AD2MC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD2MC as a value Val : HAL.UInt4; when True => -- AD2MC as an array Arr : ADC4R_AD2MC_Field_Array; end case; end record with Unchecked_Union, Size => 4; for ADC4R_AD2MC_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- ADC4R_AD2EEV array type ADC4R_AD2EEV_Field_Array is array (6 .. 10) of Boolean with Component_Size => 1, Size => 5; -- Type definition for ADC4R_AD2EEV type ADC4R_AD2EEV_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD2EEV as a value Val : HAL.UInt5; when True => -- AD2EEV as an array Arr : ADC4R_AD2EEV_Field_Array; end case; end record with Unchecked_Union, Size => 5; for ADC4R_AD2EEV_Field use record Val at 0 range 0 .. 4; Arr at 0 range 0 .. 4; end record; -- ADC4R_AD2TAC array type ADC4R_AD2TAC_Field_Array is array (2 .. 4) of Boolean with Component_Size => 1, Size => 3; -- Type definition for ADC4R_AD2TAC type ADC4R_AD2TAC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD2TAC as a value Val : HAL.UInt3; when True => -- AD2TAC as an array Arr : ADC4R_AD2TAC_Field_Array; end case; end record with Unchecked_Union, Size => 3; for ADC4R_AD2TAC_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- ADC4R_AD2TBC array type ADC4R_AD2TBC_Field_Array is array (2 .. 4) of Boolean with Component_Size => 1, Size => 3; -- Type definition for ADC4R_AD2TBC type ADC4R_AD2TBC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD2TBC as a value Val : HAL.UInt3; when True => -- AD2TBC as an array Arr : ADC4R_AD2TBC_Field_Array; end case; end record with Unchecked_Union, Size => 3; for ADC4R_AD2TBC_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- ADC4R_AD2TCC array type ADC4R_AD2TCC_Field_Array is array (2 .. 4) of Boolean with Component_Size => 1, Size => 3; -- Type definition for ADC4R_AD2TCC type ADC4R_AD2TCC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD2TCC as a value Val : HAL.UInt3; when True => -- AD2TCC as an array Arr : ADC4R_AD2TCC_Field_Array; end case; end record with Unchecked_Union, Size => 3; for ADC4R_AD2TCC_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- ADC4R_AD2TDC array type ADC4R_AD2TDC_Field_Array is array (2 .. 4) of Boolean with Component_Size => 1, Size => 3; -- Type definition for ADC4R_AD2TDC type ADC4R_AD2TDC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD2TDC as a value Val : HAL.UInt3; when True => -- AD2TDC as an array Arr : ADC4R_AD2TDC_Field_Array; end case; end record with Unchecked_Union, Size => 3; for ADC4R_AD2TDC_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- ADC4R_AD2TEC array type ADC4R_AD2TEC_Field_Array is array (2 .. 4) of Boolean with Component_Size => 1, Size => 3; -- Type definition for ADC4R_AD2TEC type ADC4R_AD2TEC_Field (As_Array : Boolean := False) is record case As_Array is when False => -- AD2TEC as a value Val : HAL.UInt3; when True => -- AD2TEC as an array Arr : ADC4R_AD2TEC_Field_Array; end case; end record with Unchecked_Union, Size => 3; for ADC4R_AD2TEC_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- ADC Trigger 4 Register type ADC4R_Register is record -- AD2MC1 AD2MC : ADC4R_AD2MC_Field := (As_Array => False, Val => 16#0#); -- AD2MPER AD2MPER : Boolean := False; -- AD2EEV6 AD2EEV : ADC4R_AD2EEV_Field := (As_Array => False, Val => 16#0#); -- AD2TAC2 AD2TAC : ADC4R_AD2TAC_Field := (As_Array => False, Val => 16#0#); -- AD2TAPER AD2TAPER : Boolean := False; -- AD2TBC2 AD2TBC : ADC4R_AD2TBC_Field := (As_Array => False, Val => 16#0#); -- AD2TBPER AD2TBPER : Boolean := False; -- AD2TCC2 AD2TCC : ADC4R_AD2TCC_Field := (As_Array => False, Val => 16#0#); -- AD2TCPER AD2TCPER : Boolean := False; -- AD2TCRST AD2TCRST : Boolean := False; -- AD2TDC2 AD2TDC : ADC4R_AD2TDC_Field := (As_Array => False, Val => 16#0#); -- AD2TDPER AD2TDPER : Boolean := False; -- AD2TDRST AD2TDRST : Boolean := False; -- AD2TEC2 AD2TEC : ADC4R_AD2TEC_Field := (As_Array => False, Val => 16#0#); -- AD2TERST AD2TERST : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for ADC4R_Register use record AD2MC at 0 range 0 .. 3; AD2MPER at 0 range 4 .. 4; AD2EEV at 0 range 5 .. 9; AD2TAC at 0 range 10 .. 12; AD2TAPER at 0 range 13 .. 13; AD2TBC at 0 range 14 .. 16; AD2TBPER at 0 range 17 .. 17; AD2TCC at 0 range 18 .. 20; AD2TCPER at 0 range 21 .. 21; AD2TCRST at 0 range 22 .. 22; AD2TDC at 0 range 23 .. 25; AD2TDPER at 0 range 26 .. 26; AD2TDRST at 0 range 27 .. 27; AD2TEC at 0 range 28 .. 30; AD2TERST at 0 range 31 .. 31; end record; subtype DLLCR_CALRTE_Field is HAL.UInt2; -- DLL Control Register type DLLCR_Register is record -- DLL Calibration Start CAL : Boolean := False; -- DLL Calibration Enable CALEN : Boolean := False; -- DLL Calibration rate CALRTE : DLLCR_CALRTE_Field := 16#0#; -- unspecified Reserved_4_31 : HAL.UInt28 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DLLCR_Register use record CAL at 0 range 0 .. 0; CALEN at 0 range 1 .. 1; CALRTE at 0 range 2 .. 3; Reserved_4_31 at 0 range 4 .. 31; end record; subtype FLTINR1_FLT1F_Field is HAL.UInt4; subtype FLTINR1_FLT2F_Field is HAL.UInt4; subtype FLTINR1_FLT3F_Field is HAL.UInt4; subtype FLTINR1_FLT4F_Field is HAL.UInt4; -- HRTIM Fault Input Register 1 type FLTINR1_Register is record -- FLT1E FLT1E : Boolean := False; -- FLT1P FLT1P : Boolean := False; -- FLT1SRC FLT1SRC : Boolean := False; -- FLT1F FLT1F : FLTINR1_FLT1F_Field := 16#0#; -- FLT1LCK FLT1LCK : Boolean := False; -- FLT2E FLT2E : Boolean := False; -- FLT2P FLT2P : Boolean := False; -- FLT2SRC FLT2SRC : Boolean := False; -- FLT2F FLT2F : FLTINR1_FLT2F_Field := 16#0#; -- FLT2LCK FLT2LCK : Boolean := False; -- FLT3E FLT3E : Boolean := False; -- FLT3P FLT3P : Boolean := False; -- FLT3SRC FLT3SRC : Boolean := False; -- FLT3F FLT3F : FLTINR1_FLT3F_Field := 16#0#; -- FLT3LCK FLT3LCK : Boolean := False; -- FLT4E FLT4E : Boolean := False; -- FLT4P FLT4P : Boolean := False; -- FLT4SRC FLT4SRC : Boolean := False; -- FLT4F FLT4F : FLTINR1_FLT4F_Field := 16#0#; -- FLT4LCK FLT4LCK : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for FLTINR1_Register use record FLT1E at 0 range 0 .. 0; FLT1P at 0 range 1 .. 1; FLT1SRC at 0 range 2 .. 2; FLT1F at 0 range 3 .. 6; FLT1LCK at 0 range 7 .. 7; FLT2E at 0 range 8 .. 8; FLT2P at 0 range 9 .. 9; FLT2SRC at 0 range 10 .. 10; FLT2F at 0 range 11 .. 14; FLT2LCK at 0 range 15 .. 15; FLT3E at 0 range 16 .. 16; FLT3P at 0 range 17 .. 17; FLT3SRC at 0 range 18 .. 18; FLT3F at 0 range 19 .. 22; FLT3LCK at 0 range 23 .. 23; FLT4E at 0 range 24 .. 24; FLT4P at 0 range 25 .. 25; FLT4SRC at 0 range 26 .. 26; FLT4F at 0 range 27 .. 30; FLT4LCK at 0 range 31 .. 31; end record; subtype FLTINR2_FLT5F_Field is HAL.UInt4; subtype FLTINR2_FLT6F_Field is HAL.UInt4; subtype FLTINR2_FLTSD_Field is HAL.UInt2; -- HRTIM Fault Input Register 2 type FLTINR2_Register is record -- FLT5E FLT5E : Boolean := False; -- FLT5P FLT5P : Boolean := False; -- FLT5SRC FLT5SRC : Boolean := False; -- FLT5F FLT5F : FLTINR2_FLT5F_Field := 16#0#; -- FLT5LCK FLT5LCK : Boolean := False; -- FLT6E FLT6E : Boolean := False; -- FLT6P FLT6P : Boolean := False; -- FLT6F FLT6SRC_0 : Boolean := False; -- FLT6F FLT6F : FLTINR2_FLT6F_Field := 16#0#; -- FLT6LCK FLT6LCK : Boolean := False; -- FLT1SRC_1 FLT1SRC_1 : Boolean := False; -- FLT2SRC_1 FLT2SRC_1 : Boolean := False; -- FLT3SRC_1 FLT3SRC_1 : Boolean := False; -- FLT4SRC_1 FLT4SRC_1 : Boolean := False; -- FLT5SRC_1 FLT5SRC_1 : Boolean := False; -- FLT6SRC FLT6SRC_1 : Boolean := False; -- unspecified Reserved_22_23 : HAL.UInt2 := 16#0#; -- FLTSD FLTSD : FLTINR2_FLTSD_Field := 16#0#; -- unspecified Reserved_26_31 : HAL.UInt6 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for FLTINR2_Register use record FLT5E at 0 range 0 .. 0; FLT5P at 0 range 1 .. 1; FLT5SRC at 0 range 2 .. 2; FLT5F at 0 range 3 .. 6; FLT5LCK at 0 range 7 .. 7; FLT6E at 0 range 8 .. 8; FLT6P at 0 range 9 .. 9; FLT6SRC_0 at 0 range 10 .. 10; FLT6F at 0 range 11 .. 14; FLT6LCK at 0 range 15 .. 15; FLT1SRC_1 at 0 range 16 .. 16; FLT2SRC_1 at 0 range 17 .. 17; FLT3SRC_1 at 0 range 18 .. 18; FLT4SRC_1 at 0 range 19 .. 19; FLT5SRC_1 at 0 range 20 .. 20; FLT6SRC_1 at 0 range 21 .. 21; Reserved_22_23 at 0 range 22 .. 23; FLTSD at 0 range 24 .. 25; Reserved_26_31 at 0 range 26 .. 31; end record; -- BDMUPDR_MCMP array type BDMUPDR_MCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for BDMUPDR_MCMP type BDMUPDR_MCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MCMP as a value Val : HAL.UInt4; when True => -- MCMP as an array Arr : BDMUPDR_MCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for BDMUPDR_MCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- BDMUPDR type BDMUPDR_Register is record -- MCR MCR : Boolean := False; -- MICR MICR : Boolean := False; -- MDIER MDIER : Boolean := False; -- MCNT MCNT : Boolean := False; -- MPER MPER : Boolean := False; -- MREP MREP : Boolean := False; -- MCMP1 MCMP : BDMUPDR_MCMP_Field := (As_Array => False, Val => 16#0#); -- unspecified Reserved_10_31 : HAL.UInt22 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for BDMUPDR_Register use record MCR at 0 range 0 .. 0; MICR at 0 range 1 .. 1; MDIER at 0 range 2 .. 2; MCNT at 0 range 3 .. 3; MPER at 0 range 4 .. 4; MREP at 0 range 5 .. 5; MCMP at 0 range 6 .. 9; Reserved_10_31 at 0 range 10 .. 31; end record; -- BDTAUPR_TIMxCMP array type BDTAUPR_TIMxCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for BDTAUPR_TIMxCMP type BDTAUPR_TIMxCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMxCMP as a value Val : HAL.UInt4; when True => -- TIMxCMP as an array Arr : BDTAUPR_TIMxCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for BDTAUPR_TIMxCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- BDTAUPR_TIMxEEFR array type BDTAUPR_TIMxEEFR_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for BDTAUPR_TIMxEEFR type BDTAUPR_TIMxEEFR_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMxEEFR as a value Val : HAL.UInt2; when True => -- TIMxEEFR as an array Arr : BDTAUPR_TIMxEEFR_Field_Array; end case; end record with Unchecked_Union, Size => 2; for BDTAUPR_TIMxEEFR_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Burst DMA Timerx update Register type BDTAUPR_Register is record -- HRTIM_TIMxCR register update enable TIMxCR : Boolean := False; -- HRTIM_TIMxICR register update enable TIMxICR : Boolean := False; -- HRTIM_TIMxDIER register update enable TIMxDIER : Boolean := False; -- HRTIM_CNTxR register update enable TIMxCNT : Boolean := False; -- HRTIM_PERxR register update enable TIMxPER : Boolean := False; -- HRTIM_REPxR register update enable TIMxREP : Boolean := False; -- HRTIM_CMP1xR register update enable TIMxCMP : BDTAUPR_TIMxCMP_Field := (As_Array => False, Val => 16#0#); -- HRTIM_DTxR register update enable TIMx_DTxR : Boolean := False; -- HRTIM_SET1xR register update enable TIMxSET1R : Boolean := False; -- HRTIM_RST1xR register update enable TIMxRST1R : Boolean := False; -- HRTIM_SET2xR register update enable TIMxSET2R : Boolean := False; -- HRTIM_RST2xR register update enable TIMxRST2R : Boolean := False; -- HRTIM_EEFxR1 register update enable TIMxEEFR : BDTAUPR_TIMxEEFR_Field := (As_Array => False, Val => 16#0#); -- HRTIM_RSTxR register update enable TIMxRSTR : Boolean := False; -- HRTIM_CHPxR register update enable TIMxCHPR : Boolean := False; -- HRTIM_OUTxR register update enable TIMxOUTR : Boolean := False; -- HRTIM_FLTxR register update enable TIMxFLTR : Boolean := False; -- TIMxCR2 TIMxCR2 : Boolean := False; -- TIMxEEFR3 TIMxEEFR3 : Boolean := False; -- unspecified Reserved_23_31 : HAL.UInt9 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for BDTAUPR_Register use record TIMxCR at 0 range 0 .. 0; TIMxICR at 0 range 1 .. 1; TIMxDIER at 0 range 2 .. 2; TIMxCNT at 0 range 3 .. 3; TIMxPER at 0 range 4 .. 4; TIMxREP at 0 range 5 .. 5; TIMxCMP at 0 range 6 .. 9; TIMx_DTxR at 0 range 10 .. 10; TIMxSET1R at 0 range 11 .. 11; TIMxRST1R at 0 range 12 .. 12; TIMxSET2R at 0 range 13 .. 13; TIMxRST2R at 0 range 14 .. 14; TIMxEEFR at 0 range 15 .. 16; TIMxRSTR at 0 range 17 .. 17; TIMxCHPR at 0 range 18 .. 18; TIMxOUTR at 0 range 19 .. 19; TIMxFLTR at 0 range 20 .. 20; TIMxCR2 at 0 range 21 .. 21; TIMxEEFR3 at 0 range 22 .. 22; Reserved_23_31 at 0 range 23 .. 31; end record; -- BDTBUPR_TIMxCMP array type BDTBUPR_TIMxCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for BDTBUPR_TIMxCMP type BDTBUPR_TIMxCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMxCMP as a value Val : HAL.UInt4; when True => -- TIMxCMP as an array Arr : BDTBUPR_TIMxCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for BDTBUPR_TIMxCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- BDTBUPR_TIMxEEFR array type BDTBUPR_TIMxEEFR_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for BDTBUPR_TIMxEEFR type BDTBUPR_TIMxEEFR_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMxEEFR as a value Val : HAL.UInt2; when True => -- TIMxEEFR as an array Arr : BDTBUPR_TIMxEEFR_Field_Array; end case; end record with Unchecked_Union, Size => 2; for BDTBUPR_TIMxEEFR_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Burst DMA Timerx update Register type BDTBUPR_Register is record -- HRTIM_TIMxCR register update enable TIMxCR : Boolean := False; -- HRTIM_TIMxICR register update enable TIMxICR : Boolean := False; -- HRTIM_TIMxDIER register update enable TIMxDIER : Boolean := False; -- HRTIM_CNTxR register update enable TIMxCNT : Boolean := False; -- HRTIM_PERxR register update enable TIMxPER : Boolean := False; -- HRTIM_REPxR register update enable TIMxREP : Boolean := False; -- HRTIM_CMP1xR register update enable TIMxCMP : BDTBUPR_TIMxCMP_Field := (As_Array => False, Val => 16#0#); -- HRTIM_DTxR register update enable TIMx_DTxR : Boolean := False; -- HRTIM_SET1xR register update enable TIMxSET1R : Boolean := False; -- HRTIM_RST1xR register update enable TIMxRST1R : Boolean := False; -- HRTIM_SET2xR register update enable TIMxSET2R : Boolean := False; -- HRTIM_RST2xR register update enable TIMxRST2R : Boolean := False; -- HRTIM_EEFxR1 register update enable TIMxEEFR : BDTBUPR_TIMxEEFR_Field := (As_Array => False, Val => 16#0#); -- HRTIM_RSTxR register update enable TIMxRSTR : Boolean := False; -- HRTIM_CHPxR register update enable TIMxCHPR : Boolean := False; -- HRTIM_OUTxR register update enable TIMxOUTR : Boolean := False; -- HRTIM_FLTxR register update enable TIMxFLTR : Boolean := False; -- TIMxCR2 TIMxCR2 : Boolean := False; -- TIMxEEFR3 TIMxEEFR3 : Boolean := False; -- unspecified Reserved_23_31 : HAL.UInt9 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for BDTBUPR_Register use record TIMxCR at 0 range 0 .. 0; TIMxICR at 0 range 1 .. 1; TIMxDIER at 0 range 2 .. 2; TIMxCNT at 0 range 3 .. 3; TIMxPER at 0 range 4 .. 4; TIMxREP at 0 range 5 .. 5; TIMxCMP at 0 range 6 .. 9; TIMx_DTxR at 0 range 10 .. 10; TIMxSET1R at 0 range 11 .. 11; TIMxRST1R at 0 range 12 .. 12; TIMxSET2R at 0 range 13 .. 13; TIMxRST2R at 0 range 14 .. 14; TIMxEEFR at 0 range 15 .. 16; TIMxRSTR at 0 range 17 .. 17; TIMxCHPR at 0 range 18 .. 18; TIMxOUTR at 0 range 19 .. 19; TIMxFLTR at 0 range 20 .. 20; TIMxCR2 at 0 range 21 .. 21; TIMxEEFR3 at 0 range 22 .. 22; Reserved_23_31 at 0 range 23 .. 31; end record; -- BDTCUPR_TIMxCMP array type BDTCUPR_TIMxCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for BDTCUPR_TIMxCMP type BDTCUPR_TIMxCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMxCMP as a value Val : HAL.UInt4; when True => -- TIMxCMP as an array Arr : BDTCUPR_TIMxCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for BDTCUPR_TIMxCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- BDTCUPR_TIMxEEFR array type BDTCUPR_TIMxEEFR_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for BDTCUPR_TIMxEEFR type BDTCUPR_TIMxEEFR_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMxEEFR as a value Val : HAL.UInt2; when True => -- TIMxEEFR as an array Arr : BDTCUPR_TIMxEEFR_Field_Array; end case; end record with Unchecked_Union, Size => 2; for BDTCUPR_TIMxEEFR_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Burst DMA Timerx update Register type BDTCUPR_Register is record -- HRTIM_TIMxCR register update enable TIMxCR : Boolean := False; -- HRTIM_TIMxICR register update enable TIMxICR : Boolean := False; -- HRTIM_TIMxDIER register update enable TIMxDIER : Boolean := False; -- HRTIM_CNTxR register update enable TIMxCNT : Boolean := False; -- HRTIM_PERxR register update enable TIMxPER : Boolean := False; -- HRTIM_REPxR register update enable TIMxREP : Boolean := False; -- HRTIM_CMP1xR register update enable TIMxCMP : BDTCUPR_TIMxCMP_Field := (As_Array => False, Val => 16#0#); -- HRTIM_DTxR register update enable TIMx_DTxR : Boolean := False; -- HRTIM_SET1xR register update enable TIMxSET1R : Boolean := False; -- HRTIM_RST1xR register update enable TIMxRST1R : Boolean := False; -- HRTIM_SET2xR register update enable TIMxSET2R : Boolean := False; -- HRTIM_RST2xR register update enable TIMxRST2R : Boolean := False; -- HRTIM_EEFxR1 register update enable TIMxEEFR : BDTCUPR_TIMxEEFR_Field := (As_Array => False, Val => 16#0#); -- HRTIM_RSTxR register update enable TIMxRSTR : Boolean := False; -- HRTIM_CHPxR register update enable TIMxCHPR : Boolean := False; -- HRTIM_OUTxR register update enable TIMxOUTR : Boolean := False; -- HRTIM_FLTxR register update enable TIMxFLTR : Boolean := False; -- TIMxCR2 TIMxCR2 : Boolean := False; -- TIMxEEFR3 TIMxEEFR3 : Boolean := False; -- unspecified Reserved_23_31 : HAL.UInt9 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for BDTCUPR_Register use record TIMxCR at 0 range 0 .. 0; TIMxICR at 0 range 1 .. 1; TIMxDIER at 0 range 2 .. 2; TIMxCNT at 0 range 3 .. 3; TIMxPER at 0 range 4 .. 4; TIMxREP at 0 range 5 .. 5; TIMxCMP at 0 range 6 .. 9; TIMx_DTxR at 0 range 10 .. 10; TIMxSET1R at 0 range 11 .. 11; TIMxRST1R at 0 range 12 .. 12; TIMxSET2R at 0 range 13 .. 13; TIMxRST2R at 0 range 14 .. 14; TIMxEEFR at 0 range 15 .. 16; TIMxRSTR at 0 range 17 .. 17; TIMxCHPR at 0 range 18 .. 18; TIMxOUTR at 0 range 19 .. 19; TIMxFLTR at 0 range 20 .. 20; TIMxCR2 at 0 range 21 .. 21; TIMxEEFR3 at 0 range 22 .. 22; Reserved_23_31 at 0 range 23 .. 31; end record; -- BDTDUPR_TIMxCMP array type BDTDUPR_TIMxCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for BDTDUPR_TIMxCMP type BDTDUPR_TIMxCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMxCMP as a value Val : HAL.UInt4; when True => -- TIMxCMP as an array Arr : BDTDUPR_TIMxCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for BDTDUPR_TIMxCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- BDTDUPR_TIMxEEFR array type BDTDUPR_TIMxEEFR_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for BDTDUPR_TIMxEEFR type BDTDUPR_TIMxEEFR_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMxEEFR as a value Val : HAL.UInt2; when True => -- TIMxEEFR as an array Arr : BDTDUPR_TIMxEEFR_Field_Array; end case; end record with Unchecked_Union, Size => 2; for BDTDUPR_TIMxEEFR_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Burst DMA Timerx update Register type BDTDUPR_Register is record -- HRTIM_TIMxCR register update enable TIMxCR : Boolean := False; -- HRTIM_TIMxICR register update enable TIMxICR : Boolean := False; -- HRTIM_TIMxDIER register update enable TIMxDIER : Boolean := False; -- HRTIM_CNTxR register update enable TIMxCNT : Boolean := False; -- HRTIM_PERxR register update enable TIMxPER : Boolean := False; -- HRTIM_REPxR register update enable TIMxREP : Boolean := False; -- HRTIM_CMP1xR register update enable TIMxCMP : BDTDUPR_TIMxCMP_Field := (As_Array => False, Val => 16#0#); -- HRTIM_DTxR register update enable TIMx_DTxR : Boolean := False; -- HRTIM_SET1xR register update enable TIMxSET1R : Boolean := False; -- HRTIM_RST1xR register update enable TIMxRST1R : Boolean := False; -- HRTIM_SET2xR register update enable TIMxSET2R : Boolean := False; -- HRTIM_RST2xR register update enable TIMxRST2R : Boolean := False; -- HRTIM_EEFxR1 register update enable TIMxEEFR : BDTDUPR_TIMxEEFR_Field := (As_Array => False, Val => 16#0#); -- HRTIM_RSTxR register update enable TIMxRSTR : Boolean := False; -- HRTIM_CHPxR register update enable TIMxCHPR : Boolean := False; -- HRTIM_OUTxR register update enable TIMxOUTR : Boolean := False; -- HRTIM_FLTxR register update enable TIMxFLTR : Boolean := False; -- TIMxCR2 TIMxCR2 : Boolean := False; -- TIMxEEFR3 TIMxEEFR3 : Boolean := False; -- unspecified Reserved_23_31 : HAL.UInt9 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for BDTDUPR_Register use record TIMxCR at 0 range 0 .. 0; TIMxICR at 0 range 1 .. 1; TIMxDIER at 0 range 2 .. 2; TIMxCNT at 0 range 3 .. 3; TIMxPER at 0 range 4 .. 4; TIMxREP at 0 range 5 .. 5; TIMxCMP at 0 range 6 .. 9; TIMx_DTxR at 0 range 10 .. 10; TIMxSET1R at 0 range 11 .. 11; TIMxRST1R at 0 range 12 .. 12; TIMxSET2R at 0 range 13 .. 13; TIMxRST2R at 0 range 14 .. 14; TIMxEEFR at 0 range 15 .. 16; TIMxRSTR at 0 range 17 .. 17; TIMxCHPR at 0 range 18 .. 18; TIMxOUTR at 0 range 19 .. 19; TIMxFLTR at 0 range 20 .. 20; TIMxCR2 at 0 range 21 .. 21; TIMxEEFR3 at 0 range 22 .. 22; Reserved_23_31 at 0 range 23 .. 31; end record; -- BDTEUPR_TIMxCMP array type BDTEUPR_TIMxCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for BDTEUPR_TIMxCMP type BDTEUPR_TIMxCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMxCMP as a value Val : HAL.UInt4; when True => -- TIMxCMP as an array Arr : BDTEUPR_TIMxCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for BDTEUPR_TIMxCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- BDTEUPR_TIMxEEFR array type BDTEUPR_TIMxEEFR_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for BDTEUPR_TIMxEEFR type BDTEUPR_TIMxEEFR_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMxEEFR as a value Val : HAL.UInt2; when True => -- TIMxEEFR as an array Arr : BDTEUPR_TIMxEEFR_Field_Array; end case; end record with Unchecked_Union, Size => 2; for BDTEUPR_TIMxEEFR_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Burst DMA Timerx update Register type BDTEUPR_Register is record -- HRTIM_TIMxCR register update enable TIMxCR : Boolean := False; -- HRTIM_TIMxICR register update enable TIMxICR : Boolean := False; -- HRTIM_TIMxDIER register update enable TIMxDIER : Boolean := False; -- HRTIM_CNTxR register update enable TIMxCNT : Boolean := False; -- HRTIM_PERxR register update enable TIMxPER : Boolean := False; -- HRTIM_REPxR register update enable TIMxREP : Boolean := False; -- HRTIM_CMP1xR register update enable TIMxCMP : BDTEUPR_TIMxCMP_Field := (As_Array => False, Val => 16#0#); -- HRTIM_DTxR register update enable TIMx_DTxR : Boolean := False; -- HRTIM_SET1xR register update enable TIMxSET1R : Boolean := False; -- HRTIM_RST1xR register update enable TIMxRST1R : Boolean := False; -- HRTIM_SET2xR register update enable TIMxSET2R : Boolean := False; -- HRTIM_RST2xR register update enable TIMxRST2R : Boolean := False; -- HRTIM_EEFxR1 register update enable TIMxEEFR : BDTEUPR_TIMxEEFR_Field := (As_Array => False, Val => 16#0#); -- HRTIM_RSTxR register update enable TIMxRSTR : Boolean := False; -- HRTIM_CHPxR register update enable TIMxCHPR : Boolean := False; -- HRTIM_OUTxR register update enable TIMxOUTR : Boolean := False; -- HRTIM_FLTxR register update enable TIMxFLTR : Boolean := False; -- TIMxCR2 TIMxCR2 : Boolean := False; -- TIMxEEFR3 TIMxEEFR3 : Boolean := False; -- unspecified Reserved_23_31 : HAL.UInt9 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for BDTEUPR_Register use record TIMxCR at 0 range 0 .. 0; TIMxICR at 0 range 1 .. 1; TIMxDIER at 0 range 2 .. 2; TIMxCNT at 0 range 3 .. 3; TIMxPER at 0 range 4 .. 4; TIMxREP at 0 range 5 .. 5; TIMxCMP at 0 range 6 .. 9; TIMx_DTxR at 0 range 10 .. 10; TIMxSET1R at 0 range 11 .. 11; TIMxRST1R at 0 range 12 .. 12; TIMxSET2R at 0 range 13 .. 13; TIMxRST2R at 0 range 14 .. 14; TIMxEEFR at 0 range 15 .. 16; TIMxRSTR at 0 range 17 .. 17; TIMxCHPR at 0 range 18 .. 18; TIMxOUTR at 0 range 19 .. 19; TIMxFLTR at 0 range 20 .. 20; TIMxCR2 at 0 range 21 .. 21; TIMxEEFR3 at 0 range 22 .. 22; Reserved_23_31 at 0 range 23 .. 31; end record; -- BDTFUPR_TIMxCMP array type BDTFUPR_TIMxCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for BDTFUPR_TIMxCMP type BDTFUPR_TIMxCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMxCMP as a value Val : HAL.UInt4; when True => -- TIMxCMP as an array Arr : BDTFUPR_TIMxCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for BDTFUPR_TIMxCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- BDTFUPR_TIMxEEFR array type BDTFUPR_TIMxEEFR_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for BDTFUPR_TIMxEEFR type BDTFUPR_TIMxEEFR_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMxEEFR as a value Val : HAL.UInt2; when True => -- TIMxEEFR as an array Arr : BDTFUPR_TIMxEEFR_Field_Array; end case; end record with Unchecked_Union, Size => 2; for BDTFUPR_TIMxEEFR_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Burst DMA Timerx update Register type BDTFUPR_Register is record -- HRTIM_TIMxCR register update enable TIMxCR : Boolean := False; -- HRTIM_TIMxICR register update enable TIMxICR : Boolean := False; -- HRTIM_TIMxDIER register update enable TIMxDIER : Boolean := False; -- HRTIM_CNTxR register update enable TIMxCNT : Boolean := False; -- HRTIM_PERxR register update enable TIMxPER : Boolean := False; -- HRTIM_REPxR register update enable TIMxREP : Boolean := False; -- HRTIM_CMP1xR register update enable TIMxCMP : BDTFUPR_TIMxCMP_Field := (As_Array => False, Val => 16#0#); -- HRTIM_DTxR register update enable TIMx_DTxR : Boolean := False; -- HRTIM_SET1xR register update enable TIMxSET1R : Boolean := False; -- HRTIM_RST1xR register update enable TIMxRST1R : Boolean := False; -- HRTIM_SET2xR register update enable TIMxSET2R : Boolean := False; -- HRTIM_RST2xR register update enable TIMxRST2R : Boolean := False; -- HRTIM_EEFxR1 register update enable TIMxEEFR : BDTFUPR_TIMxEEFR_Field := (As_Array => False, Val => 16#0#); -- HRTIM_RSTxR register update enable TIMxRSTR : Boolean := False; -- HRTIM_CHPxR register update enable TIMxCHPR : Boolean := False; -- HRTIM_OUTxR register update enable TIMxOUTR : Boolean := False; -- HRTIM_FLTxR register update enable TIMxFLTR : Boolean := False; -- TIMxCR2 TIMxCR2 : Boolean := False; -- TIMxEEFR3 TIMxEEFR3 : Boolean := False; -- unspecified Reserved_23_31 : HAL.UInt9 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for BDTFUPR_Register use record TIMxCR at 0 range 0 .. 0; TIMxICR at 0 range 1 .. 1; TIMxDIER at 0 range 2 .. 2; TIMxCNT at 0 range 3 .. 3; TIMxPER at 0 range 4 .. 4; TIMxREP at 0 range 5 .. 5; TIMxCMP at 0 range 6 .. 9; TIMx_DTxR at 0 range 10 .. 10; TIMxSET1R at 0 range 11 .. 11; TIMxRST1R at 0 range 12 .. 12; TIMxSET2R at 0 range 13 .. 13; TIMxRST2R at 0 range 14 .. 14; TIMxEEFR at 0 range 15 .. 16; TIMxRSTR at 0 range 17 .. 17; TIMxCHPR at 0 range 18 .. 18; TIMxOUTR at 0 range 19 .. 19; TIMxFLTR at 0 range 20 .. 20; TIMxCR2 at 0 range 21 .. 21; TIMxEEFR3 at 0 range 22 .. 22; Reserved_23_31 at 0 range 23 .. 31; end record; subtype ADCER_ADC5TRG_Field is HAL.UInt5; subtype ADCER_ADC6TRG_Field is HAL.UInt5; subtype ADCER_ADC7TRG_Field is HAL.UInt5; subtype ADCER_ADC8TRG_Field is HAL.UInt5; subtype ADCER_ADC9TRG_Field is HAL.UInt5; subtype ADCER_ADC10TRG_Field is HAL.UInt5; -- HRTIM ADC Extended Trigger Register type ADCER_Register is record -- ADC5TRG ADC5TRG : ADCER_ADC5TRG_Field := 16#0#; -- ADC6TRG ADC6TRG : ADCER_ADC6TRG_Field := 16#0#; -- ADC7TRG ADC7TRG : ADCER_ADC7TRG_Field := 16#0#; -- unspecified Reserved_15_15 : HAL.Bit := 16#0#; -- ADC8TRG ADC8TRG : ADCER_ADC8TRG_Field := 16#0#; -- ADC9TRG ADC9TRG : ADCER_ADC9TRG_Field := 16#0#; -- ADC10TRG ADC10TRG : ADCER_ADC10TRG_Field := 16#0#; -- unspecified Reserved_31_31 : HAL.Bit := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for ADCER_Register use record ADC5TRG at 0 range 0 .. 4; ADC6TRG at 0 range 5 .. 9; ADC7TRG at 0 range 10 .. 14; Reserved_15_15 at 0 range 15 .. 15; ADC8TRG at 0 range 16 .. 20; ADC9TRG at 0 range 21 .. 25; ADC10TRG at 0 range 26 .. 30; Reserved_31_31 at 0 range 31 .. 31; end record; subtype ADCUR_AD5USRC_Field is HAL.UInt3; subtype ADCUR_AD6USRC_Field is HAL.UInt3; subtype ADCUR_AD7USRC_Field is HAL.UInt3; subtype ADCUR_AD8USRC_Field is HAL.UInt3; subtype ADCUR_AD9USRC_Field is HAL.UInt3; subtype ADCUR_AD10USRC_Field is HAL.UInt3; -- HRTIM ADC Trigger Update Register type ADCUR_Register is record -- AD5USRC AD5USRC : ADCUR_AD5USRC_Field := 16#0#; -- unspecified Reserved_3_3 : HAL.Bit := 16#0#; -- AD6USRC AD6USRC : ADCUR_AD6USRC_Field := 16#0#; -- unspecified Reserved_7_7 : HAL.Bit := 16#0#; -- AD7USRC AD7USRC : ADCUR_AD7USRC_Field := 16#0#; -- unspecified Reserved_11_11 : HAL.Bit := 16#0#; -- AD8USRC AD8USRC : ADCUR_AD8USRC_Field := 16#0#; -- unspecified Reserved_15_15 : HAL.Bit := 16#0#; -- AD9USRC AD9USRC : ADCUR_AD9USRC_Field := 16#0#; -- unspecified Reserved_19_19 : HAL.Bit := 16#0#; -- AD10USRC AD10USRC : ADCUR_AD10USRC_Field := 16#0#; -- unspecified Reserved_23_31 : HAL.UInt9 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for ADCUR_Register use record AD5USRC at 0 range 0 .. 2; Reserved_3_3 at 0 range 3 .. 3; AD6USRC at 0 range 4 .. 6; Reserved_7_7 at 0 range 7 .. 7; AD7USRC at 0 range 8 .. 10; Reserved_11_11 at 0 range 11 .. 11; AD8USRC at 0 range 12 .. 14; Reserved_15_15 at 0 range 15 .. 15; AD9USRC at 0 range 16 .. 18; Reserved_19_19 at 0 range 19 .. 19; AD10USRC at 0 range 20 .. 22; Reserved_23_31 at 0 range 23 .. 31; end record; subtype ADCPS1_ADC1PSC_Field is HAL.UInt5; subtype ADCPS1_ADC2PSC_Field is HAL.UInt5; subtype ADCPS1_ADC3PSC_Field is HAL.UInt5; subtype ADCPS1_ADC4PSC_Field is HAL.UInt5; subtype ADCPS1_ADC5PSC_Field is HAL.UInt5; -- HRTIM ADC Post Scaler Register 1 type ADCPS1_Register is record -- ADC1PSC ADC1PSC : ADCPS1_ADC1PSC_Field := 16#0#; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- ADC2PSC ADC2PSC : ADCPS1_ADC2PSC_Field := 16#0#; -- unspecified Reserved_11_11 : HAL.Bit := 16#0#; -- ADC3PSC ADC3PSC : ADCPS1_ADC3PSC_Field := 16#0#; -- unspecified Reserved_17_17 : HAL.Bit := 16#0#; -- ADC4PSC ADC4PSC : ADCPS1_ADC4PSC_Field := 16#0#; -- unspecified Reserved_23_23 : HAL.Bit := 16#0#; -- ADC5PSC ADC5PSC : ADCPS1_ADC5PSC_Field := 16#0#; -- unspecified Reserved_29_31 : HAL.UInt3 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for ADCPS1_Register use record ADC1PSC at 0 range 0 .. 4; Reserved_5_5 at 0 range 5 .. 5; ADC2PSC at 0 range 6 .. 10; Reserved_11_11 at 0 range 11 .. 11; ADC3PSC at 0 range 12 .. 16; Reserved_17_17 at 0 range 17 .. 17; ADC4PSC at 0 range 18 .. 22; Reserved_23_23 at 0 range 23 .. 23; ADC5PSC at 0 range 24 .. 28; Reserved_29_31 at 0 range 29 .. 31; end record; subtype ADCPS2_ADC6PSC_Field is HAL.UInt5; subtype ADCPS2_ADC7PSC_Field is HAL.UInt5; subtype ADCPS2_ADC8PSC_Field is HAL.UInt5; subtype ADCPS2_ADC9PSC_Field is HAL.UInt5; subtype ADCPS2_ADC10PSC_Field is HAL.UInt5; -- HRTIM ADC Post Scaler Register 2 type ADCPS2_Register is record -- ADC6PSC ADC6PSC : ADCPS2_ADC6PSC_Field := 16#0#; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- ADC7PSC ADC7PSC : ADCPS2_ADC7PSC_Field := 16#0#; -- unspecified Reserved_11_11 : HAL.Bit := 16#0#; -- ADC8PSC ADC8PSC : ADCPS2_ADC8PSC_Field := 16#0#; -- unspecified Reserved_17_17 : HAL.Bit := 16#0#; -- ADC9PSC ADC9PSC : ADCPS2_ADC9PSC_Field := 16#0#; -- unspecified Reserved_23_23 : HAL.Bit := 16#0#; -- ADC10PSC ADC10PSC : ADCPS2_ADC10PSC_Field := 16#0#; -- unspecified Reserved_29_31 : HAL.UInt3 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for ADCPS2_Register use record ADC6PSC at 0 range 0 .. 4; Reserved_5_5 at 0 range 5 .. 5; ADC7PSC at 0 range 6 .. 10; Reserved_11_11 at 0 range 11 .. 11; ADC8PSC at 0 range 12 .. 16; Reserved_17_17 at 0 range 17 .. 17; ADC9PSC at 0 range 18 .. 22; Reserved_23_23 at 0 range 23 .. 23; ADC10PSC at 0 range 24 .. 28; Reserved_29_31 at 0 range 29 .. 31; end record; subtype FLTINR3_FLT1CNT_Field is HAL.UInt4; subtype FLTINR3_FLT2CNT_Field is HAL.UInt4; subtype FLTINR3_FLT3CNT_Field is HAL.UInt4; subtype FLTINR3_FLT4CNT_Field is HAL.UInt4; -- HRTIM Fault Input Register 3 type FLTINR3_Register is record -- FLT1BLKE FLT1BLKE : Boolean := False; -- FLT1BLKS FLT1BLKS : Boolean := False; -- FLT1CNT FLT1CNT : FLTINR3_FLT1CNT_Field := 16#0#; -- FLT1CRES FLT1CRES : Boolean := False; -- FLT1RSTM FLT1RSTM : Boolean := False; -- FLT2BLKE FLT2BLKE : Boolean := False; -- FLT2BLKS FLT2BLKS : Boolean := False; -- FLT2CNT FLT2CNT : FLTINR3_FLT2CNT_Field := 16#0#; -- FLT2CRES FLT2CRES : Boolean := False; -- FLT2RSTM FLT2RSTM : Boolean := False; -- FLT3BLKE FLT3BLKE : Boolean := False; -- FLT3BLKS FLT3BLKS : Boolean := False; -- FLT3CNT FLT3CNT : FLTINR3_FLT3CNT_Field := 16#0#; -- FLT3CRES FLT3CRES : Boolean := False; -- FLT3RSTM FLT3RSTM : Boolean := False; -- FLT4BLKE FLT4BLKE : Boolean := False; -- FLT4BLKS FLT4BLKS : Boolean := False; -- FLT4CNT FLT4CNT : FLTINR3_FLT4CNT_Field := 16#0#; -- FLT4CRES FLT4CRES : Boolean := False; -- FLT4RSTM FLT4RSTM : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for FLTINR3_Register use record FLT1BLKE at 0 range 0 .. 0; FLT1BLKS at 0 range 1 .. 1; FLT1CNT at 0 range 2 .. 5; FLT1CRES at 0 range 6 .. 6; FLT1RSTM at 0 range 7 .. 7; FLT2BLKE at 0 range 8 .. 8; FLT2BLKS at 0 range 9 .. 9; FLT2CNT at 0 range 10 .. 13; FLT2CRES at 0 range 14 .. 14; FLT2RSTM at 0 range 15 .. 15; FLT3BLKE at 0 range 16 .. 16; FLT3BLKS at 0 range 17 .. 17; FLT3CNT at 0 range 18 .. 21; FLT3CRES at 0 range 22 .. 22; FLT3RSTM at 0 range 23 .. 23; FLT4BLKE at 0 range 24 .. 24; FLT4BLKS at 0 range 25 .. 25; FLT4CNT at 0 range 26 .. 29; FLT4CRES at 0 range 30 .. 30; FLT4RSTM at 0 range 31 .. 31; end record; subtype FLTINR4_FLT5CNT_Field is HAL.UInt4; subtype FLTINR4_FLT6CNT_Field is HAL.UInt4; -- HRTIM Fault Input Register 4 type FLTINR4_Register is record -- FLT5BLKE FLT5BLKE : Boolean := False; -- FLT5BLKS FLT5BLKS : Boolean := False; -- FLT5CNT FLT5CNT : FLTINR4_FLT5CNT_Field := 16#0#; -- FLT5CRES FLT5CRES : Boolean := False; -- FLT5RSTM FLT5RSTM : Boolean := False; -- FLT6BLKE FLT6BLKE : Boolean := False; -- FLT6BLKS FLT6BLKS : Boolean := False; -- FLT6CNT FLT6CNT : FLTINR4_FLT6CNT_Field := 16#0#; -- FLT6CRES FLT6CRES : Boolean := False; -- FLT6RSTM FLT6RSTM : Boolean := False; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for FLTINR4_Register use record FLT5BLKE at 0 range 0 .. 0; FLT5BLKS at 0 range 1 .. 1; FLT5CNT at 0 range 2 .. 5; FLT5CRES at 0 range 6 .. 6; FLT5RSTM at 0 range 7 .. 7; FLT6BLKE at 0 range 8 .. 8; FLT6BLKS at 0 range 9 .. 9; FLT6CNT at 0 range 10 .. 13; FLT6CRES at 0 range 14 .. 14; FLT6RSTM at 0 range 15 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype MCR_CKPSC_Field is HAL.UInt3; subtype MCR_INTLVD_Field is HAL.UInt2; subtype MCR_SYNCIN_Field is HAL.UInt2; subtype MCR_SYNCOUT_Field is HAL.UInt2; subtype MCR_SYNCSRC_Field is HAL.UInt2; subtype MCR_DACSYNC_Field is HAL.UInt2; subtype MCR_BRSTDMA_Field is HAL.UInt2; -- Master Timer Control Register type MCR_Register is record -- HRTIM Master Clock prescaler CKPSC : MCR_CKPSC_Field := 16#0#; -- Master Continuous mode CONT : Boolean := False; -- Master Re-triggerable mode RETRIG : Boolean := False; -- Half mode enable HALF : Boolean := False; -- Interleaved mode INTLVD : MCR_INTLVD_Field := 16#0#; -- synchronization input SYNCIN : MCR_SYNCIN_Field := 16#0#; -- Synchronization Resets Master SYNCRSTM : Boolean := False; -- Synchronization Starts Master SYNCSTRTM : Boolean := False; -- Synchronization output SYNCOUT : MCR_SYNCOUT_Field := 16#0#; -- Synchronization source SYNCSRC : MCR_SYNCSRC_Field := 16#0#; -- Master Counter enable MCEN : Boolean := False; -- Timer A counter enable TACEN : Boolean := False; -- Timer B counter enable TBCEN : Boolean := False; -- Timer C counter enable TCCEN : Boolean := False; -- Timer D counter enable TDCEN : Boolean := False; -- Timer E counter enable TECEN : Boolean := False; -- Timer F counter enable TFCEN : Boolean := False; -- unspecified Reserved_23_24 : HAL.UInt2 := 16#0#; -- AC Synchronization DACSYNC : MCR_DACSYNC_Field := 16#0#; -- Preload enable PREEN : Boolean := False; -- unspecified Reserved_28_28 : HAL.Bit := 16#0#; -- Master Timer Repetition update MREPU : Boolean := False; -- Burst DMA Update BRSTDMA : MCR_BRSTDMA_Field := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for MCR_Register use record CKPSC at 0 range 0 .. 2; CONT at 0 range 3 .. 3; RETRIG at 0 range 4 .. 4; HALF at 0 range 5 .. 5; INTLVD at 0 range 6 .. 7; SYNCIN at 0 range 8 .. 9; SYNCRSTM at 0 range 10 .. 10; SYNCSTRTM at 0 range 11 .. 11; SYNCOUT at 0 range 12 .. 13; SYNCSRC at 0 range 14 .. 15; MCEN at 0 range 16 .. 16; TACEN at 0 range 17 .. 17; TBCEN at 0 range 18 .. 18; TCCEN at 0 range 19 .. 19; TDCEN at 0 range 20 .. 20; TECEN at 0 range 21 .. 21; TFCEN at 0 range 22 .. 22; Reserved_23_24 at 0 range 23 .. 24; DACSYNC at 0 range 25 .. 26; PREEN at 0 range 27 .. 27; Reserved_28_28 at 0 range 28 .. 28; MREPU at 0 range 29 .. 29; BRSTDMA at 0 range 30 .. 31; end record; -- MISR_MCMP array type MISR_MCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for MISR_MCMP type MISR_MCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MCMP as a value Val : HAL.UInt4; when True => -- MCMP as an array Arr : MISR_MCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for MISR_MCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- Master Timer Interrupt Status Register type MISR_Register is record -- Read-only. Master Compare 1 Interrupt Flag MCMP : MISR_MCMP_Field; -- Read-only. Master Repetition Interrupt Flag MREP : Boolean; -- Read-only. Sync Input Interrupt Flag SYNC : Boolean; -- Read-only. Master Update Interrupt Flag MUPD : Boolean; -- unspecified Reserved_7_31 : HAL.UInt25; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for MISR_Register use record MCMP at 0 range 0 .. 3; MREP at 0 range 4 .. 4; SYNC at 0 range 5 .. 5; MUPD at 0 range 6 .. 6; Reserved_7_31 at 0 range 7 .. 31; end record; -- Master Timer Interrupt Clear Register type MICR_Register is record -- Write-only. Master Compare 1 Interrupt flag clear MCMP1C : Boolean := False; -- Write-only. Master Compare 2 Interrupt flag clear MCMP2C : Boolean := False; -- Write-only. Master Compare 3 Interrupt flag clear MCMP3C : Boolean := False; -- Write-only. Master Compare 4 Interrupt flag clear MCMP4C : Boolean := False; -- Write-only. Repetition Interrupt flag clear MREPC : Boolean := False; -- Write-only. Sync Input Interrupt flag clear SYNCC : Boolean := False; -- Write-only. Master update Interrupt flag clear MUPDC : Boolean := False; -- unspecified Reserved_7_31 : HAL.UInt25 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for MICR_Register use record MCMP1C at 0 range 0 .. 0; MCMP2C at 0 range 1 .. 1; MCMP3C at 0 range 2 .. 2; MCMP4C at 0 range 3 .. 3; MREPC at 0 range 4 .. 4; SYNCC at 0 range 5 .. 5; MUPDC at 0 range 6 .. 6; Reserved_7_31 at 0 range 7 .. 31; end record; -- HRTIM Master Timer DMA / Interrupt Enable Register type MDIER_Register is record -- MCMP1IE MCMP1IE : Boolean := False; -- MCMP2IE MCMP2IE : Boolean := False; -- MCMP3IE MCMP3IE : Boolean := False; -- MCMP4IE MCMP4IE : Boolean := False; -- MREPIE MREPIE : Boolean := False; -- SYNCIE SYNCIE : Boolean := False; -- MUPDIE MUPDIE : Boolean := False; -- unspecified Reserved_7_15 : HAL.UInt9 := 16#0#; -- MCMP1DE MCMP1DE : Boolean := False; -- MCMP2DE MCMP2DE : Boolean := False; -- MCMP3DE MCMP3DE : Boolean := False; -- MCMP4DE MCMP4DE : Boolean := False; -- MREPDE MREPDE : Boolean := False; -- SYNCDE SYNCDE : Boolean := False; -- MUPDDE MUPDDE : Boolean := False; -- unspecified Reserved_23_31 : HAL.UInt9 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for MDIER_Register use record MCMP1IE at 0 range 0 .. 0; MCMP2IE at 0 range 1 .. 1; MCMP3IE at 0 range 2 .. 2; MCMP4IE at 0 range 3 .. 3; MREPIE at 0 range 4 .. 4; SYNCIE at 0 range 5 .. 5; MUPDIE at 0 range 6 .. 6; Reserved_7_15 at 0 range 7 .. 15; MCMP1DE at 0 range 16 .. 16; MCMP2DE at 0 range 17 .. 17; MCMP3DE at 0 range 18 .. 18; MCMP4DE at 0 range 19 .. 19; MREPDE at 0 range 20 .. 20; SYNCDE at 0 range 21 .. 21; MUPDDE at 0 range 22 .. 22; Reserved_23_31 at 0 range 23 .. 31; end record; subtype MCNTR_MCNT_Field is HAL.UInt16; -- Master Timer Counter Register type MCNTR_Register is record -- Counter value MCNT : MCNTR_MCNT_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for MCNTR_Register use record MCNT at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype MPER_MPER_Field is HAL.UInt16; -- Master Timer Period Register type MPER_Register is record -- Master Timer Period value MPER : MPER_MPER_Field := 16#FFFF#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for MPER_Register use record MPER at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype MREP_MREP_Field is HAL.UInt8; -- Master Timer Repetition Register type MREP_Register is record -- Master Timer Repetition counter value MREP : MREP_MREP_Field := 16#0#; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for MREP_Register use record MREP at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype MCMP1R_MCMP1_Field is HAL.UInt16; -- Master Timer Compare 1 Register type MCMP1R_Register is record -- Master Timer Compare 1 value MCMP1 : MCMP1R_MCMP1_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for MCMP1R_Register use record MCMP1 at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype MCMP2R_MCMP2_Field is HAL.UInt16; -- Master Timer Compare 2 Register type MCMP2R_Register is record -- Master Timer Compare 2 value MCMP2 : MCMP2R_MCMP2_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for MCMP2R_Register use record MCMP2 at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype MCMP3R_MCMP3_Field is HAL.UInt16; -- Master Timer Compare 3 Register type MCMP3R_Register is record -- Master Timer Compare 3 value MCMP3 : MCMP3R_MCMP3_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for MCMP3R_Register use record MCMP3 at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype MCMP4R_MCMP4_Field is HAL.UInt16; -- Master Timer Compare 4 Register type MCMP4R_Register is record -- Master Timer Compare 4 value MCMP4 : MCMP4R_MCMP4_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for MCMP4R_Register use record MCMP4 at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype TIMACR_CKPSCx_Field is HAL.UInt3; subtype TIMACR_INTLVD_Field is HAL.UInt2; -- TIMACR_DELCMP array element subtype TIMACR_DELCMP_Element is HAL.UInt2; -- TIMACR_DELCMP array type TIMACR_DELCMP_Field_Array is array (2 .. 3) of TIMACR_DELCMP_Element with Component_Size => 2, Size => 4; -- Type definition for TIMACR_DELCMP type TIMACR_DELCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- DELCMP as a value Val : HAL.UInt4; when True => -- DELCMP as an array Arr : TIMACR_DELCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for TIMACR_DELCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; subtype TIMACR_DACSYNC_Field is HAL.UInt2; subtype TIMACR_UPDGAT_Field is HAL.UInt4; -- Timerx Control Register type TIMACR_Register is record -- HRTIM Timer x Clock prescaler CKPSCx : TIMACR_CKPSCx_Field := 16#0#; -- Continuous mode CONT : Boolean := False; -- Re-triggerable mode RETRIG : Boolean := False; -- Half mode enable HALF : Boolean := False; -- Push-Pull mode enable PSHPLL : Boolean := False; -- Interleaved mode INTLVD : TIMACR_INTLVD_Field := 16#0#; -- Re-Synchronized Update RSYNCU : Boolean := False; -- Synchronization Resets Timer x SYNCRSTx : Boolean := False; -- Synchronization Starts Timer x SYNCSTRTx : Boolean := False; -- Delayed CMP2 mode DELCMP : TIMACR_DELCMP_Field := (As_Array => False, Val => 16#0#); -- TFU TFU : Boolean := False; -- Timer x Repetition update TxREPU : Boolean := False; -- Timerx reset update TxRSTU : Boolean := False; -- unspecified Reserved_19_19 : HAL.Bit := 16#0#; -- TBU TBU : Boolean := False; -- TCU TCU : Boolean := False; -- TDU TDU : Boolean := False; -- TEU TEU : Boolean := False; -- Master Timer update MSTU : Boolean := False; -- AC Synchronization DACSYNC : TIMACR_DACSYNC_Field := 16#0#; -- Preload enable PREEN : Boolean := False; -- Update Gating UPDGAT : TIMACR_UPDGAT_Field := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMACR_Register use record CKPSCx at 0 range 0 .. 2; CONT at 0 range 3 .. 3; RETRIG at 0 range 4 .. 4; HALF at 0 range 5 .. 5; PSHPLL at 0 range 6 .. 6; INTLVD at 0 range 7 .. 8; RSYNCU at 0 range 9 .. 9; SYNCRSTx at 0 range 10 .. 10; SYNCSTRTx at 0 range 11 .. 11; DELCMP at 0 range 12 .. 15; TFU at 0 range 16 .. 16; TxREPU at 0 range 17 .. 17; TxRSTU at 0 range 18 .. 18; Reserved_19_19 at 0 range 19 .. 19; TBU at 0 range 20 .. 20; TCU at 0 range 21 .. 21; TDU at 0 range 22 .. 22; TEU at 0 range 23 .. 23; MSTU at 0 range 24 .. 24; DACSYNC at 0 range 25 .. 26; PREEN at 0 range 27 .. 27; UPDGAT at 0 range 28 .. 31; end record; -- TIMAISR_CMP array type TIMAISR_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for TIMAISR_CMP type TIMAISR_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : TIMAISR_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for TIMAISR_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- TIMAISR_CPT array type TIMAISR_CPT_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for TIMAISR_CPT type TIMAISR_CPT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CPT as a value Val : HAL.UInt2; when True => -- CPT as an array Arr : TIMAISR_CPT_Field_Array; end case; end record with Unchecked_Union, Size => 2; for TIMAISR_CPT_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Timerx Interrupt Status Register type TIMAISR_Register is record -- Read-only. Compare 1 Interrupt Flag CMP : TIMAISR_CMP_Field; -- Read-only. Repetition Interrupt Flag REP : Boolean; -- unspecified Reserved_5_5 : HAL.Bit; -- Read-only. Update Interrupt Flag UPD : Boolean; -- Read-only. Capture1 Interrupt Flag CPT : TIMAISR_CPT_Field; -- Read-only. Output 1 Set Interrupt Flag SETx1 : Boolean; -- Read-only. Output 1 Reset Interrupt Flag RSTx1 : Boolean; -- Read-only. Output 2 Set Interrupt Flag SETx2 : Boolean; -- Read-only. Output 2 Reset Interrupt Flag RSTx2 : Boolean; -- Read-only. Reset Interrupt Flag RST : Boolean; -- Read-only. Delayed Protection Flag DLYPRT : Boolean; -- unspecified Reserved_15_15 : HAL.Bit; -- Read-only. Current Push Pull Status CPPSTAT : Boolean; -- Read-only. Idle Push Pull Status IPPSTAT : Boolean; -- Read-only. Output 1 State O1STAT : Boolean; -- Read-only. Output 2 State O2STAT : Boolean; -- Read-only. Output 1 Copy O1CPY : Boolean; -- Read-only. Output 2 Copy O2CPY : Boolean; -- unspecified Reserved_22_31 : HAL.UInt10; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMAISR_Register use record CMP at 0 range 0 .. 3; REP at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; UPD at 0 range 6 .. 6; CPT at 0 range 7 .. 8; SETx1 at 0 range 9 .. 9; RSTx1 at 0 range 10 .. 10; SETx2 at 0 range 11 .. 11; RSTx2 at 0 range 12 .. 12; RST at 0 range 13 .. 13; DLYPRT at 0 range 14 .. 14; Reserved_15_15 at 0 range 15 .. 15; CPPSTAT at 0 range 16 .. 16; IPPSTAT at 0 range 17 .. 17; O1STAT at 0 range 18 .. 18; O2STAT at 0 range 19 .. 19; O1CPY at 0 range 20 .. 20; O2CPY at 0 range 21 .. 21; Reserved_22_31 at 0 range 22 .. 31; end record; -- Timerx Interrupt Clear Register type TIMAICR_Register is record -- Write-only. Compare 1 Interrupt flag Clear CMP1C : Boolean := False; -- Write-only. Compare 2 Interrupt flag Clear CMP2C : Boolean := False; -- Write-only. Compare 3 Interrupt flag Clear CMP3C : Boolean := False; -- Write-only. Compare 4 Interrupt flag Clear CMP4C : Boolean := False; -- Write-only. Repetition Interrupt flag Clear REPC : Boolean := False; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- Write-only. Update Interrupt flag Clear UPDC : Boolean := False; -- Write-only. Capture1 Interrupt flag Clear CPT1C : Boolean := False; -- Write-only. Capture2 Interrupt flag Clear CPT2C : Boolean := False; -- Write-only. Output 1 Set flag Clear SET1xC : Boolean := False; -- Write-only. Output 1 Reset flag Clear RSTx1C : Boolean := False; -- Write-only. Output 2 Set flag Clear SET2xC : Boolean := False; -- Write-only. Output 2 Reset flag Clear RSTx2C : Boolean := False; -- Write-only. Reset Interrupt flag Clear RSTC : Boolean := False; -- Write-only. Delayed Protection Flag Clear DLYPRTC : Boolean := False; -- unspecified Reserved_15_31 : HAL.UInt17 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMAICR_Register use record CMP1C at 0 range 0 .. 0; CMP2C at 0 range 1 .. 1; CMP3C at 0 range 2 .. 2; CMP4C at 0 range 3 .. 3; REPC at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; UPDC at 0 range 6 .. 6; CPT1C at 0 range 7 .. 7; CPT2C at 0 range 8 .. 8; SET1xC at 0 range 9 .. 9; RSTx1C at 0 range 10 .. 10; SET2xC at 0 range 11 .. 11; RSTx2C at 0 range 12 .. 12; RSTC at 0 range 13 .. 13; DLYPRTC at 0 range 14 .. 14; Reserved_15_31 at 0 range 15 .. 31; end record; -- TIMxDIER type TIMADIER_Register is record -- CMP1IE CMP1IE : Boolean := False; -- CMP2IE CMP2IE : Boolean := False; -- CMP3IE CMP3IE : Boolean := False; -- CMP4IE CMP4IE : Boolean := False; -- REPIE REPIE : Boolean := False; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- UPDIE UPDIE : Boolean := False; -- CPT1IE CPT1IE : Boolean := False; -- CPT2IE CPT2IE : Boolean := False; -- SET1xIE SET1xIE : Boolean := False; -- RSTx1IE RSTx1IE : Boolean := False; -- SETx2IE SETx2IE : Boolean := False; -- RSTx2IE RSTx2IE : Boolean := False; -- RSTIE RSTIE : Boolean := False; -- DLYPRTIE DLYPRTIE : Boolean := False; -- unspecified Reserved_15_15 : HAL.Bit := 16#0#; -- CMP1DE CMP1DE : Boolean := False; -- CMP2DE CMP2DE : Boolean := False; -- CMP3DE CMP3DE : Boolean := False; -- CMP4DE CMP4DE : Boolean := False; -- REPDE REPDE : Boolean := False; -- unspecified Reserved_21_21 : HAL.Bit := 16#0#; -- UPDDE UPDDE : Boolean := False; -- CPT1DE CPT1DE : Boolean := False; -- CPT2DE CPT2DE : Boolean := False; -- SET1xDE SET1xDE : Boolean := False; -- RSTx1DE RSTx1DE : Boolean := False; -- SETx2DE SETx2DE : Boolean := False; -- RSTx2DE RSTx2DE : Boolean := False; -- RSTDE RSTDE : Boolean := False; -- DLYPRTDE DLYPRTDE : Boolean := False; -- unspecified Reserved_31_31 : HAL.Bit := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMADIER_Register use record CMP1IE at 0 range 0 .. 0; CMP2IE at 0 range 1 .. 1; CMP3IE at 0 range 2 .. 2; CMP4IE at 0 range 3 .. 3; REPIE at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; UPDIE at 0 range 6 .. 6; CPT1IE at 0 range 7 .. 7; CPT2IE at 0 range 8 .. 8; SET1xIE at 0 range 9 .. 9; RSTx1IE at 0 range 10 .. 10; SETx2IE at 0 range 11 .. 11; RSTx2IE at 0 range 12 .. 12; RSTIE at 0 range 13 .. 13; DLYPRTIE at 0 range 14 .. 14; Reserved_15_15 at 0 range 15 .. 15; CMP1DE at 0 range 16 .. 16; CMP2DE at 0 range 17 .. 17; CMP3DE at 0 range 18 .. 18; CMP4DE at 0 range 19 .. 19; REPDE at 0 range 20 .. 20; Reserved_21_21 at 0 range 21 .. 21; UPDDE at 0 range 22 .. 22; CPT1DE at 0 range 23 .. 23; CPT2DE at 0 range 24 .. 24; SET1xDE at 0 range 25 .. 25; RSTx1DE at 0 range 26 .. 26; SETx2DE at 0 range 27 .. 27; RSTx2DE at 0 range 28 .. 28; RSTDE at 0 range 29 .. 29; DLYPRTDE at 0 range 30 .. 30; Reserved_31_31 at 0 range 31 .. 31; end record; subtype CNTAR_CNTx_Field is HAL.UInt16; -- Timerx Counter Register type CNTAR_Register is record -- Timerx Counter value CNTx : CNTAR_CNTx_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CNTAR_Register use record CNTx at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype PERAR_PERx_Field is HAL.UInt16; -- Timerx Period Register type PERAR_Register is record -- Timerx Period value PERx : PERAR_PERx_Field := 16#FFFF#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for PERAR_Register use record PERx at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype REPAR_REPx_Field is HAL.UInt8; -- Timerx Repetition Register type REPAR_Register is record -- Timerx Repetition counter value REPx : REPAR_REPx_Field := 16#0#; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for REPAR_Register use record REPx at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype CMP1AR_CMP1x_Field is HAL.UInt16; -- Timerx Compare 1 Register type CMP1AR_Register is record -- Timerx Compare 1 value CMP1x : CMP1AR_CMP1x_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP1AR_Register use record CMP1x at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CMP1CAR_CMP1x_Field is HAL.UInt16; subtype CMP1CAR_REPx_Field is HAL.UInt8; -- Timerx Compare 1 Compound Register type CMP1CAR_Register is record -- Timerx Compare 1 value CMP1x : CMP1CAR_CMP1x_Field := 16#0#; -- Timerx Repetition value (aliased from HRTIM_REPx register) REPx : CMP1CAR_REPx_Field := 16#0#; -- unspecified Reserved_24_31 : HAL.UInt8 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP1CAR_Register use record CMP1x at 0 range 0 .. 15; REPx at 0 range 16 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; subtype CMP2AR_CMP2x_Field is HAL.UInt16; -- Timerx Compare 2 Register type CMP2AR_Register is record -- Timerx Compare 2 value CMP2x : CMP2AR_CMP2x_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP2AR_Register use record CMP2x at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CMP3AR_CMP3x_Field is HAL.UInt16; -- Timerx Compare 3 Register type CMP3AR_Register is record -- Timerx Compare 3 value CMP3x : CMP3AR_CMP3x_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP3AR_Register use record CMP3x at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CMP4AR_CMP4x_Field is HAL.UInt16; -- Timerx Compare 4 Register type CMP4AR_Register is record -- Timerx Compare 4 value CMP4x : CMP4AR_CMP4x_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP4AR_Register use record CMP4x at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CPT1AR_CPT1x_Field is HAL.UInt16; -- Timerx Capture 1 Register type CPT1AR_Register is record -- Read-only. Timerx Capture 1 value CPT1x : CPT1AR_CPT1x_Field; -- Read-only. Timerx Capture 1 Direction status DIR : Boolean; -- unspecified Reserved_17_31 : HAL.UInt15; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPT1AR_Register use record CPT1x at 0 range 0 .. 15; DIR at 0 range 16 .. 16; Reserved_17_31 at 0 range 17 .. 31; end record; subtype CPT2AR_CPT2x_Field is HAL.UInt16; -- Timerx Capture 2 Register type CPT2AR_Register is record -- Read-only. Timerx Capture 2 value CPT2x : CPT2AR_CPT2x_Field; -- Read-only. Timerx Capture 1 Direction status DIR : Boolean; -- unspecified Reserved_17_31 : HAL.UInt15; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPT2AR_Register use record CPT2x at 0 range 0 .. 15; DIR at 0 range 16 .. 16; Reserved_17_31 at 0 range 17 .. 31; end record; subtype DTAR_DTRx_Field is HAL.UInt9; subtype DTAR_DTPRSC_Field is HAL.UInt3; subtype DTAR_DTFx_Field is HAL.UInt9; -- Timerx Deadtime Register type DTAR_Register is record -- Deadtime Rising value DTRx : DTAR_DTRx_Field := 16#0#; -- Sign Deadtime Rising value SDTRx : Boolean := False; -- Deadtime Prescaler DTPRSC : DTAR_DTPRSC_Field := 16#0#; -- unspecified Reserved_13_13 : HAL.Bit := 16#0#; -- Deadtime Rising Sign Lock DTRSLKx : Boolean := False; -- Deadtime Rising Lock DTRLKx : Boolean := False; -- Deadtime Falling value DTFx : DTAR_DTFx_Field := 16#0#; -- Sign Deadtime Falling value SDTFx : Boolean := False; -- unspecified Reserved_26_29 : HAL.UInt4 := 16#0#; -- Deadtime Falling Sign Lock DTFSLKx : Boolean := False; -- Deadtime Falling Lock DTFLKx : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DTAR_Register use record DTRx at 0 range 0 .. 8; SDTRx at 0 range 9 .. 9; DTPRSC at 0 range 10 .. 12; Reserved_13_13 at 0 range 13 .. 13; DTRSLKx at 0 range 14 .. 14; DTRLKx at 0 range 15 .. 15; DTFx at 0 range 16 .. 24; SDTFx at 0 range 25 .. 25; Reserved_26_29 at 0 range 26 .. 29; DTFSLKx at 0 range 30 .. 30; DTFLKx at 0 range 31 .. 31; end record; -- SETA1R_CMP array type SETA1R_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for SETA1R_CMP type SETA1R_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : SETA1R_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for SETA1R_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- SETA1R_MSTCMP array type SETA1R_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for SETA1R_MSTCMP type SETA1R_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : SETA1R_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for SETA1R_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- SETA1R_TIMEVNT array type SETA1R_TIMEVNT_Field_Array is array (1 .. 9) of Boolean with Component_Size => 1, Size => 9; -- Type definition for SETA1R_TIMEVNT type SETA1R_TIMEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMEVNT as a value Val : HAL.UInt9; when True => -- TIMEVNT as an array Arr : SETA1R_TIMEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 9; for SETA1R_TIMEVNT_Field use record Val at 0 range 0 .. 8; Arr at 0 range 0 .. 8; end record; -- SETA1R_EXTEVNT array type SETA1R_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for SETA1R_EXTEVNT type SETA1R_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : SETA1R_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for SETA1R_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- Timerx Output1 Set Register type SETA1R_Register is record -- Software Set trigger SST : Boolean := False; -- Timer A resynchronizaton RESYNC : Boolean := False; -- Timer A Period PER : Boolean := False; -- Timer A compare 1 CMP : SETA1R_CMP_Field := (As_Array => False, Val => 16#0#); -- Master Period MSTPER : Boolean := False; -- Master Compare 1 MSTCMP : SETA1R_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- Timer Event 1 TIMEVNT : SETA1R_TIMEVNT_Field := (As_Array => False, Val => 16#0#); -- External Event 1 EXTEVNT : SETA1R_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- Registers update (transfer preload to active) UPDATE : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SETA1R_Register use record SST at 0 range 0 .. 0; RESYNC at 0 range 1 .. 1; PER at 0 range 2 .. 2; CMP at 0 range 3 .. 6; MSTPER at 0 range 7 .. 7; MSTCMP at 0 range 8 .. 11; TIMEVNT at 0 range 12 .. 20; EXTEVNT at 0 range 21 .. 30; UPDATE at 0 range 31 .. 31; end record; -- RSTA1R_CMP array type RSTA1R_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTA1R_CMP type RSTA1R_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : RSTA1R_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTA1R_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTA1R_MSTCMP array type RSTA1R_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTA1R_MSTCMP type RSTA1R_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : RSTA1R_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTA1R_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTA1R_TIMEVNT array type RSTA1R_TIMEVNT_Field_Array is array (1 .. 9) of Boolean with Component_Size => 1, Size => 9; -- Type definition for RSTA1R_TIMEVNT type RSTA1R_TIMEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMEVNT as a value Val : HAL.UInt9; when True => -- TIMEVNT as an array Arr : RSTA1R_TIMEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 9; for RSTA1R_TIMEVNT_Field use record Val at 0 range 0 .. 8; Arr at 0 range 0 .. 8; end record; -- RSTA1R_EXTEVNT array type RSTA1R_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for RSTA1R_EXTEVNT type RSTA1R_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : RSTA1R_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for RSTA1R_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- Timerx Output1 Reset Register type RSTA1R_Register is record -- SRT SRT : Boolean := False; -- RESYNC RESYNC : Boolean := False; -- PER PER : Boolean := False; -- CMP1 CMP : RSTA1R_CMP_Field := (As_Array => False, Val => 16#0#); -- MSTPER MSTPER : Boolean := False; -- MSTCMP1 MSTCMP : RSTA1R_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- TIMEVNT1 TIMEVNT : RSTA1R_TIMEVNT_Field := (As_Array => False, Val => 16#0#); -- EXTEVNT1 EXTEVNT : RSTA1R_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- UPDATE UPDATE : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for RSTA1R_Register use record SRT at 0 range 0 .. 0; RESYNC at 0 range 1 .. 1; PER at 0 range 2 .. 2; CMP at 0 range 3 .. 6; MSTPER at 0 range 7 .. 7; MSTCMP at 0 range 8 .. 11; TIMEVNT at 0 range 12 .. 20; EXTEVNT at 0 range 21 .. 30; UPDATE at 0 range 31 .. 31; end record; -- SETA2R_CMP array type SETA2R_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for SETA2R_CMP type SETA2R_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : SETA2R_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for SETA2R_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- SETA2R_MSTCMP array type SETA2R_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for SETA2R_MSTCMP type SETA2R_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : SETA2R_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for SETA2R_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- SETA2R_TIMEVNT array type SETA2R_TIMEVNT_Field_Array is array (1 .. 9) of Boolean with Component_Size => 1, Size => 9; -- Type definition for SETA2R_TIMEVNT type SETA2R_TIMEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMEVNT as a value Val : HAL.UInt9; when True => -- TIMEVNT as an array Arr : SETA2R_TIMEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 9; for SETA2R_TIMEVNT_Field use record Val at 0 range 0 .. 8; Arr at 0 range 0 .. 8; end record; -- SETA2R_EXTEVNT array type SETA2R_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for SETA2R_EXTEVNT type SETA2R_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : SETA2R_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for SETA2R_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- Timerx Output2 Set Register type SETA2R_Register is record -- SST SST : Boolean := False; -- RESYNC RESYNC : Boolean := False; -- PER PER : Boolean := False; -- CMP1 CMP : SETA2R_CMP_Field := (As_Array => False, Val => 16#0#); -- MSTPER MSTPER : Boolean := False; -- MSTCMP1 MSTCMP : SETA2R_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- TIMEVNT1 TIMEVNT : SETA2R_TIMEVNT_Field := (As_Array => False, Val => 16#0#); -- EXTEVNT1 EXTEVNT : SETA2R_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- UPDATE UPDATE : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SETA2R_Register use record SST at 0 range 0 .. 0; RESYNC at 0 range 1 .. 1; PER at 0 range 2 .. 2; CMP at 0 range 3 .. 6; MSTPER at 0 range 7 .. 7; MSTCMP at 0 range 8 .. 11; TIMEVNT at 0 range 12 .. 20; EXTEVNT at 0 range 21 .. 30; UPDATE at 0 range 31 .. 31; end record; -- RSTA2R_CMP array type RSTA2R_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTA2R_CMP type RSTA2R_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : RSTA2R_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTA2R_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTA2R_MSTCMP array type RSTA2R_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTA2R_MSTCMP type RSTA2R_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : RSTA2R_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTA2R_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTA2R_TIMEVNT array type RSTA2R_TIMEVNT_Field_Array is array (1 .. 9) of Boolean with Component_Size => 1, Size => 9; -- Type definition for RSTA2R_TIMEVNT type RSTA2R_TIMEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMEVNT as a value Val : HAL.UInt9; when True => -- TIMEVNT as an array Arr : RSTA2R_TIMEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 9; for RSTA2R_TIMEVNT_Field use record Val at 0 range 0 .. 8; Arr at 0 range 0 .. 8; end record; -- RSTA2R_EXTEVNT array type RSTA2R_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for RSTA2R_EXTEVNT type RSTA2R_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : RSTA2R_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for RSTA2R_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- Timerx Output2 Reset Register type RSTA2R_Register is record -- SRT SRT : Boolean := False; -- RESYNC RESYNC : Boolean := False; -- PER PER : Boolean := False; -- CMP1 CMP : RSTA2R_CMP_Field := (As_Array => False, Val => 16#0#); -- MSTPER MSTPER : Boolean := False; -- MSTCMP1 MSTCMP : RSTA2R_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- TIMEVNT1 TIMEVNT : RSTA2R_TIMEVNT_Field := (As_Array => False, Val => 16#0#); -- EXTEVNT1 EXTEVNT : RSTA2R_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- UPDATE UPDATE : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for RSTA2R_Register use record SRT at 0 range 0 .. 0; RESYNC at 0 range 1 .. 1; PER at 0 range 2 .. 2; CMP at 0 range 3 .. 6; MSTPER at 0 range 7 .. 7; MSTCMP at 0 range 8 .. 11; TIMEVNT at 0 range 12 .. 20; EXTEVNT at 0 range 21 .. 30; UPDATE at 0 range 31 .. 31; end record; subtype EEFAR1_EE1FLTR_Field is HAL.UInt4; subtype EEFAR1_EE2FLTR_Field is HAL.UInt4; subtype EEFAR1_EE3FLTR_Field is HAL.UInt4; subtype EEFAR1_EE4FLTR_Field is HAL.UInt4; subtype EEFAR1_EE5FLTR_Field is HAL.UInt4; -- Timerx External Event Filtering Register 1 type EEFAR1_Register is record -- External Event 1 latch EE1LTCH : Boolean := False; -- External Event 1 filter EE1FLTR : EEFAR1_EE1FLTR_Field := 16#0#; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- External Event 2 latch EE2LTCH : Boolean := False; -- External Event 2 filter EE2FLTR : EEFAR1_EE2FLTR_Field := 16#0#; -- unspecified Reserved_11_11 : HAL.Bit := 16#0#; -- External Event 3 latch EE3LTCH : Boolean := False; -- External Event 3 filter EE3FLTR : EEFAR1_EE3FLTR_Field := 16#0#; -- unspecified Reserved_17_17 : HAL.Bit := 16#0#; -- External Event 4 latch EE4LTCH : Boolean := False; -- External Event 4 filter EE4FLTR : EEFAR1_EE4FLTR_Field := 16#0#; -- unspecified Reserved_23_23 : HAL.Bit := 16#0#; -- External Event 5 latch EE5LTCH : Boolean := False; -- External Event 5 filter EE5FLTR : EEFAR1_EE5FLTR_Field := 16#0#; -- unspecified Reserved_29_31 : HAL.UInt3 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for EEFAR1_Register use record EE1LTCH at 0 range 0 .. 0; EE1FLTR at 0 range 1 .. 4; Reserved_5_5 at 0 range 5 .. 5; EE2LTCH at 0 range 6 .. 6; EE2FLTR at 0 range 7 .. 10; Reserved_11_11 at 0 range 11 .. 11; EE3LTCH at 0 range 12 .. 12; EE3FLTR at 0 range 13 .. 16; Reserved_17_17 at 0 range 17 .. 17; EE4LTCH at 0 range 18 .. 18; EE4FLTR at 0 range 19 .. 22; Reserved_23_23 at 0 range 23 .. 23; EE5LTCH at 0 range 24 .. 24; EE5FLTR at 0 range 25 .. 28; Reserved_29_31 at 0 range 29 .. 31; end record; subtype EEFAR2_EE6FLTR_Field is HAL.UInt4; subtype EEFAR2_EE7FLTR_Field is HAL.UInt4; subtype EEFAR2_EE8FLTR_Field is HAL.UInt4; subtype EEFAR2_EE9FLTR_Field is HAL.UInt4; subtype EEFAR2_EE10FLTR_Field is HAL.UInt4; -- Timerx External Event Filtering Register 2 type EEFAR2_Register is record -- External Event 6 latch EE6LTCH : Boolean := False; -- External Event 6 filter EE6FLTR : EEFAR2_EE6FLTR_Field := 16#0#; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- External Event 7 latch EE7LTCH : Boolean := False; -- External Event 7 filter EE7FLTR : EEFAR2_EE7FLTR_Field := 16#0#; -- unspecified Reserved_11_11 : HAL.Bit := 16#0#; -- External Event 8 latch EE8LTCH : Boolean := False; -- External Event 8 filter EE8FLTR : EEFAR2_EE8FLTR_Field := 16#0#; -- unspecified Reserved_17_17 : HAL.Bit := 16#0#; -- External Event 9 latch EE9LTCH : Boolean := False; -- External Event 9 filter EE9FLTR : EEFAR2_EE9FLTR_Field := 16#0#; -- unspecified Reserved_23_23 : HAL.Bit := 16#0#; -- External Event 10 latch EE10LTCH : Boolean := False; -- External Event 10 filter EE10FLTR : EEFAR2_EE10FLTR_Field := 16#0#; -- unspecified Reserved_29_31 : HAL.UInt3 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for EEFAR2_Register use record EE6LTCH at 0 range 0 .. 0; EE6FLTR at 0 range 1 .. 4; Reserved_5_5 at 0 range 5 .. 5; EE7LTCH at 0 range 6 .. 6; EE7FLTR at 0 range 7 .. 10; Reserved_11_11 at 0 range 11 .. 11; EE8LTCH at 0 range 12 .. 12; EE8FLTR at 0 range 13 .. 16; Reserved_17_17 at 0 range 17 .. 17; EE9LTCH at 0 range 18 .. 18; EE9FLTR at 0 range 19 .. 22; Reserved_23_23 at 0 range 23 .. 23; EE10LTCH at 0 range 24 .. 24; EE10FLTR at 0 range 25 .. 28; Reserved_29_31 at 0 range 29 .. 31; end record; -- RSTAR_CMP array type RSTAR_CMP_Field_Array is array (2 .. 3) of Boolean with Component_Size => 1, Size => 2; -- Type definition for RSTAR_CMP type RSTAR_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt2; when True => -- CMP as an array Arr : RSTAR_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for RSTAR_CMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- RSTAR_MSTCMP array type RSTAR_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTAR_MSTCMP type RSTAR_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : RSTAR_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTAR_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTAR_EXTEVNT array type RSTAR_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for RSTAR_EXTEVNT type RSTAR_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : RSTAR_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for RSTAR_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- RSTAR_TIMBCMP array type RSTAR_TIMBCMP_Field_Array is array (1 .. 3) of Boolean with Component_Size => 1, Size => 3; -- Type definition for RSTAR_TIMBCMP type RSTAR_TIMBCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMBCMP as a value Val : HAL.UInt3; when True => -- TIMBCMP as an array Arr : RSTAR_TIMBCMP_Field_Array; end case; end record with Unchecked_Union, Size => 3; for RSTAR_TIMBCMP_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- RSTAR_TIMCCMP array type RSTAR_TIMCCMP_Field_Array is array (1 .. 3) of Boolean with Component_Size => 1, Size => 3; -- Type definition for RSTAR_TIMCCMP type RSTAR_TIMCCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMCCMP as a value Val : HAL.UInt3; when True => -- TIMCCMP as an array Arr : RSTAR_TIMCCMP_Field_Array; end case; end record with Unchecked_Union, Size => 3; for RSTAR_TIMCCMP_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- RSTAR_TIMDCMP array type RSTAR_TIMDCMP_Field_Array is array (1 .. 3) of Boolean with Component_Size => 1, Size => 3; -- Type definition for RSTAR_TIMDCMP type RSTAR_TIMDCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMDCMP as a value Val : HAL.UInt3; when True => -- TIMDCMP as an array Arr : RSTAR_TIMDCMP_Field_Array; end case; end record with Unchecked_Union, Size => 3; for RSTAR_TIMDCMP_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- RSTAR_TIMECMP array type RSTAR_TIMECMP_Field_Array is array (1 .. 3) of Boolean with Component_Size => 1, Size => 3; -- Type definition for RSTAR_TIMECMP type RSTAR_TIMECMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMECMP as a value Val : HAL.UInt3; when True => -- TIMECMP as an array Arr : RSTAR_TIMECMP_Field_Array; end case; end record with Unchecked_Union, Size => 3; for RSTAR_TIMECMP_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- TimerA Reset Register type RSTAR_Register is record -- Timer A Update reset TIMFCMP1 : Boolean := False; -- Timer A Update reset UPDT : Boolean := False; -- Timer A compare 2 reset CMP : RSTAR_CMP_Field := (As_Array => False, Val => 16#0#); -- Master timer Period MSTPER : Boolean := False; -- Master compare 1 MSTCMP : RSTAR_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- External Event 1 EXTEVNT : RSTAR_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- Timer B Compare 1 TIMBCMP : RSTAR_TIMBCMP_Field := (As_Array => False, Val => 16#0#); -- Timer C Compare 1 TIMCCMP : RSTAR_TIMCCMP_Field := (As_Array => False, Val => 16#0#); -- Timer D Compare 1 TIMDCMP : RSTAR_TIMDCMP_Field := (As_Array => False, Val => 16#0#); -- Timer E Compare 1 TIMECMP : RSTAR_TIMECMP_Field := (As_Array => False, Val => 16#0#); -- Timer F Compare 2 TIMFCPM2 : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for RSTAR_Register use record TIMFCMP1 at 0 range 0 .. 0; UPDT at 0 range 1 .. 1; CMP at 0 range 2 .. 3; MSTPER at 0 range 4 .. 4; MSTCMP at 0 range 5 .. 8; EXTEVNT at 0 range 9 .. 18; TIMBCMP at 0 range 19 .. 21; TIMCCMP at 0 range 22 .. 24; TIMDCMP at 0 range 25 .. 27; TIMECMP at 0 range 28 .. 30; TIMFCPM2 at 0 range 31 .. 31; end record; subtype CHPAR_CHPFRQ_Field is HAL.UInt4; subtype CHPAR_CHPDTY_Field is HAL.UInt3; subtype CHPAR_STRTPW_Field is HAL.UInt4; -- Timerx Chopper Register type CHPAR_Register is record -- Timerx carrier frequency value CHPFRQ : CHPAR_CHPFRQ_Field := 16#0#; -- Timerx chopper duty cycle value CHPDTY : CHPAR_CHPDTY_Field := 16#0#; -- STRTPW STRTPW : CHPAR_STRTPW_Field := 16#0#; -- unspecified Reserved_11_31 : HAL.UInt21 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CHPAR_Register use record CHPFRQ at 0 range 0 .. 3; CHPDTY at 0 range 4 .. 6; STRTPW at 0 range 7 .. 10; Reserved_11_31 at 0 range 11 .. 31; end record; -- CPT1ACR_TFCMP array type CPT1ACR_TFCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1ACR_TFCMP type CPT1ACR_TFCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TFCMP as a value Val : HAL.UInt2; when True => -- TFCMP as an array Arr : CPT1ACR_TFCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1ACR_TFCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT1ACR_TBCMP array type CPT1ACR_TBCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1ACR_TBCMP type CPT1ACR_TBCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TBCMP as a value Val : HAL.UInt2; when True => -- TBCMP as an array Arr : CPT1ACR_TBCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1ACR_TBCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT1ACR_TCCMP array type CPT1ACR_TCCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1ACR_TCCMP type CPT1ACR_TCCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TCCMP as a value Val : HAL.UInt2; when True => -- TCCMP as an array Arr : CPT1ACR_TCCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1ACR_TCCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT1ACR_TDCMP array type CPT1ACR_TDCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1ACR_TDCMP type CPT1ACR_TDCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TDCMP as a value Val : HAL.UInt2; when True => -- TDCMP as an array Arr : CPT1ACR_TDCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1ACR_TDCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT1ACR_TECMP array type CPT1ACR_TECMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1ACR_TECMP type CPT1ACR_TECMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TECMP as a value Val : HAL.UInt2; when True => -- TECMP as an array Arr : CPT1ACR_TECMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1ACR_TECMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Timerx Capture 1 Control Register type CPT1ACR_Register is record -- Software Capture SWCPT : Boolean := False; -- Update Capture UDPCPT : Boolean := False; -- External Event 1 Capture EXEV1CPT : Boolean := False; -- External Event 2 Capture EXEV2CPT : Boolean := False; -- External Event 3 Capture EXEV3CPT : Boolean := False; -- External Event 4 Capture EXEV4CPT : Boolean := False; -- External Event 5 Capture EXEV5CPT : Boolean := False; -- External Event 6 Capture EXEV6CPT : Boolean := False; -- External Event 7 Capture EXEV7CPT : Boolean := False; -- External Event 8 Capture EXEV8CPT : Boolean := False; -- External Event 9 Capture EXEV9CPT : Boolean := False; -- External Event 10 Capture EXEV10CPT : Boolean := False; -- TF1SET TF1SET : Boolean := False; -- TF1RST TF1RST : Boolean := False; -- TFCMP1 TFCMP : CPT1ACR_TFCMP_Field := (As_Array => False, Val => 16#0#); -- Timer B output 1 Set TB1SET : Boolean := False; -- Timer B output 1 Reset TB1RST : Boolean := False; -- Timer B Compare 1 TBCMP : CPT1ACR_TBCMP_Field := (As_Array => False, Val => 16#0#); -- Timer C output 1 Set TC1SET : Boolean := False; -- Timer C output 1 Reset TC1RST : Boolean := False; -- Timer C Compare 1 TCCMP : CPT1ACR_TCCMP_Field := (As_Array => False, Val => 16#0#); -- Timer D output 1 Set TD1SET : Boolean := False; -- Timer D output 1 Reset TD1RST : Boolean := False; -- Timer D Compare 1 TDCMP : CPT1ACR_TDCMP_Field := (As_Array => False, Val => 16#0#); -- Timer E output 1 Set TE1SET : Boolean := False; -- Timer E output 1 Reset TE1RST : Boolean := False; -- Timer E Compare 1 TECMP : CPT1ACR_TECMP_Field := (As_Array => False, Val => 16#0#); end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPT1ACR_Register use record SWCPT at 0 range 0 .. 0; UDPCPT at 0 range 1 .. 1; EXEV1CPT at 0 range 2 .. 2; EXEV2CPT at 0 range 3 .. 3; EXEV3CPT at 0 range 4 .. 4; EXEV4CPT at 0 range 5 .. 5; EXEV5CPT at 0 range 6 .. 6; EXEV6CPT at 0 range 7 .. 7; EXEV7CPT at 0 range 8 .. 8; EXEV8CPT at 0 range 9 .. 9; EXEV9CPT at 0 range 10 .. 10; EXEV10CPT at 0 range 11 .. 11; TF1SET at 0 range 12 .. 12; TF1RST at 0 range 13 .. 13; TFCMP at 0 range 14 .. 15; TB1SET at 0 range 16 .. 16; TB1RST at 0 range 17 .. 17; TBCMP at 0 range 18 .. 19; TC1SET at 0 range 20 .. 20; TC1RST at 0 range 21 .. 21; TCCMP at 0 range 22 .. 23; TD1SET at 0 range 24 .. 24; TD1RST at 0 range 25 .. 25; TDCMP at 0 range 26 .. 27; TE1SET at 0 range 28 .. 28; TE1RST at 0 range 29 .. 29; TECMP at 0 range 30 .. 31; end record; -- CPT2ACR_TFCMP array type CPT2ACR_TFCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2ACR_TFCMP type CPT2ACR_TFCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TFCMP as a value Val : HAL.UInt2; when True => -- TFCMP as an array Arr : CPT2ACR_TFCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2ACR_TFCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT2ACR_TBCMP array type CPT2ACR_TBCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2ACR_TBCMP type CPT2ACR_TBCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TBCMP as a value Val : HAL.UInt2; when True => -- TBCMP as an array Arr : CPT2ACR_TBCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2ACR_TBCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT2ACR_TCCMP array type CPT2ACR_TCCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2ACR_TCCMP type CPT2ACR_TCCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TCCMP as a value Val : HAL.UInt2; when True => -- TCCMP as an array Arr : CPT2ACR_TCCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2ACR_TCCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT2ACR_TDCMP array type CPT2ACR_TDCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2ACR_TDCMP type CPT2ACR_TDCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TDCMP as a value Val : HAL.UInt2; when True => -- TDCMP as an array Arr : CPT2ACR_TDCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2ACR_TDCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT2ACR_TECMP array type CPT2ACR_TECMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2ACR_TECMP type CPT2ACR_TECMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TECMP as a value Val : HAL.UInt2; when True => -- TECMP as an array Arr : CPT2ACR_TECMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2ACR_TECMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Timerx Capture 2 Control Register type CPT2ACR_Register is record -- Software Capture SWCPT : Boolean := False; -- Update Capture UDPCPT : Boolean := False; -- External Event 1 Capture EXEV1CPT : Boolean := False; -- External Event 2 Capture EXEV2CPT : Boolean := False; -- External Event 3 Capture EXEV3CPT : Boolean := False; -- External Event 4 Capture EXEV4CPT : Boolean := False; -- External Event 5 Capture EXEV5CPT : Boolean := False; -- External Event 6 Capture EXEV6CPT : Boolean := False; -- External Event 7 Capture EXEV7CPT : Boolean := False; -- External Event 8 Capture EXEV8CPT : Boolean := False; -- External Event 9 Capture EXEV9CPT : Boolean := False; -- External Event 10 Capture EXEV10CPT : Boolean := False; -- TF1SET TF1SET : Boolean := False; -- TF1RST TF1RST : Boolean := False; -- TFCMP1 TFCMP : CPT2ACR_TFCMP_Field := (As_Array => False, Val => 16#0#); -- Timer B output 1 Set TB1SET : Boolean := False; -- Timer B output 1 Reset TB1RST : Boolean := False; -- Timer B Compare 1 TBCMP : CPT2ACR_TBCMP_Field := (As_Array => False, Val => 16#0#); -- Timer C output 1 Set TC1SET : Boolean := False; -- Timer C output 1 Reset TC1RST : Boolean := False; -- Timer C Compare 1 TCCMP : CPT2ACR_TCCMP_Field := (As_Array => False, Val => 16#0#); -- Timer D output 1 Set TD1SET : Boolean := False; -- Timer D output 1 Reset TD1RST : Boolean := False; -- Timer D Compare 1 TDCMP : CPT2ACR_TDCMP_Field := (As_Array => False, Val => 16#0#); -- Timer E output 1 Set TE1SET : Boolean := False; -- Timer E output 1 Reset TE1RST : Boolean := False; -- Timer E Compare 1 TECMP : CPT2ACR_TECMP_Field := (As_Array => False, Val => 16#0#); end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPT2ACR_Register use record SWCPT at 0 range 0 .. 0; UDPCPT at 0 range 1 .. 1; EXEV1CPT at 0 range 2 .. 2; EXEV2CPT at 0 range 3 .. 3; EXEV3CPT at 0 range 4 .. 4; EXEV4CPT at 0 range 5 .. 5; EXEV5CPT at 0 range 6 .. 6; EXEV6CPT at 0 range 7 .. 7; EXEV7CPT at 0 range 8 .. 8; EXEV8CPT at 0 range 9 .. 9; EXEV9CPT at 0 range 10 .. 10; EXEV10CPT at 0 range 11 .. 11; TF1SET at 0 range 12 .. 12; TF1RST at 0 range 13 .. 13; TFCMP at 0 range 14 .. 15; TB1SET at 0 range 16 .. 16; TB1RST at 0 range 17 .. 17; TBCMP at 0 range 18 .. 19; TC1SET at 0 range 20 .. 20; TC1RST at 0 range 21 .. 21; TCCMP at 0 range 22 .. 23; TD1SET at 0 range 24 .. 24; TD1RST at 0 range 25 .. 25; TDCMP at 0 range 26 .. 27; TE1SET at 0 range 28 .. 28; TE1RST at 0 range 29 .. 29; TECMP at 0 range 30 .. 31; end record; subtype OUTAR_FAULT1_Field is HAL.UInt2; subtype OUTAR_DLYPRT_Field is HAL.UInt3; subtype OUTAR_FAULT2_Field is HAL.UInt2; -- Timerx Output Register type OUTAR_Register is record -- unspecified Reserved_0_0 : HAL.Bit := 16#0#; -- Output 1 polarity POL1 : Boolean := False; -- Output 1 Idle mode IDLEM1 : Boolean := False; -- Output 1 Idle State IDLES1 : Boolean := False; -- Output 1 Fault state FAULT1 : OUTAR_FAULT1_Field := 16#0#; -- Output 1 Chopper enable CHP1 : Boolean := False; -- Output 1 Deadtime upon burst mode Idle entry DIDL1 : Boolean := False; -- Deadtime enable DTEN : Boolean := False; -- Delayed Protection Enable DLYPRTEN : Boolean := False; -- Delayed Protection DLYPRT : OUTAR_DLYPRT_Field := 16#0#; -- unspecified Reserved_13_13 : HAL.Bit := 16#0#; -- Balanced Idle Automatic Resume BIAR : Boolean := False; -- unspecified Reserved_15_16 : HAL.UInt2 := 16#0#; -- Output 2 polarity POL2 : Boolean := False; -- Output 2 Idle mode IDLEM2 : Boolean := False; -- Output 2 Idle State IDLES2 : Boolean := False; -- Output 2 Fault state FAULT2 : OUTAR_FAULT2_Field := 16#0#; -- Output 2 Chopper enable CHP2 : Boolean := False; -- Output 2 Deadtime upon burst mode Idle entry DIDL2 : Boolean := False; -- unspecified Reserved_24_31 : HAL.UInt8 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for OUTAR_Register use record Reserved_0_0 at 0 range 0 .. 0; POL1 at 0 range 1 .. 1; IDLEM1 at 0 range 2 .. 2; IDLES1 at 0 range 3 .. 3; FAULT1 at 0 range 4 .. 5; CHP1 at 0 range 6 .. 6; DIDL1 at 0 range 7 .. 7; DTEN at 0 range 8 .. 8; DLYPRTEN at 0 range 9 .. 9; DLYPRT at 0 range 10 .. 12; Reserved_13_13 at 0 range 13 .. 13; BIAR at 0 range 14 .. 14; Reserved_15_16 at 0 range 15 .. 16; POL2 at 0 range 17 .. 17; IDLEM2 at 0 range 18 .. 18; IDLES2 at 0 range 19 .. 19; FAULT2 at 0 range 20 .. 21; CHP2 at 0 range 22 .. 22; DIDL2 at 0 range 23 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; -- Timerx Fault Register type FLTAR_Register is record -- Fault 1 enable FLT1EN : Boolean := False; -- Fault 2 enable FLT2EN : Boolean := False; -- Fault 3 enable FLT3EN : Boolean := False; -- Fault 4 enable FLT4EN : Boolean := False; -- Fault 5 enable FLT5EN : Boolean := False; -- Fault 6 enable FLT6EN : Boolean := False; -- unspecified Reserved_6_30 : HAL.UInt25 := 16#0#; -- Fault sources Lock FLTLCK : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for FLTAR_Register use record FLT1EN at 0 range 0 .. 0; FLT2EN at 0 range 1 .. 1; FLT3EN at 0 range 2 .. 2; FLT4EN at 0 range 3 .. 3; FLT5EN at 0 range 4 .. 4; FLT6EN at 0 range 5 .. 5; Reserved_6_30 at 0 range 6 .. 30; FLTLCK at 0 range 31 .. 31; end record; subtype TIMACR2_ROM_Field is HAL.UInt2; subtype TIMACR2_OUTROM_Field is HAL.UInt2; subtype TIMACR2_ADROM_Field is HAL.UInt2; subtype TIMACR2_BMROM_Field is HAL.UInt2; subtype TIMACR2_FEROM_Field is HAL.UInt2; -- TIMACR2_GTCMP array type TIMACR2_GTCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for TIMACR2_GTCMP type TIMACR2_GTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- GTCMP as a value Val : HAL.UInt2; when True => -- GTCMP as an array Arr : TIMACR2_GTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for TIMACR2_GTCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- HRTIM Timerx Control Register 2 type TIMACR2_Register is record -- Dual Channel DAC trigger enable DCDE : Boolean := False; -- Dual Channel DAC Step trigger DCDS : Boolean := False; -- Dual Channel DAC Reset trigger DCDR : Boolean := False; -- unspecified Reserved_3_3 : HAL.Bit := 16#0#; -- Up-Down Mode UDM : Boolean := False; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- Roll-Over Mode ROM : TIMACR2_ROM_Field := 16#0#; -- Output Roll-Over Mode OUTROM : TIMACR2_OUTROM_Field := 16#0#; -- ADC Roll-Over Mode ADROM : TIMACR2_ADROM_Field := 16#0#; -- Burst Mode Roll-Over Mode BMROM : TIMACR2_BMROM_Field := 16#0#; -- Fault and Event Roll-Over Mode FEROM : TIMACR2_FEROM_Field := 16#0#; -- Greater than Compare 1 PWM mode GTCMP : TIMACR2_GTCMP_Field := (As_Array => False, Val => 16#0#); -- unspecified Reserved_18_19 : HAL.UInt2 := 16#0#; -- Triggered-half mode TRGHLF : Boolean := False; -- unspecified Reserved_21_31 : HAL.UInt11 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMACR2_Register use record DCDE at 0 range 0 .. 0; DCDS at 0 range 1 .. 1; DCDR at 0 range 2 .. 2; Reserved_3_3 at 0 range 3 .. 3; UDM at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; ROM at 0 range 6 .. 7; OUTROM at 0 range 8 .. 9; ADROM at 0 range 10 .. 11; BMROM at 0 range 12 .. 13; FEROM at 0 range 14 .. 15; GTCMP at 0 range 16 .. 17; Reserved_18_19 at 0 range 18 .. 19; TRGHLF at 0 range 20 .. 20; Reserved_21_31 at 0 range 21 .. 31; end record; subtype EEFAR3_EEVASEL_Field is HAL.UInt4; subtype EEFAR3_EEVACNT_Field is HAL.UInt6; -- HRTIM Timerx External Event Filtering Register 3 type EEFAR3_Register is record -- External Event A Counter Enable EEVACE : Boolean := False; -- External Event A Counter Reset EEVACRES : Boolean := False; -- External Event A Reset Mode EEVARSTM : Boolean := False; -- unspecified Reserved_3_3 : HAL.Bit := 16#0#; -- External Event A Selection EEVASEL : EEFAR3_EEVASEL_Field := 16#0#; -- External Event A counter EEVACNT : EEFAR3_EEVACNT_Field := 16#0#; -- unspecified Reserved_14_31 : HAL.UInt18 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for EEFAR3_Register use record EEVACE at 0 range 0 .. 0; EEVACRES at 0 range 1 .. 1; EEVARSTM at 0 range 2 .. 2; Reserved_3_3 at 0 range 3 .. 3; EEVASEL at 0 range 4 .. 7; EEVACNT at 0 range 8 .. 13; Reserved_14_31 at 0 range 14 .. 31; end record; subtype TIMBCR_CKPSCx_Field is HAL.UInt3; subtype TIMBCR_INTLVD_Field is HAL.UInt2; -- TIMBCR_DELCMP array element subtype TIMBCR_DELCMP_Element is HAL.UInt2; -- TIMBCR_DELCMP array type TIMBCR_DELCMP_Field_Array is array (2 .. 3) of TIMBCR_DELCMP_Element with Component_Size => 2, Size => 4; -- Type definition for TIMBCR_DELCMP type TIMBCR_DELCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- DELCMP as a value Val : HAL.UInt4; when True => -- DELCMP as an array Arr : TIMBCR_DELCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for TIMBCR_DELCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; subtype TIMBCR_DACSYNC_Field is HAL.UInt2; subtype TIMBCR_UPDGAT_Field is HAL.UInt4; -- Timerx Control Register type TIMBCR_Register is record -- HRTIM Timer x Clock prescaler CKPSCx : TIMBCR_CKPSCx_Field := 16#0#; -- Continuous mode CONT : Boolean := False; -- Re-triggerable mode RETRIG : Boolean := False; -- Half mode enable HALF : Boolean := False; -- Push-Pull mode enable PSHPLL : Boolean := False; -- Interleaved mode INTLVD : TIMBCR_INTLVD_Field := 16#0#; -- Re-Synchronized Update RSYNCU : Boolean := False; -- Synchronization Resets Timer x SYNCRSTx : Boolean := False; -- Synchronization Starts Timer x SYNCSTRTx : Boolean := False; -- Delayed CMP2 mode DELCMP : TIMBCR_DELCMP_Field := (As_Array => False, Val => 16#0#); -- TFU TFU : Boolean := False; -- Timer x Repetition update TxREPU : Boolean := False; -- Timerx reset update TxRSTU : Boolean := False; -- TAU TAU : Boolean := False; -- unspecified Reserved_20_20 : HAL.Bit := 16#0#; -- TCU TCU : Boolean := False; -- TDU TDU : Boolean := False; -- TEU TEU : Boolean := False; -- Master Timer update MSTU : Boolean := False; -- AC Synchronization DACSYNC : TIMBCR_DACSYNC_Field := 16#0#; -- Preload enable PREEN : Boolean := False; -- Update Gating UPDGAT : TIMBCR_UPDGAT_Field := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMBCR_Register use record CKPSCx at 0 range 0 .. 2; CONT at 0 range 3 .. 3; RETRIG at 0 range 4 .. 4; HALF at 0 range 5 .. 5; PSHPLL at 0 range 6 .. 6; INTLVD at 0 range 7 .. 8; RSYNCU at 0 range 9 .. 9; SYNCRSTx at 0 range 10 .. 10; SYNCSTRTx at 0 range 11 .. 11; DELCMP at 0 range 12 .. 15; TFU at 0 range 16 .. 16; TxREPU at 0 range 17 .. 17; TxRSTU at 0 range 18 .. 18; TAU at 0 range 19 .. 19; Reserved_20_20 at 0 range 20 .. 20; TCU at 0 range 21 .. 21; TDU at 0 range 22 .. 22; TEU at 0 range 23 .. 23; MSTU at 0 range 24 .. 24; DACSYNC at 0 range 25 .. 26; PREEN at 0 range 27 .. 27; UPDGAT at 0 range 28 .. 31; end record; -- TIMBISR_CMP array type TIMBISR_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for TIMBISR_CMP type TIMBISR_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : TIMBISR_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for TIMBISR_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- TIMBISR_CPT array type TIMBISR_CPT_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for TIMBISR_CPT type TIMBISR_CPT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CPT as a value Val : HAL.UInt2; when True => -- CPT as an array Arr : TIMBISR_CPT_Field_Array; end case; end record with Unchecked_Union, Size => 2; for TIMBISR_CPT_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Timerx Interrupt Status Register type TIMBISR_Register is record -- Read-only. Compare 1 Interrupt Flag CMP : TIMBISR_CMP_Field; -- Read-only. Repetition Interrupt Flag REP : Boolean; -- unspecified Reserved_5_5 : HAL.Bit; -- Read-only. Update Interrupt Flag UPD : Boolean; -- Read-only. Capture1 Interrupt Flag CPT : TIMBISR_CPT_Field; -- Read-only. Output 1 Set Interrupt Flag SETx1 : Boolean; -- Read-only. Output 1 Reset Interrupt Flag RSTx1 : Boolean; -- Read-only. Output 2 Set Interrupt Flag SETx2 : Boolean; -- Read-only. Output 2 Reset Interrupt Flag RSTx2 : Boolean; -- Read-only. Reset Interrupt Flag RST : Boolean; -- Read-only. Delayed Protection Flag DLYPRT : Boolean; -- unspecified Reserved_15_15 : HAL.Bit; -- Read-only. Current Push Pull Status CPPSTAT : Boolean; -- Read-only. Idle Push Pull Status IPPSTAT : Boolean; -- Read-only. Output 1 State O1STAT : Boolean; -- Read-only. Output 2 State O2STAT : Boolean; -- Read-only. Output 1 Copy O1CPY : Boolean; -- Read-only. Output 2 Copy O2CPY : Boolean; -- unspecified Reserved_22_31 : HAL.UInt10; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMBISR_Register use record CMP at 0 range 0 .. 3; REP at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; UPD at 0 range 6 .. 6; CPT at 0 range 7 .. 8; SETx1 at 0 range 9 .. 9; RSTx1 at 0 range 10 .. 10; SETx2 at 0 range 11 .. 11; RSTx2 at 0 range 12 .. 12; RST at 0 range 13 .. 13; DLYPRT at 0 range 14 .. 14; Reserved_15_15 at 0 range 15 .. 15; CPPSTAT at 0 range 16 .. 16; IPPSTAT at 0 range 17 .. 17; O1STAT at 0 range 18 .. 18; O2STAT at 0 range 19 .. 19; O1CPY at 0 range 20 .. 20; O2CPY at 0 range 21 .. 21; Reserved_22_31 at 0 range 22 .. 31; end record; -- Timerx Interrupt Clear Register type TIMBICR_Register is record -- Write-only. Compare 1 Interrupt flag Clear CMP1C : Boolean := False; -- Write-only. Compare 2 Interrupt flag Clear CMP2C : Boolean := False; -- Write-only. Compare 3 Interrupt flag Clear CMP3C : Boolean := False; -- Write-only. Compare 4 Interrupt flag Clear CMP4C : Boolean := False; -- Write-only. Repetition Interrupt flag Clear REPC : Boolean := False; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- Write-only. Update Interrupt flag Clear UPDC : Boolean := False; -- Write-only. Capture1 Interrupt flag Clear CPT1C : Boolean := False; -- Write-only. Capture2 Interrupt flag Clear CPT2C : Boolean := False; -- Write-only. Output 1 Set flag Clear SET1xC : Boolean := False; -- Write-only. Output 1 Reset flag Clear RSTx1C : Boolean := False; -- Write-only. Output 2 Set flag Clear SET2xC : Boolean := False; -- Write-only. Output 2 Reset flag Clear RSTx2C : Boolean := False; -- Write-only. Reset Interrupt flag Clear RSTC : Boolean := False; -- Write-only. Delayed Protection Flag Clear DLYPRTC : Boolean := False; -- unspecified Reserved_15_31 : HAL.UInt17 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMBICR_Register use record CMP1C at 0 range 0 .. 0; CMP2C at 0 range 1 .. 1; CMP3C at 0 range 2 .. 2; CMP4C at 0 range 3 .. 3; REPC at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; UPDC at 0 range 6 .. 6; CPT1C at 0 range 7 .. 7; CPT2C at 0 range 8 .. 8; SET1xC at 0 range 9 .. 9; RSTx1C at 0 range 10 .. 10; SET2xC at 0 range 11 .. 11; RSTx2C at 0 range 12 .. 12; RSTC at 0 range 13 .. 13; DLYPRTC at 0 range 14 .. 14; Reserved_15_31 at 0 range 15 .. 31; end record; -- TIMxDIER type TIMBDIER_Register is record -- CMP1IE CMP1IE : Boolean := False; -- CMP2IE CMP2IE : Boolean := False; -- CMP3IE CMP3IE : Boolean := False; -- CMP4IE CMP4IE : Boolean := False; -- REPIE REPIE : Boolean := False; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- UPDIE UPDIE : Boolean := False; -- CPT1IE CPT1IE : Boolean := False; -- CPT2IE CPT2IE : Boolean := False; -- SET1xIE SET1xIE : Boolean := False; -- RSTx1IE RSTx1IE : Boolean := False; -- SETx2IE SETx2IE : Boolean := False; -- RSTx2IE RSTx2IE : Boolean := False; -- RSTIE RSTIE : Boolean := False; -- DLYPRTIE DLYPRTIE : Boolean := False; -- unspecified Reserved_15_15 : HAL.Bit := 16#0#; -- CMP1DE CMP1DE : Boolean := False; -- CMP2DE CMP2DE : Boolean := False; -- CMP3DE CMP3DE : Boolean := False; -- CMP4DE CMP4DE : Boolean := False; -- REPDE REPDE : Boolean := False; -- unspecified Reserved_21_21 : HAL.Bit := 16#0#; -- UPDDE UPDDE : Boolean := False; -- CPT1DE CPT1DE : Boolean := False; -- CPT2DE CPT2DE : Boolean := False; -- SET1xDE SET1xDE : Boolean := False; -- RSTx1DE RSTx1DE : Boolean := False; -- SETx2DE SETx2DE : Boolean := False; -- RSTx2DE RSTx2DE : Boolean := False; -- RSTDE RSTDE : Boolean := False; -- DLYPRTDE DLYPRTDE : Boolean := False; -- unspecified Reserved_31_31 : HAL.Bit := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMBDIER_Register use record CMP1IE at 0 range 0 .. 0; CMP2IE at 0 range 1 .. 1; CMP3IE at 0 range 2 .. 2; CMP4IE at 0 range 3 .. 3; REPIE at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; UPDIE at 0 range 6 .. 6; CPT1IE at 0 range 7 .. 7; CPT2IE at 0 range 8 .. 8; SET1xIE at 0 range 9 .. 9; RSTx1IE at 0 range 10 .. 10; SETx2IE at 0 range 11 .. 11; RSTx2IE at 0 range 12 .. 12; RSTIE at 0 range 13 .. 13; DLYPRTIE at 0 range 14 .. 14; Reserved_15_15 at 0 range 15 .. 15; CMP1DE at 0 range 16 .. 16; CMP2DE at 0 range 17 .. 17; CMP3DE at 0 range 18 .. 18; CMP4DE at 0 range 19 .. 19; REPDE at 0 range 20 .. 20; Reserved_21_21 at 0 range 21 .. 21; UPDDE at 0 range 22 .. 22; CPT1DE at 0 range 23 .. 23; CPT2DE at 0 range 24 .. 24; SET1xDE at 0 range 25 .. 25; RSTx1DE at 0 range 26 .. 26; SETx2DE at 0 range 27 .. 27; RSTx2DE at 0 range 28 .. 28; RSTDE at 0 range 29 .. 29; DLYPRTDE at 0 range 30 .. 30; Reserved_31_31 at 0 range 31 .. 31; end record; subtype CNTR_CNTx_Field is HAL.UInt16; -- Timerx Counter Register type CNTR_Register is record -- Timerx Counter value CNTx : CNTR_CNTx_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CNTR_Register use record CNTx at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype PERBR_PERx_Field is HAL.UInt16; -- Timerx Period Register type PERBR_Register is record -- Timerx Period value PERx : PERBR_PERx_Field := 16#FFFF#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for PERBR_Register use record PERx at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype REPBR_REPx_Field is HAL.UInt8; -- Timerx Repetition Register type REPBR_Register is record -- Timerx Repetition counter value REPx : REPBR_REPx_Field := 16#0#; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for REPBR_Register use record REPx at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype CMP1BR_CMP1x_Field is HAL.UInt16; -- Timerx Compare 1 Register type CMP1BR_Register is record -- Timerx Compare 1 value CMP1x : CMP1BR_CMP1x_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP1BR_Register use record CMP1x at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CMP1CBR_CMP1x_Field is HAL.UInt16; subtype CMP1CBR_REPx_Field is HAL.UInt8; -- Timerx Compare 1 Compound Register type CMP1CBR_Register is record -- Timerx Compare 1 value CMP1x : CMP1CBR_CMP1x_Field := 16#0#; -- Timerx Repetition value (aliased from HRTIM_REPx register) REPx : CMP1CBR_REPx_Field := 16#0#; -- unspecified Reserved_24_31 : HAL.UInt8 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP1CBR_Register use record CMP1x at 0 range 0 .. 15; REPx at 0 range 16 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; subtype CMP2BR_CMP2x_Field is HAL.UInt16; -- Timerx Compare 2 Register type CMP2BR_Register is record -- Timerx Compare 2 value CMP2x : CMP2BR_CMP2x_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP2BR_Register use record CMP2x at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CMP3BR_CMP3x_Field is HAL.UInt16; -- Timerx Compare 3 Register type CMP3BR_Register is record -- Timerx Compare 3 value CMP3x : CMP3BR_CMP3x_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP3BR_Register use record CMP3x at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CMP4BR_CMP4x_Field is HAL.UInt16; -- Timerx Compare 4 Register type CMP4BR_Register is record -- Timerx Compare 4 value CMP4x : CMP4BR_CMP4x_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP4BR_Register use record CMP4x at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CPT1BR_CPT1x_Field is HAL.UInt16; -- Timerx Capture 1 Register type CPT1BR_Register is record -- Read-only. Timerx Capture 1 value CPT1x : CPT1BR_CPT1x_Field; -- Read-only. Timerx Capture 1 Direction status DIR : Boolean; -- unspecified Reserved_17_31 : HAL.UInt15; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPT1BR_Register use record CPT1x at 0 range 0 .. 15; DIR at 0 range 16 .. 16; Reserved_17_31 at 0 range 17 .. 31; end record; subtype CPT2BR_CPT2x_Field is HAL.UInt16; -- Timerx Capture 2 Register type CPT2BR_Register is record -- Read-only. Timerx Capture 2 value CPT2x : CPT2BR_CPT2x_Field; -- Read-only. Timerx Capture 1 Direction status DIR : Boolean; -- unspecified Reserved_17_31 : HAL.UInt15; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPT2BR_Register use record CPT2x at 0 range 0 .. 15; DIR at 0 range 16 .. 16; Reserved_17_31 at 0 range 17 .. 31; end record; subtype DTBR_DTRx_Field is HAL.UInt9; subtype DTBR_DTPRSC_Field is HAL.UInt3; subtype DTBR_DTFx_Field is HAL.UInt9; -- Timerx Deadtime Register type DTBR_Register is record -- Deadtime Rising value DTRx : DTBR_DTRx_Field := 16#0#; -- Sign Deadtime Rising value SDTRx : Boolean := False; -- Deadtime Prescaler DTPRSC : DTBR_DTPRSC_Field := 16#0#; -- unspecified Reserved_13_13 : HAL.Bit := 16#0#; -- Deadtime Rising Sign Lock DTRSLKx : Boolean := False; -- Deadtime Rising Lock DTRLKx : Boolean := False; -- Deadtime Falling value DTFx : DTBR_DTFx_Field := 16#0#; -- Sign Deadtime Falling value SDTFx : Boolean := False; -- unspecified Reserved_26_29 : HAL.UInt4 := 16#0#; -- Deadtime Falling Sign Lock DTFSLKx : Boolean := False; -- Deadtime Falling Lock DTFLKx : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DTBR_Register use record DTRx at 0 range 0 .. 8; SDTRx at 0 range 9 .. 9; DTPRSC at 0 range 10 .. 12; Reserved_13_13 at 0 range 13 .. 13; DTRSLKx at 0 range 14 .. 14; DTRLKx at 0 range 15 .. 15; DTFx at 0 range 16 .. 24; SDTFx at 0 range 25 .. 25; Reserved_26_29 at 0 range 26 .. 29; DTFSLKx at 0 range 30 .. 30; DTFLKx at 0 range 31 .. 31; end record; -- SETB1R_CMP array type SETB1R_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for SETB1R_CMP type SETB1R_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : SETB1R_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for SETB1R_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- SETB1R_MSTCMP array type SETB1R_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for SETB1R_MSTCMP type SETB1R_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : SETB1R_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for SETB1R_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- SETB1R_TIMEVNT array type SETB1R_TIMEVNT_Field_Array is array (1 .. 9) of Boolean with Component_Size => 1, Size => 9; -- Type definition for SETB1R_TIMEVNT type SETB1R_TIMEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMEVNT as a value Val : HAL.UInt9; when True => -- TIMEVNT as an array Arr : SETB1R_TIMEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 9; for SETB1R_TIMEVNT_Field use record Val at 0 range 0 .. 8; Arr at 0 range 0 .. 8; end record; -- SETB1R_EXTEVNT array type SETB1R_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for SETB1R_EXTEVNT type SETB1R_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : SETB1R_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for SETB1R_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- Timerx Output1 Set Register type SETB1R_Register is record -- Software Set trigger SST : Boolean := False; -- Timer A resynchronizaton RESYNC : Boolean := False; -- Timer A Period PER : Boolean := False; -- Timer A compare 1 CMP : SETB1R_CMP_Field := (As_Array => False, Val => 16#0#); -- Master Period MSTPER : Boolean := False; -- Master Compare 1 MSTCMP : SETB1R_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- Timer Event 1 TIMEVNT : SETB1R_TIMEVNT_Field := (As_Array => False, Val => 16#0#); -- External Event 1 EXTEVNT : SETB1R_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- Registers update (transfer preload to active) UPDATE : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SETB1R_Register use record SST at 0 range 0 .. 0; RESYNC at 0 range 1 .. 1; PER at 0 range 2 .. 2; CMP at 0 range 3 .. 6; MSTPER at 0 range 7 .. 7; MSTCMP at 0 range 8 .. 11; TIMEVNT at 0 range 12 .. 20; EXTEVNT at 0 range 21 .. 30; UPDATE at 0 range 31 .. 31; end record; -- RSTB1R_CMP array type RSTB1R_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTB1R_CMP type RSTB1R_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : RSTB1R_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTB1R_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTB1R_MSTCMP array type RSTB1R_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTB1R_MSTCMP type RSTB1R_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : RSTB1R_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTB1R_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTB1R_TIMEVNT array type RSTB1R_TIMEVNT_Field_Array is array (1 .. 9) of Boolean with Component_Size => 1, Size => 9; -- Type definition for RSTB1R_TIMEVNT type RSTB1R_TIMEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMEVNT as a value Val : HAL.UInt9; when True => -- TIMEVNT as an array Arr : RSTB1R_TIMEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 9; for RSTB1R_TIMEVNT_Field use record Val at 0 range 0 .. 8; Arr at 0 range 0 .. 8; end record; -- RSTB1R_EXTEVNT array type RSTB1R_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for RSTB1R_EXTEVNT type RSTB1R_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : RSTB1R_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for RSTB1R_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- Timerx Output1 Reset Register type RSTB1R_Register is record -- SRT SRT : Boolean := False; -- RESYNC RESYNC : Boolean := False; -- PER PER : Boolean := False; -- CMP1 CMP : RSTB1R_CMP_Field := (As_Array => False, Val => 16#0#); -- MSTPER MSTPER : Boolean := False; -- MSTCMP1 MSTCMP : RSTB1R_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- TIMEVNT1 TIMEVNT : RSTB1R_TIMEVNT_Field := (As_Array => False, Val => 16#0#); -- EXTEVNT1 EXTEVNT : RSTB1R_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- UPDATE UPDATE : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for RSTB1R_Register use record SRT at 0 range 0 .. 0; RESYNC at 0 range 1 .. 1; PER at 0 range 2 .. 2; CMP at 0 range 3 .. 6; MSTPER at 0 range 7 .. 7; MSTCMP at 0 range 8 .. 11; TIMEVNT at 0 range 12 .. 20; EXTEVNT at 0 range 21 .. 30; UPDATE at 0 range 31 .. 31; end record; -- SETB2R_CMP array type SETB2R_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for SETB2R_CMP type SETB2R_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : SETB2R_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for SETB2R_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- SETB2R_MSTCMP array type SETB2R_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for SETB2R_MSTCMP type SETB2R_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : SETB2R_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for SETB2R_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- SETB2R_TIMEVNT array type SETB2R_TIMEVNT_Field_Array is array (1 .. 9) of Boolean with Component_Size => 1, Size => 9; -- Type definition for SETB2R_TIMEVNT type SETB2R_TIMEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMEVNT as a value Val : HAL.UInt9; when True => -- TIMEVNT as an array Arr : SETB2R_TIMEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 9; for SETB2R_TIMEVNT_Field use record Val at 0 range 0 .. 8; Arr at 0 range 0 .. 8; end record; -- SETB2R_EXTEVNT array type SETB2R_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for SETB2R_EXTEVNT type SETB2R_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : SETB2R_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for SETB2R_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- Timerx Output2 Set Register type SETB2R_Register is record -- SST SST : Boolean := False; -- RESYNC RESYNC : Boolean := False; -- PER PER : Boolean := False; -- CMP1 CMP : SETB2R_CMP_Field := (As_Array => False, Val => 16#0#); -- MSTPER MSTPER : Boolean := False; -- MSTCMP1 MSTCMP : SETB2R_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- TIMEVNT1 TIMEVNT : SETB2R_TIMEVNT_Field := (As_Array => False, Val => 16#0#); -- EXTEVNT1 EXTEVNT : SETB2R_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- UPDATE UPDATE : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SETB2R_Register use record SST at 0 range 0 .. 0; RESYNC at 0 range 1 .. 1; PER at 0 range 2 .. 2; CMP at 0 range 3 .. 6; MSTPER at 0 range 7 .. 7; MSTCMP at 0 range 8 .. 11; TIMEVNT at 0 range 12 .. 20; EXTEVNT at 0 range 21 .. 30; UPDATE at 0 range 31 .. 31; end record; -- RSTB2R_CMP array type RSTB2R_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTB2R_CMP type RSTB2R_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : RSTB2R_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTB2R_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTB2R_MSTCMP array type RSTB2R_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTB2R_MSTCMP type RSTB2R_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : RSTB2R_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTB2R_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTB2R_TIMEVNT array type RSTB2R_TIMEVNT_Field_Array is array (1 .. 9) of Boolean with Component_Size => 1, Size => 9; -- Type definition for RSTB2R_TIMEVNT type RSTB2R_TIMEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMEVNT as a value Val : HAL.UInt9; when True => -- TIMEVNT as an array Arr : RSTB2R_TIMEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 9; for RSTB2R_TIMEVNT_Field use record Val at 0 range 0 .. 8; Arr at 0 range 0 .. 8; end record; -- RSTB2R_EXTEVNT array type RSTB2R_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for RSTB2R_EXTEVNT type RSTB2R_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : RSTB2R_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for RSTB2R_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- Timerx Output2 Reset Register type RSTB2R_Register is record -- SRT SRT : Boolean := False; -- RESYNC RESYNC : Boolean := False; -- PER PER : Boolean := False; -- CMP1 CMP : RSTB2R_CMP_Field := (As_Array => False, Val => 16#0#); -- MSTPER MSTPER : Boolean := False; -- MSTCMP1 MSTCMP : RSTB2R_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- TIMEVNT1 TIMEVNT : RSTB2R_TIMEVNT_Field := (As_Array => False, Val => 16#0#); -- EXTEVNT1 EXTEVNT : RSTB2R_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- UPDATE UPDATE : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for RSTB2R_Register use record SRT at 0 range 0 .. 0; RESYNC at 0 range 1 .. 1; PER at 0 range 2 .. 2; CMP at 0 range 3 .. 6; MSTPER at 0 range 7 .. 7; MSTCMP at 0 range 8 .. 11; TIMEVNT at 0 range 12 .. 20; EXTEVNT at 0 range 21 .. 30; UPDATE at 0 range 31 .. 31; end record; subtype EEFBR1_EE1FLTR_Field is HAL.UInt4; subtype EEFBR1_EE2FLTR_Field is HAL.UInt4; subtype EEFBR1_EE3FLTR_Field is HAL.UInt4; subtype EEFBR1_EE4FLTR_Field is HAL.UInt4; subtype EEFBR1_EE5FLTR_Field is HAL.UInt4; -- Timerx External Event Filtering Register 1 type EEFBR1_Register is record -- External Event 1 latch EE1LTCH : Boolean := False; -- External Event 1 filter EE1FLTR : EEFBR1_EE1FLTR_Field := 16#0#; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- External Event 2 latch EE2LTCH : Boolean := False; -- External Event 2 filter EE2FLTR : EEFBR1_EE2FLTR_Field := 16#0#; -- unspecified Reserved_11_11 : HAL.Bit := 16#0#; -- External Event 3 latch EE3LTCH : Boolean := False; -- External Event 3 filter EE3FLTR : EEFBR1_EE3FLTR_Field := 16#0#; -- unspecified Reserved_17_17 : HAL.Bit := 16#0#; -- External Event 4 latch EE4LTCH : Boolean := False; -- External Event 4 filter EE4FLTR : EEFBR1_EE4FLTR_Field := 16#0#; -- unspecified Reserved_23_23 : HAL.Bit := 16#0#; -- External Event 5 latch EE5LTCH : Boolean := False; -- External Event 5 filter EE5FLTR : EEFBR1_EE5FLTR_Field := 16#0#; -- unspecified Reserved_29_31 : HAL.UInt3 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for EEFBR1_Register use record EE1LTCH at 0 range 0 .. 0; EE1FLTR at 0 range 1 .. 4; Reserved_5_5 at 0 range 5 .. 5; EE2LTCH at 0 range 6 .. 6; EE2FLTR at 0 range 7 .. 10; Reserved_11_11 at 0 range 11 .. 11; EE3LTCH at 0 range 12 .. 12; EE3FLTR at 0 range 13 .. 16; Reserved_17_17 at 0 range 17 .. 17; EE4LTCH at 0 range 18 .. 18; EE4FLTR at 0 range 19 .. 22; Reserved_23_23 at 0 range 23 .. 23; EE5LTCH at 0 range 24 .. 24; EE5FLTR at 0 range 25 .. 28; Reserved_29_31 at 0 range 29 .. 31; end record; subtype EEFBR2_EE6FLTR_Field is HAL.UInt4; subtype EEFBR2_EE7FLTR_Field is HAL.UInt4; subtype EEFBR2_EE8FLTR_Field is HAL.UInt4; subtype EEFBR2_EE9FLTR_Field is HAL.UInt4; subtype EEFBR2_EE10FLTR_Field is HAL.UInt4; -- Timerx External Event Filtering Register 2 type EEFBR2_Register is record -- External Event 6 latch EE6LTCH : Boolean := False; -- External Event 6 filter EE6FLTR : EEFBR2_EE6FLTR_Field := 16#0#; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- External Event 7 latch EE7LTCH : Boolean := False; -- External Event 7 filter EE7FLTR : EEFBR2_EE7FLTR_Field := 16#0#; -- unspecified Reserved_11_11 : HAL.Bit := 16#0#; -- External Event 8 latch EE8LTCH : Boolean := False; -- External Event 8 filter EE8FLTR : EEFBR2_EE8FLTR_Field := 16#0#; -- unspecified Reserved_17_17 : HAL.Bit := 16#0#; -- External Event 9 latch EE9LTCH : Boolean := False; -- External Event 9 filter EE9FLTR : EEFBR2_EE9FLTR_Field := 16#0#; -- unspecified Reserved_23_23 : HAL.Bit := 16#0#; -- External Event 10 latch EE10LTCH : Boolean := False; -- External Event 10 filter EE10FLTR : EEFBR2_EE10FLTR_Field := 16#0#; -- unspecified Reserved_29_31 : HAL.UInt3 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for EEFBR2_Register use record EE6LTCH at 0 range 0 .. 0; EE6FLTR at 0 range 1 .. 4; Reserved_5_5 at 0 range 5 .. 5; EE7LTCH at 0 range 6 .. 6; EE7FLTR at 0 range 7 .. 10; Reserved_11_11 at 0 range 11 .. 11; EE8LTCH at 0 range 12 .. 12; EE8FLTR at 0 range 13 .. 16; Reserved_17_17 at 0 range 17 .. 17; EE9LTCH at 0 range 18 .. 18; EE9FLTR at 0 range 19 .. 22; Reserved_23_23 at 0 range 23 .. 23; EE10LTCH at 0 range 24 .. 24; EE10FLTR at 0 range 25 .. 28; Reserved_29_31 at 0 range 29 .. 31; end record; -- RSTBR_CMP array type RSTBR_CMP_Field_Array is array (2 .. 3) of Boolean with Component_Size => 1, Size => 2; -- Type definition for RSTBR_CMP type RSTBR_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt2; when True => -- CMP as an array Arr : RSTBR_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for RSTBR_CMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- RSTBR_MSTCMP array type RSTBR_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTBR_MSTCMP type RSTBR_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : RSTBR_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTBR_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTBR_EXTEVNT array type RSTBR_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for RSTBR_EXTEVNT type RSTBR_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : RSTBR_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for RSTBR_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- RSTBR_TIMACMP array type RSTBR_TIMACMP_Field_Array is array (1 .. 3) of Boolean with Component_Size => 1, Size => 3; -- Type definition for RSTBR_TIMACMP type RSTBR_TIMACMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMACMP as a value Val : HAL.UInt3; when True => -- TIMACMP as an array Arr : RSTBR_TIMACMP_Field_Array; end case; end record with Unchecked_Union, Size => 3; for RSTBR_TIMACMP_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- RSTBR_TIMCCMP array type RSTBR_TIMCCMP_Field_Array is array (1 .. 3) of Boolean with Component_Size => 1, Size => 3; -- Type definition for RSTBR_TIMCCMP type RSTBR_TIMCCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMCCMP as a value Val : HAL.UInt3; when True => -- TIMCCMP as an array Arr : RSTBR_TIMCCMP_Field_Array; end case; end record with Unchecked_Union, Size => 3; for RSTBR_TIMCCMP_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- RSTBR_TIMDCMP array type RSTBR_TIMDCMP_Field_Array is array (1 .. 3) of Boolean with Component_Size => 1, Size => 3; -- Type definition for RSTBR_TIMDCMP type RSTBR_TIMDCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMDCMP as a value Val : HAL.UInt3; when True => -- TIMDCMP as an array Arr : RSTBR_TIMDCMP_Field_Array; end case; end record with Unchecked_Union, Size => 3; for RSTBR_TIMDCMP_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- RSTBR_TIMECMP array type RSTBR_TIMECMP_Field_Array is array (1 .. 3) of Boolean with Component_Size => 1, Size => 3; -- Type definition for RSTBR_TIMECMP type RSTBR_TIMECMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMECMP as a value Val : HAL.UInt3; when True => -- TIMECMP as an array Arr : RSTBR_TIMECMP_Field_Array; end case; end record with Unchecked_Union, Size => 3; for RSTBR_TIMECMP_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- TimerA Reset Register type RSTBR_Register is record -- Timer A Update reset TIMFCMP1 : Boolean := False; -- Timer A Update reset UPDT : Boolean := False; -- Timer A compare 2 reset CMP : RSTBR_CMP_Field := (As_Array => False, Val => 16#0#); -- Master timer Period MSTPER : Boolean := False; -- Master compare 1 MSTCMP : RSTBR_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- External Event 1 EXTEVNT : RSTBR_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- Timer A Compare 1 TIMACMP : RSTBR_TIMACMP_Field := (As_Array => False, Val => 16#0#); -- Timer C Compare 1 TIMCCMP : RSTBR_TIMCCMP_Field := (As_Array => False, Val => 16#0#); -- Timer D Compare 1 TIMDCMP : RSTBR_TIMDCMP_Field := (As_Array => False, Val => 16#0#); -- Timer E Compare 1 TIMECMP : RSTBR_TIMECMP_Field := (As_Array => False, Val => 16#0#); -- Timer F Compare 2 TIMFCPM2 : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for RSTBR_Register use record TIMFCMP1 at 0 range 0 .. 0; UPDT at 0 range 1 .. 1; CMP at 0 range 2 .. 3; MSTPER at 0 range 4 .. 4; MSTCMP at 0 range 5 .. 8; EXTEVNT at 0 range 9 .. 18; TIMACMP at 0 range 19 .. 21; TIMCCMP at 0 range 22 .. 24; TIMDCMP at 0 range 25 .. 27; TIMECMP at 0 range 28 .. 30; TIMFCPM2 at 0 range 31 .. 31; end record; subtype CHPBR_CHPFRQ_Field is HAL.UInt4; subtype CHPBR_CHPDTY_Field is HAL.UInt3; subtype CHPBR_STRTPW_Field is HAL.UInt4; -- Timerx Chopper Register type CHPBR_Register is record -- Timerx carrier frequency value CHPFRQ : CHPBR_CHPFRQ_Field := 16#0#; -- Timerx chopper duty cycle value CHPDTY : CHPBR_CHPDTY_Field := 16#0#; -- STRTPW STRTPW : CHPBR_STRTPW_Field := 16#0#; -- unspecified Reserved_11_31 : HAL.UInt21 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CHPBR_Register use record CHPFRQ at 0 range 0 .. 3; CHPDTY at 0 range 4 .. 6; STRTPW at 0 range 7 .. 10; Reserved_11_31 at 0 range 11 .. 31; end record; -- CPT1BCR_TACMP array type CPT1BCR_TACMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1BCR_TACMP type CPT1BCR_TACMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TACMP as a value Val : HAL.UInt2; when True => -- TACMP as an array Arr : CPT1BCR_TACMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1BCR_TACMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT1BCR_TFCMP array type CPT1BCR_TFCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1BCR_TFCMP type CPT1BCR_TFCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TFCMP as a value Val : HAL.UInt2; when True => -- TFCMP as an array Arr : CPT1BCR_TFCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1BCR_TFCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT1BCR_TCCMP array type CPT1BCR_TCCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1BCR_TCCMP type CPT1BCR_TCCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TCCMP as a value Val : HAL.UInt2; when True => -- TCCMP as an array Arr : CPT1BCR_TCCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1BCR_TCCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT1BCR_TDCMP array type CPT1BCR_TDCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1BCR_TDCMP type CPT1BCR_TDCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TDCMP as a value Val : HAL.UInt2; when True => -- TDCMP as an array Arr : CPT1BCR_TDCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1BCR_TDCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT1BCR_TECMP array type CPT1BCR_TECMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1BCR_TECMP type CPT1BCR_TECMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TECMP as a value Val : HAL.UInt2; when True => -- TECMP as an array Arr : CPT1BCR_TECMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1BCR_TECMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Timerx Capture 1 Control Register type CPT1BCR_Register is record -- Software Capture SWCPT : Boolean := False; -- Update Capture UDPCPT : Boolean := False; -- External Event 1 Capture EXEV1CPT : Boolean := False; -- External Event 2 Capture EXEV2CPT : Boolean := False; -- External Event 3 Capture EXEV3CPT : Boolean := False; -- External Event 4 Capture EXEV4CPT : Boolean := False; -- External Event 5 Capture EXEV5CPT : Boolean := False; -- External Event 6 Capture EXEV6CPT : Boolean := False; -- External Event 7 Capture EXEV7CPT : Boolean := False; -- External Event 8 Capture EXEV8CPT : Boolean := False; -- External Event 9 Capture EXEV9CPT : Boolean := False; -- External Event 10 Capture EXEV10CPT : Boolean := False; -- Timer A output 1 Set TA1SET : Boolean := False; -- Timer A output 1 Reset TA1RST : Boolean := False; -- Timer A Compare 1 TACMP : CPT1BCR_TACMP_Field := (As_Array => False, Val => 16#0#); -- TF1SET TF1SET : Boolean := False; -- TF1RST TF1RST : Boolean := False; -- TFCMP1 TFCMP : CPT1BCR_TFCMP_Field := (As_Array => False, Val => 16#0#); -- Timer C output 1 Set TC1SET : Boolean := False; -- Timer C output 1 Reset TC1RST : Boolean := False; -- Timer C Compare 1 TCCMP : CPT1BCR_TCCMP_Field := (As_Array => False, Val => 16#0#); -- Timer D output 1 Set TD1SET : Boolean := False; -- Timer D output 1 Reset TD1RST : Boolean := False; -- Timer D Compare 1 TDCMP : CPT1BCR_TDCMP_Field := (As_Array => False, Val => 16#0#); -- Timer E output 1 Set TE1SET : Boolean := False; -- Timer E output 1 Reset TE1RST : Boolean := False; -- Timer E Compare 1 TECMP : CPT1BCR_TECMP_Field := (As_Array => False, Val => 16#0#); end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPT1BCR_Register use record SWCPT at 0 range 0 .. 0; UDPCPT at 0 range 1 .. 1; EXEV1CPT at 0 range 2 .. 2; EXEV2CPT at 0 range 3 .. 3; EXEV3CPT at 0 range 4 .. 4; EXEV4CPT at 0 range 5 .. 5; EXEV5CPT at 0 range 6 .. 6; EXEV6CPT at 0 range 7 .. 7; EXEV7CPT at 0 range 8 .. 8; EXEV8CPT at 0 range 9 .. 9; EXEV9CPT at 0 range 10 .. 10; EXEV10CPT at 0 range 11 .. 11; TA1SET at 0 range 12 .. 12; TA1RST at 0 range 13 .. 13; TACMP at 0 range 14 .. 15; TF1SET at 0 range 16 .. 16; TF1RST at 0 range 17 .. 17; TFCMP at 0 range 18 .. 19; TC1SET at 0 range 20 .. 20; TC1RST at 0 range 21 .. 21; TCCMP at 0 range 22 .. 23; TD1SET at 0 range 24 .. 24; TD1RST at 0 range 25 .. 25; TDCMP at 0 range 26 .. 27; TE1SET at 0 range 28 .. 28; TE1RST at 0 range 29 .. 29; TECMP at 0 range 30 .. 31; end record; -- CPT2BCR_TACMP array type CPT2BCR_TACMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2BCR_TACMP type CPT2BCR_TACMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TACMP as a value Val : HAL.UInt2; when True => -- TACMP as an array Arr : CPT2BCR_TACMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2BCR_TACMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT2BCR_TFCMP array type CPT2BCR_TFCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2BCR_TFCMP type CPT2BCR_TFCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TFCMP as a value Val : HAL.UInt2; when True => -- TFCMP as an array Arr : CPT2BCR_TFCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2BCR_TFCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT2BCR_TCCMP array type CPT2BCR_TCCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2BCR_TCCMP type CPT2BCR_TCCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TCCMP as a value Val : HAL.UInt2; when True => -- TCCMP as an array Arr : CPT2BCR_TCCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2BCR_TCCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT2BCR_TDCMP array type CPT2BCR_TDCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2BCR_TDCMP type CPT2BCR_TDCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TDCMP as a value Val : HAL.UInt2; when True => -- TDCMP as an array Arr : CPT2BCR_TDCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2BCR_TDCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT2BCR_TECMP array type CPT2BCR_TECMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2BCR_TECMP type CPT2BCR_TECMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TECMP as a value Val : HAL.UInt2; when True => -- TECMP as an array Arr : CPT2BCR_TECMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2BCR_TECMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Timerx Capture 2 Control Register type CPT2BCR_Register is record -- Software Capture SWCPT : Boolean := False; -- Update Capture UDPCPT : Boolean := False; -- External Event 1 Capture EXEV1CPT : Boolean := False; -- External Event 2 Capture EXEV2CPT : Boolean := False; -- External Event 3 Capture EXEV3CPT : Boolean := False; -- External Event 4 Capture EXEV4CPT : Boolean := False; -- External Event 5 Capture EXEV5CPT : Boolean := False; -- External Event 6 Capture EXEV6CPT : Boolean := False; -- External Event 7 Capture EXEV7CPT : Boolean := False; -- External Event 8 Capture EXEV8CPT : Boolean := False; -- External Event 9 Capture EXEV9CPT : Boolean := False; -- External Event 10 Capture EXEV10CPT : Boolean := False; -- Timer A output 1 Set TA1SET : Boolean := False; -- Timer A output 1 Reset TA1RST : Boolean := False; -- Timer A Compare 1 TACMP : CPT2BCR_TACMP_Field := (As_Array => False, Val => 16#0#); -- TF1SET TF1SET : Boolean := False; -- TF1RST TF1RST : Boolean := False; -- TFCMP1 TFCMP : CPT2BCR_TFCMP_Field := (As_Array => False, Val => 16#0#); -- Timer C output 1 Set TC1SET : Boolean := False; -- Timer C output 1 Reset TC1RST : Boolean := False; -- Timer C Compare 1 TCCMP : CPT2BCR_TCCMP_Field := (As_Array => False, Val => 16#0#); -- Timer D output 1 Set TD1SET : Boolean := False; -- Timer D output 1 Reset TD1RST : Boolean := False; -- Timer D Compare 1 TDCMP : CPT2BCR_TDCMP_Field := (As_Array => False, Val => 16#0#); -- Timer E output 1 Set TE1SET : Boolean := False; -- Timer E output 1 Reset TE1RST : Boolean := False; -- Timer E Compare 1 TECMP : CPT2BCR_TECMP_Field := (As_Array => False, Val => 16#0#); end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPT2BCR_Register use record SWCPT at 0 range 0 .. 0; UDPCPT at 0 range 1 .. 1; EXEV1CPT at 0 range 2 .. 2; EXEV2CPT at 0 range 3 .. 3; EXEV3CPT at 0 range 4 .. 4; EXEV4CPT at 0 range 5 .. 5; EXEV5CPT at 0 range 6 .. 6; EXEV6CPT at 0 range 7 .. 7; EXEV7CPT at 0 range 8 .. 8; EXEV8CPT at 0 range 9 .. 9; EXEV9CPT at 0 range 10 .. 10; EXEV10CPT at 0 range 11 .. 11; TA1SET at 0 range 12 .. 12; TA1RST at 0 range 13 .. 13; TACMP at 0 range 14 .. 15; TF1SET at 0 range 16 .. 16; TF1RST at 0 range 17 .. 17; TFCMP at 0 range 18 .. 19; TC1SET at 0 range 20 .. 20; TC1RST at 0 range 21 .. 21; TCCMP at 0 range 22 .. 23; TD1SET at 0 range 24 .. 24; TD1RST at 0 range 25 .. 25; TDCMP at 0 range 26 .. 27; TE1SET at 0 range 28 .. 28; TE1RST at 0 range 29 .. 29; TECMP at 0 range 30 .. 31; end record; subtype OUTBR_FAULT1_Field is HAL.UInt2; subtype OUTBR_DLYPRT_Field is HAL.UInt3; subtype OUTBR_FAULT2_Field is HAL.UInt2; -- Timerx Output Register type OUTBR_Register is record -- unspecified Reserved_0_0 : HAL.Bit := 16#0#; -- Output 1 polarity POL1 : Boolean := False; -- Output 1 Idle mode IDLEM1 : Boolean := False; -- Output 1 Idle State IDLES1 : Boolean := False; -- Output 1 Fault state FAULT1 : OUTBR_FAULT1_Field := 16#0#; -- Output 1 Chopper enable CHP1 : Boolean := False; -- Output 1 Deadtime upon burst mode Idle entry DIDL1 : Boolean := False; -- Deadtime enable DTEN : Boolean := False; -- Delayed Protection Enable DLYPRTEN : Boolean := False; -- Delayed Protection DLYPRT : OUTBR_DLYPRT_Field := 16#0#; -- unspecified Reserved_13_13 : HAL.Bit := 16#0#; -- Balanced Idle Automatic Resume BIAR : Boolean := False; -- unspecified Reserved_15_16 : HAL.UInt2 := 16#0#; -- Output 2 polarity POL2 : Boolean := False; -- Output 2 Idle mode IDLEM2 : Boolean := False; -- Output 2 Idle State IDLES2 : Boolean := False; -- Output 2 Fault state FAULT2 : OUTBR_FAULT2_Field := 16#0#; -- Output 2 Chopper enable CHP2 : Boolean := False; -- Output 2 Deadtime upon burst mode Idle entry DIDL2 : Boolean := False; -- unspecified Reserved_24_31 : HAL.UInt8 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for OUTBR_Register use record Reserved_0_0 at 0 range 0 .. 0; POL1 at 0 range 1 .. 1; IDLEM1 at 0 range 2 .. 2; IDLES1 at 0 range 3 .. 3; FAULT1 at 0 range 4 .. 5; CHP1 at 0 range 6 .. 6; DIDL1 at 0 range 7 .. 7; DTEN at 0 range 8 .. 8; DLYPRTEN at 0 range 9 .. 9; DLYPRT at 0 range 10 .. 12; Reserved_13_13 at 0 range 13 .. 13; BIAR at 0 range 14 .. 14; Reserved_15_16 at 0 range 15 .. 16; POL2 at 0 range 17 .. 17; IDLEM2 at 0 range 18 .. 18; IDLES2 at 0 range 19 .. 19; FAULT2 at 0 range 20 .. 21; CHP2 at 0 range 22 .. 22; DIDL2 at 0 range 23 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; -- Timerx Fault Register type FLTBR_Register is record -- Fault 1 enable FLT1EN : Boolean := False; -- Fault 2 enable FLT2EN : Boolean := False; -- Fault 3 enable FLT3EN : Boolean := False; -- Fault 4 enable FLT4EN : Boolean := False; -- Fault 5 enable FLT5EN : Boolean := False; -- Fault 6 enable FLT6EN : Boolean := False; -- unspecified Reserved_6_30 : HAL.UInt25 := 16#0#; -- Fault sources Lock FLTLCK : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for FLTBR_Register use record FLT1EN at 0 range 0 .. 0; FLT2EN at 0 range 1 .. 1; FLT3EN at 0 range 2 .. 2; FLT4EN at 0 range 3 .. 3; FLT5EN at 0 range 4 .. 4; FLT6EN at 0 range 5 .. 5; Reserved_6_30 at 0 range 6 .. 30; FLTLCK at 0 range 31 .. 31; end record; subtype TIMBCR2_ROM_Field is HAL.UInt2; subtype TIMBCR2_OUTROM_Field is HAL.UInt2; subtype TIMBCR2_ADROM_Field is HAL.UInt2; subtype TIMBCR2_BMROM_Field is HAL.UInt2; subtype TIMBCR2_FEROM_Field is HAL.UInt2; -- TIMBCR2_GTCMP array type TIMBCR2_GTCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for TIMBCR2_GTCMP type TIMBCR2_GTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- GTCMP as a value Val : HAL.UInt2; when True => -- GTCMP as an array Arr : TIMBCR2_GTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for TIMBCR2_GTCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- HRTIM Timerx Control Register 2 type TIMBCR2_Register is record -- Dual Channel DAC trigger enable DCDE : Boolean := False; -- Dual Channel DAC Step trigger DCDS : Boolean := False; -- Dual Channel DAC Reset trigger DCDR : Boolean := False; -- unspecified Reserved_3_3 : HAL.Bit := 16#0#; -- Up-Down Mode UDM : Boolean := False; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- Roll-Over Mode ROM : TIMBCR2_ROM_Field := 16#0#; -- Output Roll-Over Mode OUTROM : TIMBCR2_OUTROM_Field := 16#0#; -- ADC Roll-Over Mode ADROM : TIMBCR2_ADROM_Field := 16#0#; -- Burst Mode Roll-Over Mode BMROM : TIMBCR2_BMROM_Field := 16#0#; -- Fault and Event Roll-Over Mode FEROM : TIMBCR2_FEROM_Field := 16#0#; -- Greater than Compare 1 PWM mode GTCMP : TIMBCR2_GTCMP_Field := (As_Array => False, Val => 16#0#); -- unspecified Reserved_18_19 : HAL.UInt2 := 16#0#; -- Triggered-half mode TRGHLF : Boolean := False; -- unspecified Reserved_21_31 : HAL.UInt11 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMBCR2_Register use record DCDE at 0 range 0 .. 0; DCDS at 0 range 1 .. 1; DCDR at 0 range 2 .. 2; Reserved_3_3 at 0 range 3 .. 3; UDM at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; ROM at 0 range 6 .. 7; OUTROM at 0 range 8 .. 9; ADROM at 0 range 10 .. 11; BMROM at 0 range 12 .. 13; FEROM at 0 range 14 .. 15; GTCMP at 0 range 16 .. 17; Reserved_18_19 at 0 range 18 .. 19; TRGHLF at 0 range 20 .. 20; Reserved_21_31 at 0 range 21 .. 31; end record; subtype EEFBR3_EEVASEL_Field is HAL.UInt4; subtype EEFBR3_EEVACNT_Field is HAL.UInt6; -- HRTIM Timerx External Event Filtering Register 3 type EEFBR3_Register is record -- External Event A Counter Enable EEVACE : Boolean := False; -- External Event A Counter Reset EEVACRES : Boolean := False; -- External Event A Reset Mode EEVARSTM : Boolean := False; -- unspecified Reserved_3_3 : HAL.Bit := 16#0#; -- External Event A Selection EEVASEL : EEFBR3_EEVASEL_Field := 16#0#; -- External Event A counter EEVACNT : EEFBR3_EEVACNT_Field := 16#0#; -- unspecified Reserved_14_31 : HAL.UInt18 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for EEFBR3_Register use record EEVACE at 0 range 0 .. 0; EEVACRES at 0 range 1 .. 1; EEVARSTM at 0 range 2 .. 2; Reserved_3_3 at 0 range 3 .. 3; EEVASEL at 0 range 4 .. 7; EEVACNT at 0 range 8 .. 13; Reserved_14_31 at 0 range 14 .. 31; end record; subtype TIMCCR_CKPSCx_Field is HAL.UInt3; subtype TIMCCR_INTLVD_Field is HAL.UInt2; -- TIMCCR_DELCMP array element subtype TIMCCR_DELCMP_Element is HAL.UInt2; -- TIMCCR_DELCMP array type TIMCCR_DELCMP_Field_Array is array (2 .. 3) of TIMCCR_DELCMP_Element with Component_Size => 2, Size => 4; -- Type definition for TIMCCR_DELCMP type TIMCCR_DELCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- DELCMP as a value Val : HAL.UInt4; when True => -- DELCMP as an array Arr : TIMCCR_DELCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for TIMCCR_DELCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; subtype TIMCCR_DACSYNC_Field is HAL.UInt2; subtype TIMCCR_UPDGAT_Field is HAL.UInt4; -- Timerx Control Register type TIMCCR_Register is record -- HRTIM Timer x Clock prescaler CKPSCx : TIMCCR_CKPSCx_Field := 16#0#; -- Continuous mode CONT : Boolean := False; -- Re-triggerable mode RETRIG : Boolean := False; -- Half mode enable HALF : Boolean := False; -- Push-Pull mode enable PSHPLL : Boolean := False; -- Interleaved mode INTLVD : TIMCCR_INTLVD_Field := 16#0#; -- Re-Synchronized Update RSYNCU : Boolean := False; -- Synchronization Resets Timer x SYNCRSTx : Boolean := False; -- Synchronization Starts Timer x SYNCSTRTx : Boolean := False; -- Delayed CMP2 mode DELCMP : TIMCCR_DELCMP_Field := (As_Array => False, Val => 16#0#); -- TFU TFU : Boolean := False; -- Timer x Repetition update TxREPU : Boolean := False; -- Timerx reset update TxRSTU : Boolean := False; -- TAU TAU : Boolean := False; -- TBU TBU : Boolean := False; -- unspecified Reserved_21_21 : HAL.Bit := 16#0#; -- TDU TDU : Boolean := False; -- TEU TEU : Boolean := False; -- Master Timer update MSTU : Boolean := False; -- AC Synchronization DACSYNC : TIMCCR_DACSYNC_Field := 16#0#; -- Preload enable PREEN : Boolean := False; -- Update Gating UPDGAT : TIMCCR_UPDGAT_Field := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMCCR_Register use record CKPSCx at 0 range 0 .. 2; CONT at 0 range 3 .. 3; RETRIG at 0 range 4 .. 4; HALF at 0 range 5 .. 5; PSHPLL at 0 range 6 .. 6; INTLVD at 0 range 7 .. 8; RSYNCU at 0 range 9 .. 9; SYNCRSTx at 0 range 10 .. 10; SYNCSTRTx at 0 range 11 .. 11; DELCMP at 0 range 12 .. 15; TFU at 0 range 16 .. 16; TxREPU at 0 range 17 .. 17; TxRSTU at 0 range 18 .. 18; TAU at 0 range 19 .. 19; TBU at 0 range 20 .. 20; Reserved_21_21 at 0 range 21 .. 21; TDU at 0 range 22 .. 22; TEU at 0 range 23 .. 23; MSTU at 0 range 24 .. 24; DACSYNC at 0 range 25 .. 26; PREEN at 0 range 27 .. 27; UPDGAT at 0 range 28 .. 31; end record; -- TIMCISR_CMP array type TIMCISR_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for TIMCISR_CMP type TIMCISR_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : TIMCISR_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for TIMCISR_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- TIMCISR_CPT array type TIMCISR_CPT_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for TIMCISR_CPT type TIMCISR_CPT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CPT as a value Val : HAL.UInt2; when True => -- CPT as an array Arr : TIMCISR_CPT_Field_Array; end case; end record with Unchecked_Union, Size => 2; for TIMCISR_CPT_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Timerx Interrupt Status Register type TIMCISR_Register is record -- Read-only. Compare 1 Interrupt Flag CMP : TIMCISR_CMP_Field; -- Read-only. Repetition Interrupt Flag REP : Boolean; -- unspecified Reserved_5_5 : HAL.Bit; -- Read-only. Update Interrupt Flag UPD : Boolean; -- Read-only. Capture1 Interrupt Flag CPT : TIMCISR_CPT_Field; -- Read-only. Output 1 Set Interrupt Flag SETx1 : Boolean; -- Read-only. Output 1 Reset Interrupt Flag RSTx1 : Boolean; -- Read-only. Output 2 Set Interrupt Flag SETx2 : Boolean; -- Read-only. Output 2 Reset Interrupt Flag RSTx2 : Boolean; -- Read-only. Reset Interrupt Flag RST : Boolean; -- Read-only. Delayed Protection Flag DLYPRT : Boolean; -- unspecified Reserved_15_15 : HAL.Bit; -- Read-only. Current Push Pull Status CPPSTAT : Boolean; -- Read-only. Idle Push Pull Status IPPSTAT : Boolean; -- Read-only. Output 1 State O1STAT : Boolean; -- Read-only. Output 2 State O2STAT : Boolean; -- Read-only. Output 1 Copy O1CPY : Boolean; -- Read-only. Output 2 Copy O2CPY : Boolean; -- unspecified Reserved_22_31 : HAL.UInt10; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMCISR_Register use record CMP at 0 range 0 .. 3; REP at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; UPD at 0 range 6 .. 6; CPT at 0 range 7 .. 8; SETx1 at 0 range 9 .. 9; RSTx1 at 0 range 10 .. 10; SETx2 at 0 range 11 .. 11; RSTx2 at 0 range 12 .. 12; RST at 0 range 13 .. 13; DLYPRT at 0 range 14 .. 14; Reserved_15_15 at 0 range 15 .. 15; CPPSTAT at 0 range 16 .. 16; IPPSTAT at 0 range 17 .. 17; O1STAT at 0 range 18 .. 18; O2STAT at 0 range 19 .. 19; O1CPY at 0 range 20 .. 20; O2CPY at 0 range 21 .. 21; Reserved_22_31 at 0 range 22 .. 31; end record; -- Timerx Interrupt Clear Register type TIMCICR_Register is record -- Write-only. Compare 1 Interrupt flag Clear CMP1C : Boolean := False; -- Write-only. Compare 2 Interrupt flag Clear CMP2C : Boolean := False; -- Write-only. Compare 3 Interrupt flag Clear CMP3C : Boolean := False; -- Write-only. Compare 4 Interrupt flag Clear CMP4C : Boolean := False; -- Write-only. Repetition Interrupt flag Clear REPC : Boolean := False; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- Write-only. Update Interrupt flag Clear UPDC : Boolean := False; -- Write-only. Capture1 Interrupt flag Clear CPT1C : Boolean := False; -- Write-only. Capture2 Interrupt flag Clear CPT2C : Boolean := False; -- Write-only. Output 1 Set flag Clear SET1xC : Boolean := False; -- Write-only. Output 1 Reset flag Clear RSTx1C : Boolean := False; -- Write-only. Output 2 Set flag Clear SET2xC : Boolean := False; -- Write-only. Output 2 Reset flag Clear RSTx2C : Boolean := False; -- Write-only. Reset Interrupt flag Clear RSTC : Boolean := False; -- Write-only. Delayed Protection Flag Clear DLYPRTC : Boolean := False; -- unspecified Reserved_15_31 : HAL.UInt17 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMCICR_Register use record CMP1C at 0 range 0 .. 0; CMP2C at 0 range 1 .. 1; CMP3C at 0 range 2 .. 2; CMP4C at 0 range 3 .. 3; REPC at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; UPDC at 0 range 6 .. 6; CPT1C at 0 range 7 .. 7; CPT2C at 0 range 8 .. 8; SET1xC at 0 range 9 .. 9; RSTx1C at 0 range 10 .. 10; SET2xC at 0 range 11 .. 11; RSTx2C at 0 range 12 .. 12; RSTC at 0 range 13 .. 13; DLYPRTC at 0 range 14 .. 14; Reserved_15_31 at 0 range 15 .. 31; end record; -- TIMxDIER type TIMCDIER_Register is record -- CMP1IE CMP1IE : Boolean := False; -- CMP2IE CMP2IE : Boolean := False; -- CMP3IE CMP3IE : Boolean := False; -- CMP4IE CMP4IE : Boolean := False; -- REPIE REPIE : Boolean := False; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- UPDIE UPDIE : Boolean := False; -- CPT1IE CPT1IE : Boolean := False; -- CPT2IE CPT2IE : Boolean := False; -- SET1xIE SET1xIE : Boolean := False; -- RSTx1IE RSTx1IE : Boolean := False; -- SETx2IE SETx2IE : Boolean := False; -- RSTx2IE RSTx2IE : Boolean := False; -- RSTIE RSTIE : Boolean := False; -- DLYPRTIE DLYPRTIE : Boolean := False; -- unspecified Reserved_15_15 : HAL.Bit := 16#0#; -- CMP1DE CMP1DE : Boolean := False; -- CMP2DE CMP2DE : Boolean := False; -- CMP3DE CMP3DE : Boolean := False; -- CMP4DE CMP4DE : Boolean := False; -- REPDE REPDE : Boolean := False; -- unspecified Reserved_21_21 : HAL.Bit := 16#0#; -- UPDDE UPDDE : Boolean := False; -- CPT1DE CPT1DE : Boolean := False; -- CPT2DE CPT2DE : Boolean := False; -- SET1xDE SET1xDE : Boolean := False; -- RSTx1DE RSTx1DE : Boolean := False; -- SETx2DE SETx2DE : Boolean := False; -- RSTx2DE RSTx2DE : Boolean := False; -- RSTDE RSTDE : Boolean := False; -- DLYPRTDE DLYPRTDE : Boolean := False; -- unspecified Reserved_31_31 : HAL.Bit := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMCDIER_Register use record CMP1IE at 0 range 0 .. 0; CMP2IE at 0 range 1 .. 1; CMP3IE at 0 range 2 .. 2; CMP4IE at 0 range 3 .. 3; REPIE at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; UPDIE at 0 range 6 .. 6; CPT1IE at 0 range 7 .. 7; CPT2IE at 0 range 8 .. 8; SET1xIE at 0 range 9 .. 9; RSTx1IE at 0 range 10 .. 10; SETx2IE at 0 range 11 .. 11; RSTx2IE at 0 range 12 .. 12; RSTIE at 0 range 13 .. 13; DLYPRTIE at 0 range 14 .. 14; Reserved_15_15 at 0 range 15 .. 15; CMP1DE at 0 range 16 .. 16; CMP2DE at 0 range 17 .. 17; CMP3DE at 0 range 18 .. 18; CMP4DE at 0 range 19 .. 19; REPDE at 0 range 20 .. 20; Reserved_21_21 at 0 range 21 .. 21; UPDDE at 0 range 22 .. 22; CPT1DE at 0 range 23 .. 23; CPT2DE at 0 range 24 .. 24; SET1xDE at 0 range 25 .. 25; RSTx1DE at 0 range 26 .. 26; SETx2DE at 0 range 27 .. 27; RSTx2DE at 0 range 28 .. 28; RSTDE at 0 range 29 .. 29; DLYPRTDE at 0 range 30 .. 30; Reserved_31_31 at 0 range 31 .. 31; end record; subtype CNTCR_CNTx_Field is HAL.UInt16; -- Timerx Counter Register type CNTCR_Register is record -- Timerx Counter value CNTx : CNTCR_CNTx_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CNTCR_Register use record CNTx at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype PERCR_PERx_Field is HAL.UInt16; -- Timerx Period Register type PERCR_Register is record -- Timerx Period value PERx : PERCR_PERx_Field := 16#FFFF#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for PERCR_Register use record PERx at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype REPCR_REPx_Field is HAL.UInt8; -- Timerx Repetition Register type REPCR_Register is record -- Timerx Repetition counter value REPx : REPCR_REPx_Field := 16#0#; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for REPCR_Register use record REPx at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype CMP1CR_CMP1x_Field is HAL.UInt16; -- Timerx Compare 1 Register type CMP1CR_Register is record -- Timerx Compare 1 value CMP1x : CMP1CR_CMP1x_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP1CR_Register use record CMP1x at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CMP1CCR_CMP1x_Field is HAL.UInt16; subtype CMP1CCR_REPx_Field is HAL.UInt8; -- Timerx Compare 1 Compound Register type CMP1CCR_Register is record -- Timerx Compare 1 value CMP1x : CMP1CCR_CMP1x_Field := 16#0#; -- Timerx Repetition value (aliased from HRTIM_REPx register) REPx : CMP1CCR_REPx_Field := 16#0#; -- unspecified Reserved_24_31 : HAL.UInt8 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP1CCR_Register use record CMP1x at 0 range 0 .. 15; REPx at 0 range 16 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; subtype CMP2CR_CMP2x_Field is HAL.UInt16; -- Timerx Compare 2 Register type CMP2CR_Register is record -- Timerx Compare 2 value CMP2x : CMP2CR_CMP2x_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP2CR_Register use record CMP2x at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CMP3CR_CMP3x_Field is HAL.UInt16; -- Timerx Compare 3 Register type CMP3CR_Register is record -- Timerx Compare 3 value CMP3x : CMP3CR_CMP3x_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP3CR_Register use record CMP3x at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CMP4CR_CMP4x_Field is HAL.UInt16; -- Timerx Compare 4 Register type CMP4CR_Register is record -- Timerx Compare 4 value CMP4x : CMP4CR_CMP4x_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP4CR_Register use record CMP4x at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CPT1CR_CPT1x_Field is HAL.UInt16; -- Timerx Capture 1 Register type CPT1CR_Register is record -- Read-only. Timerx Capture 1 value CPT1x : CPT1CR_CPT1x_Field; -- Read-only. Timerx Capture 1 Direction status DIR : Boolean; -- unspecified Reserved_17_31 : HAL.UInt15; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPT1CR_Register use record CPT1x at 0 range 0 .. 15; DIR at 0 range 16 .. 16; Reserved_17_31 at 0 range 17 .. 31; end record; subtype CPT2CR_CPT2x_Field is HAL.UInt16; -- Timerx Capture 2 Register type CPT2CR_Register is record -- Read-only. Timerx Capture 2 value CPT2x : CPT2CR_CPT2x_Field; -- Read-only. Timerx Capture 1 Direction status DIR : Boolean; -- unspecified Reserved_17_31 : HAL.UInt15; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPT2CR_Register use record CPT2x at 0 range 0 .. 15; DIR at 0 range 16 .. 16; Reserved_17_31 at 0 range 17 .. 31; end record; subtype DTCR_DTRx_Field is HAL.UInt9; subtype DTCR_DTPRSC_Field is HAL.UInt3; subtype DTCR_DTFx_Field is HAL.UInt9; -- Timerx Deadtime Register type DTCR_Register is record -- Deadtime Rising value DTRx : DTCR_DTRx_Field := 16#0#; -- Sign Deadtime Rising value SDTRx : Boolean := False; -- Deadtime Prescaler DTPRSC : DTCR_DTPRSC_Field := 16#0#; -- unspecified Reserved_13_13 : HAL.Bit := 16#0#; -- Deadtime Rising Sign Lock DTRSLKx : Boolean := False; -- Deadtime Rising Lock DTRLKx : Boolean := False; -- Deadtime Falling value DTFx : DTCR_DTFx_Field := 16#0#; -- Sign Deadtime Falling value SDTFx : Boolean := False; -- unspecified Reserved_26_29 : HAL.UInt4 := 16#0#; -- Deadtime Falling Sign Lock DTFSLKx : Boolean := False; -- Deadtime Falling Lock DTFLKx : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DTCR_Register use record DTRx at 0 range 0 .. 8; SDTRx at 0 range 9 .. 9; DTPRSC at 0 range 10 .. 12; Reserved_13_13 at 0 range 13 .. 13; DTRSLKx at 0 range 14 .. 14; DTRLKx at 0 range 15 .. 15; DTFx at 0 range 16 .. 24; SDTFx at 0 range 25 .. 25; Reserved_26_29 at 0 range 26 .. 29; DTFSLKx at 0 range 30 .. 30; DTFLKx at 0 range 31 .. 31; end record; -- SETC1R_CMP array type SETC1R_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for SETC1R_CMP type SETC1R_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : SETC1R_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for SETC1R_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- SETC1R_MSTCMP array type SETC1R_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for SETC1R_MSTCMP type SETC1R_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : SETC1R_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for SETC1R_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- SETC1R_TIMEVNT array type SETC1R_TIMEVNT_Field_Array is array (1 .. 9) of Boolean with Component_Size => 1, Size => 9; -- Type definition for SETC1R_TIMEVNT type SETC1R_TIMEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMEVNT as a value Val : HAL.UInt9; when True => -- TIMEVNT as an array Arr : SETC1R_TIMEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 9; for SETC1R_TIMEVNT_Field use record Val at 0 range 0 .. 8; Arr at 0 range 0 .. 8; end record; -- SETC1R_EXTEVNT array type SETC1R_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for SETC1R_EXTEVNT type SETC1R_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : SETC1R_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for SETC1R_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- Timerx Output1 Set Register type SETC1R_Register is record -- Software Set trigger SST : Boolean := False; -- Timer A resynchronizaton RESYNC : Boolean := False; -- Timer A Period PER : Boolean := False; -- Timer A compare 1 CMP : SETC1R_CMP_Field := (As_Array => False, Val => 16#0#); -- Master Period MSTPER : Boolean := False; -- Master Compare 1 MSTCMP : SETC1R_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- Timer Event 1 TIMEVNT : SETC1R_TIMEVNT_Field := (As_Array => False, Val => 16#0#); -- External Event 1 EXTEVNT : SETC1R_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- Registers update (transfer preload to active) UPDATE : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SETC1R_Register use record SST at 0 range 0 .. 0; RESYNC at 0 range 1 .. 1; PER at 0 range 2 .. 2; CMP at 0 range 3 .. 6; MSTPER at 0 range 7 .. 7; MSTCMP at 0 range 8 .. 11; TIMEVNT at 0 range 12 .. 20; EXTEVNT at 0 range 21 .. 30; UPDATE at 0 range 31 .. 31; end record; -- RSTC1R_CMP array type RSTC1R_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTC1R_CMP type RSTC1R_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : RSTC1R_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTC1R_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTC1R_MSTCMP array type RSTC1R_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTC1R_MSTCMP type RSTC1R_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : RSTC1R_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTC1R_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTC1R_TIMEVNT array type RSTC1R_TIMEVNT_Field_Array is array (1 .. 9) of Boolean with Component_Size => 1, Size => 9; -- Type definition for RSTC1R_TIMEVNT type RSTC1R_TIMEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMEVNT as a value Val : HAL.UInt9; when True => -- TIMEVNT as an array Arr : RSTC1R_TIMEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 9; for RSTC1R_TIMEVNT_Field use record Val at 0 range 0 .. 8; Arr at 0 range 0 .. 8; end record; -- RSTC1R_EXTEVNT array type RSTC1R_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for RSTC1R_EXTEVNT type RSTC1R_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : RSTC1R_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for RSTC1R_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- Timerx Output1 Reset Register type RSTC1R_Register is record -- SRT SRT : Boolean := False; -- RESYNC RESYNC : Boolean := False; -- PER PER : Boolean := False; -- CMP1 CMP : RSTC1R_CMP_Field := (As_Array => False, Val => 16#0#); -- MSTPER MSTPER : Boolean := False; -- MSTCMP1 MSTCMP : RSTC1R_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- TIMEVNT1 TIMEVNT : RSTC1R_TIMEVNT_Field := (As_Array => False, Val => 16#0#); -- EXTEVNT1 EXTEVNT : RSTC1R_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- UPDATE UPDATE : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for RSTC1R_Register use record SRT at 0 range 0 .. 0; RESYNC at 0 range 1 .. 1; PER at 0 range 2 .. 2; CMP at 0 range 3 .. 6; MSTPER at 0 range 7 .. 7; MSTCMP at 0 range 8 .. 11; TIMEVNT at 0 range 12 .. 20; EXTEVNT at 0 range 21 .. 30; UPDATE at 0 range 31 .. 31; end record; -- SETC2R_CMP array type SETC2R_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for SETC2R_CMP type SETC2R_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : SETC2R_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for SETC2R_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- SETC2R_MSTCMP array type SETC2R_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for SETC2R_MSTCMP type SETC2R_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : SETC2R_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for SETC2R_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- SETC2R_TIMEVNT array type SETC2R_TIMEVNT_Field_Array is array (1 .. 9) of Boolean with Component_Size => 1, Size => 9; -- Type definition for SETC2R_TIMEVNT type SETC2R_TIMEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMEVNT as a value Val : HAL.UInt9; when True => -- TIMEVNT as an array Arr : SETC2R_TIMEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 9; for SETC2R_TIMEVNT_Field use record Val at 0 range 0 .. 8; Arr at 0 range 0 .. 8; end record; -- SETC2R_EXTEVNT array type SETC2R_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for SETC2R_EXTEVNT type SETC2R_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : SETC2R_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for SETC2R_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- Timerx Output2 Set Register type SETC2R_Register is record -- SST SST : Boolean := False; -- RESYNC RESYNC : Boolean := False; -- PER PER : Boolean := False; -- CMP1 CMP : SETC2R_CMP_Field := (As_Array => False, Val => 16#0#); -- MSTPER MSTPER : Boolean := False; -- MSTCMP1 MSTCMP : SETC2R_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- TIMEVNT1 TIMEVNT : SETC2R_TIMEVNT_Field := (As_Array => False, Val => 16#0#); -- EXTEVNT1 EXTEVNT : SETC2R_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- UPDATE UPDATE : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SETC2R_Register use record SST at 0 range 0 .. 0; RESYNC at 0 range 1 .. 1; PER at 0 range 2 .. 2; CMP at 0 range 3 .. 6; MSTPER at 0 range 7 .. 7; MSTCMP at 0 range 8 .. 11; TIMEVNT at 0 range 12 .. 20; EXTEVNT at 0 range 21 .. 30; UPDATE at 0 range 31 .. 31; end record; -- RSTC2R_CMP array type RSTC2R_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTC2R_CMP type RSTC2R_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : RSTC2R_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTC2R_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTC2R_MSTCMP array type RSTC2R_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTC2R_MSTCMP type RSTC2R_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : RSTC2R_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTC2R_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTC2R_TIMEVNT array type RSTC2R_TIMEVNT_Field_Array is array (1 .. 9) of Boolean with Component_Size => 1, Size => 9; -- Type definition for RSTC2R_TIMEVNT type RSTC2R_TIMEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMEVNT as a value Val : HAL.UInt9; when True => -- TIMEVNT as an array Arr : RSTC2R_TIMEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 9; for RSTC2R_TIMEVNT_Field use record Val at 0 range 0 .. 8; Arr at 0 range 0 .. 8; end record; -- RSTC2R_EXTEVNT array type RSTC2R_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for RSTC2R_EXTEVNT type RSTC2R_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : RSTC2R_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for RSTC2R_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- Timerx Output2 Reset Register type RSTC2R_Register is record -- SRT SRT : Boolean := False; -- RESYNC RESYNC : Boolean := False; -- PER PER : Boolean := False; -- CMP1 CMP : RSTC2R_CMP_Field := (As_Array => False, Val => 16#0#); -- MSTPER MSTPER : Boolean := False; -- MSTCMP1 MSTCMP : RSTC2R_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- TIMEVNT1 TIMEVNT : RSTC2R_TIMEVNT_Field := (As_Array => False, Val => 16#0#); -- EXTEVNT1 EXTEVNT : RSTC2R_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- UPDATE UPDATE : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for RSTC2R_Register use record SRT at 0 range 0 .. 0; RESYNC at 0 range 1 .. 1; PER at 0 range 2 .. 2; CMP at 0 range 3 .. 6; MSTPER at 0 range 7 .. 7; MSTCMP at 0 range 8 .. 11; TIMEVNT at 0 range 12 .. 20; EXTEVNT at 0 range 21 .. 30; UPDATE at 0 range 31 .. 31; end record; subtype EEFCR1_EE1FLTR_Field is HAL.UInt4; subtype EEFCR1_EE2FLTR_Field is HAL.UInt4; subtype EEFCR1_EE3FLTR_Field is HAL.UInt4; subtype EEFCR1_EE4FLTR_Field is HAL.UInt4; subtype EEFCR1_EE5FLTR_Field is HAL.UInt4; -- Timerx External Event Filtering Register 1 type EEFCR1_Register is record -- External Event 1 latch EE1LTCH : Boolean := False; -- External Event 1 filter EE1FLTR : EEFCR1_EE1FLTR_Field := 16#0#; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- External Event 2 latch EE2LTCH : Boolean := False; -- External Event 2 filter EE2FLTR : EEFCR1_EE2FLTR_Field := 16#0#; -- unspecified Reserved_11_11 : HAL.Bit := 16#0#; -- External Event 3 latch EE3LTCH : Boolean := False; -- External Event 3 filter EE3FLTR : EEFCR1_EE3FLTR_Field := 16#0#; -- unspecified Reserved_17_17 : HAL.Bit := 16#0#; -- External Event 4 latch EE4LTCH : Boolean := False; -- External Event 4 filter EE4FLTR : EEFCR1_EE4FLTR_Field := 16#0#; -- unspecified Reserved_23_23 : HAL.Bit := 16#0#; -- External Event 5 latch EE5LTCH : Boolean := False; -- External Event 5 filter EE5FLTR : EEFCR1_EE5FLTR_Field := 16#0#; -- unspecified Reserved_29_31 : HAL.UInt3 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for EEFCR1_Register use record EE1LTCH at 0 range 0 .. 0; EE1FLTR at 0 range 1 .. 4; Reserved_5_5 at 0 range 5 .. 5; EE2LTCH at 0 range 6 .. 6; EE2FLTR at 0 range 7 .. 10; Reserved_11_11 at 0 range 11 .. 11; EE3LTCH at 0 range 12 .. 12; EE3FLTR at 0 range 13 .. 16; Reserved_17_17 at 0 range 17 .. 17; EE4LTCH at 0 range 18 .. 18; EE4FLTR at 0 range 19 .. 22; Reserved_23_23 at 0 range 23 .. 23; EE5LTCH at 0 range 24 .. 24; EE5FLTR at 0 range 25 .. 28; Reserved_29_31 at 0 range 29 .. 31; end record; subtype EEFCR2_EE6FLTR_Field is HAL.UInt4; subtype EEFCR2_EE7FLTR_Field is HAL.UInt4; subtype EEFCR2_EE8FLTR_Field is HAL.UInt4; subtype EEFCR2_EE9FLTR_Field is HAL.UInt4; subtype EEFCR2_EE10FLTR_Field is HAL.UInt4; -- Timerx External Event Filtering Register 2 type EEFCR2_Register is record -- External Event 6 latch EE6LTCH : Boolean := False; -- External Event 6 filter EE6FLTR : EEFCR2_EE6FLTR_Field := 16#0#; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- External Event 7 latch EE7LTCH : Boolean := False; -- External Event 7 filter EE7FLTR : EEFCR2_EE7FLTR_Field := 16#0#; -- unspecified Reserved_11_11 : HAL.Bit := 16#0#; -- External Event 8 latch EE8LTCH : Boolean := False; -- External Event 8 filter EE8FLTR : EEFCR2_EE8FLTR_Field := 16#0#; -- unspecified Reserved_17_17 : HAL.Bit := 16#0#; -- External Event 9 latch EE9LTCH : Boolean := False; -- External Event 9 filter EE9FLTR : EEFCR2_EE9FLTR_Field := 16#0#; -- unspecified Reserved_23_23 : HAL.Bit := 16#0#; -- External Event 10 latch EE10LTCH : Boolean := False; -- External Event 10 filter EE10FLTR : EEFCR2_EE10FLTR_Field := 16#0#; -- unspecified Reserved_29_31 : HAL.UInt3 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for EEFCR2_Register use record EE6LTCH at 0 range 0 .. 0; EE6FLTR at 0 range 1 .. 4; Reserved_5_5 at 0 range 5 .. 5; EE7LTCH at 0 range 6 .. 6; EE7FLTR at 0 range 7 .. 10; Reserved_11_11 at 0 range 11 .. 11; EE8LTCH at 0 range 12 .. 12; EE8FLTR at 0 range 13 .. 16; Reserved_17_17 at 0 range 17 .. 17; EE9LTCH at 0 range 18 .. 18; EE9FLTR at 0 range 19 .. 22; Reserved_23_23 at 0 range 23 .. 23; EE10LTCH at 0 range 24 .. 24; EE10FLTR at 0 range 25 .. 28; Reserved_29_31 at 0 range 29 .. 31; end record; -- RSTCR_CMP array type RSTCR_CMP_Field_Array is array (2 .. 3) of Boolean with Component_Size => 1, Size => 2; -- Type definition for RSTCR_CMP type RSTCR_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt2; when True => -- CMP as an array Arr : RSTCR_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for RSTCR_CMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- RSTCR_MSTCMP array type RSTCR_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTCR_MSTCMP type RSTCR_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : RSTCR_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTCR_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTCR_EXTEVNT array type RSTCR_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for RSTCR_EXTEVNT type RSTCR_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : RSTCR_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for RSTCR_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- RSTCR_TIMACMP array type RSTCR_TIMACMP_Field_Array is array (1 .. 3) of Boolean with Component_Size => 1, Size => 3; -- Type definition for RSTCR_TIMACMP type RSTCR_TIMACMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMACMP as a value Val : HAL.UInt3; when True => -- TIMACMP as an array Arr : RSTCR_TIMACMP_Field_Array; end case; end record with Unchecked_Union, Size => 3; for RSTCR_TIMACMP_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- RSTCR_TIMBCMP array type RSTCR_TIMBCMP_Field_Array is array (1 .. 3) of Boolean with Component_Size => 1, Size => 3; -- Type definition for RSTCR_TIMBCMP type RSTCR_TIMBCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMBCMP as a value Val : HAL.UInt3; when True => -- TIMBCMP as an array Arr : RSTCR_TIMBCMP_Field_Array; end case; end record with Unchecked_Union, Size => 3; for RSTCR_TIMBCMP_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- RSTCR_TIMDCMP array type RSTCR_TIMDCMP_Field_Array is array (1 .. 3) of Boolean with Component_Size => 1, Size => 3; -- Type definition for RSTCR_TIMDCMP type RSTCR_TIMDCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMDCMP as a value Val : HAL.UInt3; when True => -- TIMDCMP as an array Arr : RSTCR_TIMDCMP_Field_Array; end case; end record with Unchecked_Union, Size => 3; for RSTCR_TIMDCMP_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- RSTCR_TIMECMP array type RSTCR_TIMECMP_Field_Array is array (1 .. 3) of Boolean with Component_Size => 1, Size => 3; -- Type definition for RSTCR_TIMECMP type RSTCR_TIMECMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMECMP as a value Val : HAL.UInt3; when True => -- TIMECMP as an array Arr : RSTCR_TIMECMP_Field_Array; end case; end record with Unchecked_Union, Size => 3; for RSTCR_TIMECMP_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- TimerA Reset Register type RSTCR_Register is record -- Timer A Update reset TIMFCMP1 : Boolean := False; -- Timer A Update reset UPDT : Boolean := False; -- Timer A compare 2 reset CMP : RSTCR_CMP_Field := (As_Array => False, Val => 16#0#); -- Master timer Period MSTPER : Boolean := False; -- Master compare 1 MSTCMP : RSTCR_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- External Event 1 EXTEVNT : RSTCR_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- Timer A Compare 1 TIMACMP : RSTCR_TIMACMP_Field := (As_Array => False, Val => 16#0#); -- Timer B Compare 1 TIMBCMP : RSTCR_TIMBCMP_Field := (As_Array => False, Val => 16#0#); -- Timer D Compare 1 TIMDCMP : RSTCR_TIMDCMP_Field := (As_Array => False, Val => 16#0#); -- Timer E Compare 1 TIMECMP : RSTCR_TIMECMP_Field := (As_Array => False, Val => 16#0#); -- Timer F Compare 2 TIMFCPM2 : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for RSTCR_Register use record TIMFCMP1 at 0 range 0 .. 0; UPDT at 0 range 1 .. 1; CMP at 0 range 2 .. 3; MSTPER at 0 range 4 .. 4; MSTCMP at 0 range 5 .. 8; EXTEVNT at 0 range 9 .. 18; TIMACMP at 0 range 19 .. 21; TIMBCMP at 0 range 22 .. 24; TIMDCMP at 0 range 25 .. 27; TIMECMP at 0 range 28 .. 30; TIMFCPM2 at 0 range 31 .. 31; end record; subtype CHPCR_CHPFRQ_Field is HAL.UInt4; subtype CHPCR_CHPDTY_Field is HAL.UInt3; subtype CHPCR_STRTPW_Field is HAL.UInt4; -- Timerx Chopper Register type CHPCR_Register is record -- Timerx carrier frequency value CHPFRQ : CHPCR_CHPFRQ_Field := 16#0#; -- Timerx chopper duty cycle value CHPDTY : CHPCR_CHPDTY_Field := 16#0#; -- STRTPW STRTPW : CHPCR_STRTPW_Field := 16#0#; -- unspecified Reserved_11_31 : HAL.UInt21 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CHPCR_Register use record CHPFRQ at 0 range 0 .. 3; CHPDTY at 0 range 4 .. 6; STRTPW at 0 range 7 .. 10; Reserved_11_31 at 0 range 11 .. 31; end record; -- CPT1CCR_TACMP array type CPT1CCR_TACMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1CCR_TACMP type CPT1CCR_TACMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TACMP as a value Val : HAL.UInt2; when True => -- TACMP as an array Arr : CPT1CCR_TACMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1CCR_TACMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT1CCR_TBCMP array type CPT1CCR_TBCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1CCR_TBCMP type CPT1CCR_TBCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TBCMP as a value Val : HAL.UInt2; when True => -- TBCMP as an array Arr : CPT1CCR_TBCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1CCR_TBCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT1CCR_TFCMP array type CPT1CCR_TFCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1CCR_TFCMP type CPT1CCR_TFCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TFCMP as a value Val : HAL.UInt2; when True => -- TFCMP as an array Arr : CPT1CCR_TFCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1CCR_TFCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT1CCR_TDCMP array type CPT1CCR_TDCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1CCR_TDCMP type CPT1CCR_TDCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TDCMP as a value Val : HAL.UInt2; when True => -- TDCMP as an array Arr : CPT1CCR_TDCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1CCR_TDCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT1CCR_TECMP array type CPT1CCR_TECMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1CCR_TECMP type CPT1CCR_TECMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TECMP as a value Val : HAL.UInt2; when True => -- TECMP as an array Arr : CPT1CCR_TECMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1CCR_TECMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Timerx Capture 1 Control Register type CPT1CCR_Register is record -- Software Capture SWCPT : Boolean := False; -- Update Capture UDPCPT : Boolean := False; -- External Event 1 Capture EXEV1CPT : Boolean := False; -- External Event 2 Capture EXEV2CPT : Boolean := False; -- External Event 3 Capture EXEV3CPT : Boolean := False; -- External Event 4 Capture EXEV4CPT : Boolean := False; -- External Event 5 Capture EXEV5CPT : Boolean := False; -- External Event 6 Capture EXEV6CPT : Boolean := False; -- External Event 7 Capture EXEV7CPT : Boolean := False; -- External Event 8 Capture EXEV8CPT : Boolean := False; -- External Event 9 Capture EXEV9CPT : Boolean := False; -- External Event 10 Capture EXEV10CPT : Boolean := False; -- Timer A output 1 Set TA1SET : Boolean := False; -- Timer A output 1 Reset TA1RST : Boolean := False; -- Timer A Compare 1 TACMP : CPT1CCR_TACMP_Field := (As_Array => False, Val => 16#0#); -- Timer B output 1 Set TB1SET : Boolean := False; -- Timer B output 1 Reset TB1RST : Boolean := False; -- Timer B Compare 1 TBCMP : CPT1CCR_TBCMP_Field := (As_Array => False, Val => 16#0#); -- TF1SET TF1SET : Boolean := False; -- TF1RST TF1RST : Boolean := False; -- TFCMP1 TFCMP : CPT1CCR_TFCMP_Field := (As_Array => False, Val => 16#0#); -- Timer D output 1 Set TD1SET : Boolean := False; -- Timer D output 1 Reset TD1RST : Boolean := False; -- Timer D Compare 1 TDCMP : CPT1CCR_TDCMP_Field := (As_Array => False, Val => 16#0#); -- Timer E output 1 Set TE1SET : Boolean := False; -- Timer E output 1 Reset TE1RST : Boolean := False; -- Timer E Compare 1 TECMP : CPT1CCR_TECMP_Field := (As_Array => False, Val => 16#0#); end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPT1CCR_Register use record SWCPT at 0 range 0 .. 0; UDPCPT at 0 range 1 .. 1; EXEV1CPT at 0 range 2 .. 2; EXEV2CPT at 0 range 3 .. 3; EXEV3CPT at 0 range 4 .. 4; EXEV4CPT at 0 range 5 .. 5; EXEV5CPT at 0 range 6 .. 6; EXEV6CPT at 0 range 7 .. 7; EXEV7CPT at 0 range 8 .. 8; EXEV8CPT at 0 range 9 .. 9; EXEV9CPT at 0 range 10 .. 10; EXEV10CPT at 0 range 11 .. 11; TA1SET at 0 range 12 .. 12; TA1RST at 0 range 13 .. 13; TACMP at 0 range 14 .. 15; TB1SET at 0 range 16 .. 16; TB1RST at 0 range 17 .. 17; TBCMP at 0 range 18 .. 19; TF1SET at 0 range 20 .. 20; TF1RST at 0 range 21 .. 21; TFCMP at 0 range 22 .. 23; TD1SET at 0 range 24 .. 24; TD1RST at 0 range 25 .. 25; TDCMP at 0 range 26 .. 27; TE1SET at 0 range 28 .. 28; TE1RST at 0 range 29 .. 29; TECMP at 0 range 30 .. 31; end record; -- CPT2CCR_TACMP array type CPT2CCR_TACMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2CCR_TACMP type CPT2CCR_TACMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TACMP as a value Val : HAL.UInt2; when True => -- TACMP as an array Arr : CPT2CCR_TACMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2CCR_TACMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT2CCR_TBCMP array type CPT2CCR_TBCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2CCR_TBCMP type CPT2CCR_TBCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TBCMP as a value Val : HAL.UInt2; when True => -- TBCMP as an array Arr : CPT2CCR_TBCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2CCR_TBCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT2CCR_TF1CMP array type CPT2CCR_TF1CMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2CCR_TF1CMP type CPT2CCR_TF1CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TF1CMP as a value Val : HAL.UInt2; when True => -- TF1CMP as an array Arr : CPT2CCR_TF1CMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2CCR_TF1CMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT2CCR_TDCMP array type CPT2CCR_TDCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2CCR_TDCMP type CPT2CCR_TDCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TDCMP as a value Val : HAL.UInt2; when True => -- TDCMP as an array Arr : CPT2CCR_TDCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2CCR_TDCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT2CCR_TECMP array type CPT2CCR_TECMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2CCR_TECMP type CPT2CCR_TECMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TECMP as a value Val : HAL.UInt2; when True => -- TECMP as an array Arr : CPT2CCR_TECMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2CCR_TECMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Timerx Capture 2 Control Register type CPT2CCR_Register is record -- Software Capture SWCPT : Boolean := False; -- Update Capture UDPCPT : Boolean := False; -- External Event 1 Capture EXEV1CPT : Boolean := False; -- External Event 2 Capture EXEV2CPT : Boolean := False; -- External Event 3 Capture EXEV3CPT : Boolean := False; -- External Event 4 Capture EXEV4CPT : Boolean := False; -- External Event 5 Capture EXEV5CPT : Boolean := False; -- External Event 6 Capture EXEV6CPT : Boolean := False; -- External Event 7 Capture EXEV7CPT : Boolean := False; -- External Event 8 Capture EXEV8CPT : Boolean := False; -- External Event 9 Capture EXEV9CPT : Boolean := False; -- External Event 10 Capture EXEV10CPT : Boolean := False; -- Timer A output 1 Set TA1SET : Boolean := False; -- Timer A output 1 Reset TA1RST : Boolean := False; -- Timer A Compare 1 TACMP : CPT2CCR_TACMP_Field := (As_Array => False, Val => 16#0#); -- Timer B output 1 Set TB1SET : Boolean := False; -- Timer B output 1 Reset TB1RST : Boolean := False; -- Timer B Compare 1 TBCMP : CPT2CCR_TBCMP_Field := (As_Array => False, Val => 16#0#); -- TF1SET TF1SET : Boolean := False; -- TF1RST TF1RST : Boolean := False; -- TF1CMP1 TF1CMP : CPT2CCR_TF1CMP_Field := (As_Array => False, Val => 16#0#); -- Timer D output 1 Set TD1SET : Boolean := False; -- Timer D output 1 Reset TD1RST : Boolean := False; -- Timer D Compare 1 TDCMP : CPT2CCR_TDCMP_Field := (As_Array => False, Val => 16#0#); -- Timer E output 1 Set TE1SET : Boolean := False; -- Timer E output 1 Reset TE1RST : Boolean := False; -- Timer E Compare 1 TECMP : CPT2CCR_TECMP_Field := (As_Array => False, Val => 16#0#); end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPT2CCR_Register use record SWCPT at 0 range 0 .. 0; UDPCPT at 0 range 1 .. 1; EXEV1CPT at 0 range 2 .. 2; EXEV2CPT at 0 range 3 .. 3; EXEV3CPT at 0 range 4 .. 4; EXEV4CPT at 0 range 5 .. 5; EXEV5CPT at 0 range 6 .. 6; EXEV6CPT at 0 range 7 .. 7; EXEV7CPT at 0 range 8 .. 8; EXEV8CPT at 0 range 9 .. 9; EXEV9CPT at 0 range 10 .. 10; EXEV10CPT at 0 range 11 .. 11; TA1SET at 0 range 12 .. 12; TA1RST at 0 range 13 .. 13; TACMP at 0 range 14 .. 15; TB1SET at 0 range 16 .. 16; TB1RST at 0 range 17 .. 17; TBCMP at 0 range 18 .. 19; TF1SET at 0 range 20 .. 20; TF1RST at 0 range 21 .. 21; TF1CMP at 0 range 22 .. 23; TD1SET at 0 range 24 .. 24; TD1RST at 0 range 25 .. 25; TDCMP at 0 range 26 .. 27; TE1SET at 0 range 28 .. 28; TE1RST at 0 range 29 .. 29; TECMP at 0 range 30 .. 31; end record; subtype OUTCR_FAULT1_Field is HAL.UInt2; subtype OUTCR_DLYPRT_Field is HAL.UInt3; subtype OUTCR_FAULT2_Field is HAL.UInt2; -- Timerx Output Register type OUTCR_Register is record -- unspecified Reserved_0_0 : HAL.Bit := 16#0#; -- Output 1 polarity POL1 : Boolean := False; -- Output 1 Idle mode IDLEM1 : Boolean := False; -- Output 1 Idle State IDLES1 : Boolean := False; -- Output 1 Fault state FAULT1 : OUTCR_FAULT1_Field := 16#0#; -- Output 1 Chopper enable CHP1 : Boolean := False; -- Output 1 Deadtime upon burst mode Idle entry DIDL1 : Boolean := False; -- Deadtime enable DTEN : Boolean := False; -- Delayed Protection Enable DLYPRTEN : Boolean := False; -- Delayed Protection DLYPRT : OUTCR_DLYPRT_Field := 16#0#; -- unspecified Reserved_13_13 : HAL.Bit := 16#0#; -- Balanced Idle Automatic Resume BIAR : Boolean := False; -- unspecified Reserved_15_16 : HAL.UInt2 := 16#0#; -- Output 2 polarity POL2 : Boolean := False; -- Output 2 Idle mode IDLEM2 : Boolean := False; -- Output 2 Idle State IDLES2 : Boolean := False; -- Output 2 Fault state FAULT2 : OUTCR_FAULT2_Field := 16#0#; -- Output 2 Chopper enable CHP2 : Boolean := False; -- Output 2 Deadtime upon burst mode Idle entry DIDL2 : Boolean := False; -- unspecified Reserved_24_31 : HAL.UInt8 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for OUTCR_Register use record Reserved_0_0 at 0 range 0 .. 0; POL1 at 0 range 1 .. 1; IDLEM1 at 0 range 2 .. 2; IDLES1 at 0 range 3 .. 3; FAULT1 at 0 range 4 .. 5; CHP1 at 0 range 6 .. 6; DIDL1 at 0 range 7 .. 7; DTEN at 0 range 8 .. 8; DLYPRTEN at 0 range 9 .. 9; DLYPRT at 0 range 10 .. 12; Reserved_13_13 at 0 range 13 .. 13; BIAR at 0 range 14 .. 14; Reserved_15_16 at 0 range 15 .. 16; POL2 at 0 range 17 .. 17; IDLEM2 at 0 range 18 .. 18; IDLES2 at 0 range 19 .. 19; FAULT2 at 0 range 20 .. 21; CHP2 at 0 range 22 .. 22; DIDL2 at 0 range 23 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; -- Timerx Fault Register type FLTCR_Register is record -- Fault 1 enable FLT1EN : Boolean := False; -- Fault 2 enable FLT2EN : Boolean := False; -- Fault 3 enable FLT3EN : Boolean := False; -- Fault 4 enable FLT4EN : Boolean := False; -- Fault 5 enable FLT5EN : Boolean := False; -- Fault 6 enable FLT6EN : Boolean := False; -- unspecified Reserved_6_30 : HAL.UInt25 := 16#0#; -- Fault sources Lock FLTLCK : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for FLTCR_Register use record FLT1EN at 0 range 0 .. 0; FLT2EN at 0 range 1 .. 1; FLT3EN at 0 range 2 .. 2; FLT4EN at 0 range 3 .. 3; FLT5EN at 0 range 4 .. 4; FLT6EN at 0 range 5 .. 5; Reserved_6_30 at 0 range 6 .. 30; FLTLCK at 0 range 31 .. 31; end record; subtype TIMCCR2_ROM_Field is HAL.UInt2; subtype TIMCCR2_OUTROM_Field is HAL.UInt2; subtype TIMCCR2_ADROM_Field is HAL.UInt2; subtype TIMCCR2_BMROM_Field is HAL.UInt2; subtype TIMCCR2_FEROM_Field is HAL.UInt2; -- TIMCCR2_GTCMP array type TIMCCR2_GTCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for TIMCCR2_GTCMP type TIMCCR2_GTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- GTCMP as a value Val : HAL.UInt2; when True => -- GTCMP as an array Arr : TIMCCR2_GTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for TIMCCR2_GTCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- HRTIM Timerx Control Register 2 type TIMCCR2_Register is record -- Dual Channel DAC trigger enable DCDE : Boolean := False; -- Dual Channel DAC Step trigger DCDS : Boolean := False; -- Dual Channel DAC Reset trigger DCDR : Boolean := False; -- unspecified Reserved_3_3 : HAL.Bit := 16#0#; -- Up-Down Mode UDM : Boolean := False; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- Roll-Over Mode ROM : TIMCCR2_ROM_Field := 16#0#; -- Output Roll-Over Mode OUTROM : TIMCCR2_OUTROM_Field := 16#0#; -- ADC Roll-Over Mode ADROM : TIMCCR2_ADROM_Field := 16#0#; -- Burst Mode Roll-Over Mode BMROM : TIMCCR2_BMROM_Field := 16#0#; -- Fault and Event Roll-Over Mode FEROM : TIMCCR2_FEROM_Field := 16#0#; -- Greater than Compare 1 PWM mode GTCMP : TIMCCR2_GTCMP_Field := (As_Array => False, Val => 16#0#); -- unspecified Reserved_18_19 : HAL.UInt2 := 16#0#; -- Triggered-half mode TRGHLF : Boolean := False; -- unspecified Reserved_21_31 : HAL.UInt11 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMCCR2_Register use record DCDE at 0 range 0 .. 0; DCDS at 0 range 1 .. 1; DCDR at 0 range 2 .. 2; Reserved_3_3 at 0 range 3 .. 3; UDM at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; ROM at 0 range 6 .. 7; OUTROM at 0 range 8 .. 9; ADROM at 0 range 10 .. 11; BMROM at 0 range 12 .. 13; FEROM at 0 range 14 .. 15; GTCMP at 0 range 16 .. 17; Reserved_18_19 at 0 range 18 .. 19; TRGHLF at 0 range 20 .. 20; Reserved_21_31 at 0 range 21 .. 31; end record; subtype EEFCR3_EEVASEL_Field is HAL.UInt4; subtype EEFCR3_EEVACNT_Field is HAL.UInt6; -- HRTIM Timerx External Event Filtering Register 3 type EEFCR3_Register is record -- External Event A Counter Enable EEVACE : Boolean := False; -- External Event A Counter Reset EEVACRES : Boolean := False; -- External Event A Reset Mode EEVARSTM : Boolean := False; -- unspecified Reserved_3_3 : HAL.Bit := 16#0#; -- External Event A Selection EEVASEL : EEFCR3_EEVASEL_Field := 16#0#; -- External Event A counter EEVACNT : EEFCR3_EEVACNT_Field := 16#0#; -- unspecified Reserved_14_31 : HAL.UInt18 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for EEFCR3_Register use record EEVACE at 0 range 0 .. 0; EEVACRES at 0 range 1 .. 1; EEVARSTM at 0 range 2 .. 2; Reserved_3_3 at 0 range 3 .. 3; EEVASEL at 0 range 4 .. 7; EEVACNT at 0 range 8 .. 13; Reserved_14_31 at 0 range 14 .. 31; end record; subtype TIMDCR_CKPSCx_Field is HAL.UInt3; subtype TIMDCR_INTLVD_Field is HAL.UInt2; -- TIMDCR_DELCMP array element subtype TIMDCR_DELCMP_Element is HAL.UInt2; -- TIMDCR_DELCMP array type TIMDCR_DELCMP_Field_Array is array (2 .. 3) of TIMDCR_DELCMP_Element with Component_Size => 2, Size => 4; -- Type definition for TIMDCR_DELCMP type TIMDCR_DELCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- DELCMP as a value Val : HAL.UInt4; when True => -- DELCMP as an array Arr : TIMDCR_DELCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for TIMDCR_DELCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; subtype TIMDCR_DACSYNC_Field is HAL.UInt2; subtype TIMDCR_UPDGAT_Field is HAL.UInt4; -- Timerx Control Register type TIMDCR_Register is record -- HRTIM Timer x Clock prescaler CKPSCx : TIMDCR_CKPSCx_Field := 16#0#; -- Continuous mode CONT : Boolean := False; -- Re-triggerable mode RETRIG : Boolean := False; -- Half mode enable HALF : Boolean := False; -- Push-Pull mode enable PSHPLL : Boolean := False; -- Interleaved mode INTLVD : TIMDCR_INTLVD_Field := 16#0#; -- Re-Synchronized Update RSYNCU : Boolean := False; -- Synchronization Resets Timer x SYNCRSTx : Boolean := False; -- Synchronization Starts Timer x SYNCSTRTx : Boolean := False; -- Delayed CMP2 mode DELCMP : TIMDCR_DELCMP_Field := (As_Array => False, Val => 16#0#); -- TFU TFU : Boolean := False; -- Timer x Repetition update TxREPU : Boolean := False; -- Timerx reset update TxRSTU : Boolean := False; -- TAU TAU : Boolean := False; -- TBU TBU : Boolean := False; -- TCU TCU : Boolean := False; -- unspecified Reserved_22_22 : HAL.Bit := 16#0#; -- TEU TEU : Boolean := False; -- Master Timer update MSTU : Boolean := False; -- AC Synchronization DACSYNC : TIMDCR_DACSYNC_Field := 16#0#; -- Preload enable PREEN : Boolean := False; -- Update Gating UPDGAT : TIMDCR_UPDGAT_Field := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMDCR_Register use record CKPSCx at 0 range 0 .. 2; CONT at 0 range 3 .. 3; RETRIG at 0 range 4 .. 4; HALF at 0 range 5 .. 5; PSHPLL at 0 range 6 .. 6; INTLVD at 0 range 7 .. 8; RSYNCU at 0 range 9 .. 9; SYNCRSTx at 0 range 10 .. 10; SYNCSTRTx at 0 range 11 .. 11; DELCMP at 0 range 12 .. 15; TFU at 0 range 16 .. 16; TxREPU at 0 range 17 .. 17; TxRSTU at 0 range 18 .. 18; TAU at 0 range 19 .. 19; TBU at 0 range 20 .. 20; TCU at 0 range 21 .. 21; Reserved_22_22 at 0 range 22 .. 22; TEU at 0 range 23 .. 23; MSTU at 0 range 24 .. 24; DACSYNC at 0 range 25 .. 26; PREEN at 0 range 27 .. 27; UPDGAT at 0 range 28 .. 31; end record; -- TIMDISR_CMP array type TIMDISR_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for TIMDISR_CMP type TIMDISR_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : TIMDISR_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for TIMDISR_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- TIMDISR_CPT array type TIMDISR_CPT_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for TIMDISR_CPT type TIMDISR_CPT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CPT as a value Val : HAL.UInt2; when True => -- CPT as an array Arr : TIMDISR_CPT_Field_Array; end case; end record with Unchecked_Union, Size => 2; for TIMDISR_CPT_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Timerx Interrupt Status Register type TIMDISR_Register is record -- Read-only. Compare 1 Interrupt Flag CMP : TIMDISR_CMP_Field; -- Read-only. Repetition Interrupt Flag REP : Boolean; -- unspecified Reserved_5_5 : HAL.Bit; -- Read-only. Update Interrupt Flag UPD : Boolean; -- Read-only. Capture1 Interrupt Flag CPT : TIMDISR_CPT_Field; -- Read-only. Output 1 Set Interrupt Flag SETx1 : Boolean; -- Read-only. Output 1 Reset Interrupt Flag RSTx1 : Boolean; -- Read-only. Output 2 Set Interrupt Flag SETx2 : Boolean; -- Read-only. Output 2 Reset Interrupt Flag RSTx2 : Boolean; -- Read-only. Reset Interrupt Flag RST : Boolean; -- Read-only. Delayed Protection Flag DLYPRT : Boolean; -- unspecified Reserved_15_15 : HAL.Bit; -- Read-only. Current Push Pull Status CPPSTAT : Boolean; -- Read-only. Idle Push Pull Status IPPSTAT : Boolean; -- Read-only. Output 1 State O1STAT : Boolean; -- Read-only. Output 2 State O2STAT : Boolean; -- Read-only. Output 1 Copy O1CPY : Boolean; -- Read-only. Output 2 Copy O2CPY : Boolean; -- unspecified Reserved_22_31 : HAL.UInt10; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMDISR_Register use record CMP at 0 range 0 .. 3; REP at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; UPD at 0 range 6 .. 6; CPT at 0 range 7 .. 8; SETx1 at 0 range 9 .. 9; RSTx1 at 0 range 10 .. 10; SETx2 at 0 range 11 .. 11; RSTx2 at 0 range 12 .. 12; RST at 0 range 13 .. 13; DLYPRT at 0 range 14 .. 14; Reserved_15_15 at 0 range 15 .. 15; CPPSTAT at 0 range 16 .. 16; IPPSTAT at 0 range 17 .. 17; O1STAT at 0 range 18 .. 18; O2STAT at 0 range 19 .. 19; O1CPY at 0 range 20 .. 20; O2CPY at 0 range 21 .. 21; Reserved_22_31 at 0 range 22 .. 31; end record; -- Timerx Interrupt Clear Register type TIMDICR_Register is record -- Write-only. Compare 1 Interrupt flag Clear CMP1C : Boolean := False; -- Write-only. Compare 2 Interrupt flag Clear CMP2C : Boolean := False; -- Write-only. Compare 3 Interrupt flag Clear CMP3C : Boolean := False; -- Write-only. Compare 4 Interrupt flag Clear CMP4C : Boolean := False; -- Write-only. Repetition Interrupt flag Clear REPC : Boolean := False; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- Write-only. Update Interrupt flag Clear UPDC : Boolean := False; -- Write-only. Capture1 Interrupt flag Clear CPT1C : Boolean := False; -- Write-only. Capture2 Interrupt flag Clear CPT2C : Boolean := False; -- Write-only. Output 1 Set flag Clear SET1xC : Boolean := False; -- Write-only. Output 1 Reset flag Clear RSTx1C : Boolean := False; -- Write-only. Output 2 Set flag Clear SET2xC : Boolean := False; -- Write-only. Output 2 Reset flag Clear RSTx2C : Boolean := False; -- Write-only. Reset Interrupt flag Clear RSTC : Boolean := False; -- Write-only. Delayed Protection Flag Clear DLYPRTC : Boolean := False; -- unspecified Reserved_15_31 : HAL.UInt17 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMDICR_Register use record CMP1C at 0 range 0 .. 0; CMP2C at 0 range 1 .. 1; CMP3C at 0 range 2 .. 2; CMP4C at 0 range 3 .. 3; REPC at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; UPDC at 0 range 6 .. 6; CPT1C at 0 range 7 .. 7; CPT2C at 0 range 8 .. 8; SET1xC at 0 range 9 .. 9; RSTx1C at 0 range 10 .. 10; SET2xC at 0 range 11 .. 11; RSTx2C at 0 range 12 .. 12; RSTC at 0 range 13 .. 13; DLYPRTC at 0 range 14 .. 14; Reserved_15_31 at 0 range 15 .. 31; end record; -- TIMxDIER type TIMDDIER_Register is record -- CMP1IE CMP1IE : Boolean := False; -- CMP2IE CMP2IE : Boolean := False; -- CMP3IE CMP3IE : Boolean := False; -- CMP4IE CMP4IE : Boolean := False; -- REPIE REPIE : Boolean := False; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- UPDIE UPDIE : Boolean := False; -- CPT1IE CPT1IE : Boolean := False; -- CPT2IE CPT2IE : Boolean := False; -- SET1xIE SET1xIE : Boolean := False; -- RSTx1IE RSTx1IE : Boolean := False; -- SETx2IE SETx2IE : Boolean := False; -- RSTx2IE RSTx2IE : Boolean := False; -- RSTIE RSTIE : Boolean := False; -- DLYPRTIE DLYPRTIE : Boolean := False; -- unspecified Reserved_15_15 : HAL.Bit := 16#0#; -- CMP1DE CMP1DE : Boolean := False; -- CMP2DE CMP2DE : Boolean := False; -- CMP3DE CMP3DE : Boolean := False; -- CMP4DE CMP4DE : Boolean := False; -- REPDE REPDE : Boolean := False; -- unspecified Reserved_21_21 : HAL.Bit := 16#0#; -- UPDDE UPDDE : Boolean := False; -- CPT1DE CPT1DE : Boolean := False; -- CPT2DE CPT2DE : Boolean := False; -- SET1xDE SET1xDE : Boolean := False; -- RSTx1DE RSTx1DE : Boolean := False; -- SETx2DE SETx2DE : Boolean := False; -- RSTx2DE RSTx2DE : Boolean := False; -- RSTDE RSTDE : Boolean := False; -- DLYPRTDE DLYPRTDE : Boolean := False; -- unspecified Reserved_31_31 : HAL.Bit := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMDDIER_Register use record CMP1IE at 0 range 0 .. 0; CMP2IE at 0 range 1 .. 1; CMP3IE at 0 range 2 .. 2; CMP4IE at 0 range 3 .. 3; REPIE at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; UPDIE at 0 range 6 .. 6; CPT1IE at 0 range 7 .. 7; CPT2IE at 0 range 8 .. 8; SET1xIE at 0 range 9 .. 9; RSTx1IE at 0 range 10 .. 10; SETx2IE at 0 range 11 .. 11; RSTx2IE at 0 range 12 .. 12; RSTIE at 0 range 13 .. 13; DLYPRTIE at 0 range 14 .. 14; Reserved_15_15 at 0 range 15 .. 15; CMP1DE at 0 range 16 .. 16; CMP2DE at 0 range 17 .. 17; CMP3DE at 0 range 18 .. 18; CMP4DE at 0 range 19 .. 19; REPDE at 0 range 20 .. 20; Reserved_21_21 at 0 range 21 .. 21; UPDDE at 0 range 22 .. 22; CPT1DE at 0 range 23 .. 23; CPT2DE at 0 range 24 .. 24; SET1xDE at 0 range 25 .. 25; RSTx1DE at 0 range 26 .. 26; SETx2DE at 0 range 27 .. 27; RSTx2DE at 0 range 28 .. 28; RSTDE at 0 range 29 .. 29; DLYPRTDE at 0 range 30 .. 30; Reserved_31_31 at 0 range 31 .. 31; end record; subtype CNTDR_CNTx_Field is HAL.UInt16; -- Timerx Counter Register type CNTDR_Register is record -- Timerx Counter value CNTx : CNTDR_CNTx_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CNTDR_Register use record CNTx at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype PERDR_PERx_Field is HAL.UInt16; -- Timerx Period Register type PERDR_Register is record -- Timerx Period value PERx : PERDR_PERx_Field := 16#FFFF#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for PERDR_Register use record PERx at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype REPDR_REPx_Field is HAL.UInt8; -- Timerx Repetition Register type REPDR_Register is record -- Timerx Repetition counter value REPx : REPDR_REPx_Field := 16#0#; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for REPDR_Register use record REPx at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype CMP1DR_CMP1x_Field is HAL.UInt16; -- Timerx Compare 1 Register type CMP1DR_Register is record -- Timerx Compare 1 value CMP1x : CMP1DR_CMP1x_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP1DR_Register use record CMP1x at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CMP1CDR_CMP1x_Field is HAL.UInt16; subtype CMP1CDR_REPx_Field is HAL.UInt8; -- Timerx Compare 1 Compound Register type CMP1CDR_Register is record -- Timerx Compare 1 value CMP1x : CMP1CDR_CMP1x_Field := 16#0#; -- Timerx Repetition value (aliased from HRTIM_REPx register) REPx : CMP1CDR_REPx_Field := 16#0#; -- unspecified Reserved_24_31 : HAL.UInt8 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP1CDR_Register use record CMP1x at 0 range 0 .. 15; REPx at 0 range 16 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; subtype CMP2DR_CMP2x_Field is HAL.UInt16; -- Timerx Compare 2 Register type CMP2DR_Register is record -- Timerx Compare 2 value CMP2x : CMP2DR_CMP2x_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP2DR_Register use record CMP2x at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CMP3DR_CMP3x_Field is HAL.UInt16; -- Timerx Compare 3 Register type CMP3DR_Register is record -- Timerx Compare 3 value CMP3x : CMP3DR_CMP3x_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP3DR_Register use record CMP3x at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CMP4DR_CMP4x_Field is HAL.UInt16; -- Timerx Compare 4 Register type CMP4DR_Register is record -- Timerx Compare 4 value CMP4x : CMP4DR_CMP4x_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP4DR_Register use record CMP4x at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CPT1DR_CPT1x_Field is HAL.UInt16; -- Timerx Capture 1 Register type CPT1DR_Register is record -- Read-only. Timerx Capture 1 value CPT1x : CPT1DR_CPT1x_Field; -- Read-only. Timerx Capture 1 Direction status DIR : Boolean; -- unspecified Reserved_17_31 : HAL.UInt15; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPT1DR_Register use record CPT1x at 0 range 0 .. 15; DIR at 0 range 16 .. 16; Reserved_17_31 at 0 range 17 .. 31; end record; subtype CPT2DR_CPT2x_Field is HAL.UInt16; -- Timerx Capture 2 Register type CPT2DR_Register is record -- Read-only. Timerx Capture 2 value CPT2x : CPT2DR_CPT2x_Field; -- Read-only. Timerx Capture 1 Direction status DIR : Boolean; -- unspecified Reserved_17_31 : HAL.UInt15; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPT2DR_Register use record CPT2x at 0 range 0 .. 15; DIR at 0 range 16 .. 16; Reserved_17_31 at 0 range 17 .. 31; end record; subtype DTDR_DTRx_Field is HAL.UInt9; subtype DTDR_DTPRSC_Field is HAL.UInt3; subtype DTDR_DTFx_Field is HAL.UInt9; -- Timerx Deadtime Register type DTDR_Register is record -- Deadtime Rising value DTRx : DTDR_DTRx_Field := 16#0#; -- Sign Deadtime Rising value SDTRx : Boolean := False; -- Deadtime Prescaler DTPRSC : DTDR_DTPRSC_Field := 16#0#; -- unspecified Reserved_13_13 : HAL.Bit := 16#0#; -- Deadtime Rising Sign Lock DTRSLKx : Boolean := False; -- Deadtime Rising Lock DTRLKx : Boolean := False; -- Deadtime Falling value DTFx : DTDR_DTFx_Field := 16#0#; -- Sign Deadtime Falling value SDTFx : Boolean := False; -- unspecified Reserved_26_29 : HAL.UInt4 := 16#0#; -- Deadtime Falling Sign Lock DTFSLKx : Boolean := False; -- Deadtime Falling Lock DTFLKx : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DTDR_Register use record DTRx at 0 range 0 .. 8; SDTRx at 0 range 9 .. 9; DTPRSC at 0 range 10 .. 12; Reserved_13_13 at 0 range 13 .. 13; DTRSLKx at 0 range 14 .. 14; DTRLKx at 0 range 15 .. 15; DTFx at 0 range 16 .. 24; SDTFx at 0 range 25 .. 25; Reserved_26_29 at 0 range 26 .. 29; DTFSLKx at 0 range 30 .. 30; DTFLKx at 0 range 31 .. 31; end record; -- SETD1R_CMP array type SETD1R_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for SETD1R_CMP type SETD1R_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : SETD1R_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for SETD1R_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- SETD1R_MSTCMP array type SETD1R_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for SETD1R_MSTCMP type SETD1R_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : SETD1R_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for SETD1R_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- SETD1R_TIMEVNT array type SETD1R_TIMEVNT_Field_Array is array (1 .. 9) of Boolean with Component_Size => 1, Size => 9; -- Type definition for SETD1R_TIMEVNT type SETD1R_TIMEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMEVNT as a value Val : HAL.UInt9; when True => -- TIMEVNT as an array Arr : SETD1R_TIMEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 9; for SETD1R_TIMEVNT_Field use record Val at 0 range 0 .. 8; Arr at 0 range 0 .. 8; end record; -- SETD1R_EXTEVNT array type SETD1R_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for SETD1R_EXTEVNT type SETD1R_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : SETD1R_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for SETD1R_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- Timerx Output1 Set Register type SETD1R_Register is record -- Software Set trigger SST : Boolean := False; -- Timer A resynchronizaton RESYNC : Boolean := False; -- Timer A Period PER : Boolean := False; -- Timer A compare 1 CMP : SETD1R_CMP_Field := (As_Array => False, Val => 16#0#); -- Master Period MSTPER : Boolean := False; -- Master Compare 1 MSTCMP : SETD1R_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- Timer Event 1 TIMEVNT : SETD1R_TIMEVNT_Field := (As_Array => False, Val => 16#0#); -- External Event 1 EXTEVNT : SETD1R_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- Registers update (transfer preload to active) UPDATE : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SETD1R_Register use record SST at 0 range 0 .. 0; RESYNC at 0 range 1 .. 1; PER at 0 range 2 .. 2; CMP at 0 range 3 .. 6; MSTPER at 0 range 7 .. 7; MSTCMP at 0 range 8 .. 11; TIMEVNT at 0 range 12 .. 20; EXTEVNT at 0 range 21 .. 30; UPDATE at 0 range 31 .. 31; end record; -- RSTD1R_CMP array type RSTD1R_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTD1R_CMP type RSTD1R_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : RSTD1R_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTD1R_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTD1R_MSTCMP array type RSTD1R_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTD1R_MSTCMP type RSTD1R_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : RSTD1R_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTD1R_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTD1R_TIMEVNT array type RSTD1R_TIMEVNT_Field_Array is array (1 .. 9) of Boolean with Component_Size => 1, Size => 9; -- Type definition for RSTD1R_TIMEVNT type RSTD1R_TIMEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMEVNT as a value Val : HAL.UInt9; when True => -- TIMEVNT as an array Arr : RSTD1R_TIMEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 9; for RSTD1R_TIMEVNT_Field use record Val at 0 range 0 .. 8; Arr at 0 range 0 .. 8; end record; -- RSTD1R_EXTEVNT array type RSTD1R_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for RSTD1R_EXTEVNT type RSTD1R_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : RSTD1R_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for RSTD1R_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- Timerx Output1 Reset Register type RSTD1R_Register is record -- SRT SRT : Boolean := False; -- RESYNC RESYNC : Boolean := False; -- PER PER : Boolean := False; -- CMP1 CMP : RSTD1R_CMP_Field := (As_Array => False, Val => 16#0#); -- MSTPER MSTPER : Boolean := False; -- MSTCMP1 MSTCMP : RSTD1R_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- TIMEVNT1 TIMEVNT : RSTD1R_TIMEVNT_Field := (As_Array => False, Val => 16#0#); -- EXTEVNT1 EXTEVNT : RSTD1R_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- UPDATE UPDATE : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for RSTD1R_Register use record SRT at 0 range 0 .. 0; RESYNC at 0 range 1 .. 1; PER at 0 range 2 .. 2; CMP at 0 range 3 .. 6; MSTPER at 0 range 7 .. 7; MSTCMP at 0 range 8 .. 11; TIMEVNT at 0 range 12 .. 20; EXTEVNT at 0 range 21 .. 30; UPDATE at 0 range 31 .. 31; end record; -- SETD2R_CMP array type SETD2R_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for SETD2R_CMP type SETD2R_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : SETD2R_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for SETD2R_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- SETD2R_MSTCMP array type SETD2R_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for SETD2R_MSTCMP type SETD2R_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : SETD2R_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for SETD2R_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- SETD2R_TIMEVNT array type SETD2R_TIMEVNT_Field_Array is array (1 .. 9) of Boolean with Component_Size => 1, Size => 9; -- Type definition for SETD2R_TIMEVNT type SETD2R_TIMEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMEVNT as a value Val : HAL.UInt9; when True => -- TIMEVNT as an array Arr : SETD2R_TIMEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 9; for SETD2R_TIMEVNT_Field use record Val at 0 range 0 .. 8; Arr at 0 range 0 .. 8; end record; -- SETD2R_EXTEVNT array type SETD2R_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for SETD2R_EXTEVNT type SETD2R_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : SETD2R_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for SETD2R_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- Timerx Output2 Set Register type SETD2R_Register is record -- SST SST : Boolean := False; -- RESYNC RESYNC : Boolean := False; -- PER PER : Boolean := False; -- CMP1 CMP : SETD2R_CMP_Field := (As_Array => False, Val => 16#0#); -- MSTPER MSTPER : Boolean := False; -- MSTCMP1 MSTCMP : SETD2R_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- TIMEVNT1 TIMEVNT : SETD2R_TIMEVNT_Field := (As_Array => False, Val => 16#0#); -- EXTEVNT1 EXTEVNT : SETD2R_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- UPDATE UPDATE : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SETD2R_Register use record SST at 0 range 0 .. 0; RESYNC at 0 range 1 .. 1; PER at 0 range 2 .. 2; CMP at 0 range 3 .. 6; MSTPER at 0 range 7 .. 7; MSTCMP at 0 range 8 .. 11; TIMEVNT at 0 range 12 .. 20; EXTEVNT at 0 range 21 .. 30; UPDATE at 0 range 31 .. 31; end record; -- RSTD2R_CMP array type RSTD2R_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTD2R_CMP type RSTD2R_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : RSTD2R_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTD2R_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTD2R_MSTCMP array type RSTD2R_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTD2R_MSTCMP type RSTD2R_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : RSTD2R_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTD2R_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTD2R_TIMEVNT array type RSTD2R_TIMEVNT_Field_Array is array (1 .. 9) of Boolean with Component_Size => 1, Size => 9; -- Type definition for RSTD2R_TIMEVNT type RSTD2R_TIMEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMEVNT as a value Val : HAL.UInt9; when True => -- TIMEVNT as an array Arr : RSTD2R_TIMEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 9; for RSTD2R_TIMEVNT_Field use record Val at 0 range 0 .. 8; Arr at 0 range 0 .. 8; end record; -- RSTD2R_EXTEVNT array type RSTD2R_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for RSTD2R_EXTEVNT type RSTD2R_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : RSTD2R_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for RSTD2R_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- Timerx Output2 Reset Register type RSTD2R_Register is record -- SRT SRT : Boolean := False; -- RESYNC RESYNC : Boolean := False; -- PER PER : Boolean := False; -- CMP1 CMP : RSTD2R_CMP_Field := (As_Array => False, Val => 16#0#); -- MSTPER MSTPER : Boolean := False; -- MSTCMP1 MSTCMP : RSTD2R_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- TIMEVNT1 TIMEVNT : RSTD2R_TIMEVNT_Field := (As_Array => False, Val => 16#0#); -- EXTEVNT1 EXTEVNT : RSTD2R_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- UPDATE UPDATE : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for RSTD2R_Register use record SRT at 0 range 0 .. 0; RESYNC at 0 range 1 .. 1; PER at 0 range 2 .. 2; CMP at 0 range 3 .. 6; MSTPER at 0 range 7 .. 7; MSTCMP at 0 range 8 .. 11; TIMEVNT at 0 range 12 .. 20; EXTEVNT at 0 range 21 .. 30; UPDATE at 0 range 31 .. 31; end record; subtype EEFDR1_EE1FLTR_Field is HAL.UInt4; subtype EEFDR1_EE2FLTR_Field is HAL.UInt4; subtype EEFDR1_EE3FLTR_Field is HAL.UInt4; subtype EEFDR1_EE4FLTR_Field is HAL.UInt4; subtype EEFDR1_EE5FLTR_Field is HAL.UInt4; -- Timerx External Event Filtering Register 1 type EEFDR1_Register is record -- External Event 1 latch EE1LTCH : Boolean := False; -- External Event 1 filter EE1FLTR : EEFDR1_EE1FLTR_Field := 16#0#; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- External Event 2 latch EE2LTCH : Boolean := False; -- External Event 2 filter EE2FLTR : EEFDR1_EE2FLTR_Field := 16#0#; -- unspecified Reserved_11_11 : HAL.Bit := 16#0#; -- External Event 3 latch EE3LTCH : Boolean := False; -- External Event 3 filter EE3FLTR : EEFDR1_EE3FLTR_Field := 16#0#; -- unspecified Reserved_17_17 : HAL.Bit := 16#0#; -- External Event 4 latch EE4LTCH : Boolean := False; -- External Event 4 filter EE4FLTR : EEFDR1_EE4FLTR_Field := 16#0#; -- unspecified Reserved_23_23 : HAL.Bit := 16#0#; -- External Event 5 latch EE5LTCH : Boolean := False; -- External Event 5 filter EE5FLTR : EEFDR1_EE5FLTR_Field := 16#0#; -- unspecified Reserved_29_31 : HAL.UInt3 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for EEFDR1_Register use record EE1LTCH at 0 range 0 .. 0; EE1FLTR at 0 range 1 .. 4; Reserved_5_5 at 0 range 5 .. 5; EE2LTCH at 0 range 6 .. 6; EE2FLTR at 0 range 7 .. 10; Reserved_11_11 at 0 range 11 .. 11; EE3LTCH at 0 range 12 .. 12; EE3FLTR at 0 range 13 .. 16; Reserved_17_17 at 0 range 17 .. 17; EE4LTCH at 0 range 18 .. 18; EE4FLTR at 0 range 19 .. 22; Reserved_23_23 at 0 range 23 .. 23; EE5LTCH at 0 range 24 .. 24; EE5FLTR at 0 range 25 .. 28; Reserved_29_31 at 0 range 29 .. 31; end record; subtype EEFDR2_EE6FLTR_Field is HAL.UInt4; subtype EEFDR2_EE7FLTR_Field is HAL.UInt4; subtype EEFDR2_EE8FLTR_Field is HAL.UInt4; subtype EEFDR2_EE9FLTR_Field is HAL.UInt4; subtype EEFDR2_EE10FLTR_Field is HAL.UInt4; -- Timerx External Event Filtering Register 2 type EEFDR2_Register is record -- External Event 6 latch EE6LTCH : Boolean := False; -- External Event 6 filter EE6FLTR : EEFDR2_EE6FLTR_Field := 16#0#; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- External Event 7 latch EE7LTCH : Boolean := False; -- External Event 7 filter EE7FLTR : EEFDR2_EE7FLTR_Field := 16#0#; -- unspecified Reserved_11_11 : HAL.Bit := 16#0#; -- External Event 8 latch EE8LTCH : Boolean := False; -- External Event 8 filter EE8FLTR : EEFDR2_EE8FLTR_Field := 16#0#; -- unspecified Reserved_17_17 : HAL.Bit := 16#0#; -- External Event 9 latch EE9LTCH : Boolean := False; -- External Event 9 filter EE9FLTR : EEFDR2_EE9FLTR_Field := 16#0#; -- unspecified Reserved_23_23 : HAL.Bit := 16#0#; -- External Event 10 latch EE10LTCH : Boolean := False; -- External Event 10 filter EE10FLTR : EEFDR2_EE10FLTR_Field := 16#0#; -- unspecified Reserved_29_31 : HAL.UInt3 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for EEFDR2_Register use record EE6LTCH at 0 range 0 .. 0; EE6FLTR at 0 range 1 .. 4; Reserved_5_5 at 0 range 5 .. 5; EE7LTCH at 0 range 6 .. 6; EE7FLTR at 0 range 7 .. 10; Reserved_11_11 at 0 range 11 .. 11; EE8LTCH at 0 range 12 .. 12; EE8FLTR at 0 range 13 .. 16; Reserved_17_17 at 0 range 17 .. 17; EE9LTCH at 0 range 18 .. 18; EE9FLTR at 0 range 19 .. 22; Reserved_23_23 at 0 range 23 .. 23; EE10LTCH at 0 range 24 .. 24; EE10FLTR at 0 range 25 .. 28; Reserved_29_31 at 0 range 29 .. 31; end record; -- RSTDR_CMP array type RSTDR_CMP_Field_Array is array (2 .. 3) of Boolean with Component_Size => 1, Size => 2; -- Type definition for RSTDR_CMP type RSTDR_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt2; when True => -- CMP as an array Arr : RSTDR_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for RSTDR_CMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- RSTDR_MSTCMP array type RSTDR_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTDR_MSTCMP type RSTDR_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : RSTDR_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTDR_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTDR_EXTEVNT array type RSTDR_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for RSTDR_EXTEVNT type RSTDR_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : RSTDR_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for RSTDR_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- RSTDR_TIMACMP array type RSTDR_TIMACMP_Field_Array is array (1 .. 3) of Boolean with Component_Size => 1, Size => 3; -- Type definition for RSTDR_TIMACMP type RSTDR_TIMACMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMACMP as a value Val : HAL.UInt3; when True => -- TIMACMP as an array Arr : RSTDR_TIMACMP_Field_Array; end case; end record with Unchecked_Union, Size => 3; for RSTDR_TIMACMP_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- RSTDR_TIMBCMP array type RSTDR_TIMBCMP_Field_Array is array (1 .. 3) of Boolean with Component_Size => 1, Size => 3; -- Type definition for RSTDR_TIMBCMP type RSTDR_TIMBCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMBCMP as a value Val : HAL.UInt3; when True => -- TIMBCMP as an array Arr : RSTDR_TIMBCMP_Field_Array; end case; end record with Unchecked_Union, Size => 3; for RSTDR_TIMBCMP_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- RSTDR_TIMCCMP array type RSTDR_TIMCCMP_Field_Array is array (1 .. 3) of Boolean with Component_Size => 1, Size => 3; -- Type definition for RSTDR_TIMCCMP type RSTDR_TIMCCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMCCMP as a value Val : HAL.UInt3; when True => -- TIMCCMP as an array Arr : RSTDR_TIMCCMP_Field_Array; end case; end record with Unchecked_Union, Size => 3; for RSTDR_TIMCCMP_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- RSTDR_TIMECMP array type RSTDR_TIMECMP_Field_Array is array (1 .. 3) of Boolean with Component_Size => 1, Size => 3; -- Type definition for RSTDR_TIMECMP type RSTDR_TIMECMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMECMP as a value Val : HAL.UInt3; when True => -- TIMECMP as an array Arr : RSTDR_TIMECMP_Field_Array; end case; end record with Unchecked_Union, Size => 3; for RSTDR_TIMECMP_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- TimerA Reset Register type RSTDR_Register is record -- Timer A Update reset TIMFCMP1 : Boolean := False; -- Timer A Update reset UPDT : Boolean := False; -- Timer A compare 2 reset CMP : RSTDR_CMP_Field := (As_Array => False, Val => 16#0#); -- Master timer Period MSTPER : Boolean := False; -- Master compare 1 MSTCMP : RSTDR_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- External Event 1 EXTEVNT : RSTDR_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- Timer A Compare 1 TIMACMP : RSTDR_TIMACMP_Field := (As_Array => False, Val => 16#0#); -- Timer B Compare 1 TIMBCMP : RSTDR_TIMBCMP_Field := (As_Array => False, Val => 16#0#); -- Timer C Compare 1 TIMCCMP : RSTDR_TIMCCMP_Field := (As_Array => False, Val => 16#0#); -- Timer E Compare 1 TIMECMP : RSTDR_TIMECMP_Field := (As_Array => False, Val => 16#0#); -- Timer F Compare 2 TIMFCPM2 : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for RSTDR_Register use record TIMFCMP1 at 0 range 0 .. 0; UPDT at 0 range 1 .. 1; CMP at 0 range 2 .. 3; MSTPER at 0 range 4 .. 4; MSTCMP at 0 range 5 .. 8; EXTEVNT at 0 range 9 .. 18; TIMACMP at 0 range 19 .. 21; TIMBCMP at 0 range 22 .. 24; TIMCCMP at 0 range 25 .. 27; TIMECMP at 0 range 28 .. 30; TIMFCPM2 at 0 range 31 .. 31; end record; subtype CHPDR_CHPFRQ_Field is HAL.UInt4; subtype CHPDR_CHPDTY_Field is HAL.UInt3; subtype CHPDR_STRTPW_Field is HAL.UInt4; -- Timerx Chopper Register type CHPDR_Register is record -- Timerx carrier frequency value CHPFRQ : CHPDR_CHPFRQ_Field := 16#0#; -- Timerx chopper duty cycle value CHPDTY : CHPDR_CHPDTY_Field := 16#0#; -- STRTPW STRTPW : CHPDR_STRTPW_Field := 16#0#; -- unspecified Reserved_11_31 : HAL.UInt21 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CHPDR_Register use record CHPFRQ at 0 range 0 .. 3; CHPDTY at 0 range 4 .. 6; STRTPW at 0 range 7 .. 10; Reserved_11_31 at 0 range 11 .. 31; end record; -- CPT1DCR_TACMP array type CPT1DCR_TACMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1DCR_TACMP type CPT1DCR_TACMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TACMP as a value Val : HAL.UInt2; when True => -- TACMP as an array Arr : CPT1DCR_TACMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1DCR_TACMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT1DCR_TBCMP array type CPT1DCR_TBCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1DCR_TBCMP type CPT1DCR_TBCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TBCMP as a value Val : HAL.UInt2; when True => -- TBCMP as an array Arr : CPT1DCR_TBCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1DCR_TBCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT1DCR_TCCMP array type CPT1DCR_TCCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1DCR_TCCMP type CPT1DCR_TCCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TCCMP as a value Val : HAL.UInt2; when True => -- TCCMP as an array Arr : CPT1DCR_TCCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1DCR_TCCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT1DCR_TFCMP array type CPT1DCR_TFCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1DCR_TFCMP type CPT1DCR_TFCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TFCMP as a value Val : HAL.UInt2; when True => -- TFCMP as an array Arr : CPT1DCR_TFCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1DCR_TFCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT1DCR_TECMP array type CPT1DCR_TECMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1DCR_TECMP type CPT1DCR_TECMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TECMP as a value Val : HAL.UInt2; when True => -- TECMP as an array Arr : CPT1DCR_TECMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1DCR_TECMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Timerx Capture 1 Control Register type CPT1DCR_Register is record -- Software Capture SWCPT : Boolean := False; -- Update Capture UDPCPT : Boolean := False; -- External Event 1 Capture EXEV1CPT : Boolean := False; -- External Event 2 Capture EXEV2CPT : Boolean := False; -- External Event 3 Capture EXEV3CPT : Boolean := False; -- External Event 4 Capture EXEV4CPT : Boolean := False; -- External Event 5 Capture EXEV5CPT : Boolean := False; -- External Event 6 Capture EXEV6CPT : Boolean := False; -- External Event 7 Capture EXEV7CPT : Boolean := False; -- External Event 8 Capture EXEV8CPT : Boolean := False; -- External Event 9 Capture EXEV9CPT : Boolean := False; -- External Event 10 Capture EXEV10CPT : Boolean := False; -- Timer A output 1 Set TA1SET : Boolean := False; -- Timer A output 1 Reset TA1RST : Boolean := False; -- Timer A Compare 1 TACMP : CPT1DCR_TACMP_Field := (As_Array => False, Val => 16#0#); -- Timer B output 1 Set TB1SET : Boolean := False; -- Timer B output 1 Reset TB1RST : Boolean := False; -- Timer B Compare 1 TBCMP : CPT1DCR_TBCMP_Field := (As_Array => False, Val => 16#0#); -- Timer C output 1 Set TC1SET : Boolean := False; -- Timer C output 1 Reset TC1RST : Boolean := False; -- Timer C Compare 1 TCCMP : CPT1DCR_TCCMP_Field := (As_Array => False, Val => 16#0#); -- TF1SET TF1SET : Boolean := False; -- TF1RST TF1RST : Boolean := False; -- TFCMP1 TFCMP : CPT1DCR_TFCMP_Field := (As_Array => False, Val => 16#0#); -- Timer E output 1 Set TE1SET : Boolean := False; -- Timer E output 1 Reset TE1RST : Boolean := False; -- Timer E Compare 1 TECMP : CPT1DCR_TECMP_Field := (As_Array => False, Val => 16#0#); end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPT1DCR_Register use record SWCPT at 0 range 0 .. 0; UDPCPT at 0 range 1 .. 1; EXEV1CPT at 0 range 2 .. 2; EXEV2CPT at 0 range 3 .. 3; EXEV3CPT at 0 range 4 .. 4; EXEV4CPT at 0 range 5 .. 5; EXEV5CPT at 0 range 6 .. 6; EXEV6CPT at 0 range 7 .. 7; EXEV7CPT at 0 range 8 .. 8; EXEV8CPT at 0 range 9 .. 9; EXEV9CPT at 0 range 10 .. 10; EXEV10CPT at 0 range 11 .. 11; TA1SET at 0 range 12 .. 12; TA1RST at 0 range 13 .. 13; TACMP at 0 range 14 .. 15; TB1SET at 0 range 16 .. 16; TB1RST at 0 range 17 .. 17; TBCMP at 0 range 18 .. 19; TC1SET at 0 range 20 .. 20; TC1RST at 0 range 21 .. 21; TCCMP at 0 range 22 .. 23; TF1SET at 0 range 24 .. 24; TF1RST at 0 range 25 .. 25; TFCMP at 0 range 26 .. 27; TE1SET at 0 range 28 .. 28; TE1RST at 0 range 29 .. 29; TECMP at 0 range 30 .. 31; end record; -- CPT2DCR_TACMP array type CPT2DCR_TACMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2DCR_TACMP type CPT2DCR_TACMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TACMP as a value Val : HAL.UInt2; when True => -- TACMP as an array Arr : CPT2DCR_TACMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2DCR_TACMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT2DCR_TBCMP array type CPT2DCR_TBCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2DCR_TBCMP type CPT2DCR_TBCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TBCMP as a value Val : HAL.UInt2; when True => -- TBCMP as an array Arr : CPT2DCR_TBCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2DCR_TBCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT2DCR_TCCMP array type CPT2DCR_TCCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2DCR_TCCMP type CPT2DCR_TCCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TCCMP as a value Val : HAL.UInt2; when True => -- TCCMP as an array Arr : CPT2DCR_TCCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2DCR_TCCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT2DCR_TFCMP array type CPT2DCR_TFCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2DCR_TFCMP type CPT2DCR_TFCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TFCMP as a value Val : HAL.UInt2; when True => -- TFCMP as an array Arr : CPT2DCR_TFCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2DCR_TFCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT2DCR_TECMP array type CPT2DCR_TECMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2DCR_TECMP type CPT2DCR_TECMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TECMP as a value Val : HAL.UInt2; when True => -- TECMP as an array Arr : CPT2DCR_TECMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2DCR_TECMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Timerx Capture 2 Control Register type CPT2DCR_Register is record -- Software Capture SWCPT : Boolean := False; -- Update Capture UDPCPT : Boolean := False; -- External Event 1 Capture EXEV1CPT : Boolean := False; -- External Event 2 Capture EXEV2CPT : Boolean := False; -- External Event 3 Capture EXEV3CPT : Boolean := False; -- External Event 4 Capture EXEV4CPT : Boolean := False; -- External Event 5 Capture EXEV5CPT : Boolean := False; -- External Event 6 Capture EXEV6CPT : Boolean := False; -- External Event 7 Capture EXEV7CPT : Boolean := False; -- External Event 8 Capture EXEV8CPT : Boolean := False; -- External Event 9 Capture EXEV9CPT : Boolean := False; -- External Event 10 Capture EXEV10CPT : Boolean := False; -- Timer A output 1 Set TA1SET : Boolean := False; -- Timer A output 1 Reset TA1RST : Boolean := False; -- Timer A Compare 1 TACMP : CPT2DCR_TACMP_Field := (As_Array => False, Val => 16#0#); -- Timer B output 1 Set TB1SET : Boolean := False; -- Timer B output 1 Reset TB1RST : Boolean := False; -- Timer B Compare 1 TBCMP : CPT2DCR_TBCMP_Field := (As_Array => False, Val => 16#0#); -- Timer C output 1 Set TC1SET : Boolean := False; -- Timer C output 1 Reset TC1RST : Boolean := False; -- Timer C Compare 1 TCCMP : CPT2DCR_TCCMP_Field := (As_Array => False, Val => 16#0#); -- TF1SET TF1SET : Boolean := False; -- TF1RST TF1RST : Boolean := False; -- TFCMP1 TFCMP : CPT2DCR_TFCMP_Field := (As_Array => False, Val => 16#0#); -- Timer E output 1 Set TE1SET : Boolean := False; -- Timer E output 1 Reset TE1RST : Boolean := False; -- Timer E Compare 1 TECMP : CPT2DCR_TECMP_Field := (As_Array => False, Val => 16#0#); end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPT2DCR_Register use record SWCPT at 0 range 0 .. 0; UDPCPT at 0 range 1 .. 1; EXEV1CPT at 0 range 2 .. 2; EXEV2CPT at 0 range 3 .. 3; EXEV3CPT at 0 range 4 .. 4; EXEV4CPT at 0 range 5 .. 5; EXEV5CPT at 0 range 6 .. 6; EXEV6CPT at 0 range 7 .. 7; EXEV7CPT at 0 range 8 .. 8; EXEV8CPT at 0 range 9 .. 9; EXEV9CPT at 0 range 10 .. 10; EXEV10CPT at 0 range 11 .. 11; TA1SET at 0 range 12 .. 12; TA1RST at 0 range 13 .. 13; TACMP at 0 range 14 .. 15; TB1SET at 0 range 16 .. 16; TB1RST at 0 range 17 .. 17; TBCMP at 0 range 18 .. 19; TC1SET at 0 range 20 .. 20; TC1RST at 0 range 21 .. 21; TCCMP at 0 range 22 .. 23; TF1SET at 0 range 24 .. 24; TF1RST at 0 range 25 .. 25; TFCMP at 0 range 26 .. 27; TE1SET at 0 range 28 .. 28; TE1RST at 0 range 29 .. 29; TECMP at 0 range 30 .. 31; end record; subtype OUTDR_FAULT1_Field is HAL.UInt2; subtype OUTDR_DLYPRT_Field is HAL.UInt3; subtype OUTDR_FAULT2_Field is HAL.UInt2; -- Timerx Output Register type OUTDR_Register is record -- unspecified Reserved_0_0 : HAL.Bit := 16#0#; -- Output 1 polarity POL1 : Boolean := False; -- Output 1 Idle mode IDLEM1 : Boolean := False; -- Output 1 Idle State IDLES1 : Boolean := False; -- Output 1 Fault state FAULT1 : OUTDR_FAULT1_Field := 16#0#; -- Output 1 Chopper enable CHP1 : Boolean := False; -- Output 1 Deadtime upon burst mode Idle entry DIDL1 : Boolean := False; -- Deadtime enable DTEN : Boolean := False; -- Delayed Protection Enable DLYPRTEN : Boolean := False; -- Delayed Protection DLYPRT : OUTDR_DLYPRT_Field := 16#0#; -- unspecified Reserved_13_13 : HAL.Bit := 16#0#; -- Balanced Idle Automatic Resume BIAR : Boolean := False; -- unspecified Reserved_15_16 : HAL.UInt2 := 16#0#; -- Output 2 polarity POL2 : Boolean := False; -- Output 2 Idle mode IDLEM2 : Boolean := False; -- Output 2 Idle State IDLES2 : Boolean := False; -- Output 2 Fault state FAULT2 : OUTDR_FAULT2_Field := 16#0#; -- Output 2 Chopper enable CHP2 : Boolean := False; -- Output 2 Deadtime upon burst mode Idle entry DIDL2 : Boolean := False; -- unspecified Reserved_24_31 : HAL.UInt8 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for OUTDR_Register use record Reserved_0_0 at 0 range 0 .. 0; POL1 at 0 range 1 .. 1; IDLEM1 at 0 range 2 .. 2; IDLES1 at 0 range 3 .. 3; FAULT1 at 0 range 4 .. 5; CHP1 at 0 range 6 .. 6; DIDL1 at 0 range 7 .. 7; DTEN at 0 range 8 .. 8; DLYPRTEN at 0 range 9 .. 9; DLYPRT at 0 range 10 .. 12; Reserved_13_13 at 0 range 13 .. 13; BIAR at 0 range 14 .. 14; Reserved_15_16 at 0 range 15 .. 16; POL2 at 0 range 17 .. 17; IDLEM2 at 0 range 18 .. 18; IDLES2 at 0 range 19 .. 19; FAULT2 at 0 range 20 .. 21; CHP2 at 0 range 22 .. 22; DIDL2 at 0 range 23 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; -- Timerx Fault Register type FLTDR_Register is record -- Fault 1 enable FLT1EN : Boolean := False; -- Fault 2 enable FLT2EN : Boolean := False; -- Fault 3 enable FLT3EN : Boolean := False; -- Fault 4 enable FLT4EN : Boolean := False; -- Fault 5 enable FLT5EN : Boolean := False; -- Fault 6 enable FLT6EN : Boolean := False; -- unspecified Reserved_6_30 : HAL.UInt25 := 16#0#; -- Fault sources Lock FLTLCK : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for FLTDR_Register use record FLT1EN at 0 range 0 .. 0; FLT2EN at 0 range 1 .. 1; FLT3EN at 0 range 2 .. 2; FLT4EN at 0 range 3 .. 3; FLT5EN at 0 range 4 .. 4; FLT6EN at 0 range 5 .. 5; Reserved_6_30 at 0 range 6 .. 30; FLTLCK at 0 range 31 .. 31; end record; subtype TIMDCR2_ROM_Field is HAL.UInt2; subtype TIMDCR2_OUTROM_Field is HAL.UInt2; subtype TIMDCR2_ADROM_Field is HAL.UInt2; subtype TIMDCR2_BMROM_Field is HAL.UInt2; subtype TIMDCR2_FEROM_Field is HAL.UInt2; -- TIMDCR2_GTCMP array type TIMDCR2_GTCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for TIMDCR2_GTCMP type TIMDCR2_GTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- GTCMP as a value Val : HAL.UInt2; when True => -- GTCMP as an array Arr : TIMDCR2_GTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for TIMDCR2_GTCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- HRTIM Timerx Control Register 2 type TIMDCR2_Register is record -- Dual Channel DAC trigger enable DCDE : Boolean := False; -- Dual Channel DAC Step trigger DCDS : Boolean := False; -- Dual Channel DAC Reset trigger DCDR : Boolean := False; -- unspecified Reserved_3_3 : HAL.Bit := 16#0#; -- Up-Down Mode UDM : Boolean := False; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- Roll-Over Mode ROM : TIMDCR2_ROM_Field := 16#0#; -- Output Roll-Over Mode OUTROM : TIMDCR2_OUTROM_Field := 16#0#; -- ADC Roll-Over Mode ADROM : TIMDCR2_ADROM_Field := 16#0#; -- Burst Mode Roll-Over Mode BMROM : TIMDCR2_BMROM_Field := 16#0#; -- Fault and Event Roll-Over Mode FEROM : TIMDCR2_FEROM_Field := 16#0#; -- Greater than Compare 1 PWM mode GTCMP : TIMDCR2_GTCMP_Field := (As_Array => False, Val => 16#0#); -- unspecified Reserved_18_19 : HAL.UInt2 := 16#0#; -- Triggered-half mode TRGHLF : Boolean := False; -- unspecified Reserved_21_31 : HAL.UInt11 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMDCR2_Register use record DCDE at 0 range 0 .. 0; DCDS at 0 range 1 .. 1; DCDR at 0 range 2 .. 2; Reserved_3_3 at 0 range 3 .. 3; UDM at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; ROM at 0 range 6 .. 7; OUTROM at 0 range 8 .. 9; ADROM at 0 range 10 .. 11; BMROM at 0 range 12 .. 13; FEROM at 0 range 14 .. 15; GTCMP at 0 range 16 .. 17; Reserved_18_19 at 0 range 18 .. 19; TRGHLF at 0 range 20 .. 20; Reserved_21_31 at 0 range 21 .. 31; end record; subtype EEFDR3_EEVASEL_Field is HAL.UInt4; subtype EEFDR3_EEVACNT_Field is HAL.UInt6; -- HRTIM Timerx External Event Filtering Register 3 type EEFDR3_Register is record -- External Event A Counter Enable EEVACE : Boolean := False; -- External Event A Counter Reset EEVACRES : Boolean := False; -- External Event A Reset Mode EEVARSTM : Boolean := False; -- unspecified Reserved_3_3 : HAL.Bit := 16#0#; -- External Event A Selection EEVASEL : EEFDR3_EEVASEL_Field := 16#0#; -- External Event A counter EEVACNT : EEFDR3_EEVACNT_Field := 16#0#; -- unspecified Reserved_14_31 : HAL.UInt18 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for EEFDR3_Register use record EEVACE at 0 range 0 .. 0; EEVACRES at 0 range 1 .. 1; EEVARSTM at 0 range 2 .. 2; Reserved_3_3 at 0 range 3 .. 3; EEVASEL at 0 range 4 .. 7; EEVACNT at 0 range 8 .. 13; Reserved_14_31 at 0 range 14 .. 31; end record; subtype TIMECR_CKPSCx_Field is HAL.UInt3; subtype TIMECR_INTLVD_Field is HAL.UInt2; -- TIMECR_DELCMP array element subtype TIMECR_DELCMP_Element is HAL.UInt2; -- TIMECR_DELCMP array type TIMECR_DELCMP_Field_Array is array (2 .. 3) of TIMECR_DELCMP_Element with Component_Size => 2, Size => 4; -- Type definition for TIMECR_DELCMP type TIMECR_DELCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- DELCMP as a value Val : HAL.UInt4; when True => -- DELCMP as an array Arr : TIMECR_DELCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for TIMECR_DELCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; subtype TIMECR_DACSYNC_Field is HAL.UInt2; subtype TIMECR_UPDGAT_Field is HAL.UInt4; -- Timerx Control Register type TIMECR_Register is record -- HRTIM Timer x Clock prescaler CKPSCx : TIMECR_CKPSCx_Field := 16#0#; -- Continuous mode CONT : Boolean := False; -- Re-triggerable mode RETRIG : Boolean := False; -- Half mode enable HALF : Boolean := False; -- Push-Pull mode enable PSHPLL : Boolean := False; -- Interleaved mode INTLVD : TIMECR_INTLVD_Field := 16#0#; -- Re-Synchronized Update RSYNCU : Boolean := False; -- Synchronization Resets Timer x SYNCRSTx : Boolean := False; -- Synchronization Starts Timer x SYNCSTRTx : Boolean := False; -- Delayed CMP2 mode DELCMP : TIMECR_DELCMP_Field := (As_Array => False, Val => 16#0#); -- TFU TFU : Boolean := False; -- Timer x Repetition update TxREPU : Boolean := False; -- Timerx reset update TxRSTU : Boolean := False; -- TAU TAU : Boolean := False; -- TBU TBU : Boolean := False; -- TCU TCU : Boolean := False; -- TDU TDU : Boolean := False; -- unspecified Reserved_23_23 : HAL.Bit := 16#0#; -- Master Timer update MSTU : Boolean := False; -- AC Synchronization DACSYNC : TIMECR_DACSYNC_Field := 16#0#; -- Preload enable PREEN : Boolean := False; -- Update Gating UPDGAT : TIMECR_UPDGAT_Field := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMECR_Register use record CKPSCx at 0 range 0 .. 2; CONT at 0 range 3 .. 3; RETRIG at 0 range 4 .. 4; HALF at 0 range 5 .. 5; PSHPLL at 0 range 6 .. 6; INTLVD at 0 range 7 .. 8; RSYNCU at 0 range 9 .. 9; SYNCRSTx at 0 range 10 .. 10; SYNCSTRTx at 0 range 11 .. 11; DELCMP at 0 range 12 .. 15; TFU at 0 range 16 .. 16; TxREPU at 0 range 17 .. 17; TxRSTU at 0 range 18 .. 18; TAU at 0 range 19 .. 19; TBU at 0 range 20 .. 20; TCU at 0 range 21 .. 21; TDU at 0 range 22 .. 22; Reserved_23_23 at 0 range 23 .. 23; MSTU at 0 range 24 .. 24; DACSYNC at 0 range 25 .. 26; PREEN at 0 range 27 .. 27; UPDGAT at 0 range 28 .. 31; end record; -- TIMEISR_CMP array type TIMEISR_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for TIMEISR_CMP type TIMEISR_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : TIMEISR_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for TIMEISR_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- TIMEISR_CPT array type TIMEISR_CPT_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for TIMEISR_CPT type TIMEISR_CPT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CPT as a value Val : HAL.UInt2; when True => -- CPT as an array Arr : TIMEISR_CPT_Field_Array; end case; end record with Unchecked_Union, Size => 2; for TIMEISR_CPT_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Timerx Interrupt Status Register type TIMEISR_Register is record -- Read-only. Compare 1 Interrupt Flag CMP : TIMEISR_CMP_Field; -- Read-only. Repetition Interrupt Flag REP : Boolean; -- unspecified Reserved_5_5 : HAL.Bit; -- Read-only. Update Interrupt Flag UPD : Boolean; -- Read-only. Capture1 Interrupt Flag CPT : TIMEISR_CPT_Field; -- Read-only. Output 1 Set Interrupt Flag SETx1 : Boolean; -- Read-only. Output 1 Reset Interrupt Flag RSTx1 : Boolean; -- Read-only. Output 2 Set Interrupt Flag SETx2 : Boolean; -- Read-only. Output 2 Reset Interrupt Flag RSTx2 : Boolean; -- Read-only. Reset Interrupt Flag RST : Boolean; -- Read-only. Delayed Protection Flag DLYPRT : Boolean; -- unspecified Reserved_15_15 : HAL.Bit; -- Read-only. Current Push Pull Status CPPSTAT : Boolean; -- Read-only. Idle Push Pull Status IPPSTAT : Boolean; -- Read-only. Output 1 State O1STAT : Boolean; -- Read-only. Output 2 State O2STAT : Boolean; -- Read-only. Output 1 Copy O1CPY : Boolean; -- Read-only. Output 2 Copy O2CPY : Boolean; -- unspecified Reserved_22_31 : HAL.UInt10; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMEISR_Register use record CMP at 0 range 0 .. 3; REP at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; UPD at 0 range 6 .. 6; CPT at 0 range 7 .. 8; SETx1 at 0 range 9 .. 9; RSTx1 at 0 range 10 .. 10; SETx2 at 0 range 11 .. 11; RSTx2 at 0 range 12 .. 12; RST at 0 range 13 .. 13; DLYPRT at 0 range 14 .. 14; Reserved_15_15 at 0 range 15 .. 15; CPPSTAT at 0 range 16 .. 16; IPPSTAT at 0 range 17 .. 17; O1STAT at 0 range 18 .. 18; O2STAT at 0 range 19 .. 19; O1CPY at 0 range 20 .. 20; O2CPY at 0 range 21 .. 21; Reserved_22_31 at 0 range 22 .. 31; end record; -- Timerx Interrupt Clear Register type TIMEICR_Register is record -- Write-only. Compare 1 Interrupt flag Clear CMP1C : Boolean := False; -- Write-only. Compare 2 Interrupt flag Clear CMP2C : Boolean := False; -- Write-only. Compare 3 Interrupt flag Clear CMP3C : Boolean := False; -- Write-only. Compare 4 Interrupt flag Clear CMP4C : Boolean := False; -- Write-only. Repetition Interrupt flag Clear REPC : Boolean := False; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- Write-only. Update Interrupt flag Clear UPDC : Boolean := False; -- Write-only. Capture1 Interrupt flag Clear CPT1C : Boolean := False; -- Write-only. Capture2 Interrupt flag Clear CPT2C : Boolean := False; -- Write-only. Output 1 Set flag Clear SET1xC : Boolean := False; -- Write-only. Output 1 Reset flag Clear RSTx1C : Boolean := False; -- Write-only. Output 2 Set flag Clear SET2xC : Boolean := False; -- Write-only. Output 2 Reset flag Clear RSTx2C : Boolean := False; -- Write-only. Reset Interrupt flag Clear RSTC : Boolean := False; -- Write-only. Delayed Protection Flag Clear DLYPRTC : Boolean := False; -- unspecified Reserved_15_31 : HAL.UInt17 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMEICR_Register use record CMP1C at 0 range 0 .. 0; CMP2C at 0 range 1 .. 1; CMP3C at 0 range 2 .. 2; CMP4C at 0 range 3 .. 3; REPC at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; UPDC at 0 range 6 .. 6; CPT1C at 0 range 7 .. 7; CPT2C at 0 range 8 .. 8; SET1xC at 0 range 9 .. 9; RSTx1C at 0 range 10 .. 10; SET2xC at 0 range 11 .. 11; RSTx2C at 0 range 12 .. 12; RSTC at 0 range 13 .. 13; DLYPRTC at 0 range 14 .. 14; Reserved_15_31 at 0 range 15 .. 31; end record; -- TIMxDIER type TIMEDIER_Register is record -- CMP1IE CMP1IE : Boolean := False; -- CMP2IE CMP2IE : Boolean := False; -- CMP3IE CMP3IE : Boolean := False; -- CMP4IE CMP4IE : Boolean := False; -- REPIE REPIE : Boolean := False; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- UPDIE UPDIE : Boolean := False; -- CPT1IE CPT1IE : Boolean := False; -- CPT2IE CPT2IE : Boolean := False; -- SET1xIE SET1xIE : Boolean := False; -- RSTx1IE RSTx1IE : Boolean := False; -- SETx2IE SETx2IE : Boolean := False; -- RSTx2IE RSTx2IE : Boolean := False; -- RSTIE RSTIE : Boolean := False; -- DLYPRTIE DLYPRTIE : Boolean := False; -- unspecified Reserved_15_15 : HAL.Bit := 16#0#; -- CMP1DE CMP1DE : Boolean := False; -- CMP2DE CMP2DE : Boolean := False; -- CMP3DE CMP3DE : Boolean := False; -- CMP4DE CMP4DE : Boolean := False; -- REPDE REPDE : Boolean := False; -- unspecified Reserved_21_21 : HAL.Bit := 16#0#; -- UPDDE UPDDE : Boolean := False; -- CPT1DE CPT1DE : Boolean := False; -- CPT2DE CPT2DE : Boolean := False; -- SET1xDE SET1xDE : Boolean := False; -- RSTx1DE RSTx1DE : Boolean := False; -- SETx2DE SETx2DE : Boolean := False; -- RSTx2DE RSTx2DE : Boolean := False; -- RSTDE RSTDE : Boolean := False; -- DLYPRTDE DLYPRTDE : Boolean := False; -- unspecified Reserved_31_31 : HAL.Bit := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMEDIER_Register use record CMP1IE at 0 range 0 .. 0; CMP2IE at 0 range 1 .. 1; CMP3IE at 0 range 2 .. 2; CMP4IE at 0 range 3 .. 3; REPIE at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; UPDIE at 0 range 6 .. 6; CPT1IE at 0 range 7 .. 7; CPT2IE at 0 range 8 .. 8; SET1xIE at 0 range 9 .. 9; RSTx1IE at 0 range 10 .. 10; SETx2IE at 0 range 11 .. 11; RSTx2IE at 0 range 12 .. 12; RSTIE at 0 range 13 .. 13; DLYPRTIE at 0 range 14 .. 14; Reserved_15_15 at 0 range 15 .. 15; CMP1DE at 0 range 16 .. 16; CMP2DE at 0 range 17 .. 17; CMP3DE at 0 range 18 .. 18; CMP4DE at 0 range 19 .. 19; REPDE at 0 range 20 .. 20; Reserved_21_21 at 0 range 21 .. 21; UPDDE at 0 range 22 .. 22; CPT1DE at 0 range 23 .. 23; CPT2DE at 0 range 24 .. 24; SET1xDE at 0 range 25 .. 25; RSTx1DE at 0 range 26 .. 26; SETx2DE at 0 range 27 .. 27; RSTx2DE at 0 range 28 .. 28; RSTDE at 0 range 29 .. 29; DLYPRTDE at 0 range 30 .. 30; Reserved_31_31 at 0 range 31 .. 31; end record; subtype CNTER_CNTx_Field is HAL.UInt16; -- Timerx Counter Register type CNTER_Register is record -- Timerx Counter value CNTx : CNTER_CNTx_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CNTER_Register use record CNTx at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype PERER_PERx_Field is HAL.UInt16; -- Timerx Period Register type PERER_Register is record -- Timerx Period value PERx : PERER_PERx_Field := 16#FFFF#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for PERER_Register use record PERx at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype REPER_REPx_Field is HAL.UInt8; -- Timerx Repetition Register type REPER_Register is record -- Timerx Repetition counter value REPx : REPER_REPx_Field := 16#0#; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for REPER_Register use record REPx at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype CMP1ER_CMP1x_Field is HAL.UInt16; -- Timerx Compare 1 Register type CMP1ER_Register is record -- Timerx Compare 1 value CMP1x : CMP1ER_CMP1x_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP1ER_Register use record CMP1x at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CMP1CER_CMP1x_Field is HAL.UInt16; subtype CMP1CER_REPx_Field is HAL.UInt8; -- Timerx Compare 1 Compound Register type CMP1CER_Register is record -- Timerx Compare 1 value CMP1x : CMP1CER_CMP1x_Field := 16#0#; -- Timerx Repetition value (aliased from HRTIM_REPx register) REPx : CMP1CER_REPx_Field := 16#0#; -- unspecified Reserved_24_31 : HAL.UInt8 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP1CER_Register use record CMP1x at 0 range 0 .. 15; REPx at 0 range 16 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; subtype CMP2ER_CMP2x_Field is HAL.UInt16; -- Timerx Compare 2 Register type CMP2ER_Register is record -- Timerx Compare 2 value CMP2x : CMP2ER_CMP2x_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP2ER_Register use record CMP2x at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CMP3ER_CMP3x_Field is HAL.UInt16; -- Timerx Compare 3 Register type CMP3ER_Register is record -- Timerx Compare 3 value CMP3x : CMP3ER_CMP3x_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP3ER_Register use record CMP3x at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CMP4ER_CMP4x_Field is HAL.UInt16; -- Timerx Compare 4 Register type CMP4ER_Register is record -- Timerx Compare 4 value CMP4x : CMP4ER_CMP4x_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP4ER_Register use record CMP4x at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CPT1ER_CPT1x_Field is HAL.UInt16; -- Timerx Capture 1 Register type CPT1ER_Register is record -- Read-only. Timerx Capture 1 value CPT1x : CPT1ER_CPT1x_Field; -- Read-only. Timerx Capture 1 Direction status DIR : Boolean; -- unspecified Reserved_17_31 : HAL.UInt15; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPT1ER_Register use record CPT1x at 0 range 0 .. 15; DIR at 0 range 16 .. 16; Reserved_17_31 at 0 range 17 .. 31; end record; subtype CPT2ER_CPT2x_Field is HAL.UInt16; -- Timerx Capture 2 Register type CPT2ER_Register is record -- Read-only. Timerx Capture 2 value CPT2x : CPT2ER_CPT2x_Field; -- Read-only. Timerx Capture 1 Direction status DIR : Boolean; -- unspecified Reserved_17_31 : HAL.UInt15; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPT2ER_Register use record CPT2x at 0 range 0 .. 15; DIR at 0 range 16 .. 16; Reserved_17_31 at 0 range 17 .. 31; end record; subtype DTER_DTRx_Field is HAL.UInt9; subtype DTER_DTPRSC_Field is HAL.UInt3; subtype DTER_DTFx_Field is HAL.UInt9; -- Timerx Deadtime Register type DTER_Register is record -- Deadtime Rising value DTRx : DTER_DTRx_Field := 16#0#; -- Sign Deadtime Rising value SDTRx : Boolean := False; -- Deadtime Prescaler DTPRSC : DTER_DTPRSC_Field := 16#0#; -- unspecified Reserved_13_13 : HAL.Bit := 16#0#; -- Deadtime Rising Sign Lock DTRSLKx : Boolean := False; -- Deadtime Rising Lock DTRLKx : Boolean := False; -- Deadtime Falling value DTFx : DTER_DTFx_Field := 16#0#; -- Sign Deadtime Falling value SDTFx : Boolean := False; -- unspecified Reserved_26_29 : HAL.UInt4 := 16#0#; -- Deadtime Falling Sign Lock DTFSLKx : Boolean := False; -- Deadtime Falling Lock DTFLKx : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DTER_Register use record DTRx at 0 range 0 .. 8; SDTRx at 0 range 9 .. 9; DTPRSC at 0 range 10 .. 12; Reserved_13_13 at 0 range 13 .. 13; DTRSLKx at 0 range 14 .. 14; DTRLKx at 0 range 15 .. 15; DTFx at 0 range 16 .. 24; SDTFx at 0 range 25 .. 25; Reserved_26_29 at 0 range 26 .. 29; DTFSLKx at 0 range 30 .. 30; DTFLKx at 0 range 31 .. 31; end record; -- SETE1R_CMP array type SETE1R_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for SETE1R_CMP type SETE1R_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : SETE1R_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for SETE1R_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- SETE1R_MSTCMP array type SETE1R_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for SETE1R_MSTCMP type SETE1R_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : SETE1R_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for SETE1R_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- SETE1R_TIMEVNT array type SETE1R_TIMEVNT_Field_Array is array (1 .. 9) of Boolean with Component_Size => 1, Size => 9; -- Type definition for SETE1R_TIMEVNT type SETE1R_TIMEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMEVNT as a value Val : HAL.UInt9; when True => -- TIMEVNT as an array Arr : SETE1R_TIMEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 9; for SETE1R_TIMEVNT_Field use record Val at 0 range 0 .. 8; Arr at 0 range 0 .. 8; end record; -- SETE1R_EXTEVNT array type SETE1R_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for SETE1R_EXTEVNT type SETE1R_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : SETE1R_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for SETE1R_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- Timerx Output1 Set Register type SETE1R_Register is record -- Software Set trigger SST : Boolean := False; -- Timer A resynchronizaton RESYNC : Boolean := False; -- Timer A Period PER : Boolean := False; -- Timer A compare 1 CMP : SETE1R_CMP_Field := (As_Array => False, Val => 16#0#); -- Master Period MSTPER : Boolean := False; -- Master Compare 1 MSTCMP : SETE1R_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- Timer Event 1 TIMEVNT : SETE1R_TIMEVNT_Field := (As_Array => False, Val => 16#0#); -- External Event 1 EXTEVNT : SETE1R_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- Registers update (transfer preload to active) UPDATE : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SETE1R_Register use record SST at 0 range 0 .. 0; RESYNC at 0 range 1 .. 1; PER at 0 range 2 .. 2; CMP at 0 range 3 .. 6; MSTPER at 0 range 7 .. 7; MSTCMP at 0 range 8 .. 11; TIMEVNT at 0 range 12 .. 20; EXTEVNT at 0 range 21 .. 30; UPDATE at 0 range 31 .. 31; end record; -- RSTE1R_CMP array type RSTE1R_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTE1R_CMP type RSTE1R_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : RSTE1R_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTE1R_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTE1R_MSTCMP array type RSTE1R_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTE1R_MSTCMP type RSTE1R_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : RSTE1R_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTE1R_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTE1R_TIMEVNT array type RSTE1R_TIMEVNT_Field_Array is array (1 .. 9) of Boolean with Component_Size => 1, Size => 9; -- Type definition for RSTE1R_TIMEVNT type RSTE1R_TIMEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMEVNT as a value Val : HAL.UInt9; when True => -- TIMEVNT as an array Arr : RSTE1R_TIMEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 9; for RSTE1R_TIMEVNT_Field use record Val at 0 range 0 .. 8; Arr at 0 range 0 .. 8; end record; -- RSTE1R_EXTEVNT array type RSTE1R_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for RSTE1R_EXTEVNT type RSTE1R_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : RSTE1R_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for RSTE1R_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- Timerx Output1 Reset Register type RSTE1R_Register is record -- SRT SRT : Boolean := False; -- RESYNC RESYNC : Boolean := False; -- PER PER : Boolean := False; -- CMP1 CMP : RSTE1R_CMP_Field := (As_Array => False, Val => 16#0#); -- MSTPER MSTPER : Boolean := False; -- MSTCMP1 MSTCMP : RSTE1R_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- TIMEVNT1 TIMEVNT : RSTE1R_TIMEVNT_Field := (As_Array => False, Val => 16#0#); -- EXTEVNT1 EXTEVNT : RSTE1R_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- UPDATE UPDATE : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for RSTE1R_Register use record SRT at 0 range 0 .. 0; RESYNC at 0 range 1 .. 1; PER at 0 range 2 .. 2; CMP at 0 range 3 .. 6; MSTPER at 0 range 7 .. 7; MSTCMP at 0 range 8 .. 11; TIMEVNT at 0 range 12 .. 20; EXTEVNT at 0 range 21 .. 30; UPDATE at 0 range 31 .. 31; end record; -- SETE2R_CMP array type SETE2R_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for SETE2R_CMP type SETE2R_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : SETE2R_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for SETE2R_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- SETE2R_MSTCMP array type SETE2R_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for SETE2R_MSTCMP type SETE2R_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : SETE2R_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for SETE2R_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- SETE2R_TIMEVNT array type SETE2R_TIMEVNT_Field_Array is array (1 .. 9) of Boolean with Component_Size => 1, Size => 9; -- Type definition for SETE2R_TIMEVNT type SETE2R_TIMEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMEVNT as a value Val : HAL.UInt9; when True => -- TIMEVNT as an array Arr : SETE2R_TIMEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 9; for SETE2R_TIMEVNT_Field use record Val at 0 range 0 .. 8; Arr at 0 range 0 .. 8; end record; -- SETE2R_EXTEVNT array type SETE2R_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for SETE2R_EXTEVNT type SETE2R_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : SETE2R_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for SETE2R_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- Timerx Output2 Set Register type SETE2R_Register is record -- SST SST : Boolean := False; -- RESYNC RESYNC : Boolean := False; -- PER PER : Boolean := False; -- CMP1 CMP : SETE2R_CMP_Field := (As_Array => False, Val => 16#0#); -- MSTPER MSTPER : Boolean := False; -- MSTCMP1 MSTCMP : SETE2R_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- TIMEVNT1 TIMEVNT : SETE2R_TIMEVNT_Field := (As_Array => False, Val => 16#0#); -- EXTEVNT1 EXTEVNT : SETE2R_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- UPDATE UPDATE : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SETE2R_Register use record SST at 0 range 0 .. 0; RESYNC at 0 range 1 .. 1; PER at 0 range 2 .. 2; CMP at 0 range 3 .. 6; MSTPER at 0 range 7 .. 7; MSTCMP at 0 range 8 .. 11; TIMEVNT at 0 range 12 .. 20; EXTEVNT at 0 range 21 .. 30; UPDATE at 0 range 31 .. 31; end record; -- RSTE2R_CMP array type RSTE2R_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTE2R_CMP type RSTE2R_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : RSTE2R_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTE2R_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTE2R_MSTCMP array type RSTE2R_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTE2R_MSTCMP type RSTE2R_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : RSTE2R_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTE2R_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTE2R_TIMEVNT array type RSTE2R_TIMEVNT_Field_Array is array (1 .. 9) of Boolean with Component_Size => 1, Size => 9; -- Type definition for RSTE2R_TIMEVNT type RSTE2R_TIMEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMEVNT as a value Val : HAL.UInt9; when True => -- TIMEVNT as an array Arr : RSTE2R_TIMEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 9; for RSTE2R_TIMEVNT_Field use record Val at 0 range 0 .. 8; Arr at 0 range 0 .. 8; end record; -- RSTE2R_EXTEVNT array type RSTE2R_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for RSTE2R_EXTEVNT type RSTE2R_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : RSTE2R_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for RSTE2R_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- Timerx Output2 Reset Register type RSTE2R_Register is record -- SRT SRT : Boolean := False; -- RESYNC RESYNC : Boolean := False; -- PER PER : Boolean := False; -- CMP1 CMP : RSTE2R_CMP_Field := (As_Array => False, Val => 16#0#); -- MSTPER MSTPER : Boolean := False; -- MSTCMP1 MSTCMP : RSTE2R_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- TIMEVNT1 TIMEVNT : RSTE2R_TIMEVNT_Field := (As_Array => False, Val => 16#0#); -- EXTEVNT1 EXTEVNT : RSTE2R_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- UPDATE UPDATE : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for RSTE2R_Register use record SRT at 0 range 0 .. 0; RESYNC at 0 range 1 .. 1; PER at 0 range 2 .. 2; CMP at 0 range 3 .. 6; MSTPER at 0 range 7 .. 7; MSTCMP at 0 range 8 .. 11; TIMEVNT at 0 range 12 .. 20; EXTEVNT at 0 range 21 .. 30; UPDATE at 0 range 31 .. 31; end record; subtype EEFER1_EE1FLTR_Field is HAL.UInt4; subtype EEFER1_EE2FLTR_Field is HAL.UInt4; subtype EEFER1_EE3FLTR_Field is HAL.UInt4; subtype EEFER1_EE4FLTR_Field is HAL.UInt4; subtype EEFER1_EE5FLTR_Field is HAL.UInt4; -- Timerx External Event Filtering Register 1 type EEFER1_Register is record -- External Event 1 latch EE1LTCH : Boolean := False; -- External Event 1 filter EE1FLTR : EEFER1_EE1FLTR_Field := 16#0#; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- External Event 2 latch EE2LTCH : Boolean := False; -- External Event 2 filter EE2FLTR : EEFER1_EE2FLTR_Field := 16#0#; -- unspecified Reserved_11_11 : HAL.Bit := 16#0#; -- External Event 3 latch EE3LTCH : Boolean := False; -- External Event 3 filter EE3FLTR : EEFER1_EE3FLTR_Field := 16#0#; -- unspecified Reserved_17_17 : HAL.Bit := 16#0#; -- External Event 4 latch EE4LTCH : Boolean := False; -- External Event 4 filter EE4FLTR : EEFER1_EE4FLTR_Field := 16#0#; -- unspecified Reserved_23_23 : HAL.Bit := 16#0#; -- External Event 5 latch EE5LTCH : Boolean := False; -- External Event 5 filter EE5FLTR : EEFER1_EE5FLTR_Field := 16#0#; -- unspecified Reserved_29_31 : HAL.UInt3 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for EEFER1_Register use record EE1LTCH at 0 range 0 .. 0; EE1FLTR at 0 range 1 .. 4; Reserved_5_5 at 0 range 5 .. 5; EE2LTCH at 0 range 6 .. 6; EE2FLTR at 0 range 7 .. 10; Reserved_11_11 at 0 range 11 .. 11; EE3LTCH at 0 range 12 .. 12; EE3FLTR at 0 range 13 .. 16; Reserved_17_17 at 0 range 17 .. 17; EE4LTCH at 0 range 18 .. 18; EE4FLTR at 0 range 19 .. 22; Reserved_23_23 at 0 range 23 .. 23; EE5LTCH at 0 range 24 .. 24; EE5FLTR at 0 range 25 .. 28; Reserved_29_31 at 0 range 29 .. 31; end record; subtype EEFER2_EE6FLTR_Field is HAL.UInt4; subtype EEFER2_EE7FLTR_Field is HAL.UInt4; subtype EEFER2_EE8FLTR_Field is HAL.UInt4; subtype EEFER2_EE9FLTR_Field is HAL.UInt4; subtype EEFER2_EE10FLTR_Field is HAL.UInt4; -- Timerx External Event Filtering Register 2 type EEFER2_Register is record -- External Event 6 latch EE6LTCH : Boolean := False; -- External Event 6 filter EE6FLTR : EEFER2_EE6FLTR_Field := 16#0#; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- External Event 7 latch EE7LTCH : Boolean := False; -- External Event 7 filter EE7FLTR : EEFER2_EE7FLTR_Field := 16#0#; -- unspecified Reserved_11_11 : HAL.Bit := 16#0#; -- External Event 8 latch EE8LTCH : Boolean := False; -- External Event 8 filter EE8FLTR : EEFER2_EE8FLTR_Field := 16#0#; -- unspecified Reserved_17_17 : HAL.Bit := 16#0#; -- External Event 9 latch EE9LTCH : Boolean := False; -- External Event 9 filter EE9FLTR : EEFER2_EE9FLTR_Field := 16#0#; -- unspecified Reserved_23_23 : HAL.Bit := 16#0#; -- External Event 10 latch EE10LTCH : Boolean := False; -- External Event 10 filter EE10FLTR : EEFER2_EE10FLTR_Field := 16#0#; -- unspecified Reserved_29_31 : HAL.UInt3 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for EEFER2_Register use record EE6LTCH at 0 range 0 .. 0; EE6FLTR at 0 range 1 .. 4; Reserved_5_5 at 0 range 5 .. 5; EE7LTCH at 0 range 6 .. 6; EE7FLTR at 0 range 7 .. 10; Reserved_11_11 at 0 range 11 .. 11; EE8LTCH at 0 range 12 .. 12; EE8FLTR at 0 range 13 .. 16; Reserved_17_17 at 0 range 17 .. 17; EE9LTCH at 0 range 18 .. 18; EE9FLTR at 0 range 19 .. 22; Reserved_23_23 at 0 range 23 .. 23; EE10LTCH at 0 range 24 .. 24; EE10FLTR at 0 range 25 .. 28; Reserved_29_31 at 0 range 29 .. 31; end record; -- RSTER_CMP array type RSTER_CMP_Field_Array is array (2 .. 3) of Boolean with Component_Size => 1, Size => 2; -- Type definition for RSTER_CMP type RSTER_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt2; when True => -- CMP as an array Arr : RSTER_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for RSTER_CMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- RSTER_MSTCMP array type RSTER_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTER_MSTCMP type RSTER_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : RSTER_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTER_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTER_EXTEVNT array type RSTER_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for RSTER_EXTEVNT type RSTER_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : RSTER_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for RSTER_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- RSTER_TIMACMP array type RSTER_TIMACMP_Field_Array is array (1 .. 3) of Boolean with Component_Size => 1, Size => 3; -- Type definition for RSTER_TIMACMP type RSTER_TIMACMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMACMP as a value Val : HAL.UInt3; when True => -- TIMACMP as an array Arr : RSTER_TIMACMP_Field_Array; end case; end record with Unchecked_Union, Size => 3; for RSTER_TIMACMP_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- RSTER_TIMBCMP array type RSTER_TIMBCMP_Field_Array is array (1 .. 3) of Boolean with Component_Size => 1, Size => 3; -- Type definition for RSTER_TIMBCMP type RSTER_TIMBCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMBCMP as a value Val : HAL.UInt3; when True => -- TIMBCMP as an array Arr : RSTER_TIMBCMP_Field_Array; end case; end record with Unchecked_Union, Size => 3; for RSTER_TIMBCMP_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- RSTER_TIMCCMP array type RSTER_TIMCCMP_Field_Array is array (1 .. 3) of Boolean with Component_Size => 1, Size => 3; -- Type definition for RSTER_TIMCCMP type RSTER_TIMCCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMCCMP as a value Val : HAL.UInt3; when True => -- TIMCCMP as an array Arr : RSTER_TIMCCMP_Field_Array; end case; end record with Unchecked_Union, Size => 3; for RSTER_TIMCCMP_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- RSTER_TIMDCMP array type RSTER_TIMDCMP_Field_Array is array (1 .. 3) of Boolean with Component_Size => 1, Size => 3; -- Type definition for RSTER_TIMDCMP type RSTER_TIMDCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMDCMP as a value Val : HAL.UInt3; when True => -- TIMDCMP as an array Arr : RSTER_TIMDCMP_Field_Array; end case; end record with Unchecked_Union, Size => 3; for RSTER_TIMDCMP_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- TimerA Reset Register type RSTER_Register is record -- Timer A Update reset TIMFCMP1 : Boolean := False; -- Timer A Update reset UPDT : Boolean := False; -- Timer A compare 2 reset CMP : RSTER_CMP_Field := (As_Array => False, Val => 16#0#); -- Master timer Period MSTPER : Boolean := False; -- Master compare 1 MSTCMP : RSTER_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- External Event 1 EXTEVNT : RSTER_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- Timer A Compare 1 TIMACMP : RSTER_TIMACMP_Field := (As_Array => False, Val => 16#0#); -- Timer B Compare 1 TIMBCMP : RSTER_TIMBCMP_Field := (As_Array => False, Val => 16#0#); -- Timer C Compare 1 TIMCCMP : RSTER_TIMCCMP_Field := (As_Array => False, Val => 16#0#); -- Timer D Compare 1 TIMDCMP : RSTER_TIMDCMP_Field := (As_Array => False, Val => 16#0#); -- Timer F Compare 2 TIMFCPM2 : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for RSTER_Register use record TIMFCMP1 at 0 range 0 .. 0; UPDT at 0 range 1 .. 1; CMP at 0 range 2 .. 3; MSTPER at 0 range 4 .. 4; MSTCMP at 0 range 5 .. 8; EXTEVNT at 0 range 9 .. 18; TIMACMP at 0 range 19 .. 21; TIMBCMP at 0 range 22 .. 24; TIMCCMP at 0 range 25 .. 27; TIMDCMP at 0 range 28 .. 30; TIMFCPM2 at 0 range 31 .. 31; end record; subtype CHPER_CHPFRQ_Field is HAL.UInt4; subtype CHPER_CHPDTY_Field is HAL.UInt3; subtype CHPER_STRTPW_Field is HAL.UInt4; -- Timerx Chopper Register type CHPER_Register is record -- Timerx carrier frequency value CHPFRQ : CHPER_CHPFRQ_Field := 16#0#; -- Timerx chopper duty cycle value CHPDTY : CHPER_CHPDTY_Field := 16#0#; -- STRTPW STRTPW : CHPER_STRTPW_Field := 16#0#; -- unspecified Reserved_11_31 : HAL.UInt21 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CHPER_Register use record CHPFRQ at 0 range 0 .. 3; CHPDTY at 0 range 4 .. 6; STRTPW at 0 range 7 .. 10; Reserved_11_31 at 0 range 11 .. 31; end record; -- CPT1ECR_TACMP array type CPT1ECR_TACMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1ECR_TACMP type CPT1ECR_TACMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TACMP as a value Val : HAL.UInt2; when True => -- TACMP as an array Arr : CPT1ECR_TACMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1ECR_TACMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT1ECR_TBCMP array type CPT1ECR_TBCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1ECR_TBCMP type CPT1ECR_TBCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TBCMP as a value Val : HAL.UInt2; when True => -- TBCMP as an array Arr : CPT1ECR_TBCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1ECR_TBCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT1ECR_TCCMP array type CPT1ECR_TCCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1ECR_TCCMP type CPT1ECR_TCCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TCCMP as a value Val : HAL.UInt2; when True => -- TCCMP as an array Arr : CPT1ECR_TCCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1ECR_TCCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT1ECR_TDCMP array type CPT1ECR_TDCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1ECR_TDCMP type CPT1ECR_TDCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TDCMP as a value Val : HAL.UInt2; when True => -- TDCMP as an array Arr : CPT1ECR_TDCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1ECR_TDCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT1ECR_TFCMP array type CPT1ECR_TFCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1ECR_TFCMP type CPT1ECR_TFCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TFCMP as a value Val : HAL.UInt2; when True => -- TFCMP as an array Arr : CPT1ECR_TFCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1ECR_TFCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Timerx Capture 1 Control Register type CPT1ECR_Register is record -- Software Capture SWCPT : Boolean := False; -- Update Capture UDPCPT : Boolean := False; -- External Event 1 Capture EXEV1CPT : Boolean := False; -- External Event 2 Capture EXEV2CPT : Boolean := False; -- External Event 3 Capture EXEV3CPT : Boolean := False; -- External Event 4 Capture EXEV4CPT : Boolean := False; -- External Event 5 Capture EXEV5CPT : Boolean := False; -- External Event 6 Capture EXEV6CPT : Boolean := False; -- External Event 7 Capture EXEV7CPT : Boolean := False; -- External Event 8 Capture EXEV8CPT : Boolean := False; -- External Event 9 Capture EXEV9CPT : Boolean := False; -- External Event 10 Capture EXEV10CPT : Boolean := False; -- Timer A output 1 Set TA1SET : Boolean := False; -- Timer A output 1 Reset TA1RST : Boolean := False; -- Timer A Compare 1 TACMP : CPT1ECR_TACMP_Field := (As_Array => False, Val => 16#0#); -- Timer B output 1 Set TB1SET : Boolean := False; -- Timer B output 1 Reset TB1RST : Boolean := False; -- Timer B Compare 1 TBCMP : CPT1ECR_TBCMP_Field := (As_Array => False, Val => 16#0#); -- Timer C output 1 Set TC1SET : Boolean := False; -- Timer C output 1 Reset TC1RST : Boolean := False; -- Timer C Compare 1 TCCMP : CPT1ECR_TCCMP_Field := (As_Array => False, Val => 16#0#); -- Timer D output 1 Set TD1SET : Boolean := False; -- Timer D output 1 Reset TD1RST : Boolean := False; -- Timer D Compare 1 TDCMP : CPT1ECR_TDCMP_Field := (As_Array => False, Val => 16#0#); -- TF1SET TF1SET : Boolean := False; -- TF1RST TF1RST : Boolean := False; -- TFCMP1 TFCMP : CPT1ECR_TFCMP_Field := (As_Array => False, Val => 16#0#); end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPT1ECR_Register use record SWCPT at 0 range 0 .. 0; UDPCPT at 0 range 1 .. 1; EXEV1CPT at 0 range 2 .. 2; EXEV2CPT at 0 range 3 .. 3; EXEV3CPT at 0 range 4 .. 4; EXEV4CPT at 0 range 5 .. 5; EXEV5CPT at 0 range 6 .. 6; EXEV6CPT at 0 range 7 .. 7; EXEV7CPT at 0 range 8 .. 8; EXEV8CPT at 0 range 9 .. 9; EXEV9CPT at 0 range 10 .. 10; EXEV10CPT at 0 range 11 .. 11; TA1SET at 0 range 12 .. 12; TA1RST at 0 range 13 .. 13; TACMP at 0 range 14 .. 15; TB1SET at 0 range 16 .. 16; TB1RST at 0 range 17 .. 17; TBCMP at 0 range 18 .. 19; TC1SET at 0 range 20 .. 20; TC1RST at 0 range 21 .. 21; TCCMP at 0 range 22 .. 23; TD1SET at 0 range 24 .. 24; TD1RST at 0 range 25 .. 25; TDCMP at 0 range 26 .. 27; TF1SET at 0 range 28 .. 28; TF1RST at 0 range 29 .. 29; TFCMP at 0 range 30 .. 31; end record; -- CPT2ECR_TACMP array type CPT2ECR_TACMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2ECR_TACMP type CPT2ECR_TACMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TACMP as a value Val : HAL.UInt2; when True => -- TACMP as an array Arr : CPT2ECR_TACMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2ECR_TACMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT2ECR_TBCMP array type CPT2ECR_TBCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2ECR_TBCMP type CPT2ECR_TBCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TBCMP as a value Val : HAL.UInt2; when True => -- TBCMP as an array Arr : CPT2ECR_TBCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2ECR_TBCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT2ECR_TCCMP array type CPT2ECR_TCCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2ECR_TCCMP type CPT2ECR_TCCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TCCMP as a value Val : HAL.UInt2; when True => -- TCCMP as an array Arr : CPT2ECR_TCCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2ECR_TCCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT2ECR_TDCMP array type CPT2ECR_TDCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2ECR_TDCMP type CPT2ECR_TDCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TDCMP as a value Val : HAL.UInt2; when True => -- TDCMP as an array Arr : CPT2ECR_TDCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2ECR_TDCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT2ECR_TFCMP array type CPT2ECR_TFCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2ECR_TFCMP type CPT2ECR_TFCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TFCMP as a value Val : HAL.UInt2; when True => -- TFCMP as an array Arr : CPT2ECR_TFCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2ECR_TFCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Timerx Capture 2 Control Register type CPT2ECR_Register is record -- Software Capture SWCPT : Boolean := False; -- Update Capture UDPCPT : Boolean := False; -- External Event 1 Capture EXEV1CPT : Boolean := False; -- External Event 2 Capture EXEV2CPT : Boolean := False; -- External Event 3 Capture EXEV3CPT : Boolean := False; -- External Event 4 Capture EXEV4CPT : Boolean := False; -- External Event 5 Capture EXEV5CPT : Boolean := False; -- External Event 6 Capture EXEV6CPT : Boolean := False; -- External Event 7 Capture EXEV7CPT : Boolean := False; -- External Event 8 Capture EXEV8CPT : Boolean := False; -- External Event 9 Capture EXEV9CPT : Boolean := False; -- External Event 10 Capture EXEV10CPT : Boolean := False; -- Timer A output 1 Set TA1SET : Boolean := False; -- Timer A output 1 Reset TA1RST : Boolean := False; -- Timer A Compare 1 TACMP : CPT2ECR_TACMP_Field := (As_Array => False, Val => 16#0#); -- Timer B output 1 Set TB1SET : Boolean := False; -- Timer B output 1 Reset TB1RST : Boolean := False; -- Timer B Compare 1 TBCMP : CPT2ECR_TBCMP_Field := (As_Array => False, Val => 16#0#); -- Timer C output 1 Set TC1SET : Boolean := False; -- Timer C output 1 Reset TC1RST : Boolean := False; -- Timer C Compare 1 TCCMP : CPT2ECR_TCCMP_Field := (As_Array => False, Val => 16#0#); -- Timer D output 1 Set TD1SET : Boolean := False; -- Timer D output 1 Reset TD1RST : Boolean := False; -- Timer D Compare 1 TDCMP : CPT2ECR_TDCMP_Field := (As_Array => False, Val => 16#0#); -- TF1SET TF1SET : Boolean := False; -- TF1RST TF1RST : Boolean := False; -- TFCMP1 TFCMP : CPT2ECR_TFCMP_Field := (As_Array => False, Val => 16#0#); end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPT2ECR_Register use record SWCPT at 0 range 0 .. 0; UDPCPT at 0 range 1 .. 1; EXEV1CPT at 0 range 2 .. 2; EXEV2CPT at 0 range 3 .. 3; EXEV3CPT at 0 range 4 .. 4; EXEV4CPT at 0 range 5 .. 5; EXEV5CPT at 0 range 6 .. 6; EXEV6CPT at 0 range 7 .. 7; EXEV7CPT at 0 range 8 .. 8; EXEV8CPT at 0 range 9 .. 9; EXEV9CPT at 0 range 10 .. 10; EXEV10CPT at 0 range 11 .. 11; TA1SET at 0 range 12 .. 12; TA1RST at 0 range 13 .. 13; TACMP at 0 range 14 .. 15; TB1SET at 0 range 16 .. 16; TB1RST at 0 range 17 .. 17; TBCMP at 0 range 18 .. 19; TC1SET at 0 range 20 .. 20; TC1RST at 0 range 21 .. 21; TCCMP at 0 range 22 .. 23; TD1SET at 0 range 24 .. 24; TD1RST at 0 range 25 .. 25; TDCMP at 0 range 26 .. 27; TF1SET at 0 range 28 .. 28; TF1RST at 0 range 29 .. 29; TFCMP at 0 range 30 .. 31; end record; subtype OUTER_FAULT1_Field is HAL.UInt2; subtype OUTER_DLYPRT_Field is HAL.UInt3; subtype OUTER_FAULT2_Field is HAL.UInt2; -- Timerx Output Register type OUTER_Register is record -- unspecified Reserved_0_0 : HAL.Bit := 16#0#; -- Output 1 polarity POL1 : Boolean := False; -- Output 1 Idle mode IDLEM1 : Boolean := False; -- Output 1 Idle State IDLES1 : Boolean := False; -- Output 1 Fault state FAULT1 : OUTER_FAULT1_Field := 16#0#; -- Output 1 Chopper enable CHP1 : Boolean := False; -- Output 1 Deadtime upon burst mode Idle entry DIDL1 : Boolean := False; -- Deadtime enable DTEN : Boolean := False; -- Delayed Protection Enable DLYPRTEN : Boolean := False; -- Delayed Protection DLYPRT : OUTER_DLYPRT_Field := 16#0#; -- unspecified Reserved_13_13 : HAL.Bit := 16#0#; -- Balanced Idle Automatic Resume BIAR : Boolean := False; -- unspecified Reserved_15_16 : HAL.UInt2 := 16#0#; -- Output 2 polarity POL2 : Boolean := False; -- Output 2 Idle mode IDLEM2 : Boolean := False; -- Output 2 Idle State IDLES2 : Boolean := False; -- Output 2 Fault state FAULT2 : OUTER_FAULT2_Field := 16#0#; -- Output 2 Chopper enable CHP2 : Boolean := False; -- Output 2 Deadtime upon burst mode Idle entry DIDL2 : Boolean := False; -- unspecified Reserved_24_31 : HAL.UInt8 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for OUTER_Register use record Reserved_0_0 at 0 range 0 .. 0; POL1 at 0 range 1 .. 1; IDLEM1 at 0 range 2 .. 2; IDLES1 at 0 range 3 .. 3; FAULT1 at 0 range 4 .. 5; CHP1 at 0 range 6 .. 6; DIDL1 at 0 range 7 .. 7; DTEN at 0 range 8 .. 8; DLYPRTEN at 0 range 9 .. 9; DLYPRT at 0 range 10 .. 12; Reserved_13_13 at 0 range 13 .. 13; BIAR at 0 range 14 .. 14; Reserved_15_16 at 0 range 15 .. 16; POL2 at 0 range 17 .. 17; IDLEM2 at 0 range 18 .. 18; IDLES2 at 0 range 19 .. 19; FAULT2 at 0 range 20 .. 21; CHP2 at 0 range 22 .. 22; DIDL2 at 0 range 23 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; -- Timerx Fault Register type FLTER_Register is record -- Fault 1 enable FLT1EN : Boolean := False; -- Fault 2 enable FLT2EN : Boolean := False; -- Fault 3 enable FLT3EN : Boolean := False; -- Fault 4 enable FLT4EN : Boolean := False; -- Fault 5 enable FLT5EN : Boolean := False; -- Fault 6 enable FLT6EN : Boolean := False; -- unspecified Reserved_6_30 : HAL.UInt25 := 16#0#; -- Fault sources Lock FLTLCK : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for FLTER_Register use record FLT1EN at 0 range 0 .. 0; FLT2EN at 0 range 1 .. 1; FLT3EN at 0 range 2 .. 2; FLT4EN at 0 range 3 .. 3; FLT5EN at 0 range 4 .. 4; FLT6EN at 0 range 5 .. 5; Reserved_6_30 at 0 range 6 .. 30; FLTLCK at 0 range 31 .. 31; end record; subtype TIMECR2_ROM_Field is HAL.UInt2; subtype TIMECR2_OUTROM_Field is HAL.UInt2; subtype TIMECR2_ADROM_Field is HAL.UInt2; subtype TIMECR2_BMROM_Field is HAL.UInt2; subtype TIMECR2_FEROM_Field is HAL.UInt2; -- TIMECR2_GTCMP array type TIMECR2_GTCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for TIMECR2_GTCMP type TIMECR2_GTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- GTCMP as a value Val : HAL.UInt2; when True => -- GTCMP as an array Arr : TIMECR2_GTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for TIMECR2_GTCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- HRTIM Timerx Control Register 2 type TIMECR2_Register is record -- Dual Channel DAC trigger enable DCDE : Boolean := False; -- Dual Channel DAC Step trigger DCDS : Boolean := False; -- Dual Channel DAC Reset trigger DCDR : Boolean := False; -- unspecified Reserved_3_3 : HAL.Bit := 16#0#; -- Up-Down Mode UDM : Boolean := False; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- Roll-Over Mode ROM : TIMECR2_ROM_Field := 16#0#; -- Output Roll-Over Mode OUTROM : TIMECR2_OUTROM_Field := 16#0#; -- ADC Roll-Over Mode ADROM : TIMECR2_ADROM_Field := 16#0#; -- Burst Mode Roll-Over Mode BMROM : TIMECR2_BMROM_Field := 16#0#; -- Fault and Event Roll-Over Mode FEROM : TIMECR2_FEROM_Field := 16#0#; -- Greater than Compare 1 PWM mode GTCMP : TIMECR2_GTCMP_Field := (As_Array => False, Val => 16#0#); -- unspecified Reserved_18_19 : HAL.UInt2 := 16#0#; -- Triggered-half mode TRGHLF : Boolean := False; -- unspecified Reserved_21_31 : HAL.UInt11 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMECR2_Register use record DCDE at 0 range 0 .. 0; DCDS at 0 range 1 .. 1; DCDR at 0 range 2 .. 2; Reserved_3_3 at 0 range 3 .. 3; UDM at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; ROM at 0 range 6 .. 7; OUTROM at 0 range 8 .. 9; ADROM at 0 range 10 .. 11; BMROM at 0 range 12 .. 13; FEROM at 0 range 14 .. 15; GTCMP at 0 range 16 .. 17; Reserved_18_19 at 0 range 18 .. 19; TRGHLF at 0 range 20 .. 20; Reserved_21_31 at 0 range 21 .. 31; end record; subtype EEFER3_EEVASEL_Field is HAL.UInt4; subtype EEFER3_EEVACNT_Field is HAL.UInt6; -- HRTIM Timerx External Event Filtering Register 3 type EEFER3_Register is record -- External Event A Counter Enable EEVACE : Boolean := False; -- External Event A Counter Reset EEVACRES : Boolean := False; -- External Event A Reset Mode EEVARSTM : Boolean := False; -- unspecified Reserved_3_3 : HAL.Bit := 16#0#; -- External Event A Selection EEVASEL : EEFER3_EEVASEL_Field := 16#0#; -- External Event A counter EEVACNT : EEFER3_EEVACNT_Field := 16#0#; -- unspecified Reserved_14_31 : HAL.UInt18 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for EEFER3_Register use record EEVACE at 0 range 0 .. 0; EEVACRES at 0 range 1 .. 1; EEVARSTM at 0 range 2 .. 2; Reserved_3_3 at 0 range 3 .. 3; EEVASEL at 0 range 4 .. 7; EEVACNT at 0 range 8 .. 13; Reserved_14_31 at 0 range 14 .. 31; end record; subtype TIMFCR_CKPSCx_Field is HAL.UInt3; subtype TIMFCR_INTLVD_Field is HAL.UInt2; -- TIMFCR_DELCMP array element subtype TIMFCR_DELCMP_Element is HAL.UInt2; -- TIMFCR_DELCMP array type TIMFCR_DELCMP_Field_Array is array (2 .. 3) of TIMFCR_DELCMP_Element with Component_Size => 2, Size => 4; -- Type definition for TIMFCR_DELCMP type TIMFCR_DELCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- DELCMP as a value Val : HAL.UInt4; when True => -- DELCMP as an array Arr : TIMFCR_DELCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for TIMFCR_DELCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; subtype TIMFCR_DACSYNC_Field is HAL.UInt2; subtype TIMFCR_UPDGAT_Field is HAL.UInt4; -- Timerx Control Register type TIMFCR_Register is record -- HRTIM Timer x Clock prescaler CKPSCx : TIMFCR_CKPSCx_Field := 16#0#; -- Continuous mode CONT : Boolean := False; -- Re-triggerable mode RETRIG : Boolean := False; -- Half mode enable HALF : Boolean := False; -- Push-Pull mode enable PSHPLL : Boolean := False; -- Interleaved mode INTLVD : TIMFCR_INTLVD_Field := 16#0#; -- Re-Synchronized Update RSYNCU : Boolean := False; -- Synchronization Resets Timer x SYNCRSTx : Boolean := False; -- Synchronization Starts Timer x SYNCSTRTx : Boolean := False; -- Delayed CMP2 mode DELCMP : TIMFCR_DELCMP_Field := (As_Array => False, Val => 16#0#); -- unspecified Reserved_16_16 : HAL.Bit := 16#0#; -- Timer x Repetition update TxREPU : Boolean := False; -- Timerx reset update TxRSTU : Boolean := False; -- TAU TAU : Boolean := False; -- TBU TBU : Boolean := False; -- TCU TCU : Boolean := False; -- TDU TDU : Boolean := False; -- TEU TEU : Boolean := False; -- Master Timer update MSTU : Boolean := False; -- AC Synchronization DACSYNC : TIMFCR_DACSYNC_Field := 16#0#; -- Preload enable PREEN : Boolean := False; -- Update Gating UPDGAT : TIMFCR_UPDGAT_Field := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMFCR_Register use record CKPSCx at 0 range 0 .. 2; CONT at 0 range 3 .. 3; RETRIG at 0 range 4 .. 4; HALF at 0 range 5 .. 5; PSHPLL at 0 range 6 .. 6; INTLVD at 0 range 7 .. 8; RSYNCU at 0 range 9 .. 9; SYNCRSTx at 0 range 10 .. 10; SYNCSTRTx at 0 range 11 .. 11; DELCMP at 0 range 12 .. 15; Reserved_16_16 at 0 range 16 .. 16; TxREPU at 0 range 17 .. 17; TxRSTU at 0 range 18 .. 18; TAU at 0 range 19 .. 19; TBU at 0 range 20 .. 20; TCU at 0 range 21 .. 21; TDU at 0 range 22 .. 22; TEU at 0 range 23 .. 23; MSTU at 0 range 24 .. 24; DACSYNC at 0 range 25 .. 26; PREEN at 0 range 27 .. 27; UPDGAT at 0 range 28 .. 31; end record; -- TIMFISR_CMP array type TIMFISR_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for TIMFISR_CMP type TIMFISR_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : TIMFISR_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for TIMFISR_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- TIMFISR_CPT array type TIMFISR_CPT_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for TIMFISR_CPT type TIMFISR_CPT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CPT as a value Val : HAL.UInt2; when True => -- CPT as an array Arr : TIMFISR_CPT_Field_Array; end case; end record with Unchecked_Union, Size => 2; for TIMFISR_CPT_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Timerx Interrupt Status Register type TIMFISR_Register is record -- Read-only. Compare 1 Interrupt Flag CMP : TIMFISR_CMP_Field; -- Read-only. Repetition Interrupt Flag REP : Boolean; -- unspecified Reserved_5_5 : HAL.Bit; -- Read-only. Update Interrupt Flag UPD : Boolean; -- Read-only. Capture1 Interrupt Flag CPT : TIMFISR_CPT_Field; -- Read-only. Output 1 Set Interrupt Flag SETx1 : Boolean; -- Read-only. Output 1 Reset Interrupt Flag RSTx1 : Boolean; -- Read-only. Output 2 Set Interrupt Flag SETx2 : Boolean; -- Read-only. Output 2 Reset Interrupt Flag RSTx2 : Boolean; -- Read-only. Reset Interrupt Flag RST : Boolean; -- Read-only. Delayed Protection Flag DLYPRT : Boolean; -- unspecified Reserved_15_15 : HAL.Bit; -- Read-only. Current Push Pull Status CPPSTAT : Boolean; -- Read-only. Idle Push Pull Status IPPSTAT : Boolean; -- Read-only. Output 1 State O1STAT : Boolean; -- Read-only. Output 2 State O2STAT : Boolean; -- Read-only. Output 1 Copy O1CPY : Boolean; -- Read-only. Output 2 Copy O2CPY : Boolean; -- unspecified Reserved_22_31 : HAL.UInt10; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMFISR_Register use record CMP at 0 range 0 .. 3; REP at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; UPD at 0 range 6 .. 6; CPT at 0 range 7 .. 8; SETx1 at 0 range 9 .. 9; RSTx1 at 0 range 10 .. 10; SETx2 at 0 range 11 .. 11; RSTx2 at 0 range 12 .. 12; RST at 0 range 13 .. 13; DLYPRT at 0 range 14 .. 14; Reserved_15_15 at 0 range 15 .. 15; CPPSTAT at 0 range 16 .. 16; IPPSTAT at 0 range 17 .. 17; O1STAT at 0 range 18 .. 18; O2STAT at 0 range 19 .. 19; O1CPY at 0 range 20 .. 20; O2CPY at 0 range 21 .. 21; Reserved_22_31 at 0 range 22 .. 31; end record; -- Timerx Interrupt Clear Register type TIMFICR_Register is record -- Write-only. Compare 1 Interrupt flag Clear CMP1C : Boolean := False; -- Write-only. Compare 2 Interrupt flag Clear CMP2C : Boolean := False; -- Write-only. Compare 3 Interrupt flag Clear CMP3C : Boolean := False; -- Write-only. Compare 4 Interrupt flag Clear CMP4C : Boolean := False; -- Write-only. Repetition Interrupt flag Clear REPC : Boolean := False; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- Write-only. Update Interrupt flag Clear UPDC : Boolean := False; -- Write-only. Capture1 Interrupt flag Clear CPT1C : Boolean := False; -- Write-only. Capture2 Interrupt flag Clear CPT2C : Boolean := False; -- Write-only. Output 1 Set flag Clear SET1xC : Boolean := False; -- Write-only. Output 1 Reset flag Clear RSTx1C : Boolean := False; -- Write-only. Output 2 Set flag Clear SET2xC : Boolean := False; -- Write-only. Output 2 Reset flag Clear RSTx2C : Boolean := False; -- Write-only. Reset Interrupt flag Clear RSTC : Boolean := False; -- Write-only. Delayed Protection Flag Clear DLYPRTC : Boolean := False; -- unspecified Reserved_15_31 : HAL.UInt17 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMFICR_Register use record CMP1C at 0 range 0 .. 0; CMP2C at 0 range 1 .. 1; CMP3C at 0 range 2 .. 2; CMP4C at 0 range 3 .. 3; REPC at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; UPDC at 0 range 6 .. 6; CPT1C at 0 range 7 .. 7; CPT2C at 0 range 8 .. 8; SET1xC at 0 range 9 .. 9; RSTx1C at 0 range 10 .. 10; SET2xC at 0 range 11 .. 11; RSTx2C at 0 range 12 .. 12; RSTC at 0 range 13 .. 13; DLYPRTC at 0 range 14 .. 14; Reserved_15_31 at 0 range 15 .. 31; end record; -- TIMxDIER type TIMFDIER_Register is record -- CMP1IE CMP1IE : Boolean := False; -- CMP2IE CMP2IE : Boolean := False; -- CMP3IE CMP3IE : Boolean := False; -- CMP4IE CMP4IE : Boolean := False; -- REPIE REPIE : Boolean := False; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- UPDIE UPDIE : Boolean := False; -- CPT1IE CPT1IE : Boolean := False; -- CPT2IE CPT2IE : Boolean := False; -- SET1xIE SET1xIE : Boolean := False; -- RSTx1IE RSTx1IE : Boolean := False; -- SETx2IE SETx2IE : Boolean := False; -- RSTx2IE RSTx2IE : Boolean := False; -- RSTIE RSTIE : Boolean := False; -- DLYPRTIE DLYPRTIE : Boolean := False; -- unspecified Reserved_15_15 : HAL.Bit := 16#0#; -- CMP1DE CMP1DE : Boolean := False; -- CMP2DE CMP2DE : Boolean := False; -- CMP3DE CMP3DE : Boolean := False; -- CMP4DE CMP4DE : Boolean := False; -- REPDE REPDE : Boolean := False; -- unspecified Reserved_21_21 : HAL.Bit := 16#0#; -- UPDDE UPDDE : Boolean := False; -- CPT1DE CPT1DE : Boolean := False; -- CPT2DE CPT2DE : Boolean := False; -- SET1xDE SET1xDE : Boolean := False; -- RSTx1DE RSTx1DE : Boolean := False; -- SETx2DE SETx2DE : Boolean := False; -- RSTx2DE RSTx2DE : Boolean := False; -- RSTDE RSTDE : Boolean := False; -- DLYPRTDE DLYPRTDE : Boolean := False; -- unspecified Reserved_31_31 : HAL.Bit := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMFDIER_Register use record CMP1IE at 0 range 0 .. 0; CMP2IE at 0 range 1 .. 1; CMP3IE at 0 range 2 .. 2; CMP4IE at 0 range 3 .. 3; REPIE at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; UPDIE at 0 range 6 .. 6; CPT1IE at 0 range 7 .. 7; CPT2IE at 0 range 8 .. 8; SET1xIE at 0 range 9 .. 9; RSTx1IE at 0 range 10 .. 10; SETx2IE at 0 range 11 .. 11; RSTx2IE at 0 range 12 .. 12; RSTIE at 0 range 13 .. 13; DLYPRTIE at 0 range 14 .. 14; Reserved_15_15 at 0 range 15 .. 15; CMP1DE at 0 range 16 .. 16; CMP2DE at 0 range 17 .. 17; CMP3DE at 0 range 18 .. 18; CMP4DE at 0 range 19 .. 19; REPDE at 0 range 20 .. 20; Reserved_21_21 at 0 range 21 .. 21; UPDDE at 0 range 22 .. 22; CPT1DE at 0 range 23 .. 23; CPT2DE at 0 range 24 .. 24; SET1xDE at 0 range 25 .. 25; RSTx1DE at 0 range 26 .. 26; SETx2DE at 0 range 27 .. 27; RSTx2DE at 0 range 28 .. 28; RSTDE at 0 range 29 .. 29; DLYPRTDE at 0 range 30 .. 30; Reserved_31_31 at 0 range 31 .. 31; end record; subtype CNTFR_CNTx_Field is HAL.UInt16; -- Timerx Counter Register type CNTFR_Register is record -- Timerx Counter value CNTx : CNTFR_CNTx_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CNTFR_Register use record CNTx at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype PERFR_PERx_Field is HAL.UInt16; -- Timerx Period Register type PERFR_Register is record -- Timerx Period value PERx : PERFR_PERx_Field := 16#FFFF#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for PERFR_Register use record PERx at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype REPFR_REPx_Field is HAL.UInt8; -- Timerx Repetition Register type REPFR_Register is record -- Timerx Repetition counter value REPx : REPFR_REPx_Field := 16#0#; -- unspecified Reserved_8_31 : HAL.UInt24 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for REPFR_Register use record REPx at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; subtype CMP1FR_CMP1x_Field is HAL.UInt16; -- Timerx Compare 1 Register type CMP1FR_Register is record -- Timerx Compare 1 value CMP1x : CMP1FR_CMP1x_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP1FR_Register use record CMP1x at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CMP1CFR_CMP1x_Field is HAL.UInt16; subtype CMP1CFR_REPx_Field is HAL.UInt8; -- Timerx Compare 1 Compound Register type CMP1CFR_Register is record -- Timerx Compare 1 value CMP1x : CMP1CFR_CMP1x_Field := 16#0#; -- Timerx Repetition value (aliased from HRTIM_REPx register) REPx : CMP1CFR_REPx_Field := 16#0#; -- unspecified Reserved_24_31 : HAL.UInt8 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP1CFR_Register use record CMP1x at 0 range 0 .. 15; REPx at 0 range 16 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; subtype CMP2FR_CMP2x_Field is HAL.UInt16; -- Timerx Compare 2 Register type CMP2FR_Register is record -- Timerx Compare 2 value CMP2x : CMP2FR_CMP2x_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP2FR_Register use record CMP2x at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CMP3FR_CMP3x_Field is HAL.UInt16; -- Timerx Compare 3 Register type CMP3FR_Register is record -- Timerx Compare 3 value CMP3x : CMP3FR_CMP3x_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP3FR_Register use record CMP3x at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CMP4FR_CMP4x_Field is HAL.UInt16; -- Timerx Compare 4 Register type CMP4FR_Register is record -- Timerx Compare 4 value CMP4x : CMP4FR_CMP4x_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CMP4FR_Register use record CMP4x at 0 range 0 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; subtype CPT1FR_CPT1x_Field is HAL.UInt16; -- Timerx Capture 1 Register type CPT1FR_Register is record -- Read-only. Timerx Capture 1 value CPT1x : CPT1FR_CPT1x_Field; -- Read-only. Timerx Capture 1 Direction status DIR : Boolean; -- unspecified Reserved_17_31 : HAL.UInt15; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPT1FR_Register use record CPT1x at 0 range 0 .. 15; DIR at 0 range 16 .. 16; Reserved_17_31 at 0 range 17 .. 31; end record; subtype CPT2FR_CPT2x_Field is HAL.UInt16; -- Timerx Capture 2 Register type CPT2FR_Register is record -- Read-only. Timerx Capture 2 value CPT2x : CPT2FR_CPT2x_Field; -- Read-only. Timerx Capture 1 Direction status DIR : Boolean; -- unspecified Reserved_17_31 : HAL.UInt15; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPT2FR_Register use record CPT2x at 0 range 0 .. 15; DIR at 0 range 16 .. 16; Reserved_17_31 at 0 range 17 .. 31; end record; subtype DTFR_DTRx_Field is HAL.UInt9; subtype DTFR_DTPRSC_Field is HAL.UInt3; subtype DTFR_DTFx_Field is HAL.UInt9; -- Timerx Deadtime Register type DTFR_Register is record -- Deadtime Rising value DTRx : DTFR_DTRx_Field := 16#0#; -- Sign Deadtime Rising value SDTRx : Boolean := False; -- Deadtime Prescaler DTPRSC : DTFR_DTPRSC_Field := 16#0#; -- unspecified Reserved_13_13 : HAL.Bit := 16#0#; -- Deadtime Rising Sign Lock DTRSLKx : Boolean := False; -- Deadtime Rising Lock DTRLKx : Boolean := False; -- Deadtime Falling value DTFx : DTFR_DTFx_Field := 16#0#; -- Sign Deadtime Falling value SDTFx : Boolean := False; -- unspecified Reserved_26_29 : HAL.UInt4 := 16#0#; -- Deadtime Falling Sign Lock DTFSLKx : Boolean := False; -- Deadtime Falling Lock DTFLKx : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for DTFR_Register use record DTRx at 0 range 0 .. 8; SDTRx at 0 range 9 .. 9; DTPRSC at 0 range 10 .. 12; Reserved_13_13 at 0 range 13 .. 13; DTRSLKx at 0 range 14 .. 14; DTRLKx at 0 range 15 .. 15; DTFx at 0 range 16 .. 24; SDTFx at 0 range 25 .. 25; Reserved_26_29 at 0 range 26 .. 29; DTFSLKx at 0 range 30 .. 30; DTFLKx at 0 range 31 .. 31; end record; -- SETF1R_CMP array type SETF1R_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for SETF1R_CMP type SETF1R_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : SETF1R_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for SETF1R_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- SETF1R_MSTCMP array type SETF1R_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for SETF1R_MSTCMP type SETF1R_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : SETF1R_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for SETF1R_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- SETF1R_TIMEVNT array type SETF1R_TIMEVNT_Field_Array is array (1 .. 9) of Boolean with Component_Size => 1, Size => 9; -- Type definition for SETF1R_TIMEVNT type SETF1R_TIMEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMEVNT as a value Val : HAL.UInt9; when True => -- TIMEVNT as an array Arr : SETF1R_TIMEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 9; for SETF1R_TIMEVNT_Field use record Val at 0 range 0 .. 8; Arr at 0 range 0 .. 8; end record; -- SETF1R_EXTEVNT array type SETF1R_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for SETF1R_EXTEVNT type SETF1R_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : SETF1R_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for SETF1R_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- Timerx Output1 Set Register type SETF1R_Register is record -- Software Set trigger SST : Boolean := False; -- Timer A resynchronizaton RESYNC : Boolean := False; -- Timer A Period PER : Boolean := False; -- Timer A compare 1 CMP : SETF1R_CMP_Field := (As_Array => False, Val => 16#0#); -- Master Period MSTPER : Boolean := False; -- Master Compare 1 MSTCMP : SETF1R_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- Timer Event 1 TIMEVNT : SETF1R_TIMEVNT_Field := (As_Array => False, Val => 16#0#); -- External Event 1 EXTEVNT : SETF1R_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- Registers update (transfer preload to active) UPDATE : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SETF1R_Register use record SST at 0 range 0 .. 0; RESYNC at 0 range 1 .. 1; PER at 0 range 2 .. 2; CMP at 0 range 3 .. 6; MSTPER at 0 range 7 .. 7; MSTCMP at 0 range 8 .. 11; TIMEVNT at 0 range 12 .. 20; EXTEVNT at 0 range 21 .. 30; UPDATE at 0 range 31 .. 31; end record; -- SETF2R_CMP array type SETF2R_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for SETF2R_CMP type SETF2R_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : SETF2R_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for SETF2R_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- SETF2R_MSTCMP array type SETF2R_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for SETF2R_MSTCMP type SETF2R_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : SETF2R_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for SETF2R_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- SETF2R_TIMEVNT array type SETF2R_TIMEVNT_Field_Array is array (1 .. 9) of Boolean with Component_Size => 1, Size => 9; -- Type definition for SETF2R_TIMEVNT type SETF2R_TIMEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMEVNT as a value Val : HAL.UInt9; when True => -- TIMEVNT as an array Arr : SETF2R_TIMEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 9; for SETF2R_TIMEVNT_Field use record Val at 0 range 0 .. 8; Arr at 0 range 0 .. 8; end record; -- SETF2R_EXTEVNT array type SETF2R_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for SETF2R_EXTEVNT type SETF2R_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : SETF2R_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for SETF2R_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- Timerx Output2 Set Register type SETF2R_Register is record -- SST SST : Boolean := False; -- RESYNC RESYNC : Boolean := False; -- PER PER : Boolean := False; -- CMP1 CMP : SETF2R_CMP_Field := (As_Array => False, Val => 16#0#); -- MSTPER MSTPER : Boolean := False; -- MSTCMP1 MSTCMP : SETF2R_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- TIMEVNT1 TIMEVNT : SETF2R_TIMEVNT_Field := (As_Array => False, Val => 16#0#); -- EXTEVNT1 EXTEVNT : SETF2R_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- UPDATE UPDATE : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SETF2R_Register use record SST at 0 range 0 .. 0; RESYNC at 0 range 1 .. 1; PER at 0 range 2 .. 2; CMP at 0 range 3 .. 6; MSTPER at 0 range 7 .. 7; MSTCMP at 0 range 8 .. 11; TIMEVNT at 0 range 12 .. 20; EXTEVNT at 0 range 21 .. 30; UPDATE at 0 range 31 .. 31; end record; -- RSTF2R_CMP array type RSTF2R_CMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTF2R_CMP type RSTF2R_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt4; when True => -- CMP as an array Arr : RSTF2R_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTF2R_CMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTF2R_MSTCMP array type RSTF2R_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTF2R_MSTCMP type RSTF2R_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : RSTF2R_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTF2R_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTF2R_TIMEVNT array type RSTF2R_TIMEVNT_Field_Array is array (1 .. 9) of Boolean with Component_Size => 1, Size => 9; -- Type definition for RSTF2R_TIMEVNT type RSTF2R_TIMEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMEVNT as a value Val : HAL.UInt9; when True => -- TIMEVNT as an array Arr : RSTF2R_TIMEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 9; for RSTF2R_TIMEVNT_Field use record Val at 0 range 0 .. 8; Arr at 0 range 0 .. 8; end record; -- RSTF2R_EXTEVNT array type RSTF2R_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for RSTF2R_EXTEVNT type RSTF2R_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : RSTF2R_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for RSTF2R_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- Timerx Output2 Reset Register type RSTF2R_Register is record -- SRT SRT : Boolean := False; -- RESYNC RESYNC : Boolean := False; -- PER PER : Boolean := False; -- CMP1 CMP : RSTF2R_CMP_Field := (As_Array => False, Val => 16#0#); -- MSTPER MSTPER : Boolean := False; -- MSTCMP1 MSTCMP : RSTF2R_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- TIMEVNT1 TIMEVNT : RSTF2R_TIMEVNT_Field := (As_Array => False, Val => 16#0#); -- EXTEVNT1 EXTEVNT : RSTF2R_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- UPDATE UPDATE : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for RSTF2R_Register use record SRT at 0 range 0 .. 0; RESYNC at 0 range 1 .. 1; PER at 0 range 2 .. 2; CMP at 0 range 3 .. 6; MSTPER at 0 range 7 .. 7; MSTCMP at 0 range 8 .. 11; TIMEVNT at 0 range 12 .. 20; EXTEVNT at 0 range 21 .. 30; UPDATE at 0 range 31 .. 31; end record; subtype EEFFR1_EE1FLTR_Field is HAL.UInt4; subtype EEFFR1_EE2FLTR_Field is HAL.UInt4; subtype EEFFR1_EE3FLTR_Field is HAL.UInt4; subtype EEFFR1_EE4FLTR_Field is HAL.UInt4; subtype EEFFR1_EE5FLTR_Field is HAL.UInt4; -- Timerx External Event Filtering Register 1 type EEFFR1_Register is record -- External Event 1 latch EE1LTCH : Boolean := False; -- External Event 1 filter EE1FLTR : EEFFR1_EE1FLTR_Field := 16#0#; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- External Event 2 latch EE2LTCH : Boolean := False; -- External Event 2 filter EE2FLTR : EEFFR1_EE2FLTR_Field := 16#0#; -- unspecified Reserved_11_11 : HAL.Bit := 16#0#; -- External Event 3 latch EE3LTCH : Boolean := False; -- External Event 3 filter EE3FLTR : EEFFR1_EE3FLTR_Field := 16#0#; -- unspecified Reserved_17_17 : HAL.Bit := 16#0#; -- External Event 4 latch EE4LTCH : Boolean := False; -- External Event 4 filter EE4FLTR : EEFFR1_EE4FLTR_Field := 16#0#; -- unspecified Reserved_23_23 : HAL.Bit := 16#0#; -- External Event 5 latch EE5LTCH : Boolean := False; -- External Event 5 filter EE5FLTR : EEFFR1_EE5FLTR_Field := 16#0#; -- unspecified Reserved_29_31 : HAL.UInt3 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for EEFFR1_Register use record EE1LTCH at 0 range 0 .. 0; EE1FLTR at 0 range 1 .. 4; Reserved_5_5 at 0 range 5 .. 5; EE2LTCH at 0 range 6 .. 6; EE2FLTR at 0 range 7 .. 10; Reserved_11_11 at 0 range 11 .. 11; EE3LTCH at 0 range 12 .. 12; EE3FLTR at 0 range 13 .. 16; Reserved_17_17 at 0 range 17 .. 17; EE4LTCH at 0 range 18 .. 18; EE4FLTR at 0 range 19 .. 22; Reserved_23_23 at 0 range 23 .. 23; EE5LTCH at 0 range 24 .. 24; EE5FLTR at 0 range 25 .. 28; Reserved_29_31 at 0 range 29 .. 31; end record; subtype EEFFR2_EE6FLTR_Field is HAL.UInt4; subtype EEFFR2_EE7FLTR_Field is HAL.UInt4; subtype EEFFR2_EE8FLTR_Field is HAL.UInt4; subtype EEFFR2_EE9FLTR_Field is HAL.UInt4; subtype EEFFR2_EE10FLTR_Field is HAL.UInt4; -- Timerx External Event Filtering Register 2 type EEFFR2_Register is record -- External Event 6 latch EE6LTCH : Boolean := False; -- External Event 6 filter EE6FLTR : EEFFR2_EE6FLTR_Field := 16#0#; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- External Event 7 latch EE7LTCH : Boolean := False; -- External Event 7 filter EE7FLTR : EEFFR2_EE7FLTR_Field := 16#0#; -- unspecified Reserved_11_11 : HAL.Bit := 16#0#; -- External Event 8 latch EE8LTCH : Boolean := False; -- External Event 8 filter EE8FLTR : EEFFR2_EE8FLTR_Field := 16#0#; -- unspecified Reserved_17_17 : HAL.Bit := 16#0#; -- External Event 9 latch EE9LTCH : Boolean := False; -- External Event 9 filter EE9FLTR : EEFFR2_EE9FLTR_Field := 16#0#; -- unspecified Reserved_23_23 : HAL.Bit := 16#0#; -- External Event 10 latch EE10LTCH : Boolean := False; -- External Event 10 filter EE10FLTR : EEFFR2_EE10FLTR_Field := 16#0#; -- unspecified Reserved_29_31 : HAL.UInt3 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for EEFFR2_Register use record EE6LTCH at 0 range 0 .. 0; EE6FLTR at 0 range 1 .. 4; Reserved_5_5 at 0 range 5 .. 5; EE7LTCH at 0 range 6 .. 6; EE7FLTR at 0 range 7 .. 10; Reserved_11_11 at 0 range 11 .. 11; EE8LTCH at 0 range 12 .. 12; EE8FLTR at 0 range 13 .. 16; Reserved_17_17 at 0 range 17 .. 17; EE9LTCH at 0 range 18 .. 18; EE9FLTR at 0 range 19 .. 22; Reserved_23_23 at 0 range 23 .. 23; EE10LTCH at 0 range 24 .. 24; EE10FLTR at 0 range 25 .. 28; Reserved_29_31 at 0 range 29 .. 31; end record; -- RSTFR_CMP array type RSTFR_CMP_Field_Array is array (2 .. 3) of Boolean with Component_Size => 1, Size => 2; -- Type definition for RSTFR_CMP type RSTFR_CMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- CMP as a value Val : HAL.UInt2; when True => -- CMP as an array Arr : RSTFR_CMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for RSTFR_CMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- RSTFR_MSTCMP array type RSTFR_MSTCMP_Field_Array is array (1 .. 4) of Boolean with Component_Size => 1, Size => 4; -- Type definition for RSTFR_MSTCMP type RSTFR_MSTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- MSTCMP as a value Val : HAL.UInt4; when True => -- MSTCMP as an array Arr : RSTFR_MSTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 4; for RSTFR_MSTCMP_Field use record Val at 0 range 0 .. 3; Arr at 0 range 0 .. 3; end record; -- RSTFR_EXTEVNT array type RSTFR_EXTEVNT_Field_Array is array (1 .. 10) of Boolean with Component_Size => 1, Size => 10; -- Type definition for RSTFR_EXTEVNT type RSTFR_EXTEVNT_Field (As_Array : Boolean := False) is record case As_Array is when False => -- EXTEVNT as a value Val : HAL.UInt10; when True => -- EXTEVNT as an array Arr : RSTFR_EXTEVNT_Field_Array; end case; end record with Unchecked_Union, Size => 10; for RSTFR_EXTEVNT_Field use record Val at 0 range 0 .. 9; Arr at 0 range 0 .. 9; end record; -- RSTFR_TIMACMP array type RSTFR_TIMACMP_Field_Array is array (1 .. 3) of Boolean with Component_Size => 1, Size => 3; -- Type definition for RSTFR_TIMACMP type RSTFR_TIMACMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMACMP as a value Val : HAL.UInt3; when True => -- TIMACMP as an array Arr : RSTFR_TIMACMP_Field_Array; end case; end record with Unchecked_Union, Size => 3; for RSTFR_TIMACMP_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- RSTFR_TIMBCMP array type RSTFR_TIMBCMP_Field_Array is array (1 .. 3) of Boolean with Component_Size => 1, Size => 3; -- Type definition for RSTFR_TIMBCMP type RSTFR_TIMBCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMBCMP as a value Val : HAL.UInt3; when True => -- TIMBCMP as an array Arr : RSTFR_TIMBCMP_Field_Array; end case; end record with Unchecked_Union, Size => 3; for RSTFR_TIMBCMP_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- RSTFR_TIMCCMP array type RSTFR_TIMCCMP_Field_Array is array (1 .. 3) of Boolean with Component_Size => 1, Size => 3; -- Type definition for RSTFR_TIMCCMP type RSTFR_TIMCCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMCCMP as a value Val : HAL.UInt3; when True => -- TIMCCMP as an array Arr : RSTFR_TIMCCMP_Field_Array; end case; end record with Unchecked_Union, Size => 3; for RSTFR_TIMCCMP_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- RSTFR_TIMDCMP array type RSTFR_TIMDCMP_Field_Array is array (1 .. 3) of Boolean with Component_Size => 1, Size => 3; -- Type definition for RSTFR_TIMDCMP type RSTFR_TIMDCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TIMDCMP as a value Val : HAL.UInt3; when True => -- TIMDCMP as an array Arr : RSTFR_TIMDCMP_Field_Array; end case; end record with Unchecked_Union, Size => 3; for RSTFR_TIMDCMP_Field use record Val at 0 range 0 .. 2; Arr at 0 range 0 .. 2; end record; -- TimerA Reset Register type RSTFR_Register is record -- Timer A Update reset TIMFCMP1 : Boolean := False; -- Timer A Update reset UPDT : Boolean := False; -- Timer A compare 2 reset CMP : RSTFR_CMP_Field := (As_Array => False, Val => 16#0#); -- Master timer Period MSTPER : Boolean := False; -- Master compare 1 MSTCMP : RSTFR_MSTCMP_Field := (As_Array => False, Val => 16#0#); -- External Event 1 EXTEVNT : RSTFR_EXTEVNT_Field := (As_Array => False, Val => 16#0#); -- Timer A Compare 1 TIMACMP : RSTFR_TIMACMP_Field := (As_Array => False, Val => 16#0#); -- Timer B Compare 1 TIMBCMP : RSTFR_TIMBCMP_Field := (As_Array => False, Val => 16#0#); -- Timer C Compare 1 TIMCCMP : RSTFR_TIMCCMP_Field := (As_Array => False, Val => 16#0#); -- Timer D Compare 1 TIMDCMP : RSTFR_TIMDCMP_Field := (As_Array => False, Val => 16#0#); -- Timer F Compare 2 TIMFCPM2 : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for RSTFR_Register use record TIMFCMP1 at 0 range 0 .. 0; UPDT at 0 range 1 .. 1; CMP at 0 range 2 .. 3; MSTPER at 0 range 4 .. 4; MSTCMP at 0 range 5 .. 8; EXTEVNT at 0 range 9 .. 18; TIMACMP at 0 range 19 .. 21; TIMBCMP at 0 range 22 .. 24; TIMCCMP at 0 range 25 .. 27; TIMDCMP at 0 range 28 .. 30; TIMFCPM2 at 0 range 31 .. 31; end record; subtype CHPFR_CHPFRQ_Field is HAL.UInt4; subtype CHPFR_CHPDTY_Field is HAL.UInt3; subtype CHPFR_STRTPW_Field is HAL.UInt4; -- Timerx Chopper Register type CHPFR_Register is record -- Timerx carrier frequency value CHPFRQ : CHPFR_CHPFRQ_Field := 16#0#; -- Timerx chopper duty cycle value CHPDTY : CHPFR_CHPDTY_Field := 16#0#; -- STRTPW STRTPW : CHPFR_STRTPW_Field := 16#0#; -- unspecified Reserved_11_31 : HAL.UInt21 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CHPFR_Register use record CHPFRQ at 0 range 0 .. 3; CHPDTY at 0 range 4 .. 6; STRTPW at 0 range 7 .. 10; Reserved_11_31 at 0 range 11 .. 31; end record; -- CPT1FCR_TACMP array type CPT1FCR_TACMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1FCR_TACMP type CPT1FCR_TACMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TACMP as a value Val : HAL.UInt2; when True => -- TACMP as an array Arr : CPT1FCR_TACMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1FCR_TACMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT1FCR_TBCMP array type CPT1FCR_TBCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1FCR_TBCMP type CPT1FCR_TBCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TBCMP as a value Val : HAL.UInt2; when True => -- TBCMP as an array Arr : CPT1FCR_TBCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1FCR_TBCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT1FCR_TCCMP array type CPT1FCR_TCCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1FCR_TCCMP type CPT1FCR_TCCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TCCMP as a value Val : HAL.UInt2; when True => -- TCCMP as an array Arr : CPT1FCR_TCCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1FCR_TCCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT1FCR_TDCMP array type CPT1FCR_TDCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1FCR_TDCMP type CPT1FCR_TDCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TDCMP as a value Val : HAL.UInt2; when True => -- TDCMP as an array Arr : CPT1FCR_TDCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1FCR_TDCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT1FCR_TECMP array type CPT1FCR_TECMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT1FCR_TECMP type CPT1FCR_TECMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TECMP as a value Val : HAL.UInt2; when True => -- TECMP as an array Arr : CPT1FCR_TECMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT1FCR_TECMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Timerx Capture 1 Control Register type CPT1FCR_Register is record -- Software Capture SWCPT : Boolean := False; -- Update Capture UDPCPT : Boolean := False; -- External Event 1 Capture EXEV1CPT : Boolean := False; -- External Event 2 Capture EXEV2CPT : Boolean := False; -- External Event 3 Capture EXEV3CPT : Boolean := False; -- External Event 4 Capture EXEV4CPT : Boolean := False; -- External Event 5 Capture EXEV5CPT : Boolean := False; -- External Event 6 Capture EXEV6CPT : Boolean := False; -- External Event 7 Capture EXEV7CPT : Boolean := False; -- External Event 8 Capture EXEV8CPT : Boolean := False; -- External Event 9 Capture EXEV9CPT : Boolean := False; -- External Event 10 Capture EXEV10CPT : Boolean := False; -- Timer A output 1 Set TA1SET : Boolean := False; -- Timer A output 1 Reset TA1RST : Boolean := False; -- Timer A Compare 1 TACMP : CPT1FCR_TACMP_Field := (As_Array => False, Val => 16#0#); -- Timer B output 1 Set TB1SET : Boolean := False; -- Timer B output 1 Reset TB1RST : Boolean := False; -- Timer B Compare 1 TBCMP : CPT1FCR_TBCMP_Field := (As_Array => False, Val => 16#0#); -- Timer C output 1 Set TC1SET : Boolean := False; -- Timer C output 1 Reset TC1RST : Boolean := False; -- Timer C Compare 1 TCCMP : CPT1FCR_TCCMP_Field := (As_Array => False, Val => 16#0#); -- Timer D output 1 Set TD1SET : Boolean := False; -- Timer D output 1 Reset TD1RST : Boolean := False; -- Timer D Compare 1 TDCMP : CPT1FCR_TDCMP_Field := (As_Array => False, Val => 16#0#); -- TE1SET TE1SET : Boolean := False; -- TE1RST TE1RST : Boolean := False; -- TECMP1 TECMP : CPT1FCR_TECMP_Field := (As_Array => False, Val => 16#0#); end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPT1FCR_Register use record SWCPT at 0 range 0 .. 0; UDPCPT at 0 range 1 .. 1; EXEV1CPT at 0 range 2 .. 2; EXEV2CPT at 0 range 3 .. 3; EXEV3CPT at 0 range 4 .. 4; EXEV4CPT at 0 range 5 .. 5; EXEV5CPT at 0 range 6 .. 6; EXEV6CPT at 0 range 7 .. 7; EXEV7CPT at 0 range 8 .. 8; EXEV8CPT at 0 range 9 .. 9; EXEV9CPT at 0 range 10 .. 10; EXEV10CPT at 0 range 11 .. 11; TA1SET at 0 range 12 .. 12; TA1RST at 0 range 13 .. 13; TACMP at 0 range 14 .. 15; TB1SET at 0 range 16 .. 16; TB1RST at 0 range 17 .. 17; TBCMP at 0 range 18 .. 19; TC1SET at 0 range 20 .. 20; TC1RST at 0 range 21 .. 21; TCCMP at 0 range 22 .. 23; TD1SET at 0 range 24 .. 24; TD1RST at 0 range 25 .. 25; TDCMP at 0 range 26 .. 27; TE1SET at 0 range 28 .. 28; TE1RST at 0 range 29 .. 29; TECMP at 0 range 30 .. 31; end record; -- CPT2FCR_TACMP array type CPT2FCR_TACMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2FCR_TACMP type CPT2FCR_TACMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TACMP as a value Val : HAL.UInt2; when True => -- TACMP as an array Arr : CPT2FCR_TACMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2FCR_TACMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT2FCR_TBCMP array type CPT2FCR_TBCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2FCR_TBCMP type CPT2FCR_TBCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TBCMP as a value Val : HAL.UInt2; when True => -- TBCMP as an array Arr : CPT2FCR_TBCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2FCR_TBCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT2FCR_TCCMP array type CPT2FCR_TCCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2FCR_TCCMP type CPT2FCR_TCCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TCCMP as a value Val : HAL.UInt2; when True => -- TCCMP as an array Arr : CPT2FCR_TCCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2FCR_TCCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT2FCR_TDCMP array type CPT2FCR_TDCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2FCR_TDCMP type CPT2FCR_TDCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TDCMP as a value Val : HAL.UInt2; when True => -- TDCMP as an array Arr : CPT2FCR_TDCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2FCR_TDCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- CPT2FCR_TECMP array type CPT2FCR_TECMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for CPT2FCR_TECMP type CPT2FCR_TECMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- TECMP as a value Val : HAL.UInt2; when True => -- TECMP as an array Arr : CPT2FCR_TECMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for CPT2FCR_TECMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- Timerx Capture 2 Control Register type CPT2FCR_Register is record -- Software Capture SWCPT : Boolean := False; -- Update Capture UDPCPT : Boolean := False; -- External Event 1 Capture EXEV1CPT : Boolean := False; -- External Event 2 Capture EXEV2CPT : Boolean := False; -- External Event 3 Capture EXEV3CPT : Boolean := False; -- External Event 4 Capture EXEV4CPT : Boolean := False; -- External Event 5 Capture EXEV5CPT : Boolean := False; -- External Event 6 Capture EXEV6CPT : Boolean := False; -- External Event 7 Capture EXEV7CPT : Boolean := False; -- External Event 8 Capture EXEV8CPT : Boolean := False; -- External Event 9 Capture EXEV9CPT : Boolean := False; -- External Event 10 Capture EXEV10CPT : Boolean := False; -- Timer A output 1 Set TA1SET : Boolean := False; -- Timer A output 1 Reset TA1RST : Boolean := False; -- Timer A Compare 1 TACMP : CPT2FCR_TACMP_Field := (As_Array => False, Val => 16#0#); -- Timer B output 1 Set TB1SET : Boolean := False; -- Timer B output 1 Reset TB1RST : Boolean := False; -- Timer B Compare 1 TBCMP : CPT2FCR_TBCMP_Field := (As_Array => False, Val => 16#0#); -- Timer C output 1 Set TC1SET : Boolean := False; -- Timer C output 1 Reset TC1RST : Boolean := False; -- Timer C Compare 1 TCCMP : CPT2FCR_TCCMP_Field := (As_Array => False, Val => 16#0#); -- Timer D output 1 Set TD1SET : Boolean := False; -- Timer D output 1 Reset TD1RST : Boolean := False; -- Timer D Compare 1 TDCMP : CPT2FCR_TDCMP_Field := (As_Array => False, Val => 16#0#); -- TE1SET TE1SET : Boolean := False; -- TE1RST TE1RST : Boolean := False; -- TECMP1 TECMP : CPT2FCR_TECMP_Field := (As_Array => False, Val => 16#0#); end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for CPT2FCR_Register use record SWCPT at 0 range 0 .. 0; UDPCPT at 0 range 1 .. 1; EXEV1CPT at 0 range 2 .. 2; EXEV2CPT at 0 range 3 .. 3; EXEV3CPT at 0 range 4 .. 4; EXEV4CPT at 0 range 5 .. 5; EXEV5CPT at 0 range 6 .. 6; EXEV6CPT at 0 range 7 .. 7; EXEV7CPT at 0 range 8 .. 8; EXEV8CPT at 0 range 9 .. 9; EXEV9CPT at 0 range 10 .. 10; EXEV10CPT at 0 range 11 .. 11; TA1SET at 0 range 12 .. 12; TA1RST at 0 range 13 .. 13; TACMP at 0 range 14 .. 15; TB1SET at 0 range 16 .. 16; TB1RST at 0 range 17 .. 17; TBCMP at 0 range 18 .. 19; TC1SET at 0 range 20 .. 20; TC1RST at 0 range 21 .. 21; TCCMP at 0 range 22 .. 23; TD1SET at 0 range 24 .. 24; TD1RST at 0 range 25 .. 25; TDCMP at 0 range 26 .. 27; TE1SET at 0 range 28 .. 28; TE1RST at 0 range 29 .. 29; TECMP at 0 range 30 .. 31; end record; subtype OUTFR_FAULT1_Field is HAL.UInt2; subtype OUTFR_DLYPRT_Field is HAL.UInt3; subtype OUTFR_FAULT2_Field is HAL.UInt2; -- Timerx Output Register type OUTFR_Register is record -- unspecified Reserved_0_0 : HAL.Bit := 16#0#; -- Output 1 polarity POL1 : Boolean := False; -- Output 1 Idle mode IDLEM1 : Boolean := False; -- Output 1 Idle State IDLES1 : Boolean := False; -- Output 1 Fault state FAULT1 : OUTFR_FAULT1_Field := 16#0#; -- Output 1 Chopper enable CHP1 : Boolean := False; -- Output 1 Deadtime upon burst mode Idle entry DIDL1 : Boolean := False; -- Deadtime enable DTEN : Boolean := False; -- Delayed Protection Enable DLYPRTEN : Boolean := False; -- Delayed Protection DLYPRT : OUTFR_DLYPRT_Field := 16#0#; -- unspecified Reserved_13_13 : HAL.Bit := 16#0#; -- Balanced Idle Automatic Resume BIAR : Boolean := False; -- unspecified Reserved_15_16 : HAL.UInt2 := 16#0#; -- Output 2 polarity POL2 : Boolean := False; -- Output 2 Idle mode IDLEM2 : Boolean := False; -- Output 2 Idle State IDLES2 : Boolean := False; -- Output 2 Fault state FAULT2 : OUTFR_FAULT2_Field := 16#0#; -- Output 2 Chopper enable CHP2 : Boolean := False; -- Output 2 Deadtime upon burst mode Idle entry DIDL2 : Boolean := False; -- unspecified Reserved_24_31 : HAL.UInt8 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for OUTFR_Register use record Reserved_0_0 at 0 range 0 .. 0; POL1 at 0 range 1 .. 1; IDLEM1 at 0 range 2 .. 2; IDLES1 at 0 range 3 .. 3; FAULT1 at 0 range 4 .. 5; CHP1 at 0 range 6 .. 6; DIDL1 at 0 range 7 .. 7; DTEN at 0 range 8 .. 8; DLYPRTEN at 0 range 9 .. 9; DLYPRT at 0 range 10 .. 12; Reserved_13_13 at 0 range 13 .. 13; BIAR at 0 range 14 .. 14; Reserved_15_16 at 0 range 15 .. 16; POL2 at 0 range 17 .. 17; IDLEM2 at 0 range 18 .. 18; IDLES2 at 0 range 19 .. 19; FAULT2 at 0 range 20 .. 21; CHP2 at 0 range 22 .. 22; DIDL2 at 0 range 23 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; -- Timerx Fault Register type FLTFR_Register is record -- Fault 1 enable FLT1EN : Boolean := False; -- Fault 2 enable FLT2EN : Boolean := False; -- Fault 3 enable FLT3EN : Boolean := False; -- Fault 4 enable FLT4EN : Boolean := False; -- Fault 5 enable FLT5EN : Boolean := False; -- Fault 6 enable FLT6EN : Boolean := False; -- unspecified Reserved_6_30 : HAL.UInt25 := 16#0#; -- Fault sources Lock FLTLCK : Boolean := False; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for FLTFR_Register use record FLT1EN at 0 range 0 .. 0; FLT2EN at 0 range 1 .. 1; FLT3EN at 0 range 2 .. 2; FLT4EN at 0 range 3 .. 3; FLT5EN at 0 range 4 .. 4; FLT6EN at 0 range 5 .. 5; Reserved_6_30 at 0 range 6 .. 30; FLTLCK at 0 range 31 .. 31; end record; subtype TIMFCR2_ROM_Field is HAL.UInt2; subtype TIMFCR2_OUTROM_Field is HAL.UInt2; subtype TIMFCR2_ADROM_Field is HAL.UInt2; subtype TIMFCR2_BMROM_Field is HAL.UInt2; subtype TIMFCR2_FEROM_Field is HAL.UInt2; -- TIMFCR2_GTCMP array type TIMFCR2_GTCMP_Field_Array is array (1 .. 2) of Boolean with Component_Size => 1, Size => 2; -- Type definition for TIMFCR2_GTCMP type TIMFCR2_GTCMP_Field (As_Array : Boolean := False) is record case As_Array is when False => -- GTCMP as a value Val : HAL.UInt2; when True => -- GTCMP as an array Arr : TIMFCR2_GTCMP_Field_Array; end case; end record with Unchecked_Union, Size => 2; for TIMFCR2_GTCMP_Field use record Val at 0 range 0 .. 1; Arr at 0 range 0 .. 1; end record; -- HRTIM Timerx Control Register 2 type TIMFCR2_Register is record -- Dual Channel DAC trigger enable DCDE : Boolean := False; -- Dual Channel DAC Step trigger DCDS : Boolean := False; -- Dual Channel DAC Reset trigger DCDR : Boolean := False; -- unspecified Reserved_3_3 : HAL.Bit := 16#0#; -- Up-Down Mode UDM : Boolean := False; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- Roll-Over Mode ROM : TIMFCR2_ROM_Field := 16#0#; -- Output Roll-Over Mode OUTROM : TIMFCR2_OUTROM_Field := 16#0#; -- ADC Roll-Over Mode ADROM : TIMFCR2_ADROM_Field := 16#0#; -- Burst Mode Roll-Over Mode BMROM : TIMFCR2_BMROM_Field := 16#0#; -- Fault and Event Roll-Over Mode FEROM : TIMFCR2_FEROM_Field := 16#0#; -- Greater than Compare 1 PWM mode GTCMP : TIMFCR2_GTCMP_Field := (As_Array => False, Val => 16#0#); -- unspecified Reserved_18_19 : HAL.UInt2 := 16#0#; -- Triggered-half mode TRGHLF : Boolean := False; -- unspecified Reserved_21_31 : HAL.UInt11 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for TIMFCR2_Register use record DCDE at 0 range 0 .. 0; DCDS at 0 range 1 .. 1; DCDR at 0 range 2 .. 2; Reserved_3_3 at 0 range 3 .. 3; UDM at 0 range 4 .. 4; Reserved_5_5 at 0 range 5 .. 5; ROM at 0 range 6 .. 7; OUTROM at 0 range 8 .. 9; ADROM at 0 range 10 .. 11; BMROM at 0 range 12 .. 13; FEROM at 0 range 14 .. 15; GTCMP at 0 range 16 .. 17; Reserved_18_19 at 0 range 18 .. 19; TRGHLF at 0 range 20 .. 20; Reserved_21_31 at 0 range 21 .. 31; end record; subtype EEFFR3_EEVASEL_Field is HAL.UInt4; subtype EEFFR3_EEVACNT_Field is HAL.UInt6; -- HRTIM Timerx External Event Filtering Register 3 type EEFFR3_Register is record -- External Event A Counter Enable EEVACE : Boolean := False; -- External Event A Counter Reset EEVACRES : Boolean := False; -- External Event A Reset Mode EEVARSTM : Boolean := False; -- unspecified Reserved_3_3 : HAL.Bit := 16#0#; -- External Event A Selection EEVASEL : EEFFR3_EEVASEL_Field := 16#0#; -- External Event A counter EEVACNT : EEFFR3_EEVACNT_Field := 16#0#; -- unspecified Reserved_14_31 : HAL.UInt18 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for EEFFR3_Register use record EEVACE at 0 range 0 .. 0; EEVACRES at 0 range 1 .. 1; EEVARSTM at 0 range 2 .. 2; Reserved_3_3 at 0 range 3 .. 3; EEVASEL at 0 range 4 .. 7; EEVACNT at 0 range 8 .. 13; Reserved_14_31 at 0 range 14 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- High Resolution Timer: Common functions type HRTIM_Common_Peripheral is record -- Control Register 1 CR1 : aliased CR1_Register; -- Control Register 2 CR2 : aliased CR2_Register; -- Interrupt Status Register ISR : aliased ISR_Register; -- Interrupt Clear Register ICR : aliased ICR_Register; -- Interrupt Enable Register IER : aliased IER_Register; -- Output Enable Register OENR : aliased OENR_Register; -- ODISR ODISR : aliased ODISR_Register; -- Output Disable Status Register ODSR : aliased ODSR_Register; -- Burst Mode Control Register BMCR : aliased BMCR_Register; -- BMTRG BMTRG : aliased BMTRG_Register; -- BMCMPR BMCMPR : aliased BMCMPR_Register; -- Burst Mode Period Register BMPER : aliased BMPER_Register; -- Timer External Event Control Register 1 EECR1 : aliased EECR1_Register; -- Timer External Event Control Register 2 EECR2 : aliased EECR2_Register; -- Timer External Event Control Register 3 EECR3 : aliased EECR3_Register; -- ADC Trigger 1 Register ADC1R : aliased ADC1R_Register; -- ADC Trigger 2 Register ADC2R : aliased ADC2R_Register; -- ADC Trigger 3 Register ADC3R : aliased ADC3R_Register; -- ADC Trigger 4 Register ADC4R : aliased ADC4R_Register; -- DLL Control Register DLLCR : aliased DLLCR_Register; -- HRTIM Fault Input Register 1 FLTINR1 : aliased FLTINR1_Register; -- HRTIM Fault Input Register 2 FLTINR2 : aliased FLTINR2_Register; -- BDMUPDR BDMUPDR : aliased BDMUPDR_Register; -- Burst DMA Timerx update Register BDTAUPR : aliased BDTAUPR_Register; -- Burst DMA Timerx update Register BDTBUPR : aliased BDTBUPR_Register; -- Burst DMA Timerx update Register BDTCUPR : aliased BDTCUPR_Register; -- Burst DMA Timerx update Register BDTDUPR : aliased BDTDUPR_Register; -- Burst DMA Timerx update Register BDTEUPR : aliased BDTEUPR_Register; -- Burst DMA Data Register BDMADR : aliased HAL.UInt32; -- Burst DMA Timerx update Register BDTFUPR : aliased BDTFUPR_Register; -- HRTIM ADC Extended Trigger Register ADCER : aliased ADCER_Register; -- HRTIM ADC Trigger Update Register ADCUR : aliased ADCUR_Register; -- HRTIM ADC Post Scaler Register 1 ADCPS1 : aliased ADCPS1_Register; -- HRTIM ADC Post Scaler Register 2 ADCPS2 : aliased ADCPS2_Register; -- HRTIM Fault Input Register 3 FLTINR3 : aliased FLTINR3_Register; -- HRTIM Fault Input Register 4 FLTINR4 : aliased FLTINR4_Register; end record with Volatile; for HRTIM_Common_Peripheral use record CR1 at 16#0# range 0 .. 31; CR2 at 16#4# range 0 .. 31; ISR at 16#8# range 0 .. 31; ICR at 16#C# range 0 .. 31; IER at 16#10# range 0 .. 31; OENR at 16#14# range 0 .. 31; ODISR at 16#18# range 0 .. 31; ODSR at 16#1C# range 0 .. 31; BMCR at 16#20# range 0 .. 31; BMTRG at 16#24# range 0 .. 31; BMCMPR at 16#28# range 0 .. 31; BMPER at 16#2C# range 0 .. 31; EECR1 at 16#30# range 0 .. 31; EECR2 at 16#34# range 0 .. 31; EECR3 at 16#38# range 0 .. 31; ADC1R at 16#3C# range 0 .. 31; ADC2R at 16#40# range 0 .. 31; ADC3R at 16#44# range 0 .. 31; ADC4R at 16#48# range 0 .. 31; DLLCR at 16#4C# range 0 .. 31; FLTINR1 at 16#50# range 0 .. 31; FLTINR2 at 16#54# range 0 .. 31; BDMUPDR at 16#58# range 0 .. 31; BDTAUPR at 16#5C# range 0 .. 31; BDTBUPR at 16#60# range 0 .. 31; BDTCUPR at 16#64# range 0 .. 31; BDTDUPR at 16#68# range 0 .. 31; BDTEUPR at 16#6C# range 0 .. 31; BDMADR at 16#70# range 0 .. 31; BDTFUPR at 16#74# range 0 .. 31; ADCER at 16#78# range 0 .. 31; ADCUR at 16#7C# range 0 .. 31; ADCPS1 at 16#80# range 0 .. 31; ADCPS2 at 16#84# range 0 .. 31; FLTINR3 at 16#88# range 0 .. 31; FLTINR4 at 16#8C# range 0 .. 31; end record; -- High Resolution Timer: Common functions HRTIM_Common_Periph : aliased HRTIM_Common_Peripheral with Import, Address => HRTIM_Common_Base; -- High Resolution Timer: Master Timers type HRTIM_Master_Peripheral is record -- Master Timer Control Register MCR : aliased MCR_Register; -- Master Timer Interrupt Status Register MISR : aliased MISR_Register; -- Master Timer Interrupt Clear Register MICR : aliased MICR_Register; -- HRTIM Master Timer DMA / Interrupt Enable Register MDIER : aliased MDIER_Register; -- Master Timer Counter Register MCNTR : aliased MCNTR_Register; -- Master Timer Period Register MPER : aliased MPER_Register; -- Master Timer Repetition Register MREP : aliased MREP_Register; -- Master Timer Compare 1 Register MCMP1R : aliased MCMP1R_Register; -- Master Timer Compare 2 Register MCMP2R : aliased MCMP2R_Register; -- Master Timer Compare 3 Register MCMP3R : aliased MCMP3R_Register; -- Master Timer Compare 4 Register MCMP4R : aliased MCMP4R_Register; end record with Volatile; for HRTIM_Master_Peripheral use record MCR at 16#0# range 0 .. 31; MISR at 16#4# range 0 .. 31; MICR at 16#8# range 0 .. 31; MDIER at 16#C# range 0 .. 31; MCNTR at 16#10# range 0 .. 31; MPER at 16#14# range 0 .. 31; MREP at 16#18# range 0 .. 31; MCMP1R at 16#1C# range 0 .. 31; MCMP2R at 16#24# range 0 .. 31; MCMP3R at 16#28# range 0 .. 31; MCMP4R at 16#2C# range 0 .. 31; end record; -- High Resolution Timer: Master Timers HRTIM_Master_Periph : aliased HRTIM_Master_Peripheral with Import, Address => HRTIM_Master_Base; -- High Resolution Timer: TIMA type HRTIM_TIMA_Peripheral is record -- Timerx Control Register TIMACR : aliased TIMACR_Register; -- Timerx Interrupt Status Register TIMAISR : aliased TIMAISR_Register; -- Timerx Interrupt Clear Register TIMAICR : aliased TIMAICR_Register; -- TIMxDIER TIMADIER : aliased TIMADIER_Register; -- Timerx Counter Register CNTAR : aliased CNTAR_Register; -- Timerx Period Register PERAR : aliased PERAR_Register; -- Timerx Repetition Register REPAR : aliased REPAR_Register; -- Timerx Compare 1 Register CMP1AR : aliased CMP1AR_Register; -- Timerx Compare 1 Compound Register CMP1CAR : aliased CMP1CAR_Register; -- Timerx Compare 2 Register CMP2AR : aliased CMP2AR_Register; -- Timerx Compare 3 Register CMP3AR : aliased CMP3AR_Register; -- Timerx Compare 4 Register CMP4AR : aliased CMP4AR_Register; -- Timerx Capture 1 Register CPT1AR : aliased CPT1AR_Register; -- Timerx Capture 2 Register CPT2AR : aliased CPT2AR_Register; -- Timerx Deadtime Register DTAR : aliased DTAR_Register; -- Timerx Output1 Set Register SETA1R : aliased SETA1R_Register; -- Timerx Output1 Reset Register RSTA1R : aliased RSTA1R_Register; -- Timerx Output2 Set Register SETA2R : aliased SETA2R_Register; -- Timerx Output2 Reset Register RSTA2R : aliased RSTA2R_Register; -- Timerx External Event Filtering Register 1 EEFAR1 : aliased EEFAR1_Register; -- Timerx External Event Filtering Register 2 EEFAR2 : aliased EEFAR2_Register; -- TimerA Reset Register RSTAR : aliased RSTAR_Register; -- Timerx Chopper Register CHPAR : aliased CHPAR_Register; -- Timerx Capture 1 Control Register CPT1ACR : aliased CPT1ACR_Register; -- Timerx Capture 2 Control Register CPT2ACR : aliased CPT2ACR_Register; -- Timerx Output Register OUTAR : aliased OUTAR_Register; -- Timerx Fault Register FLTAR : aliased FLTAR_Register; -- HRTIM Timerx Control Register 2 TIMACR2 : aliased TIMACR2_Register; -- HRTIM Timerx External Event Filtering Register 3 EEFAR3 : aliased EEFAR3_Register; end record with Volatile; for HRTIM_TIMA_Peripheral use record TIMACR at 16#0# range 0 .. 31; TIMAISR at 16#4# range 0 .. 31; TIMAICR at 16#8# range 0 .. 31; TIMADIER at 16#C# range 0 .. 31; CNTAR at 16#10# range 0 .. 31; PERAR at 16#14# range 0 .. 31; REPAR at 16#18# range 0 .. 31; CMP1AR at 16#1C# range 0 .. 31; CMP1CAR at 16#20# range 0 .. 31; CMP2AR at 16#24# range 0 .. 31; CMP3AR at 16#28# range 0 .. 31; CMP4AR at 16#2C# range 0 .. 31; CPT1AR at 16#30# range 0 .. 31; CPT2AR at 16#34# range 0 .. 31; DTAR at 16#38# range 0 .. 31; SETA1R at 16#3C# range 0 .. 31; RSTA1R at 16#40# range 0 .. 31; SETA2R at 16#44# range 0 .. 31; RSTA2R at 16#48# range 0 .. 31; EEFAR1 at 16#4C# range 0 .. 31; EEFAR2 at 16#50# range 0 .. 31; RSTAR at 16#54# range 0 .. 31; CHPAR at 16#58# range 0 .. 31; CPT1ACR at 16#5C# range 0 .. 31; CPT2ACR at 16#60# range 0 .. 31; OUTAR at 16#64# range 0 .. 31; FLTAR at 16#68# range 0 .. 31; TIMACR2 at 16#6C# range 0 .. 31; EEFAR3 at 16#70# range 0 .. 31; end record; -- High Resolution Timer: TIMA HRTIM_TIMA_Periph : aliased HRTIM_TIMA_Peripheral with Import, Address => HRTIM_TIMA_Base; -- High Resolution Timer: TIMB type HRTIM_TIMB_Peripheral is record -- Timerx Control Register TIMBCR : aliased TIMBCR_Register; -- Timerx Interrupt Status Register TIMBISR : aliased TIMBISR_Register; -- Timerx Interrupt Clear Register TIMBICR : aliased TIMBICR_Register; -- TIMxDIER TIMBDIER : aliased TIMBDIER_Register; -- Timerx Counter Register CNTR : aliased CNTR_Register; -- Timerx Period Register PERBR : aliased PERBR_Register; -- Timerx Repetition Register REPBR : aliased REPBR_Register; -- Timerx Compare 1 Register CMP1BR : aliased CMP1BR_Register; -- Timerx Compare 1 Compound Register CMP1CBR : aliased CMP1CBR_Register; -- Timerx Compare 2 Register CMP2BR : aliased CMP2BR_Register; -- Timerx Compare 3 Register CMP3BR : aliased CMP3BR_Register; -- Timerx Compare 4 Register CMP4BR : aliased CMP4BR_Register; -- Timerx Capture 1 Register CPT1BR : aliased CPT1BR_Register; -- Timerx Capture 2 Register CPT2BR : aliased CPT2BR_Register; -- Timerx Deadtime Register DTBR : aliased DTBR_Register; -- Timerx Output1 Set Register SETB1R : aliased SETB1R_Register; -- Timerx Output1 Reset Register RSTB1R : aliased RSTB1R_Register; -- Timerx Output2 Set Register SETB2R : aliased SETB2R_Register; -- Timerx Output2 Reset Register RSTB2R : aliased RSTB2R_Register; -- Timerx External Event Filtering Register 1 EEFBR1 : aliased EEFBR1_Register; -- Timerx External Event Filtering Register 2 EEFBR2 : aliased EEFBR2_Register; -- TimerA Reset Register RSTBR : aliased RSTBR_Register; -- Timerx Chopper Register CHPBR : aliased CHPBR_Register; -- Timerx Capture 1 Control Register CPT1BCR : aliased CPT1BCR_Register; -- Timerx Capture 2 Control Register CPT2BCR : aliased CPT2BCR_Register; -- Timerx Output Register OUTBR : aliased OUTBR_Register; -- Timerx Fault Register FLTBR : aliased FLTBR_Register; -- HRTIM Timerx Control Register 2 TIMBCR2 : aliased TIMBCR2_Register; -- HRTIM Timerx External Event Filtering Register 3 EEFBR3 : aliased EEFBR3_Register; end record with Volatile; for HRTIM_TIMB_Peripheral use record TIMBCR at 16#0# range 0 .. 31; TIMBISR at 16#4# range 0 .. 31; TIMBICR at 16#8# range 0 .. 31; TIMBDIER at 16#C# range 0 .. 31; CNTR at 16#10# range 0 .. 31; PERBR at 16#14# range 0 .. 31; REPBR at 16#18# range 0 .. 31; CMP1BR at 16#1C# range 0 .. 31; CMP1CBR at 16#20# range 0 .. 31; CMP2BR at 16#24# range 0 .. 31; CMP3BR at 16#28# range 0 .. 31; CMP4BR at 16#2C# range 0 .. 31; CPT1BR at 16#30# range 0 .. 31; CPT2BR at 16#34# range 0 .. 31; DTBR at 16#38# range 0 .. 31; SETB1R at 16#3C# range 0 .. 31; RSTB1R at 16#40# range 0 .. 31; SETB2R at 16#44# range 0 .. 31; RSTB2R at 16#48# range 0 .. 31; EEFBR1 at 16#4C# range 0 .. 31; EEFBR2 at 16#50# range 0 .. 31; RSTBR at 16#54# range 0 .. 31; CHPBR at 16#58# range 0 .. 31; CPT1BCR at 16#5C# range 0 .. 31; CPT2BCR at 16#60# range 0 .. 31; OUTBR at 16#64# range 0 .. 31; FLTBR at 16#68# range 0 .. 31; TIMBCR2 at 16#6C# range 0 .. 31; EEFBR3 at 16#70# range 0 .. 31; end record; -- High Resolution Timer: TIMB HRTIM_TIMB_Periph : aliased HRTIM_TIMB_Peripheral with Import, Address => HRTIM_TIMB_Base; -- High Resolution Timer: TIMC type HRTIM_TIMC_Peripheral is record -- Timerx Control Register TIMCCR : aliased TIMCCR_Register; -- Timerx Interrupt Status Register TIMCISR : aliased TIMCISR_Register; -- Timerx Interrupt Clear Register TIMCICR : aliased TIMCICR_Register; -- TIMxDIER TIMCDIER : aliased TIMCDIER_Register; -- Timerx Counter Register CNTCR : aliased CNTCR_Register; -- Timerx Period Register PERCR : aliased PERCR_Register; -- Timerx Repetition Register REPCR : aliased REPCR_Register; -- Timerx Compare 1 Register CMP1CR : aliased CMP1CR_Register; -- Timerx Compare 1 Compound Register CMP1CCR : aliased CMP1CCR_Register; -- Timerx Compare 2 Register CMP2CR : aliased CMP2CR_Register; -- Timerx Compare 3 Register CMP3CR : aliased CMP3CR_Register; -- Timerx Compare 4 Register CMP4CR : aliased CMP4CR_Register; -- Timerx Capture 1 Register CPT1CR : aliased CPT1CR_Register; -- Timerx Capture 2 Register CPT2CR : aliased CPT2CR_Register; -- Timerx Deadtime Register DTCR : aliased DTCR_Register; -- Timerx Output1 Set Register SETC1R : aliased SETC1R_Register; -- Timerx Output1 Reset Register RSTC1R : aliased RSTC1R_Register; -- Timerx Output2 Set Register SETC2R : aliased SETC2R_Register; -- Timerx Output2 Reset Register RSTC2R : aliased RSTC2R_Register; -- Timerx External Event Filtering Register 1 EEFCR1 : aliased EEFCR1_Register; -- Timerx External Event Filtering Register 2 EEFCR2 : aliased EEFCR2_Register; -- TimerA Reset Register RSTCR : aliased RSTCR_Register; -- Timerx Chopper Register CHPCR : aliased CHPCR_Register; -- Timerx Capture 1 Control Register CPT1CCR : aliased CPT1CCR_Register; -- Timerx Capture 2 Control Register CPT2CCR : aliased CPT2CCR_Register; -- Timerx Output Register OUTCR : aliased OUTCR_Register; -- Timerx Fault Register FLTCR : aliased FLTCR_Register; -- HRTIM Timerx Control Register 2 TIMCCR2 : aliased TIMCCR2_Register; -- HRTIM Timerx External Event Filtering Register 3 EEFCR3 : aliased EEFCR3_Register; end record with Volatile; for HRTIM_TIMC_Peripheral use record TIMCCR at 16#0# range 0 .. 31; TIMCISR at 16#4# range 0 .. 31; TIMCICR at 16#8# range 0 .. 31; TIMCDIER at 16#C# range 0 .. 31; CNTCR at 16#10# range 0 .. 31; PERCR at 16#14# range 0 .. 31; REPCR at 16#18# range 0 .. 31; CMP1CR at 16#1C# range 0 .. 31; CMP1CCR at 16#20# range 0 .. 31; CMP2CR at 16#24# range 0 .. 31; CMP3CR at 16#28# range 0 .. 31; CMP4CR at 16#2C# range 0 .. 31; CPT1CR at 16#30# range 0 .. 31; CPT2CR at 16#34# range 0 .. 31; DTCR at 16#38# range 0 .. 31; SETC1R at 16#3C# range 0 .. 31; RSTC1R at 16#40# range 0 .. 31; SETC2R at 16#44# range 0 .. 31; RSTC2R at 16#48# range 0 .. 31; EEFCR1 at 16#4C# range 0 .. 31; EEFCR2 at 16#50# range 0 .. 31; RSTCR at 16#54# range 0 .. 31; CHPCR at 16#58# range 0 .. 31; CPT1CCR at 16#5C# range 0 .. 31; CPT2CCR at 16#60# range 0 .. 31; OUTCR at 16#64# range 0 .. 31; FLTCR at 16#68# range 0 .. 31; TIMCCR2 at 16#6C# range 0 .. 31; EEFCR3 at 16#70# range 0 .. 31; end record; -- High Resolution Timer: TIMC HRTIM_TIMC_Periph : aliased HRTIM_TIMC_Peripheral with Import, Address => HRTIM_TIMC_Base; -- High Resolution Timer: TIMD type HRTIM_TIMD_Peripheral is record -- Timerx Control Register TIMDCR : aliased TIMDCR_Register; -- Timerx Interrupt Status Register TIMDISR : aliased TIMDISR_Register; -- Timerx Interrupt Clear Register TIMDICR : aliased TIMDICR_Register; -- TIMxDIER TIMDDIER : aliased TIMDDIER_Register; -- Timerx Counter Register CNTDR : aliased CNTDR_Register; -- Timerx Period Register PERDR : aliased PERDR_Register; -- Timerx Repetition Register REPDR : aliased REPDR_Register; -- Timerx Compare 1 Register CMP1DR : aliased CMP1DR_Register; -- Timerx Compare 1 Compound Register CMP1CDR : aliased CMP1CDR_Register; -- Timerx Compare 2 Register CMP2DR : aliased CMP2DR_Register; -- Timerx Compare 3 Register CMP3DR : aliased CMP3DR_Register; -- Timerx Compare 4 Register CMP4DR : aliased CMP4DR_Register; -- Timerx Capture 1 Register CPT1DR : aliased CPT1DR_Register; -- Timerx Capture 2 Register CPT2DR : aliased CPT2DR_Register; -- Timerx Deadtime Register DTDR : aliased DTDR_Register; -- Timerx Output1 Set Register SETD1R : aliased SETD1R_Register; -- Timerx Output1 Reset Register RSTD1R : aliased RSTD1R_Register; -- Timerx Output2 Set Register SETD2R : aliased SETD2R_Register; -- Timerx Output2 Reset Register RSTD2R : aliased RSTD2R_Register; -- Timerx External Event Filtering Register 1 EEFDR1 : aliased EEFDR1_Register; -- Timerx External Event Filtering Register 2 EEFDR2 : aliased EEFDR2_Register; -- TimerA Reset Register RSTDR : aliased RSTDR_Register; -- Timerx Chopper Register CHPDR : aliased CHPDR_Register; -- Timerx Capture 1 Control Register CPT1DCR : aliased CPT1DCR_Register; -- Timerx Capture 2 Control Register CPT2DCR : aliased CPT2DCR_Register; -- Timerx Output Register OUTDR : aliased OUTDR_Register; -- Timerx Fault Register FLTDR : aliased FLTDR_Register; -- HRTIM Timerx Control Register 2 TIMDCR2 : aliased TIMDCR2_Register; -- HRTIM Timerx External Event Filtering Register 3 EEFDR3 : aliased EEFDR3_Register; end record with Volatile; for HRTIM_TIMD_Peripheral use record TIMDCR at 16#0# range 0 .. 31; TIMDISR at 16#4# range 0 .. 31; TIMDICR at 16#8# range 0 .. 31; TIMDDIER at 16#C# range 0 .. 31; CNTDR at 16#10# range 0 .. 31; PERDR at 16#14# range 0 .. 31; REPDR at 16#18# range 0 .. 31; CMP1DR at 16#1C# range 0 .. 31; CMP1CDR at 16#20# range 0 .. 31; CMP2DR at 16#24# range 0 .. 31; CMP3DR at 16#28# range 0 .. 31; CMP4DR at 16#2C# range 0 .. 31; CPT1DR at 16#30# range 0 .. 31; CPT2DR at 16#34# range 0 .. 31; DTDR at 16#38# range 0 .. 31; SETD1R at 16#3C# range 0 .. 31; RSTD1R at 16#40# range 0 .. 31; SETD2R at 16#44# range 0 .. 31; RSTD2R at 16#48# range 0 .. 31; EEFDR1 at 16#4C# range 0 .. 31; EEFDR2 at 16#50# range 0 .. 31; RSTDR at 16#54# range 0 .. 31; CHPDR at 16#58# range 0 .. 31; CPT1DCR at 16#5C# range 0 .. 31; CPT2DCR at 16#60# range 0 .. 31; OUTDR at 16#64# range 0 .. 31; FLTDR at 16#68# range 0 .. 31; TIMDCR2 at 16#6C# range 0 .. 31; EEFDR3 at 16#70# range 0 .. 31; end record; -- High Resolution Timer: TIMD HRTIM_TIMD_Periph : aliased HRTIM_TIMD_Peripheral with Import, Address => HRTIM_TIMD_Base; -- High Resolution Timer: TIME type HRTIM_TIME_Peripheral is record -- Timerx Control Register TIMECR : aliased TIMECR_Register; -- Timerx Interrupt Status Register TIMEISR : aliased TIMEISR_Register; -- Timerx Interrupt Clear Register TIMEICR : aliased TIMEICR_Register; -- TIMxDIER TIMEDIER : aliased TIMEDIER_Register; -- Timerx Counter Register CNTER : aliased CNTER_Register; -- Timerx Period Register PERER : aliased PERER_Register; -- Timerx Repetition Register REPER : aliased REPER_Register; -- Timerx Compare 1 Register CMP1ER : aliased CMP1ER_Register; -- Timerx Compare 1 Compound Register CMP1CER : aliased CMP1CER_Register; -- Timerx Compare 2 Register CMP2ER : aliased CMP2ER_Register; -- Timerx Compare 3 Register CMP3ER : aliased CMP3ER_Register; -- Timerx Compare 4 Register CMP4ER : aliased CMP4ER_Register; -- Timerx Capture 1 Register CPT1ER : aliased CPT1ER_Register; -- Timerx Capture 2 Register CPT2ER : aliased CPT2ER_Register; -- Timerx Deadtime Register DTER : aliased DTER_Register; -- Timerx Output1 Set Register SETE1R : aliased SETE1R_Register; -- Timerx Output1 Reset Register RSTE1R : aliased RSTE1R_Register; -- Timerx Output2 Set Register SETE2R : aliased SETE2R_Register; -- Timerx Output2 Reset Register RSTE2R : aliased RSTE2R_Register; -- Timerx External Event Filtering Register 1 EEFER1 : aliased EEFER1_Register; -- Timerx External Event Filtering Register 2 EEFER2 : aliased EEFER2_Register; -- TimerA Reset Register RSTER : aliased RSTER_Register; -- Timerx Chopper Register CHPER : aliased CHPER_Register; -- Timerx Capture 1 Control Register CPT1ECR : aliased CPT1ECR_Register; -- Timerx Capture 2 Control Register CPT2ECR : aliased CPT2ECR_Register; -- Timerx Output Register OUTER : aliased OUTER_Register; -- Timerx Fault Register FLTER : aliased FLTER_Register; -- HRTIM Timerx Control Register 2 TIMECR2 : aliased TIMECR2_Register; -- HRTIM Timerx External Event Filtering Register 3 EEFER3 : aliased EEFER3_Register; end record with Volatile; for HRTIM_TIME_Peripheral use record TIMECR at 16#0# range 0 .. 31; TIMEISR at 16#4# range 0 .. 31; TIMEICR at 16#8# range 0 .. 31; TIMEDIER at 16#C# range 0 .. 31; CNTER at 16#10# range 0 .. 31; PERER at 16#14# range 0 .. 31; REPER at 16#18# range 0 .. 31; CMP1ER at 16#1C# range 0 .. 31; CMP1CER at 16#20# range 0 .. 31; CMP2ER at 16#24# range 0 .. 31; CMP3ER at 16#28# range 0 .. 31; CMP4ER at 16#2C# range 0 .. 31; CPT1ER at 16#30# range 0 .. 31; CPT2ER at 16#34# range 0 .. 31; DTER at 16#38# range 0 .. 31; SETE1R at 16#3C# range 0 .. 31; RSTE1R at 16#40# range 0 .. 31; SETE2R at 16#44# range 0 .. 31; RSTE2R at 16#48# range 0 .. 31; EEFER1 at 16#4C# range 0 .. 31; EEFER2 at 16#50# range 0 .. 31; RSTER at 16#54# range 0 .. 31; CHPER at 16#58# range 0 .. 31; CPT1ECR at 16#5C# range 0 .. 31; CPT2ECR at 16#60# range 0 .. 31; OUTER at 16#64# range 0 .. 31; FLTER at 16#68# range 0 .. 31; TIMECR2 at 16#6C# range 0 .. 31; EEFER3 at 16#70# range 0 .. 31; end record; -- High Resolution Timer: TIME HRTIM_TIME_Periph : aliased HRTIM_TIME_Peripheral with Import, Address => HRTIM_TIME_Base; -- High Resolution Timer: TIMF type HRTIM_TIMF_Peripheral is record -- Timerx Control Register TIMFCR : aliased TIMFCR_Register; -- Timerx Interrupt Status Register TIMFISR : aliased TIMFISR_Register; -- Timerx Interrupt Clear Register TIMFICR : aliased TIMFICR_Register; -- TIMxDIER TIMFDIER : aliased TIMFDIER_Register; -- Timerx Counter Register CNTFR : aliased CNTFR_Register; -- Timerx Period Register PERFR : aliased PERFR_Register; -- Timerx Repetition Register REPFR : aliased REPFR_Register; -- Timerx Compare 1 Register CMP1FR : aliased CMP1FR_Register; -- Timerx Compare 1 Compound Register CMP1CFR : aliased CMP1CFR_Register; -- Timerx Compare 2 Register CMP2FR : aliased CMP2FR_Register; -- Timerx Compare 3 Register CMP3FR : aliased CMP3FR_Register; -- Timerx Compare 4 Register CMP4FR : aliased CMP4FR_Register; -- Timerx Capture 1 Register CPT1FR : aliased CPT1FR_Register; -- Timerx Capture 2 Register CPT2FR : aliased CPT2FR_Register; -- Timerx Deadtime Register DTFR : aliased DTFR_Register; -- Timerx Output1 Set Register SETF1R : aliased SETF1R_Register; -- Timerx Output1 Reset Register RSTE1R : aliased RSTE1R_Register; -- Timerx Output2 Set Register SETF2R : aliased SETF2R_Register; -- Timerx Output2 Reset Register RSTF2R : aliased RSTF2R_Register; -- Timerx External Event Filtering Register 1 EEFFR1 : aliased EEFFR1_Register; -- Timerx External Event Filtering Register 2 EEFFR2 : aliased EEFFR2_Register; -- TimerA Reset Register RSTFR : aliased RSTFR_Register; -- Timerx Chopper Register CHPFR : aliased CHPFR_Register; -- Timerx Capture 1 Control Register CPT1FCR : aliased CPT1FCR_Register; -- Timerx Capture 2 Control Register CPT2FCR : aliased CPT2FCR_Register; -- Timerx Output Register OUTFR : aliased OUTFR_Register; -- Timerx Fault Register FLTFR : aliased FLTFR_Register; -- HRTIM Timerx Control Register 2 TIMFCR2 : aliased TIMFCR2_Register; -- HRTIM Timerx External Event Filtering Register 3 EEFFR3 : aliased EEFFR3_Register; end record with Volatile; for HRTIM_TIMF_Peripheral use record TIMFCR at 16#0# range 0 .. 31; TIMFISR at 16#4# range 0 .. 31; TIMFICR at 16#8# range 0 .. 31; TIMFDIER at 16#C# range 0 .. 31; CNTFR at 16#10# range 0 .. 31; PERFR at 16#14# range 0 .. 31; REPFR at 16#18# range 0 .. 31; CMP1FR at 16#1C# range 0 .. 31; CMP1CFR at 16#20# range 0 .. 31; CMP2FR at 16#24# range 0 .. 31; CMP3FR at 16#28# range 0 .. 31; CMP4FR at 16#2C# range 0 .. 31; CPT1FR at 16#30# range 0 .. 31; CPT2FR at 16#34# range 0 .. 31; DTFR at 16#38# range 0 .. 31; SETF1R at 16#3C# range 0 .. 31; RSTE1R at 16#40# range 0 .. 31; SETF2R at 16#44# range 0 .. 31; RSTF2R at 16#48# range 0 .. 31; EEFFR1 at 16#4C# range 0 .. 31; EEFFR2 at 16#50# range 0 .. 31; RSTFR at 16#54# range 0 .. 31; CHPFR at 16#58# range 0 .. 31; CPT1FCR at 16#5C# range 0 .. 31; CPT2FCR at 16#60# range 0 .. 31; OUTFR at 16#64# range 0 .. 31; FLTFR at 16#68# range 0 .. 31; TIMFCR2 at 16#6C# range 0 .. 31; EEFFR3 at 16#70# range 0 .. 31; end record; -- High Resolution Timer: TIMF HRTIM_TIMF_Periph : aliased HRTIM_TIMF_Peripheral with Import, Address => HRTIM_TIMF_Base; end STM32_SVD.HRTIM;
31.980975
76
0.560837
2fd44c0893ef63963c759e6536a9cceac9d4ed65
142
adb
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/varsize3_5.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/varsize3_5.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/varsize3_5.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- { dg-do compile } with Varsize3_Pkg1; use Varsize3_Pkg1; procedure Varsize3_5 is Filter : constant Arr := True.E; begin null; end;
11.833333
38
0.697183
1dc53a5c67edf6551d5e935a27e1a4749f197f35
11,319
ads
Ada
zfp-gba/gnat/s-stalib.ads
98devin/ada-gba-dev
6ebca014b7537117144d878db8d13db49aa00cee
[ "Zlib" ]
7
2021-04-08T02:32:54.000Z
2022-02-14T01:21:43.000Z
zfp-gba/gnat/s-stalib.ads
98devin/ada-gba-dev
6ebca014b7537117144d878db8d13db49aa00cee
[ "Zlib" ]
15
2021-04-09T20:13:33.000Z
2021-12-22T01:03:59.000Z
zfp-gba/gnat/s-stalib.ads
98devin/ada-gba-dev
6ebca014b7537117144d878db8d13db49aa00cee
[ "Zlib" ]
1
2021-06-12T07:48:05.000Z
2021-06-12T07:48:05.000Z
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . S T A N D A R D _ L I B R A R Y -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2020, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- SweetAda SFP cutted-down version -- ------------------------------------------------------------------------------ -- This package is included in all programs. It contains declarations that -- are required to be part of every Ada program. A special mechanism is -- required to ensure that these are loaded, since it may be the case in -- some programs that the only references to these required packages are -- from C code or from code generated directly by Gigi, and in both cases -- the binder is not aware of such references. -- System.Standard_Library also includes data that must be present in every -- program, in particular data for all the standard exceptions, and also some -- subprograms that must be present in every program. -- The binder unconditionally includes s-stalib.ali, which ensures that this -- package and the packages it references are included in all Ada programs, -- together with the included data. pragma Compiler_Unit_Warning; -- with Ada.Unchecked_Conversion; package System.Standard_Library is -- Historical note: pragma Preelaborate was surrounded by a pair of pragma -- Warnings (Off/On) to circumvent a bootstrap issue. pragma Preelaborate; ------------------------------------- -- Exception Declarations and Data -- ------------------------------------- type Raise_Action is access procedure; pragma Favor_Top_Level (Raise_Action); -- A pointer to a procedure used in the Raise_Hook field type Exception_Data; type Exception_Data_Ptr is access all Exception_Data; -- An equivalent of Exception_Id that is public -- The following record defines the underlying representation of exceptions -- WARNING: Any changes to this may need to be reflected in the following -- locations in the compiler and runtime code: -- 1. The Internal_Exception routine in s-exctab.adb -- 2. The processing in gigi that tests Not_Handled_By_Others -- 3. Expand_N_Exception_Declaration in Exp_Ch11 -- 4. The construction of the exception type in Cstand type Exception_Data is record Not_Handled_By_Others : Boolean; -- Normally set False, indicating that the exception is handled in the -- usual way by others (i.e. an others handler handles the exception). -- Set True to indicate that this exception is not caught by others -- handlers, but must be explicitly named in a handler. This latter -- setting is currently used by the Abort_Signal. Lang : Character; -- A character indicating the language raising the exception. -- Set to "A" for exceptions defined by an Ada program. -- Set to "C" for imported C++ exceptions. Name_Length : Natural; -- Length of fully expanded name of exception Full_Name : System.Address; -- Fully expanded name of exception, null terminated -- You can use To_Ptr to convert this to a string. HTable_Ptr : Exception_Data_Ptr; -- Hash table pointer used to link entries together in the hash table -- built (by Register_Exception in s-exctab.adb) for converting between -- identities and names. Foreign_Data : Address; -- Data for imported exceptions. Not used in the Ada case. This -- represents the address of the RTTI for the C++ case. Raise_Hook : Raise_Action; -- This field can be used to place a "hook" on an exception. If the -- value is non-null, then it points to a procedure which is called -- whenever the exception is raised. This call occurs immediately, -- before any other actions taken by the raise (and in particular -- before any unwinding of the stack occurs). end record; -- Definitions for standard predefined exceptions defined in Standard, -- Why are the NULs necessary here, seems like they should not be -- required, since Gigi is supposed to add a Nul to each name ??? Constraint_Error_Name : constant String := "CONSTRAINT_ERROR" & ASCII.NUL; Program_Error_Name : constant String := "PROGRAM_ERROR" & ASCII.NUL; Storage_Error_Name : constant String := "STORAGE_ERROR" & ASCII.NUL; Tasking_Error_Name : constant String := "TASKING_ERROR" & ASCII.NUL; Abort_Signal_Name : constant String := "_ABORT_SIGNAL" & ASCII.NUL; Numeric_Error_Name : constant String := "NUMERIC_ERROR" & ASCII.NUL; -- This is used only in the Ada 83 case, but it is not worth having a -- separate version of s-stalib.ads for use in Ada 83 mode. Constraint_Error_Def : aliased Exception_Data := (Not_Handled_By_Others => False, Lang => 'A', Name_Length => Constraint_Error_Name'Length, Full_Name => Constraint_Error_Name'Address, HTable_Ptr => null, Foreign_Data => Null_Address, Raise_Hook => null); Numeric_Error_Def : aliased Exception_Data := (Not_Handled_By_Others => False, Lang => 'A', Name_Length => Numeric_Error_Name'Length, Full_Name => Numeric_Error_Name'Address, HTable_Ptr => null, Foreign_Data => Null_Address, Raise_Hook => null); Program_Error_Def : aliased Exception_Data := (Not_Handled_By_Others => False, Lang => 'A', Name_Length => Program_Error_Name'Length, Full_Name => Program_Error_Name'Address, HTable_Ptr => null, Foreign_Data => Null_Address, Raise_Hook => null); Storage_Error_Def : aliased Exception_Data := (Not_Handled_By_Others => False, Lang => 'A', Name_Length => Storage_Error_Name'Length, Full_Name => Storage_Error_Name'Address, HTable_Ptr => null, Foreign_Data => Null_Address, Raise_Hook => null); Tasking_Error_Def : aliased Exception_Data := (Not_Handled_By_Others => False, Lang => 'A', Name_Length => Tasking_Error_Name'Length, Full_Name => Tasking_Error_Name'Address, HTable_Ptr => null, Foreign_Data => Null_Address, Raise_Hook => null); Abort_Signal_Def : aliased Exception_Data := (Not_Handled_By_Others => True, Lang => 'A', Name_Length => Abort_Signal_Name'Length, Full_Name => Abort_Signal_Name'Address, HTable_Ptr => null, Foreign_Data => Null_Address, Raise_Hook => null); pragma Export (C, Constraint_Error_Def, "constraint_error"); pragma Export (C, Numeric_Error_Def, "numeric_error"); pragma Export (C, Program_Error_Def, "program_error"); pragma Export (C, Storage_Error_Def, "storage_error"); pragma Export (C, Tasking_Error_Def, "tasking_error"); pragma Export (C, Abort_Signal_Def, "_abort_signal"); -- Binder variables main_priority : Integer with Export, External_Name => "__gl_main_priority"; time_slice_val : Integer with Export, External_Name => "__gl_time_slice_val"; wc_encoding : Integer with Export, External_Name => "__gl_wc_encoding"; locking_policy : Integer with Export, External_Name => "__gl_locking_policy"; queuing_policy : Integer with Export, External_Name => "__gl_queuing_policy"; task_dispatching_policy : Integer with Export, External_Name => "__gl_task_dispatching_policy"; priority_specific_dispatching : Integer with Export, External_Name => "__gl_priority_specific_dispatching"; num_specific_dispatching : Integer with Export, External_Name => "__gl_num_specific_dispatching"; main_cpu : Integer with Export, External_Name => "__gl_main_cpu"; interrupt_states : Integer with Export, External_Name => "__gl_interrupt_states"; num_interrupt_states : Integer with Export, External_Name => "__gl_num_interrupt_states"; unreserve_all_interrupts : Integer with Export, External_Name => "__gl_unreserve_all_interrupts"; detect_blocking : Integer with Export, External_Name => "__gl_detect_blocking"; default_stack_size : Integer with Export, External_Name => "__gl_default_stack_size"; procedure GNAT_Initialize is null with Export, External_Name => "__gnat_initialize"; procedure GNAT_Finalize is null with Export, External_Name => "__gnat_finalize"; procedure GNAT_Runtime_Initialize is null with Export, External_Name => "__gnat_runtime_initialize"; procedure GNAT_Runtime_Finalize is null with Export, External_Name => "__gnat_runtime_finalize"; procedure Adafinal is null; end System.Standard_Library;
47.1625
79
0.597138
10a26fce5f6efb9f157462394c4ef9c6965ce5e1
10,704
adb
Ada
tests/natools-s_expressions-templates-tests-dates.adb
faelys/natools
947c004e6f69ca144942c6af40e102d089223cf8
[ "0BSD" ]
null
null
null
tests/natools-s_expressions-templates-tests-dates.adb
faelys/natools
947c004e6f69ca144942c6af40e102d089223cf8
[ "0BSD" ]
null
null
null
tests/natools-s_expressions-templates-tests-dates.adb
faelys/natools
947c004e6f69ca144942c6af40e102d089223cf8
[ "0BSD" ]
null
null
null
------------------------------------------------------------------------------ -- Copyright (c) 2014, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- purpose with or without fee is hereby granted, provided that the above -- -- copyright notice and this permission notice appear in all copies. -- -- -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -- -- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -- -- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -- -- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -- -- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -- -- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -- -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -- ------------------------------------------------------------------------------ with Ada.Calendar.Formatting; with Ada.Calendar.Time_Zones; with Natools.S_Expressions.Parsers; with Natools.S_Expressions.Test_Tools; with Natools.S_Expressions.Templates.Dates; with Natools.Static_Maps.S_Expressions.Templates.Dates.T; package body Natools.S_Expressions.Templates.Tests.Dates is procedure Test_Render (Test : in out NT.Test; Template : in String; Expected : in String; Value : in Ada.Calendar.Time; Time_Zone : Ada.Calendar.Time_Zones.Time_Offset := 0); -- Run Template with Value and compare the result with Expected ------------------------------ -- Local Helper Subprograms -- ------------------------------ procedure Test_Render (Test : in out NT.Test; Template : in String; Expected : in String; Value : in Ada.Calendar.Time; Time_Zone : Ada.Calendar.Time_Zones.Time_Offset := 0) is Input : aliased Test_Tools.Memory_Stream; Output : Test_Tools.Memory_Stream; Parser : Parsers.Stream_Parser (Input'Access); begin Input.Set_Data (To_Atom (Template)); Parser.Next; Output.Set_Expected (To_Atom (Expected)); Templates.Dates.Render (Output, Parser, Value, Time_Zone); Output.Check_Stream (Test); end Test_Render; ------------------------- -- Complete Test Suite -- ------------------------- procedure All_Tests (Report : in out NT.Reporter'Class) is begin Composite_Components (Report); Forced_Time_Zone (Report); Padded_Components (Report); RFC_3339 (Report); Simple_Components (Report); Static_Hash_Map (Report); Weekday_In_Time_Zone (Report); end All_Tests; ----------------------- -- Inidividual Tests -- ----------------------- procedure Composite_Components (Report : in out NT.Reporter'Class) is Test : NT.Test := Report.Item ("Composite date and time formats"); begin Test_Render (Test, "(YYYYMMDD)T(HHMMSS)", "20111125T082052", Ada.Calendar.Formatting.Time_Of (2011, 11, 25, 8, 20, 52)); Test_Render (Test, "(big-endian-date ""."")1: (time "":"")", "2013.10.01 18:49:11", Ada.Calendar.Formatting.Time_Of (2013, 10, 1, 18, 49, 11)); Test_Render (Test, "(little-endian-date ""/"")1: (time h m)1:s", "11/10/2013 21h51m08s", Ada.Calendar.Formatting.Time_Of (2013, 10, 11, 21, 51, 8)); Test_Render (Test, "(big-endian-date 1: 1: )2:, (little-endian-time 1:;)", "2013 10 13, 00;47;15", Ada.Calendar.Formatting.Time_Of (2013, 10, 13, 15, 47, 0)); Test_Render (Test, "(SSMMHH)(DDMMYYYY)", "01082129012014", Ada.Calendar.Formatting.Time_Of (2014, 1, 29, 21, 8, 1)); exception when Error : others => Test.Report_Exception (Error); end Composite_Components; procedure Forced_Time_Zone (Report : in out NT.Reporter'Class) is Test : NT.Test := Report.Item ("Time zone set in template"); Moment : constant Ada.Calendar.Time := Ada.Calendar.Formatting.Time_Of (2012, 8, 29, 22, 42, 16, Time_Zone => 0); begin Test_Render (Test, "(in-zone 0 (rfc-3339))", "2012-08-29T22:42:16Z", Moment); Test_Render (Test, "(in-zone CEST (rfc-3339))", "2012-08-30T00:42:16+02:00", Moment); Test_Render (Test, "(in-zone -01:12 (rfc-3339))", "2012-08-29T21:30:16-01:12", Moment); Test_Render (Test, "(in-zone +0130 (rfc-3339))", "2012-08-30T00:12:16+01:30", Moment); Test_Render (Test, "(in-zone -10 (rfc-3339))", "2012-08-29T12:42:16-10:00", Moment); Test_Render (Test, "(in-zone FOO (rfc-3339))", "", Moment); Test_Render (Test, "(in-zone BARST (rfc-3339))", "", Moment); Test_Render (Test, "(in-zone 12345 (rfc-3339))", "", Moment); exception when Error : others => Test.Report_Exception (Error); end Forced_Time_Zone; procedure Padded_Components (Report : in out NT.Reporter'Class) is Test : NT.Test := Report.Item ("Simple time components with padding"); Template : constant String := "(padded-month)(padded-day)(padded-hour)(minute)(padded-second)"; begin Test_Render (Test, Template, "1125082052", Ada.Calendar.Formatting.Time_Of (2011, 11, 25, 8, 20, 52)); Test_Render (Test, Template, "1001184911", Ada.Calendar.Formatting.Time_Of (2013, 10, 1, 18, 49, 11)); Test_Render (Test, Template, "1011215108", Ada.Calendar.Formatting.Time_Of (2013, 10, 11, 21, 51, 8)); Test_Render (Test, Template, "1013154700", Ada.Calendar.Formatting.Time_Of (2013, 10, 13, 15, 47, 0)); Test_Render (Test, Template, "012921801", Ada.Calendar.Formatting.Time_Of (2014, 1, 29, 21, 8, 1)); exception when Error : others => Test.Report_Exception (Error); end Padded_Components; procedure RFC_3339 (Report : in out NT.Reporter'Class) is Test : NT.Test := Report.Item ("RFC-3339 format"); begin Test_Render (Test, "(rfc-3339)", "2011-11-25T08:20:52Z", Ada.Calendar.Formatting.Time_Of (2011, 11, 25, 8, 20, 52)); Test_Render (Test, "(rfc-3339)", "2013-10-01T18:49:11Z", Ada.Calendar.Formatting.Time_Of (2013, 10, 1, 18, 49, 11)); Test_Render (Test, "(rfc-3339)", "2013-10-11T21:51:08Z", Ada.Calendar.Formatting.Time_Of (2013, 10, 11, 21, 51, 8)); Test_Render (Test, "(rfc-3339)", "2013-10-13T15:47:00Z", Ada.Calendar.Formatting.Time_Of (2013, 10, 13, 15, 47, 0)); Test_Render (Test, "(rfc-3339)", "2014-01-29T21:08:01Z", Ada.Calendar.Formatting.Time_Of (2014, 1, 29, 21, 8, 1)); exception when Error : others => Test.Report_Exception (Error); end RFC_3339; procedure Simple_Components (Report : in out NT.Reporter'Class) is Test : NT.Test := Report.Item ("Simple time components"); Template : constant String := "3:Le " & "(day-of-week lundi mardi mercredi jeudi vendredi samedi dimanche)" & "1: " & "(day (suffix (er 1)))" & "1: " & "(month janvier février mars avril mai juin juillet" & " août septembre octobre novembre décembre)" & "1: (year)" & """ à """ & "(hour) 1:h (padded-minute)" & "4: et (second)" & "1: (second (image-range secondes (seconde 1 0)))"; begin Test_Render (Test, Template, "Le vendredi 25 novembre 2011 à 8h20 et 52 secondes", Ada.Calendar.Formatting.Time_Of (2011, 11, 25, 8, 20, 52)); Test_Render (Test, Template, "Le mardi 1er octobre 2013 à 18h49 et 11 secondes", Ada.Calendar.Formatting.Time_Of (2013, 10, 1, 18, 49, 11)); Test_Render (Test, Template, "Le vendredi 11 octobre 2013 à 21h51 et 8 secondes", Ada.Calendar.Formatting.Time_Of (2013, 10, 11, 21, 51, 8)); Test_Render (Test, Template, "Le dimanche 13 octobre 2013 à 15h47 et 0 seconde", Ada.Calendar.Formatting.Time_Of (2013, 10, 13, 15, 47, 0)); Test_Render (Test, Template, "Le mercredi 29 janvier 2014 à 21h08 et 1 seconde", Ada.Calendar.Formatting.Time_Of (2014, 1, 29, 21, 8, 1)); exception when Error : others => Test.Report_Exception (Error); end Simple_Components; procedure Static_Hash_Map (Report : in out NT.Reporter'Class) is Test : NT.Test := Report.Item ("Parse errors in template"); begin if not Natools.Static_Maps.S_Expressions.Templates.Dates.T then Test.Fail; end if; exception when Error : others => Test.Report_Exception (Error); end Static_Hash_Map; procedure Weekday_In_Time_Zone (Report : in out NT.Reporter'Class) is Test : NT.Test := Report.Item ("Week day in various time zones"); Early : constant Ada.Calendar.Time := Ada.Calendar.Formatting.Time_Of (2015, 11, 11, 0, 29, 0, Time_Zone => 0); Late : constant Ada.Calendar.Time := Ada.Calendar.Formatting.Time_Of (2015, 11, 11, 23, 31, 0, Time_Zone => 0); Template_Prefix : constant String := "(in-zone "; Template_Suffix : constant String := " (day-of-week Monday Tuesday Wednesday" & " Thursday Friday Saturday Sunday) 1: " & " (day (suffix th (st 1 21 31) (nd 2 22) (rd 3 23))) 2:, " & " (hour) 1:: (padded-minute))"; procedure Double_Test (Zone, Expected_Early, Expected_Late : String); procedure Double_Test (Zone, Expected_Early, Expected_Late : String) is begin Test_Render (Test, Template_Prefix & Zone & Template_Suffix, Expected_Early, Early); Test_Render (Test, Template_Prefix & Zone & Template_Suffix, Expected_Late, Late); end Double_Test; begin Double_Test ("0", "Wednesday 11th, 0:29", "Wednesday 11th, 23:31"); Double_Test ("-01:00", "Tuesday 10th, 23:29", "Wednesday 11th, 22:31"); Double_Test ("+01:00", "Wednesday 11th, 1:29", "Thursday 12th, 0:31"); exception when Error : others => Test.Report_Exception (Error); end Weekday_In_Time_Zone; end Natools.S_Expressions.Templates.Tests.Dates;
37.690141
78
0.582212
292a84747c653d153cf42640d3fb21d826113aef
4,950
adb
Ada
source/tasking/machine-apple-darwin/s-nattas.adb
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
33
2015-04-04T09:19:36.000Z
2021-11-10T05:33:34.000Z
source/tasking/machine-apple-darwin/s-nattas.adb
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
8
2017-11-14T13:05:07.000Z
2018-08-09T15:28:49.000Z
source/tasking/machine-apple-darwin/s-nattas.adb
ytomino/drake
4e4bdcd8b8e23a11a29b31d3a8861fdf60090ea2
[ "MIT" ]
9
2015-02-03T17:09:53.000Z
2021-11-12T01:16:05.000Z
with System.Debug; -- assertions with C.errno; with C.sched; with C.signal; package body System.Native_Tasks is use type C.signed_int; use type C.unsigned_int; type sigaction_Wrapper is record -- ??? for No_Elaboration_Code Handle : aliased C.signal.struct_sigaction; end record; pragma Suppress_Initialization (sigaction_Wrapper); Old_SIGTERM_Action : aliased sigaction_Wrapper; -- uninitialized Installed_Abort_Handler : Abort_Handler; procedure SIGTERM_Handler ( Signal_Number : C.signed_int; Info : access C.signal.siginfo_t; Context : C.void_ptr) with Convention => C; procedure SIGTERM_Handler ( Signal_Number : C.signed_int; Info : access C.signal.siginfo_t; Context : C.void_ptr) is pragma Unreferenced (Signal_Number); pragma Unreferenced (Info); pragma Unreferenced (Context); begin Installed_Abort_Handler.all; end SIGTERM_Handler; procedure Mask_SIGTERM (How : C.signed_int); procedure Mask_SIGTERM (How : C.signed_int) is Mask : aliased C.signal.sigset_t; errno : C.signed_int; Dummy_R : C.signed_int; begin Dummy_R := C.signal.sigemptyset (Mask'Access); Dummy_R := C.signal.sigaddset (Mask'Access, C.signal.SIGTERM); errno := C.pthread.pthread_sigmask (How, Mask'Access, null); pragma Check (Debug, Check => errno = 0 or else Debug.Runtime_Error ("pthread_sigmask failed")); end Mask_SIGTERM; -- implementation of thread procedure Create ( Handle : aliased out Handle_Type; Parameter : Parameter_Type; Thread_Body : Thread_Body_Type; Error : out Boolean) is begin Error := C.pthread.pthread_create ( Handle'Access, null, Thread_Body.all'Access, -- type is different between platforms Parameter) /= 0; end Create; procedure Join ( Handle : Handle_Type; -- of target thread Current_Abort_Event : access Synchronous_Objects.Event; Result : aliased out Result_Type; Error : out Boolean) is pragma Unreferenced (Current_Abort_Event); begin Error := C.pthread.pthread_join (Handle, Result'Access) /= 0; end Join; procedure Detach ( Handle : Handle_Type; Error : out Boolean) is begin Error := C.pthread.pthread_detach (Handle) /= 0; end Detach; -- implementation of stack function Info_Block (Handle : Handle_Type) return C.pthread.pthread_t is begin return Handle; end Info_Block; -- implementation of signals procedure Install_Abort_Handler (Handler : Abort_Handler) is act : aliased C.signal.struct_sigaction := ( (Unchecked_Tag => 1, sa_sigaction => SIGTERM_Handler'Access), others => <>); -- uninitialized R : C.signed_int; Dummy_R : C.signed_int; begin Installed_Abort_Handler := Handler; act.sa_flags := C.signal.SA_SIGINFO; Dummy_R := C.signal.sigemptyset (act.sa_mask'Access); R := C.signal.sigaction ( C.signal.SIGTERM, act'Access, Old_SIGTERM_Action.Handle'Access); pragma Check (Debug, Check => not (R < 0) or else Debug.Runtime_Error ("sigaction failed")); end Install_Abort_Handler; procedure Uninstall_Abort_Handler is R : C.signed_int; begin R := C.signal.sigaction ( C.signal.SIGTERM, Old_SIGTERM_Action.Handle'Access, null); pragma Check (Debug, Check => not (R < 0) or else Debug.Runtime_Error ("sigaction failed")); end Uninstall_Abort_Handler; procedure Send_Abort_Signal ( Handle : Handle_Type; Abort_Event : in out Synchronous_Objects.Event; Error : out Boolean) is begin -- write to the pipe Synchronous_Objects.Set (Abort_Event); -- send SIGTERM Resend_Abort_Signal (Handle, Error => Error); end Send_Abort_Signal; procedure Resend_Abort_Signal (Handle : Handle_Type; Error : out Boolean) is begin case C.pthread.pthread_kill (Handle, C.signal.SIGTERM) is when 0 => Yield; Error := False; when C.errno.ESRCH => Error := False; -- it is already terminated, C9A003A when others => Error := True; end case; end Resend_Abort_Signal; procedure Block_Abort_Signal (Abort_Event : Synchronous_Objects.Event) is pragma Unreferenced (Abort_Event); begin Mask_SIGTERM (C.signal.SIG_BLOCK); end Block_Abort_Signal; procedure Unblock_Abort_Signal is begin Mask_SIGTERM (C.signal.SIG_UNBLOCK); end Unblock_Abort_Signal; procedure Yield is R : C.signed_int; begin R := C.sched.sched_yield; pragma Check (Debug, Check => not (R < 0) or else Debug.Runtime_Error ("sched_yield failed")); end Yield; end System.Native_Tasks;
29.640719
79
0.652323
29cb3bd9c4f2a6fe9086ca9ff6cf4736b496cea3
153,318
adb
Ada
submissions/M3/lab3_aes_hls/aes_hls_prj/sol3/.autopilot/db/ShiftRows.adb
maanjum95/SynthesisDigitalSystems_Lab
afc942decf7595eb1557ff78074693de2eea1780
[ "MIT" ]
null
null
null
submissions/M3/lab3_aes_hls/aes_hls_prj/sol3/.autopilot/db/ShiftRows.adb
maanjum95/SynthesisDigitalSystems_Lab
afc942decf7595eb1557ff78074693de2eea1780
[ "MIT" ]
null
null
null
submissions/M3/lab3_aes_hls/aes_hls_prj/sol3/.autopilot/db/ShiftRows.adb
maanjum95/SynthesisDigitalSystems_Lab
afc942decf7595eb1557ff78074693de2eea1780
[ "MIT" ]
null
null
null
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName/> <cdfg class_id="1" tracking_level="1" version="0" object_id="_0"> <name>ShiftRows</name> <ret_bitwidth>0</ret_bitwidth> <ports class_id="2" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="3" tracking_level="1" version="0" object_id="_1"> <Value class_id="4" tracking_level="0" version="0"> <Obj class_id="5" tracking_level="0" version="0"> <type>1</type> <id>1</id> <name>state</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo class_id="6" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName>state</originalName> <rtlName/> <coreName>RAM</coreName> </Obj> <bitwidth>8</bitwidth> </Value> <direction>2</direction> <if_type>1</if_type> <array_size>16</array_size> <bit_vecs class_id="7" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </bit_vecs> </item> </ports> <nodes class_id="8" tracking_level="0" version="0"> <count>37</count> <item_version>0</item_version> <item class_id="9" tracking_level="1" version="0" object_id="_2"> <Value> <Obj> <type>0</type> <id>2</id> <name>state_addr</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>288</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item class_id="10" tracking_level="0" version="0"> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second class_id="11" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="12" tracking_level="0" version="0"> <first class_id="13" tracking_level="0" version="0"> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>288</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>40</item> <item>42</item> <item>44</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>1</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_3"> <Value> <Obj> <type>0</type> <id>3</id> <name>state_addr_1</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>289</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>289</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>45</item> <item>46</item> <item>48</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>2</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_4"> <Value> <Obj> <type>0</type> <id>4</id> <name>state_addr_2</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>290</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>290</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>49</item> <item>50</item> <item>52</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>5</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_5"> <Value> <Obj> <type>0</type> <id>5</id> <name>state_addr_3</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>291</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>291</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>53</item> <item>54</item> <item>56</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>6</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_6"> <Value> <Obj> <type>0</type> <id>6</id> <name>state_addr_4</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>295</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>295</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>57</item> <item>58</item> <item>60</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>9</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_7"> <Value> <Obj> <type>0</type> <id>7</id> <name>state_addr_5</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>296</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>296</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>61</item> <item>62</item> <item>64</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>10</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_8"> <Value> <Obj> <type>0</type> <id>8</id> <name>state_addr_6</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>299</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>299</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>65</item> <item>66</item> <item>68</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>13</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_9"> <Value> <Obj> <type>0</type> <id>9</id> <name>state_addr_7</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>300</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>300</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>69</item> <item>70</item> <item>72</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>14</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_10"> <Value> <Obj> <type>0</type> <id>10</id> <name>state_addr_8</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>304</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>304</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>73</item> <item>74</item> <item>76</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>17</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_11"> <Value> <Obj> <type>0</type> <id>11</id> <name>state_addr_9</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>305</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>305</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>77</item> <item>78</item> <item>80</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>18</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_12"> <Value> <Obj> <type>0</type> <id>12</id> <name>state_addr_10</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>306</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>306</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>81</item> <item>82</item> <item>84</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>21</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_13"> <Value> <Obj> <type>0</type> <id>13</id> <name>state_addr_11</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>307</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>307</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>4</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>85</item> <item>86</item> <item>88</item> </oprand_edges> <opcode>getelementptr</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>22</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_14"> <Value> <Obj> <type>0</type> <id>14</id> <name>temp</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>288</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>288</second> </item> </second> </item> </inlineStackInfo> <originalName>temp</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>89</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>3</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_15"> <Value> <Obj> <type>0</type> <id>15</id> <name>state_load</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>289</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>289</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>90</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>4</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_16"> <Value> <Obj> <type>0</type> <id>16</id> <name>state_addr_write_ln289</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>289</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>289</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>91</item> <item>92</item> <item>136</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>25</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_17"> <Value> <Obj> <type>0</type> <id>17</id> <name>state_load_1</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>290</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>290</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>93</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>7</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_18"> <Value> <Obj> <type>0</type> <id>18</id> <name>state_addr_1_write_ln290</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>290</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>290</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>94</item> <item>95</item> <item>135</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>26</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_19"> <Value> <Obj> <type>0</type> <id>19</id> <name>state_load_2</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>291</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>291</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>96</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>8</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_20"> <Value> <Obj> <type>0</type> <id>20</id> <name>state_addr_2_write_ln291</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>291</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>291</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>97</item> <item>98</item> <item>134</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>27</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_21"> <Value> <Obj> <type>0</type> <id>21</id> <name>state_addr_3_write_ln292</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>292</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>292</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>99</item> <item>100</item> <item>133</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>28</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_22"> <Value> <Obj> <type>0</type> <id>22</id> <name>temp_1</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>295</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>295</second> </item> </second> </item> </inlineStackInfo> <originalName>temp</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>101</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>11</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_23"> <Value> <Obj> <type>0</type> <id>23</id> <name>state_load_4</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>296</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>296</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>102</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>12</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_24"> <Value> <Obj> <type>0</type> <id>24</id> <name>state_addr_4_write_ln296</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>296</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>296</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>103</item> <item>104</item> <item>132</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>29</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_25"> <Value> <Obj> <type>0</type> <id>25</id> <name>state_addr_5_write_ln297</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>297</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>297</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>105</item> <item>106</item> <item>131</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>30</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_26"> <Value> <Obj> <type>0</type> <id>26</id> <name>temp_2</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>299</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>299</second> </item> </second> </item> </inlineStackInfo> <originalName>temp</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>107</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>15</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_27"> <Value> <Obj> <type>0</type> <id>27</id> <name>state_load_6</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>300</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>300</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>108</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>16</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_28"> <Value> <Obj> <type>0</type> <id>28</id> <name>state_addr_6_write_ln300</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>300</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>300</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>109</item> <item>110</item> <item>130</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>31</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_29"> <Value> <Obj> <type>0</type> <id>29</id> <name>state_addr_7_write_ln301</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>301</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>301</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>111</item> <item>112</item> <item>129</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>32</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_30"> <Value> <Obj> <type>0</type> <id>30</id> <name>temp_3</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>304</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>304</second> </item> </second> </item> </inlineStackInfo> <originalName>temp</originalName> <rtlName/> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>113</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>19</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_31"> <Value> <Obj> <type>0</type> <id>31</id> <name>state_load_8</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>305</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>305</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>114</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>20</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_32"> <Value> <Obj> <type>0</type> <id>32</id> <name>state_addr_8_write_ln305</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>305</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>305</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>115</item> <item>116</item> <item>128</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>33</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_33"> <Value> <Obj> <type>0</type> <id>33</id> <name>state_load_9</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>306</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>306</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>117</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>23</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_34"> <Value> <Obj> <type>0</type> <id>34</id> <name>state_addr_9_write_ln306</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>306</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>306</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>118</item> <item>119</item> <item>127</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>34</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_35"> <Value> <Obj> <type>0</type> <id>35</id> <name>state_load_10</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>307</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>307</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>8</bitwidth> </Value> <oprand_edges> <count>1</count> <item_version>0</item_version> <item>120</item> </oprand_edges> <opcode>load</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>24</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_36"> <Value> <Obj> <type>0</type> <id>36</id> <name>state_addr_10_write_ln307</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>307</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>307</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>121</item> <item>122</item> <item>126</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>35</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_37"> <Value> <Obj> <type>0</type> <id>37</id> <name>state_addr_11_write_ln308</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>308</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>308</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>3</count> <item_version>0</item_version> <item>123</item> <item>124</item> <item>125</item> </oprand_edges> <opcode>store</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>1.76</m_delay> <m_topoIndex>36</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> <item class_id_reference="9" object_id="_38"> <Value> <Obj> <type>0</type> <id>38</id> <name>_ln309</name> <fileName>c_src/aes.c</fileName> <fileDirectory>..</fileDirectory> <lineNumber>309</lineNumber> <contextFuncName>ShiftRows</contextFuncName> <inlineStackInfo> <count>1</count> <item_version>0</item_version> <item> <first>/nas/ei/share/TUEIEDA/LabSDS/WS20/ge46bod/lab3_aes_hls</first> <second> <count>1</count> <item_version>0</item_version> <item> <first> <first>c_src/aes.c</first> <second>ShiftRows</second> </first> <second>309</second> </item> </second> </item> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>0</bitwidth> </Value> <oprand_edges> <count>0</count> <item_version>0</item_version> </oprand_edges> <opcode>ret</opcode> <m_Display>0</m_Display> <m_isOnCriticalPath>0</m_isOnCriticalPath> <m_isLCDNode>0</m_isLCDNode> <m_isStartOfPath>0</m_isStartOfPath> <m_delay>0.00</m_delay> <m_topoIndex>37</m_topoIndex> <m_clusterGroupNumber>-1</m_clusterGroupNumber> </item> </nodes> <consts class_id="15" tracking_level="0" version="0"> <count>13</count> <item_version>0</item_version> <item class_id="16" tracking_level="1" version="0" object_id="_39"> <Value> <Obj> <type>2</type> <id>41</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <const_type>0</const_type> <content>0</content> </item> <item class_id_reference="16" object_id="_40"> <Value> <Obj> <type>2</type> <id>43</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <const_type>0</const_type> <content>1</content> </item> <item class_id_reference="16" object_id="_41"> <Value> <Obj> <type>2</type> <id>47</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <const_type>0</const_type> <content>5</content> </item> <item class_id_reference="16" object_id="_42"> <Value> <Obj> <type>2</type> <id>51</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <const_type>0</const_type> <content>9</content> </item> <item class_id_reference="16" object_id="_43"> <Value> <Obj> <type>2</type> <id>55</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <const_type>0</const_type> <content>13</content> </item> <item class_id_reference="16" object_id="_44"> <Value> <Obj> <type>2</type> <id>59</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <const_type>0</const_type> <content>2</content> </item> <item class_id_reference="16" object_id="_45"> <Value> <Obj> <type>2</type> <id>63</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <const_type>0</const_type> <content>10</content> </item> <item class_id_reference="16" object_id="_46"> <Value> <Obj> <type>2</type> <id>67</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <const_type>0</const_type> <content>6</content> </item> <item class_id_reference="16" object_id="_47"> <Value> <Obj> <type>2</type> <id>71</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <const_type>0</const_type> <content>14</content> </item> <item class_id_reference="16" object_id="_48"> <Value> <Obj> <type>2</type> <id>75</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <const_type>0</const_type> <content>3</content> </item> <item class_id_reference="16" object_id="_49"> <Value> <Obj> <type>2</type> <id>79</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <const_type>0</const_type> <content>15</content> </item> <item class_id_reference="16" object_id="_50"> <Value> <Obj> <type>2</type> <id>83</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <const_type>0</const_type> <content>11</content> </item> <item class_id_reference="16" object_id="_51"> <Value> <Obj> <type>2</type> <id>87</id> <name>empty</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <bitwidth>64</bitwidth> </Value> <const_type>0</const_type> <content>7</content> </item> </consts> <blocks class_id="17" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="18" tracking_level="1" version="0" object_id="_52"> <Obj> <type>3</type> <id>39</id> <name>ShiftRows</name> <fileName/> <fileDirectory/> <lineNumber>0</lineNumber> <contextFuncName/> <inlineStackInfo> <count>0</count> <item_version>0</item_version> </inlineStackInfo> <originalName/> <rtlName/> <coreName/> </Obj> <node_objs> <count>37</count> <item_version>0</item_version> <item>2</item> <item>3</item> <item>4</item> <item>5</item> <item>6</item> <item>7</item> <item>8</item> <item>9</item> <item>10</item> <item>11</item> <item>12</item> <item>13</item> <item>14</item> <item>15</item> <item>16</item> <item>17</item> <item>18</item> <item>19</item> <item>20</item> <item>21</item> <item>22</item> <item>23</item> <item>24</item> <item>25</item> <item>26</item> <item>27</item> <item>28</item> <item>29</item> <item>30</item> <item>31</item> <item>32</item> <item>33</item> <item>34</item> <item>35</item> <item>36</item> <item>37</item> <item>38</item> </node_objs> </item> </blocks> <edges class_id="19" tracking_level="0" version="0"> <count>84</count> <item_version>0</item_version> <item class_id="20" tracking_level="1" version="0" object_id="_53"> <id>40</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>2</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_54"> <id>42</id> <edge_type>1</edge_type> <source_obj>41</source_obj> <sink_obj>2</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_55"> <id>44</id> <edge_type>1</edge_type> <source_obj>43</source_obj> <sink_obj>2</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_56"> <id>45</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>3</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_57"> <id>46</id> <edge_type>1</edge_type> <source_obj>41</source_obj> <sink_obj>3</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_58"> <id>48</id> <edge_type>1</edge_type> <source_obj>47</source_obj> <sink_obj>3</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_59"> <id>49</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>4</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_60"> <id>50</id> <edge_type>1</edge_type> <source_obj>41</source_obj> <sink_obj>4</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_61"> <id>52</id> <edge_type>1</edge_type> <source_obj>51</source_obj> <sink_obj>4</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_62"> <id>53</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>5</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_63"> <id>54</id> <edge_type>1</edge_type> <source_obj>41</source_obj> <sink_obj>5</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_64"> <id>56</id> <edge_type>1</edge_type> <source_obj>55</source_obj> <sink_obj>5</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_65"> <id>57</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>6</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_66"> <id>58</id> <edge_type>1</edge_type> <source_obj>41</source_obj> <sink_obj>6</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_67"> <id>60</id> <edge_type>1</edge_type> <source_obj>59</source_obj> <sink_obj>6</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_68"> <id>61</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>7</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_69"> <id>62</id> <edge_type>1</edge_type> <source_obj>41</source_obj> <sink_obj>7</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_70"> <id>64</id> <edge_type>1</edge_type> <source_obj>63</source_obj> <sink_obj>7</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_71"> <id>65</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>8</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_72"> <id>66</id> <edge_type>1</edge_type> <source_obj>41</source_obj> <sink_obj>8</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_73"> <id>68</id> <edge_type>1</edge_type> <source_obj>67</source_obj> <sink_obj>8</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_74"> <id>69</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>9</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_75"> <id>70</id> <edge_type>1</edge_type> <source_obj>41</source_obj> <sink_obj>9</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_76"> <id>72</id> <edge_type>1</edge_type> <source_obj>71</source_obj> <sink_obj>9</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_77"> <id>73</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>10</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_78"> <id>74</id> <edge_type>1</edge_type> <source_obj>41</source_obj> <sink_obj>10</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_79"> <id>76</id> <edge_type>1</edge_type> <source_obj>75</source_obj> <sink_obj>10</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_80"> <id>77</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>11</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_81"> <id>78</id> <edge_type>1</edge_type> <source_obj>41</source_obj> <sink_obj>11</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_82"> <id>80</id> <edge_type>1</edge_type> <source_obj>79</source_obj> <sink_obj>11</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_83"> <id>81</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>12</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_84"> <id>82</id> <edge_type>1</edge_type> <source_obj>41</source_obj> <sink_obj>12</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_85"> <id>84</id> <edge_type>1</edge_type> <source_obj>83</source_obj> <sink_obj>12</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_86"> <id>85</id> <edge_type>1</edge_type> <source_obj>1</source_obj> <sink_obj>13</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_87"> <id>86</id> <edge_type>1</edge_type> <source_obj>41</source_obj> <sink_obj>13</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_88"> <id>88</id> <edge_type>1</edge_type> <source_obj>87</source_obj> <sink_obj>13</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_89"> <id>89</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>14</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_90"> <id>90</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>15</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_91"> <id>91</id> <edge_type>1</edge_type> <source_obj>15</source_obj> <sink_obj>16</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_92"> <id>92</id> <edge_type>1</edge_type> <source_obj>2</source_obj> <sink_obj>16</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_93"> <id>93</id> <edge_type>1</edge_type> <source_obj>4</source_obj> <sink_obj>17</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_94"> <id>94</id> <edge_type>1</edge_type> <source_obj>17</source_obj> <sink_obj>18</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_95"> <id>95</id> <edge_type>1</edge_type> <source_obj>3</source_obj> <sink_obj>18</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_96"> <id>96</id> <edge_type>1</edge_type> <source_obj>5</source_obj> <sink_obj>19</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_97"> <id>97</id> <edge_type>1</edge_type> <source_obj>19</source_obj> <sink_obj>20</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_98"> <id>98</id> <edge_type>1</edge_type> <source_obj>4</source_obj> <sink_obj>20</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_99"> <id>99</id> <edge_type>1</edge_type> <source_obj>14</source_obj> <sink_obj>21</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_100"> <id>100</id> <edge_type>1</edge_type> <source_obj>5</source_obj> <sink_obj>21</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_101"> <id>101</id> <edge_type>1</edge_type> <source_obj>6</source_obj> <sink_obj>22</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_102"> <id>102</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>23</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_103"> <id>103</id> <edge_type>1</edge_type> <source_obj>23</source_obj> <sink_obj>24</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_104"> <id>104</id> <edge_type>1</edge_type> <source_obj>6</source_obj> <sink_obj>24</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_105"> <id>105</id> <edge_type>1</edge_type> <source_obj>22</source_obj> <sink_obj>25</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_106"> <id>106</id> <edge_type>1</edge_type> <source_obj>7</source_obj> <sink_obj>25</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_107"> <id>107</id> <edge_type>1</edge_type> <source_obj>8</source_obj> <sink_obj>26</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_108"> <id>108</id> <edge_type>1</edge_type> <source_obj>9</source_obj> <sink_obj>27</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_109"> <id>109</id> <edge_type>1</edge_type> <source_obj>27</source_obj> <sink_obj>28</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_110"> <id>110</id> <edge_type>1</edge_type> <source_obj>8</source_obj> <sink_obj>28</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_111"> <id>111</id> <edge_type>1</edge_type> <source_obj>26</source_obj> <sink_obj>29</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_112"> <id>112</id> <edge_type>1</edge_type> <source_obj>9</source_obj> <sink_obj>29</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_113"> <id>113</id> <edge_type>1</edge_type> <source_obj>10</source_obj> <sink_obj>30</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_114"> <id>114</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>31</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_115"> <id>115</id> <edge_type>1</edge_type> <source_obj>31</source_obj> <sink_obj>32</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_116"> <id>116</id> <edge_type>1</edge_type> <source_obj>10</source_obj> <sink_obj>32</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_117"> <id>117</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>33</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_118"> <id>118</id> <edge_type>1</edge_type> <source_obj>33</source_obj> <sink_obj>34</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_119"> <id>119</id> <edge_type>1</edge_type> <source_obj>11</source_obj> <sink_obj>34</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_120"> <id>120</id> <edge_type>1</edge_type> <source_obj>13</source_obj> <sink_obj>35</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_121"> <id>121</id> <edge_type>1</edge_type> <source_obj>35</source_obj> <sink_obj>36</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_122"> <id>122</id> <edge_type>1</edge_type> <source_obj>12</source_obj> <sink_obj>36</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_123"> <id>123</id> <edge_type>1</edge_type> <source_obj>30</source_obj> <sink_obj>37</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_124"> <id>124</id> <edge_type>1</edge_type> <source_obj>13</source_obj> <sink_obj>37</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_125"> <id>125</id> <edge_type>4</edge_type> <source_obj>35</source_obj> <sink_obj>37</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_126"> <id>126</id> <edge_type>4</edge_type> <source_obj>33</source_obj> <sink_obj>36</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_127"> <id>127</id> <edge_type>4</edge_type> <source_obj>31</source_obj> <sink_obj>34</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_128"> <id>128</id> <edge_type>4</edge_type> <source_obj>30</source_obj> <sink_obj>32</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_129"> <id>129</id> <edge_type>4</edge_type> <source_obj>27</source_obj> <sink_obj>29</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_130"> <id>130</id> <edge_type>4</edge_type> <source_obj>26</source_obj> <sink_obj>28</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_131"> <id>131</id> <edge_type>4</edge_type> <source_obj>23</source_obj> <sink_obj>25</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_132"> <id>132</id> <edge_type>4</edge_type> <source_obj>22</source_obj> <sink_obj>24</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_133"> <id>133</id> <edge_type>4</edge_type> <source_obj>19</source_obj> <sink_obj>21</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_134"> <id>134</id> <edge_type>4</edge_type> <source_obj>17</source_obj> <sink_obj>20</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_135"> <id>135</id> <edge_type>4</edge_type> <source_obj>15</source_obj> <sink_obj>18</sink_obj> <is_back_edge>0</is_back_edge> </item> <item class_id_reference="20" object_id="_136"> <id>136</id> <edge_type>4</edge_type> <source_obj>14</source_obj> <sink_obj>16</sink_obj> <is_back_edge>0</is_back_edge> </item> </edges> </cdfg> <cdfg_regions class_id="21" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="22" tracking_level="1" version="0" object_id="_137"> <mId>1</mId> <mTag>ShiftRows</mTag> <mType>0</mType> <sub_regions> <count>0</count> <item_version>0</item_version> </sub_regions> <basic_blocks> <count>1</count> <item_version>0</item_version> <item>39</item> </basic_blocks> <mII>-1</mII> <mDepth>-1</mDepth> <mMinTripCount>-1</mMinTripCount> <mMaxTripCount>-1</mMaxTripCount> <mMinLatency>11</mMinLatency> <mMaxLatency>11</mMaxLatency> <mIsDfPipe>0</mIsDfPipe> <mDfPipe class_id="-1"/> </item> </cdfg_regions> <fsm class_id="24" tracking_level="1" version="0" object_id="_138"> <states class_id="25" tracking_level="0" version="0"> <count>12</count> <item_version>0</item_version> <item class_id="26" tracking_level="1" version="0" object_id="_139"> <id>1</id> <operations class_id="27" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="28" tracking_level="1" version="0" object_id="_140"> <id>2</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_141"> <id>3</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_142"> <id>14</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_143"> <id>15</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_144"> <id>2</id> <operations> <count>6</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_145"> <id>4</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_146"> <id>5</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_147"> <id>14</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_148"> <id>15</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_149"> <id>17</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_150"> <id>19</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_151"> <id>3</id> <operations> <count>6</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_152"> <id>6</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_153"> <id>7</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_154"> <id>17</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_155"> <id>19</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_156"> <id>22</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_157"> <id>23</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_158"> <id>4</id> <operations> <count>6</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_159"> <id>8</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_160"> <id>9</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_161"> <id>22</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_162"> <id>23</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_163"> <id>26</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_164"> <id>27</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_165"> <id>5</id> <operations> <count>6</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_166"> <id>10</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_167"> <id>11</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_168"> <id>26</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_169"> <id>27</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_170"> <id>30</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_171"> <id>31</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_172"> <id>6</id> <operations> <count>6</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_173"> <id>12</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_174"> <id>13</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_175"> <id>30</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_176"> <id>31</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_177"> <id>33</id> <stage>2</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_178"> <id>35</id> <stage>2</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_179"> <id>7</id> <operations> <count>4</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_180"> <id>16</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_181"> <id>18</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_182"> <id>33</id> <stage>1</stage> <latency>2</latency> </item> <item class_id_reference="28" object_id="_183"> <id>35</id> <stage>1</stage> <latency>2</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_184"> <id>8</id> <operations> <count>2</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_185"> <id>20</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_186"> <id>21</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_187"> <id>9</id> <operations> <count>2</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_188"> <id>24</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_189"> <id>25</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_190"> <id>10</id> <operations> <count>2</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_191"> <id>28</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_192"> <id>29</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_193"> <id>11</id> <operations> <count>2</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_194"> <id>32</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_195"> <id>34</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> <item class_id_reference="26" object_id="_196"> <id>12</id> <operations> <count>3</count> <item_version>0</item_version> <item class_id_reference="28" object_id="_197"> <id>36</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_198"> <id>37</id> <stage>1</stage> <latency>1</latency> </item> <item class_id_reference="28" object_id="_199"> <id>38</id> <stage>1</stage> <latency>1</latency> </item> </operations> </item> </states> <transitions class_id="29" tracking_level="0" version="0"> <count>11</count> <item_version>0</item_version> <item class_id="30" tracking_level="1" version="0" object_id="_200"> <inState>1</inState> <outState>2</outState> <condition class_id="31" tracking_level="0" version="0"> <id>-1</id> <sop class_id="32" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="33" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_201"> <inState>2</inState> <outState>3</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_202"> <inState>3</inState> <outState>4</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_203"> <inState>4</inState> <outState>5</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_204"> <inState>5</inState> <outState>6</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_205"> <inState>6</inState> <outState>7</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_206"> <inState>7</inState> <outState>8</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_207"> <inState>8</inState> <outState>9</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_208"> <inState>9</inState> <outState>10</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_209"> <inState>10</inState> <outState>11</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> <item class_id_reference="30" object_id="_210"> <inState>11</inState> <outState>12</outState> <condition> <id>-1</id> <sop> <count>1</count> <item_version>0</item_version> <item> <count>0</count> <item_version>0</item_version> </item> </sop> </condition> </item> </transitions> </fsm> <res class_id="34" tracking_level="1" version="0" object_id="_211"> <dp_component_resource class_id="35" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_component_resource> <dp_expression_resource> <count>0</count> <item_version>0</item_version> </dp_expression_resource> <dp_fifo_resource> <count>0</count> <item_version>0</item_version> </dp_fifo_resource> <dp_memory_resource> <count>0</count> <item_version>0</item_version> </dp_memory_resource> <dp_multiplexer_resource> <count>7</count> <item_version>0</item_version> <item class_id="36" tracking_level="0" version="0"> <first>ap_NS_fsm</first> <second class_id="37" tracking_level="0" version="0"> <count>4</count> <item_version>0</item_version> <item class_id="38" tracking_level="0" version="0"> <first>(0Size)</first> <second>13</second> </item> <item> <first>(1Bits)</first> <second>1</second> </item> <item> <first>(2Count)</first> <second>13</second> </item> <item> <first>LUT</first> <second>56</second> </item> </second> </item> <item> <first>reg_145</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>8</second> </item> <item> <first>(2Count)</first> <second>16</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>reg_152</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>2</second> </item> <item> <first>(1Bits)</first> <second>8</second> </item> <item> <first>(2Count)</first> <second>16</second> </item> <item> <first>LUT</first> <second>9</second> </item> </second> </item> <item> <first>state_address0</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>13</second> </item> <item> <first>(1Bits)</first> <second>4</second> </item> <item> <first>(2Count)</first> <second>52</second> </item> <item> <first>LUT</first> <second>56</second> </item> </second> </item> <item> <first>state_address1</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>13</second> </item> <item> <first>(1Bits)</first> <second>4</second> </item> <item> <first>(2Count)</first> <second>52</second> </item> <item> <first>LUT</first> <second>56</second> </item> </second> </item> <item> <first>state_d0</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>7</second> </item> <item> <first>(1Bits)</first> <second>8</second> </item> <item> <first>(2Count)</first> <second>56</second> </item> <item> <first>LUT</first> <second>38</second> </item> </second> </item> <item> <first>state_d1</first> <second> <count>4</count> <item_version>0</item_version> <item> <first>(0Size)</first> <second>7</second> </item> <item> <first>(1Bits)</first> <second>8</second> </item> <item> <first>(2Count)</first> <second>56</second> </item> <item> <first>LUT</first> <second>38</second> </item> </second> </item> </dp_multiplexer_resource> <dp_register_resource> <count>11</count> <item_version>0</item_version> <item> <first>ap_CS_fsm</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>12</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>12</second> </item> </second> </item> <item> <first>reg_145</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>8</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>8</second> </item> </second> </item> <item> <first>reg_152</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>8</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>8</second> </item> </second> </item> <item> <first>state_load_2_reg_194</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>8</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>8</second> </item> </second> </item> <item> <first>state_load_4_reg_214</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>8</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>8</second> </item> </second> </item> <item> <first>state_load_6_reg_234</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>8</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>8</second> </item> </second> </item> <item> <first>state_load_8_reg_254</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>8</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>8</second> </item> </second> </item> <item> <first>temp_1_reg_209</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>8</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>8</second> </item> </second> </item> <item> <first>temp_2_reg_229</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>8</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>8</second> </item> </second> </item> <item> <first>temp_3_reg_249</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>8</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>8</second> </item> </second> </item> <item> <first>temp_reg_179</first> <second> <count>3</count> <item_version>0</item_version> <item> <first>(Bits)</first> <second>8</second> </item> <item> <first>(Consts)</first> <second>0</second> </item> <item> <first>FF</first> <second>8</second> </item> </second> </item> </dp_register_resource> <dp_dsp_resource> <count>0</count> <item_version>0</item_version> </dp_dsp_resource> <dp_component_map class_id="39" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </dp_component_map> <dp_expression_map> <count>0</count> <item_version>0</item_version> </dp_expression_map> <dp_fifo_map> <count>0</count> <item_version>0</item_version> </dp_fifo_map> <dp_memory_map> <count>0</count> <item_version>0</item_version> </dp_memory_map> </res> <node_label_latency class_id="40" tracking_level="0" version="0"> <count>37</count> <item_version>0</item_version> <item class_id="41" tracking_level="0" version="0"> <first>2</first> <second class_id="42" tracking_level="0" version="0"> <first>0</first> <second>0</second> </second> </item> <item> <first>3</first> <second> <first>0</first> <second>0</second> </second> </item> <item> <first>4</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>5</first> <second> <first>1</first> <second>0</second> </second> </item> <item> <first>6</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>7</first> <second> <first>2</first> <second>0</second> </second> </item> <item> <first>8</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>9</first> <second> <first>3</first> <second>0</second> </second> </item> <item> <first>10</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>11</first> <second> <first>4</first> <second>0</second> </second> </item> <item> <first>12</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>13</first> <second> <first>5</first> <second>0</second> </second> </item> <item> <first>14</first> <second> <first>0</first> <second>1</second> </second> </item> <item> <first>15</first> <second> <first>0</first> <second>1</second> </second> </item> <item> <first>16</first> <second> <first>6</first> <second>0</second> </second> </item> <item> <first>17</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>18</first> <second> <first>6</first> <second>0</second> </second> </item> <item> <first>19</first> <second> <first>1</first> <second>1</second> </second> </item> <item> <first>20</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>21</first> <second> <first>7</first> <second>0</second> </second> </item> <item> <first>22</first> <second> <first>2</first> <second>1</second> </second> </item> <item> <first>23</first> <second> <first>2</first> <second>1</second> </second> </item> <item> <first>24</first> <second> <first>8</first> <second>0</second> </second> </item> <item> <first>25</first> <second> <first>8</first> <second>0</second> </second> </item> <item> <first>26</first> <second> <first>3</first> <second>1</second> </second> </item> <item> <first>27</first> <second> <first>3</first> <second>1</second> </second> </item> <item> <first>28</first> <second> <first>9</first> <second>0</second> </second> </item> <item> <first>29</first> <second> <first>9</first> <second>0</second> </second> </item> <item> <first>30</first> <second> <first>4</first> <second>1</second> </second> </item> <item> <first>31</first> <second> <first>4</first> <second>1</second> </second> </item> <item> <first>32</first> <second> <first>10</first> <second>0</second> </second> </item> <item> <first>33</first> <second> <first>5</first> <second>1</second> </second> </item> <item> <first>34</first> <second> <first>10</first> <second>0</second> </second> </item> <item> <first>35</first> <second> <first>5</first> <second>1</second> </second> </item> <item> <first>36</first> <second> <first>11</first> <second>0</second> </second> </item> <item> <first>37</first> <second> <first>11</first> <second>0</second> </second> </item> <item> <first>38</first> <second> <first>11</first> <second>0</second> </second> </item> </node_label_latency> <bblk_ent_exit class_id="43" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="44" tracking_level="0" version="0"> <first>39</first> <second class_id="45" tracking_level="0" version="0"> <first>0</first> <second>11</second> </second> </item> </bblk_ent_exit> <regions class_id="46" tracking_level="0" version="0"> <count>0</count> <item_version>0</item_version> </regions> <dp_fu_nodes class_id="47" tracking_level="0" version="0"> <count>13</count> <item_version>0</item_version> <item class_id="48" tracking_level="0" version="0"> <first>28</first> <second> <count>1</count> <item_version>0</item_version> <item>2</item> </second> </item> <item> <first>36</first> <second> <count>1</count> <item_version>0</item_version> <item>3</item> </second> </item> <item> <first>44</first> <second> <count>36</count> <item_version>0</item_version> <item>14</item> <item>14</item> <item>15</item> <item>15</item> <item>17</item> <item>17</item> <item>19</item> <item>19</item> <item>22</item> <item>22</item> <item>23</item> <item>23</item> <item>26</item> <item>26</item> <item>27</item> <item>27</item> <item>30</item> <item>30</item> <item>31</item> <item>31</item> <item>33</item> <item>33</item> <item>35</item> <item>35</item> <item>16</item> <item>18</item> <item>20</item> <item>21</item> <item>24</item> <item>25</item> <item>28</item> <item>29</item> <item>32</item> <item>34</item> <item>36</item> <item>37</item> </second> </item> <item> <first>55</first> <second> <count>1</count> <item_version>0</item_version> <item>4</item> </second> </item> <item> <first>63</first> <second> <count>1</count> <item_version>0</item_version> <item>5</item> </second> </item> <item> <first>73</first> <second> <count>1</count> <item_version>0</item_version> <item>6</item> </second> </item> <item> <first>81</first> <second> <count>1</count> <item_version>0</item_version> <item>7</item> </second> </item> <item> <first>91</first> <second> <count>1</count> <item_version>0</item_version> <item>8</item> </second> </item> <item> <first>99</first> <second> <count>1</count> <item_version>0</item_version> <item>9</item> </second> </item> <item> <first>109</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> <item> <first>117</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>127</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> <item> <first>135</first> <second> <count>1</count> <item_version>0</item_version> <item>13</item> </second> </item> </dp_fu_nodes> <dp_fu_nodes_expression class_id="50" tracking_level="0" version="0"> <count>12</count> <item_version>0</item_version> <item class_id="51" tracking_level="0" version="0"> <first>state_addr_10_gep_fu_127</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> <item> <first>state_addr_11_gep_fu_135</first> <second> <count>1</count> <item_version>0</item_version> <item>13</item> </second> </item> <item> <first>state_addr_1_gep_fu_36</first> <second> <count>1</count> <item_version>0</item_version> <item>3</item> </second> </item> <item> <first>state_addr_2_gep_fu_55</first> <second> <count>1</count> <item_version>0</item_version> <item>4</item> </second> </item> <item> <first>state_addr_3_gep_fu_63</first> <second> <count>1</count> <item_version>0</item_version> <item>5</item> </second> </item> <item> <first>state_addr_4_gep_fu_73</first> <second> <count>1</count> <item_version>0</item_version> <item>6</item> </second> </item> <item> <first>state_addr_5_gep_fu_81</first> <second> <count>1</count> <item_version>0</item_version> <item>7</item> </second> </item> <item> <first>state_addr_6_gep_fu_91</first> <second> <count>1</count> <item_version>0</item_version> <item>8</item> </second> </item> <item> <first>state_addr_7_gep_fu_99</first> <second> <count>1</count> <item_version>0</item_version> <item>9</item> </second> </item> <item> <first>state_addr_8_gep_fu_109</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> <item> <first>state_addr_9_gep_fu_117</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>state_addr_gep_fu_28</first> <second> <count>1</count> <item_version>0</item_version> <item>2</item> </second> </item> </dp_fu_nodes_expression> <dp_fu_nodes_module> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_module> <dp_fu_nodes_io> <count>0</count> <item_version>0</item_version> </dp_fu_nodes_io> <return_ports> <count>0</count> <item_version>0</item_version> </return_ports> <dp_mem_port_nodes class_id="52" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="53" tracking_level="0" version="0"> <first class_id="54" tracking_level="0" version="0"> <first>state</first> <second>0</second> </first> <second> <count>18</count> <item_version>0</item_version> <item>14</item> <item>14</item> <item>17</item> <item>17</item> <item>22</item> <item>22</item> <item>26</item> <item>26</item> <item>30</item> <item>30</item> <item>33</item> <item>33</item> <item>16</item> <item>20</item> <item>24</item> <item>28</item> <item>32</item> <item>36</item> </second> </item> <item> <first> <first>state</first> <second>1</second> </first> <second> <count>18</count> <item_version>0</item_version> <item>15</item> <item>15</item> <item>19</item> <item>19</item> <item>23</item> <item>23</item> <item>27</item> <item>27</item> <item>31</item> <item>31</item> <item>35</item> <item>35</item> <item>18</item> <item>21</item> <item>25</item> <item>29</item> <item>34</item> <item>37</item> </second> </item> </dp_mem_port_nodes> <dp_reg_nodes> <count>22</count> <item_version>0</item_version> <item> <first>145</first> <second> <count>2</count> <item_version>0</item_version> <item>15</item> <item>33</item> </second> </item> <item> <first>152</first> <second> <count>2</count> <item_version>0</item_version> <item>17</item> <item>35</item> </second> </item> <item> <first>159</first> <second> <count>1</count> <item_version>0</item_version> <item>2</item> </second> </item> <item> <first>164</first> <second> <count>1</count> <item_version>0</item_version> <item>3</item> </second> </item> <item> <first>169</first> <second> <count>1</count> <item_version>0</item_version> <item>4</item> </second> </item> <item> <first>174</first> <second> <count>1</count> <item_version>0</item_version> <item>5</item> </second> </item> <item> <first>179</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> <item> <first>184</first> <second> <count>1</count> <item_version>0</item_version> <item>6</item> </second> </item> <item> <first>189</first> <second> <count>1</count> <item_version>0</item_version> <item>7</item> </second> </item> <item> <first>194</first> <second> <count>1</count> <item_version>0</item_version> <item>19</item> </second> </item> <item> <first>199</first> <second> <count>1</count> <item_version>0</item_version> <item>8</item> </second> </item> <item> <first>204</first> <second> <count>1</count> <item_version>0</item_version> <item>9</item> </second> </item> <item> <first>209</first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> <item> <first>214</first> <second> <count>1</count> <item_version>0</item_version> <item>23</item> </second> </item> <item> <first>219</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> <item> <first>224</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>229</first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> <item> <first>234</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> <item> <first>239</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> <item> <first>244</first> <second> <count>1</count> <item_version>0</item_version> <item>13</item> </second> </item> <item> <first>249</first> <second> <count>1</count> <item_version>0</item_version> <item>30</item> </second> </item> <item> <first>254</first> <second> <count>1</count> <item_version>0</item_version> <item>31</item> </second> </item> </dp_reg_nodes> <dp_regname_nodes> <count>22</count> <item_version>0</item_version> <item> <first>reg_145</first> <second> <count>2</count> <item_version>0</item_version> <item>15</item> <item>33</item> </second> </item> <item> <first>reg_152</first> <second> <count>2</count> <item_version>0</item_version> <item>17</item> <item>35</item> </second> </item> <item> <first>state_addr_10_reg_239</first> <second> <count>1</count> <item_version>0</item_version> <item>12</item> </second> </item> <item> <first>state_addr_11_reg_244</first> <second> <count>1</count> <item_version>0</item_version> <item>13</item> </second> </item> <item> <first>state_addr_1_reg_164</first> <second> <count>1</count> <item_version>0</item_version> <item>3</item> </second> </item> <item> <first>state_addr_2_reg_169</first> <second> <count>1</count> <item_version>0</item_version> <item>4</item> </second> </item> <item> <first>state_addr_3_reg_174</first> <second> <count>1</count> <item_version>0</item_version> <item>5</item> </second> </item> <item> <first>state_addr_4_reg_184</first> <second> <count>1</count> <item_version>0</item_version> <item>6</item> </second> </item> <item> <first>state_addr_5_reg_189</first> <second> <count>1</count> <item_version>0</item_version> <item>7</item> </second> </item> <item> <first>state_addr_6_reg_199</first> <second> <count>1</count> <item_version>0</item_version> <item>8</item> </second> </item> <item> <first>state_addr_7_reg_204</first> <second> <count>1</count> <item_version>0</item_version> <item>9</item> </second> </item> <item> <first>state_addr_8_reg_219</first> <second> <count>1</count> <item_version>0</item_version> <item>10</item> </second> </item> <item> <first>state_addr_9_reg_224</first> <second> <count>1</count> <item_version>0</item_version> <item>11</item> </second> </item> <item> <first>state_addr_reg_159</first> <second> <count>1</count> <item_version>0</item_version> <item>2</item> </second> </item> <item> <first>state_load_2_reg_194</first> <second> <count>1</count> <item_version>0</item_version> <item>19</item> </second> </item> <item> <first>state_load_4_reg_214</first> <second> <count>1</count> <item_version>0</item_version> <item>23</item> </second> </item> <item> <first>state_load_6_reg_234</first> <second> <count>1</count> <item_version>0</item_version> <item>27</item> </second> </item> <item> <first>state_load_8_reg_254</first> <second> <count>1</count> <item_version>0</item_version> <item>31</item> </second> </item> <item> <first>temp_1_reg_209</first> <second> <count>1</count> <item_version>0</item_version> <item>22</item> </second> </item> <item> <first>temp_2_reg_229</first> <second> <count>1</count> <item_version>0</item_version> <item>26</item> </second> </item> <item> <first>temp_3_reg_249</first> <second> <count>1</count> <item_version>0</item_version> <item>30</item> </second> </item> <item> <first>temp_reg_179</first> <second> <count>1</count> <item_version>0</item_version> <item>14</item> </second> </item> </dp_regname_nodes> <dp_reg_phi> <count>0</count> <item_version>0</item_version> </dp_reg_phi> <dp_regname_phi> <count>0</count> <item_version>0</item_version> </dp_regname_phi> <dp_port_io_nodes class_id="55" tracking_level="0" version="0"> <count>2</count> <item_version>0</item_version> <item class_id="56" tracking_level="0" version="0"> <first>state(p0)</first> <second> <count>2</count> <item_version>0</item_version> <item> <first>load</first> <second> <count>12</count> <item_version>0</item_version> <item>14</item> <item>14</item> <item>17</item> <item>17</item> <item>22</item> <item>22</item> <item>26</item> <item>26</item> <item>30</item> <item>30</item> <item>33</item> <item>33</item> </second> </item> <item> <first>store</first> <second> <count>6</count> <item_version>0</item_version> <item>16</item> <item>20</item> <item>24</item> <item>28</item> <item>32</item> <item>36</item> </second> </item> </second> </item> <item> <first>state(p1)</first> <second> <count>2</count> <item_version>0</item_version> <item> <first>load</first> <second> <count>12</count> <item_version>0</item_version> <item>15</item> <item>15</item> <item>19</item> <item>19</item> <item>23</item> <item>23</item> <item>27</item> <item>27</item> <item>31</item> <item>31</item> <item>35</item> <item>35</item> </second> </item> <item> <first>store</first> <second> <count>6</count> <item_version>0</item_version> <item>18</item> <item>21</item> <item>25</item> <item>29</item> <item>34</item> <item>37</item> </second> </item> </second> </item> </dp_port_io_nodes> <port2core class_id="57" tracking_level="0" version="0"> <count>1</count> <item_version>0</item_version> <item class_id="58" tracking_level="0" version="0"> <first>1</first> <second>RAM</second> </item> </port2core> <node2core> <count>0</count> <item_version>0</item_version> </node2core> </syndb> </boost_serialization>
31.710031
87
0.456307
0622375c801c34e402f02fd6e002054db394b062
912
ads
Ada
Read Only/gdb-7.12.1/gdb/testsuite/gdb.ada/fullname_bp/pck.ads
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
Read Only/gdb-7.12.1/gdb/testsuite/gdb.ada/fullname_bp/pck.ads
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
Read Only/gdb-7.12.1/gdb/testsuite/gdb.ada/fullname_bp/pck.ads
samyvic/OS-Project
1622bc1641876584964effd91d65ef02e92728e1
[ "Apache-2.0" ]
null
null
null
-- Copyright 2011-2017 Free Software Foundation, Inc. -- -- This program 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 3 of the License, or -- (at your option) any later version. -- -- This program 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 this program. If not, see <http://www.gnu.org/licenses/>. package Pck is procedure Hello; procedure There; -- The name of that procedure needs to be greater (in terms -- of alphabetical order) than the name of the procedure above. end Pck;
39.652174
73
0.732456
292a94499b7440ebccddc60138a2fbf548679054
1,136
ads
Ada
src/gen/cups-ug_config_h.ads
persan/a-cups
f011dc18384de9afd07a53b67295974d8005cf21
[ "Apache-2.0" ]
null
null
null
src/gen/cups-ug_config_h.ads
persan/a-cups
f011dc18384de9afd07a53b67295974d8005cf21
[ "Apache-2.0" ]
null
null
null
src/gen/cups-ug_config_h.ads
persan/a-cups
f011dc18384de9afd07a53b67295974d8005cf21
[ "Apache-2.0" ]
null
null
null
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with CUPS.bits_types_h; with CUPS.wchar_h; private package CUPS.uG_config_h is -- This file is needed by libio to define various configuration parameters. -- These are always the same in the GNU C library. -- Define types for libio in terms of the standard internal type names. type u_G_fpos_t is record uu_pos : aliased CUPS.bits_types_h.uu_off_t; -- _G_config.h:23 uu_state : aliased CUPS.wchar_h.uu_mbstate_t; -- _G_config.h:24 end record; pragma Convention (C_Pass_By_Copy, u_G_fpos_t); -- _G_config.h:25 -- skipped anonymous struct anon_3 type u_G_fpos64_t is record uu_pos : aliased CUPS.bits_types_h.uu_off64_t; -- _G_config.h:28 uu_state : aliased CUPS.wchar_h.uu_mbstate_t; -- _G_config.h:29 end record; pragma Convention (C_Pass_By_Copy, u_G_fpos64_t); -- _G_config.h:30 -- skipped anonymous struct anon_4 -- These library features are always available in the GNU C library. -- This is defined by <bits/stat.h> if `st_blksize' exists. end CUPS.uG_config_h;
34.424242
77
0.725352
5909f7c4a079bdf2b0b2dec487597e595acfd47c
1,198
adb
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/boolean_bitfield.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/boolean_bitfield.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/boolean_bitfield.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- { dg-do run } -- { dg-options "-O" } with System; use System; procedure Boolean_Bitfield is Units_Per_Integer : constant := (Integer'Size + System.Storage_Unit - 1) / System.Storage_Unit; type E_type is (Red, Blue, Green); type Parent_Type is record I : Integer range 0 .. 127 := 127; C : Character := 'S'; B : Boolean := False; E : E_Type := Blue; end record; for Parent_Type use record C at 0 * Units_Per_Integer range 0 .. Character'Size - 1; B at 1 * Units_Per_Integer range 0 .. Boolean'Size - 1; I at 2 * Units_Per_Integer range 0 .. Integer'Size/2 - 1; E at 3 * Units_Per_Integer range 0 .. Character'Size - 1; end record; type Derived_Type is new Parent_Type; for Derived_Type use record C at 1 * Units_Per_Integer range 1 .. Character'Size + 1; B at 3 * Units_Per_Integer range 1 .. Boolean'Size + 1; I at 5 * Units_Per_Integer range 1 .. Integer'Size/2 + 1; E at 7 * Units_Per_Integer range 1 .. Character'Size + 1; end record; Rec : Derived_Type; begin Rec := (12, 'T', True, Red); if (Rec.I /= 12) or (Rec.C /= 'T') or (not Rec.B) or (Rec.E /= Red) then raise Program_Error; end if; end;
26.622222
74
0.63606
0b9033e590499610430f5c5d82676805afabde26
4,074
ads
Ada
src/el-methods-proc_1.ads
jquorning/ada-el
b0b07da093ac6109286404cb54a62a9a93816610
[ "Apache-2.0" ]
6
2015-01-18T23:04:00.000Z
2022-01-26T12:34:07.000Z
src/el-methods-proc_1.ads
jquorning/ada-el
b0b07da093ac6109286404cb54a62a9a93816610
[ "Apache-2.0" ]
1
2022-01-30T20:46:16.000Z
2022-01-30T20:46:16.000Z
src/el-methods-proc_1.ads
jquorning/ada-el
b0b07da093ac6109286404cb54a62a9a93816610
[ "Apache-2.0" ]
2
2021-01-06T08:27:49.000Z
2022-01-30T19:33:41.000Z
----------------------------------------------------------------------- -- el-methods-proc_1 -- Procedure Binding with 1 argument -- Copyright (C) 2010, 2011, 2012, 2013, 2015, 2021 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with EL.Expressions; with EL.Contexts; with Util.Beans.Methods; with Util.Beans.Basic; generic type Param1_Type (<>) is limited private; package EL.Methods.Proc_1 is use Util.Beans.Methods; -- Returns True if the method is a valid method which accepts the arguments -- defined by the package instantiation. function Is_Valid (Method : in EL.Expressions.Method_Info) return Boolean; -- Execute the method describe by the method expression -- and with the given context. The method signature is: -- -- procedure F (Obj : in out <Bean>; -- Param : in out Param1_Type); -- -- where <Bean> inherits from <b>Readonly_Bean</b> -- (See <b>Bind</b> package) -- -- Raises <b>Invalid_Method</b> if the method referenced by -- the method expression does not exist or does not match -- the signature. procedure Execute (Method : in EL.Expressions.Method_Expression'Class; Param : in out Param1_Type; Context : in EL.Contexts.ELContext'Class); -- Execute the method describe by the method binding object. -- The method signature is: -- -- procedure F (Obj : in out <Bean>; -- Param : in out Param1_Type); -- -- where <Bean> inherits from <b>Readonly_Bean</b> -- (See <b>Bind</b> package) -- -- Raises <b>Invalid_Method</b> if the method referenced by -- the method expression does not exist or does not match -- the signature. procedure Execute (Method : in EL.Expressions.Method_Info; Param : in out Param1_Type); -- Function access to the proxy. type Proxy_Access is access procedure (O : access Util.Beans.Basic.Readonly_Bean'Class; P : in out Param1_Type); -- The binding record which links the method name -- to the proxy function. type Binding is new Method_Binding with record Method : Proxy_Access; end record; type Binding_Access is access constant Binding; -- Proxy for the binding. -- The proxy declares the binding definition that links -- the name to the function and it implements the necessary -- object conversion to translate the <b>Readonly_Bean</b> -- object to the target object type. generic -- Name of the method (as exposed in the EL expression) Name : String; -- The bean type type Bean is abstract limited new Util.Beans.Basic.Readonly_Bean with private; -- The bean method to invoke with procedure Method (O : in out Bean; P1 : in out Param1_Type); package Bind is -- Method that <b>Execute</b> will invoke. procedure Method_Access (O : access Util.Beans.Basic.Readonly_Bean'Class; P1 : in out Param1_Type); F_NAME : aliased constant String := Name; -- The proxy binding that can be exposed through -- the <b>Method_Bean</b> interface. Proxy : aliased constant Binding := Binding '(Name => F_NAME'Access, Method => Method_Access'Access); end Bind; end EL.Methods.Proc_1;
38.074766
84
0.629602
2943892daa3e26b2b673ed551bec2b972a0b4a26
2,973
ada
Ada
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd5011s.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd5011s.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd5011s.ada
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
-- CD5011S.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- OBJECTIVE: -- CHECK THAT AN ADDRESS CLAUSE CAN BE GIVEN FOR A VARIABLE OF A -- LIMITED PRIVATE TYPE IN THE DECLARATIVE PART OF A SUBPROGRAM. -- HISTORY: -- JET 09/16/87 CREATED ORIGINAL TEST. -- PWB 05/11/89 CHANGED EXTENSION FROM '.DEP' TO '.ADA'. WITH SYSTEM; USE SYSTEM; WITH REPORT; USE REPORT; WITH SPPRT13; PROCEDURE CD5011S IS PACKAGE P IS TYPE LIMP_TYPE IS LIMITED PRIVATE; PROCEDURE TEST_LIMP (LIMP : IN OUT LIMP_TYPE); PRIVATE TYPE LIMP_TYPE IS ARRAY (1 .. 10) OF INTEGER; END P; PACKAGE BODY P IS PROCEDURE TEST_LIMP (LIMP : IN OUT LIMP_TYPE) IS BEGIN FOR I IN LIMP'RANGE LOOP LIMP (I) := IDENT_INT (I); END LOOP; FOR I IN LIMP'RANGE LOOP IF LIMP (I) /= I THEN FAILED ("INCORRECT VALUE FOR ELEMENT" & INTEGER'IMAGE (I)); END IF; END LOOP; END TEST_LIMP; END P; USE P; PROCEDURE CD5011S_PROC IS LIMP : LIMP_TYPE; FOR LIMP USE AT SPPRT13.VARIABLE_ADDRESS; BEGIN TEST_LIMP (LIMP); IF LIMP'ADDRESS /= SPPRT13.VARIABLE_ADDRESS THEN FAILED ("WRONG ADDRESS FOR VARIABLE OF A LIMITED " & "PRIVATE TYPE"); END IF; END; BEGIN TEST ("CD5011S", "AN ADDRESS CLAUSE CAN BE " & "GIVEN FOR A VARIABLE OF A LIMITED " & "PRIVATE TYPE IN THE DECLARATIVE PART " & "OF A SUBPROGRAM"); CD5011S_PROC; RESULT; END CD5011S;
33.033333
79
0.586949
290b0175ad3e2f576136c6d3fa891f47f4987d9d
2,676
adb
Ada
out/euler19.adb
Melyodas/metalang
399a9f1a71402c979d7f8024d4f98f081c80e771
[ "BSD-2-Clause" ]
22
2017-04-24T10:00:45.000Z
2021-04-01T10:11:05.000Z
out/euler19.adb
Melyodas/metalang
399a9f1a71402c979d7f8024d4f98f081c80e771
[ "BSD-2-Clause" ]
12
2017-03-26T18:34:21.000Z
2019-03-21T19:13:03.000Z
out/euler19.adb
Melyodas/metalang
399a9f1a71402c979d7f8024d4f98f081c80e771
[ "BSD-2-Clause" ]
7
2017-10-14T13:33:33.000Z
2021-03-18T15:18:50.000Z
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C; use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C; procedure euler19 is type stringptr is access all char_array; procedure PString(s : stringptr) is begin String'Write (Text_Streams.Stream (Current_Output), To_Ada(s.all)); end; procedure PInt(i : in Integer) is begin String'Write (Text_Streams.Stream (Current_Output), Trim(Integer'Image(i), Left)); end; function is_leap(year : in Integer) return Boolean is begin return year rem 400 = 0 or else (year rem 100 /= 0 and then year rem 4 = 0); end; function ndayinmonth(month : in Integer; year : in Integer) return Integer is begin if month = 0 then return 31; else if month = 1 then if is_leap(year) then return 29; else return 28; end if; else if month = 2 then return 31; else if month = 3 then return 30; else if month = 4 then return 31; else if month = 5 then return 30; else if month = 6 then return 31; else if month = 7 then return 31; else if month = 8 then return 30; else if month = 9 then return 31; else if month = 10 then return 30; else if month = 11 then return 31; end if; end if; end if; end if; end if; end if; end if; end if; end if; end if; end if; end if; return 0; end; year : Integer; ndays : Integer; month : Integer; dayofweek : Integer; count : Integer; begin month := 0; year := 1901; dayofweek := 1; -- 01-01-1901 : mardi count := 0; while year /= 2001 loop ndays := ndayinmonth(month, year); dayofweek := (dayofweek + ndays) rem 7; month := month + 1; if month = 12 then month := 0; year := year + 1; end if; if dayofweek rem 7 = 6 then count := count + 1; end if; end loop; PInt(count); PString(new char_array'( To_C("" & Character'Val(10)))); end;
22.3
97
0.470478
2981e166a33343fa83fbc6fbdc9faceb93649f33
7,446
adb
Ada
gyak/gyak1-2/b__hello.adb
balintsoos/LearnAda
9d2fc76209f6e15b4fa91b4b39107ae6cc7e7114
[ "MIT" ]
null
null
null
gyak/gyak1-2/b__hello.adb
balintsoos/LearnAda
9d2fc76209f6e15b4fa91b4b39107ae6cc7e7114
[ "MIT" ]
null
null
null
gyak/gyak1-2/b__hello.adb
balintsoos/LearnAda
9d2fc76209f6e15b4fa91b4b39107ae6cc7e7114
[ "MIT" ]
1
2021-07-16T16:15:11.000Z
2021-07-16T16:15:11.000Z
pragma Ada_95; pragma Source_File_Name (ada_main, Spec_File_Name => "b__hello.ads"); pragma Source_File_Name (ada_main, Body_File_Name => "b__hello.adb"); pragma Suppress (Overflow_Check); with Ada.Exceptions; package body ada_main is pragma Warnings (Off); E73 : Short_Integer; pragma Import (Ada, E73, "system__os_lib_E"); E14 : Short_Integer; pragma Import (Ada, E14, "system__soft_links_E"); E24 : Short_Integer; pragma Import (Ada, E24, "system__exception_table_E"); E47 : Short_Integer; pragma Import (Ada, E47, "ada__io_exceptions_E"); E49 : Short_Integer; pragma Import (Ada, E49, "ada__tags_E"); E46 : Short_Integer; pragma Import (Ada, E46, "ada__streams_E"); E71 : Short_Integer; pragma Import (Ada, E71, "interfaces__c_E"); E26 : Short_Integer; pragma Import (Ada, E26, "system__exceptions_E"); E76 : Short_Integer; pragma Import (Ada, E76, "system__file_control_block_E"); E65 : Short_Integer; pragma Import (Ada, E65, "system__file_io_E"); E69 : Short_Integer; pragma Import (Ada, E69, "system__finalization_root_E"); E67 : Short_Integer; pragma Import (Ada, E67, "ada__finalization_E"); E18 : Short_Integer; pragma Import (Ada, E18, "system__secondary_stack_E"); E07 : Short_Integer; pragma Import (Ada, E07, "ada__text_io_E"); Local_Priority_Specific_Dispatching : constant String := ""; Local_Interrupt_States : constant String := ""; Is_Elaborated : Boolean := False; procedure finalize_library is begin E07 := E07 - 1; declare procedure F1; pragma Import (Ada, F1, "ada__text_io__finalize_spec"); begin F1; end; declare procedure F2; pragma Import (Ada, F2, "system__file_io__finalize_body"); begin E65 := E65 - 1; F2; end; declare procedure Reraise_Library_Exception_If_Any; pragma Import (Ada, Reraise_Library_Exception_If_Any, "__gnat_reraise_library_exception_if_any"); begin Reraise_Library_Exception_If_Any; end; end finalize_library; procedure adafinal is procedure s_stalib_adafinal; pragma Import (C, s_stalib_adafinal, "system__standard_library__adafinal"); procedure Runtime_Finalize; pragma Import (C, Runtime_Finalize, "__gnat_runtime_finalize"); begin if not Is_Elaborated then return; end if; Is_Elaborated := False; Runtime_Finalize; s_stalib_adafinal; end adafinal; type No_Param_Proc is access procedure; procedure adainit is Main_Priority : Integer; pragma Import (C, Main_Priority, "__gl_main_priority"); Time_Slice_Value : Integer; pragma Import (C, Time_Slice_Value, "__gl_time_slice_val"); WC_Encoding : Character; pragma Import (C, WC_Encoding, "__gl_wc_encoding"); Locking_Policy : Character; pragma Import (C, Locking_Policy, "__gl_locking_policy"); Queuing_Policy : Character; pragma Import (C, Queuing_Policy, "__gl_queuing_policy"); Task_Dispatching_Policy : Character; pragma Import (C, Task_Dispatching_Policy, "__gl_task_dispatching_policy"); Priority_Specific_Dispatching : System.Address; pragma Import (C, Priority_Specific_Dispatching, "__gl_priority_specific_dispatching"); Num_Specific_Dispatching : Integer; pragma Import (C, Num_Specific_Dispatching, "__gl_num_specific_dispatching"); Main_CPU : Integer; pragma Import (C, Main_CPU, "__gl_main_cpu"); Interrupt_States : System.Address; pragma Import (C, Interrupt_States, "__gl_interrupt_states"); Num_Interrupt_States : Integer; pragma Import (C, Num_Interrupt_States, "__gl_num_interrupt_states"); Unreserve_All_Interrupts : Integer; pragma Import (C, Unreserve_All_Interrupts, "__gl_unreserve_all_interrupts"); Detect_Blocking : Integer; pragma Import (C, Detect_Blocking, "__gl_detect_blocking"); Default_Stack_Size : Integer; pragma Import (C, Default_Stack_Size, "__gl_default_stack_size"); Leap_Seconds_Support : Integer; pragma Import (C, Leap_Seconds_Support, "__gl_leap_seconds_support"); procedure Runtime_Initialize (Install_Handler : Integer); pragma Import (C, Runtime_Initialize, "__gnat_runtime_initialize"); Finalize_Library_Objects : No_Param_Proc; pragma Import (C, Finalize_Library_Objects, "__gnat_finalize_library_objects"); begin if Is_Elaborated then return; end if; Is_Elaborated := True; Main_Priority := -1; Time_Slice_Value := -1; WC_Encoding := 'b'; Locking_Policy := ' '; Queuing_Policy := ' '; Task_Dispatching_Policy := ' '; Priority_Specific_Dispatching := Local_Priority_Specific_Dispatching'Address; Num_Specific_Dispatching := 0; Main_CPU := -1; Interrupt_States := Local_Interrupt_States'Address; Num_Interrupt_States := 0; Unreserve_All_Interrupts := 0; Detect_Blocking := 0; Default_Stack_Size := -1; Leap_Seconds_Support := 0; Runtime_Initialize (1); Finalize_Library_Objects := finalize_library'access; System.Soft_Links'Elab_Spec; System.Exception_Table'Elab_Body; E24 := E24 + 1; Ada.Io_Exceptions'Elab_Spec; E47 := E47 + 1; Ada.Tags'Elab_Spec; Ada.Streams'Elab_Spec; E46 := E46 + 1; Interfaces.C'Elab_Spec; System.Exceptions'Elab_Spec; E26 := E26 + 1; System.File_Control_Block'Elab_Spec; E76 := E76 + 1; System.Finalization_Root'Elab_Spec; E69 := E69 + 1; Ada.Finalization'Elab_Spec; E67 := E67 + 1; System.File_Io'Elab_Body; E65 := E65 + 1; E71 := E71 + 1; Ada.Tags'Elab_Body; E49 := E49 + 1; System.Soft_Links'Elab_Body; E14 := E14 + 1; System.Os_Lib'Elab_Body; E73 := E73 + 1; System.Secondary_Stack'Elab_Body; E18 := E18 + 1; Ada.Text_Io'Elab_Spec; Ada.Text_Io'Elab_Body; E07 := E07 + 1; end adainit; procedure Ada_Main_Program; pragma Import (Ada, Ada_Main_Program, "_ada_hello"); function main (argc : Integer; argv : System.Address; envp : System.Address) return Integer is procedure Initialize (Addr : System.Address); pragma Import (C, Initialize, "__gnat_initialize"); procedure Finalize; pragma Import (C, Finalize, "__gnat_finalize"); SEH : aliased array (1 .. 2) of Integer; Ensure_Reference : aliased System.Address := Ada_Main_Program_Name'Address; pragma Volatile (Ensure_Reference); begin gnat_argc := argc; gnat_argv := argv; gnat_envp := envp; Initialize (SEH'Address); adainit; Ada_Main_Program; adafinal; Finalize; return (gnat_exit_status); end; -- BEGIN Object file/option list -- C:\Users\Soba95\Desktop\ada\hello.o -- -LC:\Users\Soba95\Desktop\ada\ -- -LC:\Users\Soba95\Desktop\ada\ -- -LC:/gnat/2015/lib/gcc/i686-pc-mingw32/4.9.3/adalib/ -- -static -- -lgnat -- -Wl,--stack=0x2000000 -- END Object file/option list end ada_main;
35.2891
110
0.653908
4dd0eef7174df1aec74767f414f859e269c4e51b
140
ads
Ada
tests/syntax_examples/src/other_basic_subprogram_calls.ads
TNO/Dependency_Graph_Extractor-Ada
cfcc9132cf181e4db5139c14150f221efa69a6d6
[ "BSD-3-Clause" ]
1
2022-03-08T13:00:47.000Z
2022-03-08T13:00:47.000Z
src/tools/Dependency_Graph_Extractor/tests/Syntax_Examples/src/other_basic_subprogram_calls.ads
selroc/Renaissance-Ada
39230b34aced4a9d83831be346ca103136c53715
[ "BSD-3-Clause" ]
null
null
null
src/tools/Dependency_Graph_Extractor/tests/Syntax_Examples/src/other_basic_subprogram_calls.ads
selroc/Renaissance-Ada
39230b34aced4a9d83831be346ca103136c53715
[ "BSD-3-Clause" ]
null
null
null
package Other_Basic_Subprogram_Calls is function Other_F1 return Integer; procedure Other_P1; end Other_Basic_Subprogram_Calls;
17.5
39
0.814286
1223c06b2c0845fe40927813e5b94f86d4097993
737
ads
Ada
arch/ARM/NXP/drivers/nxp-pint.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
2
2018-05-16T03:56:39.000Z
2019-07-31T13:53:56.000Z
arch/ARM/NXP/drivers/nxp-pint.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
arch/ARM/NXP/drivers/nxp-pint.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
null
null
null
private with NXP_SVD.INPUTMUX; with HAL.GPIO; package NXP.Pint is type Pint_PinInt is (PinInt_0, PinInt_1, PinInt_2, PinInt_3, PinInt_4, PinInt_5, PinInt_6, PinInt_7) with Size => 3; type Mode_Selection is (Pint_Edge, Pint_Level); type Edge_Selection is (Pint_Rising, Pint_Falling); type Level_Selection is (Pint_Low, Pint_High); type Pint_Configuration is record Slot : Pint_PinInt; Mode : Mode_Selection; Edge : Edge_Selection; Level : Level_Selection; end record; procedure Enable_Pint; procedure Disable_Pint; function Pint_Interrupt_Pending (IntNum : Pint_PinInt) return Boolean; procedure Pint_Clear_Interrupt (IntNum : Pint_PinInt); end NXP.Pint;
23.03125
90
0.719132
2fc215f789e501e0dd83761020062c5af3c93dab
4,194
adb
Ada
src/mapcode_utils-bits.adb
mapcode-foundation/mapcode-ada
6472841b55c7aeb6cb806a259942ac90651b4454
[ "Apache-2.0" ]
1
2020-07-26T07:59:45.000Z
2020-07-26T07:59:45.000Z
src/mapcode_utils-bits.adb
mapcode-foundation/mapcode-ada
6472841b55c7aeb6cb806a259942ac90651b4454
[ "Apache-2.0" ]
null
null
null
src/mapcode_utils-bits.adb
mapcode-foundation/mapcode-ada
6472841b55c7aeb6cb806a259942ac90651b4454
[ "Apache-2.0" ]
null
null
null
-- ----------------------------------------------------------------------------- -- Copyright (C) 2003-2019 Stichting Mapcode Foundation (http://www.mapcode.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. -- ----------------------------------------------------------------------------- with Ada.Unchecked_Conversion; -- Suppress warning than System.Bit_Ops is an internal GNAT unit -- thus not portable pragma Warnings (Off, "* is an internal GNAT unit"); with System.Bit_Ops; pragma Warnings (On, "* is an internal GNAT unit"); with Interfaces; package body Mapcode_Utils.Bits is function To_Unsigned_32 is new Ada.Unchecked_Conversion (Source => Integer, Target => Interfaces.Unsigned_32); function To_Integer is new Ada.Unchecked_Conversion (Source => Interfaces.Unsigned_32, Target => Integer); function To_Unsigned_64 is new Ada.Unchecked_Conversion (Source => Ll_Integer, Target => Interfaces.Unsigned_64); function To_Ll_Integer is new Ada.Unchecked_Conversion (Source => Interfaces.Unsigned_64, Target => Ll_Integer); -- Integer function "And" (Left, Right : Integer) return Integer is Res : Integer; begin System.Bit_Ops.Bit_And (Left'Address, Left'Size, Right'Address, Right'Size, Res'Address); return Res; end "And"; function "Or" (Left, Right : Integer) return Integer is Res : Integer; begin System.Bit_Ops.Bit_Or (Left'Address, Left'Size, Right'Address, Right'Size, Res'Address); return Res; end "Or"; function "Xor" (Left, Right : Integer) return Integer is Res : Integer; begin System.Bit_Ops.Bit_Xor (Left'Address, Left'Size, Right'Address, Right'Size, Res'Address); return Res; end "Xor"; function "Not" (Val : Integer) return Integer is Res : Integer; begin System.Bit_Ops.Bit_Not (Val'Address, Val'Size, Res'Address); return Res; end "Not"; function Shl (Val : Integer; Bits : Integer) return Integer is (To_Integer(Interfaces.Shift_Left(To_Unsigned_32(Val), Bits))); function Shr (Val : Integer; Bits : Integer) return Integer is (To_Integer(Interfaces.Shift_Right(To_Unsigned_32(Val), Bits))); -- Long_Long_Integer function "And" (Left, Right : Ll_Integer) return Ll_Integer is Res : Ll_Integer; begin System.Bit_Ops.Bit_And (Left'Address, Left'Size, Right'Address, Right'Size, Res'Address); return Res; end "And"; function "Or" (Left, Right : Ll_Integer) return Ll_Integer is Res : Ll_Integer; begin System.Bit_Ops.Bit_Or (Left'Address, Left'Size, Right'Address, Right'Size, Res'Address); return Res; end "Or"; function "Xor" (Left, Right : Ll_Integer) return Ll_Integer is Res : Ll_Integer; begin System.Bit_Ops.Bit_Xor (Left'Address, Left'Size, Right'Address, Right'Size, Res'Address); return Res; end "Xor"; function "Not" (Val : Ll_Integer) return Ll_Integer is Res : Ll_Integer; begin System.Bit_Ops.Bit_Not (Val'Address, Val'Size, Res'Address); return Res; end "Not"; function Shl (Val : Ll_Integer; Bits : Integer) return Ll_Integer is (To_Ll_Integer(Interfaces.Shift_Left (To_Unsigned_64(Val), Bits))); function Shr (Val : Ll_Integer; Bits : Integer) return Ll_Integer is (To_Ll_Integer(Interfaces.Shift_Right (To_Unsigned_64(Val), Bits))); end Mapcode_Utils.Bits;
33.552
80
0.627086
12d11a022daa4c838625b0eabc51ca25e7f760ef
13,734
adb
Ada
linear_algebra/givens_qr_tst_2.adb
jscparker/math_packages
b112a90338014d5c2dfae3f7265ee30841fb6cfd
[ "ISC", "MIT" ]
30
2018-12-09T01:15:04.000Z
2022-03-20T16:14:54.000Z
linear_algebra/givens_qr_tst_2.adb
jscparker/math_packages
b112a90338014d5c2dfae3f7265ee30841fb6cfd
[ "ISC", "MIT" ]
null
null
null
linear_algebra/givens_qr_tst_2.adb
jscparker/math_packages
b112a90338014d5c2dfae3f7265ee30841fb6cfd
[ "ISC", "MIT" ]
null
null
null
-- Test QR least squares equation solving real valued *square* matrices. with Ada.Numerics.Generic_elementary_functions; with Givens_QR; with Test_Matrices; With Text_IO; use Text_IO; procedure givens_qr_tst_2 is type Real is digits 15; subtype Index is Integer range 1..191; Start_Index : constant Index := Index'First + 0; Max_Index : constant Index := Index'Last - 0; subtype Row_Index is Index; subtype Col_Index is Index; Starting_Row : constant Row_Index := Start_Index; Starting_Col : constant Col_Index := Start_Index; Final_Row : constant Row_Index := Max_Index; Final_Col : constant Col_Index := Max_Index; type Matrix is array(Row_Index, Col_Index) of Real; type Matrix_inv is array(Col_Index, Row_Index) of Real; -- For inverses of A : Matrix; has shape of A_transpose. --pragma Convention (Fortran, Matrix); --No! This QR prefers Ada convention. package math is new Ada.Numerics.Generic_Elementary_Functions (Real); use math; package QR is new Givens_QR (Real => Real, R_Index => Index, C_Index => Index, A_Matrix => Matrix); use QR; -- QR exports Row_Vector and Col_Vector package Make_Square_Matrix is new Test_Matrices (Real, Index, Matrix); use Make_Square_Matrix; package rio is new Float_IO(Real); use rio; --subtype Longer_Real is Real; -- general case, and for best speed --type Longer_Real is digits 18; -- 18 ok on intel, rarely useful Min_Real :constant Real := 2.0 ** (Real'Machine_Emin/2 + Real'Machine_Emin/4); Zero : constant Real := +0.0; One : constant Real := +1.0; Two : constant Real := +2.0; -- Used by Frobenius_Norm and by Get_Err in reassembled A -------------------- -- Frobenius_Norm -- -------------------- function Frobenius_Norm (A : in Matrix) --Final_Row : in Index; --Final_Col : in Index; --Starting_Row : in Index; --Starting_Col : in Index) return Real is Max_A_Val : Real := Zero; Sum, Scaling, tmp : Real := Zero; begin Max_A_Val := Zero; for Row in Starting_Row .. Final_Row loop for Col in Starting_Col .. Final_Col loop if Max_A_Val < Abs A(Row, Col) then Max_A_Val := Abs A(Row, Col); end if; end loop; end loop; Max_A_Val := Max_A_Val + Two ** (Real'Machine_Emin + 4); Scaling := One / Max_A_Val; Sum := Zero; for Row in Starting_Row .. Final_Row loop for Col in Starting_Col .. Final_Col loop tmp := Scaling * A(Row, Col); Sum := Sum + tmp * tmp; end loop; end loop; return Sqrt (Sum) * Max_A_Val; end Frobenius_Norm; ------------ -- Invert -- ------------ -- Get Inverse of the Matrix: procedure Get_Inverse (R : in Matrix; Q : in Q_Matrix; Scale : in Col_Vector; Permute : in Permutation; A_inverse : out Matrix_inv) -- shape is A_transpose is Solution_Row_Vector : Row_Vector; -- X Unit_Col_Vector : Col_Vector := (others => 0.0); -- B -- We are going to solve for X in A*X = B Final_Row : Row_Index renames Q.Final_Row; Final_Col : Col_Index renames Q.Final_Col; Starting_Row : Row_Index renames Q.Starting_Row; Starting_Col : Col_Index renames Q.Starting_Col; begin A_inverse := (others => (others => Zero)); --new_line; --for i in Starting_Row_Col..Max_Row_Col loop --put(R(i,i)); --end loop; for i in Starting_Row .. Final_Row loop if i > Starting_Row then Unit_Col_Vector(i-1) := 0.0; end if; Unit_Col_Vector(i) := 1.0; -- Make all possible unit Col vectors: (Final_Row-Starting_Row+1) of them QR_Solve (X => Solution_Row_Vector, B => Unit_Col_Vector, R => R, Q => Q, Row_Scalings => Scale, Col_Permutation => Permute); -- Solve equ. A*Solution_Row_Vector = Unit_Col_Vector (for Solution_Row...). -- Q contains the Starting_Row, Final_Row, Starting_Col, etc. for j in Starting_Col .. Final_Col loop A_Inverse (j,i) := Solution_Row_Vector(j); end loop; -- All vectors you multiply by A must be Row_Vectors, -- So the cols of A_inv are Row_Vectors. end loop; end Get_Inverse; procedure Get_Err_in_Least_Squares_A (A : in Matrix; R : in Matrix; Q : in Q_Matrix; Scale : in Col_Vector; Permute : in Permutation; Err_in_Least_Squ_A : out Real; Condition_Number_of_Least_Squ_A : out Real; Condition_Number_of_A : out Real) is Max_Diag_Val_of_R : constant Real := Abs R(Starting_Col, Starting_Row); Min_Allowed_Diag_Val_of_R : constant Real := Max_Diag_Val_of_R * Default_Singularity_Cutoff; Min_Diag_Val_of_Least_Squ_R : Real; Least_Squares_Truncated_Final_Row : Row_Index := Final_Row; -- essential init Product_Vector, Col_of_R : Col_Vector := (others => Zero); Row : Row_Index; Err_Matrix : Matrix := (others => (others => Zero)); Final_Row : Row_Index renames Q.Final_Row; Final_Col : Col_Index renames Q.Final_Col; Starting_Row : Row_Index renames Q.Starting_Row; Starting_Col : Col_Index renames Q.Starting_Col; begin -- The Columns of R have been permuted; unpermute before comparison of A with Q*R -- The Columns of R have been scaled. Before comparison of A with Q*R -- Must unscale each col of R by multiplying them with 1/Scale(Row). Row := Starting_Row; Find_Truncated_Final_Row: for Col in Starting_Col .. Final_Col loop Min_Diag_Val_of_Least_Squ_R := Abs R(Row, Col); if Min_Diag_Val_of_Least_Squ_R < Min_Allowed_Diag_Val_of_R then Least_Squares_Truncated_Final_Row := Row - 1; Min_Diag_Val_of_Least_Squ_R := Abs R(Row-1, Col-1); exit Find_Truncated_Final_Row; end if; if Row < Final_Row then Row := Row + 1; end if; end loop Find_Truncated_Final_Row; for Col in Starting_Col .. Final_Col loop Col_of_R := (others => Zero); for Row in Starting_Row .. Least_Squares_Truncated_Final_Row loop Col_of_R(Row) := R(Row, Col); end loop; Product_Vector := Q_x_Col_Vector (Q, Col_of_R); for Row in Starting_Row .. Final_Row loop Err_Matrix(Row, Col) := Abs (A(Row, Permute(Col)) - --Product_Vector(Row) / (Scale(Permute(Col)) + Min_Real)); Product_Vector(Row) / (Scale(Row) + Min_Real)); end loop; end loop; -- Froebenius norm fractional error = ||Err_Matrix|| / ||A|| Err_in_Least_Squ_A := Frobenius_Norm (Err_Matrix) / (Frobenius_Norm (A) + Min_Real); Condition_Number_of_Least_Squ_A := Max_Diag_Val_of_R / (Min_Diag_Val_of_Least_Squ_R + Min_Real); Condition_Number_of_A := Max_Diag_Val_of_R / (Abs R(Final_Row, Final_Col) + Min_Real); end Get_Err_in_Least_Squares_A; ----------- -- Pause -- ----------- procedure Pause (s0,s1,s2,s3,s4,s5,s6,s7,s8,s9 : String := "") is Continue : Character := ' '; begin new_line; if S0 /= "" then put_line (S0); end if; if S1 /= "" then put_line (S1); end if; if S2 /= "" then put_line (S2); end if; if S3 /= "" then put_line (S3); end if; if S4 /= "" then put_line (S4); end if; if S5 /= "" then put_line (S5); end if; if S6 /= "" then put_line (S6); end if; if S7 /= "" then put_line (S7); end if; if S8 /= "" then put_line (S8); end if; if S9 /= "" then put_line (S9); end if; new_line; begin put ("Type a character to continue: "); get_immediate (Continue); exception when others => null; end; end pause; ------------------------- -- Print_Err_in_LSQ_A -- ------------------------- procedure Print_Err_in_LSQ_A (Chosen_Matrix : Matrix_id) is A_inv : Matrix_inv; A, R : Matrix; Q : Q_Matrix; Scale : Col_Vector; Permute : Permutation; Err_in_Least_Squ_A, Condition_Number_of_Least_Squ_A, Condition_Number_of_A : Real; begin Init_Matrix (A, Chosen_Matrix, Start_Index, Max_Index); R := A; -- leave A unmolested; R will be returned as upper rt. triangular QR_Decompose (A => R, -- input matrix A, but call it R. Q => Q, Row_Scalings => Scale, Col_Permutation => Permute, Final_Row => Final_Row, Final_Col => Final_Col, Starting_Row => Starting_Row, Starting_Col => Starting_Col); --new_line; --for Row in Starting_Row .. Final_Row loop --put (R(Row, Col_Index (Starting_Col + Row - Starting_Row))); --end loop; Get_Inverse (R, Q, Scale, Permute, A_inv); Get_Err_in_Least_Squares_A (A, R, Q, Scale, Permute, Err_in_Least_Squ_A, Condition_Number_of_Least_Squ_A, Condition_Number_of_A); new_line; put ("For matrix A of type "); put(Matrix_id'Image(Chosen_Matrix)); put(":"); new_line; put(" Estimate (usually low) of condition number of original A ="); put(Condition_Number_of_A); new_line; put(" Estimate (usually low) of condition number of least squares A ="); put(Condition_Number_of_Least_Squ_A); new_line; put(" How much A changed in taking least squares: ||A - A_ls||/||A|| ="); put(Err_in_Least_Squ_A); new_line; end Print_Err_in_LSQ_A; begin Pause( "The following test demonstrates least squares equation solving using QR", "decomposition of A. Least squares happens naturally in QR, because in", "obtaining A = Q*R we have written the columns of A as linear combinations", "of a complete set of orthonormal vectors (the Cols of Q). If you zero out", "one or more of the Cols of Q, and recalculate A = Q*R, then you have a", "least squares approximation of the columns of A in the basis spanned by the", "remaining cols of Q. For lack of a better term, let's call this the least", "squares A. We do this below explicitly. The idea is to show that you get a", "least squares version of A that differs from A by only 1 part in (say) 10**11,", "but has vastly better properties in equation solving (lower condition number)." ); Pause( "Below we print condition numbers of the original A, and the least squares A.", "The condition numbers are estimates obtained from the diagonal elements of R.", "They are rough estimates (you need SVD for accurate values), but are ok for", "the present demonstration. The condition number of the least squares A is", "that of the reduced rank matrix used in least squares equation solving.", "(And they are condition numbers of column scaled matrices, not the raw", "matrices emitted by package Matrix_Sampler. SVD uses the raw matrices.)" ); Print_Err_in_LSQ_A (Chosen_Matrix => KAHAN); Pause( "We started with an ideal case: A is nearly singular (condition number > 10**18).", "You would need 23 digit arithmetic to get solutions correct to 4 digits. The", "least squares A is well-conditioned (condition number ~ 8), and notice we", "only had to change A by 2 parts in 10**16 to get a well-conditioned matrix." ); Print_Err_in_LSQ_A (Chosen_Matrix => RANDOM_32_bit); Pause( "All the elements in Random are generated by a random num generator. Its", "condition number should be considered typical. It is not ill-conditioned,", "and it was not modified by the least squares process. Least squares fitting,", "only occurs when condition number exceeds some threshold (here about 10**11)." ); Print_Err_in_LSQ_A (Chosen_Matrix => Hilbert); Pause( "Hilbert's matrix is a worst case matrix. The condition number exceeds 10**11", "so least squares is performed. The distance between A and least squares A", "is now significant, (the maximum likely to be observed). The decrease in", "condition number is as predicted, but not as good as some other cases." ); Print_Err_in_LSQ_A (Chosen_Matrix => Pascal); Pause( "Pascal's matrix is another worst case. The condition number exceeds 10**11", "so the matrix is modified. The difference between A and the least squares A", "is now significant, (the maximum likely to be observed). The decrease in", "condition number is as predicted, but not as good as some other cases." ); Pause( "We now run through all the matrices in the test suite. Most are singular,", "ill-conditioned, badly scaled, or several of the above. The least squares", "process described above is the default, because when the matrix is singular", "(infinite condition number, or 2**231 here) then it is the only practical", "choice. Badly behaved matrices are likely to occur sporadically in most", "problem domains, but in some problem domains they are the norm." ); for Chosen_Matrix in Matrix_id loop Print_Err_in_LSQ_A (Chosen_Matrix); end loop; end;
34.421053
89
0.618756
1ceeb5f8891991c426ea16981e5caadda33c2b67
711
ads
Ada
arch/ARM/cortex_m/src/cm0/cortex_m_svd.ads
shakram02/Ada_Drivers_Library
a407ca7ddbc2d9756647016c2f8fd8ef24a239ff
[ "BSD-3-Clause" ]
192
2016-06-01T18:32:04.000Z
2022-03-26T22:52:31.000Z
arch/ARM/cortex_m/src/cm0/cortex_m_svd.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
239
2016-05-26T20:02:01.000Z
2022-03-31T09:46:56.000Z
arch/ARM/cortex_m/src/cm0/cortex_m_svd.ads
morbos/Ada_Drivers_Library
a4ab26799be60997c38735f4056160c4af597ef7
[ "BSD-3-Clause" ]
142
2016-06-05T08:12:20.000Z
2022-03-24T17:37:17.000Z
-- This spec has been automatically generated from cm0.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package Cortex_M_SVD is pragma Preelaborate; -------------------- -- Base addresses -- -------------------- NVIC_Base : constant System.Address := System'To_Address (16#E000E100#); SCB_Base : constant System.Address := System'To_Address (16#E000ED00#); SysTick_Base : constant System.Address := System'To_Address (16#E000E010#); Debug_Base : constant System.Address := System'To_Address (16#E000ED00#); DWT_Base : constant System.Address := System'To_Address (16#E0001000#); end Cortex_M_SVD;
25.392857
59
0.672293
29d960e5722fc8879efcb51e7e53c817f611dbc9
3,745
ads
Ada
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-except.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-except.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-except.ads
djamal2727/Main-Bearing-Analytical-Model
2f00c2219c71be0175c6f4f8f1d4cca231d97096
[ "Apache-2.0" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S Y S T E M . E X C E P T I O N S -- -- -- -- S p e c -- -- -- -- Copyright (C) 2006-2020, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ pragma Compiler_Unit_Warning; package System.Exceptions is pragma Preelaborate; -- To let Ada.Exceptions "with" us and let us "with" Standard_Library ZCX_By_Default : constant Boolean; -- Visible copy to allow Ada.Exceptions to know the exception model private type Require_Body; -- Dummy Taft-amendment type to make it legal (and required) to provide -- a body for this package. -- -- We do this because this unit used to have a body in earlier versions -- of GNAT, and it causes various bootstrap path problems etc if we remove -- a body, since we may pick up old unwanted bodies. -- -- Note: we use this standard Ada method of requiring a body rather -- than the cleaner pragma No_Body because System.Exceptions is a compiler -- unit, and older bootstrap compilers do not support pragma No_Body. This -- type can be removed, and s-except.adb can be replaced by a source -- containing just that pragma, when we decide to move to a 2008 compiler -- as the minimal bootstrap compiler version. ??? ZCX_By_Default : constant Boolean := System.ZCX_By_Default; Foreign_Exception : exception; pragma Unreferenced (Foreign_Exception); -- This hidden exception is used to represent non-Ada exception to -- Ada handlers. It is in fact referenced by its linking name. end System.Exceptions;
55.895522
78
0.498264
29e9622d781d15eba7178116971fb265c6fce3b0
862
ads
Ada
src/css.ads
stcarrez/ada-css
f7c337306094993186c507540701d04a4753b724
[ "Apache-2.0" ]
3
2017-01-03T22:18:22.000Z
2017-01-10T07:58:17.000Z
src/css.ads
stcarrez/ada-css
f7c337306094993186c507540701d04a4753b724
[ "Apache-2.0" ]
null
null
null
src/css.ads
stcarrez/ada-css
f7c337306094993186c507540701d04a4753b724
[ "Apache-2.0" ]
null
null
null
----------------------------------------------------------------------- -- css -- Ada CSS Library -- Copyright (C) 2017 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- package CSS is end CSS;
39.181818
76
0.606729
4103e7fc18a33e5e16637bcf215e30851e5c259b
134
ads
Ada
PMOO/ADA/LAB2/PARTE_2/crear_sublista_pares.ads
usainzg/EHU
ada8fae57566e76a9a0bc3d6de906cde167828a7
[ "MIT" ]
null
null
null
PMOO/ADA/LAB2/PARTE_2/crear_sublista_pares.ads
usainzg/EHU
ada8fae57566e76a9a0bc3d6de906cde167828a7
[ "MIT" ]
null
null
null
PMOO/ADA/LAB2/PARTE_2/crear_sublista_pares.ads
usainzg/EHU
ada8fae57566e76a9a0bc3d6de906cde167828a7
[ "MIT" ]
null
null
null
with Es_Par; with Listas_Enteros; procedure Crear_Sublista_Pares is new Listas_Enteros.Crear_Sublista(Cuantos => 4, Filtro => Es_Par);
44.666667
100
0.820896
29143eefb7bc1d1c2514b16631a6a5fce13bb971
2,394
ads
Ada
orka/src/orka/interface/orka-resources-locations.ads
onox/orka
9edf99559a16ffa96dfdb208322f4d18efbcbac6
[ "Apache-2.0" ]
52
2016-07-30T23:00:28.000Z
2022-02-05T11:54:55.000Z
orka/src/orka/interface/orka-resources-locations.ads
onox/orka
9edf99559a16ffa96dfdb208322f4d18efbcbac6
[ "Apache-2.0" ]
79
2016-08-01T18:36:48.000Z
2022-02-27T12:14:20.000Z
orka/src/orka/interface/orka-resources-locations.ads
onox/orka
9edf99559a16ffa96dfdb208322f4d18efbcbac6
[ "Apache-2.0" ]
4
2018-04-28T22:36:26.000Z
2020-11-14T23:00:29.000Z
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2018 onox <[email protected]> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. with Ada.IO_Exceptions; package Orka.Resources.Locations is pragma Preelaborate; type Location is limited interface; function Exists (Object : Location; Path : String) return Boolean is abstract; function Read_Data (Object : Location; Path : String) return Byte_Array_Pointers.Pointer is abstract; -- Return the data of the file at the given path in the location if -- Path identifies an existing file, otherwise the exception Name_Error -- is raised -- -- If the file at the given path could not be read for any reason -- then any kind of error is raised. type Writable_Location is limited interface and Location; procedure Write_Data (Object : Writable_Location; Path : String; Data : Byte_Array) is abstract; -- Write data to a non-existing file at the given path in the location -- -- If the file at the given path could not be created or written to -- for any reason then any kind of error is raised. procedure Append_Data (Object : Writable_Location; Path : String; Data : Byte_Array) is abstract; -- Append data to a (non-)existing file at the given path in the location -- -- If the file at the given path could not be created or written to -- for any reason then any kind of error is raised. type Location_Access is access all Location'Class; subtype Location_Ptr is not null Location_Access; type Writable_Location_Ptr is not null access Writable_Location'Class; Name_Error : exception renames Ada.IO_Exceptions.Name_Error; Path_Separator : constant Character with Import, Convention => C, External_Name => "__gnat_dir_separator"; end Orka.Resources.Locations;
35.205882
81
0.716792
595704b411382c99b9b2f613cda99ef7c010964b
8,727
ads
Ada
source/amf/uml/amf-internals-umldi_uml_multiplicity_labels.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/uml/amf-internals-umldi_uml_multiplicity_labels.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/uml/amf-internals-umldi_uml_multiplicity_labels.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2012, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ with AMF.CMOF.Elements; with AMF.DI.Styles; with AMF.Internals.UMLDI_UML_Labels; with AMF.UML.Elements.Collections; with AMF.UML.Multiplicity_Elements; with AMF.UMLDI.UML_Multiplicity_Labels; with AMF.UMLDI.UML_Styles; with AMF.Visitors; with League.Strings; package AMF.Internals.UMLDI_UML_Multiplicity_Labels is type UMLDI_UML_Multiplicity_Label_Proxy is limited new AMF.Internals.UMLDI_UML_Labels.UMLDI_UML_Label_Proxy and AMF.UMLDI.UML_Multiplicity_Labels.UMLDI_UML_Multiplicity_Label with null record; overriding function Get_Model_Element (Self : not null access constant UMLDI_UML_Multiplicity_Label_Proxy) return AMF.UML.Multiplicity_Elements.UML_Multiplicity_Element_Access; -- Getter of UMLMultiplicityLabel::modelElement. -- -- Restricts UMLMultiplicityLabels to show only MultiplicityElements. overriding procedure Set_Model_Element (Self : not null access UMLDI_UML_Multiplicity_Label_Proxy; To : AMF.UML.Multiplicity_Elements.UML_Multiplicity_Element_Access); -- Setter of UMLMultiplicityLabel::modelElement. -- -- Restricts UMLMultiplicityLabels to show only MultiplicityElements. overriding function Get_Text (Self : not null access constant UMLDI_UML_Multiplicity_Label_Proxy) return League.Strings.Universal_String; -- Getter of UMLLabel::text. -- -- String to be rendered. overriding procedure Set_Text (Self : not null access UMLDI_UML_Multiplicity_Label_Proxy; To : League.Strings.Universal_String); -- Setter of UMLLabel::text. -- -- String to be rendered. overriding function Get_Is_Icon (Self : not null access constant UMLDI_UML_Multiplicity_Label_Proxy) return Boolean; -- Getter of UMLDiagramElement::isIcon. -- -- For modelElements that have an option to be shown with shapes other -- than rectangles, such as Actors, or with other identifying shapes -- inside them, such as arrows distinguishing InputPins and OutputPins, or -- edges that have an option to be shown with lines other than solid with -- open arrow heads, such as Realization. A value of true for isIcon -- indicates the alternative notation shall be shown. overriding procedure Set_Is_Icon (Self : not null access UMLDI_UML_Multiplicity_Label_Proxy; To : Boolean); -- Setter of UMLDiagramElement::isIcon. -- -- For modelElements that have an option to be shown with shapes other -- than rectangles, such as Actors, or with other identifying shapes -- inside them, such as arrows distinguishing InputPins and OutputPins, or -- edges that have an option to be shown with lines other than solid with -- open arrow heads, such as Realization. A value of true for isIcon -- indicates the alternative notation shall be shown. overriding function Get_Local_Style (Self : not null access constant UMLDI_UML_Multiplicity_Label_Proxy) return AMF.UMLDI.UML_Styles.UMLDI_UML_Style_Access; -- Getter of UMLDiagramElement::localStyle. -- -- Restricts owned styles to UMLStyles. overriding procedure Set_Local_Style (Self : not null access UMLDI_UML_Multiplicity_Label_Proxy; To : AMF.UMLDI.UML_Styles.UMLDI_UML_Style_Access); -- Setter of UMLDiagramElement::localStyle. -- -- Restricts owned styles to UMLStyles. overriding function Get_Model_Element (Self : not null access constant UMLDI_UML_Multiplicity_Label_Proxy) return AMF.UML.Elements.Collections.Set_Of_UML_Element; -- Getter of UMLDiagramElement::modelElement. -- -- Restricts UMLDiagramElements to show UML Elements, rather than other -- language elements. overriding function Get_Model_Element (Self : not null access constant UMLDI_UML_Multiplicity_Label_Proxy) return AMF.CMOF.Elements.CMOF_Element_Access; -- Getter of DiagramElement::modelElement. -- -- a reference to a depicted model element, which can be any MOF-based -- element overriding function Get_Local_Style (Self : not null access constant UMLDI_UML_Multiplicity_Label_Proxy) return AMF.DI.Styles.DI_Style_Access; -- Getter of DiagramElement::localStyle. -- -- a reference to an optional locally-owned style for this diagram element. overriding procedure Set_Local_Style (Self : not null access UMLDI_UML_Multiplicity_Label_Proxy; To : AMF.DI.Styles.DI_Style_Access); -- Setter of DiagramElement::localStyle. -- -- a reference to an optional locally-owned style for this diagram element. overriding procedure Enter_Element (Self : not null access constant UMLDI_UML_Multiplicity_Label_Proxy; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control); overriding procedure Leave_Element (Self : not null access constant UMLDI_UML_Multiplicity_Label_Proxy; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control); overriding procedure Visit_Element (Self : not null access constant UMLDI_UML_Multiplicity_Label_Proxy; Iterator : in out AMF.Visitors.Abstract_Iterator'Class; Visitor : in out AMF.Visitors.Abstract_Visitor'Class; Control : in out AMF.Visitors.Traverse_Control); end AMF.Internals.UMLDI_UML_Multiplicity_Labels;
50.445087
91
0.613728
124788e8b9ebf18a28090f4e754d370b578fe89e
6,121
adb
Ada
src/formatter_test.adb
zenharris/ada-bbs
6294bc29979289b40927011bdff6cedf62719ef8
[ "Unlicense" ]
2
2019-07-13T03:51:43.000Z
2019-07-17T08:27:38.000Z
src/formatter_test.adb
zenharris/ada-bbs
6294bc29979289b40927011bdff6cedf62719ef8
[ "Unlicense" ]
null
null
null
src/formatter_test.adb
zenharris/ada-bbs
6294bc29979289b40927011bdff6cedf62719ef8
[ "Unlicense" ]
2
2019-10-08T08:14:38.000Z
2021-03-11T20:50:02.000Z
-------------------------- with Text_IO; with Formatter; procedure Formatter_Test is -- ++ -- -- FUNCTIONAL DESCRIPTION: -- -- This is a test driver program for the generic Formatter package. -- -- FORMAL PARAMETERS: -- -- None. -- -- DESIGN: -- -- This test driver contains a number of calls to the Formatter Put -- procedure with a format string and data values. Each test is identified -- by a test number and a description of the test. -- -- EXCEPTIONS: -- -- No exceptions are declared in this test driver, although any exception -- raised by Formatter.Put are handled. -- -- KEYWORDS: -- -- Test Driver. -- -- -- type Days_of_Week is (Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday); package Ada_Format is new Formatter (Enumerated => Days_of_Week); use Ada_Format; -- Direct visibility of F conversion functions Name : String(1..6); Integer_Value : Positive := 66; Real_Value : Float := 3.1415927; Character_Value : Character := 'x'; Enumeration_Value : Days_of_Week := Thursday; begin -- Formatter_Test Test_1: begin Name := "Test_1"; Ada_Format.Put("%s:\tDefault Formats\n", F(Name)); Ada_Format.Put("Integer_Value = '%i'\n", F(Integer_Value)); Ada_Format.Put("Real_Value = '%f'\n", F(Real_Value)); Ada_Format.Put("Scientific_Value = '%e'\n", F(Real_Value)); Ada_Format.Put("Character_Value = '%c'\n", F(Character_Value)); Ada_Format.Put("Enumeration_Value = '%s'\n\n", F(Enumeration_Value)); exception when others => Text_IO.Put_Line("Test_1: Unknown exception raised."); Text_IO.New_Line; end Test_1; Test_2: begin Name := "Test_2"; Ada_Format.Put("%s:\t" & "Wide-Field Formats\n" & "Integer_Value = '%15i'\n" & "Real_Value = '%15f'\n" & "Scientific_Value = '%15e'\n" & "Character_Value = '%15c'\n" & "Enumeration_Value = '%15s'\n\n", (F(Name), F(Integer_Value), F(Real_Value), F(Real_Value), F(Character_Value), F(Enumeration_Value))); exception when others => Text_IO.Put_Line("Test_2: Unknown exception raised."); Text_IO.New_Line; end Test_2; Test_3: begin Name := "Test_3"; Ada_Format.Put("%s:\t" & "Wide-Field Left-Justified Formats\n" & "Integer_Value = '%-15i'\n" & "Real_Value = '%-15f'\n" & "Scientific_Value = '%-15e'\n" & "Character_Value = '%-15c'\n" & "Enumeration_Value = '%-15s'\n\n", (F(Name), F(Integer_Value), F(Real_Value), F(Real_Value), F(Character_Value), F(Enumeration_Value))); exception when others => Text_IO.Put_Line("Test_3: Unknown exception raised."); Text_IO.New_Line; end Test_3; Test_4: begin Name := "Test_4"; Ada_Format.Put("%s:\tDefault Formats, Zero-Fill\n", F(Name)); Ada_Format.Put("Integer_Value = '%0i'\n", F(Integer_Value)); Ada_Format.Put("Real_Value = '%0f'\n", F(Real_Value)); Ada_Format.Put("Scientific_Value = '%0e'\n\n", F(Real_Value)); exception when others => Text_IO.Put_Line("Test_4: Unknown exception raised."); Text_IO.New_Line; end Test_4; Test_5: begin Name := "Test_5"; Ada_Format.Put("%s:\t" & "Specified Field Width, Non-Decimal Bases\n" & "Integer Value = '%4i'\n" & "Hexadecimal Value = '%4x'\n" & "Octal Value = '%4o'\n\n", (F(Name), F(Integer_Value), F(Integer_Value), F(Integer_Value))); exception when others => Text_IO.Put_Line("Test_5: Unknown exception raised."); Text_IO.New_Line; end Test_5; Test_6: begin Name := "Test_6"; Ada_Format.Put("%s:\t" & "Precision Formats\n" & "Integer_Value = '%15.4i'\n" & "Real_Value = '%15.4f'\n" & "Scientific_Value = '%15.4e'\n" & "String_Value = '%15.6s'\n\n", (F(Name), F(Integer_Value), F(Real_Value), F(Real_Value), F(Name))); exception when others => Text_IO.Put_Line("Test_6: Unknown exception raised."); Text_IO.New_Line; end Test_6; Test_7: begin Name := "Test_7"; Ada_Format.Put("%s:\t" & "Incorrect Field Widths\n" & "Integer_Value = '%1i'\n" & "Real_Value = '%2.1f'\n" & "Scientific_Value = '%3.2e'\n" & "String_Value = '%4s'\n" & "Unknown Format = '%+02,7z'\n\n", (F(Name), F(Integer_Value), F(Real_Value), F(Real_Value), F(Name), F(25))); exception when others => Text_IO.Put_Line("Test_7: Unknown exception raised."); Text_IO.New_Line; end Test_7; end Formatter_Test; -----------------------------
32.558511
81
0.455154
1d6062e9d7af2bb0c8862765123595f2ad8a9534
7,762
ads
Ada
tests/support/usb_testing-udc_stub.ads
JeremyGrosser/usb_embedded
8597a505dd1fd8b28a2e87f069034213ca8a2607
[ "BSD-3-Clause" ]
null
null
null
tests/support/usb_testing-udc_stub.ads
JeremyGrosser/usb_embedded
8597a505dd1fd8b28a2e87f069034213ca8a2607
[ "BSD-3-Clause" ]
null
null
null
tests/support/usb_testing-udc_stub.ads
JeremyGrosser/usb_embedded
8597a505dd1fd8b28a2e87f069034213ca8a2607
[ "BSD-3-Clause" ]
null
null
null
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018, AdaCore -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of the copyright holder nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- USB Device Controller stub for testing with Ada.Containers.Doubly_Linked_Lists; with System; with HAL; use HAL; with USB; use USB; with USB.Device; use USB.Device; with USB.HAL.Device; use USB.HAL.Device; with USB.Utils; package USB_Testing.UDC_Stub is type Scenario_Event_Kind is (Set_Verbose, UDC_Event_E, Transfer_Out, Transfer_In); type Scenario_Event (Kind : Scenario_Event_Kind := UDC_Event_E) is record case Kind is when Set_Verbose => Verbose : Boolean; when UDC_Event_E => Evt : UDC_Event; when Transfer_Out => EP_Out : EP_Id; Count_Out : Natural; when Transfer_In => EP_In : EP_Id; end case; end record; type Stub_Scenario is array (Natural range <>) of Scenario_Event; Empty_Scenario : constant Stub_Scenario (1 .. 0) := (others => <>); type Controller (Scenario : not null access constant Stub_Scenario; RX_Data : not null access constant UInt8_Array; Has_Early_Address : Boolean; Max_Packet_Size : UInt32; EP_Buffers_Size : Natural; Number_Of_EPs : EP_Id) is new USB_Device_Controller with private; function End_Of_Scenario (This : Controller) return Boolean; overriding procedure Initialize (This : in out Controller); overriding function Request_Buffer (This : in out Controller; Ep : EP_Addr; Len : UInt11; Min_Alignment : UInt8 := 1) return System.Address; overriding function Valid_EP_Id (This : in out Controller; EP : EP_Id) return Boolean is (EP <= This.Number_Of_EPs); overriding procedure Start (This : in out Controller); overriding procedure Reset (This : in out Controller); overriding function Poll (This : in out Controller) return UDC_Event; overriding procedure EP_Write_Packet (This : in out Controller; Ep : EP_Id; Addr : System.Address; Len : UInt32); overriding procedure EP_Setup (This : in out Controller; EP : EP_Addr; Typ : EP_Type; Max_Size : UInt16); overriding procedure EP_Ready_For_Data (This : in out Controller; EP : EP_Id; Addr : System.Address; Size : UInt32; Ready : Boolean := True); overriding procedure EP_Stall (This : in out Controller; EP : EP_Addr; Set : Boolean); overriding procedure Set_Address (This : in out Controller; Addr : UInt7); overriding function Early_Address (This : Controller) return Boolean is (This.Has_Early_Address); private package Event_Stack is new Ada.Containers.Doubly_Linked_Lists (Scenario_Event); use Event_Stack; type EP_Stub is record Setup : Boolean := False; NAK : Boolean := False; Stall : Boolean := False; Typ : EP_Type := Control; Buf : System.Address := System.Null_Address; Buf_Len : UInt11 := 0; Max_Size : UInt16 := 0; Scenario_Waiting_For_Data : Boolean := False; end record; type EP_Stub_Couple is array (EP_Dir) of EP_Stub; type EP_Stub_Array is array (EP_Id range <>) of EP_Stub_Couple; type Controller_State is (Nominal, Device_To_Host_Transfer, Host_To_Device_Transfer); type Controller (Scenario : not null access constant Stub_Scenario; RX_Data : not null access constant UInt8_Array; Has_Early_Address : Boolean; Max_Packet_Size : UInt32; EP_Buffers_Size : Natural; Number_Of_EPs : EP_Id) is new USB_Device_Controller with record State : Controller_State := Nominal; Stack : Event_Stack.List; Scenario_Index : Natural := Scenario.all'First; RX_Index : Natural := RX_Data.all'First; Verbose : Boolean := True; EPs : EP_Stub_Array (0 .. 5); -- Arbitrary number of EP Got_Ack : Boolean := False; Alloc : USB.Utils.Basic_RAM_Allocator (EP_Buffers_Size); end record; function Pop (This : in out Controller) return Scenario_Event with Pre => not This.Stack.Is_Empty; procedure Push (This : in out Controller; Evt : Scenario_Event); procedure Put_Line (This : Controller; Str : String); -- Print on the console iff in verbose mode procedure Put (This : Controller; Str : String); -- Print on the console iff in verbose mode procedure Hex_Dump (This : Controller; Data : HAL.UInt8_Array); -- Print on the console iff in verbose mode end USB_Testing.UDC_Stub;
37.863415
78
0.537877
503fd480913c06dc796e38209bbf071e4f089918
984
adb
Ada
ada/euler8.adb
procrastiraptor/euler
1dd1040527c8de18e6325199a5939b32b8f76cac
[ "MIT" ]
1
2017-10-25T14:45:57.000Z
2017-10-25T14:45:57.000Z
ada/euler8.adb
procrastiraptor/euler
1dd1040527c8de18e6325199a5939b32b8f76cac
[ "MIT" ]
null
null
null
ada/euler8.adb
procrastiraptor/euler
1dd1040527c8de18e6325199a5939b32b8f76cac
[ "MIT" ]
null
null
null
with Ada.Text_IO; procedure Euler8 is Product_Size : constant Positive := 13; type Product is range 0 .. 9 ** Product_Size; package Product_IO is new Ada.Text_IO.Integer_IO(Product); function String_Product(S: String) return Product is Prod: Product := 1; begin for C of S loop Prod := Prod * (Character'Pos(C) - Character'Pos('0')); end loop; return Prod; end String_Product; Line_Length: constant Positive := 50; Number: String(1 .. 1000); Append: Positive := Number'First; Curr, Max: Product := 0; begin while not Ada.Text_IO.End_Of_File loop Number(Append .. Append + Line_Length - 1) := Ada.Text_IO.Get_Line; Append := Append + Line_Length; end loop; for I in Number'Range loop exit when I + Product_Size - 1 > Number'Last; Curr := String_Product(Number(I .. I + Product_Size - 1)); if Curr > Max then Max := Curr; end if; end loop; Product_IO.Put(Max); end Euler8;
28.114286
73
0.643293
29bdfd4886f85b8bad9094c59775f2268832ddce
169,421
adb
Ada
gcc-gcc-7_3_0-release/gcc/ada/sem_warn.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/ada/sem_warn.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/ada/sem_warn.adb
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S E M _ W A R N -- -- -- -- B o d y -- -- -- -- Copyright (C) 1999-2016, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT 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 distributed with GNAT; see file COPYING3. If not, go to -- -- http://www.gnu.org/licenses for a complete copy of the license. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ with Atree; use Atree; with Debug; use Debug; with Einfo; use Einfo; with Errout; use Errout; with Exp_Code; use Exp_Code; with Fname; use Fname; with Lib; use Lib; with Lib.Xref; use Lib.Xref; with Namet; use Namet; with Nlists; use Nlists; with Opt; use Opt; with Par_SCO; use Par_SCO; with Rtsfind; use Rtsfind; with Sem; use Sem; with Sem_Ch8; use Sem_Ch8; with Sem_Aux; use Sem_Aux; with Sem_Eval; use Sem_Eval; with Sem_Prag; use Sem_Prag; with Sem_Util; use Sem_Util; with Sinfo; use Sinfo; with Sinput; use Sinput; with Snames; use Snames; with Stand; use Stand; with Stringt; use Stringt; with Uintp; use Uintp; package body Sem_Warn is -- The following table collects Id's of entities that are potentially -- unreferenced. See Check_Unset_Reference for further details. -- ??? Check_Unset_Reference has zero information about this table. package Unreferenced_Entities is new Table.Table ( Table_Component_Type => Entity_Id, Table_Index_Type => Nat, Table_Low_Bound => 1, Table_Initial => Alloc.Unreferenced_Entities_Initial, Table_Increment => Alloc.Unreferenced_Entities_Increment, Table_Name => "Unreferenced_Entities"); -- The following table collects potential warnings for IN OUT parameters -- that are referenced but not modified. These warnings are processed when -- the front end calls the procedure Output_Non_Modified_In_Out_Warnings. -- The reason that we defer output of these messages is that we want to -- detect the case where the relevant procedure is used as a generic actual -- in an instantiation, since we suppress the warnings in this case. The -- flag Used_As_Generic_Actual will be set in this case, but only at the -- point of usage. Similarly, we suppress the message if the address of the -- procedure is taken, where the flag Address_Taken may be set later. package In_Out_Warnings is new Table.Table ( Table_Component_Type => Entity_Id, Table_Index_Type => Nat, Table_Low_Bound => 1, Table_Initial => Alloc.In_Out_Warnings_Initial, Table_Increment => Alloc.In_Out_Warnings_Increment, Table_Name => "In_Out_Warnings"); -------------------------------------------------------- -- Handling of Warnings Off, Unmodified, Unreferenced -- -------------------------------------------------------- -- The functions Has_Warnings_Off, Has_Unmodified, Has_Unreferenced must -- generally be used instead of Warnings_Off, Has_Pragma_Unmodified and -- Has_Pragma_Unreferenced, as noted in the specs in Einfo. -- In order to avoid losing warnings in -gnatw.w (warn on unnecessary -- warnings off pragma) mode, i.e. to avoid false negatives, the code -- must follow some important rules. -- Call these functions as late as possible, after completing all other -- tests, just before the warnings is given. For example, don't write: -- if not Has_Warnings_Off (E) -- and then some-other-predicate-on-E then .. -- Instead the following is preferred -- if some-other-predicate-on-E -- and then Has_Warnings_Off (E) -- This way if some-other-predicate is false, we avoid a false indication -- that a Warnings (Off, E) pragma was useful in preventing a warning. -- The second rule is that if both Has_Unmodified and Has_Warnings_Off, or -- Has_Unreferenced and Has_Warnings_Off are called, make sure that the -- call to Has_Unmodified/Has_Unreferenced comes first, this way we record -- that the Warnings (Off) could have been Unreferenced or Unmodified. In -- fact Has_Unmodified/Has_Unreferenced includes a test for Warnings Off, -- and so a subsequent test is not needed anyway (though it is harmless). ----------------------- -- Local Subprograms -- ----------------------- function Generic_Package_Spec_Entity (E : Entity_Id) return Boolean; -- This returns true if the entity E is declared within a generic package. -- The point of this is to detect variables which are not assigned within -- the generic, but might be assigned outside the package for any given -- instance. These are cases where we leave the warnings to be posted for -- the instance, when we will know more. function Goto_Spec_Entity (E : Entity_Id) return Entity_Id; -- If E is a parameter entity for a subprogram body, then this function -- returns the corresponding spec entity, if not, E is returned unchanged. function Has_Pragma_Unmodified_Check_Spec (E : Entity_Id) return Boolean; -- Tests Has_Pragma_Unmodified flag for entity E. If E is not a formal, -- this is simply the setting of the flag Has_Pragma_Unmodified. If E is -- a body formal, the setting of the flag in the corresponding spec is -- also checked (and True returned if either flag is True). function Has_Pragma_Unreferenced_Check_Spec (E : Entity_Id) return Boolean; -- Tests Has_Pragma_Unreferenced flag for entity E. If E is not a formal, -- this is simply the setting of the flag Has_Pragma_Unreferenced. If E is -- a body formal, the setting of the flag in the corresponding spec is -- also checked (and True returned if either flag is True). function Never_Set_In_Source_Check_Spec (E : Entity_Id) return Boolean; -- Tests Never_Set_In_Source status for entity E. If E is not a formal, -- this is simply the setting of the flag Never_Set_In_Source. If E is -- a body formal, the setting of the flag in the corresponding spec is -- also checked (and False returned if either flag is False). function Operand_Has_Warnings_Suppressed (N : Node_Id) return Boolean; -- This function traverses the expression tree represented by the node N -- and determines if any sub-operand is a reference to an entity for which -- the Warnings_Off flag is set. True is returned if such an entity is -- encountered, and False otherwise. function Referenced_Check_Spec (E : Entity_Id) return Boolean; -- Tests Referenced status for entity E. If E is not a formal, this is -- simply the setting of the flag Referenced. If E is a body formal, the -- setting of the flag in the corresponding spec is also checked (and True -- returned if either flag is True). function Referenced_As_LHS_Check_Spec (E : Entity_Id) return Boolean; -- Tests Referenced_As_LHS status for entity E. If E is not a formal, this -- is simply the setting of the flag Referenced_As_LHS. If E is a body -- formal, the setting of the flag in the corresponding spec is also -- checked (and True returned if either flag is True). function Referenced_As_Out_Parameter_Check_Spec (E : Entity_Id) return Boolean; -- Tests Referenced_As_Out_Parameter status for entity E. If E is not a -- formal, this is simply the setting of Referenced_As_Out_Parameter. If E -- is a body formal, the setting of the flag in the corresponding spec is -- also checked (and True returned if either flag is True). procedure Warn_On_Unreferenced_Entity (Spec_E : Entity_Id; Body_E : Entity_Id := Empty); -- Output warnings for unreferenced entity E. For the case of an entry -- formal, Body_E is the corresponding body entity for a particular -- accept statement, and the message is posted on Body_E. In all other -- cases, Body_E is ignored and must be Empty. function Warnings_Off_Check_Spec (E : Entity_Id) return Boolean; -- Returns True if Warnings_Off is set for the entity E or (in the case -- where there is a Spec_Entity), Warnings_Off is set for the Spec_Entity. -------------------------- -- Check_Code_Statement -- -------------------------- procedure Check_Code_Statement (N : Node_Id) is begin -- If volatile, nothing to worry about if Is_Asm_Volatile (N) then return; end if; -- Warn if no input or no output Setup_Asm_Inputs (N); if No (Asm_Input_Value) then Error_Msg_F ("??code statement with no inputs should usually be Volatile!", N); return; end if; Setup_Asm_Outputs (N); if No (Asm_Output_Variable) then Error_Msg_F ("??code statement with no outputs should usually be Volatile!", N); return; end if; end Check_Code_Statement; --------------------------------- -- Check_Infinite_Loop_Warning -- --------------------------------- -- The case we look for is a while loop which tests a local variable, where -- there is no obvious direct or possible indirect update of the variable -- within the body of the loop. procedure Check_Infinite_Loop_Warning (Loop_Statement : Node_Id) is Expression : Node_Id := Empty; -- Set to WHILE or EXIT WHEN condition to be tested Ref : Node_Id := Empty; -- Reference in Expression to variable that might not be modified -- in loop, indicating a possible infinite loop. Var : Entity_Id := Empty; -- Corresponding entity (entity of Ref) Function_Call_Found : Boolean := False; -- True if Find_Var found a function call in the condition procedure Find_Var (N : Node_Id); -- Inspect condition to see if it depends on a single entity reference. -- If so, Ref is set to point to the reference node, and Var is set to -- the referenced Entity. function Has_Indirection (T : Entity_Id) return Boolean; -- If the controlling variable is an access type, or is a record type -- with access components, assume that it is changed indirectly and -- suppress the warning. As a concession to low-level programming, in -- particular within Declib, we also suppress warnings on a record -- type that contains components of type Address or Short_Address. function Is_Suspicious_Function_Name (E : Entity_Id) return Boolean; -- Given an entity name, see if the name appears to have something to -- do with I/O or network stuff, and if so, return True. Used to kill -- some false positives on a heuristic basis that such functions will -- likely have some strange side effect dependencies. A rather strange -- test, but warning messages are in the heuristics business. function Test_Ref (N : Node_Id) return Traverse_Result; -- Test for reference to variable in question. Returns Abandon if -- matching reference found. Used in instantiation of No_Ref_Found. function No_Ref_Found is new Traverse_Func (Test_Ref); -- Function to traverse body of procedure. Returns Abandon if matching -- reference found. -------------- -- Find_Var -- -------------- procedure Find_Var (N : Node_Id) is begin -- Condition is a direct variable reference if Is_Entity_Name (N) then Ref := N; Var := Entity (Ref); -- Case of condition is a comparison with compile time known value elsif Nkind (N) in N_Op_Compare then if Compile_Time_Known_Value (Right_Opnd (N)) then Find_Var (Left_Opnd (N)); elsif Compile_Time_Known_Value (Left_Opnd (N)) then Find_Var (Right_Opnd (N)); -- Ignore any other comparison else return; end if; -- If condition is a negation, check its operand elsif Nkind (N) = N_Op_Not then Find_Var (Right_Opnd (N)); -- Case of condition is function call elsif Nkind (N) = N_Function_Call then Function_Call_Found := True; -- Forget it if function name is not entity, who knows what -- we might be calling? if not Is_Entity_Name (Name (N)) then return; -- Forget it if function name is suspicious. A strange test -- but warning generation is in the heuristics business. elsif Is_Suspicious_Function_Name (Entity (Name (N))) then return; -- Forget it if function is marked Volatile_Function elsif Is_Volatile_Function (Entity (Name (N))) then return; -- Forget it if warnings are suppressed on function entity elsif Has_Warnings_Off (Entity (Name (N))) then return; end if; -- OK, see if we have one argument declare PA : constant List_Id := Parameter_Associations (N); begin -- One argument, so check the argument if Present (PA) and then List_Length (PA) = 1 then if Nkind (First (PA)) = N_Parameter_Association then Find_Var (Explicit_Actual_Parameter (First (PA))); else Find_Var (First (PA)); end if; -- Not one argument else return; end if; end; -- Any other kind of node is not something we warn for else return; end if; end Find_Var; --------------------- -- Has_Indirection -- --------------------- function Has_Indirection (T : Entity_Id) return Boolean is Comp : Entity_Id; Rec : Entity_Id; begin if Is_Access_Type (T) then return True; elsif Is_Private_Type (T) and then Present (Full_View (T)) and then Is_Access_Type (Full_View (T)) then return True; elsif Is_Record_Type (T) then Rec := T; elsif Is_Private_Type (T) and then Present (Full_View (T)) and then Is_Record_Type (Full_View (T)) then Rec := Full_View (T); else return False; end if; Comp := First_Component (Rec); while Present (Comp) loop if Is_Access_Type (Etype (Comp)) or else Is_Descendant_Of_Address (Etype (Comp)) then return True; end if; Next_Component (Comp); end loop; return False; end Has_Indirection; --------------------------------- -- Is_Suspicious_Function_Name -- --------------------------------- function Is_Suspicious_Function_Name (E : Entity_Id) return Boolean is S : Entity_Id; function Substring_Present (S : String) return Boolean; -- Returns True if name buffer has given string delimited by non- -- alphabetic characters or by end of string. S is lower case. ----------------------- -- Substring_Present -- ----------------------- function Substring_Present (S : String) return Boolean is Len : constant Natural := S'Length; begin for J in 1 .. Name_Len - (Len - 1) loop if Name_Buffer (J .. J + (Len - 1)) = S and then (J = 1 or else Name_Buffer (J - 1) not in 'a' .. 'z') and then (J + Len > Name_Len or else Name_Buffer (J + Len) not in 'a' .. 'z') then return True; end if; end loop; return False; end Substring_Present; -- Start of processing for Is_Suspicious_Function_Name begin S := E; while Present (S) and then S /= Standard_Standard loop Get_Name_String (Chars (S)); if Substring_Present ("io") or else Substring_Present ("file") or else Substring_Present ("network") then return True; else S := Scope (S); end if; end loop; return False; end Is_Suspicious_Function_Name; -------------- -- Test_Ref -- -------------- function Test_Ref (N : Node_Id) return Traverse_Result is begin -- Waste of time to look at the expression we are testing if N = Expression then return Skip; -- Direct reference to variable in question elsif Is_Entity_Name (N) and then Present (Entity (N)) and then Entity (N) = Var then -- If this is an lvalue, then definitely abandon, since -- this could be a direct modification of the variable. if May_Be_Lvalue (N) then return Abandon; end if; -- If the condition contains a function call, we consider it may -- be modified by side-effects from a procedure call. Otherwise, -- we consider the condition may not be modified, although that -- might happen if Variable is itself a by-reference parameter, -- and the procedure called modifies the global object referred to -- by Variable, but we actually prefer to issue a warning in this -- odd case. Note that the case where the procedure called has -- visibility over Variable is treated in another case below. if Function_Call_Found then declare P : Node_Id; begin P := N; loop P := Parent (P); exit when P = Loop_Statement; -- Abandon if at procedure call, or something strange is -- going on (perhaps a node with no parent that should -- have one but does not?) As always, for a warning we -- prefer to just abandon the warning than get into the -- business of complaining about the tree structure here. if No (P) or else Nkind (P) = N_Procedure_Call_Statement then return Abandon; end if; end loop; end; end if; -- Reference to variable renaming variable in question elsif Is_Entity_Name (N) and then Present (Entity (N)) and then Ekind (Entity (N)) = E_Variable and then Present (Renamed_Object (Entity (N))) and then Is_Entity_Name (Renamed_Object (Entity (N))) and then Entity (Renamed_Object (Entity (N))) = Var and then May_Be_Lvalue (N) then return Abandon; -- Call to subprogram elsif Nkind (N) in N_Subprogram_Call then -- If subprogram is within the scope of the entity we are dealing -- with as the loop variable, then it could modify this parameter, -- so we abandon in this case. In the case of a subprogram that is -- not an entity we also abandon. The check for no entity being -- present is a defense against previous errors. if not Is_Entity_Name (Name (N)) or else No (Entity (Name (N))) or else Scope_Within (Entity (Name (N)), Scope (Var)) then return Abandon; end if; -- If any of the arguments are of type access to subprogram, then -- we may have funny side effects, so no warning in this case. declare Actual : Node_Id; begin Actual := First_Actual (N); while Present (Actual) loop if Is_Access_Subprogram_Type (Etype (Actual)) then return Abandon; else Next_Actual (Actual); end if; end loop; end; -- Declaration of the variable in question elsif Nkind (N) = N_Object_Declaration and then Defining_Identifier (N) = Var then return Abandon; end if; -- All OK, continue scan return OK; end Test_Ref; -- Start of processing for Check_Infinite_Loop_Warning begin -- Skip processing if debug flag gnatd.w is set if Debug_Flag_Dot_W then return; end if; -- Deal with Iteration scheme present declare Iter : constant Node_Id := Iteration_Scheme (Loop_Statement); begin if Present (Iter) then -- While iteration if Present (Condition (Iter)) then -- Skip processing for while iteration with conditions actions, -- since they make it too complicated to get the warning right. if Present (Condition_Actions (Iter)) then return; end if; -- Capture WHILE condition Expression := Condition (Iter); -- For iteration, do not process, since loop will always terminate elsif Present (Loop_Parameter_Specification (Iter)) then return; end if; end if; end; -- Check chain of EXIT statements, we only process loops that have a -- single exit condition (either a single EXIT WHEN statement, or a -- WHILE loop not containing any EXIT WHEN statements). declare Ident : constant Node_Id := Identifier (Loop_Statement); Exit_Stmt : Node_Id; begin -- If we don't have a proper chain set, ignore call entirely. This -- happens because of previous errors. if No (Entity (Ident)) or else Ekind (Entity (Ident)) /= E_Loop then Check_Error_Detected; return; end if; -- Otherwise prepare to scan list of EXIT statements Exit_Stmt := First_Exit_Statement (Entity (Ident)); while Present (Exit_Stmt) loop -- Check for EXIT WHEN if Present (Condition (Exit_Stmt)) then -- Quit processing if EXIT WHEN in WHILE loop, or more than -- one EXIT WHEN statement present in the loop. if Present (Expression) then return; -- Otherwise capture condition from EXIT WHEN statement else Expression := Condition (Exit_Stmt); end if; -- If an unconditional exit statement is the last statement in the -- loop, assume that no warning is needed, without any attempt at -- checking whether the exit is reachable. elsif Exit_Stmt = Last (Statements (Loop_Statement)) then return; end if; Exit_Stmt := Next_Exit_Statement (Exit_Stmt); end loop; end; -- Return if no condition to test if No (Expression) then return; end if; -- Initial conditions met, see if condition is of right form Find_Var (Expression); -- Nothing to do if local variable from source not found. If it's a -- renaming, it is probably renaming something too complicated to deal -- with here. if No (Var) or else Ekind (Var) /= E_Variable or else Is_Library_Level_Entity (Var) or else not Comes_From_Source (Var) or else Nkind (Parent (Var)) = N_Object_Renaming_Declaration then return; -- Nothing to do if there is some indirection involved (assume that the -- designated variable might be modified in some way we don't see). -- However, if no function call was found, then we don't care about -- indirections, because the condition must be something like "while X -- /= null loop", so we don't care if X.all is modified in the loop. elsif Function_Call_Found and then Has_Indirection (Etype (Var)) then return; -- Same sort of thing for volatile variable, might be modified by -- some other task or by the operating system in some way. elsif Is_Volatile (Var) then return; end if; -- Filter out case of original statement sequence starting with delay. -- We assume this is a multi-tasking program and that the condition -- is affected by other threads (some kind of busy wait). declare Fstm : constant Node_Id := Original_Node (First (Statements (Loop_Statement))); begin if Nkind (Fstm) = N_Delay_Relative_Statement or else Nkind (Fstm) = N_Delay_Until_Statement then return; end if; end; -- We have a variable reference of the right form, now we scan the loop -- body to see if it looks like it might not be modified if No_Ref_Found (Loop_Statement) = OK then Error_Msg_NE ("??variable& is not modified in loop body!", Ref, Var); Error_Msg_N ("\??possible infinite loop!", Ref); end if; end Check_Infinite_Loop_Warning; ---------------------------- -- Check_Low_Bound_Tested -- ---------------------------- procedure Check_Low_Bound_Tested (Expr : Node_Id) is procedure Check_Low_Bound_Tested_For (Opnd : Node_Id); -- Determine whether operand Opnd denotes attribute 'First whose prefix -- is a formal parameter. If this is the case, mark the entity of the -- prefix as having its low bound tested. -------------------------------- -- Check_Low_Bound_Tested_For -- -------------------------------- procedure Check_Low_Bound_Tested_For (Opnd : Node_Id) is begin if Nkind (Opnd) = N_Attribute_Reference and then Attribute_Name (Opnd) = Name_First and then Is_Entity_Name (Prefix (Opnd)) and then Present (Entity (Prefix (Opnd))) and then Is_Formal (Entity (Prefix (Opnd))) then Set_Low_Bound_Tested (Entity (Prefix (Opnd))); end if; end Check_Low_Bound_Tested_For; -- Start of processing for Check_Low_Bound_Tested begin if Comes_From_Source (Expr) then Check_Low_Bound_Tested_For (Left_Opnd (Expr)); Check_Low_Bound_Tested_For (Right_Opnd (Expr)); end if; end Check_Low_Bound_Tested; ---------------------- -- Check_References -- ---------------------- procedure Check_References (E : Entity_Id; Anod : Node_Id := Empty) is E1 : Entity_Id; E1T : Entity_Id; UR : Node_Id; function Body_Formal (E : Entity_Id; Accept_Statement : Node_Id) return Entity_Id; -- For an entry formal entity from an entry declaration, find the -- corresponding body formal from the given accept statement. procedure May_Need_Initialized_Actual (Ent : Entity_Id); -- If an entity of a generic type has default initialization, then the -- corresponding actual type should be fully initialized, or else there -- will be uninitialized components in the instantiation, that might go -- unreported. This routine marks the type of the uninitialized variable -- appropriately to allow the compiler to emit an appropriate warning -- in the instance. In a sense, the use of a type that requires full -- initialization is a weak part of the generic contract. function Missing_Subunits return Boolean; -- We suppress warnings when there are missing subunits, because this -- may generate too many false positives: entities in a parent may only -- be referenced in one of the subunits. We make an exception for -- subunits that contain no other stubs. procedure Output_Reference_Error (M : String); -- Used to output an error message. Deals with posting the error on the -- body formal in the accept case. function Publicly_Referenceable (Ent : Entity_Id) return Boolean; -- This is true if the entity in question is potentially referenceable -- from another unit. This is true for entities in packages that are at -- the library level. function Warnings_Off_E1 return Boolean; -- Return True if Warnings_Off is set for E1, or for its Etype (E1T), -- or for the base type of E1T. ----------------- -- Body_Formal -- ----------------- function Body_Formal (E : Entity_Id; Accept_Statement : Node_Id) return Entity_Id is Body_Param : Node_Id; Body_E : Entity_Id; begin -- Loop to find matching parameter in accept statement Body_Param := First (Parameter_Specifications (Accept_Statement)); while Present (Body_Param) loop Body_E := Defining_Identifier (Body_Param); if Chars (Body_E) = Chars (E) then return Body_E; end if; Next (Body_Param); end loop; -- Should never fall through, should always find a match raise Program_Error; end Body_Formal; --------------------------------- -- May_Need_Initialized_Actual -- --------------------------------- procedure May_Need_Initialized_Actual (Ent : Entity_Id) is T : constant Entity_Id := Etype (Ent); Par : constant Node_Id := Parent (T); begin if not Is_Generic_Type (T) then null; elsif (Nkind (Par)) = N_Private_Extension_Declaration then -- We only indicate the first such variable in the generic. if No (Uninitialized_Variable (Par)) then Set_Uninitialized_Variable (Par, Ent); end if; elsif (Nkind (Par)) = N_Formal_Type_Declaration and then Nkind (Formal_Type_Definition (Par)) = N_Formal_Private_Type_Definition then if No (Uninitialized_Variable (Formal_Type_Definition (Par))) then Set_Uninitialized_Variable (Formal_Type_Definition (Par), Ent); end if; end if; end May_Need_Initialized_Actual; ---------------------- -- Missing_Subunits -- ---------------------- function Missing_Subunits return Boolean is D : Node_Id; begin if not Unloaded_Subunits then -- Normal compilation, all subunits are present return False; elsif E /= Main_Unit_Entity then -- No warnings on a stub that is not the main unit return True; elsif Nkind (Unit_Declaration_Node (E)) in N_Proper_Body then D := First (Declarations (Unit_Declaration_Node (E))); while Present (D) loop -- No warnings if the proper body contains nested stubs if Nkind (D) in N_Body_Stub then return True; end if; Next (D); end loop; return False; else -- Missing stubs elsewhere return True; end if; end Missing_Subunits; ---------------------------- -- Output_Reference_Error -- ---------------------------- procedure Output_Reference_Error (M : String) is begin -- Never issue messages for internal names or renamings if Is_Internal_Name (Chars (E1)) or else Nkind (Parent (E1)) = N_Object_Renaming_Declaration then return; end if; -- Don't output message for IN OUT formal unless we have the warning -- flag specifically set. It is a bit odd to distinguish IN OUT -- formals from other cases. This distinction is historical in -- nature. Warnings for IN OUT formals were added fairly late. if Ekind (E1) = E_In_Out_Parameter and then not Check_Unreferenced_Formals then return; end if; -- Other than accept case, post error on defining identifier if No (Anod) then Error_Msg_N (M, E1); -- Accept case, find body formal to post the message else Error_Msg_NE (M, Body_Formal (E1, Accept_Statement => Anod), E1); end if; end Output_Reference_Error; ---------------------------- -- Publicly_Referenceable -- ---------------------------- function Publicly_Referenceable (Ent : Entity_Id) return Boolean is P : Node_Id; Prev : Node_Id; begin -- A formal parameter is never referenceable outside the body of its -- subprogram or entry. if Is_Formal (Ent) then return False; end if; -- Examine parents to look for a library level package spec. But if -- we find a body or block or other similar construct along the way, -- we cannot be referenced. Prev := Ent; P := Parent (Ent); loop case Nkind (P) is -- If we get to top of tree, then publicly referenceable when N_Empty => return True; -- If we reach a generic package declaration, then always -- consider this referenceable, since any instantiation will -- have access to the entities in the generic package. Note -- that the package itself may not be instantiated, but then -- we will get a warning for the package entity. -- Note that generic formal parameters are themselves not -- publicly referenceable in an instance, and warnings on them -- are useful. when N_Generic_Package_Declaration => return not Is_List_Member (Prev) or else List_Containing (Prev) /= Generic_Formal_Declarations (P); -- Similarly, the generic formals of a generic subprogram are -- not accessible. when N_Generic_Subprogram_Declaration => if Is_List_Member (Prev) and then List_Containing (Prev) = Generic_Formal_Declarations (P) then return False; else P := Parent (P); end if; -- If we reach a subprogram body, entity is not referenceable -- unless it is the defining entity of the body. This will -- happen, e.g. when a function is an attribute renaming that -- is rewritten as a body. when N_Subprogram_Body => if Ent /= Defining_Entity (P) then return False; else P := Parent (P); end if; -- If we reach any other body, definitely not referenceable when N_Block_Statement | N_Entry_Body | N_Package_Body | N_Protected_Body | N_Subunit | N_Task_Body => return False; -- For all other cases, keep looking up tree when others => Prev := P; P := Parent (P); end case; end loop; end Publicly_Referenceable; --------------------- -- Warnings_Off_E1 -- --------------------- function Warnings_Off_E1 return Boolean is begin return Has_Warnings_Off (E1T) or else Has_Warnings_Off (Base_Type (E1T)) or else Warnings_Off_Check_Spec (E1); end Warnings_Off_E1; -- Start of processing for Check_References begin Process_Deferred_References; -- No messages if warnings are suppressed, or if we have detected any -- real errors so far (this last check avoids junk messages resulting -- from errors, e.g. a subunit that is not loaded). if Warning_Mode = Suppress or else Serious_Errors_Detected /= 0 then return; end if; -- We also skip the messages if any subunits were not loaded (see -- comment in Sem_Ch10 to understand how this is set, and why it is -- necessary to suppress the warnings in this case). if Missing_Subunits then return; end if; -- Otherwise loop through entities, looking for suspicious stuff E1 := First_Entity (E); while Present (E1) loop E1T := Etype (E1); -- We are only interested in source entities. We also don't issue -- warnings within instances, since the proper place for such -- warnings is on the template when it is compiled, and we don't -- issue warnings for variables with names like Junk, Discard etc. if Comes_From_Source (E1) and then Instantiation_Location (Sloc (E1)) = No_Location then -- We are interested in variables and out/in-out parameters, but -- we exclude protected types, too complicated to worry about. if Ekind (E1) = E_Variable or else (Ekind_In (E1, E_Out_Parameter, E_In_Out_Parameter) and then not Is_Protected_Type (Current_Scope)) then -- If the formal has a class-wide type, retrieve its type -- because checks below depend on its private nature. if Is_Class_Wide_Type (E1T) then E1T := Etype (E1T); end if; -- Case of an unassigned variable -- First gather any Unset_Reference indication for E1. In the -- case of a parameter, it is the Spec_Entity that is relevant. if Ekind (E1) = E_Out_Parameter and then Present (Spec_Entity (E1)) then UR := Unset_Reference (Spec_Entity (E1)); else UR := Unset_Reference (E1); end if; -- Special processing for access types if Present (UR) and then Is_Access_Type (E1T) then -- For access types, the only time we made a UR entry was -- for a dereference, and so we post the appropriate warning -- here (note that the dereference may not be explicit in -- the source, for example in the case of a dispatching call -- with an anonymous access controlling formal, or of an -- assignment of a pointer involving discriminant check on -- the designated object). if not Warnings_Off_E1 then Error_Msg_NE ("??& may be null!", UR, E1); end if; goto Continue; -- Case of variable that could be a constant. Note that we -- never signal such messages for generic package entities, -- since a given instance could have modifications outside -- the package. -- Note that we used to check Address_Taken here, but we don't -- want to do that since it can be set for non-source cases, -- e.g. the Unrestricted_Access from a valid attribute, and -- the wanted effect is included in Never_Set_In_Source. elsif Warn_On_Constant and then (Ekind (E1) = E_Variable and then Has_Initial_Value (E1)) and then Never_Set_In_Source_Check_Spec (E1) and then not Generic_Package_Spec_Entity (E1) then -- A special case, if this variable is volatile and not -- imported, it is not helpful to tell the programmer -- to mark the variable as constant, since this would be -- illegal by virtue of RM C.6(13). Instead we suggest -- using pragma Export (can't be Import because of the -- initial value). if (Is_Volatile (E1) or else Has_Volatile_Components (E1)) and then not Is_Imported (E1) then Error_Msg_N ("?k?& is not modified, consider pragma Export for " & "volatile variable!", E1); -- Another special case, Exception_Occurrence, this catches -- the case of exception choice (and a bit more too, but not -- worth doing more investigation here). elsif Is_RTE (E1T, RE_Exception_Occurrence) then null; -- Here we give the warning if referenced and no pragma -- Unreferenced or Unmodified is present. else -- Variable case if Ekind (E1) = E_Variable then if Referenced_Check_Spec (E1) and then not Has_Pragma_Unreferenced_Check_Spec (E1) and then not Has_Pragma_Unmodified_Check_Spec (E1) then if not Warnings_Off_E1 and then not Has_Junk_Name (E1) then Error_Msg_N -- CODEFIX ("?k?& is not modified, " & "could be declared constant!", E1); end if; end if; end if; end if; -- Other cases of a variable or parameter never set in source elsif Never_Set_In_Source_Check_Spec (E1) -- No warning if warning for this case turned off and then Warn_On_No_Value_Assigned -- No warning if address taken somewhere and then not Address_Taken (E1) -- No warning if explicit initial value and then not Has_Initial_Value (E1) -- No warning for generic package spec entities, since we -- might set them in a child unit or something like that and then not Generic_Package_Spec_Entity (E1) -- No warning if fully initialized type, except that for -- this purpose we do not consider access types to qualify -- as fully initialized types (relying on an access type -- variable being null when it is never set is a bit odd). -- Also we generate warning for an out parameter that is -- never referenced, since again it seems odd to rely on -- default initialization to set an out parameter value. and then (Is_Access_Type (E1T) or else Ekind (E1) = E_Out_Parameter or else not Is_Fully_Initialized_Type (E1T)) then -- Do not output complaint about never being assigned a -- value if a pragma Unmodified applies to the variable -- we are examining, or if it is a parameter, if there is -- a pragma Unreferenced for the corresponding spec, or -- if the type is marked as having unreferenced objects. -- The last is a little peculiar, but better too few than -- too many warnings in this situation. if Has_Pragma_Unreferenced_Objects (E1T) or else Has_Pragma_Unmodified_Check_Spec (E1) then null; -- IN OUT parameter case where parameter is referenced. We -- separate this out, since this is the case where we delay -- output of the warning until more information is available -- (about use in an instantiation or address being taken). elsif Ekind (E1) = E_In_Out_Parameter and then Referenced_Check_Spec (E1) then -- Suppress warning if private type, and the procedure -- has a separate declaration in a different unit. This -- is the case where the client of a package sees only -- the private type, and it may be quite reasonable -- for the logical view to be IN OUT, even if the -- implementation ends up using access types or some -- other method to achieve the local effect of a -- modification. On the other hand if the spec and body -- are in the same unit, we are in the package body and -- there we have less excuse for a junk IN OUT parameter. if Has_Private_Declaration (E1T) and then Present (Spec_Entity (E1)) and then not In_Same_Source_Unit (E1, Spec_Entity (E1)) then null; -- Suppress warning for any parameter of a dispatching -- operation, since it is quite reasonable to have an -- operation that is overridden, and for some subclasses -- needs the formal to be IN OUT and for others happens -- not to assign it. elsif Is_Dispatching_Operation (Scope (Goto_Spec_Entity (E1))) then null; -- Suppress warning if composite type contains any access -- component, since the logical effect of modifying a -- parameter may be achieved by modifying a referenced -- object. elsif Is_Composite_Type (E1T) and then Has_Access_Values (E1T) then null; -- Suppress warning on formals of an entry body. All -- references are attached to the formal in the entry -- declaration, which are marked Is_Entry_Formal. elsif Ekind (Scope (E1)) = E_Entry and then not Is_Entry_Formal (E1) then null; -- OK, looks like warning for an IN OUT parameter that -- could be IN makes sense, but we delay the output of -- the warning, pending possibly finding out later on -- that the associated subprogram is used as a generic -- actual, or its address/access is taken. In these two -- cases, we suppress the warning because the context may -- force use of IN OUT, even if in this particular case -- the formal is not modified. else -- Suppress the warnings for a junk name if not Has_Junk_Name (E1) then In_Out_Warnings.Append (E1); end if; end if; -- Other cases of formals elsif Is_Formal (E1) then if not Is_Trivial_Subprogram (Scope (E1)) then if Referenced_Check_Spec (E1) then if not Has_Pragma_Unmodified_Check_Spec (E1) and then not Warnings_Off_E1 and then not Has_Junk_Name (E1) then Output_Reference_Error ("?f?formal parameter& is read but " & "never assigned!"); end if; elsif not Has_Pragma_Unreferenced_Check_Spec (E1) and then not Warnings_Off_E1 and then not Has_Junk_Name (E1) then Output_Reference_Error ("?f?formal parameter& is not referenced!"); end if; end if; -- Case of variable else if Referenced (E1) then if not Has_Unmodified (E1) and then not Warnings_Off_E1 and then not Has_Junk_Name (E1) then Output_Reference_Error ("?v?variable& is read but never assigned!"); May_Need_Initialized_Actual (E1); end if; elsif not Has_Unreferenced (E1) and then not Warnings_Off_E1 and then not Has_Junk_Name (E1) then Output_Reference_Error -- CODEFIX ("?v?variable& is never read and never assigned!"); end if; -- Deal with special case where this variable is hidden -- by a loop variable. if Ekind (E1) = E_Variable and then Present (Hiding_Loop_Variable (E1)) and then not Warnings_Off_E1 then Error_Msg_N ("?v?for loop implicitly declares loop variable!", Hiding_Loop_Variable (E1)); Error_Msg_Sloc := Sloc (E1); Error_Msg_N ("\?v?declaration hides & declared#!", Hiding_Loop_Variable (E1)); end if; end if; goto Continue; end if; -- Check for unset reference if Warn_On_No_Value_Assigned and then Present (UR) then -- For other than access type, go back to original node to -- deal with case where original unset reference has been -- rewritten during expansion. -- In some cases, the original node may be a type conversion -- or qualification, and in this case we want the object -- entity inside. UR := Original_Node (UR); while Nkind (UR) = N_Type_Conversion or else Nkind (UR) = N_Qualified_Expression or else Nkind (UR) = N_Expression_With_Actions loop UR := Expression (UR); end loop; -- Don't issue warning if appearing inside Initial_Condition -- pragma or aspect, since that expression is not evaluated -- at the point where it occurs in the source. if In_Pragma_Expression (UR, Name_Initial_Condition) then goto Continue; end if; -- Here we issue the warning, all checks completed -- If we have a return statement, this was a case of an OUT -- parameter not being set at the time of the return. (Note: -- it can't be N_Extended_Return_Statement, because those -- are only for functions, and functions do not allow OUT -- parameters.) if not Is_Trivial_Subprogram (Scope (E1)) then if Nkind (UR) = N_Simple_Return_Statement and then not Has_Pragma_Unmodified_Check_Spec (E1) then if not Warnings_Off_E1 and then not Has_Junk_Name (E1) then Error_Msg_NE ("?v?OUT parameter& not set before return", UR, E1); end if; -- If the unset reference is a selected component -- prefix from source, mention the component as well. -- If the selected component comes from expansion, all -- we know is that the entity is not fully initialized -- at the point of the reference. Locate a random -- uninitialized component to get a better message. elsif Nkind (Parent (UR)) = N_Selected_Component then Error_Msg_Node_2 := Selector_Name (Parent (UR)); if not Comes_From_Source (Parent (UR)) then declare Comp : Entity_Id; begin Comp := First_Entity (E1T); while Present (Comp) loop if Ekind (Comp) = E_Component and then Nkind (Parent (Comp)) = N_Component_Declaration and then No (Expression (Parent (Comp))) then Error_Msg_Node_2 := Comp; exit; end if; Next_Entity (Comp); end loop; end; end if; -- Issue proper warning. This is a case of referencing -- a variable before it has been explicitly assigned. -- For access types, UR was only set for dereferences, -- so the issue is that the value may be null. if not Is_Trivial_Subprogram (Scope (E1)) then if not Warnings_Off_E1 then if Is_Access_Type (Etype (Parent (UR))) then Error_Msg_N ("??`&.&` may be null!", UR); else Error_Msg_N ("??`&.&` may be referenced before " & "it has a value!", UR); end if; end if; end if; -- All other cases of unset reference active elsif not Warnings_Off_E1 then Error_Msg_N ("??& may be referenced before it has a value!", UR); end if; end if; goto Continue; end if; end if; -- Then check for unreferenced entities. Note that we are only -- interested in entities whose Referenced flag is not set. if not Referenced_Check_Spec (E1) -- If Referenced_As_LHS is set, then that's still interesting -- (potential "assigned but never read" case), but not if we -- have pragma Unreferenced, which cancels this warning. and then (not Referenced_As_LHS_Check_Spec (E1) or else not Has_Unreferenced (E1)) -- Check that warnings on unreferenced entities are enabled and then ((Check_Unreferenced and then not Is_Formal (E1)) -- Case of warning on unreferenced formal or else (Check_Unreferenced_Formals and then Is_Formal (E1)) -- Case of warning on unread variables modified by an -- assignment, or an OUT parameter if it is the only one. or else (Warn_On_Modified_Unread and then Referenced_As_LHS_Check_Spec (E1)) -- Case of warning on any unread OUT parameter (note such -- indications are only set if the appropriate warning -- options were set, so no need to recheck here.) or else Referenced_As_Out_Parameter_Check_Spec (E1)) -- All other entities, including local packages that cannot be -- referenced from elsewhere, including those declared within a -- package body. and then (Is_Object (E1) or else Is_Type (E1) or else Ekind (E1) = E_Label or else Ekind_In (E1, E_Exception, E_Named_Integer, E_Named_Real) or else Is_Overloadable (E1) -- Package case, if the main unit is a package spec -- or generic package spec, then there may be a -- corresponding body that references this package -- in some other file. Otherwise we can be sure -- that there is no other reference. or else (Ekind (E1) = E_Package and then not Is_Package_Or_Generic_Package (Cunit_Entity (Current_Sem_Unit)))) -- Exclude instantiations, since there is no reason why every -- entity in an instantiation should be referenced. and then Instantiation_Location (Sloc (E1)) = No_Location -- Exclude formal parameters from bodies if the corresponding -- spec entity has been referenced in the case where there is -- a separate spec. and then not (Is_Formal (E1) and then Ekind (Scope (E1)) = E_Subprogram_Body and then Present (Spec_Entity (E1)) and then Referenced (Spec_Entity (E1))) -- Consider private type referenced if full view is referenced. -- If there is not full view, this is a generic type on which -- warnings are also useful. and then not (Is_Private_Type (E1) and then Present (Full_View (E1)) and then Referenced (Full_View (E1))) -- Don't worry about full view, only about private type and then not Has_Private_Declaration (E1) -- Eliminate dispatching operations from consideration, we -- cannot tell if these are referenced or not in any easy -- manner (note this also catches Adjust/Finalize/Initialize). and then not Is_Dispatching_Operation (E1) -- Check entity that can be publicly referenced (we do not give -- messages for such entities, since there could be other -- units, not involved in this compilation, that contain -- relevant references. and then not Publicly_Referenceable (E1) -- Class wide types are marked as source entities, but they are -- not really source entities, and are always created, so we do -- not care if they are not referenced. and then Ekind (E1) /= E_Class_Wide_Type -- Objects other than parameters of task types are allowed to -- be non-referenced, since they start up tasks. and then ((Ekind (E1) /= E_Variable and then Ekind (E1) /= E_Constant and then Ekind (E1) /= E_Component) or else not Is_Task_Type (E1T)) -- For subunits, only place warnings on the main unit itself, -- since parent units are not completely compiled. and then (Nkind (Unit (Cunit (Main_Unit))) /= N_Subunit or else Get_Source_Unit (E1) = Main_Unit) -- No warning on a return object, because these are often -- created with a single expression and an implicit return. -- If the object is a variable there will be a warning -- indicating that it could be declared constant. and then not (Ekind (E1) = E_Constant and then Is_Return_Object (E1)) then -- Suppress warnings in internal units if not in -gnatg mode -- (these would be junk warnings for an applications program, -- since they refer to problems in internal units). if GNAT_Mode or else not Is_Internal_File_Name (Unit_File_Name (Get_Source_Unit (E1))) then -- We do not immediately flag the error. This is because we -- have not expanded generic bodies yet, and they may have -- the missing reference. So instead we park the entity on a -- list, for later processing. However for the case of an -- accept statement we want to output messages now, since -- we know we already have all information at hand, and we -- also want to have separate warnings for each accept -- statement for the same entry. if Present (Anod) then pragma Assert (Is_Formal (E1)); -- The unreferenced entity is E1, but post the warning -- on the body entity for this accept statement. if not Warnings_Off_E1 then Warn_On_Unreferenced_Entity (E1, Body_Formal (E1, Accept_Statement => Anod)); end if; elsif not Warnings_Off_E1 and then not Has_Junk_Name (E1) then Unreferenced_Entities.Append (E1); end if; end if; -- Generic units are referenced in the generic body, but if they -- are not public and never instantiated we want to force a -- warning on them. We treat them as redundant constructs to -- minimize noise. elsif Is_Generic_Subprogram (E1) and then not Is_Instantiated (E1) and then not Publicly_Referenceable (E1) and then Instantiation_Depth (Sloc (E1)) = 0 and then Warn_On_Redundant_Constructs then if not Warnings_Off_E1 and then not Has_Junk_Name (E1) then Unreferenced_Entities.Append (E1); -- Force warning on entity Set_Referenced (E1, False); end if; end if; end if; -- Recurse into nested package or block. Do not recurse into a formal -- package, because the corresponding body is not analyzed. <<Continue>> if (Is_Package_Or_Generic_Package (E1) and then Nkind (Parent (E1)) = N_Package_Specification and then Nkind (Original_Node (Unit_Declaration_Node (E1))) /= N_Formal_Package_Declaration) or else Ekind (E1) = E_Block then Check_References (E1); end if; Next_Entity (E1); end loop; end Check_References; --------------------------- -- Check_Unset_Reference -- --------------------------- procedure Check_Unset_Reference (N : Node_Id) is Typ : constant Entity_Id := Etype (N); function Is_OK_Fully_Initialized return Boolean; -- This function returns true if the given node N is fully initialized -- so that the reference is safe as far as this routine is concerned. -- Safe generally means that the type of N is a fully initialized type. -- The one special case is that for access types, which are always fully -- initialized, we don't consider a dereference OK since it will surely -- be dereferencing a null value, which won't do. function Prefix_Has_Dereference (Pref : Node_Id) return Boolean; -- Used to test indexed or selected component or slice to see if the -- evaluation of the prefix depends on a dereference, and if so, returns -- True, in which case we always check the prefix, even if we know that -- the referenced component is initialized. Pref is the prefix to test. ----------------------------- -- Is_OK_Fully_Initialized -- ----------------------------- function Is_OK_Fully_Initialized return Boolean is Prag : Node_Id; begin if Is_Access_Type (Typ) and then Is_Dereferenced (N) then return False; -- A type subject to pragma Default_Initial_Condition is fully -- default initialized when the pragma appears with a non-null -- argument (SPARK RM 3.1 and SPARK RM 7.3.3). elsif Has_DIC (Typ) then Prag := Get_Pragma (Typ, Pragma_Default_Initial_Condition); pragma Assert (Present (Prag)); return Is_Verifiable_DIC_Pragma (Prag); else return Is_Fully_Initialized_Type (Typ); end if; end Is_OK_Fully_Initialized; ---------------------------- -- Prefix_Has_Dereference -- ---------------------------- function Prefix_Has_Dereference (Pref : Node_Id) return Boolean is begin -- If prefix is of an access type, it certainly needs a dereference if Is_Access_Type (Etype (Pref)) then return True; -- If prefix is explicit dereference, that's a dereference for sure elsif Nkind (Pref) = N_Explicit_Dereference then return True; -- If prefix is itself a component reference or slice check prefix elsif Nkind (Pref) = N_Slice or else Nkind (Pref) = N_Indexed_Component or else Nkind (Pref) = N_Selected_Component then return Prefix_Has_Dereference (Prefix (Pref)); -- All other cases do not involve a dereference else return False; end if; end Prefix_Has_Dereference; -- Start of processing for Check_Unset_Reference begin -- Nothing to do if warnings suppressed if Warning_Mode = Suppress then return; end if; -- Nothing to do for numeric or string literal. Do this test early to -- save time in a common case (it does not matter that we do not include -- character literal here, since that will be caught later on in the -- when others branch of the case statement). if Nkind (N) in N_Numeric_Or_String_Literal then return; end if; -- Ignore reference unless it comes from source. Almost always if we -- have a reference from generated code, it is bogus (e.g. calls to init -- procs to set default discriminant values). if not Comes_From_Source (N) then return; end if; -- Otherwise see what kind of node we have. If the entity already has an -- unset reference, it is not necessarily the earliest in the text, -- because resolution of the prefix of selected components is completed -- before the resolution of the selected component itself. As a result, -- given (R /= null and then R.X > 0), the occurrences of R are examined -- in right-to-left order. If there is already an unset reference, we -- check whether N is earlier before proceeding. case Nkind (N) is -- For identifier or expanded name, examine the entity involved when N_Expanded_Name | N_Identifier => declare E : constant Entity_Id := Entity (N); begin if Ekind_In (E, E_Variable, E_Out_Parameter) and then Never_Set_In_Source_Check_Spec (E) and then not Has_Initial_Value (E) and then (No (Unset_Reference (E)) or else Earlier_In_Extended_Unit (Sloc (N), Sloc (Unset_Reference (E)))) and then not Has_Pragma_Unmodified_Check_Spec (E) and then not Warnings_Off_Check_Spec (E) and then not Has_Junk_Name (E) then -- We may have an unset reference. The first test is whether -- this is an access to a discriminant of a record or a -- component with default initialization. Both of these -- cases can be ignored, since the actual object that is -- referenced is definitely initialized. Note that this -- covers the case of reading discriminants of an OUT -- parameter, which is OK even in Ada 83. -- Note that we are only interested in a direct reference to -- a record component here. If the reference is through an -- access type, then the access object is being referenced, -- not the record, and still deserves an unset reference. if Nkind (Parent (N)) = N_Selected_Component and not Is_Access_Type (Typ) then declare ES : constant Entity_Id := Entity (Selector_Name (Parent (N))); begin if Ekind (ES) = E_Discriminant or else (Present (Declaration_Node (ES)) and then Present (Expression (Declaration_Node (ES)))) then return; end if; end; end if; -- Exclude fully initialized types if Is_OK_Fully_Initialized then return; end if; -- Here we have a potential unset reference. But before we -- get worried about it, we have to make sure that the -- entity declaration is in the same procedure as the -- reference, since if they are in separate procedures, then -- we have no idea about sequential execution. -- The tests in the loop below catch all such cases, but do -- allow the reference to appear in a loop, block, or -- package spec that is nested within the declaring scope. -- As always, it is possible to construct cases where the -- warning is wrong, that is why it is a warning. Potential_Unset_Reference : declare SR : Entity_Id; SE : constant Entity_Id := Scope (E); function Within_Postcondition return Boolean; -- Returns True if N is within a Postcondition, a -- Refined_Post, an Ensures component in a Test_Case, -- or a Contract_Cases. -------------------------- -- Within_Postcondition -- -------------------------- function Within_Postcondition return Boolean is Nod, P : Node_Id; begin Nod := Parent (N); while Present (Nod) loop if Nkind (Nod) = N_Pragma and then Nam_In (Pragma_Name_Unmapped (Nod), Name_Postcondition, Name_Refined_Post, Name_Contract_Cases) then return True; elsif Present (Parent (Nod)) then P := Parent (Nod); if Nkind (P) = N_Pragma and then Pragma_Name (P) = Name_Test_Case and then Nod = Test_Case_Arg (P, Name_Ensures) then return True; end if; end if; Nod := Parent (Nod); end loop; return False; end Within_Postcondition; -- Start of processing for Potential_Unset_Reference begin SR := Current_Scope; while SR /= SE loop if SR = Standard_Standard or else Is_Subprogram (SR) or else Is_Concurrent_Body (SR) or else Is_Concurrent_Type (SR) then return; end if; SR := Scope (SR); end loop; -- Case of reference has an access type. This is a -- special case since access types are always set to null -- so cannot be truly uninitialized, but we still want to -- warn about cases of obvious null dereference. if Is_Access_Type (Typ) then Access_Type_Case : declare P : Node_Id; function Process (N : Node_Id) return Traverse_Result; -- Process function for instantiation of Traverse -- below. Checks if N contains reference to E other -- than a dereference. function Ref_In (Nod : Node_Id) return Boolean; -- Determines whether Nod contains a reference to -- the entity E that is not a dereference. ------------- -- Process -- ------------- function Process (N : Node_Id) return Traverse_Result is begin if Is_Entity_Name (N) and then Entity (N) = E and then not Is_Dereferenced (N) then return Abandon; else return OK; end if; end Process; ------------ -- Ref_In -- ------------ function Ref_In (Nod : Node_Id) return Boolean is function Traverse is new Traverse_Func (Process); begin return Traverse (Nod) = Abandon; end Ref_In; -- Start of processing for Access_Type_Case begin -- Don't bother if we are inside an instance, since -- the compilation of the generic template is where -- the warning should be issued. if In_Instance then return; end if; -- Don't bother if this is not the main unit. If we -- try to give this warning for with'ed units, we -- get some false positives, since we do not record -- references in other units. if not In_Extended_Main_Source_Unit (E) or else not In_Extended_Main_Source_Unit (N) then return; end if; -- We are only interested in dereferences if not Is_Dereferenced (N) then return; end if; -- One more check, don't bother with references -- that are inside conditional statements or WHILE -- loops if the condition references the entity in -- question. This avoids most false positives. P := Parent (N); loop P := Parent (P); exit when No (P); if Nkind_In (P, N_If_Statement, N_Elsif_Part) and then Ref_In (Condition (P)) then return; elsif Nkind (P) = N_Loop_Statement and then Present (Iteration_Scheme (P)) and then Ref_In (Condition (Iteration_Scheme (P))) then return; end if; end loop; end Access_Type_Case; end if; -- One more check, don't bother if we are within a -- postcondition, since the expression occurs in a -- place unrelated to the actual test. if not Within_Postcondition then -- Here we definitely have a case for giving a warning -- for a reference to an unset value. But we don't -- give the warning now. Instead set Unset_Reference -- in the identifier involved. The reason for this is -- that if we find the variable is never ever assigned -- a value then that warning is more important and -- there is no point in giving the reference warning. -- If this is an identifier, set the field directly if Nkind (N) = N_Identifier then Set_Unset_Reference (E, N); -- Otherwise it is an expanded name, so set the field -- of the actual identifier for the reference. else Set_Unset_Reference (E, Selector_Name (N)); end if; end if; end Potential_Unset_Reference; end if; end; -- Indexed component or slice when N_Indexed_Component | N_Slice => -- If prefix does not involve dereferencing an access type, then -- we know we are OK if the component type is fully initialized, -- since the component will have been set as part of the default -- initialization. if not Prefix_Has_Dereference (Prefix (N)) and then Is_OK_Fully_Initialized then return; -- Look at prefix in access type case, or if the component is not -- fully initialized. else Check_Unset_Reference (Prefix (N)); end if; -- Record component when N_Selected_Component => declare Pref : constant Node_Id := Prefix (N); Ent : constant Entity_Id := Entity (Selector_Name (N)); begin -- If prefix involves dereferencing an access type, always -- check the prefix, since the issue then is whether this -- access value is null. if Prefix_Has_Dereference (Pref) then null; -- Always go to prefix if no selector entity is set. Can this -- happen in the normal case? Not clear, but it definitely can -- happen in error cases. elsif No (Ent) then null; -- For a record component, check some cases where we have -- reasonable cause to consider that the component is known to -- be or probably is initialized. In this case, we don't care -- if the prefix itself was explicitly initialized. -- Discriminants are always considered initialized elsif Ekind (Ent) = E_Discriminant then return; -- An explicitly initialized component is certainly initialized elsif Nkind (Parent (Ent)) = N_Component_Declaration and then Present (Expression (Parent (Ent))) then return; -- A fully initialized component is initialized elsif Is_OK_Fully_Initialized then return; end if; -- If none of those cases apply, check the record type prefix Check_Unset_Reference (Pref); end; -- For type conversions, qualifications, or expressions with actions, -- examine the expression. when N_Expression_With_Actions | N_Qualified_Expression | N_Type_Conversion => Check_Unset_Reference (Expression (N)); -- For explicit dereference, always check prefix, which will generate -- an unset reference (since this is a case of dereferencing null). when N_Explicit_Dereference => Check_Unset_Reference (Prefix (N)); -- All other cases are not cases of an unset reference when others => null; end case; end Check_Unset_Reference; ------------------------ -- Check_Unused_Withs -- ------------------------ procedure Check_Unused_Withs (Spec_Unit : Unit_Number_Type := No_Unit) is Cnode : Node_Id; Item : Node_Id; Lunit : Node_Id; Ent : Entity_Id; Munite : constant Entity_Id := Cunit_Entity (Main_Unit); -- This is needed for checking the special renaming case procedure Check_One_Unit (Unit : Unit_Number_Type); -- Subsidiary procedure, performs checks for specified unit -------------------- -- Check_One_Unit -- -------------------- procedure Check_One_Unit (Unit : Unit_Number_Type) is Is_Visible_Renaming : Boolean := False; Pack : Entity_Id; procedure Check_Inner_Package (Pack : Entity_Id); -- Pack is a package local to a unit in a with_clause. Both the unit -- and Pack are referenced. If none of the entities in Pack are -- referenced, then the only occurrence of Pack is in a USE clause -- or a pragma, and a warning is worthwhile as well. function Check_System_Aux return Boolean; -- Before giving a warning on a with_clause for System, check whether -- a system extension is present. function Find_Package_Renaming (P : Entity_Id; L : Entity_Id) return Entity_Id; -- The only reference to a context unit may be in a renaming -- declaration. If this renaming declares a visible entity, do not -- warn that the context clause could be moved to the body, because -- the renaming may be intended to re-export the unit. function Has_Visible_Entities (P : Entity_Id) return Boolean; -- This function determines if a package has any visible entities. -- True is returned if there is at least one declared visible entity, -- otherwise False is returned (e.g. case of only pragmas present). ------------------------- -- Check_Inner_Package -- ------------------------- procedure Check_Inner_Package (Pack : Entity_Id) is E : Entity_Id; Un : constant Node_Id := Sinfo.Unit (Cnode); function Check_Use_Clause (N : Node_Id) return Traverse_Result; -- If N is a use_clause for Pack, emit warning procedure Check_Use_Clauses is new Traverse_Proc (Check_Use_Clause); ---------------------- -- Check_Use_Clause -- ---------------------- function Check_Use_Clause (N : Node_Id) return Traverse_Result is Nam : Node_Id; begin if Nkind (N) = N_Use_Package_Clause then Nam := First (Names (N)); while Present (Nam) loop if Entity (Nam) = Pack then -- Suppress message if any serious errors detected -- that turn off expansion, and thus result in false -- positives for this warning. if Serious_Errors_Detected = 0 then Error_Msg_Qual_Level := 1; Error_Msg_NE -- CODEFIX ("?u?no entities of package& are referenced!", Nam, Pack); Error_Msg_Qual_Level := 0; end if; end if; Next (Nam); end loop; end if; return OK; end Check_Use_Clause; -- Start of processing for Check_Inner_Package begin E := First_Entity (Pack); while Present (E) loop if Referenced_Check_Spec (E) then return; end if; Next_Entity (E); end loop; -- No entities of the package are referenced. Check whether the -- reference to the package itself is a use clause, and if so -- place a warning on it. Check_Use_Clauses (Un); end Check_Inner_Package; ---------------------- -- Check_System_Aux -- ---------------------- function Check_System_Aux return Boolean is Ent : Entity_Id; begin if Chars (Lunit) = Name_System and then Scope (Lunit) = Standard_Standard and then Present_System_Aux then Ent := First_Entity (System_Aux_Id); while Present (Ent) loop if Referenced_Check_Spec (Ent) then return True; end if; Next_Entity (Ent); end loop; end if; return False; end Check_System_Aux; --------------------------- -- Find_Package_Renaming -- --------------------------- function Find_Package_Renaming (P : Entity_Id; L : Entity_Id) return Entity_Id is E1 : Entity_Id; R : Entity_Id; begin Is_Visible_Renaming := False; E1 := First_Entity (P); while Present (E1) loop if Ekind (E1) = E_Package and then Renamed_Object (E1) = L then Is_Visible_Renaming := not Is_Hidden (E1); return E1; elsif Ekind (E1) = E_Package and then No (Renamed_Object (E1)) and then not Is_Generic_Instance (E1) then R := Find_Package_Renaming (E1, L); if Present (R) then Is_Visible_Renaming := not Is_Hidden (R); return R; end if; end if; Next_Entity (E1); end loop; return Empty; end Find_Package_Renaming; -------------------------- -- Has_Visible_Entities -- -------------------------- function Has_Visible_Entities (P : Entity_Id) return Boolean is E : Entity_Id; begin -- If unit in context is not a package, it is a subprogram that -- is not called or a generic unit that is not instantiated -- in the current unit, and warning is appropriate. if Ekind (P) /= E_Package then return True; end if; -- If unit comes from a limited_with clause, look for declaration -- of shadow entities. if Present (Limited_View (P)) then E := First_Entity (Limited_View (P)); else E := First_Entity (P); end if; while Present (E) and then E /= First_Private_Entity (P) loop if Comes_From_Source (E) or else Present (Limited_View (P)) then return True; end if; Next_Entity (E); end loop; return False; end Has_Visible_Entities; -- Start of processing for Check_One_Unit begin Cnode := Cunit (Unit); -- Only do check in units that are part of the extended main unit. -- This is actually a necessary restriction, because in the case of -- subprogram acting as its own specification, there can be with's in -- subunits that we will not see. if not In_Extended_Main_Source_Unit (Cnode) then return; -- In configurable run time mode, we remove the bodies of non-inlined -- subprograms, which may lead to spurious warnings, which are -- clearly undesirable. elsif Configurable_Run_Time_Mode and then Is_Predefined_File_Name (Unit_File_Name (Unit)) then return; end if; -- Loop through context items in this unit Item := First (Context_Items (Cnode)); while Present (Item) loop if Nkind (Item) = N_With_Clause and then not Implicit_With (Item) and then In_Extended_Main_Source_Unit (Item) -- Guard for no entity present. Not clear under what conditions -- this happens, but it does occur, and since this is only a -- warning, we just suppress the warning in this case. and then Nkind (Name (Item)) in N_Has_Entity and then Present (Entity (Name (Item))) then Lunit := Entity (Name (Item)); -- Check if this unit is referenced (skip the check if this -- is explicitly marked by a pragma Unreferenced). if not Referenced (Lunit) and then not Has_Unreferenced (Lunit) then -- Suppress warnings in internal units if not in -gnatg mode -- (these would be junk warnings for an application program, -- since they refer to problems in internal units). if GNAT_Mode or else not Is_Internal_File_Name (Unit_File_Name (Unit)) then -- Here we definitely have a non-referenced unit. If it -- is the special call for a spec unit, then just set the -- flag to be read later. if Unit = Spec_Unit then Set_Unreferenced_In_Spec (Item); -- Otherwise simple unreferenced message, but skip this -- if no visible entities, because that is most likely a -- case where warning would be false positive (e.g. a -- package with only a linker options pragma and nothing -- else or a pragma elaborate with a body library task). elsif Has_Visible_Entities (Entity (Name (Item))) then Error_Msg_N -- CODEFIX ("?u?unit& is not referenced!", Name (Item)); end if; end if; -- If main unit is a renaming of this unit, then we consider -- the with to be OK (obviously it is needed in this case). -- This may be transitive: the unit in the with_clause may -- itself be a renaming, in which case both it and the main -- unit rename the same ultimate package. elsif Present (Renamed_Entity (Munite)) and then (Renamed_Entity (Munite) = Lunit or else Renamed_Entity (Munite) = Renamed_Entity (Lunit)) then null; -- If this unit is referenced, and it is a package, we do -- another test, to see if any of the entities in the package -- are referenced. If none of the entities are referenced, we -- still post a warning. This occurs if the only use of the -- package is in a use clause, or in a package renaming -- declaration. This check is skipped for packages that are -- renamed in a spec, since the entities in such a package are -- visible to clients via the renaming. elsif Ekind (Lunit) = E_Package and then not Renamed_In_Spec (Lunit) then -- If Is_Instantiated is set, it means that the package is -- implicitly instantiated (this is the case of parent -- instance or an actual for a generic package formal), and -- this counts as a reference. if Is_Instantiated (Lunit) then null; -- If no entities in package, and there is a pragma -- Elaborate_Body present, then assume that this with is -- done for purposes of this elaboration. elsif No (First_Entity (Lunit)) and then Has_Pragma_Elaborate_Body (Lunit) then null; -- Otherwise see if any entities have been referenced else if Limited_Present (Item) then Ent := First_Entity (Limited_View (Lunit)); else Ent := First_Entity (Lunit); end if; loop -- No more entities, and we did not find one that was -- referenced. Means we have a definite case of a with -- none of whose entities was referenced. if No (Ent) then -- If in spec, just set the flag if Unit = Spec_Unit then Set_No_Entities_Ref_In_Spec (Item); elsif Check_System_Aux then null; -- Else the warning may be needed else declare Eitem : constant Entity_Id := Entity (Name (Item)); begin -- Warn if we unreferenced flag set and we -- have not had serious errors. The reason we -- inhibit the message if there are errors is -- to prevent false positives from disabling -- expansion. if not Has_Unreferenced (Eitem) and then Serious_Errors_Detected = 0 then -- Get possible package renaming Pack := Find_Package_Renaming (Munite, Lunit); -- No warning if either the package or its -- renaming is used as a generic actual. if Used_As_Generic_Actual (Eitem) or else (Present (Pack) and then Used_As_Generic_Actual (Pack)) then exit; end if; -- Here we give the warning Error_Msg_N -- CODEFIX ("?u?no entities of & are referenced!", Name (Item)); -- Flag renaming of package as well. If -- the original package has warnings off, -- we suppress the warning on the renaming -- as well. if Present (Pack) and then not Has_Warnings_Off (Lunit) and then not Has_Unreferenced (Pack) then Error_Msg_NE -- CODEFIX ("?u?no entities of& are referenced!", Unit_Declaration_Node (Pack), Pack); end if; end if; end; end if; exit; -- Case of entity being referenced. The reference may -- come from a limited_with_clause, in which case the -- limited view of the entity carries the flag. elsif Referenced_Check_Spec (Ent) or else Referenced_As_LHS_Check_Spec (Ent) or else Referenced_As_Out_Parameter_Check_Spec (Ent) or else (From_Limited_With (Ent) and then Is_Incomplete_Type (Ent) and then Present (Non_Limited_View (Ent)) and then Referenced (Non_Limited_View (Ent))) then -- This means that the with is indeed fine, in that -- it is definitely needed somewhere, and we can -- quit worrying about this one... -- Except for one little detail: if either of the -- flags was set during spec processing, this is -- where we complain that the with could be moved -- from the spec. If the spec contains a visible -- renaming of the package, inhibit warning to move -- with_clause to body. if Ekind (Munite) = E_Package_Body then Pack := Find_Package_Renaming (Spec_Entity (Munite), Lunit); else Pack := Empty; end if; -- If a renaming is present in the spec do not warn -- because the body or child unit may depend on it. if Present (Pack) and then Renamed_Entity (Pack) = Lunit then exit; elsif Unreferenced_In_Spec (Item) then Error_Msg_N -- CODEFIX ("?u?unit& is not referenced in spec!", Name (Item)); elsif No_Entities_Ref_In_Spec (Item) then Error_Msg_N -- CODEFIX ("?u?no entities of & are referenced in spec!", Name (Item)); else if Ekind (Ent) = E_Package then Check_Inner_Package (Ent); end if; exit; end if; if not Is_Visible_Renaming then Error_Msg_N -- CODEFIX ("\?u?with clause might be moved to body!", Name (Item)); end if; exit; -- Move to next entity to continue search else Next_Entity (Ent); end if; end loop; end if; -- For a generic package, the only interesting kind of -- reference is an instantiation, since entities cannot be -- referenced directly. elsif Is_Generic_Unit (Lunit) then -- Unit was never instantiated, set flag for case of spec -- call, or give warning for normal call. if not Is_Instantiated (Lunit) then if Unit = Spec_Unit then Set_Unreferenced_In_Spec (Item); else Error_Msg_N -- CODEFIX ("?u?unit& is never instantiated!", Name (Item)); end if; -- If unit was indeed instantiated, make sure that flag is -- not set showing it was uninstantiated in the spec, and if -- so, give warning. elsif Unreferenced_In_Spec (Item) then Error_Msg_N ("?u?unit& is not instantiated in spec!", Name (Item)); Error_Msg_N -- CODEFIX ("\?u?with clause can be moved to body!", Name (Item)); end if; end if; end if; Next (Item); end loop; end Check_One_Unit; -- Start of processing for Check_Unused_Withs begin -- Immediate return if no semantics or warning flag not set if not Opt.Check_Withs or else Operating_Mode = Check_Syntax then return; end if; Process_Deferred_References; -- Flag any unused with clauses. For a subunit, check only the units -- in its context, not those of the parent, which may be needed by other -- subunits. We will get the full warnings when we compile the parent, -- but the following is helpful when compiling a subunit by itself. if Nkind (Unit (Cunit (Main_Unit))) = N_Subunit then if Current_Sem_Unit = Main_Unit then Check_One_Unit (Main_Unit); end if; return; end if; -- Process specified units if Spec_Unit = No_Unit then -- For main call, check all units for Unit in Main_Unit .. Last_Unit loop Check_One_Unit (Unit); end loop; else -- For call for spec, check only the spec Check_One_Unit (Spec_Unit); end if; end Check_Unused_Withs; --------------------------------- -- Generic_Package_Spec_Entity -- --------------------------------- function Generic_Package_Spec_Entity (E : Entity_Id) return Boolean is S : Entity_Id; begin if Is_Package_Body_Entity (E) then return False; else S := Scope (E); loop if S = Standard_Standard then return False; elsif Ekind (S) = E_Generic_Package then return True; elsif Ekind (S) = E_Package then S := Scope (S); else return False; end if; end loop; end if; end Generic_Package_Spec_Entity; ---------------------- -- Goto_Spec_Entity -- ---------------------- function Goto_Spec_Entity (E : Entity_Id) return Entity_Id is begin if Is_Formal (E) and then Present (Spec_Entity (E)) then return Spec_Entity (E); else return E; end if; end Goto_Spec_Entity; ------------------- -- Has_Junk_Name -- ------------------- function Has_Junk_Name (E : Entity_Id) return Boolean is function Match (S : String) return Boolean; -- Return true if substring S is found in Name_Buffer (1 .. Name_Len) ----------- -- Match -- ----------- function Match (S : String) return Boolean is Slen1 : constant Integer := S'Length - 1; begin for J in 1 .. Name_Len - S'Length + 1 loop if Name_Buffer (J .. J + Slen1) = S then return True; end if; end loop; return False; end Match; -- Start of processing for Has_Junk_Name begin Get_Unqualified_Decoded_Name_String (Chars (E)); return Match ("discard") or else Match ("dummy") or else Match ("ignore") or else Match ("junk") or else Match ("unused"); end Has_Junk_Name; -------------------------------------- -- Has_Pragma_Unmodified_Check_Spec -- -------------------------------------- function Has_Pragma_Unmodified_Check_Spec (E : Entity_Id) return Boolean is begin if Is_Formal (E) and then Present (Spec_Entity (E)) then -- Note: use of OR instead of OR ELSE here is deliberate, we want -- to mess with Unmodified flags on both body and spec entities. return Has_Unmodified (E) or Has_Unmodified (Spec_Entity (E)); else return Has_Unmodified (E); end if; end Has_Pragma_Unmodified_Check_Spec; ---------------------------------------- -- Has_Pragma_Unreferenced_Check_Spec -- ---------------------------------------- function Has_Pragma_Unreferenced_Check_Spec (E : Entity_Id) return Boolean is begin if Is_Formal (E) and then Present (Spec_Entity (E)) then -- Note: use of OR here instead of OR ELSE is deliberate, we want -- to mess with flags on both entities. return Has_Unreferenced (E) or Has_Unreferenced (Spec_Entity (E)); else return Has_Unreferenced (E); end if; end Has_Pragma_Unreferenced_Check_Spec; ---------------- -- Initialize -- ---------------- procedure Initialize is begin Warnings_Off_Pragmas.Init; Unreferenced_Entities.Init; In_Out_Warnings.Init; end Initialize; ------------------------------------ -- Never_Set_In_Source_Check_Spec -- ------------------------------------ function Never_Set_In_Source_Check_Spec (E : Entity_Id) return Boolean is begin if Is_Formal (E) and then Present (Spec_Entity (E)) then return Never_Set_In_Source (E) and then Never_Set_In_Source (Spec_Entity (E)); else return Never_Set_In_Source (E); end if; end Never_Set_In_Source_Check_Spec; ------------------------------------- -- Operand_Has_Warnings_Suppressed -- ------------------------------------- function Operand_Has_Warnings_Suppressed (N : Node_Id) return Boolean is function Check_For_Warnings (N : Node_Id) return Traverse_Result; -- Function used to check one node to see if it is or was originally -- a reference to an entity for which Warnings are off. If so, Abandon -- is returned, otherwise OK_Orig is returned to continue the traversal -- of the original expression. function Traverse is new Traverse_Func (Check_For_Warnings); -- Function used to traverse tree looking for warnings ------------------------ -- Check_For_Warnings -- ------------------------ function Check_For_Warnings (N : Node_Id) return Traverse_Result is R : constant Node_Id := Original_Node (N); begin if Nkind (R) in N_Has_Entity and then Present (Entity (R)) and then Has_Warnings_Off (Entity (R)) then return Abandon; else return OK_Orig; end if; end Check_For_Warnings; -- Start of processing for Operand_Has_Warnings_Suppressed begin return Traverse (N) = Abandon; -- If any exception occurs, then something has gone wrong, and this is -- only a minor aesthetic issue anyway, so just say we did not find what -- we are looking for, rather than blow up. exception when others => return False; end Operand_Has_Warnings_Suppressed; ----------------------------------------- -- Output_Non_Modified_In_Out_Warnings -- ----------------------------------------- procedure Output_Non_Modified_In_Out_Warnings is function No_Warn_On_In_Out (E : Entity_Id) return Boolean; -- Given a formal parameter entity E, determines if there is a reason to -- suppress IN OUT warnings (not modified, could be IN) for formals of -- the subprogram. We suppress these warnings if Warnings Off is set, or -- if we have seen the address of the subprogram being taken, or if the -- subprogram is used as a generic actual (in the latter cases the -- context may force use of IN OUT, even if the parameter is not -- modifies for this particular case. ----------------------- -- No_Warn_On_In_Out -- ----------------------- function No_Warn_On_In_Out (E : Entity_Id) return Boolean is S : constant Entity_Id := Scope (E); SE : constant Entity_Id := Spec_Entity (E); begin -- Do not warn if address is taken, since funny business may be going -- on in treating the parameter indirectly as IN OUT. if Address_Taken (S) or else (Present (SE) and then Address_Taken (Scope (SE))) then return True; -- Do not warn if used as a generic actual, since the generic may be -- what is forcing the use of an "unnecessary" IN OUT. elsif Used_As_Generic_Actual (S) or else (Present (SE) and then Used_As_Generic_Actual (Scope (SE))) then return True; -- Else test warnings off elsif Warnings_Off_Check_Spec (S) then return True; -- All tests for suppressing warning failed else return False; end if; end No_Warn_On_In_Out; -- Start of processing for Output_Non_Modified_In_Out_Warnings begin -- Loop through entities for which a warning may be needed for J in In_Out_Warnings.First .. In_Out_Warnings.Last loop declare E1 : constant Entity_Id := In_Out_Warnings.Table (J); begin -- Suppress warning in specific cases (see details in comments for -- No_Warn_On_In_Out), or if there is a pragma Unmodified. if Has_Pragma_Unmodified_Check_Spec (E1) or else No_Warn_On_In_Out (E1) then null; -- Here we generate the warning else -- If -gnatwc is set then output message that we could be IN if not Is_Trivial_Subprogram (Scope (E1)) then if Warn_On_Constant then Error_Msg_N ("?u?formal parameter & is not modified!", E1); Error_Msg_N ("\?u?mode could be IN instead of `IN OUT`!", E1); -- We do not generate warnings for IN OUT parameters -- unless we have at least -gnatwu. This is deliberately -- inconsistent with the treatment of variables, but -- otherwise we get too many unexpected warnings in -- default mode. elsif Check_Unreferenced then Error_Msg_N ("?u?formal parameter& is read but " & "never assigned!", E1); end if; end if; -- Kill any other warnings on this entity, since this is the -- one that should dominate any other unreferenced warning. Set_Warnings_Off (E1); end if; end; end loop; end Output_Non_Modified_In_Out_Warnings; ---------------------------------------- -- Output_Obsolescent_Entity_Warnings -- ---------------------------------------- procedure Output_Obsolescent_Entity_Warnings (N : Node_Id; E : Entity_Id) is P : constant Node_Id := Parent (N); S : Entity_Id; begin S := Current_Scope; -- Do not output message if we are the scope of standard. This means -- we have a reference from a context clause from when it is originally -- processed, and that's too early to tell whether it is an obsolescent -- unit doing the with'ing. In Sem_Ch10.Analyze_Compilation_Unit we make -- sure that we have a later call when the scope is available. This test -- also eliminates all messages for use clauses, which is fine (we do -- not want messages for use clauses, since they are always redundant -- with respect to the associated with clause). if S = Standard_Standard then return; end if; -- Do not output message if we are in scope of an obsolescent package -- or subprogram. loop if Is_Obsolescent (S) then return; end if; S := Scope (S); exit when S = Standard_Standard; end loop; -- Here we will output the message Error_Msg_Sloc := Sloc (E); -- Case of with clause if Nkind (P) = N_With_Clause then if Ekind (E) = E_Package then Error_Msg_NE ("?j?with of obsolescent package& declared#", N, E); elsif Ekind (E) = E_Procedure then Error_Msg_NE ("?j?with of obsolescent procedure& declared#", N, E); else Error_Msg_NE ("??with of obsolescent function& declared#", N, E); end if; -- If we do not have a with clause, then ignore any reference to an -- obsolescent package name. We only want to give the one warning of -- withing the package, not one each time it is used to qualify. elsif Ekind (E) = E_Package then return; -- Procedure call statement elsif Nkind (P) = N_Procedure_Call_Statement then Error_Msg_NE ("??call to obsolescent procedure& declared#", N, E); -- Function call elsif Nkind (P) = N_Function_Call then Error_Msg_NE ("??call to obsolescent function& declared#", N, E); -- Reference to obsolescent type elsif Is_Type (E) then Error_Msg_NE ("??reference to obsolescent type& declared#", N, E); -- Reference to obsolescent component elsif Ekind_In (E, E_Component, E_Discriminant) then Error_Msg_NE ("??reference to obsolescent component& declared#", N, E); -- Reference to obsolescent variable elsif Ekind (E) = E_Variable then Error_Msg_NE ("??reference to obsolescent variable& declared#", N, E); -- Reference to obsolescent constant elsif Ekind (E) = E_Constant or else Ekind (E) in Named_Kind then Error_Msg_NE ("??reference to obsolescent constant& declared#", N, E); -- Reference to obsolescent enumeration literal elsif Ekind (E) = E_Enumeration_Literal then Error_Msg_NE ("??reference to obsolescent enumeration literal& declared#", N, E); -- Generic message for any other case we missed else Error_Msg_NE ("??reference to obsolescent entity& declared#", N, E); end if; -- Output additional warning if present for J in Obsolescent_Warnings.First .. Obsolescent_Warnings.Last loop if Obsolescent_Warnings.Table (J).Ent = E then String_To_Name_Buffer (Obsolescent_Warnings.Table (J).Msg); Error_Msg_Strlen := Name_Len; Error_Msg_String (1 .. Name_Len) := Name_Buffer (1 .. Name_Len); Error_Msg_N ("\\??~", N); exit; end if; end loop; end Output_Obsolescent_Entity_Warnings; ---------------------------------- -- Output_Unreferenced_Messages -- ---------------------------------- procedure Output_Unreferenced_Messages is begin for J in Unreferenced_Entities.First .. Unreferenced_Entities.Last loop Warn_On_Unreferenced_Entity (Unreferenced_Entities.Table (J)); end loop; end Output_Unreferenced_Messages; ----------------------------------------- -- Output_Unused_Warnings_Off_Warnings -- ----------------------------------------- procedure Output_Unused_Warnings_Off_Warnings is begin for J in Warnings_Off_Pragmas.First .. Warnings_Off_Pragmas.Last loop declare Wentry : Warnings_Off_Entry renames Warnings_Off_Pragmas.Table (J); N : Node_Id renames Wentry.N; E : Node_Id renames Wentry.E; begin -- Turn off Warnings_Off, or we won't get the warning Set_Warnings_Off (E, False); -- Nothing to do if pragma was used to suppress a general warning if Warnings_Off_Used (E) then null; -- If pragma was used both in unmodified and unreferenced contexts -- then that's as good as the general case, no warning. elsif Warnings_Off_Used_Unmodified (E) and Warnings_Off_Used_Unreferenced (E) then null; -- Used only in context where Unmodified would have worked elsif Warnings_Off_Used_Unmodified (E) then Error_Msg_NE ("?W?could use Unmodified instead of " & "Warnings Off for &", Pragma_Identifier (N), E); -- Used only in context where Unreferenced would have worked elsif Warnings_Off_Used_Unreferenced (E) then Error_Msg_NE ("?W?could use Unreferenced instead of " & "Warnings Off for &", Pragma_Identifier (N), E); -- Not used at all else Error_Msg_NE ("?W?pragma Warnings Off for & unused, " & "could be omitted", N, E); end if; end; end loop; end Output_Unused_Warnings_Off_Warnings; --------------------------- -- Referenced_Check_Spec -- --------------------------- function Referenced_Check_Spec (E : Entity_Id) return Boolean is begin if Is_Formal (E) and then Present (Spec_Entity (E)) then return Referenced (E) or else Referenced (Spec_Entity (E)); else return Referenced (E); end if; end Referenced_Check_Spec; ---------------------------------- -- Referenced_As_LHS_Check_Spec -- ---------------------------------- function Referenced_As_LHS_Check_Spec (E : Entity_Id) return Boolean is begin if Is_Formal (E) and then Present (Spec_Entity (E)) then return Referenced_As_LHS (E) or else Referenced_As_LHS (Spec_Entity (E)); else return Referenced_As_LHS (E); end if; end Referenced_As_LHS_Check_Spec; -------------------------------------------- -- Referenced_As_Out_Parameter_Check_Spec -- -------------------------------------------- function Referenced_As_Out_Parameter_Check_Spec (E : Entity_Id) return Boolean is begin if Is_Formal (E) and then Present (Spec_Entity (E)) then return Referenced_As_Out_Parameter (E) or else Referenced_As_Out_Parameter (Spec_Entity (E)); else return Referenced_As_Out_Parameter (E); end if; end Referenced_As_Out_Parameter_Check_Spec; ----------------------------- -- Warn_On_Known_Condition -- ----------------------------- procedure Warn_On_Known_Condition (C : Node_Id) is P : Node_Id; Orig : constant Node_Id := Original_Node (C); Test_Result : Boolean; function Is_Known_Branch return Boolean; -- If the type of the condition is Boolean, the constant value of the -- condition is a boolean literal. If the type is a derived boolean -- type, the constant is wrapped in a type conversion of the derived -- literal. If the value of the condition is not a literal, no warnings -- can be produced. This function returns True if the result can be -- determined, and Test_Result is set True/False accordingly. Otherwise -- False is returned, and Test_Result is unchanged. procedure Track (N : Node_Id; Loc : Node_Id); -- Adds continuation warning(s) pointing to reason (assignment or test) -- for the operand of the conditional having a known value (or at least -- enough is known about the value to issue the warning). N is the node -- which is judged to have a known value. Loc is the warning location. --------------------- -- Is_Known_Branch -- --------------------- function Is_Known_Branch return Boolean is begin if Etype (C) = Standard_Boolean and then Is_Entity_Name (C) and then (Entity (C) = Standard_False or else Entity (C) = Standard_True) then Test_Result := Entity (C) = Standard_True; return True; elsif Is_Boolean_Type (Etype (C)) and then Nkind (C) = N_Unchecked_Type_Conversion and then Is_Entity_Name (Expression (C)) and then Ekind (Entity (Expression (C))) = E_Enumeration_Literal then Test_Result := Chars (Entity (Expression (C))) = Chars (Standard_True); return True; else return False; end if; end Is_Known_Branch; ----------- -- Track -- ----------- procedure Track (N : Node_Id; Loc : Node_Id) is Nod : constant Node_Id := Original_Node (N); begin if Nkind (Nod) in N_Op_Compare then Track (Left_Opnd (Nod), Loc); Track (Right_Opnd (Nod), Loc); elsif Is_Entity_Name (Nod) and then Is_Object (Entity (Nod)) then declare CV : constant Node_Id := Current_Value (Entity (Nod)); begin if Present (CV) then Error_Msg_Sloc := Sloc (CV); if Nkind (CV) not in N_Subexpr then Error_Msg_N ("\\??(see test #)", Loc); elsif Nkind (Parent (CV)) = N_Case_Statement_Alternative then Error_Msg_N ("\\??(see case alternative #)", Loc); else Error_Msg_N ("\\??(see assignment #)", Loc); end if; end if; end; end if; end Track; -- Start of processing for Warn_On_Known_Condition begin -- Adjust SCO condition if from source if Generate_SCO and then Comes_From_Source (Orig) and then Is_Known_Branch then declare Atrue : Boolean; begin Atrue := Test_Result; if Present (Parent (C)) and then Nkind (Parent (C)) = N_Op_Not then Atrue := not Atrue; end if; Set_SCO_Condition (Orig, Atrue); end; end if; -- Argument replacement in an inlined body can make conditions static. -- Do not emit warnings in this case. if In_Inlined_Body then return; end if; if Constant_Condition_Warnings and then Is_Known_Branch and then Comes_From_Source (Orig) and then not In_Instance then -- Don't warn if comparison of result of attribute against a constant -- value, since this is likely legitimate conditional compilation. if Nkind (Orig) in N_Op_Compare and then Compile_Time_Known_Value (Right_Opnd (Orig)) and then Nkind (Original_Node (Left_Opnd (Orig))) = N_Attribute_Reference then return; end if; -- See if this is in a statement or a declaration P := Parent (C); loop -- If tree is not attached, do not issue warning (this is very -- peculiar, and probably arises from some other error condition). if No (P) then return; -- If we are in a declaration, then no warning, since in practice -- conditionals in declarations are used for intended tests which -- may be known at compile time, e.g. things like -- x : constant Integer := 2 + (Word'Size = 32); -- And a warning is annoying in such cases elsif Nkind (P) in N_Declaration or else Nkind (P) in N_Later_Decl_Item then return; -- Don't warn in assert or check pragma, since presumably tests in -- such a context are very definitely intended, and might well be -- known at compile time. Note that we have to test the original -- node, since assert pragmas get rewritten at analysis time. elsif Nkind (Original_Node (P)) = N_Pragma and then Nam_In (Pragma_Name_Unmapped (Original_Node (P)), Name_Assert, Name_Check) then return; end if; exit when Is_Statement (P); P := Parent (P); end loop; -- Here we issue the warning unless some sub-operand has warnings -- set off, in which case we suppress the warning for the node. If -- the original expression is an inequality, it has been expanded -- into a negation, and the value of the original expression is the -- negation of the equality. If the expression is an entity that -- appears within a negation, it is clearer to flag the negation -- itself, and report on its constant value. if not Operand_Has_Warnings_Suppressed (C) then declare True_Branch : Boolean := Test_Result; Cond : Node_Id := C; begin if Present (Parent (C)) and then Nkind (Parent (C)) = N_Op_Not then True_Branch := not True_Branch; Cond := Parent (C); end if; -- Condition always True if True_Branch then if Is_Entity_Name (Original_Node (C)) and then Nkind (Cond) /= N_Op_Not then Error_Msg_NE ("object & is always True at this point?c?", Cond, Original_Node (C)); Track (Original_Node (C), Cond); else Error_Msg_N ("condition is always True?c?", Cond); Track (Cond, Cond); end if; -- Condition always False else if Is_Entity_Name (Original_Node (C)) and then Nkind (Cond) /= N_Op_Not then Error_Msg_NE ("object & is always False at this point?c?", Cond, Original_Node (C)); Track (Original_Node (C), Cond); else Error_Msg_N ("condition is always False?c?", Cond); Track (Cond, Cond); end if; end if; end; end if; end if; end Warn_On_Known_Condition; --------------------------------------- -- Warn_On_Modified_As_Out_Parameter -- --------------------------------------- function Warn_On_Modified_As_Out_Parameter (E : Entity_Id) return Boolean is begin return (Warn_On_Modified_Unread and then Is_Only_Out_Parameter (E)) or else Warn_On_All_Unread_Out_Parameters; end Warn_On_Modified_As_Out_Parameter; --------------------------------- -- Warn_On_Overlapping_Actuals -- --------------------------------- procedure Warn_On_Overlapping_Actuals (Subp : Entity_Id; N : Node_Id) is Act1, Act2 : Node_Id; Form1, Form2 : Entity_Id; function Is_Covered_Formal (Formal : Node_Id) return Boolean; -- Return True if Formal is covered by the rule function Refer_Same_Object (Act1, Act2 : Node_Id) return Boolean; -- Two names are known to refer to the same object if the two names -- are known to denote the same object; or one of the names is a -- selected_component, indexed_component, or slice and its prefix is -- known to refer to the same object as the other name; or one of the -- two names statically denotes a renaming declaration whose renamed -- object_name is known to refer to the same object as the other name -- (RM 6.4.1(6.11/3)) ----------------------- -- Refer_Same_Object -- ----------------------- function Refer_Same_Object (Act1, Act2 : Node_Id) return Boolean is begin return Denotes_Same_Object (Act1, Act2) or else Denotes_Same_Prefix (Act1, Act2); end Refer_Same_Object; ----------------------- -- Is_Covered_Formal -- ----------------------- function Is_Covered_Formal (Formal : Node_Id) return Boolean is begin return Ekind_In (Formal, E_Out_Parameter, E_In_Out_Parameter) and then (Is_Elementary_Type (Etype (Formal)) or else Is_Record_Type (Etype (Formal)) or else Is_Array_Type (Etype (Formal))); end Is_Covered_Formal; begin if Ada_Version < Ada_2012 and then not Warn_On_Overlap then return; end if; -- Exclude calls rewritten as enumeration literals if Nkind (N) not in N_Subprogram_Call and then Nkind (N) /= N_Entry_Call_Statement then return; end if; -- If a call C has two or more parameters of mode in out or out that are -- of an elementary type, then the call is legal only if for each name -- N that is passed as a parameter of mode in out or out to the call C, -- there is no other name among the other parameters of mode in out or -- out to C that is known to denote the same object (RM 6.4.1(6.15/3)) -- If appropriate warning switch is set, we also report warnings on -- overlapping parameters that are record types or array types. Form1 := First_Formal (Subp); Act1 := First_Actual (N); while Present (Form1) and then Present (Act1) loop if Is_Covered_Formal (Form1) then Form2 := First_Formal (Subp); Act2 := First_Actual (N); while Present (Form2) and then Present (Act2) loop if Form1 /= Form2 and then Is_Covered_Formal (Form2) and then Refer_Same_Object (Act1, Act2) then -- Guard against previous errors if Error_Posted (N) or else No (Etype (Act1)) or else No (Etype (Act2)) then null; -- If the actual is a function call in prefix notation, -- there is no real overlap. elsif Nkind (Act2) = N_Function_Call then null; -- If type is not by-copy, assume that aliasing is intended elsif Present (Underlying_Type (Etype (Form1))) and then (Is_By_Reference_Type (Underlying_Type (Etype (Form1))) or else Convention (Underlying_Type (Etype (Form1))) = Convention_Ada_Pass_By_Reference) then null; -- Under Ada 2012 we only report warnings on overlapping -- arrays and record types if switch is set. elsif Ada_Version >= Ada_2012 and then not Is_Elementary_Type (Etype (Form1)) and then not Warn_On_Overlap then null; -- Here we may need to issue overlap message else Error_Msg_Warn := -- Overlap checking is an error only in Ada 2012. For -- earlier versions of Ada, this is a warning. Ada_Version < Ada_2012 -- Overlap is only illegal in Ada 2012 in the case of -- elementary types (passed by copy). For other types, -- we always have a warning in all Ada versions. or else not Is_Elementary_Type (Etype (Form1)) -- Finally, debug flag -gnatd.E changes the error to a -- warning even in Ada 2012 mode. or else Error_To_Warning; declare Act : Node_Id; Form : Entity_Id; begin -- Find matching actual Act := First_Actual (N); Form := First_Formal (Subp); while Act /= Act2 loop Next_Formal (Form); Next_Actual (Act); end loop; if Is_Elementary_Type (Etype (Act1)) and then Ekind (Form2) = E_In_Parameter then null; -- No real aliasing elsif Is_Elementary_Type (Etype (Act2)) and then Ekind (Form2) = E_In_Parameter then null; -- Ditto -- If the call was written in prefix notation, and -- thus its prefix before rewriting was a selected -- component, count only visible actuals in the call. elsif Is_Entity_Name (First_Actual (N)) and then Nkind (Original_Node (N)) = Nkind (N) and then Nkind (Name (Original_Node (N))) = N_Selected_Component and then Is_Entity_Name (Prefix (Name (Original_Node (N)))) and then Entity (Prefix (Name (Original_Node (N)))) = Entity (First_Actual (N)) then if Act1 = First_Actual (N) then Error_Msg_FE ("<<`IN OUT` prefix overlaps with " & "actual for&", Act1, Form); else -- For greater clarity, give name of formal Error_Msg_Node_2 := Form; Error_Msg_FE ("<<writable actual for & overlaps with " & "actual for&", Act1, Form); end if; else -- For greater clarity, give name of formal Error_Msg_Node_2 := Form; -- This is one of the messages Error_Msg_FE ("<<writable actual for & overlaps with " & "actual for&", Act1, Form1); end if; end; end if; return; end if; Next_Formal (Form2); Next_Actual (Act2); end loop; end if; Next_Formal (Form1); Next_Actual (Act1); end loop; end Warn_On_Overlapping_Actuals; ------------------------------ -- Warn_On_Suspicious_Index -- ------------------------------ procedure Warn_On_Suspicious_Index (Name : Entity_Id; X : Node_Id) is Low_Bound : Uint; -- Set to lower bound for a suspicious type Ent : Entity_Id; -- Entity for array reference Typ : Entity_Id; -- Array type function Is_Suspicious_Type (Typ : Entity_Id) return Boolean; -- Tests to see if Typ is a type for which we may have a suspicious -- index, namely an unconstrained array type, whose lower bound is -- either zero or one. If so, True is returned, and Low_Bound is set -- to this lower bound. If not, False is returned, and Low_Bound is -- undefined on return. -- -- For now, we limit this to standard string types, so any other -- unconstrained types return False. We may change our minds on this -- later on, but strings seem the most important case. procedure Test_Suspicious_Index; -- Test if index is of suspicious type and if so, generate warning ------------------------ -- Is_Suspicious_Type -- ------------------------ function Is_Suspicious_Type (Typ : Entity_Id) return Boolean is LB : Node_Id; begin if Is_Array_Type (Typ) and then not Is_Constrained (Typ) and then Number_Dimensions (Typ) = 1 and then Is_Standard_String_Type (Typ) and then not Has_Warnings_Off (Typ) then LB := Type_Low_Bound (Etype (First_Index (Typ))); if Compile_Time_Known_Value (LB) then Low_Bound := Expr_Value (LB); return Low_Bound = Uint_0 or else Low_Bound = Uint_1; end if; end if; return False; end Is_Suspicious_Type; --------------------------- -- Test_Suspicious_Index -- --------------------------- procedure Test_Suspicious_Index is function Length_Reference (N : Node_Id) return Boolean; -- Check if node N is of the form Name'Length procedure Warn1; -- Generate first warning line ---------------------- -- Length_Reference -- ---------------------- function Length_Reference (N : Node_Id) return Boolean is R : constant Node_Id := Original_Node (N); begin return Nkind (R) = N_Attribute_Reference and then Attribute_Name (R) = Name_Length and then Is_Entity_Name (Prefix (R)) and then Entity (Prefix (R)) = Ent; end Length_Reference; ----------- -- Warn1 -- ----------- procedure Warn1 is begin Error_Msg_Uint_1 := Low_Bound; Error_Msg_FE -- CODEFIX ("?w?index for& may assume lower bound of^", X, Ent); end Warn1; -- Start of processing for Test_Suspicious_Index begin -- Nothing to do if subscript does not come from source (we don't -- want to give garbage warnings on compiler expanded code, e.g. the -- loops generated for slice assignments. Such junk warnings would -- be placed on source constructs with no subscript in sight). if not Comes_From_Source (Original_Node (X)) then return; end if; -- Case where subscript is a constant integer if Nkind (X) = N_Integer_Literal then Warn1; -- Case where original form of subscript is an integer literal if Nkind (Original_Node (X)) = N_Integer_Literal then if Intval (X) = Low_Bound then Error_Msg_FE -- CODEFIX ("\?w?suggested replacement: `&''First`", X, Ent); else Error_Msg_Uint_1 := Intval (X) - Low_Bound; Error_Msg_FE -- CODEFIX ("\?w?suggested replacement: `&''First + ^`", X, Ent); end if; -- Case where original form of subscript is more complex else -- Build string X'First - 1 + expression where the expression -- is the original subscript. If the expression starts with "1 -- + ", then the "- 1 + 1" is elided. Error_Msg_String (1 .. 13) := "'First - 1 + "; Error_Msg_Strlen := 13; declare Sref : Source_Ptr := Sloc (First_Node (Original_Node (X))); Tref : constant Source_Buffer_Ptr := Source_Text (Get_Source_File_Index (Sref)); -- Tref (Sref) is used to scan the subscript Pctr : Natural; -- Parentheses counter when scanning subscript begin -- Tref (Sref) points to start of subscript -- Elide - 1 if subscript starts with 1 + if Tref (Sref .. Sref + 2) = "1 +" then Error_Msg_Strlen := Error_Msg_Strlen - 6; Sref := Sref + 2; elsif Tref (Sref .. Sref + 1) = "1+" then Error_Msg_Strlen := Error_Msg_Strlen - 6; Sref := Sref + 1; end if; -- Now we will copy the subscript to the string buffer Pctr := 0; loop -- Count parens, exit if terminating right paren. Note -- check to ignore paren appearing as character literal. if Tref (Sref + 1) = ''' and then Tref (Sref - 1) = ''' then null; else if Tref (Sref) = '(' then Pctr := Pctr + 1; elsif Tref (Sref) = ')' then exit when Pctr = 0; Pctr := Pctr - 1; end if; end if; -- Done if terminating double dot (slice case) exit when Pctr = 0 and then (Tref (Sref .. Sref + 1) = ".." or else Tref (Sref .. Sref + 2) = " .."); -- Quit if we have hit EOF character, something wrong if Tref (Sref) = EOF then return; end if; -- String literals are too much of a pain to handle if Tref (Sref) = '"' or else Tref (Sref) = '%' then return; end if; -- If we have a 'Range reference, then this is a case -- where we cannot easily give a replacement. Don't try. if Tref (Sref .. Sref + 4) = "range" and then Tref (Sref - 1) < 'A' and then Tref (Sref + 5) < 'A' then return; end if; -- Else store next character Error_Msg_Strlen := Error_Msg_Strlen + 1; Error_Msg_String (Error_Msg_Strlen) := Tref (Sref); Sref := Sref + 1; -- If we get more than 40 characters then the expression -- is too long to copy, or something has gone wrong. In -- either case, just skip the attempt at a suggested fix. if Error_Msg_Strlen > 40 then return; end if; end loop; end; -- Replacement subscript is now in string buffer Error_Msg_FE -- CODEFIX ("\?w?suggested replacement: `&~`", Original_Node (X), Ent); end if; -- Case where subscript is of the form X'Length elsif Length_Reference (X) then Warn1; Error_Msg_Node_2 := Ent; Error_Msg_FE ("\?w?suggest replacement of `&''Length` by `&''Last`", X, Ent); -- Case where subscript is of the form X'Length - expression elsif Nkind (X) = N_Op_Subtract and then Length_Reference (Left_Opnd (X)) then Warn1; Error_Msg_Node_2 := Ent; Error_Msg_FE ("\?w?suggest replacement of `&''Length` by `&''Last`", Left_Opnd (X), Ent); end if; end Test_Suspicious_Index; -- Start of processing for Warn_On_Suspicious_Index begin -- Only process if warnings activated if Warn_On_Assumed_Low_Bound then -- Test if array is simple entity name if Is_Entity_Name (Name) then -- Test if array is parameter of unconstrained string type Ent := Entity (Name); Typ := Etype (Ent); if Is_Formal (Ent) and then Is_Suspicious_Type (Typ) and then not Low_Bound_Tested (Ent) then Test_Suspicious_Index; end if; end if; end if; end Warn_On_Suspicious_Index; ------------------------------- -- Warn_On_Suspicious_Update -- ------------------------------- procedure Warn_On_Suspicious_Update (N : Node_Id) is Par : constant Node_Id := Parent (N); Arg : Node_Id; begin -- Only process if warnings activated if Warn_On_Suspicious_Contract then if Nkind_In (Par, N_Op_Eq, N_Op_Ne) then if N = Left_Opnd (Par) then Arg := Right_Opnd (Par); else Arg := Left_Opnd (Par); end if; if Same_Object (Prefix (N), Arg) then if Nkind (Par) = N_Op_Eq then Error_Msg_N ("suspicious equality test with modified version of " & "same object?T?", Par); else Error_Msg_N ("suspicious inequality test with modified version of " & "same object?T?", Par); end if; end if; end if; end if; end Warn_On_Suspicious_Update; -------------------------------------- -- Warn_On_Unassigned_Out_Parameter -- -------------------------------------- procedure Warn_On_Unassigned_Out_Parameter (Return_Node : Node_Id; Scope_Id : Entity_Id) is Form : Entity_Id; Form2 : Entity_Id; begin -- Ignore if procedure or return statement does not come from source if not Comes_From_Source (Scope_Id) or else not Comes_From_Source (Return_Node) then return; end if; -- Loop through formals Form := First_Formal (Scope_Id); while Present (Form) loop -- We are only interested in OUT parameters that come from source -- and are never set in the source, and furthermore only in scalars -- since non-scalars generate too many false positives. if Ekind (Form) = E_Out_Parameter and then Never_Set_In_Source_Check_Spec (Form) and then Is_Scalar_Type (Etype (Form)) and then not Present (Unset_Reference (Form)) then -- Before we issue the warning, an add ad hoc defence against the -- most common case of false positives with this warning which is -- the case where there is a Boolean OUT parameter that has been -- set, and whose meaning is "ignore the values of the other -- parameters". We can't of course reliably tell this case at -- compile time, but the following test kills a lot of false -- positives, without generating a significant number of false -- negatives (missed real warnings). Form2 := First_Formal (Scope_Id); while Present (Form2) loop if Ekind (Form2) = E_Out_Parameter and then Root_Type (Etype (Form2)) = Standard_Boolean and then not Never_Set_In_Source_Check_Spec (Form2) then return; end if; Next_Formal (Form2); end loop; -- Here all conditions are met, record possible unset reference Set_Unset_Reference (Form, Return_Node); end if; Next_Formal (Form); end loop; end Warn_On_Unassigned_Out_Parameter; --------------------------------- -- Warn_On_Unreferenced_Entity -- --------------------------------- procedure Warn_On_Unreferenced_Entity (Spec_E : Entity_Id; Body_E : Entity_Id := Empty) is E : Entity_Id := Spec_E; begin if not Referenced_Check_Spec (E) and then not Has_Pragma_Unreferenced_Check_Spec (E) and then not Warnings_Off_Check_Spec (E) and then not Has_Junk_Name (Spec_E) and then not Is_Exported (Spec_E) then case Ekind (E) is when E_Variable => -- Case of variable that is assigned but not read. We suppress -- the message if the variable is volatile, has an address -- clause, is aliased, or is a renaming, or is imported. if Referenced_As_LHS_Check_Spec (E) and then No (Address_Clause (E)) and then not Is_Volatile (E) then if Warn_On_Modified_Unread and then not Is_Imported (E) and then not Is_Aliased (E) and then No (Renamed_Object (E)) then if not Has_Pragma_Unmodified_Check_Spec (E) then Error_Msg_N -- CODEFIX ("?u?variable & is assigned but never read!", E); end if; Set_Last_Assignment (E, Empty); end if; -- Normal case of neither assigned nor read (exclude variables -- referenced as out parameters, since we already generated -- appropriate warnings at the call point in this case). elsif not Referenced_As_Out_Parameter (E) then -- We suppress the message for types for which a valid -- pragma Unreferenced_Objects has been given, otherwise -- we go ahead and give the message. if not Has_Pragma_Unreferenced_Objects (Etype (E)) then -- Distinguish renamed case in message if Present (Renamed_Object (E)) and then Comes_From_Source (Renamed_Object (E)) then Error_Msg_N -- CODEFIX ("?u?renamed variable & is not referenced!", E); else Error_Msg_N -- CODEFIX ("?u?variable & is not referenced!", E); end if; end if; end if; when E_Constant => if not Has_Pragma_Unreferenced_Objects (Etype (E)) then if Present (Renamed_Object (E)) and then Comes_From_Source (Renamed_Object (E)) then Error_Msg_N -- CODEFIX ("?u?renamed constant & is not referenced!", E); else Error_Msg_N -- CODEFIX ("?u?constant & is not referenced!", E); end if; end if; when E_In_Out_Parameter | E_In_Parameter => -- Do not emit message for formals of a renaming, because they -- are never referenced explicitly. if Nkind (Original_Node (Unit_Declaration_Node (Scope (E)))) /= N_Subprogram_Renaming_Declaration then -- Suppress this message for an IN OUT parameter of a -- non-scalar type, since it is normal to have only an -- assignment in such a case. if Ekind (E) = E_In_Parameter or else not Referenced_As_LHS_Check_Spec (E) or else Is_Scalar_Type (Etype (E)) then if Present (Body_E) then E := Body_E; end if; if not Is_Trivial_Subprogram (Scope (E)) then Error_Msg_NE -- CODEFIX ("?u?formal parameter & is not referenced!", E, Spec_E); end if; end if; end if; when E_Out_Parameter => null; when E_Discriminant => Error_Msg_N ("?u?discriminant & is not referenced!", E); when E_Named_Integer | E_Named_Real => Error_Msg_N -- CODEFIX ("?u?named number & is not referenced!", E); when Formal_Object_Kind => Error_Msg_N -- CODEFIX ("?u?formal object & is not referenced!", E); when E_Enumeration_Literal => Error_Msg_N -- CODEFIX ("?u?literal & is not referenced!", E); when E_Function => Error_Msg_N -- CODEFIX ("?u?function & is not referenced!", E); when E_Procedure => Error_Msg_N -- CODEFIX ("?u?procedure & is not referenced!", E); when E_Package => Error_Msg_N -- CODEFIX ("?u?package & is not referenced!", E); when E_Exception => Error_Msg_N -- CODEFIX ("?u?exception & is not referenced!", E); when E_Label => Error_Msg_N -- CODEFIX ("?u?label & is not referenced!", E); when E_Generic_Procedure => Error_Msg_N -- CODEFIX ("?u?generic procedure & is never instantiated!", E); when E_Generic_Function => Error_Msg_N -- CODEFIX ("?u?generic function & is never instantiated!", E); when Type_Kind => Error_Msg_N -- CODEFIX ("?u?type & is not referenced!", E); when others => Error_Msg_N -- CODEFIX ("?u?& is not referenced!", E); end case; -- Kill warnings on the entity on which the message has been posted -- (nothing is posted on out parameters because back end might be -- able to uncover an uninitialized path, and warn accordingly). if Ekind (E) /= E_Out_Parameter then Set_Warnings_Off (E); end if; end if; end Warn_On_Unreferenced_Entity; -------------------------------- -- Warn_On_Useless_Assignment -- -------------------------------- procedure Warn_On_Useless_Assignment (Ent : Entity_Id; N : Node_Id := Empty) is P : Node_Id; X : Node_Id; function Check_Ref (N : Node_Id) return Traverse_Result; -- Used to instantiate Traverse_Func. Returns Abandon if a reference to -- the entity in question is found. function Test_No_Refs is new Traverse_Func (Check_Ref); --------------- -- Check_Ref -- --------------- function Check_Ref (N : Node_Id) return Traverse_Result is begin -- Check reference to our identifier. We use name equality here -- because the exception handlers have not yet been analyzed. This -- is not quite right, but it really does not matter that we fail -- to output the warning in some obscure cases of name clashes. if Nkind (N) = N_Identifier and then Chars (N) = Chars (Ent) then return Abandon; else return OK; end if; end Check_Ref; -- Start of processing for Warn_On_Useless_Assignment begin -- Check if this is a case we want to warn on, a scalar or access -- variable with the last assignment field set, with warnings enabled, -- and which is not imported or exported. We also check that it is OK -- to capture the value. We are not going to capture any value, but -- the warning message depends on the same kind of conditions. if Is_Assignable (Ent) and then not Is_Return_Object (Ent) and then Present (Last_Assignment (Ent)) and then not Is_Imported (Ent) and then not Is_Exported (Ent) and then Safe_To_Capture_Value (N, Ent) and then not Has_Pragma_Unreferenced_Check_Spec (Ent) and then not Has_Junk_Name (Ent) then -- Before we issue the message, check covering exception handlers. -- Search up tree for enclosing statement sequences and handlers. P := Parent (Last_Assignment (Ent)); while Present (P) loop -- Something is really wrong if we don't find a handled statement -- sequence, so just suppress the warning. if No (P) then Set_Last_Assignment (Ent, Empty); return; -- When we hit a package/subprogram body, issue warning and exit elsif Nkind_In (P, N_Entry_Body, N_Package_Body, N_Subprogram_Body, N_Task_Body) then -- Case of assigned value never referenced if No (N) then declare LA : constant Node_Id := Last_Assignment (Ent); begin -- Don't give this for OUT and IN OUT formals, since -- clearly caller may reference the assigned value. Also -- never give such warnings for internal variables. In -- either case, word the warning in a conditional way, -- because in the case of a component of a controlled -- type, the assigned value might be referenced in the -- Finalize operation, so we can't make a definitive -- statement that it's never referenced. if Ekind (Ent) = E_Variable and then not Is_Internal_Name (Chars (Ent)) then -- Give appropriate message, distinguishing between -- assignment statements and out parameters. if Nkind_In (Parent (LA), N_Parameter_Association, N_Procedure_Call_Statement) then Error_Msg_NE ("?m?& modified by call, but value might not be " & "referenced", LA, Ent); else Error_Msg_NE -- CODEFIX ("?m?possibly useless assignment to&, value " & "might not be referenced!", LA, Ent); end if; end if; end; -- Case of assigned value overwritten else declare LA : constant Node_Id := Last_Assignment (Ent); begin Error_Msg_Sloc := Sloc (N); -- Give appropriate message, distinguishing between -- assignment statements and out parameters. if Nkind_In (Parent (LA), N_Procedure_Call_Statement, N_Parameter_Association) then Error_Msg_NE ("?m?& modified by call, but value overwritten #!", LA, Ent); else Error_Msg_NE -- CODEFIX ("?m?useless assignment to&, value overwritten #!", LA, Ent); end if; end; end if; -- Clear last assignment indication and we are done Set_Last_Assignment (Ent, Empty); return; -- Enclosing handled sequence of statements elsif Nkind (P) = N_Handled_Sequence_Of_Statements then -- Check exception handlers present if Present (Exception_Handlers (P)) then -- If we are not at the top level, we regard an inner -- exception handler as a decisive indicator that we should -- not generate the warning, since the variable in question -- may be accessed after an exception in the outer block. if not Nkind_In (Parent (P), N_Entry_Body, N_Package_Body, N_Subprogram_Body, N_Task_Body) then Set_Last_Assignment (Ent, Empty); return; -- Otherwise we are at the outer level. An exception -- handler is significant only if it references the -- variable in question, or if the entity in question -- is an OUT or IN OUT parameter, in which case -- the caller can reference it after the exception -- handler completes. else if Is_Formal (Ent) then Set_Last_Assignment (Ent, Empty); return; else X := First (Exception_Handlers (P)); while Present (X) loop if Test_No_Refs (X) = Abandon then Set_Last_Assignment (Ent, Empty); return; end if; X := Next (X); end loop; end if; end if; end if; end if; P := Parent (P); end loop; end if; end Warn_On_Useless_Assignment; --------------------------------- -- Warn_On_Useless_Assignments -- --------------------------------- procedure Warn_On_Useless_Assignments (E : Entity_Id) is Ent : Entity_Id; begin Process_Deferred_References; if Warn_On_Modified_Unread and then In_Extended_Main_Source_Unit (E) then Ent := First_Entity (E); while Present (Ent) loop Warn_On_Useless_Assignment (Ent); Next_Entity (Ent); end loop; end if; end Warn_On_Useless_Assignments; ----------------------------- -- Warnings_Off_Check_Spec -- ----------------------------- function Warnings_Off_Check_Spec (E : Entity_Id) return Boolean is begin if Is_Formal (E) and then Present (Spec_Entity (E)) then -- Note: use of OR here instead of OR ELSE is deliberate, we want -- to mess with flags on both entities. return Has_Warnings_Off (E) or Has_Warnings_Off (Spec_Entity (E)); else return Has_Warnings_Off (E); end if; end Warnings_Off_Check_Spec; end Sem_Warn;
37.817188
79
0.513283
410cb5a217bb1d92ba88738b374c81499307eb9f
1,869
adb
Ada
awa/plugins/awa-mail/src/aws/awa-mail-clients-aws_smtp-initialize_nossl.adb
My-Colaborations/ada-awa
cc2dee291a14e4df0dbc9c10285bf284a7f1caa8
[ "Apache-2.0" ]
81
2015-01-18T23:02:30.000Z
2022-03-19T17:34:57.000Z
awa/plugins/awa-mail/src/aws/awa-mail-clients-aws_smtp-initialize_nossl.adb
My-Colaborations/ada-awa
cc2dee291a14e4df0dbc9c10285bf284a7f1caa8
[ "Apache-2.0" ]
20
2015-12-09T19:26:19.000Z
2022-03-23T14:32:43.000Z
awa/plugins/awa-mail/src/aws/awa-mail-clients-aws_smtp-initialize_nossl.adb
My-Colaborations/ada-awa
cc2dee291a14e4df0dbc9c10285bf284a7f1caa8
[ "Apache-2.0" ]
16
2015-06-29T02:44:06.000Z
2021-09-23T18:47:50.000Z
----------------------------------------------------------------------- -- awa-mail-clients-aws_smtp-initialize -- Initialize SMTP client without SSL support -- Copyright (C) 2016 Stephane Carrez -- Written by Stephane Carrez ([email protected]) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- separate (AWA.Mail.Clients.AWS_SMTP) procedure Initialize (Client : in out AWS_Mail_Manager'Class; Props : in Util.Properties.Manager'Class) is Server : constant String := Props.Get (Name => "smtp.host", Default => "localhost"); User : constant String := Props.Get (Name => "smtp.user", Default => ""); Passwd : constant String := Props.Get (Name => "smtp.password", Default => ""); begin if User'Length > 0 then Client.Creds := AWS.SMTP.Authentication.Plain.Initialize (User, Passwd); Client.Server := AWS.SMTP.Client.Initialize (Server_Name => Server, Port => Client.Port, Credential => Client.Creds'Unchecked_Access); else Client.Server := AWS.SMTP.Client.Initialize (Server_Name => Server, Port => Client.Port); end if; end Initialize;
49.184211
97
0.58641
067afcfd53c7d813c69b3fd7ff16bba89426d560
2,388
ads
Ada
src/lithium-markdown.ads
faelys/lithium3
f167143e2e4d8a968c6608cffe179eb2b05d4c2c
[ "ISC" ]
1
2020-09-10T10:14:35.000Z
2020-09-10T10:14:35.000Z
src/lithium-markdown.ads
faelys/lithium3
f167143e2e4d8a968c6608cffe179eb2b05d4c2c
[ "ISC" ]
null
null
null
src/lithium-markdown.ads
faelys/lithium3
f167143e2e4d8a968c6608cffe179eb2b05d4c2c
[ "ISC" ]
1
2020-01-06T14:16:55.000Z
2020-01-06T14:16:55.000Z
------------------------------------------------------------------------------ -- Copyright (c) 2015-2017, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- purpose with or without fee is hereby granted, provided that the above -- -- copyright notice and this permission notice appear in all copies. -- -- -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -- -- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -- -- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -- -- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -- -- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -- -- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -- -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -- ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ -- Lithium.Markdown provides a worker task that performs markdown rendering -- ------------------------------------------------------------------------------ with Ada.Streams; with Natools.S_Expressions.Atom_Refs; with Natools.String_Slices; package Lithium.Markdown is task Extended is entry Render (Source : in out Ada.Streams.Root_Stream_Type'Class; Output : out Natools.S_Expressions.Atom_Refs.Immutable_Reference; Summary : out Natools.S_Expressions.Atom_Refs.Immutable_Reference); entry Render (Source : in Natools.String_Slices.Slice; Output : out Natools.S_Expressions.Atom_Refs.Immutable_Reference; Summary : out Natools.S_Expressions.Atom_Refs.Immutable_Reference); end Extended; task Comment is entry Render (Source : in out Ada.Streams.Root_Stream_Type'Class; Output : out Natools.S_Expressions.Atom_Refs.Immutable_Reference); entry Render (Source : in Natools.String_Slices.Slice; Output : out Natools.S_Expressions.Atom_Refs.Immutable_Reference); end Comment; end Lithium.Markdown;
49.75
78
0.568677
a1f420efc91b508a87414d1c6ad01ab3b8a0ae40
3,777
ads
Ada
gcc-gcc-7_3_0-release/gcc/ada/a-finali.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/ada/a-finali.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/ada/a-finali.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A D A . F I N A L I Z A T I O N -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2015, Free Software Foundation, Inc. -- -- -- -- This specification is derived from the Ada Reference Manual for use with -- -- GNAT. The copyright notice above, and the license provisions that follow -- -- apply solely to the contents of the part following the private keyword. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ pragma Warnings (Off); with System.Finalization_Root; pragma Warnings (On); package Ada.Finalization is pragma Pure; type Controlled is abstract tagged private; pragma Preelaborable_Initialization (Controlled); procedure Initialize (Object : in out Controlled) is null; procedure Adjust (Object : in out Controlled) is null; procedure Finalize (Object : in out Controlled) is null; type Limited_Controlled is abstract tagged limited private; pragma Preelaborable_Initialization (Limited_Controlled); procedure Initialize (Object : in out Limited_Controlled) is null; procedure Finalize (Object : in out Limited_Controlled) is null; private package SFR renames System.Finalization_Root; type Controlled is abstract new SFR.Root_Controlled with null record; -- In order to simplify the implementation, the mechanism in Process_Full_ -- View ensures that the full view is limited even though the parent type -- is not. type Limited_Controlled is abstract new SFR.Root_Controlled with null record; end Ada.Finalization;
54.73913
78
0.49722
596ba69d1ac1134428b1211f9fe4e9f90fd20cbe
3,492
adb
Ada
3-mid/opengl/source/lean/renderer/opengl-culler-frustum.adb
charlie5/lace
e9b7dc751d500ff3f559617a6fc3089ace9dc134
[ "0BSD" ]
20
2015-11-04T09:23:59.000Z
2022-01-14T10:21:42.000Z
3-mid/opengl/source/lean/renderer/opengl-culler-frustum.adb
charlie5/lace-alire
9ace9682cf4daac7adb9f980c2868d6225b8111c
[ "0BSD" ]
2
2015-11-04T17:05:56.000Z
2015-12-08T03:16:13.000Z
3-mid/opengl/source/lean/renderer/opengl-culler-frustum.adb
charlie5/lace-alire
9ace9682cf4daac7adb9f980c2868d6225b8111c
[ "0BSD" ]
1
2015-12-07T12:53:52.000Z
2015-12-07T12:53:52.000Z
with openGL.Frustum; package body openGL.Culler.frustum is --------- --- Forge -- procedure define (Self : in out Item) is begin Self.vanish_point_size_Min.Value_is (0.00_12); end define; -------------- --- Attributes -- overriding procedure add (Self : in out Item; the_Visual : in Visual.view) is begin null; end add; overriding procedure rid (Self : in out Item; the_Visual : in Visual.view) is begin null; end rid; overriding function object_Count (Self : in Item) return Natural is pragma unreferenced (Self); begin return 0; end object_Count; function vanish_point_size_Min (Self : in Item'Class) return Real is begin return Self.vanish_point_size_Min.Value; end vanish_point_size_Min; procedure vanish_point_size_Min_is (Self : in out Item'Class; Now : in Real) is begin Self.vanish_point_size_Min.Value_is (Now); end vanish_point_size_Min_is; overriding function cull (Self : in Item; the_Visuals : in Visual.views; camera_Frustum : in openGL.frustum.Plane_array; camera_Site : in Vector_3) return Visual.views is visible_Objects : Visual.views (the_Visuals'Range); Last : Natural := 0; the_Object : Visual.view; the_vanish_point_size_Min : constant Real := Self.vanish_point_size_Min.Value; begin -- Apply 'frustum' and 'apparent size' culling. -- for i in the_Visuals'Range loop the_Object := the_Visuals (i); declare use openGL.Frustum, Visual; the_Size : constant Real := the_Object.Model.Bounds.Ball; the_Distance : constant Real := abs (camera_Site - Site_of (the_Object.all)); apparent_Size : Real; function is_visible_for_Plane (Which : in openGL.frustum.plane_Id) return Boolean is the_Site : Vector_3 renames Site_of (the_Object.all); plane_Distance : constant Real := camera_Frustum (Which) (1) * the_Site (1) + camera_Frustum (Which) (2) * the_Site (2) + camera_Frustum (Which) (3) * the_Site (3) + camera_Frustum (Which) (4); begin return plane_Distance + the_Size > 0.0; end is_visible_for_plane; begin if the_Distance /= 0.0 -- The visual is on same site as camera. and the_Size /= 0.0 -- The visual bounds are known. then apparent_Size := the_Size / the_Distance; else apparent_Size := Real'Last; end if; if apparent_Size > the_vanish_point_size_Min and is_visible_for_Plane (Left) and is_visible_for_Plane (Right) and is_visible_for_Plane (High) and is_visible_for_Plane (Low) then Last := Last + 1; visible_Objects (Last) := the_Object; the_Object.apparent_Size_is (apparent_Size); end if; end; end loop; return visible_Objects (1 .. Last); end cull; end openGL.Culler.frustum;
26.861538
93
0.549828
29ec35cd1b27cfb6574f2400bbb9c0684febf9d3
3,617
ads
Ada
source/amf/uml/amf-uml-expansion_nodes-hash.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
24
2016-11-29T06:59:41.000Z
2021-08-30T11:55:16.000Z
source/amf/uml/amf-uml-expansion_nodes-hash.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
2
2019-01-16T05:15:20.000Z
2019-02-03T10:03:32.000Z
source/amf/uml/amf-uml-expansion_nodes-hash.ads
svn2github/matreshka
9d222b3ad9da508855fb1f5adbe5e8a4fad4c530
[ "BSD-3-Clause" ]
4
2017-07-18T07:11:05.000Z
2020-06-21T03:02:25.000Z
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2011-2012, Vadim Godunko <[email protected]> -- -- All rights reserved. -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions -- -- are met: -- -- -- -- * Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- This file is generated, don't edit it. ------------------------------------------------------------------------------ with AMF.Elements.Generic_Hash; function AMF.UML.Expansion_Nodes.Hash is new AMF.Elements.Generic_Hash (UML_Expansion_Node, UML_Expansion_Node_Access);
72.34
80
0.403373
2940d4749da22fdd894a5f014854bd61b1c7441a
53,995
adb
Ada
source/vampire-main.adb
ytomino/vampire
2ff6c93af53e55c89cab70fedb63accba83bcd92
[ "OpenSSL", "Unlicense" ]
1
2016-12-19T13:25:14.000Z
2016-12-19T13:25:14.000Z
source/vampire-main.adb
ytomino/vampire
2ff6c93af53e55c89cab70fedb63accba83bcd92
[ "OpenSSL", "Unlicense" ]
null
null
null
source/vampire-main.adb
ytomino/vampire
2ff6c93af53e55c89cab70fedb63accba83bcd92
[ "OpenSSL", "Unlicense" ]
null
null
null
-- The Village of Vampire by YT, このソースコードはNYSLです with Ada.Calendar; with Ada.Characters.Latin_1; with Ada.Directories; with Ada.Environment_Variables; with Ada.Exceptions; with Ada.IO_Exceptions; with Ada.Hierarchical_File_Names; with Ada.Numerics.MT19937; with Ada.Streams.Stream_IO.Standard_Files; with Ada.Strings.Unbounded; with Web.Lock_Files; with Tabula.Calendar; with Tabula.Debug; with Tabula.Users.Lists; with Tabula.Casts.Load; with Tabula.Villages.Lists; with Vampire.Configurations; with Vampire.Forms.Selecting; with Vampire.Log; with Vampire.R3.Index_Page; with Vampire.R3.Message_Page; with Vampire.R3.Preview_Page; with Vampire.R3.Refresh_Page; with Vampire.R3.Register_Page; with Vampire.R3.Target_Page; with Vampire.R3.User_List_Page; with Vampire.R3.User_Page; with Vampire.R3.Village_Page; with Vampire.Villages.Advance; with Vampire.Villages.Load; with Vampire.Villages.Save; procedure Vampire.Main is use type Ada.Calendar.Time; use type Ada.Strings.Unbounded.Unbounded_String; use type Casts.Person_Sex; use type Users.Lists.User_State; use type Tabula.Villages.Village_State; use type Tabula.Villages.Village_Term; use type Forms.Base_Page; use type Villages.Ability_State; use type Villages.Vampire_Action_Set_Mode; use type Villages.Daytime_Preview_Mode; use type Villages.Person_State; use type Villages.Village_Time; use type Villages.Vote_State_Type; -- 現在時刻 Now : constant Ada.Calendar.Time := Ada.Calendar.Clock; -- 標準入出力 Input : not null Ada.Streams.Stream_IO.Stream_Access := Ada.Streams.Stream_IO.Stream ( Ada.Streams.Stream_IO.Standard_Files.Standard_Input.all); Output : not null Ada.Streams.Stream_IO.Stream_Access := Ada.Streams.Stream_IO.Stream ( Ada.Streams.Stream_IO.Standard_Files.Standard_Output.all); -- 乱数シード Generator : aliased Ada.Numerics.MT19937.Generator := Ada.Numerics.MT19937.Initialize; -- ユーザー情報 User_List : Users.Lists.User_List := Users.Lists.Create ( Directory => Configurations.Users_Directory'Access, Log_File_Name => Configurations.Users_Log_File_Name'Access); -- 村情報 Village_List : Tabula.Villages.Lists.Village_List := Tabula.Villages.Lists.Create ( Data_Directory => Configurations.Villages_Data_Directory'Access, HTML_Directory => Configurations.Villages_HTML_Directory'Access, Blocking_Short_Term_File_Name => Configurations.Villages_Blocking_Short_Term_File_Name'Access, Cache_File_Name => Configurations.Villages_Cache_File_Name'Access, Create_Index => Log.Create_Index'Access, Types => ( 1 => ( Type_Code => Log.Type_Code'Access, Load_Summary => Log.Load_Summary'Access, Create_Log => Log.Create_Log'Access))); begin if not Ada.Environment_Variables.Exists ("USE_STDERR") then Debug.Hook (Configurations.Debug_Log_File_Name'Access, Now); end if; Ada.Directories.Create_Path (Configurations.Temporary_Directory); Ada.Environment_Variables.Set ("TMPDIR", Configurations.Temporary_Directory); Locked : declare Lock : Web.Lock_Files.Lock_Type := Web.Lock_Files.Lock (Configurations.Lock_Name, Force => 60.0); -- HTTP Info Remote_Addr : constant String := Web.Remote_Addr; Remote_Host : constant String := Web.Remote_Host; Inputs : Web.Query_Strings renames Web.Get (Input); Query_Strings : Web.Query_Strings renames Web.Get_Query_Strings; Cookie : Web.Cookie := Web.Get_Cookie; -- variable Post : constant Boolean := Web.Post; Form : Forms.Root_Form_Type'Class := Forms.Selecting.Select_Form ( Query_Strings, Speeches_Per_Page => Configurations.Speeches_Per_Page); procedure Refresh_Page is Self_URI : constant String := Web.Request_URI; begin Web.Header_See_Other (Output, Self_URI); Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Refresh_Page (Output, Form, URI => Self_URI); end Refresh_Page; -- Values User_Id : constant String := Form.Get_User_Id (Query_Strings, Cookie); User_Password : constant String := Form.Get_User_Password (Query_Strings, Cookie); Base_Page : constant Forms.Base_Page := Form.Get_Base_Page (Query_Strings, Cookie); Village_Id : constant Tabula.Villages.Village_Id := Form.Get_Village_Id (Query_Strings); Cmd : constant String := Form.Get_Command (Inputs); begin if Web.Lock_Files.Forced (Lock) then Ada.Debug.Put ("forced to remove lock-file."); end if; if Post and then (Remote_Host'Length = 0 or else Remote_Host = Remote_Addr) and then Remote_Addr /= "127.0.0.1" -- localhost and then Remote_Addr /= "::1" -- IPv6 localhost then Web.Header_503 (Output); Web.Header_Break (Output); elsif Cmd = "logon" then Logon : declare New_User_Id : constant String := Form.Get_New_User_Id (Inputs); New_User_Password : constant String := Form.Get_New_User_Password (Inputs); User_State : Users.Lists.User_State; User_Info : Users.User_Info; begin Users.Lists.Query (User_List, Id => New_User_Id, Password => New_User_Password, Remote_Addr => Remote_Addr, Remote_Host => Remote_Host, Now => Now, Info => User_Info, State => User_State); case User_State is when Users.Lists.Log_Off => Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Message_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Message_File_Name .all, Base_Page => Base_Page, Village_Id => Village_Id, Message => "ユーザー名を入力してください。", User_Id => "", User_Password => ""); when Users.Lists.Unknown => if Users.Valid_Id_String(New_User_Id) then Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Register_Page( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Register_File_Name .all, Base_Page => Base_Page, Village_Id => Village_Id, New_User_Id => New_User_Id, New_User_Password => New_User_Password); else Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Message_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Message_File_Name.all, Base_Page => Base_Page, Village_Id => Village_Id, Message => "申し訳ありませんがユーザー名に使えない文字が含まれています。", User_Id => "", User_Password => ""); end if; when Users.Lists.Invalid => Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Message_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Message_File_Name.all, Base_Page => Base_Page, Village_Id => Village_Id, Message => "パスワードが異なります。", User_Id => "", User_Password => ""); when Users.Lists.Valid => Forms.Set_User ( Form, Cookie, New_User_Id => New_User_Id, New_User_Password => New_User_Password); Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Message_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Message_File_Name.all, Base_Page => Base_Page, Village_Id => Village_Id, Message => "ログオンしました。", User_Id => New_User_Id, User_Password => New_User_Password); Users.Lists.Update (User_List, Id => New_User_Id, Remote_Addr => Remote_Addr, Remote_Host => Remote_Host, Now => Now, Info => User_Info); end case; end Logon; elsif Cmd = "logoff" then Logoff : declare User_State : Users.Lists.User_State; User_Info : Users.User_Info; Dest_Page : Forms.Base_Page; begin Users.Lists.Query (User_List, Id => User_Id, Password => User_Password, Remote_Addr => Remote_Addr, Remote_Host => Remote_Host, Now => Now, Info => User_Info, State => User_State); case User_State is when Users.Lists.Valid => Users.Lists.Update (User_List, Id => User_Id, Remote_Addr => Remote_Addr, Remote_Host => Remote_Host, Now => Now, Info => User_Info); when others => null; end case; Forms.Set_User (Form, Cookie, New_User_Id => "", New_User_Password => ""); -- logoff if Base_Page = Forms.User_Page then Dest_Page := Forms.Index_Page; else Dest_Page := Base_Page; end if; Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Message_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Message_File_Name.all, Base_Page => Dest_Page, Village_Id => Village_Id, Message => "ログオフしました。", User_Id => "", User_Password => ""); end Logoff; elsif Cmd = "register" then Register : declare New_User_Id : constant String := Form.Get_New_User_Id (Inputs); New_User_Password : constant String := Form.Get_New_User_Password (Inputs); New_User_Password_Retype : constant String := Form.Get_New_User_Confirmation_Password (Inputs); Registered : Boolean; begin if New_User_Password /= New_User_Password_Retype then Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Message_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Message_File_Name.all, Base_Page => Base_Page, Village_Id => Village_Id, Message => "再入力されたパスワードが異なります。", User_Id => "", User_Password => ""); else Users.Lists.New_User (User_List, Id => New_User_Id, Password => New_User_Password, Remote_Addr => Remote_Addr, Remote_Host => Remote_Host, Now => Now, Result => Registered); if Registered then Forms.Set_User ( Form, Cookie, New_User_Id => New_User_Id, New_User_Password => New_User_Password); Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Message_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Message_File_Name.all, Base_Page => Base_Page, Village_Id => Village_Id, Message => "登録に成功しました。", User_Id => New_User_Id, User_Password => New_User_Password); else Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Message_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Message_File_Name.all, Base_Page => Base_Page, Village_Id => Village_Id, Message => "登録に失敗しました。", User_Id => "", User_Password => ""); end if; end if; end Register; else Valid_User : declare User_State : Users.Lists.User_State; User_Info : Users.User_Info; begin Users.Lists.Query (User_List, Id => User_Id, Password => User_Password, Remote_Addr => Remote_Addr, Remote_Host => Remote_Host, Now => Now, Info => User_Info, State => User_State); if User_State = Users.Lists.Invalid then Forms.Set_User (Form, Cookie, New_User_Id => "", New_User_Password => ""); -- logoff Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Message_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Message_File_Name.all, Base_Page => Base_Page, Village_Id => Village_Id, Message => "おや? なにかおかしいです。 ログインし直してください。", User_Id => "", User_Password => ""); elsif Cmd = "newl" or else Cmd = "news" then -- 村作成 New_Village : declare Term : Tabula.Villages.Village_Term; Summaries : Tabula.Villages.Lists.Summary_Maps.Map; begin if Cmd = "news" then Term := Tabula.Villages.Short; else Term := Tabula.Villages.Long; end if; case User_State is when Users.Lists.Valid => Tabula.Villages.Lists.Get_Summaries (Village_List, Summaries); if User_Id /= Users.Administrator and then Tabula.Villages.Lists.Exists_Opened_By (Summaries, User_Id) then Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Message_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Message_File_Name.all, Base_Page => Base_Page, Message => "同時に村をふたつ作成することはできません。", User_Id => User_Id, User_Password => User_Password); elsif Term = Tabula.Villages.Short and then ( User_Info.Disallow_New_Village or else ( Tabula.Villages.Lists.Blocking_Short_Term (Village_List) and then User_Id /= Users.Administrator and then User_Id /= "she")) -- ハードコーディングですよ酷いコードですね then Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Message_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Message_File_Name.all, Base_Page => Base_Page, Message => "えーと、しばらく短期は延期で。", User_Id => User_Id, User_Password => User_Password); else declare Village_Name : constant String := Form.Get_New_Village_Name (Inputs); begin if Village_Name'Length = 0 then Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Message_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Message_File_Name.all, Base_Page => Base_Page, Message => "村名を入力してください。", User_Id => User_Id, User_Password => User_Password); else declare New_Village : Villages.Village_Type := Villages.Create ( Name => Village_Name, By => User_Id, Term => Term, Time => Now); New_Village_Id : constant Tabula.Villages.Village_Id := Tabula.Villages.Lists.New_Village_Id (Village_List); begin declare Full_Name : constant String := Tabula.Villages.Lists.File_Name (Village_List, New_Village_Id); begin -- create the directory declare Dir : constant String := Ada.Hierarchical_File_Names.Unchecked_Containing_Directory (Full_Name); begin if Dir'Length /= 0 then Ada.Directories.Create_Path (Dir); end if; end; -- write the file Villages.Save (Full_Name, New_Village); end; Tabula.Villages.Lists.Update ( Village_List, New_Village_Id, Tabula.Villages.Lists.Summary ( Log.Type_Code, New_Village)); Users.Lists.Update (User_List, Id => User_Id, Remote_Addr => Remote_Addr, Remote_Host => Remote_Host, Now => Now, Info => User_Info); Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Message_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Message_File_Name.all, Base_Page => Base_Page, Message => "新たな村「" & Village_Name & "」を作成しました。", User_Id => User_Id, User_Password => User_Password); exception when Ada.IO_Exceptions.Name_Error => Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Message_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Message_File_Name.all, Base_Page => Base_Page, Message => "作成に失敗しました。", User_Id => User_Id, User_Password => User_Password); end; end if; end; end if; when others => Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Message_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Message_File_Name.all, Base_Page => Base_Page, Message => "ログオンしていないと村は作成できません。", User_Id => "", User_Password => ""); end case; end New_Village; elsif Cmd = "remakelog" then if User_State = Users.Lists.Valid and then User_Id = Tabula.Users.Administrator then Tabula.Villages.Lists.Refresh (Village_List); Refresh_Page; else Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Message_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Message_File_Name.all, Base_Page => Forms.Index_Page, Message => "administratorのみに許された操作です。", User_Id => "", User_Password => ""); end if; elsif Base_Page /= Forms.Village_Page then -- index page, user page, all users page if Cmd'Length = 0 then if Post then Refresh_Page; elsif Base_Page = Forms.User_Page then if User_State = Users.Lists.Valid and then User_Id /= Users.Administrator then declare Summaries : Tabula.Villages.Lists.Summary_Maps.Map; begin Tabula.Villages.Lists.Get_Summaries (Village_List, Summaries); Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.User_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_User_File_Name.all, Summaries, User_Id => User_Id, User_Password => User_Password, User_Info => User_Info); end; else Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Message_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Message_File_Name.all, Base_Page => Forms.Index_Page, Message => "ログオンしないとユーザーページは表示できません。", User_Id => "", User_Password => ""); end if; elsif Base_Page = Forms.User_List_Page then declare Summaries : Tabula.Villages.Lists.Summary_Maps.Map; begin Tabula.Villages.Lists.Get_Summaries (Village_List, Summaries); Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.User_List_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_User_List_File_Name.all, HTML_Directory => Configurations.Villages_HTML_Directory, Summaries => Summaries, User_List => Users.Lists.All_Users (User_List), User_Id => User_Id, User_Password => User_Password); end; else -- index page declare Summaries : Tabula.Villages.Lists.Summary_Maps.Map; Muramura_Count : Natural; begin Tabula.Villages.Lists.Get_Summaries (Village_List, Summaries); Users.Lists.Muramura_Count ( User_List, Now, Configurations.Muramura_Duration, Muramura_Count); Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Index_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Index_File_Name.all, HTML_Directory => Configurations.Villages_HTML_Directory, Summaries => Summaries, Muramura => Muramura_Count, User_Id => User_Id, User_Password => User_Password); end; end if; else Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Message_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Message_File_Name.all, Base_Page => Base_Page, Message => "不正なコマンド(" & Cmd & ")が送られました。", User_Id => User_Id, User_Password => User_Password); end if; elsif not Tabula.Villages.Lists.Exists (Village_List, Village_Id) then Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Message_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Message_File_Name.all, Base_Page => Forms.Index_Page, Message => "存在しない村が指定されました。", User_Id => User_Id, User_Password => User_Password); else Village_Page : declare Village : aliased Villages.Village_Type; procedure Message_Page (Message : in String) is begin Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Message_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Message_File_Name.all, Base_Page => Forms.Village_Page, Village_Id => Village_Id, Village => Village'Access, Message => Message, User_Id => User_Id, User_Password => User_Password); end Message_Page; begin Villages.Load ( Tabula.Villages.Lists.File_Name (Village_List, Village_Id), Village); -- Village.Name := +Village.Name.Constant_Reference.Element.all; -- dirty hack for memory bug if Cmd'Length = 0 then if Post then Refresh_Page; else -- 強制進行 declare Changed, List_Changed : Boolean; begin Villages.Advance(Village, Now, Generator, Changed => Changed, List_Changed => List_Changed); if Changed then Villages.Save ( Tabula.Villages.Lists.File_Name (Village_List, Village_Id), Village); end if; if List_Changed then Tabula.Villages.Lists.Update ( Village_List, Village_Id, Tabula.Villages.Lists.Summary ( Log.Type_Code, Village)); end if; end; -- 村レンダリング declare Day : Natural := Form.Get_Day (Village, Query_Strings); Message_Range : Tabula.Villages.Speech_Range_Type := Form.Get_Range ( Village, Day, Now => Now, Query_Strings => Query_Strings); begin Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Village_Page ( Output, Form, R3.Read ( Configurations.Template_Names (Form.Template_Set).Template_Village_File_Name.all), Current_Directory => ".", HTML_Directory => Configurations.Villages_HTML_Directory, Image_Directory => Configurations.Template_Names (Form.Template_Set).Image_Directory.all, Style_Sheet => Configurations.Template_Names (Form.Template_Set).Style_Sheet_File_Name.all, Background => Configurations.Template_Names (Form.Template_Set).Background_Image_File_Name.all, Relative_Role_Images => Configurations.Template_Names (Form.Template_Set).Relative_Role_Image_File_Names.all, Cast_File_Name => Configurations.Cast_File_Name, Log => False, Village_Id => Village_Id, Village => Village, Day => Day, Showing_Range => Message_Range, User_Id => User_Id, User_Password => User_Password); end; end if; elsif Village.State = Tabula.Villages.Closed then Message_Page ("終了した村にコマンドが送られました。"); elsif User_State /= Users.Lists.Valid then Message_Page ("正常にログオンしてください。"); else Commands : declare Player : Tabula.Villages.Person_Index'Base := Villages.Joined(Village, User_Id); begin if Cmd = "join" then Join : declare Summaries : Tabula.Villages.Lists.Summary_Maps.Map; begin Tabula.Villages.Lists.Get_Summaries (Village_List, Summaries); if Player /= Tabula.Villages.No_Person then Message_Page ("既にこの村に参加しています。"); elsif Village.State /= Tabula.Villages.Prologue then Message_Page ( "村が開始されたため今からは参加できません。 次の村をよろしくお願いします。"); elsif Village.People.Length >= Villages.Maximum_Number_Of_Persons then Message_Page ( "定員に達したため今からは参加できません。 次の村をよろしくお願いします。"); elsif Tabula.Villages.Lists.Exists_Opened_By (Summaries, User_Id, Excluding => Village_Id) then Message_Page ("自分の作成した村に入ってください。"); elsif Village.Term = Tabula.Villages.Long and then Tabula.Villages.Lists.Count_Joined_By ( Summaries, User_Id, Filter => ( Tabula.Villages.Prologue | Tabula.Villages.Playing => True, Tabula.Villages.Epilogue | Tabula.Villages.Closed => False), Long_Only => True) > 0 then Message_Page ("既に他の村に参加しています。"); else declare Joining : Forms.Joining := Form.Get_Joining (Inputs); Cast : Casts.Cast_Collection := Casts.Load (Configurations.Cast_File_Name); begin Villages.Exclude_Taken (Cast, Village); declare Person_Template : Casts.Person renames Cast.People.Constant_Reference (Joining.Name_Index); begin if Joining.Work_Index < 0 then Joining.Work_Index := Casts.Find ( Cast.Works, Person_Template.Work.Constant_Reference); end if; if Joining.Work_Index < 0 then Message_Page ( "申し訳ありませんが既定の肩書き(" & Person_Template.Work.Constant_Reference & ")は既に他の方に取られています。"); else declare Selected_Work : Casts.Work renames Cast.Works.Constant_Reference (Joining.Work_Index); begin if Person_Template.Name.Is_Null or else Selected_Work.Name.Is_Null then Message_Page ("選択した顔または肩書きは既に他の方に取られています。"); elsif Selected_Work.Sex /= Casts.Neutral and then Selected_Work.Sex /= Person_Template.Sex then Message_Page ("性別と肩書きが一致しません。"); elsif Selected_Work.Nominated and then Selected_Work.Name /= Person_Template.Work then Message_Page ("その肩書きは特定の組み合わせでしか使えません。"); elsif Villages.Already_Joined_As_Another_Sex ( Village, User_Id, Person_Template.Sex) then Message_Page ("以前にエントリされたときと性別が異なります。"); else Villages.Join ( Village, User_Id, Cast.Groups.Constant_Reference ( Casts.Find (Cast.Groups, Person_Template.Group)), Person_Template, Selected_Work, Villages.Requested_Role'Value (Joining.Request.Constant_Reference), User_Info.Ignore_Request, Now); Villages.Save ( Tabula.Villages.Lists.File_Name (Village_List, Village_Id), Village); Tabula.Villages.Lists.Update ( Village_List, Village_Id, Tabula.Villages.Lists.Summary ( Log.Type_Code, Village)); Message_Page ("村に参加しました。"); end if; end; end if; end; end; end if; end Join; elsif Cmd = "group" then Group : declare New_Group : constant Integer := Form.Get_Group (Inputs); begin if not Village.People.Is_Empty then Message_Page ("既に他の人が参加されているため顔絵セットを変えられません。"); else Village.Face_Group := New_Group; Villages.Save ( Tabula.Villages.Lists.File_Name (Village_List, Village_Id), Village); Refresh_Page; end if; end Group; elsif Cmd = "narration" then if User_Id /= Tabula.Users.Administrator then Message_Page ("administratorのみに許された操作です。"); else declare Text : constant String := Form.Get_Text (Inputs); begin Villages.Narration (Village, Text, Now); Villages.Save ( Tabula.Villages.Lists.File_Name (Village_List, Village_Id), Village); end; Refresh_Page; end if; elsif Cmd = "remove" then if Village.State /= Tabula.Villages.Prologue then Message_Page ("除名を行えるのはプロローグのみです。"); elsif User_Id /= Tabula.Users.Administrator then Message_Page ("administratorのみに許された操作です。"); else declare Target : constant Tabula.Villages.Person_Index'Base := Form.Get_Target (Inputs); Removed_Id : constant String := Village.People.Constant_Reference (Target).Id.Constant_Reference; begin Villages.Escape(Village, Target, Now); Villages.Save ( Tabula.Villages.Lists.File_Name (Village_List, Village_Id), Village); Tabula.Villages.Lists.Update ( Village_List, Village_Id, Tabula.Villages.Lists.Summary ( Log.Type_Code, Village)); Message_Page (Removed_Id & "を村から除名しました。"); end; end if; elsif Player < 0 then Message_Page ("村に参加していない状態でコマンド(" & Cmd & ")が送られました。"); elsif Cmd = "commit" then if Village.Time = Villages.Night then Message_Page ("今は行動を終えられない時間帯です。"); elsif Village.People.Constant_Reference (Player).Records.Constant_Reference (Village.Today).State = Villages.Died then Message_Page ("死者は行動を決定できません。"); else if not Village.People.Constant_Reference(Player).Commited then Village.People.Reference(Player).Commited := True; declare Changed, List_Changed : Boolean; begin Villages.Advance(Village, Now, Generator, Changed => Changed, List_Changed => List_Changed); Villages.Save ( Tabula.Villages.Lists.File_Name (Village_List, Village_Id), Village); if List_Changed then Tabula.Villages.Lists.Update ( Village_List, Village_Id, Tabula.Villages.Lists.Summary ( Log.Type_Code, Village)); end if; end; end if; Refresh_Page; end if; elsif Cmd = "rollback" then if Village.People.Constant_Reference(Player).Commited then Village.People.Reference(Player).Commited := False; Villages.Save ( Tabula.Villages.Lists.File_Name (Village_List, Village_Id), Village); end if; Refresh_Page; elsif Cmd = "escape" then if Village.State /= Tabula.Villages.Prologue then Message_Page ("村から出られるのはプロローグのみです。"); else case Form.Get_Answered (Inputs) is when Forms.Missing => Message_Page ("答えを入力してください。"); when Forms.NG => Message_Page ("答えが違います。"); when Forms.OK => Villages.Escape(Village, Player, Now); Villages.Save ( Tabula.Villages.Lists.File_Name (Village_List, Village_Id), Village); Tabula.Villages.Lists.Update ( Village_List, Village_Id, Tabula.Villages.Lists.Summary ( Log.Type_Code, Village)); Message_Page ("旅に出ました。"); end case; end if; elsif Cmd = "action" then declare Action : constant String := Form.Get_Action (Inputs); Target : constant Tabula.Villages.Person_Index'Base := Form.Get_Target (Inputs); Said : Villages.Message_Counts renames Villages.Count_Messages(Village, Village.Today); begin if Target < Tabula.Villages.Person_Index'First or else Action'Length = 0 then Message_Page ("アクションの対象と行動を選んでください。"); elsif Action = "wake" then if Said(Player).Wake > 0 then Message_Page ("人を起こせるのは一日一度です。"); elsif not Village.People.Constant_Reference(Target).Commited then Message_Page ("相手はまだ行動を終えていません。"); else Villages.Wake (Village, Player, Target, Now); Villages.Save ( Tabula.Villages.Lists.File_Name (Village_List, Village_Id), Village); Refresh_Page; end if; elsif Action = "encourage" then if Said(Player).Encourage > 0 then Message_Page ("話の続きを促せるのは一日一度です。"); else Villages.Encourage (Village, Player, Target, Now); Villages.Save ( Tabula.Villages.Lists.File_Name (Village_List, Village_Id), Village); Refresh_Page; end if; elsif Action = "vampire_gaze" then if Village.People.Constant_Reference (Player).Role not in Villages.Vampire_Role then Message_Page ("見つめられるのは吸血鬼だけです。"); elsif Village.People.Constant_Reference (Target).Role in Villages.Vampire_Role then Message_Page ("見つめようとした相手は吸血鬼です。"); elsif Said(Player).Vampire_Gaze > 0 then Message_Page ("見つめられるのは一日一度です。"); elsif Village.Time = Villages.Night then Message_Page ("今は夜です。 アクションを消費せずに直接会話できます。"); elsif not Village.Can_Gaze then Message_Page ( "1日目の途中の襲撃は必ず感染になりますので襲撃先を揃える必要はありません、夜の襲撃用に取っておきましょう。"); elsif Village.Vampire_Action_Set = Villages.None then Message_Page ("オプションで「こっそり見つめる」は禁止されています。"); else Villages.Vampire_Gaze (Village, Player, Target, Now); Villages.Save ( Tabula.Villages.Lists.File_Name (Village_List, Village_Id), Village); Refresh_Page; end if; elsif Action = "vampire_cancel" then if Village.People.Constant_Reference (Player).Role not in Villages.Vampire_Role then Message_Page ("襲撃を取り消せるのは吸血鬼だけです。"); elsif Village.People.Constant_Reference (Target).Role in Villages.Vampire_Role then Message_Page ("相手は吸血鬼です、元々襲えません。"); elsif Said (Player).Vampire_Cancel > 0 then Message_Page ("襲撃を取り消せるのは一日一度です。"); elsif Village.Time = Villages.Night then Message_Page ("今は夜です。 アクションを消費せずに直接会話できます。"); elsif not Village.Can_Gaze then Message_Page ( "1日目の途中の襲撃は必ず感染になりますので襲撃先を揃える必要はありません、夜の襲撃用に取っておきましょう。"); elsif Village.Vampire_Action_Set /= Villages.Gaze_And_Cancel then Message_Page ("オプションで「襲うのをやめさせる」は禁止されています。"); else Villages.Vampire_Cancel (Village, Player, Target, Now); Villages.Save ( Tabula.Villages.Lists.File_Name (Village_List, Village_Id), Village); Refresh_Page; end if; else Message_Page ("未対応アクション(" & Action & ")を行おうとしました。"); end if; end; elsif Cmd = "speech" or else Cmd = "speech2" then declare function Speech_Check return Boolean is begin if Village.State = Tabula.Villages.Playing and then Village.People.Constant_Reference (Player).Records.Constant_Reference (Village.Today).State = Villages.Died then Message_Page ("あなたは死にました。"); return False; elsif Village.Time /= Villages.Daytime then Message_Page ("今は喋れない時間帯です。"); return False; else return True; end if; end Speech_Check; begin if Cmd = "speech" then if Speech_Check then declare Text : constant String := Form.Get_Text (Inputs); begin if Text'Length > 0 then Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Preview_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Preview_File_Name.all, Image_Directory => Configurations.Template_Names (Form.Template_Set).Image_Directory.all, Village_Id => Village_Id, Village => Village, Message => Villages.Message'( Day => Village.Today, Time => Calendar.Null_Time, Kind => Villages.Speech, Subject => Player, Target => -1, Text => +Text), User_Id => User_Id, User_Password => User_Password); else Refresh_Page; end if; end; end if; else -- "speech2" if Speech_Check then declare Text : constant String := Form.Get_Text (Inputs); begin if Text'Length > 0 then Villages.Speech (Village, Player, Text, Now); Villages.Save ( Tabula.Villages.Lists.File_Name (Village_List, Village_Id), Village); end if; end; Refresh_Page; end if; end if; end; elsif Cmd = "reedit" then Reedit : declare Reedit_Kind : constant Villages.Message_Kind := Villages.Message_Kind'Value (Form.Get_Reedit_Kind (Inputs)); Text : constant String := Form.Get_Text (Inputs); Day : Natural := Form.Get_Day (Village, Query_Strings); Message_Range : Tabula.Villages.Speech_Range_Type := Form.Get_Range ( Village, Day, Now => Now, Query_Strings => Query_Strings); begin Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Village_Page ( Output, Form, R3.Read ( Configurations.Template_Names (Form.Template_Set).Template_Village_File_Name.all), Current_Directory => ".", HTML_Directory => Configurations.Villages_HTML_Directory, Image_Directory => Configurations.Template_Names (Form.Template_Set).Image_Directory.all, Style_Sheet => Configurations.Template_Names (Form.Template_Set).Style_Sheet_File_Name.all, Background => Configurations.Template_Names (Form.Template_Set).Background_Image_File_Name.all, Relative_Role_Images => Configurations.Template_Names (Form.Template_Set).Relative_Role_Image_File_Names.all, Cast_File_Name => Configurations.Cast_File_Name, Log => False, Village_Id => Village_Id, Village => Village, Day => Day, Showing_Range => Message_Range, Editing => Reedit_Kind, Editing_Text => Text, User_Id => User_Id, User_Password => User_Password); end Reedit; elsif Cmd = "monologue" then if Village.State /= Tabula.Villages.Playing then Message_Page ("プロローグ/エピローグでは独白は喋れません。"); else declare Text : constant String := Form.Get_Text (Inputs); begin if Text'Length > Villages.Max_Length_Of_Message then Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Preview_Page( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Preview_File_Name.all, Image_Directory => Configurations.Template_Names (Form.Template_Set).Image_Directory.all, Village_Id => Village_Id, Village => Village, Message => Villages.Message'( Day => Village.Today, Time => Calendar.Null_Time, Kind => Villages.Monologue, Subject => Player, Target => -1, Text => +Text), User_Id => User_Id, User_Password => User_Password); else if Text'Length /= 0 then Villages.Monologue (Village, Player, Text, Now); Villages.Save ( Tabula.Villages.Lists.File_Name (Village_List, Village_Id), Village); end if; Refresh_Page; end if; end; end if; elsif Cmd = "ghost" then if Village.State /= Tabula.Villages.Playing then Message_Page ("プロローグ/エピローグでは呻けません。"); elsif Village.People.Constant_Reference (Player).Records.Constant_Reference (Village.Today).State /= Villages.Died then Message_Page ("生者は呻けません。"); else declare Text : constant String := Form.Get_Text (Inputs); begin if Text'Length > Villages.Max_Length_Of_Message then Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Preview_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Preview_File_Name.all, Image_Directory => Configurations.Template_Names (Form.Template_Set).Image_Directory.all, Village_Id => Village_Id, Village => Village, Message => Villages.Message'( Day => Village.Today, Time => Calendar.Null_Time, Kind => Villages.Ghost, Subject => Player, Target => -1, Text => +Text), User_Id => User_Id, User_Password => User_Password); else if Text'Length /= 0 then Villages.Ghost (Village, Player, Text, Now); Villages.Save ( Tabula.Villages.Lists.File_Name (Village_List, Village_Id), Village); end if; Refresh_Page; end if; end; end if; elsif Cmd = "note" then declare Text : constant String := Form.Get_Text (Inputs); begin if Text'Length > Villages.Max_Length_Of_Message then Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Preview_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Preview_File_Name.all, Image_Directory => Configurations.Template_Names (Form.Template_Set).Image_Directory.all, Village_Id => Village_Id, Village => Village, Message => Villages.Message'( Day => Village.Today, Time => Calendar.Null_Time, Kind => Villages.Howling, Subject => Player, Target => -1, Text => +Text), User_Id => User_Id, User_Password => User_Password); else if Text /= Village.People.Constant_Reference (Player).Records.Constant_Reference (Village.Today).Note then if Village.Time = Villages.Night and then Village.People.Constant_Reference (Player).Role in Villages.Vampire_Role and then Village.People.Constant_Reference (Player).Records.Constant_Reference (Village.Today).State /= Villages.Died then Villages.Night_Talk (Village, Player, Text, Now); else Village.People.Reference (Player).Records.Reference (Village.Today).Note := +Text; end if; Villages.Save ( Tabula.Villages.Lists.File_Name (Village_List, Village_Id), Village); end if; Refresh_Page; end if; end; elsif Cmd = "vote" then if Village.Vote_State = Villages.Disallowed then Message_Page ("今は投票できない時間帯です。"); else declare Target : constant Tabula.Villages.Person_Index'Base := Form.Get_Target (Inputs); begin if Village.People.Constant_Reference (Player).Records.Constant_Reference (Village.Today).State = Villages.Died then Message_Page ("あなたは死んでいます。"); elsif Target >= 0 and then Village.People.Constant_Reference (Target).Records.Constant_Reference (Village.Today).State = Villages.Died then Message_Page ("死者に投票はできません。"); elsif Target >= 0 and then not Village.People.Constant_Reference (Target).Records.Constant_Reference (Village.Today).Candidate then Message_Page ( "仮投票が行われました。 選ばれた候補以外に投票はできなくなります。"); else if Target /= Village.People.Constant_Reference (Player).Records.Constant_Reference (Village.Today).Vote then Villages.Vote (Village, Player, Target); Villages.Save ( Tabula.Villages.Lists.File_Name (Village_List, Village_Id), Village); end if; Refresh_Page; end if; end; end if; elsif Cmd = "target" then declare Target : constant Tabula.Villages.Person_Index'Base := Form.Get_Target (Inputs); Special : constant Boolean := Form.Get_Special (Inputs); Target_Day : constant Natural := Village.Target_Day; begin if Village.People.Constant_Reference (Player).Records.Constant_Reference (Village.Today).State = Villages.Died then Message_Page ("あなたは死んでいます。"); elsif Special and then Village.Silver_Bullet_State (Player) /= Villages.Allowed then Message_Page ("銀の弾丸は一発限りです。"); elsif Village.Daytime_Preview /= Villages.None and then Village.People.Constant_Reference (Player).Role in Villages.Daytime_Role then case Village.Superman_State (Player) is when Villages.Disallowed => Message_Page ("医者と探偵は、夜に能力を使えません。"); when Villages.Already_Used => Message_Page ("医者と探偵の行動選択は一日に一度しかできません。"); when Villages.Allowed => if Target < 0 then Refresh_Page; else Web.Header_Content_Type (Output, Web.Text_HTML); Web.Header_Cookie (Output, Cookie, Now + Configurations.Cookie_Duration); Web.Header_Break (Output); R3.Target_Page ( Output, Form, Configurations.Template_Names (Form.Template_Set).Template_Target_File_Name.all, Village_Id => Village_Id, Village => Village, Player => Player, Target => Target, User_Id => User_Id, User_Password => User_Password); end if; end case; else if Target /= Village.People.Constant_Reference (Player).Records.Constant_Reference (Target_Day).Target or else Special /= Village.People.Constant_Reference (Player).Records.Constant_Reference (Target_Day).Special then Villages.Select_Target (Village, Player, Target, Special, Now); Villages.Save ( Tabula.Villages.Lists.File_Name (Village_List, Village_Id), Village); end if; Refresh_Page; end if; end; elsif Cmd = "target2" then if Village.People.Constant_Reference (Player).Records.Constant_Reference (Village.Today).State = Villages.Died then Message_Page ("あなたは死んでいます。"); elsif Village.People.Constant_Reference (Player).Role in Villages.Daytime_Role then case Village.Superman_State (Player) is when Villages.Disallowed => Message_Page ("医者と探偵は、夜に能力を使えません。"); when Villages.Already_Used => Message_Page ("医者と探偵の行動選択は一日に一度しかできません。"); when Villages.Allowed => declare Target : constant Tabula.Villages .Person_Index'Base := Form.Get_Target (Inputs); begin Villages.Select_Target (Village, Player, Target, False, Now); Villages.Save ( Tabula.Villages.Lists.File_Name (Village_List, Village_Id), Village); Refresh_Page; end; end case; else Message_Page ("医者と探偵以外は、日中に能力を使えません。"); end if; elsif Cmd = "rule" then if Village.Today > 0 then Message_Page ("開始以降ルールは変更できません。"); else Forms.Set_Rule (Form, Village, Inputs); Villages.Save ( Tabula.Villages.Lists.File_Name (Village_List, Village_Id), Village); Refresh_Page; end if; else Message_Page ("不正なコマンド(" & Cmd & ")が送られました。"); end if; end Commands; end if; end Village_Page; end if; end Valid_User; end if; end Locked; exception when Web.Lock_Files.Lock_Error => Web.Header_Content_Type (Output, Web.Text_Plain); Web.Header_Break(Output); declare Message : constant String := "White fog. Wait 1 minute!"; begin Ada.Debug.Put (Message); String'Write(Output, Message); Character'Write (Output, Ada.Characters.Latin_1.LF); end; when E : others => Web.Header_Content_Type (Output, Web.Text_Plain); Web.Header_Break(Output); declare Message : constant String := Ada.Exceptions.Exception_Information (E); begin Ada.Debug.Put (Message); String'Write (Output, Message); Character'Write (Output, Ada.Characters.Latin_1.LF); end; end Vampire.Main;
37.917837
120
0.601519
06e824eb18ae4bdc8affb6a62e0babf2e1859f44
7,325
ads
Ada
gcc-gcc-7_3_0-release/gcc/ada/g-alvety.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
7
2020-05-02T17:34:05.000Z
2021-10-17T10:15:18.000Z
gcc-gcc-7_3_0-release/gcc/ada/g-alvety.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
null
null
null
gcc-gcc-7_3_0-release/gcc/ada/g-alvety.ads
best08618/asylo
5a520a9f5c461ede0f32acc284017b737a43898c
[ "Apache-2.0" ]
2
2020-07-27T00:22:36.000Z
2021-04-01T09:41:02.000Z
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- G N A T . A L T I V E C . V E C T O R _ T Y P E S -- -- -- -- S p e c -- -- -- -- Copyright (C) 2004-2009, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This unit exposes the various vector types part of the Ada binding to -- Altivec facilities. with GNAT.Altivec.Low_Level_Vectors; package GNAT.Altivec.Vector_Types is use GNAT.Altivec.Low_Level_Vectors; --------------------------------------------------- -- Vector type declarations [PIM-2.1 Data Types] -- --------------------------------------------------- -- Except for assignments and pointer creation/dereference, operations -- on vectors are only performed via subprograms. The vector types are -- then private, and non-limited since assignments are allowed. -- The Hard/Soft binding type-structure differentiation is achieved in -- Low_Level_Vectors. Each version only exposes private vector types, that -- we just sub-type here. This is fine from the design standpoint and -- reduces the amount of explicit conversion required in various places -- internally. subtype vector_unsigned_char is Low_Level_Vectors.LL_VUC; subtype vector_signed_char is Low_Level_Vectors.LL_VSC; subtype vector_bool_char is Low_Level_Vectors.LL_VBC; subtype vector_unsigned_short is Low_Level_Vectors.LL_VUS; subtype vector_signed_short is Low_Level_Vectors.LL_VSS; subtype vector_bool_short is Low_Level_Vectors.LL_VBS; subtype vector_unsigned_int is Low_Level_Vectors.LL_VUI; subtype vector_signed_int is Low_Level_Vectors.LL_VSI; subtype vector_bool_int is Low_Level_Vectors.LL_VBI; subtype vector_float is Low_Level_Vectors.LL_VF; subtype vector_pixel is Low_Level_Vectors.LL_VP; -- [PIM-2.1] shows groups of declarations with exact same component types, -- e.g. vector unsigned short together with vector unsigned short int. It -- so appears tempting to define subtypes for those matches here. -- -- [PIM-2.1] does not qualify items in those groups as "the same types", -- though, and [PIM-2.4.2 Assignments] reads: "if either the left hand -- side or the right hand side of an expression has a vector type, then -- both sides of the expression must be of the same vector type". -- -- Not so clear what is exactly right, then. We go with subtypes for now -- and can adjust later if need be. subtype vector_unsigned_short_int is vector_unsigned_short; subtype vector_signed_short_int is vector_signed_short; subtype vector_char is vector_signed_char; subtype vector_short is vector_signed_short; subtype vector_int is vector_signed_int; -------------------------------- -- Corresponding access types -- -------------------------------- type vector_unsigned_char_ptr is access all vector_unsigned_char; type vector_signed_char_ptr is access all vector_signed_char; type vector_bool_char_ptr is access all vector_bool_char; type vector_unsigned_short_ptr is access all vector_unsigned_short; type vector_signed_short_ptr is access all vector_signed_short; type vector_bool_short_ptr is access all vector_bool_short; type vector_unsigned_int_ptr is access all vector_unsigned_int; type vector_signed_int_ptr is access all vector_signed_int; type vector_bool_int_ptr is access all vector_bool_int; type vector_float_ptr is access all vector_float; type vector_pixel_ptr is access all vector_pixel; -------------------------------------------------------------------- -- Additional access types, for the sake of some argument passing -- -------------------------------------------------------------------- -- ... because some of the operations expect pointers to possibly -- constant objects. type const_vector_bool_char_ptr is access constant vector_bool_char; type const_vector_signed_char_ptr is access constant vector_signed_char; type const_vector_unsigned_char_ptr is access constant vector_unsigned_char; type const_vector_bool_short_ptr is access constant vector_bool_short; type const_vector_signed_short_ptr is access constant vector_signed_short; type const_vector_unsigned_short_ptr is access constant vector_unsigned_short; type const_vector_bool_int_ptr is access constant vector_bool_int; type const_vector_signed_int_ptr is access constant vector_signed_int; type const_vector_unsigned_int_ptr is access constant vector_unsigned_int; type const_vector_float_ptr is access constant vector_float; type const_vector_pixel_ptr is access constant vector_pixel; ---------------------- -- Useful shortcuts -- ---------------------- subtype VUC is vector_unsigned_char; subtype VSC is vector_signed_char; subtype VBC is vector_bool_char; subtype VUS is vector_unsigned_short; subtype VSS is vector_signed_short; subtype VBS is vector_bool_short; subtype VUI is vector_unsigned_int; subtype VSI is vector_signed_int; subtype VBI is vector_bool_int; subtype VP is vector_pixel; subtype VF is vector_float; end GNAT.Altivec.Vector_Types;
48.509934
79
0.610512
0667348ab96f9d6db9f0cd50b36efcd7d647467b
9,007
adb
Ada
tools-src/gnu/gcc/gcc/ada/a-tiinau.adb
modern-tomato/tomato
96f09fab4929c6ddde5c9113f1b2476ad37133c4
[ "FSFAP" ]
80
2015-01-02T10:14:04.000Z
2021-06-07T06:29:49.000Z
tools-src/gnu/gcc/gcc/ada/a-tiinau.adb
modern-tomato/tomato
96f09fab4929c6ddde5c9113f1b2476ad37133c4
[ "FSFAP" ]
9
2015-05-14T11:03:12.000Z
2018-01-04T07:12:58.000Z
tools-src/gnu/gcc/gcc/ada/a-tiinau.adb
modern-tomato/tomato
96f09fab4929c6ddde5c9113f1b2476ad37133c4
[ "FSFAP" ]
69
2015-01-02T10:45:56.000Z
2021-09-06T07:52:13.000Z
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- A D A . T E X T _ I O . I N T E G E R _ A U X -- -- -- -- B o d y -- -- -- -- $Revision$ -- -- -- Copyright (C) 1992-1999 Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT 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 distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, -- -- MA 02111-1307, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ with Ada.Text_IO.Generic_Aux; use Ada.Text_IO.Generic_Aux; with System.Img_BIU; use System.Img_BIU; with System.Img_Int; use System.Img_Int; with System.Img_LLB; use System.Img_LLB; with System.Img_LLI; use System.Img_LLI; with System.Img_LLW; use System.Img_LLW; with System.Img_WIU; use System.Img_WIU; with System.Val_Int; use System.Val_Int; with System.Val_LLI; use System.Val_LLI; package body Ada.Text_IO.Integer_Aux is ----------------------- -- Local Subprograms -- ----------------------- procedure Load_Integer (File : in File_Type; Buf : out String; Ptr : in out Natural); -- This is an auxiliary routine that is used to load an possibly signed -- integer literal value from the input file into Buf, starting at Ptr + 1. -- On return, Ptr is set to the last character stored. ------------- -- Get_Int -- ------------- procedure Get_Int (File : in File_Type; Item : out Integer; Width : in Field) is Buf : String (1 .. Field'Last); Ptr : aliased Integer := 1; Stop : Integer := 0; begin if Width /= 0 then Load_Width (File, Width, Buf, Stop); String_Skip (Buf, Ptr); else Load_Integer (File, Buf, Stop); end if; Item := Scan_Integer (Buf, Ptr'Access, Stop); Check_End_Of_Field (File, Buf, Stop, Ptr, Width); end Get_Int; ------------- -- Get_LLI -- ------------- procedure Get_LLI (File : in File_Type; Item : out Long_Long_Integer; Width : in Field) is Buf : String (1 .. Field'Last); Ptr : aliased Integer := 1; Stop : Integer := 0; begin if Width /= 0 then Load_Width (File, Width, Buf, Stop); String_Skip (Buf, Ptr); else Load_Integer (File, Buf, Stop); end if; Item := Scan_Long_Long_Integer (Buf, Ptr'Access, Stop); Check_End_Of_Field (File, Buf, Stop, Ptr, Width); end Get_LLI; -------------- -- Gets_Int -- -------------- procedure Gets_Int (From : in String; Item : out Integer; Last : out Positive) is Pos : aliased Integer; begin String_Skip (From, Pos); Item := Scan_Integer (From, Pos'Access, From'Last); Last := Pos - 1; exception when Constraint_Error => Last := Pos - 1; raise Data_Error; end Gets_Int; -------------- -- Gets_LLI -- -------------- procedure Gets_LLI (From : in String; Item : out Long_Long_Integer; Last : out Positive) is Pos : aliased Integer; begin String_Skip (From, Pos); Item := Scan_Long_Long_Integer (From, Pos'Access, From'Last); Last := Pos - 1; exception when Constraint_Error => Last := Pos - 1; raise Data_Error; end Gets_LLI; ------------------ -- Load_Integer -- ------------------ procedure Load_Integer (File : in File_Type; Buf : out String; Ptr : in out Natural) is Hash_Loc : Natural; Loaded : Boolean; begin Load_Skip (File); Load (File, Buf, Ptr, '+', '-'); Load_Digits (File, Buf, Ptr, Loaded); if Loaded then Load (File, Buf, Ptr, '#', ':', Loaded); if Loaded then Hash_Loc := Ptr; Load_Extended_Digits (File, Buf, Ptr); Load (File, Buf, Ptr, Buf (Hash_Loc)); end if; Load (File, Buf, Ptr, 'E', 'e', Loaded); if Loaded then -- Note: it is strange to allow a minus sign, since the syntax -- does not, but that is what ACVC test CE3704F, case (6) wants. Load (File, Buf, Ptr, '+', '-'); Load_Digits (File, Buf, Ptr); end if; end if; end Load_Integer; ------------- -- Put_Int -- ------------- procedure Put_Int (File : in File_Type; Item : in Integer; Width : in Field; Base : in Number_Base) is Buf : String (1 .. Integer'Max (Field'Last, Width)); Ptr : Natural := 0; begin if Base = 10 and then Width = 0 then Set_Image_Integer (Item, Buf, Ptr); elsif Base = 10 then Set_Image_Width_Integer (Item, Width, Buf, Ptr); else Set_Image_Based_Integer (Item, Base, Width, Buf, Ptr); end if; Put_Item (File, Buf (1 .. Ptr)); end Put_Int; ------------- -- Put_LLI -- ------------- procedure Put_LLI (File : in File_Type; Item : in Long_Long_Integer; Width : in Field; Base : in Number_Base) is Buf : String (1 .. Integer'Max (Field'Last, Width)); Ptr : Natural := 0; begin if Base = 10 and then Width = 0 then Set_Image_Long_Long_Integer (Item, Buf, Ptr); elsif Base = 10 then Set_Image_Width_Long_Long_Integer (Item, Width, Buf, Ptr); else Set_Image_Based_Long_Long_Integer (Item, Base, Width, Buf, Ptr); end if; Put_Item (File, Buf (1 .. Ptr)); end Put_LLI; -------------- -- Puts_Int -- -------------- procedure Puts_Int (To : out String; Item : in Integer; Base : in Number_Base) is Buf : String (1 .. Integer'Max (Field'Last, To'Length)); Ptr : Natural := 0; begin if Base = 10 then Set_Image_Width_Integer (Item, To'Length, Buf, Ptr); else Set_Image_Based_Integer (Item, Base, To'Length, Buf, Ptr); end if; if Ptr > To'Length then raise Layout_Error; else To (To'First .. To'First + Ptr - 1) := Buf (1 .. Ptr); end if; end Puts_Int; -------------- -- Puts_LLI -- -------------- procedure Puts_LLI (To : out String; Item : in Long_Long_Integer; Base : in Number_Base) is Buf : String (1 .. Integer'Max (Field'Last, To'Length)); Ptr : Natural := 0; begin if Base = 10 then Set_Image_Width_Long_Long_Integer (Item, To'Length, Buf, Ptr); else Set_Image_Based_Long_Long_Integer (Item, Base, To'Length, Buf, Ptr); end if; if Ptr > To'Length then raise Layout_Error; else To (To'First .. To'First + Ptr - 1) := Buf (1 .. Ptr); end if; end Puts_LLI; end Ada.Text_IO.Integer_Aux;
30.224832
79
0.496725
590245fe2a384d8907dd4bc006ff9023bc7ff840
5,007
ads
Ada
samples/client/petstore/ada/src/client/samples-petstore-clients.ads
aaronclong/openapi-generator
7437084cd35f5e084ffc684205241438cc2984f9
[ "Apache-2.0" ]
7
2017-08-25T12:53:28.000Z
2022-03-25T06:26:22.000Z
samples/client/petstore/ada/src/client/samples-petstore-clients.ads
aaronclong/openapi-generator
7437084cd35f5e084ffc684205241438cc2984f9
[ "Apache-2.0" ]
8
2017-08-25T12:46:26.000Z
2017-10-18T07:59:49.000Z
samples/client/petstore/ada/src/client/samples-petstore-clients.ads
aaronclong/openapi-generator
7437084cd35f5e084ffc684205241438cc2984f9
[ "Apache-2.0" ]
3
2017-09-03T22:26:53.000Z
2019-11-24T12:07:15.000Z
-- Swagger Petstore -- This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special_key` to test the authorization filters. -- -- OpenAPI spec version: 1.0.0 -- Contact: [email protected] -- -- NOTE: This package is auto generated by the swagger code generator 2.4.0-SNAPSHOT. -- https://github.com/swagger-api/swagger-codegen.git -- Do not edit the class manually. with Samples.Petstore.Models; with Swagger.Clients; package Samples.Petstore.Clients is type Client_Type is new Swagger.Clients.Client_Type with null record; -- Add a new pet to the store procedure Add_Pet (Client : in out Client_Type; P_Body : in Samples.Petstore.Models.Pet_Type); -- Deletes a pet procedure Delete_Pet (Client : in out Client_Type; Pet_Id : in Swagger.Long; Api_Key : in Swagger.Nullable_UString); -- Finds Pets by status -- Multiple status values can be provided with comma separated strings procedure Find_Pets_By_Status (Client : in out Client_Type; Status : in Swagger.Nullable_UString_Vectors.Vector; Result : out Samples.Petstore.Models.Pet_Type_Vectors.Vector); -- Finds Pets by tags -- Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. procedure Find_Pets_By_Tags (Client : in out Client_Type; Tags : in Swagger.Nullable_UString_Vectors.Vector; Result : out Samples.Petstore.Models.Pet_Type_Vectors.Vector); -- Find pet by ID -- Returns a single pet procedure Get_Pet_By_Id (Client : in out Client_Type; Pet_Id : in Swagger.Long; Result : out Samples.Petstore.Models.Pet_Type); -- Update an existing pet procedure Update_Pet (Client : in out Client_Type; P_Body : in Samples.Petstore.Models.Pet_Type); -- Updates a pet in the store with form data procedure Update_Pet_With_Form (Client : in out Client_Type; Pet_Id : in Swagger.Long; Name : in Swagger.Nullable_UString; Status : in Swagger.Nullable_UString); -- uploads an image procedure Upload_File (Client : in out Client_Type; Pet_Id : in Swagger.Long; Additional_Metadata : in Swagger.Nullable_UString; File : in Swagger.File_Part_Type; Result : out Samples.Petstore.Models.ApiResponse_Type); -- Delete purchase order by ID -- For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors procedure Delete_Order (Client : in out Client_Type; Order_Id : in Swagger.UString); -- Returns pet inventories by status -- Returns a map of status codes to quantities procedure Get_Inventory (Client : in out Client_Type; Result : out Swagger.Nullable_Integer_Map); -- Find purchase order by ID -- For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions procedure Get_Order_By_Id (Client : in out Client_Type; Order_Id : in Swagger.Long; Result : out Samples.Petstore.Models.Order_Type); -- Place an order for a pet procedure Place_Order (Client : in out Client_Type; P_Body : in Samples.Petstore.Models.Order_Type; Result : out Samples.Petstore.Models.Order_Type); -- Create user -- This can only be done by the logged in user. procedure Create_User (Client : in out Client_Type; P_Body : in Samples.Petstore.Models.User_Type); -- Creates list of users with given input array procedure Create_Users_With_Array_Input (Client : in out Client_Type; P_Body : in Samples.Petstore.Models.User_Type_Vectors.Vector); -- Creates list of users with given input array procedure Create_Users_With_List_Input (Client : in out Client_Type; P_Body : in Samples.Petstore.Models.User_Type_Vectors.Vector); -- Delete user -- This can only be done by the logged in user. procedure Delete_User (Client : in out Client_Type; Username : in Swagger.UString); -- Get user by user name procedure Get_User_By_Name (Client : in out Client_Type; Username : in Swagger.UString; Result : out Samples.Petstore.Models.User_Type); -- Logs user into the system procedure Login_User (Client : in out Client_Type; Username : in Swagger.UString; Password : in Swagger.UString; Result : out Swagger.UString); -- Logs out current logged in user session procedure Logout_User (Client : in out Client_Type); -- Updated user -- This can only be done by the logged in user. procedure Update_User (Client : in out Client_Type; Username : in Swagger.UString; P_Body : in Samples.Petstore.Models.User_Type); end Samples.Petstore.Clients;
35.764286
274
0.693629