id 323c:a high performance compiler solution for … systems, inc. id 323c:a high performance...

32
IAR Systems, Inc. ID 323C: A High Performance Compiler Solution for the RX Platform Shawn A. Prestridge Senior Field Applications Engineer 12 October 2010 Version: 1.2

Upload: vancong

Post on 09-Apr-2018

214 views

Category:

Documents


2 download

TRANSCRIPT

IAR Systems, Inc.

ID 323C: A High Performance Compiler Solution for the RX Platform

Shawn A. Prestridge

Senior Field Applications Engineer

12 October 2010

Version: 1.2

2 © 2010 Renesas Electronics America Inc. All rights reserved.

2

Shawn A. Prestridge

� Senior Field Applications Engineer

� Responsible for Embedded Workbench training

� Develops applications for many different boards

� Develops applications for middleware such as:

– RTOS

– GUI

– Projects as examples and for customers

PREVIOUS EXPERIENCE:

� Embedded hardware/software engineer for Texas

instruments.

� Contractual-based development for Ministry of Software

� Degree work from Southern Methodist University: BSEE, BS

Mathematics, MSEE, MS Software Engineering, PhD in EE

3 © 2010 Renesas Electronics America Inc. All rights reserved.

Renesas Technology and Solution Portfolio

Microcontrollers

& Microprocessors#1 Market share

worldwide *

Analog and

Power Devices#1 Market share

in low-voltage

MOSFET**

Solutions

for

Innovation

Solutions

for

InnovationASIC, ASSP

& MemoryAdvanced and

proven technologies* MCU: 31% revenue basis from Gartner

"Semiconductor

Applications Worldwide

Annual Market Share:

Database" 25

March 2010

** Power MOSFET: 17.1%

on unit basis from

Marketing Eye 2009

(17.1% on unit basis).

4 © 2010 Renesas Electronics America Inc. All rights reserved.

4

Renesas Technology and Solution Portfolio

Microcontrollers

& Microprocessors#1 Market share

worldwide *

Analog and

Power Devices#1 Market share

in low-voltage

MOSFET**

ASIC, ASSP

& MemoryAdvanced and

proven technologies* MCU: 31% revenue basis from Gartner

"Semiconductor

Applications Worldwide

Annual Market Share:

Database" 25

March 2010

** Power MOSFET: 17.1%

on unit basis from

Marketing Eye 2009

(17.1% on unit basis).

Solutions

for

Innovation

Solutions

for

Innovation

5 © 2010 Renesas Electronics America Inc. All rights reserved.

5

Microcontroller and Microprocessor Line-up

Superscalar, MMU, Multimedia� Up to 1200 DMIPS, 45, 65 & 90nm process

� Video and audio processing on Linux

� Server, Industrial & Automotive

� Up to 500 DMIPS, 150 & 90nm process

� 600uA/MHz, 1.5 uA standby

� Medical, Automotive & Industrial

� Legacy Cores

� Next-generation migration to RX

High Performance CPU, FPU, DSC

Embedded Security

� Up to 10 DMIPS, 130nm process

� 350 uA/MHz, 1uA standby

� Capacitive touch

� Up to 25 DMIPS, 150nm process

� 190 uA/MHz, 0.3uA standby

� Application-specific integration

� Up to 25 DMIPS, 180, 90nm process

� 1mA/MHz, 100uA standby

� Crypto engine, Hardware security

� Up to 165 DMIPS, 90nm process

� 500uA/MHz, 2.5 uA standby

� Ethernet, CAN, USB, Motor Control, TFT Display

High Performance CPU, Low Power

Ultra Low PowerGeneral Purpose

6 © 2010 Renesas Electronics America Inc. All rights reserved.

6

Microcontroller and Microprocessor Line-up

Superscalar, MMU, Multimedia� Up to 1200 DMIPS, 45, 65 & 90nm process

� Video and audio processing on Linux

� Server, Industrial & Automotive

� Up to 500 DMIPS, 150 & 90nm process

� 600uA/MHz, 1.5 uA standby

� Medical, Automotive & Industrial

� Legacy Cores

� Next-generation migration to RX

High Performance CPU, FPU, DSC

Embedded Security

� Up to 10 DMIPS, 130nm process

� 350 uA/MHz, 1uA standby

� Capacitive touch

� Up to 25 DMIPS, 150nm process

� 190 uA/MHz, 0.3uA standby

� Application-specific integration

� Up to 25 DMIPS, 180, 90nm process

� 1mA/MHz, 100uA standby

� Crypto engine, Hardware security

� Up to 165 DMIPS, 90nm process

� 500uA/MHz, 2.5 uA standby

� Ethernet, CAN, USB, Motor Control, TFT Display

High Performance CPU, Low Power

Ultra Low PowerGeneral Purpose

RX

Ethernet, CAN, USB, UART, SPI, IIC

7 © 2010 Renesas Electronics America Inc. All rights reserved.

7

Our Development Solution

IAR Systems, Inc. is a leading provider of development

solutions that provides you with tight code and impeccable

support that is both timely and accurate.

8 © 2010 Renesas Electronics America Inc. All rights reserved.

8

Agenda

� Overview of cooperation between Renesas and IAR

� Overview of the IAR Embedded Workbench solution

� Benchmarks of IAR Embedded Workbench vs. Renesas HEW

� Debugger support

� RTOS awareness

� visualState integration

� MISRA C Checking and Power Debugging

� Customer support resources

� Demonstrations

� Q&A

9 © 2010 Renesas Electronics America Inc. All rights reserved.

9

Key Takeaways

By the end of this session you will be able to:

� Identify the strengths of the Embedded Workbench

� Learn the plug-in capabilities of the Embedded Workbench

� Know where to get a copy of the Embedded Workbench

� How to use the Embedded Workbench with easy-to-use

example projects

10 © 2010 Renesas Electronics America Inc. All rights reserved.

10

Support for Renesas Targets

Supporting Renesas

Architectural Evolution

Support for Renesas Targets

Supporting Renesas

Architectural Evolution

11 © 2010 Renesas Electronics America Inc. All rights reserved.

IAR Embedded Workbench at a Glance

12 © 2010 Renesas Electronics America Inc. All rights reserved.

IAR Embedded Workbench for RX

13 © 2010 Renesas Electronics America Inc. All rights reserved.

Code Density

We took some real customer

applications and tested with

HEW and with IAR

Embedded Workbench.

On the next slide you can

see the results.

After all, it’s not knowing how the instruction set is implemented

in silicon that counts, it’s knowing how to get there from the lines

of C or C++ you write in the shortest and fastest way.

That is what we have been doing for more than 25 years.

14 © 2010 Renesas Electronics America Inc. All rights reserved.

14

Compiler Benchmark

Code size by IAR Embedded Workbench in percent of HEW

RX code size for real customer applications.

15 © 2010 Renesas Electronics America Inc. All rights reserved.

Benchmark details

Name Description

decrypt Functions to descramble CSS

encrypted DVD content.

spirometer Spirometer. Device that determines

how well the lungs receive, hold,

and utilize air, to monitor a lung

disease.

modeit Embedded web server

bt_stack Bluetooth stack

temp_display Temperature monitoring device

car_navig Car navigation system

generator Remote monitoring and operation

for generators and engines.

Engine_contr Turbogenerator technology,

"turbocompounding"

RX tool benchmark

This is a code size test on real customer applications where the size of linked code + constants has been compared.

The test was performed with the following tools:

IAR EWRX v1.12Options: -e -Ohz --double=32 --code_model=f --data_model=n --align_func=1 --endian l --core RX610 --mfc

Note: The option -g* was used for the XLINK linker to disable the ability to remove un-referenced segment parts.

Renesas RX v1_0Options: -cpu=rx600 -patch=rx610 -fpu -optimize=max -size -goptimizeLinker: -noprelink –optimize

16 © 2010 Renesas Electronics America Inc. All rights reserved.

IAR C-SPY On-chip Debug Support

17 © 2010 Renesas Electronics America Inc. All rights reserved.

IAR C-SPY Debugger RTOS Awareness

RTOS OverviewTask List

18 © 2010 Renesas Electronics America Inc. All rights reserved.

IAR visualSTATE Debug Integration

MISRA-C checking

� The Embedded Workbench has the ability to check code using MISRA-C rules

� MISRA stands for the Motor Industry Software Reliability Association, a consortium out of the UK

� MISRA defines over 100 rules to improve the safety and reliability of embedded software

� Very popular in the automotive industry and gaining traction in other markets

� It can check for both the 1999 and 2004 rulesets and will soon have support for the 2008 ruleset

� Checking can be done at the file or project level

� Different rules can be selected for checking

� A compliance matrix can be generate for MISRA certification

19 © 2010 Renesas Electronics America Inc. All rights reserved.

Power debugging

� Allows you to correlate power consumption and program execution to optimize/minimize required power

20 © 2010 Renesas Electronics America Inc. All rights reserved.

Timeline Power Debugging

21 © 2010 Renesas Electronics America Inc. All rights reserved.

Power debugging features

� Visualization with Power graph in Timeline window, which provides a visual view of the applications power profile

� Statistical power profiling; energy percentage, average, min and max values are provide in the Function Profiler window, which identifies the functions that consume most power in the application.

� Correlation to program counter and by that with the running application – double-click in the Power graph to find the corresponding source code.

� Power log window provides textual log of all power samples together with timestamp and program counter.

22 © 2010 Renesas Electronics America Inc. All rights reserved.

J-Link Ultra for Power Debugging

� USB high speed (480 Mbit/s)

� No power supply required, powered through USB

� Power sampling at 1mA resolution

� Connects via RX Adapter which is available for J-Link, J-Link Pro, J-Link Ultra, J-Link EDU and any other licensed J-Link compatible emulator.

23 © 2010 Renesas Electronics America Inc. All rights reserved.

Power sampling performance

� J-Link

� resolution: 7mA

� accuracy: ~30mA

� J-Link Ultra

� resolution: 1mA

� accuracy: a few mA

The sampling frequency is currently up to 200Hz.(API change coming that will increase this number)

If you would like to be updated on theprogress of the Power Debugging project at IAR Systems, you

can find more information here:

http://www.iar.com/power/

24 © 2010 Renesas Electronics America Inc. All rights reserved.

25 © 2010 Renesas Electronics America Inc. All rights reserved.

Reliability

26 © 2010 Renesas Electronics America Inc. All rights reserved.

Customer Support

27 © 2010 Renesas Electronics America Inc. All rights reserved.

A Flying Start

28 © 2010 Renesas Electronics America Inc. All rights reserved.

Try It!

29 © 2010 Renesas Electronics America Inc. All rights reserved.

29

More info at www.iar.com/ewrx

2010-03-02

IAR Embedded Workbench for Renesas SuperHCompletely new product supporting SH-2A and SH2A-FPU

30 © 2010 Renesas Electronics America Inc. All rights reserved.

30

Questions?

© 2010 Renesas Electronics America Inc. All rights reserved.

3131

Thank You!

Renesas Electronics America Inc.