component based
play

Component Based Software Engineering approach on DSP Targets - PowerPoint PPT Presentation

Component Based Software Engineering approach on DSP Targets Agenda 2 / 2 / Motivations Context LwCCM/MyCCM GPP - DSP unified approach (EULER) Framework optimizations for DSP Benchmarks Perspectives Conclusion 2011/05/20 Motivations


  1. Component Based Software Engineering approach on DSP Targets

  2. Agenda 2 / 2 / Motivations Context LwCCM/MyCCM GPP - DSP unified approach (EULER) Framework optimizations for DSP Benchmarks Perspectives Conclusion 2011/05/20

  3. Motivations 3 / 3 / DSP applications Lower MAC / PHY (algos, reconfigurations, servo- control,…) Software constraints/challenges Increasing systems complexity, portability, reuse level Software architecture efforts needed on DSP Separation of concern between technical and business Focus on a global SDR approach Enrich the HW processor approach of the SCA IDL on GPP, MHAL Comm on DSP Need of a CBSE tool-aided approach 2011/05/20 Experiment a THALES framework MyCCM

  4. Context 4 / 4 / 2011/05/20 THALES is having a unique approach combining the EU R&T agenda with research for WF Portability

  5. MyCCM : M AKE Y OUR C OMPONENT C ONTAINER M ODEL 5 / 5 / A THALES framework helping architects and developers to develop CBSE Distributed Real-Time Embedded applications MyCCM = implementation of OMG Lightweight CCM Component Interface Components OFFERED SERVICES REQUIRED SERVICES encapsulate Facets Receptacles Business application Code business logic Event Event CCM container Sinks Sources N.B: MyCCM does not Attributes postulate Components interact via ports usage of Provided interfaces : facets CORBA Required connection points : receptacles Event sinks & sources 2011/05/20 Components are described in IDL3 language Our works in EULER leveraged MyCCM background towards SCA based DSP extensions

  6. MyCCM Development Process 6 / 6 / 1 MAKE YOUR DESIGN Component specification in IDL3: interfaces, ports Structural & collaboration aspects (deployment) Real-Time tuning/constraints (deployment) SCA resources generated by CCM component assembly CF::Resource (option) CF::Port input port Business Business Code Code 2011/05/20 LwCC CCM container LwCC CCM container SCA Container

  7. MyCCM Development Process 7 / 7 / 2 GENERATE MyCCM 1 MAKE YOUR DESIGN Generation of containers for various connectivity choices CORBA not mandatory Generation of implementation template for Business Code Generation of mirror components for Testing purpose Generation of SCA deployment XML descriptors 2011/05/20

  8. MyCCM Development Process 8 / 8 / /* * Created on: dd-mm-yyyy 2 GENERATE * Author: xxxxx */ #include "layers/mac/MACSupervision/MACSupervisionImpl.h" #include <assert.h> #include <log4cxx/logger.h> namespace hdrn { MyCCM namespace mac { MACSupervisionImpl::SupervisorImpl::SupervisorImpl( MACSupervisionImpl& component) { //INSERT YOUR BUSINESS CODE } } } 1 MAKE YOUR DESIGN DEVELOP YOUR 3 BUSINESS CODE MyCCM 4 BUILD 5 DEPLOY 2011/05/20

  9. Typical SCA 2.2.2 architecture 9 / 9 / Dsp Application CF::Resource CF::Resource c2 c1 Mhal Legend SCA c3 Device resource Proprietary SCA implementation model container MHAL MHAL messaging Pushpacket ports managment (IRS : CF::Resource payload transformation/routing) SCA In port ports Core Framework Out port CORBA SCA links MHAL Com GIOP(IIOP-MQIOP) Linux µcOSII SCA OE Issues SCA resource interfaced to DSP through MHAL ports rather than functional ports 2011/05/20 Hand-made transformation of « would be » IDL to pushpackets (byte payload) Limitation to « oneway » interactions

  10. Unified GPP-DSP approach 10 / 10 / Motivation: meeting EULER portability requirements 1 WiMax-like waveform ported onto 3 platforms IP IP PHY MAC XCVR SERVICES SECURI URITY SERVICES GPP: Intel x86 Linux 2.6 GPP: PowerQuick II Linux 2.6 GPP: MPC8541 INTEGRITY DSP: TI C6414 µcOSII DSP: TI C6416 DSPBIOS Native Test Prismtech platform THALES platform based on Spectrum SDR4000 Environment based on THALES IPBB 2011/05/20 MHAL Comm based CORBA everywhere

  11. Native Test Environment 11 / 11 / CF::Resource Legend SCA container SCA container SCA resource CCM Component -modem code SCA container - legacy code OSSIE Core Framework MyCCM CF::Resource SCA OmniORB In port ports Out port GIOP(IIOP) SCA connections Linux 2011/05/20 PC: Intel x86 Linux 2.6

  12. Porting on Prismtech platform 12 / 12 / CF::Resource Legend SCA container SCA container SCA resource CCM Component -modem code SCA container - legacy code Openfusion Core Framework MyCCM CF::Resource SCA In port ports Openfusion e*ORB Out port GIOP(IIOP - MQIOP) QuicComm SCA connections Integrity DSP/BIOS 2011/05/20 GPP: MPC8541 INTEGRITY DSP: TI C6416 DSPBIOS SDR4000

  13. Porting on THALES platform : approach 13 / 13 / HOW TO MINIMIZE PORTABLITY UNIFIED IDL DESCRIPTION LEVEL EFFORTS ? Legend CF::Resource SCA SCA container container SCA resource CCM Component functional -modem code ports - legacy code SCA container THALES Core Framework ISOLATES COMPONENT DEVELOPERS CF::Resource PrismTech CORBA FROM GPP-DSP COMMUNICATION ISSUES SCA In port ports Out port MHAL Comm GIOP(IIOP-MQIOP) SCA connections Linux µcOSII Specific connections GPP: PowerQuick II Linux 2.6 2011/05/20 DSP: TI C6414 µcOSII IPBB

  14. Porting on THALES platform : solution 14 / 14 / IDL/IDL3 component description MyCCM generates 1 Resource container + 1 GPP proxy CF::Resource Legend SCA SCA container Proxy container SCA resource CCM Component -modem code - legacy code Proxy connectPort SCA container CF::Resource THALES Core Framework MyCCM SCA In port ports PrismTech CORBA PrismTech CORBA THALES Broker Out port SCA connections MHAL Comm GIOP(IIOP-MQIOP) Specific Linux µcOSII connections 2011/05/20 GPP: PowerQuick II Linux 2.6 DSP: TI C6414 µcOSII IPBB

  15. Unified approach eases up porting 15 / 15 / NO MANUAL CODE CORRECTION FOR WF COMPONENTS FROM ONE PLATFORM TO ANOTHER GPP: Intel x86 Linux 2.6 GPP: PowerQuick II Linux 2.6 GPP: MPC8541 INTEGRITY DSP: TI C6414 µcOSII DSP: TI C6416 DSPBIOS Native Test IPBB SDR4000 Environment 2011/05/20

  16. Framework Optimisations for DSP 16 / 16 / Definition of a lightened IDL profile Enrichment of MyCCM framework Specification of threading properties (active object) Support various memory allocators for interactions Threaded Ports described in Memo mory Allocators Method described in deployment Memory Allocators Object model deployment model « creates » Heap 1 B Heap2 A « creates » Partition1 Partition2 Thread 1 D C Thread 2 Global « creates » Heap Thread3 Generated SCA Resource Threaded Ports Memory footprint reduction Structural modifications of the container architecture inheritances, conditional compilation, optimized IDL/C++ generation 2011/05/20 Footprint reduced by a factor of 5 from initial framework

  17. Benchmarks 17 / 17 / Memory Footprint (Texas C6416 – 600Mhz - 1Mbytes memory) DSP Framework ~ 50Kbytes ( 5% on C6416) MyCCM Runtime, Broker, MHAL Comm, POSIX subset, Allocators, … Components Containers portIn1 portOut1 All sizes in kBytes oneway void m1(in short, oneway void m1(in string); Reference Enriched in sType, oneway void m2 ( in payload); No threading 1,7 1,8 in long); REFERENCE Threading support 2,8 4,6 oneway void m2(in payload); COMPONENT Resource interface 5,1 6,2 ~20% reduction portIn2 Connections with GPP 8,5 9,7 on-going portOut2 TOTAL 18,1 22,3 short m1(); short m1(inout payload ) oneway void m2(in long, long m2(inout short ); in short); DSP internal memory 1000 kB BSP/RTOS 100 kB oneway void m1(in short, Framework 50 kB portIn1 in sType, in long); Per (complex) Resource 20 kB oneway void m2(in payload); Per additional internal Component 5 kB portOut1 long m3(in long, in short); oneway void m4 (in short); ENRICHED portIn2 COMPONENT TYPES portOut2 typedef sequence<char,1024> payload; typedef sequence<short,10> small_payload; portIn3 2011/05/20 struct sType{ short _p1; oneway void m1(in long); long p2; void m2(inout small_payload); small_payload p3; };

  18. Benchmarks: Communication Timings 18 / 18 / Texas Instruments C6416 – 600Mhz Co-located (No use of the middleware) For any connections within the DSP (up to inter-Resources) Direct call (Client and Server in the same thread): a few cycles Threaded Call - Active Object (Client & Server in separated threads, usage of message queues): a few µs – RTOS driven Remote calls (Use the middleware solution) For any connection to a GPP component Two ways call : 9 to 15 µs (deterministic allocation scheme) One way call : 4 to 10 µs (deterministic allocation scheme) Need to consider transport timings ex: ~80µs for HPI 16bits with 1024bytes payload with Linux/Xenomai (GPP) & µCOSII (DSP) on THALES PF Depends on memory allocator used for exchanges management (configuration parameter) 2011/05/20

  19. Perspectives 19 / 19 / Take full advantage of Model-Driven approach with MyCCM Early RT Analysis (e.g usage of OMG MARTE) Test Component generation Use of other CCM capabilities Support of Events (with publish/subscribe service) Support of additional interaction patterns (Connectors) Margins exploitable for further memory footprint optimizations Take advantage of ESSOR architecture and SCA Next evolutions ESSOR IDL profile for DSP & FPGA ESSOR MHAL Connectivity Optional elementary interfaces in CF::Resource 2011/05/20 Evaluate potential of full MHAL solutions

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend