background image

Controls the display format for the data, memory, register, software breakpoint, and
trace displays.With the set command, you can adjust the display format results for
various measurements, making them easier to read and interpret.  Formatting of
source lines, symbol display selection and width, and update after measurement can
be defined to your needs.

The display command uses the set command specifications to format measurement
results for the display window.  Another option to the set command, <ENV_VAR>
= <VALUE>
, allows you to set and export system variables to the UNIX
environment.

The default display format parameters are the same as those set by the commands:

set update

set source off symbols off

You can return the display format to this state by entering:

set default

The parameters are as follows:

default

This option restores all the set options to their default settings.

<ENV_VAR>

Specifies the name of a UNIX environment variable to be set.

=

The equals sign is used to equate the <ENV_VAR> parameter to a particular value
represented by <VALUE>.

inverse video

      off

This displays source lines in normal video.

      on

This highlights the source lines on the screen (dark characters on light background)
to differentiate the source lines from other data on the screen.

Chapter 11: Emulator/Analyzer Interface Commands
set

372

Summary of Contents for 64780A

Page 1: ...Graphical User Interface User s Guide MC68360 68EN360 Emulator Analyzer HP 64780A ...

Page 2: ...be photocopied reproduced 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 MS DOS R is a U S registered trademark of Microsoft Corporation UNIX R is a registered trademark in the United States and other countries licensed exclusively through X Open Company Limited Hewlett Pa...

Page 3: ...accompanying product changes Therefore do not expect a one to one correspondence between product updates and manual revisions Edition 1 B3091 97000 December 1993 Edition 2 B3091 97001 April 1996 Safety and Certification and Warranty Safety information and certification and warranty information can be found at the end of this manual on the pages before the back cover iii ...

Page 4: ...w debugging of a target system at remote locations For software development the HP AxCASE environment is available on SUN SPARCsystems and on HP workstations This environment includes an ANSI standard C compiler assembler linker a debugger the HP Software Performance Analyzer that allows you to optimize your product software and the HP Branch Validator for test suite verification The C compiler as...

Page 5: ...iprocessor emulation synchronous start of 32 emulation sessions cross triggerable from another emulator logic analyzer or oscilloscope Demo board and self test module included Emulation bus analyzer 80 channel emulation bus analyzer Post processed dequeued trace with symbols Eight events each consisting of address status and data comparators Events may be sequenced eight levels deep and can be use...

Page 6: ...nge the appearance or behavior of the Graphical User Interface and describes in detail each of the commands available in the emulator analyzer and lists each of the messages you may see while using the MC68360 emulator analyzer along with suggested corrective actions Part 4 of this book shows you how to install the Graphical User Interface and Softkey Interface software and how to update your emul...

Page 7: ...rt the demo 12 Step 2 Display the program in memory 13 Step 3 Run from the transfer address 14 Step 4 Step high level source lines 15 Step 5 Display the previous mnemonic display 16 Step 6 Run until an address 17 Step 7 Display data values 18 Step 8 Display registers 19 Step 9 Step assembly level instructions 20 Step 10 Trace the program 21 Step 11 Display memory at an address in a register 23 Ste...

Page 8: ...lay the status of emulators 43 To unlock an interface that was left locked by another user 44 Opening Other HP 64700 Interface Windows 45 To open additional emulator analyzer windows 45 To open the high level debugger interface window 46 To open the software performance analyzer SPA interface window 46 Exiting HP 64700 Interfaces 47 To close an interface window 47 To exit a debug emulation session...

Page 9: ...ine pop up menu 69 To recall commands 70 To get help about the command line 70 Using the Command Line with the Keyboard 71 To enter multiple commands on one command line 71 To recall commands 72 To edit commands 72 To access on line help information 73 Using Command Files 74 To start logging commands to a command file 77 To stop logging commands to a command file 77 To playback execute a command f...

Page 10: ...s 97 To display information about the memory map 97 To display information about the reset mode configuration 98 To review the upper address mode of the present configuration 98 To display information about the present clock input mode 99 To display assembly language instructions for setting up the SIM 99 To check for configuration inconsistencies 100 To verify the emulator configuration 101 6 Usi...

Page 11: ...om soft reset 125 To run programs until an address 125 To stop break from user program execution 126 To step high level source lines 126 To step assembly level instructions 127 To reset the emulation processor 128 Using Software Breakpoints 129 To display the breakpoints list 130 To enable disable breakpoints 131 To set a permanent breakpoint 133 To set a temporary breakpoint 135 To set all breakp...

Page 12: ...Using System Commands 156 To set UNIX environment variables 156 To display the name of the emulation module 157 To display the event log 157 To display the error log 158 To edit files 158 To copy information to a file or printer 162 To save peripheral register settings to a file 164 To load peripheral register settings from a file 164 To remove all temporary files 165 To generate boot code for con...

Page 13: ...laying the Trace List 186 To disassemble the trace list 189 To specify trace disassembly options 190 To specify trace dequeueing options 192 To display the trace without disassembly 194 To display symbols in the trace list 195 To display source lines in the trace list 197 To change the column width 198 To select the type of count information in the trace list 199 To offset addresses in the trace l...

Page 14: ...am 222 Saving and Restoring Trace Data and Specifications 225 To store a trace specification 225 To store trace data 226 To load a trace specification 227 To load trace data 228 8 Making Software Performance Measurements Activity Performance Measurements 231 To set up the trace command for activity measurements 233 To initialize activity performance measurements 234 To interpret activity measureme...

Page 15: ...art synchronous measurements 268 To disable synchronous measurements 268 Using Trigger Signals 269 To drive the emulation analyzer trigger signal to the CMB 272 To drive the emulation analyzer trigger signal to the BNC connector 272 To break emulator execution on signal from CMB 273 To break emulator execution on signal from BNC 273 To arm the emulation analyzer on signal from CMB 274 To arm the e...

Page 16: ...e 294 How Pop up Menus Map to the Command Line 299 Syntax Conventions 301 Commands 302 break 303 bbaunld 304 cmb_execute 305 copy 306 copy local_symbols_in 309 copy memory 310 copy registers 312 copy trace 313 display 314 display configuration_info 316 display data 319 display global_symbols 322 display local_symbols_in 323 display memory 324 display registers 328 display simulated_io 329 display ...

Page 17: ...asurement_end 356 performance_measurement_initialize 357 performance_measurement_run 359 pod_command 360 QUALIFIER 362 RANGE 364 reset 366 run 367 SEQUENCING 369 set 371 specify 376 STATE 378 step 380 stop_trace 382 store 383 SYMB 385 sync_sim_registers 392 trace 393 TRIGGER 396 wait 398 WINDOW 400 12 Emulator Error Messages Emulator error messages 404 Contents xvii ...

Page 18: ...Part 4 Concept Guide 13 Concepts of the EMSIM and EMRAM Concepts of the EMSIM and EMRAM 445 Concepts of the EMRAM 447 Concepts of Show Cycles 447 EMSIM EMRAM Utility Command 448 Contents xviii ...

Page 19: ...l the software from the media 463 Step 2 Start the X server and OpenWindows 464 Step 3 Set the necessary environment variables 464 Step 4 Verify the software installation 466 Step 5 Map your function keys 467 Verifying the Installation 468 Step 1 Determine the logical name of your emulator 468 Step 2 Start the interface with the emul700 command 469 Step 3 Exit the Graphical User Interface 472 15 I...

Page 20: ...xx ...

Page 21: ...Part 1 Quick Start Guide 1 ...

Page 22: ...Quick Start Guide In This Part This part describes how to quickly become productive with the emulation system Part 1 2 ...

Page 23: ...1 Getting Started 3 ...

Page 24: ...ftkey Interface which is provided for several types of terminals terminal emulators and bitmapped displays When using the Softkey Interface commands are entered from the keyboard The Softkey Interface Display area Status line Command line Display area Can show memory data values analyzer traces registers breakpoints status simulated I O global symbols local symbols pod commands the emulator s unde...

Page 25: ...ward or backward The Clear line key or CTRL e clears from the cursor position to the end of the line The CTRL u key clears the whole command line Softkey Interface Conventions Example Softkey Interface commands throughout the manual use the following conventions bold Commands options and parts of command syntax bold italic Commands options and parts of command syntax which may be entered by pressi...

Page 26: ...Command buttons Includes command recall button Cursor buttons for command line area control Menu Bar Provides pulldown menus from which you select commands When menu items are not applicable they appear half bright and do not respond to mouse clicks Action Keys User defined pushbuttons You can label these pushbuttons and define the action to be performed Chapter 1 Getting Started 6 ...

Page 27: ...ower arrows to scroll to the top home and bottom end of the window Click on the inner arrows to scroll one line Drag the slider handle up or down to cause continuous scrolling Click between the inner arrows and the slider handle to page up or page down Status Line Displays the emulator and analyzer status Also when error and status messages occur they are displayed on the status line in addition t...

Page 28: ...of the command line will automatically turn the command line back on Graphical User Interface Conventions Choosing Menu Commands This chapter uses a shorthand notation for indicating that you should choose a particular menu item For example the following instruction Choose File Load Configuration means to first display the File pulldown menu then display the Load cascade menu then select the Confi...

Page 29: ... the default mouse button bindings Mouse Button Bindings and Description Generic Button Name Bindings Description HP 9000 Sun SPARCsystem paste left left Paste from the display area to the entry buffer command paste middle1 middle1 Paste from the entry buffer to the command line text entry area select right right Click selects first item in pop up menus Press and hold displays menus command select...

Page 30: ...Sun SPARCsystem menu select extend char extend char insert insert char insert char delete delete char delete char left arrow left arrow left arrow right arrow right arrow right arrow up arrow up arrow up arrow down arrow down arrow down arrow escape escape escape TAB TAB TAB Chapter 1 Getting Started 10 ...

Page 31: ...that is plugged into the demo board not your target system You have selected the appropriate clock module and installed it in the emulator probe according to the instructions in the MC68360 Emulator Analyzer HP 64780A Installation Service Terminal Interface manual that was supplied with your emulator hardware The Demonstration Program The demonstration program used in this chapter is a simple envi...

Page 32: ... are using edit the platformScheme resource setting in the Xdefaults emul file For example if the Graphical User Interface will be run on a HP 9000 computer and displayed on a Sun SPARCsystem computer change the platform scheme to SunOS 4 Start the emulator analyzer demo Startemul logical_emul_name RETURN This script starts the emulator analyzer interface with a customized set of action keys loads...

Page 33: ...emonic Or using the command line enter display memory main mnemonic RETURN The default display mode settings cause source lines and symbols to appear in displays where appropriate Notice you can use symbols when specifying expressions The global symbol main is used in the command above to specify the starting address of the memory to be displayed Chapter 1 Getting Started Step 2 Display the progra...

Page 34: ... until main RETURN Notice the message Software break address is displayed on the status line and that the emulator is Running in monitor you may have to click the select mouse button to remove temporary messages from the status line When you run until an address a breakpoint is set at the address before the program is run Notice the highlighted bar on the screen it shows the current program counte...

Page 35: ...e action key Or using the command line enter step source RETURN Notice that the highlighted bar the current program counter moves to the next high level source line 2 Step into the init_system function by continuing to step source lines either by clicking on the Step Source action key by clicking on the Again action key which repeats the previous command or by entering the step source command on t...

Page 36: ...memory mnemonic previous_display RETURN This command is useful for example when you have stepped into a function that you do not wish to look at you can display the previous mnemonic display and run until the source line that follows the function call Chapter 1 Getting Started Step 5 Display the previous mnemonic display 16 ...

Page 37: ...sition the mouse pointer over the line proc_spec_init press and hold the select mouse button and choose Run Until from the pop up menu Or using the command line enter run until main main c line 98 RETURN After the command has executed notice the highlighted bar indicates the program counter has moved to the specified source line Chapter 1 Getting Started Step 6 Run until an address 17 ...

Page 38: ...ouse button notice num_checks is cut and pasted into the entry buffer 2 Click on the Disp Var action key Or using the command line enter display data num_checks int32 RETURN The num_checks variable is added to the data values display and its value is displayed as a 32 bit integer Chapter 1 Getting Started Step 7 Display data values 18 ...

Page 39: ...play registers You can display the contents of the processor registers Choose Display Registers BASIC Or using the command line enter display registers RETURN Chapter 1 Getting Started Step 8 Display registers 19 ...

Page 40: ...ne instruction from the current program counter click on the Step Asm action key Or using the command line enter step RETURN Notice when registers are displayed stepping causes the assembly language instruction just executed to be displayed Chapter 1 Getting Started Step 9 Step assembly level instructions 20 ...

Page 41: ...ox and click the OK pushbutton Notice that the value main has been returned to the entry buffer 3 To trigger on the address main and store states that occur after the trigger choose Trace After Or using the command line enter trace after main RETURN Notice the message Emulation trace started appears on the status line This shows that the analyzer has begun to look for the trigger state which is th...

Page 42: ... lines and symbols to appear in the trace list Captured states are numbered in the left hand column of the trace list Line 0 always contains the state that caused the analyzer to trigger Other columns contain address information data values opcode or status information and time count information Chapter 1 Getting Started Step 10 Trace the program 22 ...

Page 43: ... the command file mematreg RETURN A command file dialog box appears or a prompt appears in the command line 2 Move the mouse pointer to the dialog box text entry area type A7 and click on the OK button Or if the prompt is in the command line A7 RETURN Chapter 1 Getting Started Step 11 Display memory at an address in a register 23 ...

Page 44: ...ed Or using the command line enter end release_system RETURN Solving Problems If you encounter problems when using the emulator analyzer refer to the chapter titled Solving Problems in the MC68360 Emulator Analyzer Installation Service Terminal Interface Manual Chapter 1 Getting Started Step 12 Exit the emulator analyzer interface 24 ...

Page 45: ...Part 2 Using The Emulator 25 ...

Page 46: ...mulation resources such as memory and how to enable and disable certain emulator features Chapter 6 Using the Emulator shows you how to use the emulator analyzer commands to control the emulation processor and make simple emulation measurements Chapter 7 Using the Emulation Bus Analyzer explains how to use the emulation bus analyzer to record program execution for debugging Chapter 8 Making Softwa...

Page 47: ...2 Plugging into a Target System 27 ...

Page 48: ...wing sections Connecting the emulator to the target system Plugging into the Motorola QUADS target system Before attempting to run the emulator ensure that you have selected the proper clock module and installed it in the emulator probe The details of clock module selection are discussed in the MC68360 Emulator Analyzer HP 64789A Installation Service Terminal Interface manual 28 ...

Page 49: ...ways of connecting the 68360 emulator probe to a target system Plug it into the PGA socket directly Plug it into the PGA socket via flexible cable Plug in a PQFP adapter socket into the PGA socket in place of the emulator and then connect the emulator probe to the PQFP adapter Chapter 2 Plugging into a Target System Connecting the Emulator to the Target System 29 ...

Page 50: ...res should be taken before handling the emulator probe to avoid damaging the internal components of the emulator by static electricity Step 1 Turn OFF power CAUTION Possible Damage to the Emulator Make sure target system power is OFF and make sure HP 64700 power is OFF before removing or installing the emulator probe into the target system Do not turn HP 64700 power OFF while the emulator is plugg...

Page 51: ...er pieces The use of more than one pin extender is discouraged unless it is necessary for mechanical clearance reasons because pin extenders cause signal quality degradation 1 Install the emulator probe into the target system socket Make sure that pin 1 of the connector aligns with pin 1 of the socket Damage to the emulator will result if the probe adapter is incorrectly installed Chapter 2 Pluggi...

Page 52: ...Step 3 Turn ON power 1 Turn emulator power ON 2 Turn target system power ON Chapter 2 Plugging into a Target System Connecting the Emulator to the Target System 32 ...

Page 53: ...t the emulator to the Motorola QUADS board The Motorola QUADS board gives you an opportunity to plug the emulator into a target system that contains one 68360 master chip and one 68360 slave chip Chapter 2 Plugging into a Target System Plugging into the Motorola QUADS Target System 33 ...

Page 54: ...lator must be plugged into the master processor Make sure pin 1 of the Quads board microprocessor socket and pin 1 of the emulator probe are properly aligned before inserting the probe into the socket Otherwise you may damage the emulator circuitry Three or four pin protectors will be required to lift the probe above other hardware on the Quads board Ensure that the default clock module is plugged...

Page 55: ...Chapter 2 Plugging into a Target System Plugging into the Motorola QUADS Target System 35 ...

Page 56: ...lator Config In the Emulator Configuration dialog box select Emulator Pod Settings In the Pod Settings dialog box select the following Yes for Buffer AS DS and R W Off for Clock O1 Drive to Target 8 bits for Memory Size for Chip Select 5 Choose Execution Run from Reset Verify that the Quads board boots up and runs normally Chapter 2 Plugging into a Target System Plugging into the Motorola QUADS Ta...

Page 57: ...e command file parameter dialog box enter 22000H and click OK This identifies the address of the slave processor 6 Click Done in the New Slave Addresses Browser Window when you have seen the content that identifies the addresses of the master and slave processors Note that steps 1 through 6 of this procedure only have to be done to set up the emulator for slave registers displays Once these steps ...

Page 58: ...wser Window opens It shows the contents of the slave processor s pepar registers Press Done when finished reviewing the register contents To view another register in the slave register set simply repeat steps 12 and 13 above Chapter 2 Plugging into a Target System Plugging into the Motorola QUADS Target System 38 ...

Page 59: ...3 Starting and Exiting HP 64700 Interfaces 39 ...

Page 60: ...bugging software The Software Performance Analyzer interface which is also a separate product lets you make measurements that can help you improve the performance of your software These interfaces can operate at the same time with the same emulator When you perform an action in one of the interfaces it is reflected in the other interfaces Up to 10 interface windows may be started for the same emul...

Page 61: ...ul_name command If usr hp64000 bin is specified in your PATH environment variable as shown in Chapter 14 Installation you can start the interface with the emul700 emul_name command The emul_name is the logical emulator name given in the HP 64700 emulator device table usr hp64000 etc 64700tab net If you are running a window system on your host computer for example the X Window System you can run th...

Page 62: ...ial em68360 m68360 myhost dev emcom23 OFF 9600 NONE XON 2 8 If you re currently running the X Window System the Graphical User Interface starts otherwise the Softkey Interface starts The status message shows that the default configuration file has been loaded If the command is not successful you will be given an error message and returned to the UNIX prompt Error messages are described in Chapter ...

Page 63: ...nd The l option of the emul700 command lists the status of all emulators defined in the 64700tab and 64700tab net files If a logical emulator name is included in the command just the status of that emulator is listed You can also use the v option with the l option for a verbose listing of the status information Examples To list verbosely the status of the emulator whose logical name is em68360 emu...

Page 64: ...e that was left locked by another user Use the emul700 U emul_name command The U option to the emul700 command may be used to unlock the emulators whose logical names are specified This command will fail if there currently is a session in progress Examples To unlock the emulator whose logical name is em68360 emul700 U em68360 RETURN Chapter 3 Starting and Exiting HP 64700 Interfaces Starting the E...

Page 65: ...Analyzer under Graphic Windows or enter the emul700 emul_name command in another terminal emulation window To open additional Softkey Interface windows choose File Emul700 Emulator Analyzer under Terminal Windows or enter the emul700 u skemul emul_name command in another terminal emulation window You can open additional Graphical User Interface windows or terminal emulation windows containing the ...

Page 66: ... window For information on how to use the high level debugger interface refer to the debugger emulator User s Guide To open the software performance analyzer SPA interface window Choose File Emul700 Performance Analyzer under Graphic Windows or enter the emul700 u xperf emul_name command in another terminal emulation window For information on how to use the software performance analyzer refer to t...

Page 67: ...s how to Close an interface window Exit a debug emulation session To close an interface window In the interface window you wish to close choose File Exit Window Or in the emulator analyzer interface command line enter the end command with no options All other interface windows remain open and the emulation session continues unless the window closed is the only one open for the emulation session In...

Page 68: ... current configuration to a temporary file and locks the emulator to prevent other users from accessing it When you again start the interface with the emul700 command the temporary file is reloaded and therefore you return to the configuration you were using when you quit the interface locked Also saved when you exit the interface locked are the contents of the entry buffer and command recall buff...

Page 69: ...4 Entering Commands 49 ...

Page 70: ...rface gives you the option of entering commands in the same manner as they are entered in the Softkey Interface If you are using the Softkey Interface you can only enter commands from the keyboard using the command line The menu commands in the Graphical User Interface are a subset of the commands available when using the command line While you have a great deal of capability in the menu commands ...

Page 71: ... commands This section describes how to Choose a pulldown menu item using the mouse Choose a pulldown menu item using the keyboard Use the pop up menus Use the entry buffer Copy and paste to the entry buffer Use action keys Use dialog boxes Access help information Chapter 4 Entering Commands Using Menus the Entry Buffer and Action Keys 51 ...

Page 72: ...own and move the mouse pointer toward the arrow on the right edge of the menu The cascade menu will display Repeat this step for the cascade menu until you find the desired menu item 4 Release the mouse button to select the menu choice If you decide not to select a menu item simply continue to hold the mouse button down move the mouse pointer off of the menu and release the mouse button Some menu ...

Page 73: ...ouse pointer off of the menu and click the mouse button Some menu items have an ellipsis as part of the menu label An ellipsis indicates that the menu item will display a dialog or other box when the menu item is chosen To choose a pulldown menu item using the keyboard To initially display a pulldown menu press and hold the menu select key for example the Extend char key on a HP 9000 keyboard and ...

Page 74: ...as a cascade menu attached to it then typing the keyboard mnemonic displays the cascade menu Some menu items have an ellipsis as part of the menu label An ellipsis indicates that the menu item will display a dialog or other box when the menu item is chosen Dialog boxes support the use of the keyboard as well To direct keyboard input to a dialog box you must position the mouse pointer somewhere ins...

Page 75: ...e mouse pointer to the desired menu item 4 Release the mouse button to select the menu choice If you decide not to select a menu item simply continue to hold the mouse button down move the mouse pointer off of the menu and release the mouse button The following pop up menus are available in the Graphical User Interface Mnemonic Memory Display Breakpoints Display Global Symbols Display Local Symbol...

Page 76: ...t the text to copy and paste release the paste mouse button You can copy and paste from the display area the status line and from the command line entry area When you position the pointer and click the mouse button the interface expands the highlight to include the most complete text string it considers to be discrete Discrete here means that the interface will stop expanding the highlight in a gi...

Page 77: ...dow and then use it in another window On a memory display or trace display a symbol may not be completely displayed because there are too many characters to fit into the width limit for a particular column of the display To make a symbol usable for copy and paste you can scroll the screen left or right to display all or at least more of the characters from the symbol The interface displays absolut...

Page 78: ...a position the mouse pointer over the symbol and then click the paste mouse button A mouse click causes the interface to expand the highlight to include the symbol num_checks and paste the symbol into the entry buffer Chapter 4 Entering Commands Using Menus the Entry Buffer and Action Keys 58 ...

Page 79: ...en you restart the interface You can predefine entries for the Entry Buffer Recall dialog box and define the maximum number of entries by setting X resources refer to Chapter 10 Setting X Resources See the following To use dialog boxes section for information about using dialog boxes To use the entry buffer 1 Place information into the entry buffer see the previous To place values into the entry b...

Page 80: ...sary choose the insert or replace mode for the command entry area 5 Click the command paste mouse button to paste the text in the command line entry area at the current cursor position The entire contents of the entry buffer are pasted into the command line at the current cursor position Although a paste from the display area to the entry buffer affects all displayed entry buffers in all open wind...

Page 81: ...Chapter 10 Setting X Resources for more information about creating action keys To use dialog boxes 1 Click on an item in the dialog box list to copy the item to the text entry area 2 Edit the item in the text entry area if desired 3 Click on the OK pushbutton to make the selection and close the dialog box click on the Apply pushbutton to make the selection and leave the dialog box open or click on...

Page 82: ...ome common properties Most dialog boxes can be left on the screen between uses Dialog boxes can be moved around the screen and do not have to be positioned over the graphical interface window If you iconify the interface window all dialog boxes are iconified along with the main window Except for the File Selection dialog box predefined entries for each dialog box and the maximum number of entries ...

Page 83: ... the dialog box Label informs you what kind of file selection you are performing Text entry area Text is either copied here from the recall list or entered directly Clicking this button chooses the file name displayed in the text entry area and closes the dialog box Entering a new file filter and clicking this button causes a list of files matching the new filter to be read from the directory Clic...

Page 84: ...og box Text entry area Directory name is either copied here from the recall list or entered directly Clicking this button chooses the directory displayed in the text entry area and closes the dialog box Clicking this button chooses the directory displayed in the text entry area but keeps the dialog box on the screen instead of closing it Clicking this button cancels the directory selection operati...

Page 85: ...may leave the window on the screen while you continue using the interface Help available for use of the Action Keys General information about using Action Keys in the 68360 emulator is available by pressing the Help 360 Action Key Detailed information for configuring a particular SIM60 or CPM register can be obtained by placing the name of the register in the entry field and pressing the Help Reg ...

Page 86: ...the command line off on Enter commands Edit commands Recall commands Display the help window To turn the command line on or off To turn the command line on or off using the pulldown menu choose Settings Command Line To turn the command line on or off using the status line pop up menu position the mouse pointer within the status line area press and hold the select mouse button and choose Command Li...

Page 87: ...1 Build a command using the softkey label pushbuttons by successively positioning the mouse pointer on a pushbutton and clicking the pushbutton select mouse button until a complete command is formed 2 Execute the completed command by clicking the Return pushbutton found near the bottom of the command line in the Command group Or Execute the completed command using the Command Line entry area pop u...

Page 88: ...rs to be inserted To delete characters to the left of the cursor position press the BACKSPACE key When the cursor arrives at the beginning of a command word or token the softkey labels change to display the possible choices at that level of the command When moving by words left or right the Forward pushbutton becomes halfbright and unresponsive when the cursor reaches the end of the command string...

Page 89: ...rs to be inserted To replace characters at the current cursor location position the mouse pointer in a non text area of the command line entry area press and hold the select mouse button to display the Command Line pop up menu choose Position Cursor Replace Mode from the menu type the characters to be inserted To position the cursor and replace characters at the cursor location position the mouse ...

Page 90: ...ace commands executed during the session as well as any predefined commands present at interface startup If you exit the emulation analysis session with the interface locked commands in the recall buffer are saved and will be present when you restart the interface You can predefine entries for the Command Recall dialog box and define the maximum number of entries by setting X resources refer to Ch...

Page 91: ...ace completes the command word for you Entering commands with the keyboard is easy However the interface provides other features that make entering commands even easier For example you can Enter multiple commands on one line Recall commands Edit commands Access on line help information To enter multiple commands on one command line Separate the commands with semicolons More than one command may be...

Page 92: ...eft arrow and Right arrow keys move the cursor single spaces to the left or right The Tab and Shift Tab keys move the cursor to the next or previous word on the command line The Insert char key enters the insert editing mode and allows characters or command options to be inserted at the cursor location The Back space key deletes the character to the left of the cursor The Delete char key deletes t...

Page 93: ...mmands RETURN Or system_commands RETURN The help information is scrolled on to the screen If there is more than a screen full of information you will have to press the space bar to see the next screen full or the RETURN key to see the next line just as you do with the UNIX more command After all the information on the particular topic has been displayed or after you press q to quit scrolling throu...

Page 94: ...mands to a command file Stop logging commands to a command file Playback execute a command file Nesting Command Files You can nest a maximum of eight levels of command files Nesting command files means one command file calls another Comments in Command Files Text that follows a pound sign up to the end of the line is interpreted as a comment Using the wait Command When editing command files you ca...

Page 95: ... These are symbols preceded by an ampersand which are the variables of the command file The ASCII string passed passed parameter will be substituted for the formal parameter when the command file is executed The only way to pass a parameter containing a space is to enclose the parameter in double quotes or single quotes Thus to pass the parameter HP 9000 to a command file you can use either HP 900...

Page 96: ... example assume a directory named users softkeys and the shell variable S The value of S is soft By specifying the directory as users S keys the correct result is obtained However if you attempt to specify the directory as users Skeys the Softkey Interface looks for the value of the variable Skeys This is not the operators intended result You may not get the intended result unless Skeys is already...

Page 97: ... inside the two single quotes awk blanks END print blanks an_unix_file To start logging commands to a command file Choose File Log Record and use the dialog box to select a command file name Using the command line enter the log_commands to file command To stop logging commands to a command file Choose File Log Stop Using the command line enter the log_commands off command Chapter 4 Entering Comman...

Page 98: ... file in the current directory it searches the directories specified in the HP64KPATH environment variable To interrupt playback of a command file press the CTRL c key combination The mouse pointer must be within the interface window If you press CTRL c to stop execution of a command file while the wait command is being executed from the command file the CTRL c will terminate the wait command but ...

Page 99: ...ill no longer match the internal record the interface keeps about the state of the emulator Issuing certain communications related commands can prevent the interface from communicating with the emulator and cause abnormal termination of the interface However it is sometimes necessary to use pod commands For example you must use a pod command to execute the emulator s performance verification pv ro...

Page 100: ...ng pod commands click the suspend pushbutton softkey The Settings Pod Command Keyboard command displays the pod commands screen and activates the keyboard for entering pod command on the command line Examples To see a list of pod command categories available choose Settings Pod Command Keyboard and on the command line type help To see a list of pod commands that control the emulator type help emul...

Page 101: ...g the forward command available in the command line The general syntax is forward interface_name command_string RETURN This section shows you how to Forward commands to the high level debugger Forward commands to the software performance analyzer To forward commands to the high level debugger Enter the forward debug command string command using the command line Examples To send the Program Run com...

Page 102: ...zer Enter the forward perf command string command using the command line Examples To send the profile command to the software performance analyzer forward perf profile RETURN Chapter 4 Entering Commands Forwarding Commands to Other HP 64700 Interfaces 82 ...

Page 103: ...5 Configuring the Emulator 83 ...

Page 104: ...that it operates correctly in the target system The configuration tasks are grouped into the following sections Using the configuration interface Verifying the emulator configuration The simulated I O feature and configuration questions are further described in the Simulated I O User s Guide The interactive measurement configuration options are further described in Chapter 9 Making Coordinated Mea...

Page 105: ...ace Modify a configuration section Apply configuration changes to the emulator Store configuration changes to a file Change the configuration directory context Display the configuration context Access help topics Access help for a configuration item in a dialog box Exit the configuration interface Load an existing configuration file Chapter 5 Configuring the Emulator Using the Configuration Interf...

Page 106: ...example is displayed The configuration interface may be left running while you are using the emulator analyzer interface If you are using the Softkey Interface from a terminal or terminal emulation window you don t get a dialog box from which to choose configuration sections however you have access to the same configuration options through a series of configuration questions Chapter 5 Configuring ...

Page 107: ...nu bar Clicking on one of these lines selects a particular configuration section Clicking this button loads any configuration changes into the emulator This portion of the dialog box displays configuration status information Chapter 5 Configuring the Emulator Using the Configuration Interface 87 ...

Page 108: ...ked To access the questions in the Reconfigure Internal Registers section answer yes to the Reconfigure internal registers question To access the questions in the Memory Map section answer yes to the Modify memory configuration question To access the questions in the Emulator Pod Settings section answer yes to the Modify emulator pod configuration question To access the questions in the Debug Trac...

Page 109: ...een opened Applies configuration changes to the emulator Configuration options in this section Closes the dialog box Cancels all changes since last OK Apply to Emulator or store to file Presents emulator configuration help topic browser Chapter 5 Configuring the Emulator Using the Configuration Interface 89 ...

Page 110: ...load was successful You can apply configuration changes to the emulator at any time even while section dialog boxes are open This lets you verify changes without closing section dialog boxes The Apply to Emulator button does not store configuration changes to a file When you exit the configuration interface and there are configuration changes that have not been stored to a file you are asked wheth...

Page 111: ...ot limited to 16 messages as is the Display Configuration Info Diagnostics command This information is shown in the same format as output from the various Display Configuration Info commands Because the old configuration is reloaded when an apply to emulator fails the information displayed in this window is different from the information displayed by the Display Configuration Info commands which d...

Page 112: ...When modifying a configuration using the Graphical User Interface you can store your answers at any time Configuration information is saved in a file with the extension EA This file is the source ASCII format copy of the file The interface will create a temporary file with the extension EB which is the binary or loadable copy of the file CAUTION Do not modify configurations by editing the EA files...

Page 113: ...more information on how to use dialog boxes refer to the To use dialog boxes description in the Using Menus the Entry Buffer and Action Keys section of Chapter 4 Entering Commands To display the configuration context Choose Display Context from the pulldown menu in the top level configuration interface window The current directory context and the current configuration files are displayed in a wind...

Page 114: ... the f1 key Choose Help On Item from the pulldown menu in the top level configuration interface window The mouse pointer changes from an arrow to a question mark Place the question mark over a selection button or in the entry field on the line of interest and click any mouse button The configuration interface provides individual help for each item in the top level dialog box and throughout the con...

Page 115: ...e exit To load an existing configuration file In the emulator analyzer interface choose File Load Emulator Config from the pulldown menu and use the file selection dialog box to specify the configuration file to be loaded Using the command line enter the load configuration FILE command This command loads previously created and stored configuration files You cannot load a configuration while the co...

Page 116: ...onfiguration inconsistencies To display information about chip selects Choose Display Configuration Info Chip Selects SIM or Display Configuration Info Chip Selects Emulator SIM from either the configuration interface or the emulator analyzer interface pulldown menu Using the emulator analyzer interface command line enter the display configuration_info sim_chip_selects or display configuration_inf...

Page 117: ...r register set or the emsim emulator register set The resulting display shows the pin assignments for the port To display information about the memory map Choose Display Configuration Info Memory Map from either the configuration interface or the emulator analyzer interface pulldown menu Using the emulator analyzer interface command line enter the display configuration_info memory_map command When...

Page 118: ...ata bus size and global chip select memory access size To review the upper address mode of the present configuration Choose Display Configuration Info Upper Address Mode from either the configuration interface or the emulator analyzer interface pulldown menu Using the emulator analyzer interface command line enter the display configuration_info upper_address command This selection will show whethe...

Page 119: ...mulator Analyzer Installation Service Terminal Interface User s Guide for details To display assembly language instructions for setting up the SIM Choose Display Configuration Info Initialization Source Code from either the configuration interface or the emulator analyzer interface pulldown menu Using the emulator analyzer interface command line enter the display configuration_info init_source_cod...

Page 120: ...en the reset mode configuration value and the EMSIM registers Compares corresponding values in the SIM and EMSIM register sets This command identifies errors that result from inconsistencies between related configuration values These errors should be resolved in order for the emulator to operate correctly This command also provides status and warning messages about expectations and limitations of ...

Page 121: ...ore detailed information about the memory map for the 68360 If foreground monitor is selected the map will include the map term for the foreground monitor 2 Choose Display Configuration Info Chip Selects Emulator SIM from either the configuration interface or the emulator analyzer interface pulldown menu to display information about chip selects A table appears It shows the current values in the e...

Page 122: ...102 ...

Page 123: ...6 Using the Emulator 103 ...

Page 124: ... breakpoints Displaying and modifying registers Displaying and modifying memory Changing the interface settings Using system commands If you encounter problems when using the emulator analyzer refer to the chapter titled Solving Problems in the MC68360 emulator Analyzer Installation Service Terminal Interface Manual Ensure that you are using the appropriate clock module for the system you are prob...

Page 125: ...mmed as address lines however if these lines are programmed as write enables the corresponding address lines are not available external to the 68360 The chip selects however have access to the full 32 bit address inside the 68360 You can therefore locate memory using a chip select at an address that is not possible to decode externally The emulator can use information in the programming of the chi...

Page 126: ...sters from_68360_to_config command This is useful if initialization code that configures the 68360 SIM exists but you don t know its values In this case you can use the default configuration run from reset to execute the initialization code and use the sync_sim_registers from_68360_to_config command to configure the emulator to match the 68360 SIM At any time you can verify if the SIM and EMSIM re...

Page 127: ...ers having different values between the SIM and EMSIM To synchronize to the 68360 SIM registers Choose Modify SIM Registers Copy Processor SIM to Emulator SIM from the emulator analyzer interface pulldown menu Using the emulator analyzer interface command line enter the sync_sim_registers from_68360_to_config command The contents of the 68360 SIM registers are copied to the emulation copy of the S...

Page 128: ...nts of the emulation copy of the SIM registers are copied to the 68360 SIM registers To restore default values in the EMSIM registers Choose Modify SIM Registers Default Emulator SIM from the emulator analyzer interface pulldown menu Using the emulator analyzer interface command line enter the sync_sim_registers default_config command The contents of the EMSIM register set are restored to their po...

Page 129: ...in the emulator A browser window will appear It will show you the value of the target MBAR register that was recorded by this process Press the Set MBAR Action Key A Define command file parameter dialog box will open Enter any desired value for the emulator s MBAR register in the dialog box Then click OK The value entered should be the address portion of the MBAR register Chapter 6 Using the Emula...

Page 130: ...get system memory You can load IEEE 695 format absolute files You can also load HP format absolute files The store memory command creates HP format absolute files If you wish to load only that portion of the absolute file that resides in memory mapped as emulation RAM or ROM use the command line s load emul_mem syntax If you wish to load only the portion of the absolute file that resides in memory...

Page 131: ...te files Using the command line enter the store memory command You can store emulation or target system memory contents into HP format absolute files on the host computer Absolute files are stored in the current directory If no extension is given for the absolute file name it is given a X extension Examples To store the contents of memory locations 900H through 9FFH to an absolute file on the host...

Page 132: ...bols Display local symbols Display a symbol s parent symbol Copy and paste a full symbol name to the entry buffer To load symbols Choose File Load Symbols Only and use the dialog box to select the absolute file Using the command line enter the load symbols absolute_file command Unless you use the nosymbols option when loading absolute files symbols are loaded automatically However if you did use t...

Page 133: ... ranges associated with a symbol the segment the symbol is associated with and the offset of that symbol within the segment If there is more than a screen full of information you can use the up arrow down arrow NEXT or PREV keys to scroll the information up or down on the display Examples To display global symbols in the demo program display global_symbols RETURN Chapter 6 Using the Emulator Using...

Page 134: ...n and choose Display Local Symbols from the pop up menu Position the mouse cursor in the entry buffer and enter the module whose local symbols are to be displayed then choose Display Local Symbols Using the command line enter the display local_symbols_in module command To display the address ranges associated with the high level program s source file line numbers you must display the local symbols...

Page 135: ...Examples To use the Symbols Display pop up menu View the local symbols associated with the highlighted symbol by choosing this menu item Chapter 6 Using the Emulator Using Symbols 115 ...

Page 136: ...e To display local symbols in a module display local_symbols_in update_sys RETURN To display local symbols in a procedure display local_symbols_in update_sys save_points RETURN Chapter 6 Using the Emulator Using Symbols 116 ...

Page 137: ...To display address ranges associated with the high level source line numbers display local_symbols_in update_sys update_sys c RETURN Chapter 6 Using the Emulator Using Symbols 117 ...

Page 138: ...he mouse pointer over the symbol press and hold the select mouse button and choose Display Parent Symbols from the pop up menu Examples View the parent symbol associated with the highlighted symbol by choosing this menu item Chapter 6 Using the Emulator Using Symbols 118 ...

Page 139: ...ull symbol name is in the entry buffer you can use it with pulldown menu items or paste it to the command line area By cutting the full symbol name you get the complete names of symbols that have been truncated Also you are guaranteed of specifying the proper scope of the symbol Examples Copy the full name of the highlighted symbol to the entry buffer by choosing this menu item Chapter 6 Using the...

Page 140: ... current directory context is that of the directory from which you started the interface Symbol context The emulator analyzer interface and the Symbol Retrieval Utilities SRU together support a current working symbol context The current working symbol represents an enclosing scope for local symbols If symbols have not been loaded into the interface you cannot display or change the symbol context T...

Page 141: ...e pwd and pws commands The current directory and working symbol contexts are displayed and also the name of the last executable file from which symbols were loaded Example Directory context Executable from which symbols were last loaded Symbol context Chapter 6 Using the Emulator Using Context Commands 121 ...

