definition of embedded software using the waveform description language,

26
1 P6957-25-013 Racal Research A Thomson-CSF Racal Company Definition of Embedded Software using the Waveform Description Language, E.D.Willink, Racal Research Limited, [email protected], Software Defined Radio Forum, 12th September 2000, UK Programmable Digital Radio (PDR) Phase 1, Waveform Description Language (WDL) programme (DERA contract CU009-0000002745) Raytheon, Communication Systems Division, Fort Wayne, Indiana, Racal, Racal Research Limited, England

Upload: miriam-love

Post on 30-Dec-2015

37 views

Category:

Documents


0 download

DESCRIPTION

Definition of Embedded Software using the Waveform Description Language,. E.D.Willink, Racal Research Limited, [email protected], Software Defined Radio Forum, 12th September 2000, UK Programmable Digital Radio (PDR) Phase 1, Waveform Description Language (WDL) programme - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Definition of Embedded Software using the Waveform Description Language,

1P6957-25-013

Racal Research

A Thomson-CSF Racal Company

Definition of Embedded Software using the Waveform Description Language,

E.D.Willink, Racal Research Limited,[email protected],

Software Defined Radio Forum,12th September 2000,

UK Programmable Digital Radio (PDR) Phase 1,

Waveform Description Language (WDL) programme

(DERA contract CU009-0000002745)

Raytheon, Communication Systems Division, Fort Wayne, Indiana,

Racal, Racal Research Limited, England

Page 2: Definition of Embedded Software using the Waveform Description Language,

2P6957-25-013

Racal Research

A Thomson-CSF Racal Company

Introduction

• Specifications• Examples• Architectural Mapping (JTRS)• Summary

Page 3: Definition of Embedded Software using the Waveform Description Language,

3P6957-25-013

Racal Research

A Thomson-CSF Racal Company

The SDRF Software Architecture

Installer

CFServicesLogger

Timer

DomainManager

FileManager

ResourceManager

Factory

Access

Link

registerswith 1..*

oversees1

accessesSWfiles via

1

knows whatSWis availablevia

1..*

loads core&non-core1..*

detects &reports

1

1

creates1..*

1

requestsresources

of1..*

ModemAdapter

provides

LifeCycle

MessageRegistration

Message

aretypes

guides start-up&teardownvia

sets up virtualpathdestinations

via1..*

File stores &retrieves

0..*

basesallowableconfigurations

on 1..*

aretypesof

Executable SW

DomainProfile

1

1 1

Modem Network

UtilityRF

HostAdapter

AudioSerialEthernet

GPSModem

GPLRF KeyFill

Crypto

SecurityAdapter

Security

application

decryptsCTfor1..*

sendsPT to

1

decryptsPT for 1..*

1 sendsCT to

1..*

controlsradiovia

1

acts onC2 for

Bridge Router

1..*

routesto/from1..*

bridgesto/from 1..*

translatesprotocols

for 1

11

1translatesprotocols

for

1..* interceptsCTto/from

1

111

1implementsModem API

for

1 1

RFAPI

analog

1..*

acts onBB / IF/complex

for1..*

1acts onA/D,D/A for

1implementsInfosec API

for

1interceptsPT

to/from

SignalGen./Antenna

of radio

Resource

FileSystem

0..*

1..*

1

resources

1..*1..*

HWDevice

providesservices

for1

1..*

Waveformprovidesservices

for

providesaccessto

1 1 1

1

1

1..*

1..*

1

Gateway

Repeater

retransmitssignalsof

1

1

StateManagement

1..*loads&unloads

providesservicesfor

0..*

1

1..* sets/getsResource

statesvia

1

1

Core Framework(CF)Commercial Off-the-Shelf

(COTS)

Non-Core (Radio)Applications

OE

http://www.sdrforum.org/MTGS/mtg_19_jun00/tech_comm_seattle.ppt slide 20

Page 4: Definition of Embedded Software using the Waveform Description Language,

4P6957-25-013

Racal Research

A Thomson-CSF Racal Company

Contrasting/Complementary approach

• Implementation– How it can be done

• Specification– What needs to be done

Waveform Definition Language (WDL)– one specification– many alternate implementations

Page 5: Definition of Embedded Software using the Waveform Description Language,

5P6957-25-013

Racal Research

A Thomson-CSF Racal Company

Specification of Systems and Subsystems

• subsystems exist at many scales– international/national/regional/local/internal phone network– cabinet/rack/module/board/component equipment

• CORBA components support two scales– inside– outside

• WDL– same approach for many scales– specify without implementing– refine specification into an implementation

Page 6: Definition of Embedded Software using the Waveform Description Language,

6P6957-25-013

Racal Research

A Thomson-CSF Racal Company

Specification of Communication

• High level systems– sporadic control events

• Low level systems– intensive calculation– ‘continuous’ communication

• WDL– sporadic and continuous flows are supported– continuous and discrete time are interchangeable

Page 7: Definition of Embedded Software using the Waveform Description Language,

7P6957-25-013

Racal Research

A Thomson-CSF Racal Company

Complete specification (Low Level)

• Amplifier relatively easy– vout = 10 * vin

• In practice need constraints– frequency < 1 GHz– load impedance 50Ω ± 10%– third harmonic ...

• WDL– mathematical definition of the ideal behaviour– constraints to bound permitted behaviour

Page 8: Definition of Embedded Software using the Waveform Description Language,

8P6957-25-013

Racal Research

A Thomson-CSF Racal Company

Complete specification (High Level)• System specifications

– large, unreadable

• Informal specification– omissions lead to ambiguities– duplications lead to contradictions

• Formal specification– good in principle – impractical for real applications– unapproachable for most practitioners

• WDL– pragmatic compromise

* formalisable, modular, familiar, practical, acceptable

Page 9: Definition of Embedded Software using the Waveform Description Language,

9P6957-25-013

Racal Research

A Thomson-CSF Racal Company

Specification in WDL• Progressive decomposition

– systems - subsystems - components - building blocks

• Single hierarchical perspective– clear readable specification– removes ambiguities, avoids contradictions

Implementation in WDL• Progressive refinement

– further decomposition– practical constraints– recomposition

• Minimal refinement– executable reference model

Page 10: Definition of Embedded Software using the Waveform Description Language,

10P6957-25-013

Racal Research

A Thomson-CSF Racal Company

WDL Transformations

W D LC om pile rs

S chem aticE d ito rs

D ecom position

R efinem entText

E d ito rs R efiner

C hecker

W D L P roducts, W aveform B und le

W D L P rogram

W D L S pecifica tion

Page 11: Definition of Embedded Software using the Waveform Description Language,

11P6957-25-013

Racal Research

A Thomson-CSF Racal Company

WDLRefinement

W D L P rogram

S ponsor

A bstract S pecifica tionlayerscodersm odula tors

Im plem enter

A ctua l S pecifica tiona lgorithm sparam etersb it-tru th

R eference M ode lprecis ionsacqu is ition a lgorithm s

S ystem D esignfilte r characteris ticsacqu is ition a lgorithm sm in im um precis ions

S ystem C onfigura tionfilte r characteris ticsdecim ation ra tios

H ardware M appingpartition inglib rary m atch ing

C om ponent C onfigura tionparam eterisa tionactua l p recis ionsb it-tru thW D L S pecifica tion

R eference M ode l P roduct

Page 12: Definition of Embedded Software using the Waveform Description Language,

12P6957-25-013

Racal Research

A Thomson-CSF Racal Company

Refinement

• Abstract WDL specification (unimplementable)• Waveform sponsor refines to support

– a reference model

• System designers refine to support– hardware partitioning– analogue/digital partitioning– concrete filter designs– specific acquisition strategies– apportion implementation loss budgets

• Implementers refine to– exploit pre-existing object libraries– compensate for compiler limitations

