background image

specification.

trace after semantic_check status
exec
<RETURN>

The STATUS message shows "Emulation trace started.".

Enter the following command to cause sample program execution to
continue from the current program counter.

run <RETURN>

The STATUS message shows "Emulation trace complete.".

Display the Trace

The trace listings which following are of program execution on the
7750/51 emulator. To see the trace list, enter the following command:

display trace <RETURN>

Trace List    Depth=512     Offset=0
Label:      Address       Data    Opcode or Status w/ Source Lines   time count
Base:       symbols       hex            mnemonic w/symbols           relative
      ##########spmt_demo.c - line   201 thru   204 ############################

      semantic_check()
      {
              int i;
after  :_semantic_check     3B0B  PHD                                 120     nS
+001   :_000002     E938       E938H  opcode fetch            240     nS
+002   :_000001     0694  TSA                                 240     nS
+003   :scrt0.a:+0000EA     0694       0694H  data write              120     nS
+004   :_000002     0694  SEC                                 120     nS
+005   :_000003     0002  SBC A,#0002H                        280     nS
+006   :_000004     0002       0002H  opcode fetch            120     nS
+007   :_000006     3A1B       3A1BH  opcode fetch            360     nS
+008   :_000006     3A1B  TAS                                 120     nS
+009   :_000007     645B  INC A                               120     nS

STATUS:   M37750/51--Running user program Emulation trace complete______...R....
run

  run     trace     step   display           modify   break     end    ---ETC-

The trace list shows the trace after line
(semantic_check()).

To list the next lines of the trace, press the <PGDN> or <NEXT> key.

2-28  Getting Started

Содержание 64147A

Страница 1: ...HP 64147 7750 51 Emulator Softkey Interface User s Guide HP Part No 64147 97001 Printed in Japan April 1995 Edition 1 ...

Страница 2: ......

Страница 3: ...ced or translated to another language without the prior written consent of Hewlett Packard Company The information contained in this document is subject to change without notice HP is a trademark of Hewlett Packard Company UNIX is a registered trademark in United States and other countries licenced exclusively through X Open Company Limited MELPS is a registered trademark of Mitsubishi Electric Co...

Страница 4: ... before the date this indicates the version level of the software product at the time the manual was issued Many product updates and fixes do not require manual changes and manual corrections may be done without accompanying product changes Therefore do not expect a one to one correspondence between product updates and manual revisions Edition 1 64147 97001 April 1995 ...

Страница 5: ...bing their results Shows you how to use the emulator in circuit connected to a target system Shows you how to configure the emulator for your development needs Topics include restricting the emulator to real time execution selecting a target system clock source This manual does not Show you how to use every Softkey Interface command and option the Softkey Interface is described in the Softkey Inte...

Страница 6: ...ams set software breakpoints and use the analyzer Chapter 3 In Circuit Emulation This chapter shows you how to install the emulation probe into a target system and how to use the in circuit emulation features Chapter 4 Configuring the Emulator This chapter shows you how to restrict the emulator to real time execution select a target system clock source allow background cycles to be seen by the tar...

Страница 7: ...s options and parts of command syntax bold italic Commands options and parts of command syntax which may be entered by pressing softkeys normal User specified parts of a command Represents the HP UX prompt Commands which follow the are entered at the HP UX prompt RETURN The carriage return key ...

Страница 8: ...Notes ...

Страница 9: ...eration 1 6 Coverage Measurements 1 6 Reset Support 1 6 Watch Dog Timer 1 6 Easy Products Upgrades 1 6 Limitations Restrictions 1 7 Clock Speed 1 7 Access to Internal RAM 1 7 Trace Internal RAM 1 7 Step Command to Internal RAM 1 7 DMA Support 1 7 Watch Dog Timer in Background 1 7 Step Command with Foreground Monitor 1 7 Step Command and Interrupts 1 8 Emulation Commands in Stop Wait Mode 1 8 RDY H...

Страница 10: ...in Mnemonic Format 2 14 Display Memory with Symbols 2 15 Display Memory with Source Code 2 16 Running the Program 2 17 From Transfer Address 2 17 From Reset 2 17 Displaying Memory 2 18 Using Symbolic Addresses 2 18 Modifying Memory 2 19 Breaking into the Monitor 2 20 Using Software Breakpoints 2 21 Enabling Disabling Software Breakpoints 2 22 Setting a Software Breakpoint 2 22 Displaying Software ...

Страница 11: ...lator Introduction 4 1 General Emulator Configuration 4 3 Micro processor clock source 4 3 Enter monitor after configuration 4 4 Restrict to real time runs 4 5 Emulator Reconfiguration 4 6 Processor type 4 6 Processor mode 4 8 Modify value for Stack Pointer SP 4 8 Memory Configuration 4 9 Is speed of input clock faster than 16 MHz 4 9 Monitor type 4 10 Mapping memory 4 12 Emulator Pod Configuratio...

Страница 12: ...2 Step Command and Interrupts 4 23 Emulation Commands in Stop Wait Mode 4 23 RDY HOLD Input in Background Cycles 4 23 Accessing External Memory Area in SFR 4 23 High Speed Bus Mode 4 23 RMPA Instruction 4 23 Stack Address 4 23 Evaluation Chip 4 23 A Using the Foreground Monitor Introduction A 1 Comparison of Foreground and Background Monitors A 1 Background Monitors A 2 Foreground Monitors A 2 An ...

Страница 13: ... 1 1 HP 64147 Emulator for MELPS 7750 51 Series 1 2 Figure 2 1 Connecting the Emulation Pod 2 3 Figure 2 2 Linkage Editor Subcommand File 2 4 Figure 2 3 Softkey Interface Display 2 6 Figure 3 1 Installing the Probe to LCC80 Socket 3 3 Figure 3 2 Installing the Probe to SDIP64 Socket 3 4 Contents 5 ...

Страница 14: ...Notes 6 Contents ...

Страница 15: ...your target system so you can control operation of the processor in your application hardware usually referred to as the target system The emulator performs just like the MELPS 7700 50 51 Series microprocessor but is a device that allows you to control the MELPS 7700 50 51 Series directly These features allow you to easily debug software before any hardware is available and ease the task of integr...

Страница 16: ...Figure 1 1 HP 64147 Emulator for MELPS 7750 51 Series 1 2 Introduction ...

Страница 17: ...rt List for HP MELPS emulators to determine if your microprocessor is supported or not The HP 64147A 001 emulator is provided with no emulation pod You need to purchase appropriate emulation pod and emulation processor To purchase emulation pod or emulation processor contact the address listed in the manual provided with your emulation pod Features of the 7750 51 Series Emulator This section intro...

Страница 18: ...mulation ROM erom target system RAM tram target system ROM trom or guarded memory grd The HP 64147A 7750 51 Series emulator will attempt to break to the emulation monitor upon accessing guarded memory additionally you can configure the emulator to break to the emulation monitor upon performing a write to ROM which will stop a runaway program Analysis The HP 64147A 7750 51 Series emulator is used w...

Страница 19: ... system resource is through the emulation processor For example when you enter a command to modify target system memory it is the execution of monitor program instructions that cause the new values to be written to target system memory The Background Monitor On emulator power up or after initialization the emulator uses the background monitor program The background monitor does not occupy processo...

Страница 20: ...uested such as displaying target system memory Emulator features performed in real time include running and analyzer tracing Emulator features not performed in real time include display or modify of target system memory load dump of target memory display or modification of registers and single step Coverage Measurements Coverage memory is provided for the processor s external program memory space ...

Страница 21: ...y when the following conditions are met The emulator is used with the M37780 81 82 83 85 95 96 emulation pod The processor is operating in the memory expansion or microprocessor mode with 8 bit external bus Step Command to Internal RAM Step command to internal RAM area is not available DMA Support Direct memory access to emulation memory is not allowed Watch Dog Timer in Background Watch dog timer...

Страница 22: ...ccepts RDY HOLD input while in background monitor Accessing External Memory Area in SFR When operation mode is memory expansion or microprocessor mode there is external memory area in SFR However accessing to this area is not allowed High Speed Bus Mode Always set bus mode as low speed bus mode when you use M37751 emulation pod HP 64147A 7750 51 emulator does not support high speed bus mode Note t...

Страница 23: ...ce This chapter will Tell you what must be done before you can use the emulator as shown in the tutorial examples Describe the demo program used for this chapter s examples This chapter will show you how to Start up the Softkey Interface Load programs into emulation and target system memory Enter emulation commands to view execution of the demo program Getting Started 2 1 ...

Страница 24: ...lation Service manual for instructions on installing software 3 In addition you should read and understand the concepts of emulation presented in the Concepts of Emulation and Analysis manual The Installation Service manual also covers HP 64700 system architecture A brief understanding of these concepts may help avoid questions later 4 Connected the emulator to the emulation probe as shown in Figu...

Страница 25: ... of source program spmt_demo c and scrt0 a77 Where is the spmt_demo Software The demo program is shipped with the Softkey Interface and may be copied from the following directory usr hp64000 demo emul hp64147 Figure 2 1 Connecting the Emulation Pod Getting Started 2 3 ...

Страница 26: ...ate HP Absolute file To generate HP Absolute file for the Softkey Interface you need to use m77cnvhp absolute file format converter program The m77cnvhp converter is provided with HP 64147 Softkey Interface To generate HP Absolute file enter following command m77cnvhp spmt_demo RETURN You will see that spmt_demo X spmt_demo L and spmt_demo A are generated These are sufficient throughout this chapt...

Страница 27: ...kemul emul_name RETURN The emul_name in the command above is the logical emulator name given in the HP 64700 emulator device table usr hp64000 etc 64700tab net Channel Logical Processor Remainder of Information for the Channel Type Name Type IP address for LAN connections lan 7750 m37750 21 17 9 143 If this command is successful you will see a display similar to figure 2 3 The status message shows...

Страница 28: ...igure the Emulator for Examples To do operations described in this chapter loading absolute program into emulation memory displaying memory contents etc you need to configure the emulator as below For detailed description of each configuration option question refer to the Configuring the Emulator chapter To get into the configuration session of the emulator enter the following command modify confi...

Страница 29: ...ollowing line to map the program code delete 1 RETURN 0h thru 0ffffh emulation ram RETURN end RETURN Modify emulator pod configuration no RETURN Modify debug trace options no RETURN Modify simulated I O configuration no RETURN Modify interactive measurement specification no RETURN If you wish to save the configuration specified above answer this question as shown Configuration file name spmt_demo ...

Страница 30: ...hell variable SH shell command fork a shell and execute a shell command pwd print the working directory cd directory change the working directory pws print the default symbol scope cws SYMB change the working symbol the working symbol also gets updated when displaying local symbols and displaying memory mnemonic forward UI command send the command in the quoted string from this user interface to a...

Страница 31: ...stack pointer after emulation reset rrt restrict to real time runs dmdt specify DT to mnemonic display tdma enable trace dma cycles trfsh enable trace refresh cycles thold enable trace hold cycles STATUS M37750 51 Running in monitor_________________________________ R pod_command help cf run trace step display modify break end ETC The command enclosed in string delimiters or is any Terminal Interfa...

Страница 32: ... to load only the portion of the absolute file that resides in memory mapped as target RAM use the load user_mem syntax If you want both emulation and target memory to be loaded do not specify emul_mem or user_mem For example load spmt_demo RETURN Note When loading a program if the status line shows ERROR No absolute file No database spmt_demo you may NOT be in the directory that your program is i...

Страница 33: ...ame _________________ Address range __ Segment _____________ Offset _apply_controll 00F773 00F847 0773 _apply_producti 00F4FF 00F5C3 04FF _calculate_answ 00F848 00F8F8 0848 _clear_buffer 00F2DB 00F34F 02DB _endcommand 00FA8B 00FAA2 0A8B _format_result 00F5C4 00F638 05C4 _get_next_token 00F6D6 00F772 06D6 _initialze 00F639 00F6D5 0639 _input_line 00F000 00F055 0000 _lookup_token 00F350 00F3EC 0350 ...

Страница 34: ...re symbols Procedure name _________________ Address range __ Segment _____________ Offset _apply_controll 00F773 00F847 0773 _apply_producti 00F4FF 00F5C3 04FF _calculate_answ 00F848 00F8F8 0848 _clear_buffer 00F2DB 00F34F 02DB _endcommand 00FA8B 00FAA2 0A8B _format_result 00F5C4 00F638 05C4 _get_next_token 00F6D6 00F772 06D6 _initialze 00F639 00F6D5 0639 _input_line 00F000 00F055 0000 _lookup_tok...

Страница 35: ... _____________ Offset 1 36 00F000 00F008 0000 37 37 00F009 00F028 0009 38 39 00F029 00F02E 0029 40 40 00F02F 00F033 002F 41 41 00F034 00F038 0034 42 42 00F039 00F03D 0039 43 43 00F03E 00F042 003E 44 44 00F043 00F04A 0043 45 46 00F04B 00F055 004B 47 50 00F056 00F05E 0056 51 51 00F05F 00F07E 005F 52 53 00F07F 00F084 007F 54 54 00F085 00F089 0085 55 55 00F08A 00F091 008A 56 57 00F092 00F097 0092 STAT...

Страница 36: ...H 00FABB F003 BEQ 00FAC0H 00FABD 4C30FB JMP PG FB30H 00FAC0 20F9F8 JSR PG F8F9H 00FAC3 206EF9 JSR PG F96EH STATUS M37750 51 Running in monitor_________________________________ R display memory main mnemonic options m0x0 run trace step display modify break end ETC You need to specify the values of M flag and X flag at the staring address of mnemonic memory display When the inverse assembler encount...

Страница 37: ...ow in which the command is invoked You need to use this command at each window Memory mnemonic file spmt_demo c address label data 00FAA3 _main 0B PHD 00FAA4 3B TSA 00FAA5 38 SEC 00FAA6 E90200 SBC A 0002H 00FAA9 1B TAS 00FAAA 3A INC A 00FAAB 5B TAD 00FAAC 64000100 LDM 0001H DP 00H 00FAB0 9C94050000 LDM 0000H DT 0594H 00FAB5 D8 CLM 00FAB6 A500 LDA A DP 00H 00FAB8 C90100 CMP A 0001H 00FABB F003 BEQ ...

Страница 38: ... spmt_demo c address label data 371 372 main program 373 374 main 375 376 int dummyv 00FAA3 _main 0B PHD 00FAA4 3B TSA 00FAA5 38 SEC 00FAA6 E90200 SBC A 0002H 00FAA9 1B TAS 00FAAA 3A INC A 00FAAB 5B TAD 377 dummyv 1 00FAAC 64000100 LDM 0001H DP 00H 378 tasknumber 0 STATUS M37750 51 Running in monitor_________________________________ R set source on inverse_video on run trace step display modify br...

Страница 39: ...ess The run from transfer_address command specifies that the emulator start executing at a previously defined start address run from transfer_address RETURN Note The run from transfer_address command is not available when you use MELPS 7700 Hex format From Reset The run from reset command specifies that the emulator begin executing from reset vector as actual microprocessor does See Running the Em...

Страница 40: ...0 000596 9D 00 00 00 00 00 00 00 00 00059E A5 00 00 00 00 00 00 00 00 0005A6 AD 00 00 00 00 00 00 00 00 0005AE B5 00 00 00 00 00 00 00 00 0005B6 BD 00 00 00 00 00 00 00 00 0005BE C5 00 00 00 00 00 00 00 00 0005C6 CD 00 00 00 00 00 00 00 00 0005CE D5 00 00 00 00 00 00 00 00 0005D6 DD 00 00 00 00 00 00 00 00 0005DE E5 00 00 00 00 00 00 00 00 0005E6 ED 00 00 00 00 00 00 00 00 0005EE F5 00 00 00 00 00...

Страница 41: ...ress data hex ascii 000402 09 10 FF FF FF FF FF FF FF 00040A 11 FF FF FF FF FF FF FF FF 000412 19 41 FF FF FF FF FF FF FF A 00041A 21 FF FF FF FF FF FF FF FF 000422 29 FF FF FF FF FF FF FF FF 00042A 31 FF FF FF FF FF FF FF FF 000432 39 FF FF FF FF FF FF FF FF 00043A 41 FF FF FF FF FF FF FF FF 000442 49 FF FF FF FF FF FF FF FF 00044A 51 FF FF FF FF FF FF FF FF 000452 59 FF FF FF FF FF FF FF FF 0004...

Страница 42: ...to emulation memory without suspending user program execution Refer to chapter 4 of this manual for more details Breaking into the Monitor The break command allows you to divert emulator execution from the user program to the monitor You can continue user program execution with the run command To break emulator execution from the demo program to the monitor enter the following command break RETURN...

Страница 43: ...ith BRK instructions you cannot define software breakpoints in target ROM Note When you mapped interanl RAM as emulation memory it is not allowed to set software breakpoints to this area Caution Software breakpoints should not be set enabled disabled or removed while the emulator is running user code If any of these commands are entered while the emulator is running user code and the emulator is e...

Страница 44: ...ware breakpoints are disabled To enable the software breakpoints feature enter the following command modify software_breakpoints enable RETURN When software breakpoints are enabled and you set a software breakpoint the BRK instruction will be placed at the address specified When the breakpoint interrupt instruction is executed program execution will break into the monitor Setting a Software Breakp...

Страница 45: ... DT 0592H 85 00F141 D8 CLM 00F142 AA TAX STATUS M37750 51 Running in monitor_________________________________ R set source on inverse_video on run trace step display modify break end ETC The asterisk in left side of the address lists points out that the software breakpoint has been set The opcode at the software breakpoint address was replaced to the software breakpoint instruction Note When a sof...

Страница 46: ...me inactivated To reactivate the breakpoint so that is pending you must re enter the modify software_breakpoints set command After the software breakpoint has been set enter the following command to cause the emulator to continue executing the demo program run RETURN A message on the status line shows that the software breakpoint has been hit The status line also shows that the emulator is now exe...

Страница 47: ...reakpoint was pending To clear all software breakpoints you can enter the following command modify software_breakpoints clear RETURN Displaying Registers Enter the following command to display registers You can display the basic registers or an individual register display registers RETURN Registers Next_PC 00F129 PC F129 PG 00 DT 00 SP 068D PS 0084 i A FFF8 B 0000 X 0000 Y 0400 DPR 068E STATUS M37...

Страница 48: ...B 0000 X 0000 Y 0400 DPR 068E Step_PC 00F129 LDM 0001H DT 058EH Next_PC 00F12E PC F12E PG 00 DT 00 SP 068D PS 0084 i A FFF8 B 0000 X 0000 Y 0400 DPR 068E Step_PC 00F12E LDM 0000H DT 0590H Next_PC 00F133 PC F133 PG 00 DT 00 SP 068D PS 0084 i A FFF8 B 0000 X 0000 Y 0400 DPR 068E STATUS M37750 51 Stepping complete__________________________________ R step run trace step display modify break end ETC Yo...

Страница 49: ...which monitor external input lines The analyzer collects data at each pulse of a clock signal and saves the data a trace state if it meets a storage qualification condition Source Line Referencing A trace may be taken and displayed using source line referencing Also lines of the source program can be displayed with the trace list where the trace occurred To display the trace with source code in in...

Страница 50: ...monic w symbols relative spmt_demo c line 201 thru 204 semantic_check int i after _semantic_check 3B0B PHD 120 nS 001 _semanti 000002 E938 E938H opcode fetch 240 nS 002 _semanti 000001 0694 TSA 240 nS 003 scrt0 a 0000EA 0694 0694H data write 120 nS 004 _semanti 000002 0694 SEC 120 nS 005 _semanti 000003 0002 SBC A 0002H 280 nS 006 _semanti 000004 0002 0002H opcode fetch 120 nS 007 _semanti 000006 ...

Страница 51: ...H data write 120 nS 004 00F464 0694 SEC 120 nS 005 00F465 0002 SBC A 0002H 280 nS 006 00F466 0002 0002H opcode fetch 120 nS 007 00F468 3A1B 3A1BH opcode fetch 360 nS 008 00F468 3A1B TAS 120 nS 009 00F469 645B INC A 120 nS STATUS M37750 51 Running user program Emulation trace complete______ R set symbols off run trace step display modify break end ETC As you can see the analysis trace display shows...

Страница 52: ...0 51 Running user program Emulation trace complete______ R display trace compress on run trace step display modify break end ETC As you can see the analysis trace display shows the analysis trace lists without fetch cycles With this command you can examine program execution easily If you want to see all of cycles including fetch cycles enter following command display trace compress off RETURN The ...

Страница 53: ...xxy Execution cycle fetch 0xx1111x1y Fetch cycle fg 0x0xxxxxxy Foreground cycle hold 0xx01xxxxy HOLD cycle mx 1xxxxxxxy Value of MX signal read 0xx1x1xx1y Read cycle ref 0xx00xxxxy Refresh cycle word 0xx1x1x0xy Word access write 0xx1x1xx0y Write to ROM cycle For a complete description of using the HP 64700 Series analyzer with the Softkey Interface refer to the Analyzer Softkey Interface User s Gu...

Страница 54: ... RETURN Ending to Continue Later You may also exit the Softkey Interface without specifying any options this causes the emulator to be locked When the emulator is locked other users are prevented from using it and the emulator configuration is saved so that it can be restored the next time you enter continue the Softkey Interface end RETURN Ending Locked from All Windows When using the Softkey Int...

Страница 55: ...he installation of the emulator probe into target systems Show you how to install the emulator probe Show you how to use features related to in circuit emulation Prerequisites Before performing the tasks described in this chapter you should be familiar with how the emulator operates in general Refer to the HP 64700 Emulators System Overview manual and the Getting Started chapter of this manual In ...

Страница 56: ... installing the emulator probe into the target system Do not install the emulator probe into the processor socket with power applied to the target system Caution DAMAGE TO THE EMULATOR WILL RESULT IF THE PROBE IS NOT INSTALLED CORRECTLY Make sure pin 1 of probe connector is aligned with pin 1 of the socket When installing the emulation probe be sure that the probe is installed into the processor s...

Страница 57: ...ulation pod 2 Remove the 7750 51 Series microprocessor from the target system socket Note the location of pin 1 on the processor and on the target system socket 3 Store the microprocessor in a protected environment such as antistatic foam 4 Install the target system probe into the target system microprocessor socket See figure 3 1 5 Turn on power of your target system and then turn on the emulator...

Страница 58: ...When your target system uses 64 pin shrink DIP socket use the adapter as shown in figure 3 2 Figure 3 2 Installing the Probe to SDIP64 Socket 3 4 In Circuit Emulation ...

Страница 59: ...cuit The emulation pod cannot generate clock signal using a ceramic or quartz crystal resonator Target Memory Access Size You can configure the emulator to access target system memory by byte access or word access to perform emulation commands Respond to Target System Interrupts You can configure the emulator whether or not the emulator responds to interrupt signals from the target system during f...

Страница 60: ...l microprocessor To specify a run from target system reset enter the following command run from reset The status now shows that the 7750 51 emulator is Awaiting target reset After the target system is reset the status line message will change to show the appropriate emulator status Note In the Awaiting target reset status you can not break into the monitor If you want to exit this status you need ...

Страница 61: ...et system resources target system memory register contents etc The emulator is a flexible instrument and may be configured to suit your needs at any stage of the development process This chapter describes the options available when configuring the HP 64147A emulator The configuration options are accessed with the following command modify configuration RETURN After entering the command above you wi...

Страница 62: ...g breaks on writes to ROM Specifying trace cycle foreground background both Enabling tracing refresh cycles Enabling tracing DMA cycles Enabling tracing HOLD HLDA cycles Enabling 16bit symbol display Defining the DT register value for symbol display Simulated I O Configuration Simulated I O is described in the Simulated I O Reference manual Interactive Measurement Configuration See the chapter on ...

Страница 63: ...e an emulation pod with clock faster than 16 MHz you need to select the high speed access mode to run the emulator with no wait state If the high speed access mode is not selected one wait state is inserted by the emulator external Selects the clock input to the emulator probe from the target system You must use a clock input conforming to the specifications for the 7750 51 Series microprocessor T...

Страница 64: ... you to select whether the emulator will be running in the monitor or held in the reset state upon completion of the emulator configuration How you answer this configuration question is important in some situations For example when the external clock has been selected and the target system is turned off reset to monitor should not be selected otherwise configuration will fail When an external cloc...

Страница 65: ... the user program all commands that cause a break except reset break run and step are refused For example the following commands are not allowed when runs are restricted to real time Display modify registers Display modify internal RAM or SFR Display modify target system memory Load store target system memory Caution If your target system circuitry is dependent on constant execution of program cod...

Страница 66: ...es appropriate chip_name which is needed for this configuration item Refer to this list to know appropriate chip_name or to determine if your processor is supported or not Note If you enter incorrect chip_name for this item processor type is not changed and this configuration will be finished Then you need to RECALL this configuration item and re enter correct chip_name Note If your processor is n...

Страница 67: ...f your processor These addresses can be specified on 16 byte boundaries If your processor has no internal RAM enter 0 as start address and end address of internal RAM area If your processor has only one SFR area specify the same value as the first one for the Second internal RAM questions Internal ROM area start address Internal ROM area end address Specify the start address and end address of int...

Страница 68: ...tion pod Modify value for Stack Pointer SP Reset value for the stack pointer is automatically set up to the end of internal RAM area When the processor you select has no internal RAM it is set up to FFF hex If you would like to change the value answer yes to this question Reset value for Stack Pointer SP This question allows you to specify the value to which the stack pointer SP will be set on ent...

Страница 69: ...an 16 MHz This question allows you to configure the emulator for clock internal external faster than 16 MHz no When the clock speed is equal or slower than 16 MHz select this answer The emulator runs with no wait state yes When the clock speed is faster than 16 MHz select this answer You will be asked the following question Enable high speed access mode for emulation memory When clock speed is fas...

Страница 70: ...e placed wherever you like Refer to Mapping memory section in this chapter The emulator generates the RDY signal and inserts one wait state for all memory access Note Changing this configuration will reset the memory map Monitor type The monitor type configuration question allows you to choose between a foreground monitor which is supplied with the emulation software but must be assembled linked c...

Страница 71: ...ion monitor tailored to the requirements of your system In this case you will need to use a foreground monitor linked into your program modules See the Using the Foreground Monitor appendix for more information on foreground monitors background Selects the use of the background monitor When you select the background monitor and the current monitor type is foreground you are asked the following que...

Страница 72: ...ontain both monitor and user program symbols you can create a different absolute file in which the monitor and user program are linked Then you can load this file after configuration Mapping memory The emulation memory consists of 128K 512K 1M 2M bytes mappable in 256 byte blocks You can define up to 16 different map terms The memory mapper allows you to characterize memory locations It allows you...

Страница 73: ...ge of monitor type requires map reset question you must map again for memory space where internal ROM is located as emulation ROM Blocks of memory can also be characterized as guarded memory Guarded memory accesses will generate break to monitor requests Writes to ROM will generate break to monitor requests if the Enable breaks on writes to ROM configuration item is enabled see the Debug Trace Con...

Страница 74: ...Therefore execution of user program is suspended to perform your direction However you can configure the emulator so that write cycles are performed to both internal RAM or SFR and emulation memory In this case you can display the data written to emulation memory without suspending program execution To use this feature you need to map these area to emulation RAM eram When you do this you can displ...

Страница 75: ...RAM and SFR without specifying fcode syntax Note The contents of emulation memory is updated only when user program writes data to internal RAM or SFR Therefore the contents of emulation memory may be different from the actual value of internal RAM Especially you should pay a close attention when seeing flags of SFR Note When you modify memory the emulator breaks to the monitor and writes data to ...

Страница 76: ...te Specifies that the emulator will access target system memory by byte accesses word Specifies that the emulator will access target system memory by word accesses Respond to target system interrupts This configuration allows you to specify whether or not the emulator responds to interrupt signals from the target system during foreground operation yes The emulator will respond to interrupt signals...

Страница 77: ...the emulator break to the monitor upon attempts to write to memory space mapped as ROM The emulator will prevent the processor from actually writing to memory mapped as emulation ROM however they cannot prevent writes to target system RAM locations which are mapped as ROM even though the write to ROM break is enabled yes Causes the emulator to break into the emulation monitor whenever the user pro...

Страница 78: ...uration You can direct the emulator to send refresh cycle data to emulation analyzer or not to send it yes Enables the emulator to trace refresh cycles no Refresh cycles will not appear on analysis trace list Trace DMA cycles by emulation analyzer This question is asked only when the 7720 processor is selected in in the configuration You can direct the emulator to send DMA cycle data to emulation ...

Страница 79: ...are displayed only in 24bit addresses of mnemonic field yes Symbols are displayed both in 16 and 24bit addresses of mnemonic field When you select this answer you are asked the following question Data bank register value for symbolic references Since symbols have 24bit value you need to specify the value of the upper 8bit which will be used to display symbols in 16bit addresses The value specified...

Страница 80: ...er s Guide Saving a Configuration The last configuration question allows you to save the previous configuration specifications in a file which can be loaded back into the emulator at a later time Configuration file name FILE The name of the last configuration file is shown or no filename is shown if you are modifying the default emulator configuration If you press RETURN without specifying a filen...

Страница 81: ...Softkey Interface command load configuration FILE RETURN This feature is especially useful after you have exited the Softkey Interface with the end release_system command it saves you from having to modify the default configuration and answer all the questions again To reload the current configuration you can enter the following command load configuration RETURN Configuring the Emulator 4 21 ...

Страница 82: ...en the following conditions are met The emulator is used with the M37780 81 82 83 85 95 96 emulation pod The processor is operating in the memory expansion or microprocessor mode with 8 bit external bus Step Command to Internal RAM Step command to internal RAM area is not available DMA Support Direct memory access to emulation memory is not allowed Watch Dog Timer in Background Watch dog timer sus...

Страница 83: ...RDY HOLD input while in background monitor Accessing External Memory Area in SFR When operation mode is memory expansion or microprocessor mode there is external memory area in SFR However accessing to this area is not allowed High Speed Bus Mode Always set bus mode as low speed bus mode when you use M37751 emulation pod HP 64147A 7750 51 emulator does not support high speed bus mode Note that bus...

Страница 84: ...Notes 4 24 Configuring the Emulator ...

Страница 85: ... Assembler and fm7750 src is written for MRI ASMM77 Assembler In this capter fm7750 a77 is used for the sample Comparison of Foreground and Background Monitors An emulation monitor is required to service certain requests for information about the target system and the emulation processor For example when you request a register display the emulation processor is forced into the monitor The monitor ...

Страница 86: ...en the emulation processor enters the monitor code to display registers it will not respond to target system interrupt requests This may pose serious problems for complex applications that rely on the microprocessor for real time non intrusive support Also the background monitor code resides in emulator firmware and can t be modified to handle special conditions Foreground Monitors A foreground mo...

Страница 87: ...d parameter m77cnvhp fm7750 RETURN If you haven t already compiled the sample program do that now Refer to the Getting Started chapter for instructions on assembling linking and converting the sample program Modifying Location Declaration Statement You may need to modify the foreground monitor program to adjust it to your needs Monitor Address You can load the monitor fm7750 a77 at any base addres...

Страница 88: ...751 WORD 0 OTHER_THAN_7751 You can specify 7751 microprocessor by modifying this section like below CHIP7751 WORD 1 7751 Modifying the Emulator Configuration The following assumes you are modifying the default emulator configuration that is the configuration present after initial entry into the emulator or entry after a previous exit using end release_system Enter all the default answers except th...

Страница 89: ...xample When you specify a foreground monitor and enter the monitor address all existing memory mapper terms are deleted and a term for the monitor block will be added Add the additional term to map memory for the sample program and map other area as target RAM 400h thru 5ffh emulation ram RETURN 0c000h thru 0ffffh emulation ram RETURN default target ram RETURN end RETURN If your processor has no i...

Страница 90: ...TURN Running User Program Before running the user program you should initialize the stack pointer by breaking the emulator out of reset break RETURN To run the sample program from address Init enter the following command run from scrt0 a77 start RETURN Now you can use the emulator with the foreground monitor A 6 Using A Foreground Monitor ...

Страница 91: ...ou are using the foreground monitor Synchronized measurements You cannot perform synchronized measurements over the CMB when using a foreground monitor If you need to make such measurements select the background monitor type when configuring the emulator Using A Foreground Monitor A 7 ...

Страница 92: ...Notes A 8 Using A Foreground Monitor ...

Страница 93: ...n load IEEE 695 format without any conversion To execute the converter program use the following command m77cnvhp q file_name RETURN file_name is the name of MELPS 7700 Hex format file without suffix The converter program will read the MELPS 7700 Hex format file with hex suffix and the symbol file with sym suffix It will generate the following HP format files HP Absolute file with X suffix HP Link...

Страница 94: ...names must be 15 and less characters in length File name must be 14 and less characters in length Up to 10000 sections can be handled Up to 1000 functions can be handled If a label name or symbol name contains it will be replaced with _ Note When you convert files which contain no local symbols the assembler symbol files A file won t be generated In this case you will see an error message when you...

Страница 95: ...17 C caution statements emulator cannot run without a stack pointer 4 9 internal memory must be assigned as emulation memory 4 13 pin alignment of emulator probe 3 2 real time dependent target system circuitry 4 5 software breakpoint cmds while running user code 2 21 Clearing software breakpoints 2 25 clock source external 4 3 internal 4 3 comparison of foreground background monitors A 1 compiling...

Страница 96: ...playing 16bit symbols 4 19 DMA controllers external 4 13 E emul700 command to enter the Softkey Interface 2 5 2 32 emulation memory loading absolute files 2 10 mapping internal RAM area 4 14 note on target accesses 4 13 RAM and ROM characterization 4 12 size of 4 12 emulation monitor 4 10 background 4 11 Emulation pod ordering information 1 3 Emulation processor ordering information 1 3 Emulator b...

Страница 97: ...4 7 set up internal SFR address 4 7 stack pointer 4 8 target memory access size 4 16 trace background foreground operation 4 17 trace DMA cycles 4 18 trace HOLD HLDA cycles 4 19 trace refresh cycles 4 18 emulator configuration display 16bit symbols 4 19 Emulator features analyzer 1 4 breakpoints 1 6 coverage measurements 1 6 emulation memory 1 4 foreground and background monitor 1 5 processor rese...

Страница 98: ...figuration 4 17 end command 2 32 4 21 evaluation chip 1 8 4 23 exit Softkey Interface 2 32 external analyzer configuration 4 20 external clock source 4 3 F foreground monitor A 2 defining processor mode register address A 4 defining the location A 3 example of using A 3 limitations A 7 location of shipped files A 1 modify location declaration statement A 3 selecting 4 10 step command is unavailabl...

Страница 99: ... 23 clock speed 4 22 DMA support 4 22 emulation command fails in stop wait mode 4 23 high speed bus mode 4 23 RDY HOLD input in background cycles 4 23 RMPA instruction 4 23 stack pointer 4 23 step command to Interanl RAM 4 22 step command with foreground monitor 4 22 step fails when an interrupt exists 4 23 trace internal RAM 4 22 watch dog timer 4 22 linking the demo program 2 4 loading absolute ...

Страница 100: ...1 A 2 comparison of foreground background A 1 foreground A 2 monitor program 1 5 background 1 5 foreground 1 5 monitor type selecting 4 10 monitors foreground specifying the filename 4 12 N nosymbols 2 11 note mx flag 2 14 2 15 pod command from keyboard 2 9 status line error 2 10 notes converting files with no symbols B 2 debug option must need to generate local symbol information 2 4 display memo...

Страница 101: ...command 2 9 help information 2 9 predefining stack pointer 4 8 prerequisites for using the emulator 2 2 probe cable installation 3 2 processor mode register defining the location A 4 processor operation mode 4 8 Purpose of the Emulator 1 1 R real time execution restricting the emulator to 4 5 registers display modify 2 25 release_system end command option 2 32 4 20 4 21 reset emulator running from...

Страница 102: ...on 4 7 SFR 4 14 Shrink DIP package 3 4 simulated I O 4 20 single step limitation 2 27 softkey driven help information 2 8 Softkey Interface entering 2 5 exiting 2 32 on line help 2 8 software breakpoints 2 21 enabling disabling 2 22 clearing 2 25 displaying 2 24 setting 2 22 software installation 2 2 source line referencing 2 27 source lines displaying 2 13 specifing mx flag 2 14 stack pointer 1 8...

Страница 103: ...edure 3 3 target system reset run from reset 3 6 terminal interface 2 9 trace simple trigger 2 27 trace DMA cycles emulator configuration 4 18 trace HOLD HLDA cycles emulator configuration 4 19 trace listing with 16bit symbols 4 19 trace refresh cycles emulator configuration 4 18 trace displaying with time countabsolute 2 30 trace displaying with compress mode 2 29 tracing background operation 4 1...

Страница 104: ...enable disable by emulator configuration 4 17 window systems 2 32 write to ROM break 4 17 10 Index ...

Страница 105: ...Notes Index 11 ...

Отзывы: