30
Model-Based Design and SDR Fabio Ancona Sundance Italia SRL CEO – Sales Director

SDR Wireless Symposium Bilbao Nov05

Embed Size (px)

DESCRIPTION

Software Defined Radio

Citation preview

Page 1: SDR Wireless Symposium Bilbao Nov05

Model-Based Design and SDR

Fabio Ancona Sundance Italia SRL

CEO – Sales Director

Page 2: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

Model-Based Design

Designing complex systems needs new design methodologies:– Binary coding.– Assembly coding.– C programming.– Model-Based Designing.

Page 3: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

Aim of Model-Based Design

Aim of Model-Based Design methodology is:– Simplify design entry.

Graphical design entry. Hierarchical system design.

– Design reuse: Design library. Sharing designs.

Page 4: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

Model-Based Design tools

Properties of a good Model-Based Design tool:– Easy design entry.– Design simulation.– Code generation.– Testing on real hardware.

Page 5: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

Easy design entry

Easy design entry helps to reduce the system design time.

The design entry tool should be:– Graphical.– Library for different functions.– Library for hardware resources.

Page 6: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

Design simulation

Simulation helps to find error and bugs in the early stages of design entry.

The simulation should be:– Accurate.– Target processor specifications.– Simple and fast.

Page 7: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

Code generation

Model to C source code. Generated code should be:

– Optimized.– Suitable for embedded systems.– Be fast and without user intervention.– Provide tools to generate downloadable

application from generated source code.

Page 8: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

Testing

Testing generated code on target hardware. Hardware In the Loop (HIL) testing.

– Designed system runs on target hardware.– Workstation send test vectors to system under

test.– Output of system under test is analyzed by

workstation.

Page 9: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

Model-Based Design tools

Simulink/Matlab (The MathWorks Inc) LabView (National Instruments)

– Suitable for test and measurement design.– Limited capability for embedded system

development VEE (Agilent)

– Suitable for developing test and measurement systems.

– No code generation capability.

Page 10: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

Simulink/Matlab

Suitable for number crunching systems such as SDR.

Large selection of code generation targets.– SMT6050 : targeting Sundance DSP modules.

code optimization options. HIL testing (SMT6050)

Page 11: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

Simulink + SMT6050

Simulink (The MathWorks Inc)– Design Entry

SMT6050 (Sundance)– Code generation compatible with Sundance DSP

modules.

Page 12: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

Simulink

Interactive graphical user interface for system design.

Simulating designed system. Extensive and expandable libraries of

predefined blocks.

Page 13: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

SMT6050

Code generator for Simulink – Generate optimized, embeddable C source code

targeting Sundance DSP modules.– Add blocks representing hardware resources

(input/output, ADC, DAC).– Generate code for HIL testing.

Page 14: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

SDR design

Purpose:– To demonstrate how self sufficient code could be

generated using Simulink + SMT6050 System

– FM3TR reference waveform modulator/demodulator.

– Design– Simulation– Code generation– HIL testing

Page 15: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

FM3TR

Multi-band, Multi-waveform, Modular, Tactical Radio (FM3TR) waveform.

A reference waveform for SDR Forum consideration. – Provides the SDR Forum and its members a non-

proprietary, complex narrowband frequency-hopping waveform for implementation as a common test and demonstration tool. There are a number of systems [US, UK, GE, FR] that have already implemented and successfully demonstrated interoperability using this test waveform.

Page 16: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

FM3TR

Frequency range: 30-400KHz Channel spacing: 25kHz Modulation type: CPFSK Modulation rate: 25kbps Frequency hopping - 250-500 hops/second Framing, packetization 16kbps CVSD Voice coder Data channel with Reed-Solomon Coding

Page 17: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

FM3TR modulator/demodulator

Implemented and simulated in Simulink. Test bench.

Page 18: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

FM3TR modulator

Modulate the incoming signal according to FM3TR standard.

Page 19: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

FM3TR Demodulator

Compatible with developed modulator.

Page 20: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

Hardware

Sundance SDR kit.– TMS320C6416 running at 1GHz.– 2 ADC sampling rate up to 105 MHz.– 2 DAC sampling rate up to 400 MHz.– PCI interface for high speed data communication

with PC.

Page 21: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

Code generation (SMT6050)

Targeted Sundance SDR kit.– Building all of the required library automatically.

Libraries were compiled and linked using the specified complier and linker switches.

– All required files was generated. C source files. Linker command file. Make file. Batch file.

Page 22: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

HIL testing

All of the code for HIL testing is generated automatically– Communicating with host.– Synchronization.

Data flow synchronization.

Page 23: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

HIL testing FM3TR

Modulator/demodulator runs on DSP.– Code for Modulator/Demodulator generated.

Test bench runs on host.– New test bench model is created.

Page 24: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

FM3TR code generation

Modulator/demodulator dragged and drops to a new model.

Host communication blocks added into it.

Page 25: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

HIL test bench

Modulator/demodulator subsystems is replaced by SMT310 block.

Page 26: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

HIL testing

Generated application from modulator/ demodulator was loaded into DSP.

Test bench ran on host. The validity of generated code was proved.

Page 27: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

Generated code:

Generated code is fully documented:– Comment on source code.– Code generation report with a hyperlink from

Simulink block to the generated code.

Page 28: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

“Is code good ?”

Yes, automatically generated code is good from many perspectives:– speed– memory utilization– reliability– optimization options– one can incorporate legacy/custom code …– …

Page 29: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

Conclusion

The next innovation in system design is Model-Based Design.

An effective Model-Based Design can reduce the development time.

HIL testing is a suitable technique for testing generated code.

Simulink + SMT6050 is an effective combination for developing SDR systems using Model-Based Design Technique.– Generate code targeted Sundance SDR modules.– Generate all codes for HIL testing.

Page 30: SDR Wireless Symposium Bilbao Nov05

www.sundance.com

Questions