Page 13: Definition of Embedded Software using the Waveform Description Language,

13P6957-25-013

Racal Research

A Thomson-CSF Racal Company

Hierarchical decomposition

• Entity– module of specified behaviour– not necessarily an implementation object

• Message– user defined data types (and array shapes)– four scheduling flow types

• Hierarchical Diagrams– message flow diagrams– statecharts

• Leaf specification– mathematical definition

Page 14: Definition of Embedded Software using the Waveform Description Language,

14P6957-25-013

Racal Research

A Thomson-CSF Racal Company

(UML) Statechart

StateChartEntityeventguard

out State1

State2

event[guard]/out(...)

WDL extension to UML:state behaviour may be a

message flow

Page 15: Definition of Embedded Software using the Waveform Description Language,

15P6957-25-013

Racal Research

A Thomson-CSF Racal Company

Message Flow Diagram

UML Collaboration diagramexternal scheduling, connection points have no semantics

WDL Message Flow Diagrameach arc has defined data and flow type, connecting at ports

each entity is self-scheduling - rendez-vous of relevant ports

external ports to define hierarchy

Entity2in outin1

outin2

Entity1in1in2

out

M essageFlowEntityin1in2

out

Page 16: Definition of Embedded Software using the Waveform Description Language,

16P6957-25-013

Racal Research

A Thomson-CSF Racal Company

FM3TR Protocol Layers

Hcinwk

d lc

m ac

ph l

vo ice_ in

data_ in

data_out

antennavo ice_out

M actx_ from _dlchcirx_ from _ph lcarrie r_detect

rx_ to_d lc

tx_ to_ph l

Phltxhci

vo ice_ in

rxcarrie r_detect

an tennavo ice_out

Dlcin_ from _nwkhcirx_ from _m ac

out_ to_nwk

tx_ to_m ac

Nwkdata_ inhciin_ from _dlc

data_out

out_ to_d lc

Fm 3trdata_ invo ice_ in

data_outvo ice_out

antenna

Application

Presentation

Session

Transport

Network

Data Link

Physical

OSI layers

Page 17: Definition of Embedded Software using the Waveform Description Language,

17P6957-25-013

Racal Research

A Thomson-CSF Racal Company

Hop Modulator

tuningtim e

risetim e

falltim e

inform ationtim e

HopM odulatorhopconfig

m odula tion

IN FO R M A T IO N

m odula tionconfighop

In foM odulatorconfighop

m odula tion

TU N IN G _T IM E

m odula tionconfighop

G uardM odulatorconfighop

m odula tion

R IS E _T IM E

m odula tionconfighop

RiseM odulatorconfighop

m odula tion

FA LL_T IM E

m odula tionconfighop

FallM odulatorconfighop

m odula tion

afte r(config .tun ing_tim e)

a fte r(config .rise_ tim e)

exit

a fte r(config .fa ll_ tim e)

Page 18: Definition of Embedded Software using the Waveform Description Language,

18P6957-25-013

Racal Research

A Thomson-CSF Racal Company

Hop Rise Time

RiseM odulatorconfighop

m odula tion

m odula tion

F(t)

am p

out

Constructoram plitudefrequency_sh iftfrequency

m odula tionConstant

sh ift

ou t

Constant

freq

out

constraint: amp.out = range{

minimum 0;value 0.5 * (1 - cos(2*pi*t/config.rise_time));

maximum 1;};

constraint: shift.out = 0;

constraint: freq.out = hop.frequency;

Page 19: Definition of Embedded Software using the Waveform Description Language,

19P6957-25-013

Racal Research

A Thomson-CSF Racal Company

Language for specification

• need expressions for– configuration constraints, state machine guards

• need statements for– state machine actions

• need types for– messages

need a language– implementation languages do not specify

– specification languages are unapproachable

– specification languages have unhelpful focus

– new language is new

Page 20: Definition of Embedded Software using the Waveform Description Language,

20P6957-25-013

Racal Research

A Thomson-CSF Racal Company

Specification

entity Subtractor{in minuend;in subtrahend;out difference;response minuend subtrahend{specification{difference(minuend - subtrahend);

};};

};

Polymorphic– type, shape, flow, language

Subtractorm inuendsubtrahend

d iffe rence

Page 21: Definition of Embedded Software using the Waveform Description Language,

21P6957-25-013

Racal Research

A Thomson-CSF Racal Company

Hardware Mapping

• Bespoke hardware– direct compilation

* one executable per processor

• ‘Virtual’ hardware - software radio– identify components and messages– indirect compilation

* one executable per component per platform

* one interface declaration per message

* configuration profiles per application

Page 22: Definition of Embedded Software using the Waveform Description Language,

22P6957-25-013

Racal Research

A Thomson-CSF Racal Company

FM3TR Layers

asJTRS

Componentsand

MessagesFm 3trH ci

Fm 3trM odem

Fm 3trL ink

Fm 3trN etworkHci

nwk

d lc

m ac

ph l

vo ice_ in

data_ in data_out

antenna

vo ice_out

M actx_ from _dlchcirx_ from _phlcarrie r_detect

rx_ to_d lc

tx_ to_ph l

Phltxhci

vo ice_ in

rxcarrie r_detect

antennavo ice_out

Dlcin_ from _nwkhcirx_ from _m ac

out_ to_nwk

tx_ to_m ac

Nwkdata_ inhciin_ from _dlc

data_out

out_ to_d lc

D outD in

D toM

N toD

V outV in

H toP

H toM

H toD

H toN

D toN

M toD

Page 23: Definition of Embedded Software using the Waveform Description Language,

23P6957-25-013

Racal Research

A Thomson-CSF Racal Company

JTRS Mapping

Board S upport P ackageN etwork P ro toco l S tacks

Posix R TO S D SP E xecutive

B lackIN FO S ECAdapter

R edIN FO S EC

Adapter

IN FO S EC A lgorithm

Board S upport P ackageN etwork P ro toco l S tacks

Posix R TO S

C ++ C O R B AO R B andServices

C F C oreD om ainM anagerD eviceM anager

F ile ServicesLoggerT im er

D evice

Board S upport P ackageD SP E xecutive

B lack cPC I R ed cPC I

M odem B lack C ontro l P rocessor R ed C ontro l P rocessorIN FO S EC

Board S upport P ackageN etwork P ro toco l S tacks

Posix R TO S

C ++ C O R B AO R B andServices

C F C oreD om ainM anagerD eviceM anager

F ile ServicesLoggerT im er

D evice

Fm 3trH ci

Fm 3trN etwork

Fm 3trM odem .P hl.T ranS ec Fm 3trL inkFm 3trM odem .M acFm 3trM odem .P hl.nonTranSec

Fm 3trM odem

Page 24: Definition of Embedded Software using the Waveform Description Language,

24P6957-25-013

Racal Research

A Thomson-CSF Racal Company

WDL & JTRS Summary

• JTRS – a common radio architecture for waveform development– modelled after very successful PC paradigm– allows third party development of low cost applications

• WDL– efficient methodology for developing many waveforms– provides unambiguous specification– provides portable implementation

Page 25: Definition of Embedded Software using the Waveform Description Language,

25P6957-25-013

Racal Research

A Thomson-CSF Racal Company

Summary

• WDL specifies a determinate behaviour• Decomposition to manageable sub-specifications

• Refinement to support a reference model• Refinement to support product implementations

• Polymorphism to exploit generic libraries• Realistic scheduling models• Type-oriented code generation for flexibility

Page 26: Definition of Embedded Software using the Waveform Description Language,

26P6957-25-013

Racal Research

A Thomson-CSF Racal Company

Status

• Phase 1– Initial consideration of language concepts– Example decomposition of FM3TR (1 month)

* clearer

* many anomalies reported back

• Future– Better quality specifications

* sponsor provides reference model

– Semi-automated code generation* months rather than years