------------------------------------------------------------------------------ ------------------------------------------------------------------------------ -- Cheddar is a GNU GPL real-time scheduling analysis tool. -- This program provides services to automatically check schedulability and -- other performance criteria of real-time architecture models. -- -- Copyright (C) 2002-2020, Frank Singhoff, Alain Plantec, Jerome Legrand, -- Hai Nam Tran, Stephane Rubini -- -- The Cheddar project was started in 2002 by -- Frank Singhoff, Lab-STICC UMR 6285, Université de Bretagne Occidentale -- -- Cheddar has been published in the "Agence de Protection des Programmes/France" in 2008. -- Since 2008, Ellidiss technologies also contributes to the development of -- Cheddar and provides industrial support. -- -- The full list of contributors and sponsors can be found in AUTHORS.txt and SPONSORS.txt -- -- 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 2 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, write to the Free Software -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -- -- -- Contact : cheddar@listes.univ-brest.fr -- ------------------------------------------------------------------------------ -- Last update : -- $Rev$ -- $Date$ -- $Author: singhoff $ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with tasks; use tasks; with task_set; use task_set; with dependencies; use dependencies; with resources; use resources; use resources.resource_accesses; with systems; use systems; with processors; use processors; with processor_set; use processor_set; with address_spaces; use address_spaces; with address_space_set; use address_space_set; with caches; use caches; with caches; use caches.cache_blocks_table_package; with messages; use messages; with message_set; use message_set; with network_set; use network_set; with resource_set; use resource_set; with task_dependencies; use task_dependencies; with buffer_set; use buffer_set; with buffers; use buffers; use buffers.buffer_roles_package; with convert_strings; with unbounded_strings; use unbounded_strings; with convert_unbounded_strings; with Text_IO; use Text_IO; with systems; use systems; with objects; use objects; with parameters.extended; use parameters.extended; with scheduler_interface; use scheduler_interface; with Ada.Finalization; with unbounded_strings; use unbounded_strings; use unbounded_strings.unbounded_string_list_package; with Unchecked_Deallocation; with sets; with framework_config; use framework_config; with Ada.Float_Text_IO; with random_tools; use random_tools; with initialize_framework; use initialize_framework; with random_tools; use random_tools; with Ada.Numerics.Float_Random; with core_units; use core_units; with networks; use networks; use networks.positions_table_package; with Ada.Numerics.Float_Random; use Ada.Numerics.Float_Random; with networks; use networks; with mesh_analysis; use mesh_analysis; with mesh_analysis.delays; use mesh_analysis.delays; package spacewire_flow_transformation is ----------------------------------------------------- -- this procedure compute the transformation of SCM (spacewire communication model). -- It generates a DAG system (Result) from the design system (Sys). -- It includes 4 steps : ----------------------------------------------------- -- 1- compute_source_destination_task -- 2- compute_spw_source_destination_task_position -- 3- generate_links_spw -- 4- flow_to_task_spw ----------------------------------------------------- procedure compute_spacewire_transformation (sys : in system; a_network : in spacewire_network_ptr; result : out system); ----------------------------------------------------- -- This procedure compute DAG system (Result) from attributes of Sys (input model) following -- the transformation of SCM (spacewire communication model). -- In this procedure, we must provide : -- destination_tasks and source_tasks : two tables which describe source and destination tasks of Sys -- A_link_matrice : matrice includes used links by message of Sys, -------- to compute A_link_matrice, we need compute task_position of source and destination tasks, then -------- we need to compute used links in the network by messages of Sys. ------------------------------------------------------ procedure flow_to_task_spw (my_processors : in processors_set; my_tasks : in tasks_set; my_messages : in messages_set; my_dependencies : in tasks_dependencies_ptr; a_link_mat : in links_mat; destination_tasks : in tasks_set; source_tasks : in tasks_set; a_network : in spacewire_network_ptr; result : in out system); end spacewire_flow_transformation;