Page 142: ...nge the current working symbol context Choose File Context Symbols and use the dialog box to select the new working symbol context Using the command line enter the cws symbol_context command Because cws is a hidden command and doesn t appear on a softkey label you have to type it in You can predefine symbol contexts and set the maximum number of entries for the Symbol Scope Selection dialog box by...

Page 143: ...splay is updated to show you the contents of the registers after each step You can open multiple interface windows to display memory in mnemonic format and registers at the same time Both windows are updated after stepping This section describes how to Start the emulator running the user program Stop break from user program execution Step through user programs Reset the emulation processor To run ...

Page 144: ...ess command Most software development tools allow you to specify a starting or entry address for program execution That address is included with the absolute file s symbolic information and is known by the interface as the transfer address To run programs from reset Choose Execution Run from Reset Using the command line enter the run from reset command The run from reset command specifies a run fr...

Page 145: ...ect mouse button and choose Run Until from the pop up menu Position the mouse pointer in the entry buffer and enter the address you want to run from then choose Execution Run until Using the command line enter the run until address command When you run until an address a software breakpoint is set at the address and the program is run from the current program counter When using the command line yo...

Page 146: ...n from the user program to the monitor break RETURN To step high level source lines Choose Execution Step Source and select one of the items from the cascade menu Using the command line enter the step source command When stepping through instructions associated with source lines execution can remain in a loop and the message Stepping source line 1 Next PC address is displayed on the status line In...

Page 147: ...he cascade menu Using the command line enter the step command The step command allows you to step through program execution an instruction or a number of instructions at a time Also you can step from the current program counter or from a specific address Examples To step one instruction from the current program counter step RETURN To step a number of instructions from the current program counter s...

Page 148: ...mmand line enter the reset command The reset command causes the processor to be held in a reset state until a break run or step command is entered A CMB execute signal will also cause the emulator to run if reset Chapter 6 Using the Emulator Executing User Programs 128 ...

Page 149: ...modify software_breakpoints set command the Undefined software breakpoint message is displayed on the status line In order to successfully set a software breakpoint the emulator must be able to write to the memory location specified Therefore software breakpoints cannot be set in target memory while the emulator is reset and they can never be set in target ROM You can however copy target ROM to em...

Page 150: ...so displayed Also the breakpoints display shows whether the breakpoint feature is enabled or disabled The status of a breakpoint can be temporary Which means the temporary breakpoint has been set but not encountered during program execution These breakpoints are removed when the breakpoint is encountered permanent Which means the permanent breakpoint is active Permanent breakpoints remain active a...

Page 151: ... You can inactivate or restore the status of any breakpoint in the breakpoints list as well as enable or disable the breakpoints feature using the pop up menu To enable disable breakpoints Choose the Breakpoints Enable toggle When displaying the breakpoint list press and hold the select mouse button and then choose Enable Disable Software Breakpoints from the pop up menu Using the command line ent...

Page 152: ...ther unpredictable behavior To prevent this a special global symbol XEnv_68k_except is included in the library When the XEnv_68k_except symbol is present the 68360 emulator writes a value to this location The value tells the run time library to use the BGND instruction to perform a software break Examples To enable software breakpoints using the breakpoints display pop up menu Bring up menu and ch...

Page 153: ... permanent command Permanent breakpoints are available if your version of HP 64700 system firmware is A 04 00 or greater The breakpoints feature must be enabled before individual breakpoints can be set Note that you must only set software breakpoints at memory locations which contain instruction opcodes not operands or data When displaying memory in mnemonic format asterisks appear next to breakpo...

Page 154: ...play pop up menu Click this line to set a breakpoint Click this line to clear a breakpoint Asterisks mark set breakpoints Bring up menu and choose this item to set or clear a breakpoint on the highlighted line Chapter 6 Using the Emulator Using Software Breakpoints 134 ...

Page 155: ...es not operands or data When displaying memory in mnemonic format asterisks appear next to breakpoint addresses An asterisk shows the breakpoint is active Also if assembly level code is being displayed the disassembled instruction mnemonic at the breakpoint address will show the breakpoint instruction To set all breakpoints When displaying the breakpoint list position the mouse pointer within the ...

Page 156: ...erent than clearing a breakpoint because a cleared breakpoint is removed from the breakpoints list To re activate a breakpoint When displaying breakpoints position the mouse pointer over the line displaying the inactivated breakpoint and click the select mouse button Or press and hold the select mouse button and choose Set Inactivate Breakpoint from the pop up menu The inactivated breakpoint eithe...

Page 157: ...he breakpoints display pop up menu Change status with a mouse click on this line menu and highlight do not appear Choose this menu item to change the state of the highlighted breakpoint Chapter 6 Using the Emulator Using Software Breakpoints 137 ...

Page 158: ... from the pop up menu When displaying breakpoints position the mouse pointer over the line displaying the breakpoint you wish to clear press and hold the select mouse button and choose Clear delete Breakpoint from the pop up menu Place an absolute or symbolic address in the entry buffer then choose Breakpoints Clear Using the command line enter the modify software_breakpoints clear address command...

Page 159: ...s To clear a software breakpoint using the breakpoints display pop up menu Bring up the menu and choose this item to clear the highlighted breakpoint Chapter 6 Using the Emulator Using Software Breakpoints 139 ...

Page 160: ... Breakpoints Display screen press and hold the select mouse button and choose Clear delete All Breakpoints from the pop up menu Choose Breakpoints Clear All Using the command line enter the modify software_breakpoints clear command Chapter 6 Using the Emulator Using Software Breakpoints 140 ...

Page 161: ... display register contents Choose Display Registers register class Using the command line enter the display registers register class command The register class token requires the name of a class of registers such as BASIC or SIM The display will show all registers in the register class you select along with the present values of the registers Chapter 6 Using the Emulator Displaying and Modifying R...

Page 162: ...iptors place the name of the desired channel in the entry buffer and press the PRBD 360 Action Key All complex register displays are supported with an expanded display to interpret the meaning of the bits that make up the register value The descriptions of values will change as the register content changes to correspond to the present register values Expanded register displays show dependencies Fo...

Page 163: ...g 15 Reserved 14 12 SINTOUT Reserved 11 Reserved 10 9 CF1MODE CONFIG1 input function 8 PIPE1 RAS1DD PIPE1 output function 7 A28 31 WE3 WE0 Address 31 28 input output functions 6 OE AMUX OE output function 5 PWW PEPAR has not been written 4 CAS2 3 IACK3 6 CAS2 3 output functions 3 Reserved 2 CAS0 1 IACK1 2 CAS0 1 output functions 1 CS7 IACK7 CS7 output function 0 AVEC AVEC0 IACK5 AVEC input functio...

Page 164: ...ommand select mouse button and drag the mouse to select the value type Clicking this checkbox causes the current value of the named register to be placed in the Value text entry area Clicking this button modifies the register to the value specified and closes the dialog box Clicking this button modifies the register to the value specified and leaves the dialog box open Clicking this button cancels...

Page 165: ...ion Key Type the desired value in the Define command file parameter dialog box and click OK To modify the contents of a Parameter RAM or Buffer Descriptor press the Mod Memory Action Key The Define command file parameter dialog box will appear three times In the first appearance enter the desired address next enter size and finally enter value Click OK after each entry Chapter 6 Using the Emulator...

Page 166: ... current PC Return to the previous mnemonic display Display memory in hexadecimal format Display memory in real number format Display memory at an address Display memory repetitively Modify memory Modify memory at an address To display memory Choose Display Memory This command either re displays memory in the format specified by the last memory display command or if no previous command has been ex...

Page 167: ...uded in the display depends on the modes you choose with the Settings Source Symbols Modes or Settings Display Modes pulldown menu items See the Changing the Interface Settings section If symbols are loaded into the interface the default is to display source only To return to the previous mnemonic display Choose Display Memory Mnemonic Previous Using the command line enter the display memory mnemo...

Page 168: ...he cascade menu Using the command line enter the display memory address blocked size command This command displays memory as hexadecimal values beginning at the address in the entry buffer Examples To display memory in absolute word format display memory ascii_old_data absolute words RETURN Chapter 6 Using the Emulator Displaying and Modifying Memory 148 ...

Page 169: ... Place an absolute or symbolic address in the entry buffer then choose Display Memory At This command displays memory in the same format as that of the last memory display command If no previous command has been issued memory is displayed as hexadecimal bytes Chapter 6 Using the Emulator Displaying and Modifying Memory 149 ...

Page 170: ...emory Choose Modify Memory and complete the command using the command line To modify memory at a particular address place an absolute or symbolic address in the entry buffer then choose Modify Memory at and complete the command using the command line Using the command line enter the modify memory command You can modify the contents of one memory location or a range of memory locations Options allo...

Page 171: ... to the data values display To display data values Choose Display Data Values Using the command line enter the display data command Items must be added to the data values display before you can use this command The data display shows the values of simple data types in the user program When the display mode setting turns ON symbols a label column that shows symbol values is added to the data displa...

Page 172: ...the cascade menu Using the command line enter the display data address command To add items to the data values display Place an absolute or symbolic address in the entry buffer then choose Display Data Values Add and select the data type from the cascade menu Using the command line enter the display data address command Chapter 6 Using the Emulator Displaying Data Values 152 ...

Page 173: ...ssembly language mnemonics intermixed with high level source lines choose Settings Source Symbol Modes Source Mixed or using the command line enter the set source on symbols on command To display only high level source lines choose Settings Source Symbol Modes Source Only or using the command line enter the set source only symbols on command The source symbol modes affect mnemonic memory displays ...

Page 174: ...pointer to the text entry area and type in the value Descriptions of the modes follow Clicking toggles auto update settings Clicking this checkbox changes all display mode settings to their defaults Clicking this button saves your changes and closes the dialog box Clicking this button saves your changes and leaves the dialog box open Clicking this button cancels your changes and closes the dialog ...

Page 175: ...th in characters of the source lines in the memory mnemonic display Auto Update Memory Displays Except Mnemonic toggles whether absolute memory displays are automatically updated after commands that change memory contents or whether you must enter memory display commands to update the display You may turn off memory display updates when displaying memory mapped I O Memory Mnemonic Auto PC toggles ...

Page 176: ...ariables Using the command line enter the set VAR command You can set UNIX shell environment variables from within the Softkey Interface with the set environment_variable value command Examples To set the PRINTER environment variable to lp s set PRINTER lp s RETURN After you set an environment variable from within the Softkey Interface you can verify the value of it by entering set RETURN Chapter ...

Page 177: ...he status line To display the event log Choose Display Event Log Position the mouse pointer on the status line press and hold the select mouse button and then choose Display Event Log from the pop up menu Using the command line enter the display event_log command The last 100 events that have occurred during the emulation session are displayed The status of the emulator and analyzer are recorded i...

Page 178: ... file based on the current program counter choose File Edit At PC Location To edit a file associated with a symbol when you are displaying symbols position the mouse pointer over the symbol press and hold the select mouse button and choose Edit File At Symbol from the pop up menu To edit a file when displaying memory in mnemonic format position the mouse pointer over the line of source where you w...

Page 179: ...r by setting an X resource Refer to the Chapter 10 Setting X Resources for more information about setting this resource You must load symbols before most commands will work because symbol information is needed to be able to locate the files Chapter 6 Using the Emulator Using System Commands 159 ...

Page 180: ...it a file that defines a symbol Choosing this menu item brings up a terminal window with an edit session open on the file where the highlighted symbol is defined Chapter 6 Using the Emulator Using System Commands 160 ...

Page 181: ...a file at a source line Choosing this menu item brings up a terminal window with an edit session open on the file where the highlighted source line exists Chapter 6 Using the Emulator Using System Commands 161 ...

Page 182: ...e if you copy memory after displaying a range of memory in mnemonic format the file would contain the mnemonic memory information If there is no previous display memory command the format used is a blocked hex byte format beginning at address zero Data Values Copies the contents of the defined data values last displayed An error occurs if you try to copy data values to a file if you have not yet d...

Page 183: ...r status display Global Symbols Copies the global symbols If symbols have not been loaded this menu item is grayed out and unresponsive Local Symbols Copies the local symbols from the symbol scope named by an enclosing symbol in the entry buffer If symbols have not been loaded this menu item is grayed out and unresponsive Pod Commands Copies the last 100 lines from the pod commands display Error L...

Page 184: ... in the Define command file parameter dialog box and click OK To load peripheral register settings from a file 1 Press the Pick Util Action Key 2 In the browser window highlight load68360registers and click Done 3 Press the Run Util Action Key 4 Type the name of the directory filename that contains the desired register values into the Define command file parameter dialog box and click OK Chapter 6...

Page 185: ...t Code Action Key 2 When the SIM60 Boot Code browser window opens press the Save to File pushbutton and enter the name of the file to contain the generated boot code 3 Click OK 4 Assemble and link the file of generated boot code with your code To open a terminal emulation window Choose File Term This command opens a terminal window into the current working directory context Chapter 6 Using the Emu...

Page 186: ... open providing general information to help you get started using the M68360 Companion Mode through the Action Keys Refer to the section on plugging the emulator into the Motorola QUADS Target System in Chapter 2 for an example of plugging into a target system that contains a 68360 master chip and a 68360 slave chip Refer to the section on setting up custom action keys in Chapter 10 for an example...

Page 187: ...Type the desired value in the Define command file parameter dialog box and click OK To obtain a record of the present content of all parameter RAMs and Buffer Descriptors in one browser press the PRBD 360 All Action Key To view the contents of a single Parameter RAM and its associated Buffer Descriptors place the name of the desired channel in the entry buffer and press the PRBD 360 Action Key To ...

Page 188: ... Action Key In the Utilities Selection browser window highlight load68360registers and click Done Press the Run Util Action Key Type the name of the directory filename that contains the desired register values into the Define command file parameter dialog box and click OK To remove all temporary files that have been created during the development session press the Pick Util Action Key In the Utili...

Page 189: ...hical User Interface is available in Chapter 10 Setting X Resources and in the online file named HP64000 lib X11 app defaults HP64_Softkey under the discussion called XcHotkey Action Keys Refer to the file named README040360 in the directory HP64000 inst emul 64780A compmode to see files developed to support companion mode use of an HP 64780 M68360 or HP 64783 M68040 emulator system This file can ...

Page 190: ...nt routines that communicate with the simulated I O control address and buffer Also before simulated I O can work the emulator must be configured to enable polling of the simulated I O control address and to define the control address location This section shows you how to Display the simulated I O screen Use simulated I O keyboard input Refer to the Simulated I O User s Guide for complete details...

Page 191: ...rface use the suspend softkey The command line entry area is used for simulated input with the keyboard Therefore if the command line is turned off choosing this menu item with turn command line display back on If you are planning to use even a modest amount of simulated I O input during an emulation session it might be a good idea to open another Emulator Analyzer window to be used exclusively fo...

Page 192: ... that write to a data array when program branches are taken After running the program in the emulator using test input you can store the BBA information to a file Then you can generate reports based on the stored information This section shows you how to Store BBA data to a file Refer to the HP Branch Validator BBA User s Guide for complete details on the BBA product and how it works To store BBA ...

Page 193: ...7 Using the Emulation Bus Analyzer How to record program execution in real time 173 ...

Page 194: ...stored the analyzer can prestore up to two states before each qualified store state The analyzer has much more capability than is available in the menus You can access this capability by using the command line to make your trace specifications Use of the command line is also covered in this chapter Once a trace specification command is entered either with the menus or the command line it can be re...

Page 195: ...s the trigger state and fill the remaining space in the trace memory with the states that follow it A trace is said to be complete when the trace memory is filled with captured states and the trigger state resides at its specified point in the trace memory the first state captured in memory by default When a trace measurement is started you can view the progress of the measurement by displaying th...

Page 196: ...ether or not you installed memory modules on the analyzer card and the capacity of the memory modules installed Refer to the Hewlett Packard MC68360 Emulator Analyzer Installation Service Terminal Interface Guide for details If you are using the 1K analyzer the trace list buffer is 512 or 1024 states deep depending on whether or not you turn on the state time count See To count states or time in t...

Page 197: ... storing additional data You do not have to stop a trace in order to begin viewing a partial trace because the interface supports incremental trace uploading After the trigger condition occurs the interface begins uploading and displaying trace states as they are captured To display the trace list Choose Trace Display Choose Display Trace Using the command line enter display trace When you complet...

Page 198: ...re included in the display depends on the modes you choose with the Settings Source Symbols Modes or Settings Display Modes pulldown menu items Example A simple trace list resembles Chapter 7 Using the Emulation Bus Analyzer Making Simple Trace Measurements 178 ...

Page 199: ...r has been found number of states captured current sequencer state and occurrence count Example In the following example trace status display the screen shows that the emulation trace has completed an analyzer arm a condition to activate the analyzer was not defined for this measurement the analyzer trigger was captured in memory before the analyzer trace completed 512 trace states were captured 5...

Page 200: ... on whether or not you installed memory modules in the analyzer card and the capacity of the memory modules Refer to the Hewlett Packard MC68360 Emulator Analyzer Installation Service Terminal Interface Guide for details In the 1K analyzer the maximum number of trace states is 1024 when counting is turned off and 512 otherwise In either analyzer the minimum trace depth is 9 Trace data must be unlo...

Page 201: ...ce startup You can predefine trace specifications and set the maximum number of entries for the dialog box by setting X resources see Chapter 10 Setting X Resources The trace modify_command command recalls the last trace command The advantage of this command over command recall is that you do not have to move forward and backward over other commands to find the last trace command also the last tra...

Page 202: ...eference event in a trace list You select trigger position to see activity leading up to the trigger event or following the trigger event or both Example To trigger a trace measurement after the demo program executes the Init_system procedure place init_system in the entry buffer and choose Trace After or on the command line enter trace after long_aligned init_system The long_aligned option ensure...

Page 203: ... after trace before or trace about to set the trigger position Normally the analyzer begins to save processor activity whenever the trace is started By selecting trigger position you can specify which portion of processor activity you will view in the trace list The trace after command causes the analyzer to fill its trace memory with processor activity that occurred after the trigger event The tr...

Page 204: ...play trace To define a simple storage qualifier Place your storage qualifier in the entry buffer such as status read and then choose Trace Only Using the command line use the only option in the trace command All captured states are stored by default However you can qualify which states get stored with the only option to the trace command Example When you are running the demo program to store only ...

Page 205: ...system may affect tracing These problems may be overcome by selecting proper buffering of the emulator signals To obtain a trace the analyzer must receive CLK01 and the clock must meet normal clock specifications Perhaps your target system is degrading the clock so that it does not meet specifications Perhaps the target system is interfering with proper operation of CLK01 Without CLK01 no trace ca...

Page 206: ... the column widths and set options for disassembly of the trace list This section covers many of the options available for controlling the trace display Display control is available through the Trace Display Options dialog box the trace list pop up menu and the command line You can combine most options within a single command on the command line to obtain a desired trace display See the display tr...

Page 207: ...memory to be unloaded for display or storage in a file Enter a value to be subtracted from addresses and symbol source line references shown in the trace list Enter the desired trace list line number to be placed on screen Click OK to specify the trace options and close the dialog box Click Apply to specify the trace options and leave the dialog box open Click these pushbuttons to select predefine...

Page 208: ...n edit window into the source file that contains the address of the selected line Click to open a display window into memory containing the address of the selected line Note that the format of the memory display will be mnemonic for addresses in the code segment and absolute otherwise Chapter 7 Using the Emulation Bus Analyzer Displaying the Trace List 188 ...

Page 209: ...corresponding to a state in the trace list Disassembly of instruction data means that you will see instructions as they would appear in an assembly language program listing That is instruction mnemonics and operands are shown instead of hexadecimal instruction data The analyzer interface normally disassembles instruction data in the trace list However if you specify absolute data display that mode...

Page 210: ...command line if you need to specify trace disassembly using other options Using the command line enter commands as follows To show only instruction cycles in the trace list enter display trace disassemble_from_line_number LINE instructions_only To show all bus cycles in the trace list enter display trace disassemble_from_line_number LINE all_cycles To start instruction disassembly from the upper w...

