Home
SH7080-Series E200F Emulator Application Note
Contents
1. De Fi C3 da i53 debug e200f system i M 6 0 8 2 7M pt EDE E E ae P E El bl B z xxi e la ib oris Li Source Add Onchip Event E dbsctc zz Clear the existing results E dodi ex eese cit before clicking on the Go resetprg c sbrk c 45 D0001056 button vecttbl c 46 0000105C c3 C source file 47 B sort cpp 48 00001062 amp p sam s a 0 3 tutorial cpp 49 00001066 p sam si a 1 3 Download modu 50 00001068 p sam sz a 2 Tutorial abs 51 00001064 p sam s3 a 3 3 63 Dependencies 52 D000106C p sam s4 a 4 E sbrk h 53 O000106E p sam s5 a 5 2 sort h 54 00001070 p sam s6 a 6 E stacksct h 55 00001072 E vecth 56 0000105 Click on this button to clear gt Channel Condition Result Chi AC ooo00000 Ch2 VS ooo00000 Ch3 BT oooo0000 ch4 I ooo00000 REJ06J0043 0100 Rev 1 00 2008 3 Page 21 of 30 SH7080 Series E200F Emulator E RE NI ESAS Performance Measurement 23 The program stops at line 52 where the breakpoint has been set and the Performance Analysis pane shows the results of performance analysis The Output pane shows the comment EVENT CONDITION 10 33 Tutorial High performance Embedded Workshop tutorial cpp SEE w File Edit View Project Build Debug Setup Tools Test Window Help er X Cg debug e200f system sessione200f system igi sf eL Ei SL EF amp OP CP
2. 12 While the E200F emulator is being connected the Connecting dialog box shown below is displayed Connecting Downloading E 2000F Program Downloading FPGA data filename aud 080 mot Downloading FPGA data filename tre z 080 e1 mot Downloading FPGA data filename evcont O86 mat Downloading FPGA data filename aud 080 mot Downloading FPGA data filename prf f080_ ce mat Downloading FPGA data filename tre 080_ ce mat PLL CLOCK 10 0 MHz Downloading firmware Firmware test Firmware test OF 13 After the connection has been established operations on the High performance Embedded Workshop screen become possible 5 Tutorial High performance Embedded Workshop Sele File Edit View Project Build Debug Setup Tools Test Window Help De HGS ssel H a BD BB E A fdu e200 system ssssione200 system JOM fe 08 m Bt m THRE APP Ss ER Ed RR zi i n 9 FF E E H Tutorial C source file 2 dbsct c i intprg c B resetprg c sbrk c vecttbl c H E C source file B sort cpp B tutorial cpp Download modu Tutorial abs Sy Dependencies sbrk h sort h stacksct h vecth Ce Jaa ol ot al at 2 2t 7 85 B Flash memory writing wory write end connecte 7 4 Build A Debug A FindinFiles1 FindinFiles2 Macro A Test Version Control Ft E2 E 4 Default1 desktop Once the E200F emulator is
3. Old directory SHew T oolssHienesassD ebugCemp sPlatfarm E Z CDF SSH 0805 eries Tutorial Mew directory D Ww arkS5pace T utanalE Z CDF SH 70605 anes Tutorial SH 7 8nsSeres Do vau want to continue opening this workspace Dont show this warning again gt Mo Cancel 5 If the Toolchain missing dialog box appears select the target project name and click on the OK button Toolchain missing Toolchain Henesas SuperH ASC engine Standard Toolchain version 9 0 0 0 is missing from the following project s Select projects for upgrade d Tutorial gt Ck DL e 6 If the Changing Toolchain Version dialog box appears select the desired toolchain version and click on the OK button Change Toolchain Version Toolchain name Renesas SuperH RISC engine Standard Curent wersion 9 0 0 0 Cancel CPU Family SuperH HISC engine Toolchain Renesas SuperH RISC engine Standard Toolchain build phases D ptLinker SH Assembler SH C C Compiler SH CC Library Generator REJ06J0043 0100 Rev 1 00 2008 3 Page 6 of 30 SH7080 Series E200F Emulator E RE N ESAS Performance Measurement 7 If the Change Toolchain Version Summary dialog box appears just click on the OK button Change Joolchain Version Summary 5 umrnatry Project name Tutorial Renesas SuperH RISC engine Standard Toolchain was upgraded 3 0 0 0 8 1 1 0 Standard Library Mode Mode opt
4. VS 00000483 00000022F 00000474 2l Flash memory writing F eI rues Yeu i wm EVENT CONDITION 1 for L bus Build A Debug 4 Find in Files 1 Find in Files 2 Macro A Test Version Control EVENT CONDITION 1 for L bus FE Ez E FA Default desktop Read write 28 66 Now the performance from the reset routine to function main is displayed Result of performance analysis AC number of cycles ld executed D 17069 H 000042AD Elapsed time Number of cycles ld executed x CPU clock period l 17 069 x 1 10 MHz 1 707 us For details on setting of the CPU clock frequency refer to step 10 of section 4 2 VS number of execution states D 1155 H 00000483 BT number of branch instructions D 559 H 0000022F number of executed instructions D 1146 H 0000047A REJ06J0043 0100 Rev 1 00 2008 3 Page 17 of 30 SH7080 Series E200F Emulator Performance Measurement SD Tutorial ie gt File Edit View Project Build Debug Setup Tools Test Window Help High performance Embedded Workshop tutorial cpp Deka 6G B o Ja ea 85 d EE id M lb W o T t zif 8l zt zl 8 iu P Ipe Mec El r x Tutorial a amp 3 amp 1 Tutorial 3 6 C source file Line Source Address nchip Event Aud Bus C 5 Source 3 dbsct c 25 finclude sor B intprg c 26 include stc E resetprg c 27 e 3 sbrk c 28 00001024 gt vecttbl c 29 2 C source file 30 a t
5. 5 Analyzing Performance by Measuring the Number of Executed Instructions This section introduces how to specify Number of execution instructions I as the condition for a single assembly instruction Here this is used to measure the number of times a given instruction is passed 1 View the source file tutorial cpp in mixed mode and double click on the Onchip Event column between lines 48 and 49 to set an on chip breakpoint js si Line O amp B 5 Disassembly Obj code BAOOL1O5E 4805 JOR ARS OOOOL06O 6463 MoV Riz R4 MOV R1z R4 n PRSETER MUS FE MOV R15 R5 47 p sam s a u 43 OOO00106e b1F2 Mov L BRIS Ri ddddi g zciz Mov L R1 BR12 Bl 49 s50 p sam gt si1sa i 00001066 54Fi1 MOV L H H DO4 4 R15 R4 p sam sz a z 000010668 55FZz MOV L H H B08 4 R15 R5 iE p sam s3 a 3 FPnmnrmd mm GAFA MOW T RIBH DnC A RAE RA x gt 2 tutorial cpp By specifying the first address of an instruction that is not a branch or delayed slot instruction and the address of the following instruction as the condition you will be able to view in the Result column the number of times this range has been passed If you set a condition of this type in an interrupt handling routine for example it is possible to view the number of times a specific function is called Note however that the number measured may not be correct if the target instruction is in an area where interrupts are
6. Renesas products 7 With the exception of products specified by Renesas as suitable for automobile applications Renesas products are not designed manufactured or tested for applications or otherwise in systems the failure or malfunction of which may cause a direct threat to human life or create a risk of human injury or which require especially high quality and reliability such as safety systems or equipment or systems for transportation and traffic healthcare combustion control aerospace and aeronautics nuclear power or undersea communication transmission If you are considering the use of our products for such purposes please contact a Renesas sales office beforehand Renesas shall have no liability for damages arising out of the uses set forth above 8 Notwithstanding the preceding paragraph you should not use Renesas products for the purposes listed below 1 artificial life support devices or systems 2 surgical implantations 3 healthcare intervention e g excision administration of medication etc 4 any other purposes that pose a direct threat to human life Renesas shall have no liability for damages arising out of the uses set forth in the above and purchasers who elect to use Renesas products in any of the foregoing applications shall indemnify and hold harmless Renesas Technology Corp its affiliated companies and their officers directors and employees against any and all damages arising out of such applications 9 Yo
7. The following options are selectable in the Performance Analysis dialog box Disabled no option Disables any setting Elapsed time AC Number of cycles ld executed Number of execution states VS Number of execution states Branch instruction count BT Number of branch instructions Number of execution instructions I Number of executed instructions including repeated execution Exception interrupt counts EA Number of exceptions and interrupts Interrupt counts INT Number of interrupts URAM area access counts UN Numbers of times the URAM area was accessed for instructions and data URAM area instruction access counts UIN Number of times the URAM area was accessed for instructions URAM area data access counts UDN Number of times the URAM area was accessed for data REJ06J0043 0100 Rev 1 00 2008 3 Page 14 of 30 SH7080 Series E200F Emulator Performance Measurement lt ENESAS 11 Make settings for Channel 2 to Channel 4 as shown below and click on OK Performance Analysis Condition Channel 1 Elapsed time Number of execution states Branch Instruction counts Number of execution instructions Cancel Channel 2 Channel 3 Channel 4 Sees 8 x debug_e200f_system sessione200f system ig zj ox A a zi File Edit View Project Build Debug Setup Tools Test Window Help S l m BU ET ELEY ELES M sc El m gd Tutorial 3 C sou
8. i sbrk h Step while 1 sort h p sam new Sample gt E stackscth Sep pode for i 0 i 10 i vecth j rand Initialize T Disconnect Channel Conditi save Memory Chi AC Verify Memory Ch2 VS Ch3 BT Ch4 I Download Modules b REJ06J0043 0100 Rev 1 00 2008 3 Page 16 of 30 SH7080 Series E200F Emulator E RE NI ESAS Performance Measurement 15 The program stops at the line where the on chip breakpoint has been set and the Performance Analysis pane shows the result of performance analysis The comment EVENT CONDITION for L bus is displayed in the Output pane amp 33 Tutorial High performance Embedded Workshop tutorial cpp SEE w File Edit View Project Build Debug Setup Tools Test Window Help L X amp 0 z debug_e200f_system sessione200f_system v At d Bn Hi E Gi ME NC m E bd Wd zx GA a es Tutorial BHS 24 C source file Line Source Address nchip Event Aud Bus C 5 Source iE dbsct c 25 include sort h f intprg c include lt stdlib h gt resetpra c 5 sbrk c 00001024 e 1 3 vecttbl c J C source file B sort cpp volatile long a 10 mE long i Download modu int 1 4 Tutorial abs class Sample p sam Dependencies E sbrk h while 1 sort h 00001030 p sam new Sample stacksct h 00001050 fort i O i lt 10 i vect h 00001034 j rand 4 lt gt tutorialepp Event Condition Result AC 000042AD
9. sort cpp 31 BC3 wj SiL volatile Bj 32 BC4 gt land jj Download ven 33 BOS gt int i 4 Tutorial abs 34 BC6 gt class San 3 Dependencies 35 BC7 gt E sbrk h 36 BC8 gt while 1 Z sort h 37 00001030 BC9 gt p same nc E stackscth 38 00001050 BC10 gt for E vect h 39 00001034 d T z tutorial cpp m Event If BC2 has also been set delete it too 17 Double click on line 45 and then line 48 After that click on the Event tab 3 Tutorial File Edit View Project Build Debug Setup Tools Test Window Help amp 4 JA o Tt aif zl zi zu m i P Jj Ipc be n High performance Embedded Workshop tutorial cpp EEx alaf debug e20Df system sessione200f system igi x oum gm CY Tutorial Tutorial 3 C source file 3 dbsct c B intprg c B resetprg c 3 sbrk c vecttbl c C source file B sort cpp S mE Download modu 1 Tutorial abs Dependencies sbrk h sort h stacksct h vect h a ala EEE AE Double click on line 45 00001030 and then line 48 00001050 00001034 j rand 00001032E if j lt O t 00001044 j j 00001046 a i j p_sam gt sort a p_sam gt change a 00001056 poo0105cC 00001062 00001066 00001068 00001064 p sam s0 a 0 p sam si a 1 p sam sz a 2 p sam 33 a 3 REJ06J0043 0100 Rev 1 00 2008 3 Page 18 of 30 SH7080 Series E200F Emulator E RE N ESAS Per
10. successfully connected Connected is displayed on the Debug tabbed page of the Output pane REJ06J0043 0100 Rev 1 00 2008 3 Page 9 of 30 SH7080 Series E200F Emulator E cE NI ESAS Performance Measurement 4 3 Analyzing Performance by Using Eventpoints This section introduces two methods of performance analysis measurement from the start of execution to a break and measurement over a specific period 1 To load a program double click on a load module file abs that has been registered in the workspace zl x E Tes Tutorial 3 C source file dbsct c intprg c resetprg c sbrk c vecttbl c source file sort cop tutonal cpp lie 5 Drs ez uz Drs rs Completion of loading is indicated by a downward arrow on the file icon C source file 3 sart cpp X tutorial cpp Double click cy v ajajaa eu c epaia 2 Double click on the source file name tutorial cpp in the workspace to open the source code in the Source pane amp 33 Tutorial High performance Embedded Workshop tutorial cpp lt gt File Edit view Project Build Debug Setup Tools Test Window Help amp Gi JAg EB EAE deus e200f_system x sessione200 system x m Bu sf eL Ei eh Ez FP ec M EP pg he xum a Tutorial E amp amp 1 es Tutorial 2E C source file Line Source Address Onchip Event amp ud Bus C 5 Source dbsct c intpra c resetprg c sbrk c vect
11. tool is as follows Emulator Software E200F Emulator Debugger Version 2 04 00 3 Software Preparation 3 1 Introduction Install the software provided in the CD ROM of the E200F emulator to expand the sample program tutorial workspace to be used with this document on your personal computer The software in the CD ROM of the E200F emulator can also be installed on a personal computer in which the High performance Embedded Workshop has already been installed In this case some dialog boxes may be skipped in the installation process 3 2 Installing the E200F Emulator Software Execute HewlnstMan exe from the CD ROM of the E200F emulator For details on installation refer to the introductory guide for the E200F emulator on the Renesas website and follow the directions shown on the screen during installation The full installation procedure is not described here 3 3 Auto Update Ultility When the auto update utility is selected upon installation of software it is possible to check the latest version of tools on the Internet REJ06J0043 0100 Rev 1 00 2008 3 Page 2 of 30 SH7080 Series E200F Emulator E RE NI ESAS Performance Measurement 4 Operations This section explains how to activate the High performance Embedded Workshop HEW and how to analyze the performance in the following steps START Activating the HEW Opening a workspace Analyzing performance by using eventpoints Analyzing performance by setting data condi
12. 8 3 Page 28 of 30 SH7080 Series E200F Emulator E RE NI ESAS Performance Measurement Renesas Website and Customer Support Renesas Technology Website http www renesas com Customer Support http www renesas com inquiry csc renesas com Revision Record Description Rev Date Summary Mar 12 2008 First edition issued REJ06J0043 0100 Rev 1 00 2008 3 Page 29 of 30 SH 080 Series E200F Emulator E RE N ESAS Performance Measurement Notes regarding these materials 1 This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use Renesas neither makes warranties or representations with respect to the accuracy or completeness of the information contained in this document nor grants any license to any intellectual property rights or any other rights of Renesas or any third party with respect to the information in this document 2 Renesas shall have no liability for damages or infringement of any intellectual property or other rights arising out of the use of any information in this document including but not limited to product data diagrams charts programs algorithms and application circuit examples 3 You should not use the products or the technology described in this document for the purpose of military applications such as the development of weapons of mass destruction or for the purpose of any other military use When exporting the
13. Address Don t Care Address C Only program fetched address C Only program fetched address after Nonusermask User mask Mask Click on the Data tab Specify H 000055AA as Value Event condition 2 Address Data Bus State Action Data Don t Care a Val H O00055AA C Byte C Wore Lone Nonusermask User mask Mask Cancel Click on the Bus State tab Select L Bus CPU as Bus type and Write for Read Write and then click on OK Event condition 2 Address Data Bus State Action Bus state TTT Bus type ABSIT P pi pu nz Read Write C Read Write Read REJ06J0043 0100 Rev 1 00 2008 3 Page 24 of 30 SH7080 Series E200F Emulator E RE NI ESAS Performance Measurement 3 The Performance Analysis pane shows the settings that have been made a X Chi Ia OA DT CT Enable Address FFFFAUUU data H lzi4 long access L bus Ch 2 to Ch 1 PA Cha IA GA DT Enable Address FFFFAIOO data H 55aa long access L bus Ch 2 to Ch 1 PA Ss at Le VOTE DERAF Ch4 IA Disable None Break Ch TA Disable None Break Cho TA Disable None Break Ch7 IA Disable None Break Che TAI Disable None Break Cho TA Disable None Break Chil TA Disable None Break TIT gt Breakpoint Onchip Event AUD Event Other Event BUS Event s tutorialcpp Event As is shown in the picture above the performance analysis can also be done in the order Ch 2 to Ch 1 PA 4
14. High performance Embedded Workshop Fille Edit View Project Build Debug Setup Tools Test Window Help D eee G 2m a JARA xj amp eee al A Welcome el Create anew project workspace b Cancel x 2 TEE aj Open a recent project workspace cy Administration i oc Browse to another project workspace Zererarar Mkt 2 Be gt Debug A Find in Files 1 Find in Files 2 Macro A Test Version Control o pes on een iS Eo Select the Browse to another project workspace radio button in the Welcome dialog box and click on the OK button Welcome Create a new project workspace Cancel Open a recent project workspace n Fs fe Administration Browse to another project workspace REJ06J0043 0100 Rev 1 00 2008 3 Page 4 of 30 SH7080 Series E200F Emulator E RE NI ESAS Performance Measurement 2 The Open Workspace dialog box will appear Open Workspace le debug ez f system File name Tutorial hws Select D Files of type HEW Workspaces hws Cancel When the software from the CD ROM of this product has been installed workspace Tutorial hws is stored in the folder structure shown below standard location Specify the correct location by opening the folders in order Select the workspace Tutorial hws and click on the Open button C WorkSpace Tutorial E200F SH7080Series Tutorial_SH7080Series Tutorial hw
15. K Combination action Sequential or PtoP Setting Ch 4 5 Don t care Cancel kppilu Ch 1 to Ch 2 PA After event condition 1 start condition is satisfied the emulator measures the performance until event condition 2 end condition is satisfied Ch 2 to Ch 1 PA After event condition 2 start condition is satisfied the emulator measures the performance until event condition 1 end condition is satisfied REJ06J0043 0100 Rev 1 00 2008 3 Page 19 of 30 SH7080 Series E200F Emulator E EN ESAS Performance Measurement zi File Edit View Project Build Debug Setup Tools Test Window Help f Ca M 4 44 2 ee BS debug e200f system sessione200f system d WIE T HE P Es Er EM E CO QE now EIE ed E E e eS Tutorial 3 C source file dbsct c Chl IA OA DT CT Enable nipg c Ch2 IA OA DT resetprg c sbrk c vecttbl c C source file L sort cpp 5 tutorial cpp p Download modu pL H Tutorial abs Disable Dependencies Disable E sbrk h sort h stacksct h vecth gt Breakpoint A Onchip Event ALID Event Other Event BLIS Event tutoria cpp Event Channel Condition Result Chl AC 000042AD Ch2 VS 00000483 Ch3 BT 00000022F Ch4 I 0000047A 21 Select the tutorial cpp tab Right click on line 52 and select Add for BC10 3 Tutorial High performance Embedded Workshop tutorial cpp zi File Edit View Project Build Debug Setu
16. QE NESAS Application Note SH7080 Series E200F Emulator Performance Measurement Overview The E200F emulator provides two functions to analyze the performance of user programs on chip performance analysis and AUD performance analysis This document describes how to use the E200F emulator for the SH7080 in on chip performance measurement The examples given in this document are of E200F emulator usage in a stand alone form The functions described in this document are also available on all E200F emulators regardless of the target device in use Contents k 82 6 67 gt 16 ee en E E E E EN 2 2 Functional DescrHDLIOFIS sisisi a n aia i a a a a Aai aaea iiaa a iii 2 3 OMEN ANS Prepara E eain a e a eaa a T a 2 Set TOGUE TON e a e a a a E e E aa a a E e E E akin 2 3 2 Installing the E200F Emulator Software sssssssssssesseeeee nennen nnne nnn 2 3 3 Auto Update Utility cccecccdincsccicactus inns iancscidnanaianncenseanasannctinetaedandeusageeananssuilnoudneneaduanaydnnseseanoeaenciionetaedanns 2 A ODE WON ee ne E E oe een ne ne eee eee ne eee ee ene ee eee eee eee 3 4 1 Activating the High performance Embedded Workshop eese 3 MEO WdeE Rileli ise uu 4 4 3 Analyzing Performance by Using Eventpoints cccceccceceeeeeeeeeeeeeeeaeeeeeeeeeeeeseeeeeesaeeeeesseeeeeesaees 10 4 4 Analyzing Performance by Setting Data Conditions Eventpoints s
17. asily detached from your products Renesas shall have no liability for damages arising out of such detachment 12 You should not use the products or the technology described in this document for the purpose of military applications such as the development of weapons of mass destruction or for the purpose of any other military use When exporting the products or technology described herein you should follow the applicable export control laws and regulations and procedures required by such laws and regulations 13 Please contact a Renesas sales office if you have any questions regarding the information contained in this document Renesas semiconductor products or if you have any other inquiries 2008 Renesas Technology Corp All rights reserved REJ06J0043 0100 Rev 1 00 2008 3 Page 30 of 30
18. e Init init cnt Remove the c Hendif ifdef cplusplus 4 gt tutorial cpp Channel Condition Result chil DISABLE oo0000000 Ch2 DISABLE o0000000 Ch3 DISABLE oo000000 ch4 DISABLE o0000000 x x a E Flash memory writing Flash memory write end 6 Select Eventpoints from the Code item of the View menu 3 Tutorial High performance Embedded Workshop tutorial cpp ol File Edit BU Project Build Debug Setup Tools Test Window Help 3 m 5 Differences ge x kk d pr ag bd Mea T E Ei E ESSO e Command Line Ctrl L Tutori Sy ete Toolkit Chrl Shift k f Address nchipEvent Aud Bus C 5 Source Fi TERETE it E status Bar Alt A FIL DAT gd Disassembly Ctrl D ie DE CPL CPU d jt Symbol Jii if Graphic PRT RTT Performance Trace Ctrl T ifdet incl Eventpoints D Ffint i dif B code Coverage trH Shift H veia m Stack Trace Ckri k zZ tutorial cop REJ06J0043 0100 Rev 1 00 2008 3 Page 12 of 30 SH7080 Series E200F Emulator E RE NI ESAS Performance Measurement 7 The Event pane is opened Select the Onchip Event tab Then right click on a desired condition and select Combination action Sequential or PtoP from the popup menu Tutorial High performance Embedded Workshop Event PI 0 File Edit View Project Build Debug Setup Tools Test Window Help Gy NH debug
19. e200t system sessione200t system Pt ae Bu sf eL Sr Es e P P El pj dg xum E Tutorial eS Tutorial 52g C source file Action dbsct c Chl IA OA DT CT Disable None L intpra c Ch2 IA OA DT Disable None resetpra c Ch3 IA Disable None Edit i sbrk c Ch4 IA Disable None 7 vecttbl c Ch5 IA Disable None E source file Ch6 IA Disable None L sort cpp Ch IA Disable None tutorial B tutorial cpp Ch IA Disable None Download modu 4 Tutorial abs Ch9 TA Disable None Dependencies Ch10 IA Disable None E sbrk h ig sort h E stacksct h cC BUCO EE E vecth Combination action Sequential or PtoP nm v Toolbar display Customize toolbar Breakpoin WAUD Event A Other m Conc even Allow Docking lt 0 tutonalcpp Event Hide Condition Result DISABLE o0000000 DISABLE o0000000 DISABLE o0000000 DISABLE o0000000 8 The Combination action Sequential or PtoP dialog box will appear Select Don t care for Ch1 2 3 and click on OK Combination action Sequential or PtoP Setting Ch 4 5 Don t care m Don t care Combinations of actions are not used as conditions REJ06J0043 0100 Rev 1 00 2008 3 Page 13 of 30 SH7080 Series E200F Emulator E cE NI ESAS Performance Measurement 9 Right click on the Performance Analysis pane and select Set from the popup menu 5 Tutorial High performance Embedded Wor
20. ec ORI pg gg zx wm sj Tutorial 4 C source file Source Address OnchipEvent amp ud Bus C 5 Source 3 dbsct c 3 intprg c 00001046 afi j B resetprg c 3 sbrk c 00001056 d p sam sort a B vecttbl c 00001050C p_sam gt change a C source file 3 sort cpp 00001062 d p sam s a 0 3 00001066 p sam si a 1 Download modu 00001068 p sam s2 a 2 I Tutorial abs Danos i Y Dependencies o000106c sbrk h HULL IUDT D Sal 232 u H E sort h 00001070 p sam s6 a 6 stacksct h 00001072 p sam s7 a 7 E 00001082 p sam s8 a 8 00001084 p sam s9 a 9 4 2 tutorialepp Event Channel Condition Result Chi AC OQO00040E Ch2 vS 00000366 Ch3 BT Q00000A0 Ch4 I 00000364 xi x a gt E EVENT CONDITION 10 Build A Debug 4 Find in Files 1 Find in Files 2 Macro A Test Version Control fet E7 Fe FA Defaulti desktop Read write 52 66 The performance from line 45 to 48 from which the functions sort and change are called in that order has been analyzed REJ06J0043 0100 Rev 1 00 2008 3 Page 22 of 30 SH7080 Series E200F Emulator E RE N ESAS Performance Measurement 4 4 Analyzing Performance by Setting Data Conditions Eventpoints This section gives examples of setting data conditions 1 In this example the condition is the writing of a particular value 32 bits H 00001234 into a variable at FFFFAO00 in RAM Double c
21. enabled or the instruction may generate an exception REJ06J0043 0100 Rev 1 00 2008 3 Page 25 of 30 SH7080 Series E200F Emulator B RE NI ESAS Performance Measurement 2 The Event pane shows the settings that have been made Chl IA OA DT CT Enable Address O0001062 tutorial cpp 48 pe Break Ch 1 to Ch 2 PA Che IA OA DT Enable Address 00001064 tutorial cpp 48 pe Break Ch 1 to Ch 2 PA cha TA Disable None Break Ch4 TA Disable None Break Ch TA Disable None Break Cho TA Disable None Break Ch7 IA Disable None Break Che TAI Disable None Break Cho ITA Disable None Break Chil TA Disable None Break Action Breakpoint A Onchip Event AUD Event Other Event BUS Event x tutorialcpp Event Specify the address range from H 00001062 to H 00001064 as the condition 3 After the program has been run the Performance Analysis pane displays the results of analysis The Result column for Ch4 Il condition shows the number of times the instruction was executed x x j gm H H Channel Result chi AC DD0011rF33 Che YS DODO181 cha ET OOOO0001 OOOO71E1 Condition In the screenshot above the result is H 7181 D 29057 which means address H 00001062 has been passed 29 057 times We conclude the description of performance analysis here REJ06J0043 0100 Rev 1 00 2008 3 Page 26 of 30 SH7080 Series E200F Emulator E cE NI ESAS Performance Measurement 5 Frequently Asked Qu
22. eseeseeseeeeeeses 23 4 5 Analyzing Performance by Measuring the Number of Executed Instructions 25 S PRCQUGIMIV PSK CG Ner 27 5 1 Can you provide any notes on analyzing performance cccccccseeeeeeceeeeeeeeeeeeeeseeeeeeseeeeesaeeeeeeas 27 O RAKO i Boe PII d EE Ec 28 REJ06J0043 0100 Rev 1 00 2008 3 Page 1 of 30 SH7080 Series E200F Emulator E RE NI ESAS Performance Measurement 1 Specifications The on chip performance analysis function applies a counter in the device to measure the number of cycles from one specified condition being satisfied until another specified condition is subsequently satisfied According to the supported device that is in use various other items such as the number of cache misses and TLB misses may also be measurable The on chip performance analysis function cannot be used when the profiling function is enabled The AUD performance analysis function allows the user to measure times or numbers of instructions executed between specified events in the AUD event detection system The resolution of the timer can be set to 20 ns 100 ns 400 ns or 1 6 us At 20 ns the maximum time that can be measured is about six hours and at 1 6 us the maximum time is about 20 days 2 Functional Descriptions This document explains how to analyze the performance by using the sample program included in the package that can be downloaded from the Renesas website The version of the
23. estions 5 1 Can you provide any notes on analyzing performance 1 Use of the profiling and on chip performance analysis functions at the same time is not possible The Can not use this function error message dialog box will be displayed if simultaneous use is attempted 2 Do not change the setting for performance analysis using channels 1 and 2 Ch 1 to Ch 2 PA or Ch 2 to Ch 1 PA in the Ch1 2 3 list of the Combination action Sequential or PtoP dialog box on the Onchip Event tabbed page while the user program is running Changing the settings in this way will lead to incorrect performance analysis 3 If the start condition is satisfied after the end condition has been satisfied performance analysis will be resumed The result shown at a break will be the sum of all results measured during the period of performance analysis 4 When you use the measurement start end conditions Ch 1 to Ch 2 PA or Ch 2 to Ch 1 PAJ the value in the Count page of the Event condition 1 dialog box must be specified as one 5 If there is a conflict between a DMA or DTC transfer and satisfaction of an event condition including an external bus access condition this may prevent the triggering of a break stopping or acquisition of internal trace information or starting or stopping of performance analysis by the event condition 6 In debugging of the SH7125 SH7124 without the EV chip unit connected to the emulator the performance analy
24. formance Measurement 18 Right click on a desired condition in the Event pane to open the popup menu and select Combination action Sequential or PtoP Tutorial High performance Embedded Workshop Event SEE J5 File Edit View Project Build Debug Setup Tools Test Window Help ERI X Dg ei Cha ES debug e200f system sessione200f system ig M 6 0 8 2 MM pt efr E Et BE PP Fl El kd d a oc 5 m gm xxi Tutorial Gl C source fie Action dbsctc Chl IA OA DT CT Enable Address 00001056 tutorial cpp 45 pc Break Break ii intprg c Ch2 IA_OA_DT Enable Address 00001062 tutorial cpp 48 pe Break Break resetprg c Ch3 IA Disable None Break E sbrk c Ch4 IA Disable None Beak F vecttbl c Ch5 IA Disable None Pak 2 E ten Ch6 IA Disable None Edit Rak E Ch IA Disable None Pak EET Ch8 IA Disable None eak Download modu l T Tutorial abs Ch9 IA Disable None eak 31 88 Dependencies Ch10 IA Disable None eak Delete All sbrk h soth E stacksct h 2 vecth Breakpoint A Onchip Event ALID Event Other Ever 2 tuoilcop Evet E Combination action Sequential or PtoP E v Toolbar display Customize toolbar Channel Condition Result chil AC O00042aD Allow Docking Ch2 VS 00000483 Hide Ch3 BT 0000022F Ch4 I 0000047A 19 The Combination action Sequential or PtoP dialog box will appear Select Ch 1 to Ch 2 PA for Ch1 2 3 and click on O
25. gt Code Profile Ckri Shift F Hifdef m fincl Realtime Profile Ctrleshift Q Pe eine j endit Hifdef 4 The Select Performance Analysis Type dialog box will appear Select Onchip Performance and click on OK Select Performance Analysis Type E Onchip Performance Performance Analysis Cx Cancel REJ06J0043 0100 Rev 1 00 2008 3 Page 11 of 30 SH7080 Series E200F Emulator E EN ESAS Performance Measurement 5 The Performance Analysis pane will appear Tutorial High performance Embedded Workshop tutorial cpp SEE lt 5 File Edit View Project Build Debug Setup Tools Test Window Help mx Ci A oi 4 debug e20Df system sessione200f system ig m Bt st EL Et EL Be CO EF ORI p da zo wm a Tutorial a alal sd Tutorial 2 C source file Line Source ddress Onchip Event Aud Bus C 5 Source 3 dbsctc intpra c resetprg c 3 sbrk c vecttbl c C source file 3 sort cpp mE Download modu Tutorial abs fONRCRCNCCNCNCNCh Ch hA CNCN ON ACA Ch A ANON ONCKCA Ch hh A OW ONCNCh hh A NON CN CN 8 8 S AS S AHR JONCRCRCRCNCNONCKCh Ch Ch hA ONONCNCh Ch hh NON ONCACh Ch h A A ONCNCACh hh ACA ON ON CA Ch hh A NONU UN FILE sample8 cpp DATE Wed May 22 2002 DESCRIPTION Main Program CPU TYPE Other JaN 50 9 eH stacksct h ifdef cplusplus vect h Hinclude ios Remove the c int ios bas
26. ion is changed W Generate Upgrade txt as a summary file in the project directory 8 Once the workspace is opened the Select Emulator mode dialog box appears Select the MCU in use from Device Then select E200 Emulator for Mode and click on the OK button Select Emulator mode Herel e200F Emulator Writing Flash memory a ep Cancel R5E70865R is selected in this example 9 The Function select dialog box appears Click on the OK button to accept the default settings Function select Function setting Main board mode HealFrofile Areal nest made Bu Bus board made Trace break Bch Trace 2521 S E e Cancel REJ06J0043 0100 Rev 1 00 2008 3 Page 7 of 30 SH7080 Series E200F Emulator E cE NI ESAS Performance Measurement 10 The Select Emulation dialog box appears Click on the OK button to accept the default settings Select Emulation Select Emulation Device RSE7USBSR I Change Emulation in start up Operating made f Select Mode mode 3 singlechip C User system Mode Clock Emulator Internal Clack 10 0 MHz A i t User system clack Cancel 11 The ID Code dialog box appears Click on the OK button to accept the default setting E200F ID Code Please input ID Code Iw Hew lD cade Lancel REJ06J0043 0100 Rev 1 00 2008 3 Page 8 of 30 SH7080 Series E200F Emulator E RE NI ESAS Performance Measurement
27. ksct h Onchip Event Aud 37 00001030 38 00001050 39 00001034 lt gt tutorial cpp Hj Event Channel Condition Chi Ac Ch2 vs Ch3 BT Ch4 I Result pooono00 oo000000 ooo00000 oo0000000 4 oj Q be I RJ EJ pe 4 Bus C J S Source Ex amp x debug e20Df system sessione200f system b igi ny x 5 m E Hinclude sort h include lt stdlib h gt woid mainivoid volatile long a 10 long j Double click on the first line of function main Flash memory writing Flash memory write end 14 After setting the on chip breakpoint select Reset Go from the Debug menu to execute the program 5 Tutorial High performance Embedded Workshop tutorial cpp zi File Edit View Project Build sci Setup Tools Test Window Help Debug Sessions fh i ib 108 2 Debug Settings zixl f Reset cpu e udo debug e200f system pe EJ is zi Q Tutorial s Tutorial 3 6 Csoucefie Reset Go Shift FS ent Aud Bus C S Source 3 dbsct c s include sort h intpra c include lt stdlib h gt resetprg c sbrk c oid main void f vecttbl c Run C source file a E l sort cpp ec Display PC Ctrl Shift volatile long a 10 Download modu m ep mn int i 4 Tutorial abs Step Over F10 class Sample p sam Dependencies P Step Out Shift F11
28. kshop Event SEE zi File Edit View Project Build Debug Setup Tools Test Window Help X Dg g Ch ES debug e200f system sessione200f system ip OP EBS29mIEM uomo c s mE M xm Zi xl Qu Tutorial gl Tutorial Sq C source file Action dbsct c Chl IA OA DT CT Disable i intpra c Ch2 IA OA DT Disable None Break resetprg c Ch3 IA Disable None Break i sbrk c Ch4 IA Disable None Break vecttbl c Ch5 IA Disable None Break m E ten Ch6 IA Disable None Break Ch7 IA Disable None Break z 2 tutorial cpp Ch8 IA Break 43 Download modu I Tutorial abs Ch9 IA Break Gy Dependencies Ch10 IA Break E sbrk h Reset All sort h E stacksct h Clear Data E vecth Clear All Data Save To File lt gt Breakpoint A Onchip Property BUS Event 20 tutorialepp Event Y Toolbar display Customize toolbar v Allow Docking Channel Condition Result Hide Chl DISABLE oo000000 Ch2 DISABLE 00000000 e Ch3 DISABLE 00000000 Right click Ch4 DISABLE 00000000 10 The Performance Analysis dialog box opens Select Elapsed time for Channel 1 Performance Analysis Condition Channel 1 Disabled m Channel K EERME Channel 3 Branch instruction counts Number of execution instructions E ception interrupt counts Channel 4 Interrupt counts URAM area access counts URAM area instruction access counts URAM area data access counts
29. licking on the Ch1 column in the Event pane opens the Event condition 1 dialog box Click on the Address tab and specify H FFFFAO000 as Address Event condition 1 Address Data Bus State Count Action Address Don t Care Address Only program fetched address Only program fetched address after Address H FFFFAO00 Nonusermask User mask Mask Click on the Data tab Remove the tick from the Don t Care checkbox and specify H 00001234 as Value Event condition 1 Address Data Bus State Count Action Data Don t Care MR V alu Xoo 234 C Byte C E Nonusermask User mask Mask Cancel Click on the Bus State tab Select L Bus CPU as Bus type and Write for Read Write and then click on OK Event condition 1 Address Data Bus State Count Action Bus stale s Bus type RETR Read Write C Read Write C Read rite Yok OY Cancel REJ06J0043 0100 Rev 1 00 2008 3 Page 23 of 30 SH7080 Series E200F Emulator E RE NI ESAS Performance Measurement 2 In the next example the condition is the writing of a particular value H 000055AA into another variable at FFFFA100 in RAM Double clicking on the Ch2 column in the Event pane opens the Event condition 2 dialog box Click on the Address tab and specify H FFFFA100 as Address Event condition 2 Address Data Bus State Action
30. p Tools Test Window Help Dea G ale aR A B SE Es Click on line 52 and select m 6 08 2 Bt zT EL ER EN EE QU E xx Fl EJ Add for BC10 xx amp l amp l s Tutorial 3 C source fie Line SourceAddress OnchipEvent Aud 5 dbsct c 43 00001046 a i j y f intprg c 44 j 5 resetprg c 45 00001056 e p sam sort a 3 sbrk c 46 0000105C p sam change a 3 vecttbl c zm 2 3 C source file 48 00001062 e p sam s0 a 0 f sort cpp 49 00001066 p sam si a 1 3 IEEE 50 00001068 p sam s2 a 2 3 6 Download modu 51 00001064 p sam s3 a 3 L Tutorial abs 52 0000106C p sam s4 a 4 43 Dependencies 53 O000106E p sam s5 a 5 E sbrk h 54 00001070 p sam s6 a 6 E sorth 55 00001072 BC3 gt p sam s7 a 7 E stacksct h 56 00001082 BC4 gt p sam s8 a 8 Ei 57 00001084 BCS gt p sam s9 a 9 gt 4 BC6 gt gt S BC7 gt 0 tutonalcpp Event Bear BC9 gt BC10 Add D Channel Condition Result Chl AC O00042AD Ch2 VS 00000483 Ch3 BT O000022F Ch4 I 0000047A REJ06J0043 0100 Rev 1 00 2008 3 Page 20 of 30 5H7080 Series E200F Emulator E RE NI ESAS Performance Measurement 22 Clear the result of performance analysis in the Performance Analysis pane and then execute the program 33 Tutorial High performance Embedded Workshop tutorial cpp gt File Edit View Project Build Debug Setup Tools Test Window Help
31. products or technology described herein you should follow the applicable export control laws and regulations and procedures required by such laws and regulations 4 All information included in this document such as product data diagrams charts programs algorithms and application circuit examples is current as of the date this document is issued Such information however is subject to change without any prior notice Before purchasing or using any Renesas products listed in this document please confirm the latest product information with a Renesas sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas such as that disclosed through our website http www renesas com 5 Renesas has used reasonable care in compiling the information included in this document but Renesas assumes no liability whatsoever for any damages incurred as a result of errors or omissions in the information included in this document 6 When using or otherwise relying on the information in this document you should evaluate the information in light of the total system before deciding about the applicability of such information to the intended application Renesas makes no representations warranties or guaranties regarding the suitability of its products for any particular application and specifically disclaims any liability arising out of the application and use of the information in this document or
32. rce file 3 dbsct c Action Chl IA OA DT CT Disable f intprg c B resetprg c sbrk c 3 vecttbl c C source file 3 sort cpp Bf REE Download modu 1 Tutorial abs Dependencies Disable Disable Disable Disable Disable Disable Disable Disable Disable E sbrk h sort h E stacksct h gt E th hes Breakpoint A Onchip Event ALID Event Other Event BLIS Event 20 tutorialcpp Event Result oooo0000 ooo00000 ooo00000 ooo00000 Channel Condition Chi AC Ch2 Vs Ch3 BT Ch4 I Flash memory writing Flash memory write end Connected Find in Files 2 Macro A Test Version Control Ff EZ E FA Default desktop Build A Debug 4 Find in Files 1 Read write 1 66 REJ06J0043 0100 Rev 1 00 2008 3 Page 15 of 30 lt ENESAS SH7080 Series E200F Emulator Performance Measurement 13 Double click on the first line of function main line 28 in the source file tutorial cpp to set an on chip breakpoint 33 Tutorial High performance Embedded Workshop tutorial cpp File Edit View Project Build Debug Setup Tools Test Window Help amp 8 JA g 16 AR RH BHAA GA SEO OP SL amp j amp amp 1 sd Tutorial E 2G Hd saxea tie Line Source Address i dbsct c f intpra c resetprg c 3 sbrk c 00001024 e vecttbl c C source file B sort cpp 4 Download modu 1 Tutorial abs Dependencies 8 sbrk h Z sort h stac
33. s C WorkSpace _Tutorial _E200F _SH7080Series Tutorial SH7080Series _Tutorial hws Note The above directory may not be specifiable depending on the software version In this case select the following directory lt High performance Embedded Workshop installation directory gt Tools Renesas DebugComp Platform E200F SH 080Series Tutorial SH7080Series Directory examples C hew3 Tools Renesas DebugComp Platform E200F SH7080SeriesYTutorial SH7080Series C hew2 T ools Renesas DebugComp Platform E200F SH7080SeriesXTutorial SH7080Series 3 f the workspace version is not the latest available the following dialog box will appear To update to the new version click on the OK button High performance Embedded Workshop T The Workspace vau are about to open was created with an earlier version of HEW The data Files For the workspace projects and sessions will be Updated Once updated this workspace cannot be opened by an older version of HE Backup versions of your old Files will be created in the workspace and project directories with the prefix old version xxx Do vou wish Ea continue 0 x D Cancel e REJ06J0043 0100 Rev 1 00 2008 3 Page 5 of 30 5H7080 Series E200F Emulator E RE NI ESAS Performance Measurement 4 A Warning dialog box appears To open the workspace which is now stored in a different directory click on the OK button Warning T This workspace has been mowed
34. sis function is not supported That is this function is only supported when the EV chip unit is connected to the emulator REJ06J0043 0100 Rev 1 00 2008 3 Page 27 of 30 SH7080 Series E200F Emulator E RE NI ESAS Performance Measurement 6 Related Documents The E200F emulator and High performance Embedded Workshop provide many other useful functions not mentioned in this document Please refer to the following related documents for important information such as detailed specifications technical information or restrictions on each product Documents Related to the E200F Emulator SH 2A SH 2 E200F Emulator User s Manual Limitations on SH 2A SH 2 E200F Emulator SH 2A SH 2 E200F Emulator Additional Document for User s Manual Supplementary Information on Using the SH7086 Documents Related to High Performance Embedded Workshop High performance Embedded Workshop User s Manual High performance Embedded Workshop Release Note Documents Related to MCU SH7080 Group Hardware Manual SH 2A SH2A FPU Software Manual Document Related to SuperH Family C C Compiler Package SuperH RISC engine C C Compiler Assembler Optimizing Linkage Editor Compiler Package User s Manual SuperH RISC engine C C Compiler Package Application Note Visit the following Renesas websites for information on this product Global site http www renesas com e200f Japanese site http japan renesas com e200f REJ06J0043 0100 Rev 1 00 200
35. tblc source file Y gONCRCNChCh Ch hONOKON OK Ch Ch hh a a a a Ch hh ACA CN ON CNCh Ch hh A NON NON Ch A A 8 S GN NUN UN jt FILE sampleS8 cpp DATE Wed May 22 2002 DESCRIPTION Main Program CPU TYPE Other jt Buusloaclsit jF 4 Tutorial abs FN LBAEEEXLL LC IZ LX X X 1 f Gf fd E C a a a Dependencies sbrk h sort h stacksct h ifdef cplusplus f include ios Remove the c int ios base Init init cnt Remove the c endif ifdef cplusplus O JoU0 450 t Hn Flash memory writing Flash memory write end Connected Find in Files 1 Find in Files 2 Macro A Test Version Control Ff E2 Ee 7 Defaulti desktop Read write 1 66 REJ06J0043 0100 Rev 1 00 2008 3 Page 10 of 30 SH7080 Series E200F Emulator E RE N ESAS Performance Measurement 3 Select Performance Analysis from the Performance item of the View menu 3 Tutorial High performance Embedded Workshop tutorial cpp J File Edit WU Project Build Debug Setup Tools Test Window Help D Differences MEM e ge m i 4 pr pd Ma ET EL Ei ELE CO m Command Line Ctrl L Tutori l 5 5 T lt 0 TCL Toolkit Ctrl ShiFt k Address OUnchipEvent Aud Bus OC 5 Source Ed status Bar Alt A amp Disassembly Ctri D Performance STEARAT Fii y FIIL DAT DES m i CPI Symbol k Jis 5 fr Graphic b doch d c d EalPerformance Analysis Ctrl Shift P
36. tions eventpoints Analyzing performance by measuring the number of executed instructions END Figure 4 1 Procedures for Sample Program Execution 4 1 Activating the High performance Embedded Workshop First connect the E200F emulator with the user system to the host computer via the USB cable and check that debugging is enabled Next activate the High performance Embedded Workshop by opening the Start menu and selecting All Programs Renesas High performance Embedded Workshop and High performance Embedded Workshop in that order fm Renesas gt fa High performance Embedded Workshop II F7 Setup Tool for E104 USB Emulator Ww MSN m Startup gt ca Renesas Tools HomePage Fi Accessories gt 7 SHC Compiler v 9 01 Release 01 m M16C 60 30 Tiny 20 10 R8C Tiny Series C Compiler 5 43 Release 00 f E8 ES Self Check Program der High performance Embedded Workshop E High performance Embedded Workshop Help e Internet Explorer a High performance Embedded Workshop Read Me Manual Navigator ts Call Walker Mapview E SuperH RISC engine Simulator Debugger Help All Programs en Outlook Express Log Off 0 Turn Off Computer REJ06J0043 0100 Rev 1 00 2008 3 Page 3 of 30 SH7080 Series E200F Emulator E N ESAS Performance Measurement 4 2 Opening a Workspace 1 The Welcome dialog box will appear on the High performance Embedded Workshop screen 1
37. u should use the products described herein within the range specified by Renesas especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas shall have no liability for malfunctions or damages arising out of the use of Renesas products beyond such specified ranges 10 Although Renesas endeavors to improve the quality and reliability of its products IC products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions Please be sure to implement safety measures to guard against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other applicable measures Among others since the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you 11 Incase Renesas products listed in this document are detached from the products to which the Renesas products are attached or affixed the risk of accident such as swallowing by infants and small children is very high You should implement safety measures so that Renesas products may not be e
Download Pdf Manuals
Related Search
Related Contents
Anleitung - Modellismo Fioroni Oracle Solaris 10 811 Installationshandbuch Grundinstallationen M0S09371_I - Servizio Assistenza Tecnica Polti Istruzioni per l`uso Originale V-VTN EVB8700 User Manual Rev. E - SMSC Pour aller plus loin, sitographie : Bibliographie : www Hayward Pools Pro Series High Rate Sand Filters Swimming Pool Filter User Manual USB Keyboard and Mouse Console Switch User Manual NetLink Configuration Cradle Copyright © All rights reserved.
Failed to retrieve file