You are on page 1of 6

IBM Microelectronics

RISCWatch
Debugger for PowerPC Processors

RISCWatch is a hardware and software


development tool for the PowerPC
600/700/900 Family of microprocessors
and the PowerPC 400 Series. The
source-level debugger and processor-
control features provide developers with
the tools needed to develop and debug
hardware and software quickly and
efficiently.

Developers who take advantage of


RISCWatch are provided a wealth
of advanced debug capabilities.
Among the advanced features of this
full-functioned debugger are real-time
trace (on supported processors),
Ethernet hardware interface, C/C++
Highlights support, extensive command file sup-
port and on-chip debug support.
■ On-chip debugging via IEEE ■ Supports industry standard
Debugging of multi-core and multi-
1149.1 (JTAG) interface Embedded ABI for PowerPC
processor PowerPC systems is also
and XCOFF ABI
supported. All this in a debugger that
■ Target monitor debugging
supports both XCOFF and the
■ Command-file support for auto-
Embedded ABI for PowerPC industry
■ Source-level and assembler mated test and command
standard.
debugging of C/C++ sequences
executables
■ Simple and reliable 16-pin
■ Real-time trace support via the interfaces to the system under
RISCTrace feature for the development
IBM PowerPC® 400 Series
■ Ethernet to target JTAG inter-
■ Network support for remote face hardware
debugging of the system under
development ■ Multiple hosts supported

■ Intuitive and easy-to-use win-


dowed user interface that can
help reduce development time
Features
Source and assembler debugging
The source and assembler debugger
runs in a multi-window environment that
can help enable improved user produc-
tivity. Features include program execu-
tion control, stepping, breakpoints,
variable viewing/updating, user defined
screens and buttons, caller stack and a
full set of watch capabilities.

RISCWatch fully supports code debug


at both the C/C++ source and assem-
bler levels. Run control functions allow
stopping/starting the program and the
Managing the many types and methods Other screens provide the ability to eas-
ability to restart the program while
of setting breakpoints is made easy ily navigate through the program during
retaining the setting of current break-
through a single breakpoint control the debug session. A caller’s screen
points and watchpoints. The program
screen. allows the program context to be
can be single-stepped by assembler or
switched between the various levels of
C/C++ source line. Function calls can
Assembler level debug is supported in the call chain. Files and functions
either be stepped into or over as
a number of ways. The C/C++ source screens provide the ability to decide
desired.
screen provides a mixed source/ what files/functions appear in the
assembler mode that shows each source window. The functions screen
Breakpoints take full advantage of the
source line and its associated lines of also allows breakpoints to be set or
debug capability in the PowerPC
assembler code. An assembler-only cleared at the beginning of functions.
processor. In addition to standard trap-
screen can also be used to provide Local and global variable screens not
based software instruction breakpoints,
actual memory disassembly of the code only allow variables to be displayed and
hardware assisted instruction and
and the ability to change it dynamically. updated, but they also provide exten-
data breakpoints are also available.
sive control over what gets shown and
when.
On-chip debugging Combined with the connection options, Command file support
On-chip debugging is accomplished via this provides the ability to extend the Command files allow test cases to be
the IEEE 1149.1 (JTAG) interface, which powerful software debug capabilities of written off-line and then run automati-
allows access to the debug logic built RISCWatch to custom board solutions. cally. Command files can also be used
into the PowerPC processors. Since for running regression tests, initializing
the debug logic is separate from the User interface the processor and automating com-
rest of the processor logic, access to The user-friendly multi-windowed user mand sequences.
processor resources is possible even if interface provides an extensive set of
the processor is in an error state. predefined screens, pulldowns and utili- The rich command file language pro-
ties. All are designed to present com- vides program flow control commands
Low-level processor control functions plete representation and control of the like if-then-else, while and do-while.
allow the developer complete control of system under development. Special expressions indicating the
the processor. Processor control fea- Some screens also allow the user to processor state and other error condi-
tures include run, start, step, set break- customize the data being presented. tions are also provided. A command file
points, reset and initialize the processor. For example, the developer can choose single-step capability is provided to aid
Low-level processor watch functions which variables are to be shown, the in command file development.
include displaying and modifying mem- update policy for variable refresh,
ory, registers and cache. Memory can the data representation and the attrib- Processor specific on-line help
also be loaded and disassembled. utes to display (address, type and size). RISCWatch provides extensive on-line
help. Most windows contain a help but-
Target monitor debugging RISCWatch supports even more ton to display context sensitive help. A
RISCWatch has the ability to communi- detailed user interface customization by help window with a search option can
cate with target monitor software providing user-defined screen capabili- also be displayed. Help topics include
included in the PowerPC evaluation kit. ties. They allow the developer to easily command syntax and window specific
This communication takes place via an build custom screens and buttons that feature descriptions.
Ethernet (TCP/IP) connection. contain resources and control facilities
of particular interest to a specific RISCTrace
Additionally, custom target monitors debugging task. This enhances produc- RISCTrace is a RISCWatch feature that
can easily be created using the avail- tivity by increasing the ability to readily takes advantage of the trace capabili-
able board support debug libraries. see key pieces of information and ties in the PowerPC 400 family proces-
directing host processor activity to only sors, providing a totally non-intrusive
those functions.
reconstruction of application code exe- There is a high-performance Ethernet the rising edge of the processor clock.
cution flow. Trace information is col- processor probe that supports the To ensure signal integrity, the connector
lected from the trace status port in 400/600/700/900 family of PowerPC should be placed as close to the
real-time and then used with the con- processors. processor as possible.
tents of processor memory to recon-
struct program flow. This applies To help ensure JTAG signal integrity, the Chips supported
whether the code is running out of the header connector should be placed as ● PowerPC 400/600/700/900 Family
instruction cache or memory. close as possible to the processor of Microprocessors
socket. Its 2x8 pin array is shown
A screen is provided to allow control above next to the table. Note that posi- Technical support
and management of events that can ini- tion 14 is not a pin. It is used as a key. ● Documentation
tiate the trace collection activity. ● e-mail
Essentially, any or all of the PowerPC RISCTrace status
400 family processor debug events can A Mictor or 20-pin male 2x10 header Host platform requirements
be used to trigger the trace event. connector is suggested for connecting Hardware:
to the RISCTrace Status Port. This con-
Target connections nector definition matches the require- ● IBM or compatible PC (1 GHz) or
IEEE 1149.1 (JTAG) ments of the RISCTrace feature of better and 512 MB RAM
A 16-pin male 2x8 or a Mictor connec- RISCWatch 400. There are seven ● CD-ROM Drive
tor must be available on the target (7) Trace Status signals, TS0 – TS6, ● SVGA (or better) display (mini-
development board. This connector which are active high outputs from the mum 1024 x 768)
links the RISCWatch Processor 400 family of PowerPC processors. ● 110 MB hard disk space
Interface Adapter to the target develop- They are designed to be sampled on ● Requires Ethernet connection
ment board’s PowerPC processor
JTAG port, using the connections Software
described in the table below.
● Microsoft Windows XP/Vista or
RHEL4 (w/X11R6 and Motif 2.2)
Processor Interface Assembly Connections to a PowerPC
JTAG Port

1
PU = pullup, PD = pulldown, SR = series
PowerPC 400 Processors
(suggested values; check specific
Header Pin I/O Signal Name Board Resistor1 processor documentation for details)
1 Out TDO 2
The +POWER signal is sourced from the
2 No Connect target development board and is used as a
reference signal by the RISCWatch
3 In TDI 10K⍀ PU Processor Probe. The voltage presented on
4 In TRST 10K⍀ PU this pin should indicate the voltage level of
the processor I/O. Newer versions of the
5 No Connect processor probe will adjust voltage levels
6 +POWER2 1K⍀ SR3 on input pins to the processor accordingly.
3
This 1K ohm series resistor provides short
7 In TCK 10K⍀ PU circuit current limiting protection only. If the
8 No Connect resistor is present, it should be 1K ohm or
9 In TMS less.
10K⍀ PU
10 No Connect
11 In HALT 10K⍀ PU
12 No Connect
13 No Connect
14 KEY
15 No Connect
16 GND

1
PU = pullup, PD = pulldown, SR = series
PowerPC 600/700/900 Processors
(suggested values; check specific
Header Pin I/O Signal Name Board Resistor1 processor documentation for details)
1 Out TDO 2
The +POWER signal is sourced from the
2 No Connect target development board and is used as a
reference signal by the RISCWatch
3 In TDI 10K⍀ PU Processor Probe. The voltage presented on
4 In TRST this pin should indicate the voltage level of
10K⍀ PU
the processor I/O. Newer versions of the
5 No Connect processor probe will adjust voltage levels
6 +POWER2 1K⍀ SR3 on input pins to the processor accordingly.
3
This 1K ohm series resistor provides short
7 In TCK 10K⍀ PU circuit current limiting protection only. If the
8 No Connect resistor is present, it should be 1K ohm or
less.
9 In TMS 10K⍀ PU 4
If the target development board does not
10 No Connect use this signal, the board must have a
11 In SRESET 1K⍀PD connected to this pin. This signal
10K⍀ PU allows the processor to enter the soft stop
12 No Connect state. Otherwise, the target development
13 In HRESET board must provide the proper logic, so
10K⍀ PU
that the QACK goes Low in response to a
14 KEY QREQ. If the proper logic is not provided,
15 Out CHECKSTOP the processor will not be able to enter the
10K⍀ PU
soft stop state.
CKSTP_OUT
The HRESET, SRESET and TRST signals
16 GND
from the RISCWatch Processor Interface
N/A In QACK4 1K⍀ PD Assembly connector must be logically
ORed with the HRESET, SRESET and
N/A In L2_TEST_CLK 10K⍀ PU TRST signals that connect to the target
N/A In L1_TEST_CLK on the target development board. They
10K⍀ PU
cannot be “dotted” or “wire-ORed” on
N/A In LSSD_MODE 10K⍀ PU the board. In addition, the ORed signals
should only reset the processor and no
N/A In ARRAY_WR 10K⍀ PU other devices on the target board.
© International Business Machines Corporation
2008
Printed in the United States of America
All Rights Reserved
IBM, the IBM logo, and PowerPC are
trademarks or registered trademarks of
International Business Machines Corporation.
Microsoft and Windows are registered
trademarks of Microsoft Corporation in the
United States, other countries or both.
The Power logos and related marks are
trademarks and service marks licensed by
Power.org.
All other products and company names are
trademarks or registered trademarks of their
respective holders.
The information contained in this document is
subject to change without notice. The
information contained in this document does not
affect or change IBM’s product specifications or
warranties. Nothing in this document shall
operate as an express or implied license or
indemnity under the intellectual property rights
of IBM or third parties. All the information
contained in this document was obtained in
specific environments, and is presented as an
illustration. The results obtained in other
operating environments may vary.
THE INFORMATION CONTAINED IN THIS
DOCUMENT IS PROVIDED ON AN “AS IS”
BASIS. In no event will IBM be liable for any
damages arising directly or indirectly from any
use of the information contained in this
document.
IBM Systems and Technology Group
2070 Route 52, Bldg. 330
Hopewell Junction, NY 12533-6351
The IBM home page can be found at:
ibm.com
The IBM Global Engineering Solutions home
page can be found at: ibm.com/technology

TGD03008-USEN-02

You might also like