Page 211: ...led trace list isn t what you expected try using this option The disassembly options remain in effect until you specify a new disassembly option Examples Show only instruction cycles in the trace list starting at line 40 display trace disassemble_from_line_number 40 instructions_only Show all bus cycles in the trace list display trace disassemble_from_line_number 40 all_cycles Start instruction di...

Page 212: ...hoose a non dequeued trace list instruction and operand fetches are shown exactly as captured by the analyzer Once the dequeuer has been started on the correct opcode it will continue to disassemble correctly unless an unusual condition causes it to misinterpret the data By specifying the first instruction state for disassembly and the number of the first operand cycle for that instruction you can...

Page 213: ...the trace list Choose Trace Display Options and in the dialog box select Dequeue Enable Then click the OK or Apply pushbutton Or using the command line enter display trace dequeue on Display the trace list without dequeueing display trace dequeue off Tell the analyzer which data operand should be aligned with the first opcode display trace disassemble_from_line_number 40 align_data_from_line 42 Ch...

Page 214: ...format enter display trace absolute status mnemonic For some measurements it may be more convenient for you to view the trace data without instruction disassembly The Data Format Absolute selection in the Trace Display Options dialog box or the display trace absolute command allows you to do this Notice that once you enter this format selection subsequent trace lists will displayed in this format ...

Page 215: ...hout instruction disassembly and with status information in mnemonic format make appropriate entries in the Trace Display Options dialog box or enter the following command display trace absolute status mnemonic To display symbols in the trace list Choose Settings Source Symbol Modes Symbols or choose Settings Display Modes and in the dialog box click on Symbolic Addresses In the Field Widths area ...

Page 216: ...d symbol handling High level symbols are those that are available only from high level languages such as a compiler Low level symbols are those that are available from assembly language modules which may include symbols generated internally by a compiler The Settings Source Symbol Modes Settings Display Modes or set symbols command remains in effect until you enter a new Settings Source Symbol Mod...

Page 217: ...t source only To display only assembly language in the trace list enter set source off If you developed your target programs in a high level language such as C you can display the source code in the trace list with the corresponding assembly language statements Or you can choose to display only the source listing without the assembly language information The analyzer uses the line number informati...

Page 218: ...e lines in the trace list enter set width source WIDTH To set the column width for the symbols column in the trace list enter set width symbols WIDTH WIDTH is an integer specifying the width of the column in characters WIDTH is restricted to certain values which are shown if you press the WIDTH softkey You can display more information by widening a column or ignore the information by narrowing the...

Page 219: ...te enter display trace count relative The count information in the trace list is always displayed if it is turned on To turn on the trace counting function enter a command beginning with trace counting on the command line Refer to To count states or time later in this manual for details When using the 1K analyzer the trace memory is 512 states deep if counting states or time is turned on and 1024 ...

Page 220: ...ace only update_sys counting time Now start the program run then display the trace run from transfer_address display trace count relative Count absolute entries into the get_targets routine of the demo program trace only address range update_sys thru update_sys end counting state get_targets run from transfer_address display trace count absolute Chapter 7 Using the Emulation Bus Analyzer Displayin...

Page 221: ...eld the address that is displayed If code gets relocated and therefore makes symbolic information obsolete you can use the Address Offset or offset_by option to change the address information so that it again agrees with the symbolic information You can also specify an offset to cause the listed addresses to match the addresses in compiler or assembler listings Example Trace execution from entry o...

Page 222: ...eft press Ctrl f simultaneously To roll the trace display to the right press Ctrl g simultaneously To roll the display down one line press the down arrow key To roll the display up one line press the up arrow key To move to the previous page in the trace list press the Pg Up or Prev key To move to the next page in the trace list press the Pg Dn or Next key Though the trace display is set to 256 or...

Page 223: ...f you need to move to a particular state quickly you can use this command The command places the specified state in the center of the current trace display Examples Display the trace about line number 20 Choose Trace Display Options and in the dialog box enter 20 in the field beside Move to Line Then click the OK or Apply pushbutton Enter the following command on the command line to display the tr...

Page 224: ...e using the 1K analyzer the trace list buffer is 512 or 1024 states deep depending on whether or not you turn on the state time count See To count states or time in this chapter When you display the trace list the interface requests the number of states specified by the trace depth from the emulator If you want faster trace display you can decrease the trace depth To display more states you can in...

Page 225: ...line in the entry buffer and choosing Display Memory At in the pulldown menus To open an edit window into the source file associated with a trace list line Using the mouse place the cursor on the line in the trace list whose source file you wish to edit Then press the select mouse button and click on Edit Source in the trace list pop up menu A new window will open It will show the source file that...

Page 226: ...ells you how to get the most out of the HP 64700 analyzer by using trigger and sequence specifications It also describes additional measurement tools to help you get more information from the trace Many of the options in this section can be combined one or more times See the trace syntax in Chapter 11 Emulator Analyzer Interface Commands for more information Expressions are an important part of tr...

Page 227: ...he name of the module anly c as shown below anly c cmp_function Operators Analysis specification expressions may contain operators All operations are carried out on 32 bit two s complement integers Values which are not 32 bits will be sign extended when expression evaluation occurs The available operators are listed below in the order of evaluation precedence Parentheses are also allowed in expres...

Page 228: ...A28 A31 68360 Address Lines A0 A27 68360 Address Lines A28 A31 or reconstructed address Bits 32 63 Data D0 D31 68360 Data Lines D0 D31 Bits 64 79 Status 0 Status 1 3 Status 4 Status 5 6 Status 7 8 Status 9 Status 10 Status 11 Status 12 Status 13 Status 14 Status 15 Reserved CPU function code FC0 FC2 respectively directly from 68360 processor R W directly from 68360 processor SIZ0 SIZ1 respectively...

Page 229: ...s data x0xx xxxx xxxx x01x data cycle ds_byte xxxx xxx1 0xxx xxxx 8 bit port ds_long xxxx xxx0 0xxx xxxx 32 bit port ds_word xxxx xxx0 1xxx xxxx 16 bit port fc3 x1xx xxxx xxxx xxxx function code 3 fetch 0xxx xxxx xxxx xxxx instruction fetch flush xxx0 xxxx xxxx xxxx pipeline flush halt xxxx x0xx xxxx xxxx processor halted program x0xx xxxx xxxx x10x program cycle read xxxx xxxx xxx1 xxxx read cycl...

Page 230: ... you enter address data and status expressions to specify the bus state You can combine multiple expressions on the same command line to build a complete bus state qualifier You can also use logical operators to build more complex states Refer to Chapter 11 Emulator Analyzer Interface Commands for details The default expression type is address therefore you don t need to specify the address keywor...

Page 231: ... as a lookup table But you can also use data ranges to qualify a trigger or storage on a range of data values There is only one range term available in the trace specification Once it has been used it cannot be reused That is if you specify a range in a trigger specification you can t duplicate it in the storage specification The Terminal Interface does allow this type of measurement though there ...

Page 232: ...g trace find_sequence bus_state occurs times then bus_state occurs times trigger bus_state bus_state represents a combination of address data and status expressions that must be matched to satisfy the trigger or sequence qualifier times is the number of times that bus state must occur to satisfy the qualifier The trace sequencer allows you to specify up to seven sequence terms including the trigge...

Page 233: ...he selected bus state must occur to satisfy the qualifier The restart qualifier allows you to restart the trace sequence whenever a certain instruction or data access occurs For example you might have a complicated trace sequence that searches for an intermittent failure condition You could set the restart term to restart the sequence whenever a bus cycle occurred that ensures that the code segmen...

Page 234: ...le bus_state disable bus_state bus_state represents a combination of address data and status expressions that must be matched to satisfy the windowing qualifier The trace window specification makes it easy to trace only the occurrences of a particular routine This is especially useful in high level languages where storing only the accesses to a particular address range may miss several function ca...

Page 235: ...imes is the number of times that bus state must occur to satisfy the qualifier You can use the sequencing and windowing specifications together to make specification of complex qualifiers easier If you use the windowing specification the sequence specification is limited to four sequence terms Also note that when you use a windowing specification you cannot use a restart term with your sequence sp...

Page 236: ...unting in the trace enter trace counting off You can use the analyzer s state time counter to count time or bus states If using the deep analyzer counting imposes no restrictions on memory depth If using the 1K analyzer use of the counter restricts the trace memory to a maximum depth of 512 states If you disable the counter in the 1K analyzer using the trace counting off command maximum trace dept...

Page 237: ... command line store only certain states in the trace list by entering trace only bus_state bus_state represents a combination of address data and status expressions that must be matched to satisfy the storage qualifier Storage qualifiers can help filter unwanted information from program execution and improve your trace measurement The analyzer stores only the information specified in the storage q...

Page 238: ...cation by entering trace prestore anything You use the prestore qualifier to save states that are related to other routines that you re tracing For example you might be tracing a subprogram and want to see which program called it You can specify calls be prestored and that entries to the subprogram be stored The easiest way to do this is to prestore program reads that are outside the address range...

Page 239: ...emulator may access guarded memory and break to the monitor You want to trace the events leading up to the guarded memory access but you don t know what to specify for a trigger Use the above command The analyzer will capture and record states until the break occurs The trace list will display the last processor states leading up to the break condition Note that the trace until stop command may no...

Page 240: ...d and edit it than it is to enter a new trace command The Trace Specification Selection dialog box lets you recall edit and enter trace commands that have been executed during the emulation session or trace commands that have been predefined Predefine entries for the Trace Specification Selection dialog box and define the maximum number of entries by setting X resources refer to Chapter 10 Setting...

Page 241: ...g trace again The trace again command is most useful when you want to repeat a measurement with the same trace specification It saves you the trouble of reentering the complete trace command specification The repetitively choice continually repeats the last trace command Successive traces begin as soon as the results from the just completed trace are displayed Also this command is useful when you ...

Page 242: ...he emulator to break to its monitor program shortly before the trace memory is filled This use of trig1 is not supported in workstation interface commands Therefore terminal interface commands accessible through the pod command feature must be used Enter the following commands Settings Pod Command Keyboard tgout trig1 c states before end of memory trigger output trig1 before trace complete bc e tr...

Page 243: ...or from Reset as appropriate The Trace Again or trace again command starts the analyzer trace with the most recent trace specifications including the pod_command specifications you entered The trace command cannot be used by itself because it defaults the bc e trig1 trng addr and tsto r specifications returning them to their default values before the trace begins You can see the progress of your t...

Page 244: ...lename for a binary file that can be viewed using the load trace command 8 Start a new trace with the command trace again 9 Resume the program run from the point where it was interrupted when the emulator broke to the monitor with the command run 10 Wait until the notation trig1 break and or Emulation trace complete appears on the status line Then store the new trace memory content in a new file w...

Page 245: ... Spec In the dialog box select an existing filename or specify a new filename to contain the present trace specification Then click OK Using the command line store the current trace specification by entering store trace_spec filename filename is any UNIX file name including paths The extension TS is automatically added to the file name The trace specification file is a binary file The store trace_...

Page 246: ...ile name including paths The trace data file is a binary file The extension TR is automatically added to the file name A trace data file can be reloaded into the interface and displayed like any other trace listing You can store the trace data resulting from a measurement This can be useful if you want to compare the results of later measurements with a reference result obtained in an earlier meas...

Page 247: ...ny UNIX file name including paths The extension TS is assumed Once you save a trace specification in a file using the File Store Trace Spec or store trace_spec command you can load it using the appropriate command above To start a trace with the trace specification that you loaded use the Trace Again or trace again command Example Load a trace specification from a file and start the trace load tra...

Page 248: ... display trace command Remember that a new trace measurement will overwrite this trace data but not the file from which it was loaded The interface will try to display the trace listing in the display format active when the trace data was stored If the interface needs symbols to replace absolute addresses or to find high level source lines and symbols are not loaded an error occurs For example sup...

Page 249: ...8 Making Software Performance Measurements 229 ...

Page 250: ...tion from the analyzer trace list When you end a performance measurement the SPMT dumps the post processed information to a binary file which is then read using the perf32 report generator utility Two types of software performance measurements can be made with the SPMT activity measurements and duration measurements This chapter describes tasks you perform while using the Software Performance Meas...

Page 251: ...iple write operations to the stack area outside the range The memory activity measurement will count only the stack push opcode cycle However the program activity measurement will count the stack push opcode cycle and the write operations to the stack By comparing the program activity and the memory activity in an address range you can get an idea of how much activity in other areas is caused by t...

Page 252: ...1 72 Graph of Memory Activity relative time percents 1 prog 60 97 data 28 09 stack 10 94 Graph of Program Activity relative state percents 1 prog 99 82 Graph of Program Activity relative time percents 1 prog 99 84 Summary Information for 10 traces Memory Activity State count Relative count 5120 Mean sample 170 67 Mean Standard Dv 29 30 95 Confidence 12 28 Error tolerance Time count Relative Time U...

Page 253: ... process so you should increase the trace depth to the maximum number as shown in the following command If you wish to measure activity as a percentage of all activity the current trace command should be the default in other words trace RETURN The default trace command triggers on any state and all captured states are stored It is important that time be counted by the analyzer otherwise the SPMT m...

Page 254: ...ways Default initialization using global symbols if the symbols database is loaded Initialize with user defined files Initialize with global symbols Initialize with local symbols Restore a previous performance measurement if the emulation system has been exited and reentered Default Initialization Entering the performance_measurement_initialize command with no options specifies an activity measure...

Page 255: ...ines a range based on the address of local_symbol Initialization with Global Symbols When the performance_measurement_initialize command is entered with no options or with the global_symbols option the global symbols in the symbols database become the address ranges for which activity is measured If the symbols database is not loaded a default set of ranges that cover the entire processor address ...

Page 256: ...mulation system you must enter the performance_measurement _initialize restore command before you can add traces to a performance measurement When you restore a performance measurement make sure your current trace command is identical to the command used with the restored measurement The restore option checks the emulator software version and will only work if the perf out files you are restoring ...

Page 257: ... for the addresses of each label An easy way to create the addr_ranges file is to use the copy global_symbols command to copy the global symbols to a file named addr_ranges then fork a shell to UNIX by entering RETURN on the Softkey Interface command line and edit the file so that it contains the procedure names shown above Enter a CTRL d at the UNIX prompt to return to the Softkey Interface To in...

Page 258: ...in activity measurement reports is described below Memory Activity All activity found within the address range Program Activity All activity caused by instruction execution in the address range Program activity includes opcode fetches and the cycles that result from the execution of those instructions reads and writes to memory stack pushes etc Relative With respect to activity in all ranges defin...

Page 259: ...nt a range of addresses or a single address point and it will show the other symbols under either Symbols within range or Additional symbols for address as applicable In the interrupt_sim example it may show either interrupt_sim or _interrupt_sim to represent the range depending on which symbol it finds first The other symbol will be shown below Symbols within range in the report These conditions ...

Page 260: ...samples As the size of the sample increases the Student s T distribution approaches the normal distribution The following equation is used to calculate error tolerance Where Om Mean of the standard deviations t Table entry in Student s T table for a given confidence level N Number of traces in the measurement Pm Mean of the means i e mean sample Examples Consider the following activity measurement...

Page 261: ...2 Mean 128 10 Sdv 227 40 Time Percent Rel 29 29 Abs 25 46 read_conditions Address Range 16EEH thru 177CH Memory Activity State Percent Rel 12 11 Abs 10 00 Mean 51 20 Sdv 157 59 Time Percent Rel 12 18 Abs 10 18 Program Activity State Percent Rel 11 59 Abs 10 00 Mean 51 20 Sdv 157 59 Time Percent Rel 11 71 Abs 10 18 strcpy8 Address Range 10B0H thru 110AH Memory Activity State Percent Rel 9 75 Abs 8 ...

Page 262: ...Percent Rel 5 86 Abs 5 10 proc_specific Address Range 1A6CH thru 1A8CH Memory Activity State Percent Rel 3 84 Abs 3 17 Mean 16 25 Sdv 72 67 Time Percent Rel 3 86 Abs 3 23 Program Activity State Percent Rel 3 70 Abs 3 19 Mean 16 35 Sdv 73 12 Time Percent Rel 3 73 Abs 3 24 combsort Address Range 124EH thru 1444H Memory Activity State Percent Rel 1 06 Abs 0 88 Mean 4 50 Sdv 20 12 Time Percent Rel 1 0...

Page 263: ...Memory Activity State Percent Rel 0 00 Abs 0 00 Mean 0 00 Sdv 0 00 Time Percent Rel 0 00 Abs 0 00 Program Activity State Percent Rel 0 00 Abs 0 00 Mean 0 00 Sdv 0 00 Time Percent Rel 0 00 Abs 0 00 graph_data Address Range 1988H thru 1A40H Memory Activity State Percent Rel 0 00 Abs 0 00 Mean 0 00 Sdv 0 00 Time Percent Rel 0 00 Abs 0 00 Program Activity State Percent Rel 0 00 Abs 0 00 Mean 0 00 Sdv ...

Page 264: ...sim 6 15 write_hdwr 6 06 proc_specific 3 84 combsort 1 06 Graph of Memory Activity relative time percents 1 set_outputs 30 45 update_system 30 44 read_conditions 12 18 strcpy8 9 45 interrupt_sim 5 96 write_hdwr 6 10 proc_specific 3 86 combsort 1 06 Graph of Program Activity relative state percents 1 set_outputs 28 97 update_system 28 99 read_conditions 11 59 strcpy8 12 39 interrupt_sim 5 97 write_...

Page 265: ...elative Time Us 3641 08 Absolute Totals Absolute count state 10240 Absolute count time Us 4188 56 The measurements for each label are printed in descending order according to the amount of activity You can see that the set_outputs function has the most activity Also you can see that no activity is recorded for several of the functions The histogram portion of the report compares the activity in th...

Page 266: ...d the exit address Recursion can place several entry addresses before the first exit address and or several exit addresses before the first entry address Duration measurements are made between the last entry address in a series of entry addresses and the last exit address in a series of exit addresses see the figure below All of the entry and exit addresses which precede these last addresses are a...

Page 267: ...entry and or exit points you may wind up with invalid information This section describes how to Set up the trace command for duration measurements Initialize duration performance measurements Interpret duration measurement reports To set up the trace command for duration measurements 1 Specify a trace display depth of 512 2 Trace after and store only function start and end addresses For duration m...

Page 268: ...command for duration measurements on the interrupt_sim function trace after interrupt_sim start or interrupt_sim end only interrupt_sim start or interrupt_sim end counting time RETURN The trace specification sets up the analyzer to capture only the states that contain the start address of the interrupt_sim function or the end address of the interrupt_sim function Since the trigger state is also st...

Page 269: ...red Initialization with User Defined Ranges You can specifically give the SPMT time ranges to use by placing the information in a file and entering the file name in the performance_measurement_initialize command Time range files may contain comments and time ranges in units of microseconds us milliseconds ms or seconds s An example time range file is shown below Any line which starts with a is a c...

Page 270: ...enter the emulation system you must enter the performance_measurement _initialize restore command before you can add traces to a performance measurement When you restore a performance measurement make sure your current trace command is identical to the command used with the restored measurement The restore option checks the emulator software version and will only work if the perf out files you are...

Page 271: ...urement reports is described below Number of Intervals Number of from address and to address pairs after prefetch correction Maximum Time The greatest amount of time between the from address to the to address Minimum Time The shortest amount of time between the from address to the to address Average Time Average time between the from address and the to address The following equation is used to cal...

Page 272: ...stability of the information For example if the error is 5 for a confidence level of 95 then you can be 95 confident that the information has an error of 5 or less The Student s T distribution is used in these calculations because it improves the accuracy for small samples As the size of the sample increases the Student s T distribution approaches the normal distribution The following equation is ...

Page 273: ...ug_env hp64749 main c Symbolic Reference at interrupt_sim 8A To Address 101E File main module users guest demo debug_env hp64749 main c Symbolic Reference at main interrupt_sim Number of intervals 2550 Maximum Time 73297 920 us Minimum Time 48230 400 us Avg Time 55672 752 us Statistical summary for 10 traces Stdv 11442 64 95 Confidence 0 80 Error tolerance Graph of relative percents 1 us 10 us 0 0...

Page 274: ...o sets of information are given in the duration measurement report module duration and module usage The first set is the module usage measurement Module usage measurements show how much time is spent outside the module of interest they indicate how often the module is used The information shown in the first part of the duration report above shows that the average amount of time spent outside the i...

Page 275: ...tion in the perf out file If the performance_measurement_run command is entered without a count the current trace data is processed If a count is specified the current trace command is executed consecutively the number of times specified The data that results from each trace command is processed and combined with the existing processed data The STATUS line will say Processing trace NO during the r...

Page 276: ... before performing another measurement The performance_measurement_end command does not affect the current performance measurement data which exists within the emulation system In other words you can add more traces later to the existing performance measurement by entering another performance_measurement_run command Once you have entered the performance_measurement_end command you can use the perf...

Page 277: ...scribed below h Produce outputs limited to histograms s Produce a summary limited to the statistical data p Produce a summary limited to the program activity m Produce a summary limited to the memory activity f file Produce a report based on the information contained in file instead of the information contained in perf out For example the following commands save the current performance measurement...

Page 278: ...e a report from the perf out file type the following on the command line to fork a shell and run the perf32 utility perf32 more Chapter 8 Making Software Performance Measurements Running Measurements and Creating Reports 258 ...

Page 279: ...9 Making Coordinated Measurements 259 ...

Page 280: ...ctor labeled TRIGGER IN OUT on the lower left corner of the HP 64700 rear panel to trigger an external instrument for example a logic analyzer or oscilloscope when the analyzer finds its trigger condition Also you can allow an external instrument to arm the analyzer or break emulator execution into the monitor The coordinated measurement tasks you can perform are grouped into the following section...

Page 281: ...ER line is low true This signal can be driven or received by any HP 64700 connected to the CMB This signal can be used to trigger an analyzer It can be used as a break source for the emulator READY The CMB READY line is high true It is an open collector and performs an ANDing of the ready state of enabled emulators on the CMB Each emulator on the CMB releases this line when it is ready to run This...

Page 282: ...rising edge TTL level signal The BNC trigger line can be used to either drive or receive an analyzer trigger or receive a break request for the emulator Comparison Between CMB and BNC Triggers The CMB trigger and BNC trigger lines have the same logical purpose to provide a means for connecting the internal trigger signals trig1 and trig2 to external instruments The CMB and BNC trigger lines are bi...

Page 283: ... to result in damage to the HP 64700 Card Cage To use the CMB you will need one CMB cable for the first two emulators and one additional cable for every emulator after the first two The CMB cable is orderable from HP under product number HP 64023A The cable is four meters long You can build your own compatible CMB cables using standard 9 pin D type subminiature connectors and 26 AWG wire Note that...

Page 284: ...1 Connect the cables to the HP 64700 Chapter 9 Making Coordinated Measurements Setting Up for Coordinated Measurements 264 ...

Page 285: ...rs using the CMB must use background emulation monitors At least 3 4 of the HP 64700 Series emulators connected to the CMB must be powered up before proper operation of the entire CMB configuration can be assured To connect to the rear panel BNC Caution The BNC line on the HP 64700 accepts input and output of TTL levels only TTL levels should not be less than 0 volts or greater than 5 volts Failur...

Page 286: ...ires a driver that can supply at least 4 mA at 2 volts when used as a receiver The BNC connector is configured as an open emitter structure which allows for multiple drivers to be connected It can be used for cross triggering between multiple HP 64700Bs when no other cross measurements are needed The output of the BNC connector is short circuit protected and is protected from TTL level signals whe...

Page 287: ... specified in the specify run command Note that when the CMB is being actively controlled by another emulator the step command does not work correctly The emulator may end up running in user code NOT stepping Disable CMB interaction see To disable synchronous measurements below while stepping the processor Note that enabling CMB interaction does not affect the operation of analyzer cross triggerin...

Page 288: ...interaction does not have to be enabled in order to use either of these commands When you enable CMB interaction you only specify how the emulator will react to the CMB EXECUTE signal All emulators whose CMB interaction is enabled will break into the monitor when any one of those emulators breaks into its monitor To disable synchronous measurements Enter the specify run disable command You can dis...

Page 289: ...s trig1 and trig2 and the emulator analyzer and external devices Notice that the analyzer always drives trig1 and the emulator always receives trig1 This provides for the break_on_trigger syntax of the trace command You can use the trig1 or trig2 line to make a connection between the analyzer and the CMB connector or BNC connector so that when the analyzer finds its trigger condition a trigger sig...

Page 290: ... and BNC connectors Also it s possible for signals to be driven and received on the CMB or BNC connectors So for example while the analyzer s trigger signal can be driven on the CMB and BNC connectors signals can also be received from the CMB and BNC connectors and used to stop user program execution In this case the emulator will break into the monitor on either the analyzer trigger or on the rec...

Page 291: ...easurement Specification section answer yes to the Modify interactive measurement specification question This section shows you how to Drive the emulation analyzer trigger signal to the CMB Drive the emulation analyzer trigger signal to the BNC connector Break emulator execution on signal from CMB Break emulator execution on signal from BNC Arm the emulation analyzer on signal from CMB Arm the emu...

Page 292: ...ceive trig2 and that the emulation analyzer should drive trig2 To drive the emulation analyzer trigger signal to the BNC connector Choose receive for the Should BNC drive or receive Trig1 configuration option You could also drive the emulation analyzer trigger to the BNC over the trig2 internal line by specifying that the BNC should receive trig2 and that the emulation analyzer should drive trig2 ...

Page 293: ...should drive trig2 and that the emulator break should receive trig2 To break emulator execution on signal from BNC Choose drive for the Should BNC drive or receive Trig1 configuration option You could also break emulator execution on a trigger signal from the BNC over the trig2 internal line by specifying that the BNC should drive trig2 and that the emulator break should receive trig2 Chapter 9 Ma...

Page 294: ...onfiguration option 3 Use the arm_trig2 option to the trace command To arm the emulation analyzer on signal from BNC 1 Choose drive for the Should BNC drive or receive Trig2 configuration option 2 Choose receive for the Should Analyzer drive or receive Trig2 configuration option 3 Use the arm_trig2 option to the trace command Chapter 9 Making Coordinated Measurements Using Trigger Signals 274 ...

Page 295: ...Part 3 Reference 275 ...

Page 296: ...pter 12 Emulator Error Messages lists each of the messages that you may see while using the MC68360 emulator analyzer and describes conditions that may cause the message to appear and suggests actions you can take to correct problems indicated by the messages For a thorough analysis of possible problems and solutions refer to the Hewlett Packard M68360 Emulator Analyzer Installation Service Termin...

Page 297: ...10 Setting X Resources 277 ...

Page 298: ...arts up it reads resource specifications from a set of configuration files Resources specifications in later files override those in earlier files Files are read in the following order 1 The application defaults file For example usr lib X11 app defaults HP64_Softkey in HP UX or usr openwin lib X11 app defaults HP64_Softkey in SunOS 2 The XAPPLRESDIR HP64_Softkey file The XAPPLRESDIR environment va...

Page 299: ...directory HOME HP64_schemes note the dot in the directory name Scheme files group resource specifications for different displays computing environments and languages This chapter shows you how to Modify the Graphical User Interface resources Use customized scheme files Set up custom action keys Set initial recall buffer values Set up demos or tutorials Chapter 10 Setting X Resources 279 ...

Page 300: ...nterface if it is different than the platform where the application is running HP64_Softkey colorScheme BW Color custom Names the color scheme file HP64_Softkey sizeScheme Small Large custom Names the size scheme file which defines the fonts and the spacing used HP64_Softkey labelScheme Label LANG custom Names to use for labels and button text The default uses the LANG environment variable if it i...

Page 301: ...ctionKeysSub keyDefs paired list of strings Specifies the text that should appear on the action key push buttons and the commands that should be executed in the command line area when the action key is pushed Refer to the To set up custom action keys section for more information proc dirSelectSub entries list of strings Specifies the initial values that are placed in the File Context Directory pop...

Page 302: ... diff command to check for differences between the new HP64_Softkey application defaults file and the old application defaults file that is saved as usr hp64000 lib X11 HP64_schemes old HP64_Softkey 2 Modify the temporary file Modify the resource that defines the behavior or appearance that you wish to change For example to change the number of lines in the main display area to 36 vi HP64_Softkey ...

Page 303: ...you can check by entering the xrdb query command use the xrdb command to add the resources to the RESOURCE_MANAGER property For example xrdb merge nocpp HP64_Softkey tmp Otherwise if the RESOURCE_MANAGER property does not exist append the temporary file to your HOME Xdefaults file For example cat HP64_Softkey tmp HOME Xdefaults 4 Remove the temporary file 5 Start or restart the Graphical User Inte...

Page 304: ...xample cp usr hp64000 lib X11 HP64_schemes HP UX Softkey Color HOME HP64_schemes HP UX Softkey MyColor Note that if your custom scheme file has the same name as the default scheme file the load order requires resources in the custom file to explicitly override resources in the default file 3 Modify the HOME HP64_schemes platform Softkey scheme file For example you could modify the HOME HP64_scheme...

Page 305: ...e files you must modify these resource settings so that your customized scheme files are used instead of the default scheme files For example to use the HOME HP64_schemes HP UX Softkey MyColor color scheme file you would set the HP64_Softkey colorScheme resource to MyColor HP64_Softkey colorScheme MyColor Refer to the previous To customize Graphical User Interface resources section for more detail...

Page 306: ...nformation in the entry buffer before clicking the action key Shell commands can be executed by using an exclamation point prefix A second exclamation point ends the command string and allows additional options on the command line An empty action causes the emulator to repeat the previous operation whether it came from a pulldown a dialog a pop up or another action key Examples To set up custom ac...

Page 307: ...he default number of visible lines in the pop up is 12 The entries resource is defined as a list of strings see the following example Up to 40 unique values are saved in each of the recall buffers as specified by the resource settings XcRecall maxDepth 40 and XcRecall onlyUnique True File Context Symbols symSelect textColumns symSelect listVisibleItemCount symSelectSub entries Trace Trace Spec mod...

Page 308: ... emulator modify the m68360 dirSelectSub entries resource m68360 dirSelectSub entries HOME users project1 users project2 68360 Refer to the previous To modify the Graphical User Interface resources section for more detailed information on modifying resources Chapter 10 Setting X Resources To set initial recall buffer values 288 ...

Page 309: ...ars in the pulldown menu demoPopupSub indexFile Xdemo Index topics Specifies the file containing the list of topic and file pairs demoPopup textColumns 30 Specifies the width in characters of the of the demo topic list pop up demoPopup listVisibleItemCount 10 Specifies the length in lines of the demo topic list pop up demoTopic About demos Specifies the default topic in the demo pop up selection b...

Page 310: ...tion buffer The mechanism for providing demos and tutorials in the graphical interface is identical The following steps show you how to set up demos or tutorials in the Graphical User Interface 1 Create the demo or tutorial topic files and the associated command files Topic files are simply ASCII text files You can use I to produce inverse video in the text U to produce underlining in the text and...

Page 311: ...780A 3 Set the enableDemo or enableTutorial resource to True 4 Define the demo index file by setting the demoPopupSub indexFile or tutorialPopupSub indexFile resource For example demoPopupSub indexFile users guest gui_demos index You can use absolute paths for example users guest Index paths relative to the directory in which the interface was started for example mydir indexfile or paths relative ...

Page 312: ...292 ...

Page 313: ...11 Emulator Analyzer Interface Commands 293 ...

Page 314: ...bols Only load configuration load abs_file load abs_file nosymbols load symbols File Store Trace Data File Store Trace Spec File Store BBA Data store trace store trace_spec bbaunload File Copy Display File Copy Memory File Copy Data Values File Copy Configuration Info File Copy Trace File Copy Registers File Copy Breakpoints File Copy Status File Copy Global Symbols File Copy Local Symbols File Co...

Page 315: ...ext pwd pws Display Memory Display Memory Mnemonic Display Memory Mnemonic at PC Display Memory Mnemonic Previous Display Memory Hex bytes Display Memory Hex words Display Memory Hex long Display Memory Real short Display Memory Real long Display Memory At Display Memory Repetitively display memory display memory EXPR mnemonic display memory mnemonic at_pc display memory mnemonic previous_display ...

Page 316: ...msim_chip_selects display configuration_info bus_interface_ports display configuration_info embus_interface_ports display configuration_info memory_map display configuration_info reset_mode display configuration_info upper_address display configuration_info clock_mode display configuration_info init_source_code Display SIM Register Differences Display Trace Display Registers Display Breakpoints Di...

Page 317: ...ce from Transfer Address Execution Step Instruction from PC Execution Step Instruction from Execution Step Instruction from Transfer Address Execution Break Execution Reset run run from EXPR run from transfer_address run from reset run from soft_reset run until EXPR step source step source from EXPR step source from transfer_address step step from EXPR step from transfer_address break reset Breakp...

Page 318: ...itively trace trace before STATE break_on_trigger trace on_halt stop_trace Settings Source Symbol Modes Absolute Settings Source Symbol Modes Symbols Settings Source Symbol Modes Source Mixed Settings Source Symbol Modes Source Only Settings Display Modes Settings Pod Command Keyboard Settings Simulated IO Keyboard Settings Command Line set source off symbols off set source off symbols on set sour...

Page 319: ...rigger Breakpoints Display Pop up Command Line Set Inactivate Breakpoint Clear delete Breakpoint Enable Disable Software Breakpoints Set All Breakpoints Clear delete All Breakpoints modify software_breakpoints set deactivate EXPR modify software_breakpoints clear EXPR modify software_breakpoints enable disable modify software_breakpoints set modify software_breakpoints clear Symbols Display Pop up...

Page 320: ...lay error_log display event_log Command Line Pop up Command Line Position Cursor Replace Mode Position Cursor Insert Mode Execute Command Clear to End of Line Clear Entire Line Command Line Off INSERT CHAR key when in insert mode INSERT CHAR key RETURN key CTRL e CTRL u toggles command line Chapter 11 Emulator Analyzer Interface Commands 300 ...

Page 321: ...es to other diagrams are shown in all capital letters Also references to expressions are shown in all capital letters for example EXPR and SYMB see those syntax diagrams These appear in the following syntax diagrams as Circles Circles indicate operators and delimiters used in expressions and on the command line as you enter commands These appear in the syntax diagrams as The NORMAL Key The softkey...

Page 322: ...lay software_breakpoints display status display trace end forward help3 load absolute_file load configuration load emul_mem load trace load trace_spec load user_memory log_commands3 modify configuration modify keyboard_to_simio2 modify memory4 modify register1 modify software_breakpoints1 name_of_module3 performance_measurement_end performance_measurement_init performance_measurement_run pod_comma...

Page 323: ...ak diverts the processor from execution of your program to the emulation monitor reset Break releases the processor from reset and diverts execution to the monitor running in monitor The break command does not perform any operation while the emulator is executing in the monitor See Also The reset run and step commands Chapter 11 Emulator Analyzer Interface Commands break 303 ...

Page 324: ...ovide information about program execution during testing It uses a special C preprocessor to add statements that write to a data array when program branches are taken After running the program in the emulator using test input you can use the bbaunload command to store the BBA information to a file Then you can generate reports based on the stored information See Also Refer to the HP Branch Validat...

Page 325: ...ated Measurement Bus CMB connector All emulators connected to the CMB including the one sending the CMB EXECUTE pulse and configured to respond to this signal will take part in the measurement See Also The specify run and specify trace commands Chapter 11 Emulator Analyzer Interface Commands cmb_execute 305 ...

Page 326: ...parameters to save or print emulation and analysis information The copy command copies selected information to your system printer or listing file or directs it to an UNIX process Chapter 11 Emulator Analyzer Interface Commands copy 306 ...

Page 327: ...tents of the emulation help files to the selected destination HELP_FILE This represents the name of the help file to be copied Available help file names are displayed on the softkey labels UNIX CMD This represents an UNIX filter or pipe where you want to route the output of the copy command UNIX commands must be preceded by an exclamation point An exclamation point following the UNIX command conti...

Page 328: ...s a list of the current software breakpoints to a selected destination status Copies emulation and analysis status information to This allows you to specify a destination for the copied information trace Copies the current trace listing to the selected destination An exclamation point specifies the delimiter for UNIX commands An exclamation point must precede all UNIX commands A trailing exclamati...

Page 329: ...the SYMB syntax pages and the Symbolic Retrieval Utilities User s Guide SYMB is the current working symbol The parameters are as follows SYMB This option represents the symbol whose children are to be listed See the SYMB syntax diagram and the Symbolic Retrieval Utilities User s Guide for information on symbol hierarchy Examples copy local_symbols_in mod_name to printer RETURN copy local_symbols_i...

Page 330: ...ents are listed as an asterisk under the following conditions 1 The address refers to guarded memory 2 Runs are restricted to real time the emulator is running a user program and the address is located in user memory Values in emulation memory can always be displayed Initial values are the same as those specified by the command display memory 0 blocked bytes offset_by 0 Defaults are to values spec...

Page 331: ...mmand line appends the current copy memory command to the preceding display memory command The data specified in both commands is copied to the destination specified in the current command Data is formatted as specified in the current command The comma is also used as a delimiter between values when specifying multiple memory addresses Examples copy memory start to printer RETURN copy memory 0 thr...

Page 332: ... list the registers while the processor is running With no options specified the basic register class is copied The parameters are as follows CLASS Specifies a particular class of the emulator registers REGISTER Examples copy registers EMSIM to printer RETURN copy registers to reglist RETURN See Also The display registers and modify registers commands Chapter 11 Emulator Analyzer Interface Command...

Page 333: ...This specifies the trace list line number from which copying will begin LINE Use this with from_line_number and thru_line_number to specify the starting and ending trace list lines to be copied thru_line_number Specifies the last line number of the trace list to include in the copied range Examples copy trace to tlist RETURN copy trace from_line_number 0 thru_line_number 5 to longtrac RETURN See A...

Page 334: ...ion goes past the edge of the screen Depending on the information you select defaults may be the options selected for the previous execution of the display command The parameters are as follows data This allows you to display a list of memory contents formatted in various data types see the display data pages for details error_log This option displays the recorded list of error messages that occur...

Page 335: ... commands registers This allows you to display the contents of emulation processor registers simulated_io This lets you display data written to the simulated I O display buffer after you have enabled polling for simulated I O in the emulation configuration software _breakpoints This option lets you display the current list of software breakpoints status This displays the emulator and trace status ...

Page 336: ...rom inconsistencies between related configuration values These errors should be resolved in order for the emulator to operate correctly This option primarily checks for inconsistencies between the mapper and the EMSIM registers but it also provides status messages about expectations and limitations of the emulator of which you should be aware These checks are primarily between the reset mode confi...

Page 337: ...cation of 68360 resources reset_mode Displays information about the reset mode configuration value whether it is generated internally by the emulator or externally by the target system upper_address Display the present address mode including size of the address bus and whether the upper address bits are used as A31 A28 or WE3 WE0 This display also describes the distribution of address information ...

Page 338: ...uration_info memory_map RETURN See Also The sync_sim_registers and modify configuration commands Also see the Verifying the Emulator Configuration section in Chapter 5 Configuring the Emulator Chapter 11 Emulator Analyzer Interface Commands display configuration_info 318 ...

Page 339: ...h symbol may be displayed You must issue the command set symbols on to see the symbol names displayed In the first display data command after you begin an emulation session you must supply at least one expression specifying the data item s to display Thereafter the display data command defaults to the expressions specified in the last display data command unless new expressions are supplied or app...

Page 340: ... definition typically row major order for most Algol like languages TYPE Specifies the format in which to display the information Data type information is not available from the symbol database so you must specify byte Hex display of one 8 bit location word Hex display of one 16 bit location long Hex display of one 32 bit location Note that byte ordering in word and long displays is determined by ...

Page 341: ... char Stack long RETURN set symbols on RETURN set width label 30 RETURN display data Msg_B thru 17 char Msg_Dest thru 17 char RETURN See Also The copy data and set commands Chapter 11 Emulator Analyzer Interface Commands display data 321 ...

Page 342: ...declared as global in the source file They include procedure names variables constants and file names When the display global_symbols command is used the listing will include the symbol name and its logical address See Also The copy global_symbols command Chapter 11 Emulator Analyzer Interface Commands display global_symbols 322 ...

Page 343: ...r explanation of symbols Displaying the local symbols sets the current working symbol to the one specified The parameters are as follows SYMB This option represents the symbol whose children are to be listed See the SYMB syntax diagram and the Symbolic Retrieval Utilities User s Guide for more information on symbol hierarchy and representation Examples display local_symbols_in mod_name RETURN disp...

Page 344: ...display memory This command displays the contents of the specified memory location or series of locations Chapter 11 Emulator Analyzer Interface Commands display memory 324 ...

Page 345: ... for all memory displays except blocked mode Memory mnemonic may be displayed with source and assembly code intermixed or with source code only Symbols also can be displayed in the memory mnemonic string See the set command Initial values are the same as specified by the command display memory 0 blocked bytes offset_by 0 Defaults are values specified in a previous display memory command The symbol...

Page 346: ...ssembler or compiler listing This option is also useful for displaying symbols and source lines in dynamically relocated programs previous_display Returns to display associated with the previous mnemonic memory display command real Formats memory values in the listing as real numbers NaN in the display list means Not a Number repetitively Updates the memory listing display continuously You should ...

Page 347: ...mber and mnemonic formats display memory 2000h thru 202fh 2100h real long RETURN display memory 400h mnemonic RETURN set symbols on RETURN set source on RETURN display memory main mnemonic RETURN See Also The copy memory modify memory set and store memory commands Chapter 11 Emulator Analyzer Interface Commands display memory 327 ...

Page 348: ...ning Symbols also may be displayed in the register step mnemonic string see set symbols With no options specified the basic register class is displayed as the default This includes the local and global registers The parameters are as follows CLASS This allows you to display a particular class of emulation processor registers REGISTER This displays an individual register or control register field E...

Page 349: ...s six simulated I O addresses can be defined You then define files used for standard input standard output and standard error For details about setting up simulated I O refer to the Simulated I O User s Guide Examples display simulated_io RETURN See Also The modify configuration and modify keyboard_to_simio commands Chapter 11 Emulator Analyzer Interface Commands display simulated_io 329 ...

Page 350: ...d for addresses that correspond to a symbol See the set command for details The parameters are as follows EXPR An expression is a combination of numeric values symbols operators and parentheses specifying an offset value for the breakpoint address See the EXPR syntax diagram offset_by This option allows you to offset the listed software breakpoint address value from the actual address of the break...

Page 351: ... presented as absolute hexadecimal values or in mnemonic form The processor status values captured by the analyzer can be listed mnemonically or in hexadecimal or binary form Addresses captured by the analyzer are physical addresses Chapter 11 Emulator Analyzer Interface Commands display trace 331 ...

Page 352: ...Lists trace information in hexadecimal format rather than mnemonic opcodes count absolute This lists the time count for each event of the trace as the total time measured from the trigger event relative This lists the time count for each event of the trace as the time measured relative to the previous event depth DEPTH This defines the number of states to be uploaded by the interface Note that aft...

Page 353: ...e instruction the system makes the listed address match that given in the assembler or compiler listing This option is also useful for displaying symbols and source lines in dynamically relocated programs Note that when using the set source only command the analyzer may operate more slowly than when using the set source on command This is an operating characteristic of the analyzer When you use th...

Page 354: ...decimal form mnemonic Lists absolute status information in mnemonic form Examples display trace count absolute RETURN display trace absolute status binary RETURN display trace mnemonic RETURN See Also The copy trace store trace and set commands Chapter 11 Emulator Analyzer Interface Commands display trace 334 ...

Page 355: ...NIX shell without releasing the emulator The parameters are as follows locked This option allows you to stop all active instances of an emulator analyzer interface session in one or more windows and or terminals This option is not available when operating the emulator in the measurement system release_system This option stops all instances of the emulator analyzer interface in one or more windows ...

Page 356: ...address or symbol For example you could specify the address range disp_buf thru disp_buf 25 as disp_buf thru 25 The parameters are as follows DON T CARE NUMBER You can include don t care numbers in expressions These are indicated by a number containing an x These numbers may be defined as binary octal decimal or hexadecimal For example 1fxxh 17x7o and 011xxx10b are valid Note that Don t care numbe...

Page 357: ... be located For example if a particular symbol is associated with a range of addresses end will represent the last address in that range start This displays first memory location where the symbol you specify may be located For example if a particular symbol is associated with a range of addresses start will represent the first address in that range UNARY This defines either the algebraic negation ...

Page 358: ...ious repeated entry of long symbols and expressions For example disp_buf thru 25 is the same as disp_buf thru disp_buf 25 Examples 05fxh 0ffffh disp_buf 5 symb_tbl offset 2 start mod_name line 15 end See Also The SYMB syntax description Chapter 11 Emulator Analyzer Interface Commands EXPR 338 ...

Page 359: ...om those listed below d Data space none Causes the emulator to ignore the function code bits p Program space s Supervisor space sd Supervisor data space sp Supervisor program space u User space ud User data space up User program space cpu Supervisor CPU space Chapter 11 Emulator Analyzer Interface Commands FCODE 339 ...

Page 360: ... user data memory to a file copy memory fcode ud 1000H thru 1fffH to mymem RETURN To modify a location in program memory modify memory fcode p 5000h long to 12345678h RETURN Chapter 11 Emulator Analyzer Interface Commands FCODE 340 ...

Page 361: ...debugger interface emul Forwards command to the emulator analyzer interface perf Forwards commands to the software performance analyzer interface UINAME Forwards commands to a user interface name other than those available on the softkeys Examples To send the Program Run command to the debugger forward debug Program Run RETURN To send the profile command to the software performance analyzer forwar...

Page 362: ...information The parameters are as follows HELP_FILE This represents one of the available options on the softkey labels You can either press a softkey representing the help file or type in the help file name If you are typing in the help file name make sure you use the complete syntax Not all of the softkey labels reflect the complete file name Examples help system_commands RETURN run RETURN This i...

Page 363: ...isters expressions EXPR symbols SYMB specify cmb cmb_execute map set wait pod_command bbaunload coverage performance_measurement_initialize performance_measurement_run performance_measurement_end Chapter 11 Emulator Analyzer Interface Commands help 343 ...

Page 364: ...hat the locations of the file are in user target system memory or emulation memory This command also allows you to access and display previously stored trace data load a previously created configuration file and load absolute files with symbols Note that any file specified by FILE cannot be named configuration emul_mem user_mem symbols trace or trace_spec because these are reserved words and are n...

Page 365: ...d an absolute file If you load an absolute file end emulation then modify the file and relink it the symbol database will not be updated upon reentering emulation and reloading the file The default is to rebuild the database symbols This option causes the file specified to be loaded with symbols trace This option allows you to load a previously generated trace file trace_spec This option allows yo...

Page 366: ...ts the file where you want to store commands that are executed during an emulation session noappend If the named file is an existing file this option causes the new commands to overwrite any information present in the file If this option is not specified new commands are appended to the existing contents of the file off This option turns off the capability to log commands to This allows you to spe...

Page 367: ...nts of memory as integers strings or real numbers Modify the contents of the processor registers View or edit the current emulation configuration Modify the software breakpoints table The following pages contain detailed information about the various modify syntax diagrams Chapter 11 Emulator Analyzer Interface Commands modify 347 ...

Page 368: ...esponse or the previously entered response You can select the currently displayed response by pressing RETURN Otherwise you can modify the response as you desire then press RETURN The default responses defined on powerup are displayed Examples modify configuration RETURN See Also The load configuration command Chapter 11 Emulator Analyzer Interface Commands modify configuration 348 ...

Page 369: ...disabled The emulation softkeys are blank and the softkey labeled suspend is displayed on your screen Pressing suspend RETURN will deactivate keyboard simulated I O and return the keyboard to normal emulation mode For details about setting up simulated I O refer to the Simulated I O User s Guide See Also The display simulated_io command Chapter 11 Emulator Analyzer Interface Commands modify keyboa...

Page 370: ...cation in the series to be modified and the values to which the contents of that location and successive locations are to be changed The first value listed will replace the contents of the first memory location The second value replaces the contents of the next memory location in the series and so on until the list is exhausted When more than one value is listed the value representations must be s...

Page 371: ...occurred For integer memory modifications the default is to the current display memory mode if one is in effect Otherwise the default is to byte For real memory modifications the default is to the current display memory mode if one is in effect Otherwise the default is word The parameters are as follows bytes Modify memory in byte values EXPR An expression is a combination of numeric values symbol...

Page 372: ... memory locations will be changed words Modify memory locations as 32 bit values A comma is used as a delimiter between values when modifying multiple memory addresses Examples modify memory data1 bytes to 0E3H 01H 08H RETURN modify memory data1 thru DATA100 to 0FFFFH RETURN modify memory 0675H real to 1 303 RETURN modify memory temp real long to 0 5532E 8 RETURN modify memory buffer string to Tes...

Page 373: ...odify the registers The parameters are as follows EXPR An expression is a combination of numeric values symbols operators and parentheses specifying a register value For the floating point registers the value is interpreted as a decimal real number See the EXPR description REGISTER This represents the name of a register to Allows you to specify the values to which the selected registers will be ch...

Page 374: ...ction is restored in the user program Thus execution is interrupted before the instruction at the specified address is executed Operation of the program can be resumed after the breakpoint is encountered by specifying either a run or step command If you modify software breakpoints while the memory mnemonic display is active the new breakpoints are indicated by a in the leftmost column of the instr...

Page 375: ...breakpoint is inactivated or removed set This option allows you to activate software breakpoints in your program If no breakpoint addresses are specified in the command all breakpoints that have been inactivated executed are reactivated temporary Sets a temporary breakpoint When the break occurs the original opcode is replaced in the program A comma is used as a delimiter between specified breakpo...

Page 376: ...d is executed Current measurement data existing in the emulation system is not altered by this command Examples performance_measurement_end RETURN See Also The performance_measurement_initialize and performance_measurement_run commands Refer to Chapter 8 Making Software Performance Measurements for examples of performance measurement specification and use Chapter 11 Emulator Analyzer Interface Com...

Page 377: ... has not been loaded the system will default to a predetermined set of addresses which covers the entire emulation processor address range The measurement will default to activity mode Default values will vary depending on the type of operation selected and whether symbols have been loaded The parameters are as follows activity This option causes the performance measurement process to operate as t...

Page 378: ...t data so that a measurement can be continued when using the same trace command as previously used SYMB This represents the source file that contains the local symbols to be listed This also can be a program symbol name in which case all symbols that are local to a function or procedure are used See the SYMB syntax diagram Examples performance_measurement_initialize RETURN performance_measurement_...

Page 379: ...number of times specified by the COUNT option Note that the trace command must be set up correctly for the requested measurement For an activity measurement you can use the default trace command trace RETURN For a duration measurement you must set up the trace specification to store only the points of interest To do this for example you could enter trace only symbol_entry or symbol_exit Examples p...

Page 380: ...ands will change the operation of the communications channel and are likely to hang the Softkey Interface and the channel echo mac Using these may confuse the communications protocols in use on the channel wait Do not use The pod will enter a wait state blocking access by the emulator analyzer interface init pv These will reset the emulator pod and force an end release_system command t Do not use ...

Page 381: ...p interactive access to the Terminal Interface and return to the Graphical User Interface or Softkey Interface Examples This example shows a simple interactive session with the Terminal Interface display pod_command RETURN pod_command keyboard RETURN cf RETURN tsq RETURN tcq RETURN Enter suspend to return to the Graphical User Interface or Softkey Interface See Also The display pod_command command...

Page 382: ...er Some examples include 1fxxh 17x7o and 011xxx10b Don t care numbers may be entered in binary octal or hexadecimal base The default is to qualify on all states The parameters are as follows or This option allows you to specify multiple states STATE to be captured during a trace measurement See the STATE syntax diagram RANGE This allows you to specify a range of states to be captured during a trac...

Page 383: ...me read_input RETURN trace only address range mod_name read_input thru output RETURN trace only address range mod_name clear thru read_input RETURN See Also The trace command Chapter 11 Emulator Analyzer Interface Commands QUALIFIER 363 ...

Page 384: ...ression types are address when none is chosen The parameters are as follows address The value following this softkey is searched for on the lines that monitor the emulation processor s address bus data The value following this softkey is searched for on the lines that monitor the emulation processor s data bus EXPR An expression is a combination of numeric values symbols operators and parentheses ...

Page 385: ...specified EXPR thru EXPR status The value following this softkey is searched for on the lines that monitor other emulation processor signals thru This indicates that the following address expression is the upper address in a range Examples See the trace command examples See Also The trace command and the QUALIFIER syntax description Chapter 11 Emulator Analyzer Interface Commands RANGE 365 ...

Page 386: ...tial emulator operating parameters such as reloading control registers The reset signal is latched when the reset command is executed and released by either the run or break command See Also The break and run commands Chapter 11 Emulator Analyzer Interface Commands reset 366 ...

Page 387: ...program counter A run from reset command will reset the processor and then allow it to run It is equivalent to entering a reset command followed by a run command A run from soft_reset command will pulse the 68360 soft reset line to cause a soft reset If the emulator is configured to participate in the READY signal on the CMB then this emulator will release the READY signal so that it will go TRUE ...

Page 388: ...to see a list of the function codes available and for an explanation of those codes from This specifies the address from which program execution is to begin reset This option resets the processor prior to running transfer_address This represents the starting address of the program loaded into emulation or target memory The transfer address is defined in the linker map and is part of the symbol dat...

Page 389: ...lyzer default is no sequencing terms If you select the sequencer using the find_sequence parameter you must specify at least one qualifying sequence term The parameters are as follows find_sequence Specifies that you want to use the analysis sequencer You must enter at least one qualifier QUALIFIER Specifies the address data status or executed address value or value range that will satisfy this se...

Page 390: ...u to add multiple sequence terms each with its own qualifier and occurrence count restart Selects global restart If the analyzer finds the restart qualifier while searching for a sequence term the sequencer is reset and searching begins for the first sequence term Examples trace find_sequence Caller_3 then Write_Num restart anly anly c line 57 trigger after Results 0c4h RETURN See Also The trace c...

Page 391: ...set Chapter 11 Emulator Analyzer Interface Commands set 371 ...

Page 392: ...o the UNIX environment The default display format parameters are the same as those set by the commands set update set source off symbols off You can return the display format to this state by entering set default The parameters are as follows default This option restores all the set options to their default settings ENV_VAR Specifies the name of a UNIX environment variable to be set The equals sig...

Page 393: ...ols Note An alternate method for making the langinfo specification is to use the environment variable HP64SYMORDER By making the following entry in your profile the langinfo setting will always be C for example HP64SYMORDER C I want to use the C disambiguating hierarchy export HP64SYMORDER let children processes know about it memory Sets update option for memory displays only noupdate When using m...

Page 394: ...nts and register step mnemonics high Displays only high level symbols such as those available from a compiler See the Symbolic Retrieval Utilities User s Guide for a detailed discussion of symbols low Displays only low level symbols such as those generated internally by a compiler or an assembly symbol all Displays all symbols tabs_are This option allows you to define the number of spaces inserted...

Page 395: ...ep mnemonics displays It also changes the width of the status field in the trace list symbols This lets you specify the maximum width of symbols in the mnemonic field of the trace list memory mnemonic and register step mnemonic displays WIDTH This prompts you for the column width of the source label mnemonic or symbols field Note that CTRL f and CTRL g may be used to shift the display left or righ...

Page 396: ...us or until you enter a cmb_execute command If the processor is reset and no address is specified a cmb_execute command will run the processor from the reset condition Note that the run specification is active until you enter specify run disable The trace specification is active until you enter another trace command without the specify prefix The emulator will run from the current program counter ...

Page 397: ...e specify run from command and represents the address from which the program will begin running run This option specifies that the emulator will run from either an expression or from the transfer address when a CMB EXECUTE signal is received TRACE This option specifies that a trace measurement will be taken when a CMB EXECUTE signal is received until Specifies an address where program execution is...

Page 398: ... the QUALIFIER parameter to the trace command and allows you to specify a condition for the trace measurement Refer to the Qualifying Trigger and Store Conditions section in Chapter 7 Using the Emulation Bus Analyzer for a list of the predefined values that can be assigned to the status state qualifiers Chapter 11 Emulator Analyzer Interface Commands STATE 378 ...

Page 399: ...XPR syntax diagram external_label This represents a defined external analyzer label not This specifies that the analyzer will search for the logical not of a specified state this includes any address that is not in the specified state status The value following this softkey is searched for on the lines that monitor other emulation processor signals STATUS This prompts you to enter a status value i...

Page 400: ...ete when a source line is found Therefore stepping only assembly code may step forever To abort stepping press CTRL c When displaying memory mnemonic and stepping the next instruction that will step is highlighted The memory mnemonic display autopages to the new address if the next PC goes outside of the currently displayed address range This feature works even if stepping is performed in a differ...

Page 401: ...xecuted can be entered in binary B octal O or Q decimal D or hexadecimal H notation silently When you specify a number of steps this option updates the register step mnemonic only after stepping is complete This will speed up stepping of many instructions The default is to update the register step mnemonic after each assembly instruction or source line executes if stepping is performed in the same...

Page 402: ...tops execution of the current measurement The analyzer stops searching for trigger and trace states If trace memory is empty no states acquired nothing will be displayed See Also The trace command Chapter 11 Emulator Analyzer Interface Commands stop_trace 382 ...

Page 403: ...ansfer address of the absolute file is set to zero The parameters are as follows EXPR This is a combination of numeric values symbols operators and parentheses specifying a memory address See the EXPR syntax diagram FCODE The function code used to define the address space being referenced See the syntax diagram for FCODE to see a list of the function codes available and for an explanation of those...

Page 404: ...urrent trace data to be stored in the specified file with a TR extension trace_spec This option stores the current trace specification in the specified file with a TS extension A comma separates memory expressions in the command line Examples store memory 800H thru 20FFH to TEMP2 RETURN store memory EXEC thru DONE to 12 10 RETURN store trace TRACE RETURN store trace_spec TRACE RETURN See Also The ...

Page 405: ... SYMB Chapter 11 Emulator Analyzer Interface Commands SYMB 385 ...

Page 406: ...atabase before entering the emulation environment the measurements involving a particular symbol request will occur immediately If you then change a module and reenter the emulation environment without rebuilding the symbol database the emulation software rebuilds the changed portions of the database in increments as necessary Further information regarding the SRU and symbol handling is available ...

Page 407: ...NAME Prompts you for entry of the segment name TYPE When two identifier names are identical and have the same scope you can distinguish between them by entering the type in parentheses Do not type a space between the identifier name and the type specification The type will be one of the following filename Specifies that the identifier is a source file module These refer to module symbols For Ada t...

Page 408: ...ss_port port_ptr port_value end main File system project1 porthand c include utils c void process_port int port_num int port_data static int i static int i2 for i 0 i 64 i i2 i 2 port_num port_data i2 delay static int i i 3 port_data port_data i end of process_port File system project1 utils c delay int i j int waste_time for i 0 i 256000 i for j 0 j 256000 j waste_time 0 end delay Chapter 11 Emul...

Page 409: ...nding on the object module format and compiler used Note that SRU does not build tree nodes for variables that are dynamically allocated on the stack at run time such as i and j within the delay procedure Chapter 11 Emulator Analyzer Interface Commands SYMB 389 ...

Page 410: ...Notice how you can reference different variables with matching identifiers by specifying the complete scope You also can save typing by specifying a scope with cws For example if you are making many measurements involving symbols in the file porthand c you could specify cws porthand c process_port Then i BLOCK_1 i are prefixed with porthand c process_port before the database lookup If a symbol sea...

Page 411: ...ymbol type if conflicts arise Although not shown in the tree assume that a procedure called port_one is also defined in control c This would conflict with the identifier port_one which declares an integer pointer SRU can resolve the difference You must specify control c port_one static to reference the variable and control c port_one procedure to reference the procedure address See Also The copy l...

Page 412: ...or s EMSIM registers to_68360 _from_config Copies the emulator s EMSIM registers into the microprocessor s SIM registers difference Displays the differences between the microprocessor s SIM registers and the emulator s EMSIM registers default_config Restores the EMSIM registers to their default power up values This has no effect on the SIM registers See Also The modify register commands Chapter 11...

Page 413: ...rameters or by specifying the trace parameters first and then initiating the program run Once a trace begins the analyzer monitors the system busses of the emulation processor to detect the states specified in the trace command When the trace specification is satisfied and trace memory is filled a message will appear on the status line indicating the trace is complete You can then use display trac...

Page 414: ...easurements between multiple HP 64700s or an HP 64700 and another instrument Before arm_trig2 can appear as an option you must modify the emulation configuration interactive measurement specification When doing this you must specify that either BNC or CMBT drive trig2 and that the analyzer receive trig2 See Chapter 9 Making Coordinated Measurements for more information break_on_trigger This stops ...

Page 415: ...u are limited to four sequence terms if windowing is enabled See the SEQUENCING syntax pages for more details TRIGGER This represents the event on the emulation bus to be used as the starting ending or centering event for the trace See the TRIGGER syntax diagram When using this option you cannot include the on_halt option WINDOW Selectively enables and disables analyzer operation based upon indepe...

Page 416: ...s about This option captures trace data leading to and following the trigger qualifier The trigger is centered in the trace listing after Trace data is acquired after the trigger qualifier is found before Trace data is acquired prior to the trigger qualifier occurs This specifies a number of qualifier occurrences of a range or state on which the analyzer is to trigger QUALIFIER This determines whi...

Page 417: ...IN RETURN trace after 1000H then data 5 RETURN Also see the trace command examples See Also The trace command Also refer to Chapter 9 Making Coordinated Measurements Chapter 11 Emulator Analyzer Interface Commands TRIGGER 397 ...

Page 418: ...ill pause until it receives a CTRL c signal Note that if set intr CTRL c was not executed on your system CTRL c normally defaults to the backspace key See your UNIX system administrator for more details regarding keyboard definitions The parameters are as follows measurement _complete This causes the system to pause until a pending measurement completes a trace data upload process completes or unt...

Page 419: ... the command file to pause until a CTRL c signal is received if CTRL c is defined as the interrupt signal Subsequent commands in the command file will not execute while the command file is paused You can verify whether the interrupt signal is defined as CTRL c by typing set at the system prompt Examples wait RETURN wait 5 wait measurement_complete RETURN Chapter 11 Emulator Analyzer Interface Comm...

Page 420: ...ble term and one disable term The analyzer defaults to recognizing all states If you specify enable you must supply a qualifier term If you then specify disable you must specify a qualifier term The parameters are as follows disable Allows you to specify the term which will stop the analyzer from recognizing states once the enable term has been found enable Allows you to specify the term which wil...

Page 421: ...Examples trace enable _rand disable 0ecch RETURN See Also The trace command and the SEQUENCING and QUALIFIER syntax descriptions Chapter 11 Emulator Analyzer Interface Commands WINDOW 401 ...

Page 422: ...402 ...

Page 423: ...lator Error Messages This chapter lists error and status messages that you may see when using the emulator The causes of the messages are given along with actions you can take to overcome error conditions 403 ...

Page 424: ...lay area The error log can hold up to 100 messages To prevent overrun the error log purges the oldest messages to make room for the new ones Emulator error messages Analyzer Break Async_Stat 613 Cause Status message No action necessary Analyzer SIMMs are not all the same size using smallest size Status 1002 Cause Plug in SIMMs are used to expand the trace depth to 64k or 256k states in the deep an...

Page 425: ...ause During execution of your command the emulator BDM cycle was aborted due to detection of a target reset Action Try your command again BNC trigger break Async_Stat 616 Cause This status message will be displayed if you have configured the emulator to break on a BNC trigger signal and the BNC trigger line is activated during a program run The emulator is broken to the monitor Break caused by CMB...

Page 426: ... 667 Cause You attempted to insert a breakpoint however there was already a software breakpoint instruction at that location which was not already in the breakpoint table Action Remove the breakpoints from your program code and try to insert breakpoints again Breakpoint disable aborted Error 671 Cause Occurs when CTRL c is entered when disabling software breakpoints Breakpoint enable aborted Error...

Page 427: ... Cannot modify program counter to an odd value Cause The emulator will not allow you to modify the content of the program counter to an odd value Cannot modify stack pointer to an odd value Cause The emulator will not allow you to modify the stack pointer to an odd value Can t access module regs addr space mask sd bit 6 is set Error 168 Cause The value of register emmbar or register mbar has bit 6...

Page 428: ...mory may be programmed for any TCYC3 0 For max bus speed 25MHz Any chip select into emulation memory must be programmed for TCYC3 0 1 For max bus speed 33MHz Memory type HP64172 Any chip select into emulation memory must be programmed for TCYC3 0 1 Memory type HP64173 or for both type HP64172 and HP64173 Any chip select into emulation memory must be programmed for TCYC3 0 2 For max bus speed 40MHz...

Page 429: ...hip select into emulation memory must be programmed for TCYC3 0 2 For max bus speed 40MHz Any chip select into emulation memory must be programmed for TCYC3 0 2 Action Respecify the value of emor0 to obtain the correct TCYC3 0 programming Chip 0 has DRAM access into Map Term 1 not allowed Status 169 Cause The setup of register emor0 allows DRAM access into emulation mapped memory The emulator does...

Page 430: ...rror 1305 Cause This status message informs you that an emulation trace measurement has started as a result of a CMB execute signal as specified by the specify trace command CMB execute run started Async_Stat 693 Cause This status message is displayed when you are making coordinated measurements The CMB EXECUTE pulse has been received the emulation processor started running at the address specifie...

Page 431: ...n a CTRL c is entered while emulator configuration items are being set Configuration failed setting unknown item value Error 626 Cause Target condition or system failure while trying to change configuration item Action Try to reset Then reenter your cf command Check target system and run performance verification pv command Conflict between expected and received symbol information Error 880 Cause T...

Page 432: ...r 161 Cause The cim copy target image memory command cannot be used in this emulator Normally the cim command would be used to copy a target system memory range to emulation memory so you could set breakpoints or patch code Action To do this without the cim command save the target system memory range to an absolute file using the copy command Then remap the target memory range to emulation memory ...

Page 433: ...d address Error 604 Cause System failure or target condition Action Emulator was unable to write previously saved opcode to target memory Check target memory system Disable breakpoint failed address Error 666 Cause System failure or target condition Action Check memory mapping and configuration questions This message is usually accompanied by other messages Look at those messages to better underst...

Page 434: ...ayed if the emulator was unable to perform the requested operation on memory mapped to the target system In most cases the problem results from the emulator s inability to break to the monitor to perform the operation Usually there are other error messages Refer to them to fully understand the cause of the error Action See message Unable to Break Emulator can not respond to chip 0 without ADDR 31 ...

Page 435: ...l interface tgout trigger output command of the deep analyzer may use an arbitrary expression as an event to drive the trig1 and or trig2 signals to the emulator This expression can be set up in two ways One way uses two tgout commands the first command defines the signals and type of events and the second command defines the expression This is most useful when defining complicated expressions The...

Page 436: ...ecause you thought the transfer was about to fail Action Retry the transfer making sure to use the correct command options If you are unsuccessful make sure the data communications parameters are set correctly on the host and on the HP 64700 then retry the operation Foreground monitor handled an exception vector offset 8 Async_Err 152 Cause The foreground monitor handled an exception while perform...

Page 437: ... the monitor Illegal base for count display Error 1130 Cause When specifying the trace format counts may only be displayed relative or absolute When counting states the count is always displayed as a decimal number Action Respecify the trace format without using a base for the count column Also you can use A to specify that counts be displayed absolute or you can use R to specify that counts be di...

Page 438: ... or mesaurement complete events Action Examine your tgout specification and modify it to remove ORing of delay specifications with trigger recognition or measurement complete events Insufficient emulation memory Error 21 Cause You tried to map more emulation memory than is available Action Check your map specification Do not try to map more emulation memory than is available in your system You can...

Page 439: ...on Use online help by typing help EXPR and help SYMB See the ADDRESS and EXPRESSION syntax pages in this manual for information on address specifications Also make sure that the upper boundary specification is greater than the lower boundary specification the lower boundary must always precede the upper boundary on the command line Invalid answer in ascii config file configuration aborted Cause A ...

Page 440: ...item Action Use the help screen to see valid items Reenter the command specifying only configuration items that are supported by your emulator Refer to Chapter 5 Configuring the Emulator in this manual Invalid count count Error 315 Cause This error occurs when the emulation system expects a certain number of arguments for example but you specify a different number Action Enter the number the syste...

Page 441: ...and the address specification See the ADDRESS and the EXPRESSION syntax pages in this manual for information on address specifications Also make sure that the upper boundary specification is greater than the lower boundary specification the lower boundary must always precede the upper boundary on the command line Invalid memory map attribute attribute Error 731 Cause The only valid memory map attr...

Page 442: ...rinted indicates the incorrect option Action Use online help by typing help command or command Reenter the command with the correct syntax Refer to Chapter 11 Emulator Analyzer Interface Commands for more information Invalid pod number pod Error 1253 Cause This error message occurs when you attempt to specify a slave clock for a non existent analyzer pod Action Use the trace activity command to di...

Page 443: ... a global symbol make sure that you precede the global symbol with a colon for example global_symbol When specifying a symbol you created make sure that you enter the name correctly without a colon Invalid syntax for local symbol or module symbol module Error 876 Cause This error occurs when you enter a local symbol or module name with incorrect syntax Action When entering a local symbol name make...

Page 444: ...ge overlaps with one already mapped Action Reenter the map term so that ranges do not overlap or combine terms and change the memory type Macro buffer full macro not added Error 809 Cause This error occurs when the memory reserved for macros is all used up Action You must delete macros to reclaim memory in the macro buffer Map term 1 type conflict with foreground monitor must be eram Error 141 Cau...

Page 445: ...uring processing of the copy memory or modify memory commands The break could result from any of the break conditions or could have resulted from a CTRL c break Action Retry the operation If breaks are occurring continuously you may wish to disable some of the break conditions Message overflow Status 153 Cause The display configuration_info diagnostics command may emit more messages than the HP 64...

Page 446: ...nitor to ensure that it is on a 4 Kbyte boundary No map terms available maximum number already defined Error 7212 Cause You tried to add more mapper terms than are available for this emulator For example with the MC68360 emulator there are only eight terms If you had already defined memory types for these terms then tried to map another term you would see the above error message Action Either comb...

Page 447: ...system memory Error 201 Cause Macros and equates that you have defined have used all of the available system memory Action Delete some of the existing macros and equates This will free additional memory Program counter is located in guarded memory Error 150 Cause The address contained in the program counter is an address in guarded memory Action Write a valid address into the program counter Progr...

Page 448: ...target system configuration the emulator configuration and memory map or reinitialize the emulator Then try the command sequence again Record checksum failure Error 400 Cause During a transfer operation the checksum specified in a file did not agree with that calculated by the HP 64700 Action Retry the transfer operation If the failure is repeated make sure that both your host and the HP 64700 dat...

Page 449: ...d set emmbar bit 0 1 Then try your command again Register mbar 000000000H valid bit not set Error 149 Cause You entered a command that must access the SIM register set The SIM register set can only be accessed when register mbar is valid that is the valid bit of mbar bit 0 must equal 1 Action Write a valid content into mbar and set mbar bit 0 1 Then try your command again Request access to guarded...

Page 450: ... 64700 The data communications parameters need to be set correctly for both devices Also if you are in a remote location from the host line noise may cause the failure Run failed during CMB execute Async_Error 694 Cause System failure or target condition Action Run performance verification pv command and check target system Sequence term not contiguous term Error 1225 Cause This error occurs when ...

Page 451: ...se This status message indicates that the target program executed a software breakpoint instruction an execution breakpoint either in software or provided by one of the eight hardware breakpoint resources The emulator stopped the target program and began running in the monitor Software breakpoint break condition is disabled Error 661 Cause You disabled the software breakpoint feature Breakpoints a...

Page 452: ...received during a step command with a stepcount greater than zero The break could have been due to any of the break conditions or a CTRL c break The number of steps completed is displayed Stepping failed Error 680 Cause Stepping has failed for some reason For example this message will appear if the emulator can t modify the trace vector which is used to implement the step function Usually this err...

Page 453: ...the cause of the error Target reset and run while in monitor BDM Error 143 Cause The emulator had placed the target processor in Background Debug Mode BDM and during execution in BDM the target system was reset Action Reissue your command after target reset Trig1 trig2 delay spec out of bounds Entered Numeric Value Error 1255 Cause The terminal interface tgout trigger output command of the deep an...

Page 454: ...Cause This error occurs when you attempt to specify the first sequence term as the trigger term The trigger term may be any term except the first Action Respecify the trigger term as any other sequence term Too many sequence terms Error 1226 Cause This error occurs when you attempt to insert more than four sequence terms Action Do not attempt to insert more than four sequence terms Trace error dur...

Page 455: ...er output drive the internal trig1 signal while that signal is currently specified as the arm condition for the same analyzer Action You can either change the arm or the trigger output specification in either case make sure they do not use the same internal signal trig2 break Async_Stat 619 This status message will be displayed if you have used the internal trig2 line to connect the analyzer trigg...

Page 456: ... controller use the break command to break to the monitor If reset by the target system release that reset If halted try reset and break to get to the monitor If there is a bus grant wait for the requesting device to release the bus before retrying the command If there is no clock input perhaps your target system is faulty It s also possible that you have configured the emulator to restrict to rea...

Page 457: ...he register read Unable to redefine label used by emulation analyzer label Error 1108 Cause This error occurs when you attempt to redefine an emulation trace label that is currently used as a qualifier in the emulation trace specification Action Display the emulation trace sequencer specification in the easy configuration display the emulation trace patterns in the complex configuration or display...

Page 458: ... target condition Action Run performance verification pv command and check target system Unexpected software breakpoint Error 620 Unexpected step break Error 621 Cause System failure Action Run performance verification pv command Undefined software breakpoint address Error 605 Cause The emulator has encountered a BKPT instruction in your program that was not inserted with the breakpoint command Ac...

Page 459: ...ou attempted to disassemble a trace and the analyzer firmware was found to be out of date Action Refer to Chapter 15 Installing Updating Emulator Firmware You must update the firmware to the version number specified in the message or newer firmware version number Your system is not usable with its present firmware Write to ROM break ROM address Async_Stat 628 Cause This status message indicates th...

Page 460: ...440 ...

Page 461: ...Part 4 Concept Guide 441 ...

Page 462: ...Concept Guide In This Part Part 4 of this book explains concepts and shows you how to apply them to advanced tasks Part 4 442 ...

Page 463: ...13 Concepts of the EMSIM and EMRAM 443 ...

Page 464: ...Concepts of the EMSIM and EMRAM This chapter provides conceptual information on the EMSIM and EMRAM Chapter 13 Concepts of the EMSIM and EMRAM 444 ...

Page 465: ...d What is seen external to the processor is determined by the current contents of the SIM register set The 68360 processor also has internal on board static RAM which can be configured to be addressable anywhere within the address range The processor RAM register set is used to enable this on board RAM and to define where it is currently positioned in the 32 bit address space The emulator needs ac...

Page 466: ...plemented in order to accomplish external bus decoding As part of the emulator configuration the user can indicate the desired SIM and RAM values by loading the EMSIM and EMRAM copy registers Once these register copies have been loaded memory resources either emulation or target memory can be accessed in the same manner that the processor will access them when running target code Note that the def...

Page 467: ... the processor Note that internal RAM accesses may be seen externally by the analyzer using the show cycles feature discussed below By default the internal RAM modules in 68360 processor are turned off The internal RAMs are enabled and positioned by loading the EMRAM registers The contents of the EMRAM registers are automatically copied to the RAM registers each time the emulator enters the monito...

Page 468: ...This transfers the current values of the EMSIM registers into the SIM registers This happens automatically each time a break to the monitor from emulation reset occurs This ensures that the processor is prepared to properly access memory when a program is downloaded to the emulator Modify SIM Registers Copy Processor SIM to Emulator SIM This transfers the current values of the SIM registers into t...

Page 469: ...igured the chip select pins of the processor Display Configuration Info Chip Selects Emulator SIM This displays chip selects in the EMSIM emulator register set in a table Use this to see how the EMSIM registers have configured the chip select pins of the emulation copy Display Configuration Info Bus Interface Ports SIM This displays bus interface ports in the SIM processor register set in a table ...

Page 470: ...WE0 This display also describes the distribution of address information for the address mode in use Display Configuration Info Clock Input Mode This displays the present mode of clock for the 68360 target system This mode is set by installation of a clock module in the clock module socket on the emulation probe Refer to the Hewlett Packard MC68360 Installation Service Terminal Interface User s Gui...

Page 471: ...Part 5 Installation and Service Guide 451 ...

Page 472: ...0 Emulator Analyzer Installation Service Terminal Interface User s Guide shows you how to Connect the emulator into an MC68360 target system and overcome the differences between the specifications and characteristics of the target microprocessor and those of the emulator Install the emulator hardware into the card cage It also shows how to install the demo board power cable SRAM modules rivets and...

Page 473: ...14 Installation 453 ...

Page 474: ...ons the minimum supported version of the operating system is 7 03 or later For Series 9000 700 workstations the minimum supported version of the operating system is version 8 01 Motif OSF For Series 9000 700 workstations you must also have the Motif 1 1 dynamic link libraries installed They are installed by default so you do not have to install them specifically for this product but you should con...

Page 475: ...mat 64700 Operating Environment The Graphical User Interface requires version A 04 10 or greater of the 64700 Operating Environment The Graphical User Interface version is A 04 00 Hardware and Memory Any workstation used with the Graphical User Interface should have a minimum of 16 megabytes of memory A color display is also highly recommended From here you should proceed to the section titled Ins...

Page 476: ...ce Guide for instructions on connecting the HP 64700 to a host computer via RS 422 or RS 232 or LAN and setting the HP 64700 s configuration switches RS 422 and RS 232 are only supported on HP 9000 Series 300 400 machines Chapter 14 Installation Connecting the HP 64700 to a Computer or LAN 456 ...

Page 477: ...tall all of the products on the tape However to save disk space or for other reasons you can choose to install selected filesets If you will use the Softkey Interface instead of the Graphical User Interface do not install the XUI suffixed filesets in the 64700 Operating Environment and processor type Emulation Tools partitions If you choose not to install the Graphical User Interface you will not ...

Page 478: ...rogram by entering etc update at the HP UX prompt 6 When the HP UX update utility main screen appears confirm that the source and destination devices are correct for your system Refer to the information on updating HP UX in your HP UX documentation if you need to modify these values 7 Select Load Everything from Source Media when your source and destination directories are correct 8 To begin the u...

Page 479: ... file verifies that you loaded the correct fileset and also verifies that the customize scripts executed because this file is created from other files during the customize process 2 Examine usr hp64000 lib X11 app defaults HP64_Softkey near the end of the file to confirm that there are resources specific to your emulator Near the end of the file there will be resource strings that contain referenc...

Page 480: ... UX prompt Consult the X Window documentation supplied with the HP UX operating system documentation if you do not know about using X Windows and the X server After starting the X server and Motif Window Manager continue with step 4 of these instructions Step 3b Start HP VUE If you are running the X server under HP VUE and have not started HP VUE do so now HP VUE is a window manager for the X Wind...

Page 481: ...mber screen_number export DISPLAY For example DISPLAY myhost 0 0 export DISPLAY Consult the X Window documentation supplied with the UNIX system documentation for an explanation of the DISPLAY environment variable 2 Set the HP64000 environment variable For example if you installed the HP 64000 software relative to the root directory you would enter HP64000 usr hp64000 export HP64000 If you install...

Page 482: ...m prefixing HP 64700 executables with the directory path 4 Set the MANPATH environment variable to include the usr hp64000 man and usr hp64000 contrib man directories by entering MANPATH MANPATH HP64000 man HP64000 contrib man export MANPATH Including these directories in your MANPATH variable lets you access the on line man page information included with the software Chapter 14 Installation Insta...

Page 483: ...he media The tape that contains the Graphical User Interface software may contain several products Usually you will want to install all of the products on the tape However to save disk space or for other reasons you can choose to install selected filesets If you will use the Softkey Interface instead of the Graphical User Interface do not install the XUI suffixed filesets If you choose not to inst...

Page 484: ...you should modify the PATH environment variable to include the usr hp64000 bin directory and if you have installed software in a directory other than you need to set the HP64000 environment variable The following instructions show you how to set these variables at the UNIX prompt Modify your profile or login file if you wish these environment variables to be set when you log in The following instr...

Page 485: ...s team you would enter ln s users team usr hp64000 usr hp64000 If you do not wish to establish a symbolic link you can set the HP64000 variable to the full path that contains the HP 64000 software also set the LD_LIBRARY_PATH variable to the directory containing run time libraries used by the HP 64000 products Again if you installed relative to users team you would enter setenv HP64000 users team ...

Page 486: ...D_LIBRARY_PATH LD_LIBRARY_PATH usr openwin lib Step 4 Verify the software installation A number of product filesets were installed on your system during the software installation process Due to the complexity of installing on NFS mounted file systems a script that verifies and customizes these products was also installed This stand alone script may be run at any time to verify that all files requi...

Page 487: ... to be set to backspace so that the Delete key can be used for delete character If you want to continue using the F1 key for HELP you can use use F2 F9 for the Softkey Interface All you have to do is set the KEYMAP variable If you use OpenWindows type setenv KEYMAP sun 2 9 If you use xterm windows the xterm window program is located in the directory usr openwin demo type setenv KEYMAP xterm 2 9 Re...

Page 488: ... of the installation process 1 Display the 64700tab net file by entering more usr hp64700 etc 64700tab net at the HP UX prompt 2 Page through the file until you find the emulator you are going to use This step will require some matching of information to an emulator but it should not be difficult to determine which emulator you want to address Examples A typical entry for a 68360 emulator connecte...

Page 489: ...om edge Push the switch in to turn power on to the emulator 2 Wait a few seconds to allow the emulator to complete its startup initialization 3 Choose a terminal window from which to start the Graphical User Interface 4 Start the Graphical User Interface by entering emul700 command and giving the logical name of the emulator as an argument to the command as in HP64000 bin emul700 logical_name or e...

Page 490: ... must include a command line argument to emul700 to override the default Graphical User Interface Start the conventional interface by entering emul700 u skemul logical name Example Suppose you have discovered that the logical name for a 68360 emulator connected to the LAN is em68360 To start the Graphical User Interface and begin communicating with that emulator enter assuming your PATH includes H...

Page 491: ...Chapter 14 Installation Verifying the Installation 471 ...

Page 492: ...s 3 While continuing to hold the mouse button down move the mouse pointer down the menu to the Exit menu item 4 Display the Exit cascade menu by moving the mouse pointer to the right edge of the Exit menu choice There is an arrow on the right edge of the menu item 5 Choose Released from the cascade menu The interface will terminate and release the emulator for use by others Chapter 14 Installation...

Page 493: ...15 Installing Updating Emulator Firmware 473 ...

Page 494: ...included with the 68360 emulator probe on an MS DOS format floppies The floppies are for users that do not have hosted interface software Before you can update emulator firmware you must have already installed the emulator into the HP 64700 connected the HP 64700 to a host computer or LAN and installed the emulator analyzer interface and HP B1471 software as described in Chapter 14 Installation Th...

Page 495: ...nd without options it becomes interactive If you don t include the emul_name option it displays the logical names in the usr hp64000 etc 64700tab net file and asks you to choose one If you don t include the product option it displays the products which have firmware update files on the system and asks you to choose one You can abort the interactive progflash command by pressing CTRL c progflash wi...

Page 496: ...he Rights in Technical Data and Computer Software clause at DFARS 52 227 7013 HEWLETT PACKARD Company 3000 Hanover St Palo Alto CA 94304 1181 Logical Name Processor 1 em68k m68000 2 em80960 i80960 3 em68360 m68360 Number of Emulator to Update intr usually cntl C or DEL to abort To update firmware in the HP 64700 that contains the 68360 emulator enter 3 Product 1 64700 2 64703 64704 64706 64740 3 6...

Page 497: ...trol mask 0H Checking System firmware revision Rebooting HP64700 Downloading flash programming code usr hp64000 lib npf X Checking Hardware id code Downloading ROM code usr hp64000 inst update 64780 X Code start 280000H should equal control ROM start Code size 2348CH must be less than control ROM size Finishing up Rebooting HP64700 You could perform the same update as in the previous example with ...

Page 498: ... ver command displays information similar to Copyright c Hewlett Packard Co 1987 All Rights Reserved Reproduction adaptation or translation without prior written permission is prohibited except as allowed under copyright laws HP64700B Series Emulation System Version B 01 00 12Dec93 Location Flash System RAM 1 Mbyte HP64780 PPN 64780 Motorola 68360 Emulator Version A 03 00 Speed 16 7 MHz Memory 512...

Page 499: ...00 that will not boot up Repeat the firmware update process If the HP 64700 is connected to the LAN in this situation and you are unable to connect to the HP 64700 after the power glitch try repeating the firmware update with the HP 64700 connected to an RS 232 or RS 422 interface Chapter 15 Installing Updating Emulator Firmware If there is a power failure during a firmware update 479 ...

Page 500: ...480 ...

Page 501: ...a read or write of an address or range of addresses Access Mode Specifies the types of cycles used to access target system memory locations For example a byte access mode tells the monitor program to use load store byte instructions to access target memory Analyzer An instrument that captures activity of signals synchronously with a clock signal An emulation bus analyzer captures emulator bus cycl...

Page 502: ...rt of the user program and therefore operates in the emulator s background mode The background monitor can execute when target program execution is temporarily suspended The background monitor does not occupy any of the address space that is available to your target program Background Memory Memory space reserved for the emulation processor when it is operating in the background mode Background me...

Page 503: ... language source code into object code or produces an assembly language program with subsequent translation into object code by an assembler Compilers typically generate a program listing which may list errors displayed during the translation process Counter Overflow When the counter reaches maximum count and begins a new count from zero The counter of the deep analyzer simply counts continuously ...

Page 504: ... measurements Cross Trigger The situation in which the trigger condition of one analyzer is used to trigger another analyzer Two signals internal to the HP 64700 can be connected through the BNC on the instrumentation card cage to allow cross triggering between the emulation bus analyzer and other analyzers DCE Data Communications Equipment A specific RS 232C hardware interface configuration Typic...

Page 505: ...tem memory locations the monitor program executes microprocessor instructions that read the target memory locations and send their contents to the emulation controller Emulation Memory High speed memory RAM in the emulator that can be used in place of target system memory Emulator An instrument that performs just like the microprocessor it replaces but at the same time it gives you information abo...

Page 506: ...lation immediately transfers from execution of your target program to execution of the emulation monitor Foreground The mode in which the emulator is executing the user program In other words the mode in which the emulator operates as the target microprocessor would Foreground Monitor A monitor program that executes in the foreground address space When the monitor exists in foreground it is direct...

Page 507: ...ics Label A set of one or more analyzer channels Example the label addr is used to identify the analyzer channels connected to the address bus of the emulation processor Linker A program that combines relocatable object modules into an absolute file which can be loaded into the emulator and executed Logical Address Space The addresses assigned to code during the process of compiling assembling and...

Page 508: ...heir contents to the emulation controller Operating System Software which controls the execution of computer programs and the flow of data to and from peripheral devices Overflow See counter overflow Parity Setting The configuration of the parity switches Depending on the configuration of the parity output switch and the parity switch a parity check bit is added to the end of data to make the sum ...

Page 509: ...ram execution P O An abbreviation for part of Used in illustrations to show that a part is shipped with other parts under a certain HP part number Prefetch The ability of a microprocessor to fetch additional opcodes and operands before the current instruction is finished executing Prestore The storage of states captured by the analyzer that precede states which are normally stored If the normal st...

Page 510: ...n be set up to store qualify a certain kind of state but only when the arm signal from the BNC is true Real Time Execution Continuous execution of the user program without interference from the emulator Such interference occurs when the emulator temporarily breaks into the monitor so that it can access register contents or target system memory or I O Relative Count A count in the trace list count ...

Page 511: ...he primary branch state and begins searching for the states specified at the secondary branch s destination level Sequence Terms Individual levels of the sequencer Sequencer The part of the analyzer that allows it to search for a certain sequence of states before triggering Sequencer Branch Occurs when the analyzer finds the primary or secondary branch state specified at a certain level and begins...

Page 512: ...ror can be directed to various output devices connected to the HP 64700 ports stdin An abbreviation for standard input Standard input is typically defined as your computer keyboard stdout An abbreviation for standard output Standard output can be directed to various output devices connected to the HP 64700 ports Step See Single step Store Qualifier A specification that must be met by a state befor...

Page 513: ...ically a microprocessor based system under development Target System Memory Storage that is present in the target system Terminal Interface The command interface present inside the HP 64700 Series emulators that is used when the emulator is connected to a simple data terminal This interface provides on line help command recall macros and other features which provide for easy command entry from a t...

Page 514: ...ram when it receives trig1 from the analyzer Several states may be executed in the emulator between the time the analyzer recognizes its trigger condition generates trig1 delivers trig1 to the emulator and the emulator responds to trig1 by breaking to its monitor program Uploading The transfer of emulation or target system memory contents to a host computer Unlocked Exit One of two methods used to...

Page 515: ...ycle Wait states are typically used when slower memory is implemented Window A specified rectangular area of virtual space shown on the display in which data can be observed 1K Analyzer The term 1K analyzer refers to the HP 64704 Emulation Bus Analyzer with 1K trace memory Glossary 495 ...

Page 516: ...496 ...

Page 517: ...s 239 confidence level 240 error tolerance 240 interpreting reports 238 mean 238 relative and absolute counts 239 standard deviation 239 symbols within range 239 trace command setup 233 address assigning a base address for 68360 registers 109 not range command 211 values 210 address analyzer state qualifier softkey 364 379 address range command 211 address range file format SPMT measurements 235 a...

Page 518: ...syntax 303 breakpoints 14 copying to a file 163 C capture continuous stream of execution 222 cascade menu 52 cautions BNC accepts only TTL voltage levels 265 CMB 9 pin port is NOT for RS 232C 263 do not use probe without pin extender 31 powering OFF the HP 64700 30 protect emulator against static discharge 30 changing column width 198 directory context in configuration window 93 directory context ...

Page 519: ...g commands 67 help 70 keyboard use of 71 73 online help 73 recalling commands with dialog box 70 turning on or off 66 281 command paste mouse button 9 Command Recall dialog box operation 62 command select mouse button 9 commands 71 combining on a single command line 71 completion 71 editing in command line entry area 68 69 entering in command line 67 executing in command line 67 keyboard entry 71 ...

Page 520: ...zer window 122 changing symbol 122 displaying directory from configuration window 93 displaying directory from emulator analyzer window 121 displaying symbol 121 coordinated measurements 269 break_on_trigger syntax of the trace command 269 definition 260 copy command 306 308 configuration info 307 data 307 display 307 error_log 307 event_log 307 global symbols 307 help 307 local_symbols_in 309 mem...

Page 521: ...216 count time 216 cursor buttons 8 D data copy command 307 display command 319 321 data analyzer state qualifier softkey 364 379 data range command 211 data values 151 152 210 adding items to the existing display 152 clearing the display and adding a new item 152 copying to a file 162 displaying 18 151 decimal numbers 207 deep analyzer definition 484 demos setting up 289 291 dequeuer how it works...

Page 522: ...mory 324 327 memory mnemonic 13 147 pod_command 315 registers 141 145 328 simulated_io 170 172 329 software_breakpoints 330 status 315 symbols 112 trace 331 334 display mode 484 display status command 179 display trace absolute command 194 display trace absolute status binary command 194 display trace absolute status hex command 194 display trace absolute status mnemonic command 194 display trace ...

Page 523: ... time 251 minimum time 251 number of intervals 251 recursion considerations 246 selecting 249 standard deviation 252 trace command setup 247 E editing command line entry area with pop up menu 69 command line entry area with pushbuttons 68 file 158 281 file at address 158 281 file at program counter 158 file at symbol from symbols screen 158 file from memory display screen 158 emul700 command to st...

Page 524: ...pter pin alignment 31 target system connection 29 32 emulator status displaying 163 emulator analyzer interface exiting 24 47 48 running in multiple windows 41 starting 41 44 end command 24 48 335 entry pod commands 80 simulated io 171 entry buffer 7 address copy and paste to 57 clearing 56 copy and paste from 60 copy and paste to 56 Entry Buffer Recall dialog box 7 Entry Buffer Recall dialog box ...

Page 525: ...t log 45 copy command 307 display command 315 to file 163 event_log 46 EXECUTE CMB signal 262 tracing at 267 exit emulator analyzer interface 24 47 48 exiting emulation session 48 emulator analyzer windows 47 expanded displays of registers 142 expanded register displays 142 expressions 206 EXPR syntax 336 338 F file breakpoints copying to 163 configuration info copying to 162 data values copying t...

Page 526: ... File Selection dialog box operation 61 63 files restoring peripheral register settings 164 saving peripheral register settings 164 firmware version 478 formal parameters command files 75 forward command syntax 341 functions step over 147 G global restart qualifier 486 global symbols 13 207 322 copy command 307 display command 113 322 initializing the SPMT measurement with 235 to file 163 H halfbr...

Page 527: ... 454 HP UX minimum version 454 installing software 457 462 minimum system requirements overview 454 HP UX minimum version 454 HP64KPATH UNIX environment variable 78 HP64KSYMBPATH environment variable 386 I IEEE 695 absolute file format 110 input pod commands 80 simulated io 171 input scheme 280 installation 454 HP 9000 software 457 462 SPARCsystem software 463 467 interactive measurements 269 inte...

Page 528: ... load trace command 228 load trace_spec command 225 227 local symbols 207 323 copy command 309 display command 114 323 initializing the performance measurement with 235 to file 163 locked end command option 48 log_commands command 346 M master slave mode of operation 166 169 maximum trace depth 216 memory 310 311 activity measurements SPMT 231 238 contents listed as asterisk 310 copy command 310 3...

Page 529: ...evel commands 222 mnemonic memory display 13 147 setting the source symbol modes 153 modes companion 166 169 source symbol 153 modify command 347 configuration 348 keyboard_to_simio 349 memory 350 352 register 144 353 software_breakpoints 354 355 module duration measurements SPMT 246 module usage measurements SPMT 246 Motif HP 9000 700 requirements 454 mouse buttons 9 choosing menu items 52 53 mul...

Page 530: ...g binary hexadecimal and don t cares 207 numerical values 206 O octal numbers 207 offset addresses in trace list 201 online help 73 operating system HP 64700 Series minimum version 455 HP UX minimum version 454 SunOS minimum version 455 operators 207 bitwise AND 207 bitwise OR 207 integer 207 unary one s complement 207 unary two s complement 207 overflow definition 488 P P O part of 489 parameter ...

Page 531: ...5 display screen 80 keyboard input 80 pod commands used in high level interface 222 pop up menu in trace list 188 pop up menus command line editing with 69 hand pointer indicates presence 7 55 power failure during firmware update 479 prestore qualifier 218 primary branches analyzer sequencer 490 problems tracing with the analyzer 185 problems and solutions 24 processor type 42 progflash example 47...

Page 532: ...fy 141 145 displaying 19 141 displaying details of register bit fields 142 modify 144 modify command 353 restoring peripheral register settings 164 saving peripheral register settings in a file 164 to file 163 viewing master slave with Action Keys 37 release_system end command option 24 48 92 repeat the previous trace command 221 repetitive display of memory 150 reset emulator commands that cause ...

Page 533: ... 375 set default command 202 set source off command 197 set source on command 197 set source only command 197 set symbols all command 195 set symbols high command 195 set symbols low command 195 set symbols off command 195 set symbols on command 195 set width label command 198 set width mnemonic command 198 set width source command 198 shell variables 76 sig INT 255 signals CMB 261 SIM EMSIM conce...

Page 534: ... software breakpoints list displaying 130 software performance measurements 229 231 258 absolute information 238 activity measurements 231 245 adding traces 236 250 duration 246 254 end 356 ending 256 how they are made 230 initialize 357 358 initializing 234 249 initializing default 234 initializing duration measurements 249 initializing user defined ranges 235 249 initializing with global symbols...

Page 535: ... disassembly options 190 SPMT Software Performance Measurement Tool See software performance measurements SRU Symbolic Retrieval Utilities 386 387 STATE in trace command 378 379 states change the number available for display 204 static discharge protecting the emulator probe against 30 status copy command 308 display command 315 status analyzer state qualifier softkey 365 379 status line 7 46 stat...

Page 536: ... to file 163 local to file 163 set command 374 SYMB syntax 385 391 sync_sim_registers command 392 synchronous measurements 267 syntax conventions 301 system requirements HP 64700 minimum version 455 HP 9000 overview 454 HP UX minimum version 454 OSF Motif HP 9000 700 requirements 454 SPARCsystem overview 455 SunOS minimum version 455 T TAKEN NOT TAKEN and TAKEN in trace list 193 target memory load...

Page 537: ...ications 220 on program halt 219 repeat the previous command 221 reset display defaults 202 restoring data 225 228 restoring specifications 225 228 saving data 225 228 saving specifications 225 228 specify sequence 212 starting 176 stopping 177 store command 384 storing data 226 trace about command 183 trace after command 183 trace again command 221 227 trace before command 183 trace command 176 1...

Page 538: ...r 203 display source lines 197 displaying 177 186 205 move through 202 offset addresses 201 pop up menu 188 trace modify_command command 220 trace on_halt command 219 trace only command 217 trace options dialog box 187 trace prestore anything command 218 trace prestore command 218 trace signals emulation analyzer 208 trace windowing 214 trace_spec load command 345 store command 384 tracing problem...

Page 539: ...g specification 215 windows exiting emulator analyzer 47 opening additional emulator analyzer 45 running the emulator analyzer interface in multiple 41 terminal emulation opening 165 workstation HP 9000 memory needs 454 HP 9000 minimum performance 454 SPARCsystem memory needs 455 SPARCsystem minimum performance 455 X X client 278 X resource 278 commonly modified graphical interface resources 280 m...

Page 540: ...520 ...

Page 541: ...members Warranty This Hewlett Packard system product is warranted against defects in materials and workmanship for a period of 90 days from date of installation During the warranty period HP will at its option either repair or replace products which prove to be defective Warranty service of this product will be performed at Buyer s facility at no charge within HP service travel areas Outside HP se...

Page 542: ...ts resulting from improper or inadequate maintenance by Buyer Buyer supplied software or interfacing unauthorized modification or misuse operation outside of the environment specifications for the product or improper site preparation or maintenance No other warranty is expressed or implied HP specifically disclaims the implied warranties of merchantability and fitness for a particular purpose Excl...

Page 543: ...ese requirements Ground The Instrument To minimize shock hazard the instrument chassis and cabinet must be connected to an electrical ground The instrument is equipped with a three conductor ac power cable The power cable must either be plugged into an approved three contact electrical outlet The power jack and mating plug of the power cable meet International Electrotechnical Commission IEC safet...

Page 544: ...ch have to be followed by the user to ensure safe operation and to retain the apparatus in safe condition Do Not Service Or Adjust Alone Do not attempt internal service or adjustment unless another person capable of rendering first aid and resuscitation is present Do Not Substitute Parts Or Modify Instrument Because of the danger of introducing additional hazards do not install substitute parts or...

Page 545: ...conductor terminal For protection against electrical shock in case of a fault Used with field wiring terminals to indicate the terminal which must be connected to ground before operating the equipment Low noise or noiseless clean ground earth terminal Used for a signal common as well as providing protection against electrical shock in case of a fault A terminal marked with this symbol must be conn...

Page 546: ...ar situation which if not correctly performed or adhered to could result in damage to or destruction of part or all of the product Warning The Warning sign denotes a hazard It calls your attention to a procedure practice condition or the like which if not correctly performed could result in injury or death to personnel ...

Reviews: