JP2006302162A - Multiprocessor system - Google Patents

Multiprocessor system Download PDF

Info

Publication number
JP2006302162A
JP2006302162A JP2005125936A JP2005125936A JP2006302162A JP 2006302162 A JP2006302162 A JP 2006302162A JP 2005125936 A JP2005125936 A JP 2005125936A JP 2005125936 A JP2005125936 A JP 2005125936A JP 2006302162 A JP2006302162 A JP 2006302162A
Authority
JP
Japan
Prior art keywords
processor
signal
signal output
processors
tdo
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2005125936A
Other languages
Japanese (ja)
Other versions
JP4600134B2 (en
Inventor
Ryuichi Yoda
竜一 依田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2005125936A priority Critical patent/JP4600134B2/en
Publication of JP2006302162A publication Critical patent/JP2006302162A/en
Application granted granted Critical
Publication of JP4600134B2 publication Critical patent/JP4600134B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Multi Processors (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a multiprocessor system having a plurality of processors which can be easily constructed. <P>SOLUTION: A control circuit 7 has: a first operation mode allowing a JTAG debugger to debug the processors 2, 3 as is conventionally generally known; and a second operation mode for controlling a debug function of the processor 3 by being controlled by the processor 2. In normal use, the control circuit 7 is set to the second operation mode. That is, the processor 2 controls a debug function part 36 of the control circuit 7, thereby selectors 42, 43, 44, 45 select a TDI signal, a TRST signal, a TCK signal, and a TMS signal outputted by the debug function part 36, a selector 46 selects a TDO signal outputted by the processor 2, and the debug function part 36 inputs the TDO signal outputted by the processor 3. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、複数のプロセッサ(CPU)を持つマルチプロセッサシステムに関する。   The present invention relates to a multiprocessor system having a plurality of processors (CPUs).

近年急速に普及した携帯電話を代表として、デジタル無線通信機能に加え、Webブラウザ、メール、動画像処理等の各種メディアを一台で処理可能な機器(端末)の需要は増加の一方である。こういった機器は、典型的には、無線変復調処理部にプロトコル制御用のプロセッサを備えるほか、音声等のコーデック処理を行うデジタルシグナルプロセッサや、ユーザインタフェースやWebブラウザ等のメディア処理を行うプロセッサを備える構成をとる。また、動画像処理用にさらにメディア処理専用プロセッサが追加される場合もある。半導体製造技術の進展及びコスト削減の目的から、これら複数のプロセッサは、マルチプロセッサシステムとして、一つのシリコンチップに集積され、プロセッサが使用するメモリも共用されるようになってきている。
特開平01−258139号公報
The demand for devices (terminals) capable of processing various media such as Web browsers, e-mails, moving image processing, etc. in addition to the digital wireless communication function as a representative of mobile phones that have rapidly spread in recent years is increasing. Typically, such devices include a processor for protocol control in the wireless modulation / demodulation processing unit, a digital signal processor that performs codec processing such as voice, and a processor that performs media processing such as a user interface and a Web browser. Take a configuration to prepare. In addition, a dedicated media processing processor may be added for moving image processing. For the purpose of progress in semiconductor manufacturing technology and cost reduction, these multiple processors are integrated on one silicon chip as a multiprocessor system, and the memory used by the processors is also shared.
Japanese Patent Laid-Open No. 01-258139

マルチプロセッサシステムにおいて、複数のプロセッサを協調動作させる方法として、例えば、マルチマスタに対応したバスアーキテクチャと、それに対応したプロセッサ及びアービタ回路等を設け、メモリを含む周辺回路を共用する方法がある。また、別の方法として、プロセッサ間にデュアルポートメモリを配置し、これによりプロセッサ間のデータ共有を行い、そのほかの周辺回路やメモリリソースについては、それぞれ独立に制御を行う方法もある。   In a multiprocessor system, as a method of operating a plurality of processors in a coordinated manner, for example, there is a method of providing a bus architecture corresponding to a multimaster, a processor and an arbiter circuit corresponding to the bus architecture, and sharing a peripheral circuit including a memory. As another method, there is a method in which a dual port memory is arranged between processors, whereby data is shared between processors, and other peripheral circuits and memory resources are controlled independently.

前者のマルチプロセッサシステムは、密結合型のマルチプロセッサシステムとして一般的な構成であり、プロセッサの緊密な連携動作が可能であるが、反面、プロセッサがマルチプロセッサシステムに対応しているものである必要があり、また、マルチマスタに対応したバス構成等、回路設計や検証の複雑さにもつながる。また、ソフトウェアについても、マルチプロセッサシステムに対応したソフトウェアが必要であり、開発難易度が高くなる。   The former multiprocessor system has a general configuration as a tightly coupled multiprocessor system, and the processor can be operated in close cooperation. However, the processor must be compatible with the multiprocessor system. In addition, it leads to the complexity of circuit design and verification, such as a bus configuration corresponding to multi-master. In addition, software that is compatible with a multiprocessor system is also required, which increases the difficulty of development.

後者のマルチプロセッサシステムは、プロセッサ間のデータ共有にデュアルポートメモリを使用し、それ以外はそれぞれ独立した構成とするものであり、プロセッサ間の同期には一般に割込み信号等を使用する。この方法は、回路設計の面では難易度は高くないが、反面、プロセッサそれぞれのプログラムも独立しているため、プロセッサ毎にプログラム開発を行ない、実機検証でシステム全体の同期した動作の検証を行うことになる等、協調動作プログラムの開発が問題となる。   The latter multiprocessor system uses a dual port memory for data sharing between processors, and the others are independent from each other, and generally uses an interrupt signal or the like for synchronization between processors. This method is not difficult in terms of circuit design, but on the other hand, since the programs of each processor are also independent, program development is performed for each processor, and verification of the synchronized operation of the entire system is performed by actual machine verification. For example, the development of a cooperative operation program becomes a problem.

本発明は、かかる点に鑑み、簡易に構築することができる構成としたマルチプロセッサシステムを提供することを目的とする。   The present invention has been made in view of this point, and an object of the present invention is to provide a multiprocessor system having a configuration that can be easily constructed.

本発明は、複数のプロセッサを持つマルチプロセッサシステムにおいて、前記複数のプロセッサのうち、所定のプロセッサは、他のプロセッサのデバッグ機能を利用して前記他のプロセッサを制御するというものである。   According to the present invention, in a multiprocessor system having a plurality of processors, a predetermined processor among the plurality of processors controls the other processor using a debugging function of the other processor.

本発明によれば、所定のプロセッサは、他のプロセッサのデバッグ機能を利用して他のプロセッサを制御するので、複数のプロセッサのアーキテクチャが異なる場合であっても、容易に連携可能なシステムとすることができ、マルチプロセッサシステムを簡易に構築することができる。   According to the present invention, since the predetermined processor controls the other processor by using the debugging function of the other processor, even if the architecture of the plurality of processors is different, the system can be easily linked. And a multiprocessor system can be easily constructed.

(第1実施形態)
図1は本発明の第1実施形態の要部を示すブロック回路図である。本発明の第1実施形態は、JTAG(Joint Test Action Group)対応デバイスであり、2個のプロセッサを持つマルチプロセッサシステムの例である。
(First embodiment)
FIG. 1 is a block circuit diagram showing the main part of the first embodiment of the present invention. The first embodiment of the present invention is a JTAG (Joint Test Action Group) compatible device and is an example of a multiprocessor system having two processors.

図1中、1は本発明の第1実施形態のマルチプロセッサシステム本体、2、3はプロセッサ、4、5はそれぞれプロセッサ2、3のデバッグ機能部、6はプロセッサ2、3が共用するデュアルポートメモリ、7は制御回路、8はプロセッサ2が使用するバス、9はプロセッサ3が使用するバスである。   In FIG. 1, 1 is a multiprocessor system main body according to the first embodiment of the present invention, 2, 3 are processors, 4, 5 are debug functions of the processors 2, 3, and 6 is a dual port shared by the processors 2, 3. A memory, 7 is a control circuit, 8 is a bus used by the processor 2, and 9 is a bus used by the processor 3.

10〜14はJTAGデバッガとの接続を図るための外部端子であり、10はTDI(Test Data In)信号入力端子、11はTRST(Test Reset)信号入力端子、12はTCK(Test Clock)信号入力端子、13はTMS(Test Mode Select)信号入力端子、14はTDO(Test Data Out)信号出力端子である。   10 to 14 are external terminals for connection to the JTAG debugger, 10 is a TDI (Test Data In) signal input terminal, 11 is a TRST (Test Reset) signal input terminal, and 12 is a TCK (Test Clock) signal input. Reference numeral 13 denotes a TMS (Test Mode Select) signal input terminal, and reference numeral 14 denotes a TDO (Test Data Out) signal output terminal.

15〜25はJTAG信号線であり、15はTDI信号線、16はTDI/TDO信号線、17、18はTRST信号線、19、20はTCK信号線、21、22はTMS信号線、23、24、25はTDO信号線である。   15 to 25 are JTAG signal lines, 15 is a TDI signal line, 16 is a TDI / TDO signal line, 17 and 18 are TRST signal lines, 19 and 20 are TCK signal lines, 21 and 22 are TMS signal lines, 23, Reference numerals 24 and 25 denote TDO signal lines.

また、プロセッサ2において、26はTDI信号入力端子、27はTRST信号入力端子、28はTCK信号入力端子、29はTMS信号入力端子、30はTDO信号出力端子である。プロセッサ3において、31はTDI信号入力端子、32はTRST信号入力端子、33はTCK信号入力端子、34はTMS信号入力端子、35はTDO信号出力端子である。   In the processor 2, 26 is a TDI signal input terminal, 27 is a TRST signal input terminal, 28 is a TCK signal input terminal, 29 is a TMS signal input terminal, and 30 is a TDO signal output terminal. In the processor 3, 31 is a TDI signal input terminal, 32 is a TRST signal input terminal, 33 is a TCK signal input terminal, 34 is a TMS signal input terminal, and 35 is a TDO signal output terminal.

制御回路7は、JTAGデバッガがプロセッサ2、3を従来周知のようにデバッグできるようにする動作モード(第1動作モード)と、プロセッサ2に制御されてプロセッサ3のデバッグ機能を制御する動作モード(第2動作モード)とを備えるものである。本実施形態では、制御回路7は、プロセッサ2の周辺回路としてプロセッサ2が使用するバス8に接続されているが、I/Oポート等に接続するようにしても良い。   The control circuit 7 includes an operation mode (first operation mode) that enables the JTAG debugger to debug the processors 2 and 3 as conventionally known, and an operation mode that is controlled by the processor 2 and controls the debugging function of the processor 3 ( 2nd operation mode). In this embodiment, the control circuit 7 is connected to the bus 8 used by the processor 2 as a peripheral circuit of the processor 2, but may be connected to an I / O port or the like.

制御回路7において、36はプロセッサ2に制御されてTDI信号、TRST信号、TCK信号、TMS信号の出力とTDO信号の入力を行う等の機能を有するデバッグ機能部であり、37はTDI信号出力端子、38はTRST信号出力端子、39はTCK信号出力端子、40はTMS信号出力端子、41はTDO信号入力端子である。また、42〜46はセレクタであり、デバッグ機能部36により選択動作を制御されるものである。   In the control circuit 7, 36 is a debug function unit controlled by the processor 2 and having functions such as outputting a TDI signal, TRST signal, TCK signal, TMS signal and inputting a TDO signal, and 37 is a TDI signal output terminal. , 38 are TRST signal output terminals, 39 is a TCK signal output terminal, 40 is a TMS signal output terminal, and 41 is a TDO signal input terminal. Reference numerals 42 to 46 denote selectors whose selection operations are controlled by the debug function unit 36.

セレクタ42は、プロセッサ2がTDO信号出力端子30からTDO信号線23に出力するTDO信号又はデバッグ機能部36がTDO信号出力端子37に出力するTDI信号を選択してTDI/TDO信号線16を介してプロセッサ3のTDI信号入力端子31に与えるものである。   The selector 42 selects the TDO signal output from the TDO signal output terminal 30 to the TDO signal line 23 by the processor 2 or the TDI signal output from the debug function unit 36 to the TDO signal output terminal 37 and passes through the TDI / TDO signal line 16. To the TDI signal input terminal 31 of the processor 3.

セレクタ43は、JTAGデバッガからTRST信号入力端子11及びTRST信号線17を介して与えられるTRST信号又はデバッグ機能部36がTRST信号出力端子38に出力するTRST信号を選択してTRST信号線18を介してプロセッサ3のTRST信号入力端子32に与えるものである。   The selector 43 selects the TRST signal supplied from the JTAG debugger via the TRST signal input terminal 11 and the TRST signal line 17 or the TRST signal output from the debug function unit 36 to the TRST signal output terminal 38 and passes through the TRST signal line 18. To the TRST signal input terminal 32 of the processor 3.

セレクタ44は、JTAGデバッガからTCK信号入力端子12及びTCK信号線19を介して与えられるTCK信号又はデバッグ機能部36がTCK信号出力端子39に出力するTCK信号を選択してTCK信号線20を介してプロセッサ3のTCK信号入力端子33に与えるものである。   The selector 44 selects the TCK signal supplied from the JTAG debugger via the TCK signal input terminal 12 and the TCK signal line 19 or the TCK signal output from the debug function unit 36 to the TCK signal output terminal 39 and passes through the TCK signal line 20. To the TCK signal input terminal 33 of the processor 3.

セレクタ45は、JTAGデバッガからTMS信号入力端子13及びTMS信号線21を介して与えられるTMS信号又はデバッグ機能部36がTMS信号出力端子40に出力するTMS信号を選択してTCK信号線22を介してプロセッサ3のTMS信号入力端子34に与えるものである。   The selector 45 selects the TMS signal supplied from the JTAG debugger via the TMS signal input terminal 13 and the TMS signal line 21 or the TMS signal output from the debug function unit 36 to the TMS signal output terminal 40 and passes through the TCK signal line 22. To the TMS signal input terminal 34 of the processor 3.

セレクタ46は、プロセッサ2がTDO信号出力端子30からTDO信号線23に出力するTDO信号又はプロセッサ3がTDO信号出力端子35からTDO信号線24に出力するTDO信号を選択してTDO信号線25を介してTDO信号出力端子14に与えるものである。   The selector 46 selects the TDO signal that the processor 2 outputs from the TDO signal output terminal 30 to the TDO signal line 23 or the TDO signal that the processor 3 outputs from the TDO signal output terminal 35 to the TDO signal line 24 and selects the TDO signal line 25. To the TDO signal output terminal 14.

図2は本発明の第1実施形態の通常使用時の状態を示すブロック回路図である。本発明の第1実施形態を通常使用する場合には、制御回路7を第2動作モードとする。即ち、プロセッサ2による制御回路7のデバッグ機能部36の制御により、デバッグ機能部36がセレクタ42〜46を制御し、セレクタ42、43、44、45はデバッグ機能部36が出力するTDI信号、TRST信号、TCK信号、TMS信号を選択し、セレクタ46はプロセッサ2が出力するTDO信号を選択すると共に、デバッグ機能部36はプロセッサ3が出力するTDO信号を入力する状態とする。   FIG. 2 is a block circuit diagram showing a state during normal use of the first embodiment of the present invention. When the first embodiment of the present invention is normally used, the control circuit 7 is set to the second operation mode. That is, under the control of the debug function unit 36 of the control circuit 7 by the processor 2, the debug function unit 36 controls the selectors 42 to 46, and the selectors 42, 43, 44, and 45 are the TDI signal, TRST output from the debug function unit 36. The signal 46, the TCK signal, and the TMS signal are selected, the selector 46 selects the TDO signal output from the processor 2, and the debug function unit 36 enters the TDO signal output from the processor 3.

このようにすると、デバッグ機能部36が出力するTDI信号、TRST信号、TCK信号、TMS信号をプロセッサ3に与え、プロセッサ3が出力するTDO信号をデバッグ機能部36に入力することができるので、プロセッサ3は、デバッグ機能部36を介してプロセッサ2から制御可能なコプロセッサとして扱うことが可能になる。即ち、プロセッサ2は、デバッグ機能部36を制御して、プロセッサ3の内部レジスタのモニタと制御や、ブレークポイント等の設定を行うことができる。   In this way, the TDI signal, TRST signal, TCK signal, and TMS signal output from the debug function unit 36 can be applied to the processor 3, and the TDO signal output from the processor 3 can be input to the debug function unit 36. 3 can be handled as a coprocessor that can be controlled from the processor 2 via the debug function unit 36. In other words, the processor 2 can control the debug function unit 36 to monitor and control the internal registers of the processor 3 and set breakpoints and the like.

なお、プロセッサ2によるプロセッサ3の制御方法の一例として、例えば、以下の方法がある。まず、プロセッサ2は、デュアルポートメモリ6にプロセッサ3に実行させるプログラム及び必要なデータを書き込み、次に、制御回路7を通してプロセッサ3に実行させるプログラムのアドレスをプロセッサ3のプログラムカウンタにセットし、また、必要に応じて、その他のレジスタにも必要な値をセットする。   An example of a method for controlling the processor 3 by the processor 2 is as follows. First, the processor 2 writes a program to be executed by the processor 3 and necessary data in the dual port memory 6, and then sets the address of the program to be executed by the processor 3 through the control circuit 7 in the program counter of the processor 3. If necessary, other registers are set to necessary values.

次に、プロセッサ2は、プログラムを終了させたい場所をプロセッサ3のブレークポイントに設定し、プロセッサ3に処理を開始させる。プロセッサ3は、セットされたプログラム及びデータを用いて処理を開始し、処理結果をデュアルポートメモリ6に書き込み、ブレークポイントに達した時点で動作を停止する。プロセッサ2は、プロセッサ3の処理完了を検知し、処理済みの結果を読み出すことが可能となる。   Next, the processor 2 sets a place where the program is to be ended as a breakpoint of the processor 3 and causes the processor 3 to start processing. The processor 3 starts processing using the set program and data, writes the processing result to the dual port memory 6, and stops operation when a breakpoint is reached. The processor 2 can detect the processing completion of the processor 3 and read the processed result.

図3は制御回路7の第1動作モード(制御回路7がJTAGデバッガによるプロセッサ2、3の従来方法によるデバッグを可能とする動作モード)時におけるセレクタ42〜46の状態を示すブロック回路図である。図3中、47はJTAGデバッガであり、48はTDI信号出力端子、49はTRST信号出力端子、50はTCK信号出力端子、51はTMS信号出力端子、52はTDO信号入力端子である。   FIG. 3 is a block circuit diagram showing states of the selectors 42 to 46 in the first operation mode of the control circuit 7 (operation mode in which the control circuit 7 enables debugging of the processors 2 and 3 by the conventional method using the JTAG debugger). . In FIG. 3, 47 is a JTAG debugger, 48 is a TDI signal output terminal, 49 is a TRST signal output terminal, 50 is a TCK signal output terminal, 51 is a TMS signal output terminal, and 52 is a TDO signal input terminal.

即ち、JTAGデバッガ47によるプロセッサ2、3の従来方法によるデバッグを行う場合には、本発明の第1実施形態のTDI信号入力端子10、TRST信号入力端子11、TCK信号入力端子12、TMS信号入力端子13及びTDO信号出力端子14をそれぞれJTAGデバッガ47のTDI信号出力端子48、TRST信号出力端子49、TCK信号出力端子50、TMS信号出力端子51及びTDO信号入力端子52に接続する。   That is, when debugging by the conventional method of the processors 2 and 3 by the JTAG debugger 47, the TDI signal input terminal 10, the TRST signal input terminal 11, the TCK signal input terminal 12, and the TMS signal input according to the first embodiment of the present invention. The terminal 13 and the TDO signal output terminal 14 are connected to the TDI signal output terminal 48, the TRST signal output terminal 49, the TCK signal output terminal 50, the TMS signal output terminal 51, and the TDO signal input terminal 52 of the JTAG debugger 47, respectively.

そして、プロセッサ2による制御回路7のデバッグ機能部36の制御により、デバッグ機能部36がセレクタ42〜46を制御し、セレクタ42はプロセッサ2が出力するTDO信号を選択し、セレクタ43、44、45はそれぞれJTAGデバッガ47が出力するTRST信号、TCK信号、TMS信号を選択し、セレクタ46はプロセッサ3が出力するTDO信号を選択する状態とする。   Then, under the control of the debug function unit 36 of the control circuit 7 by the processor 2, the debug function unit 36 controls the selectors 42 to 46, the selector 42 selects the TDO signal output from the processor 2, and the selectors 43, 44, 45 Select the TRST signal, TCK signal, and TMS signal output from the JTAG debugger 47, respectively, and the selector 46 selects the TDO signal output from the processor 3.

このようにすると、JTAGデバッガ47のTDI信号出力端子48をプロセッサ2のTDI信号入力端子26に接続し、プロセッサ2のTDO信号出力端子30をプロセッサ3のTDI信号入力端子31に接続し、プロセッサ3のTDO信号出力端子35をJTAGデバッガ47のTDO信号入力端子52に接続することができる。   In this way, the TDI signal output terminal 48 of the JTAG debugger 47 is connected to the TDI signal input terminal 26 of the processor 2, the TDO signal output terminal 30 of the processor 2 is connected to the TDI signal input terminal 31 of the processor 3, and the processor 3 This TDO signal output terminal 35 can be connected to the TDO signal input terminal 52 of the JTAG debugger 47.

また、JTAGデバッガ47のTRST信号出力端子49、TCK信号出力端子50及びTMS信号出力端子51を、それぞれ、プロセッサ2、3のTRST信号入力端子27、32、TCK信号入力端子28、33及びTMS信号入力端子29、34に接続することができる。   Further, the TRST signal output terminal 49, the TCK signal output terminal 50, and the TMS signal output terminal 51 of the JTAG debugger 47 are respectively connected to the TRST signal input terminals 27 and 32, the TCK signal input terminals 28 and 33, and the TMS signal of the processors 2 and 3. The input terminals 29 and 34 can be connected.

したがって、JTAGデバッガ47が出力するTDI信号をプロセッサ2に与え、JTAGデバッガ47が出力するTRST信号、TCK信号、TMS信号をプロセッサ2、3に与え、プロセッサ2が出力するTDO信号をプロセッサ3に与え、プロセッサ3が出力するTDO信号をJTAGデバッガ47に入力することができ、JTAGデバッガ47によるプロセッサ2、3の従来方法によるデバッグを行うことができる。   Therefore, the TDI signal output from the JTAG debugger 47 is supplied to the processor 2, the TRST signal, the TCK signal, and the TMS signal output from the JTAG debugger 47 are supplied to the processors 2 and 3, and the TDO signal output from the processor 2 is supplied to the processor 3. The TDO signal output from the processor 3 can be input to the JTAG debugger 47, and the JTAG debugger 47 can debug the processors 2 and 3 by the conventional method.

図4は制御回路7の第2動作モード(制御回路7がプロセッサ2に制御されてプロセッサ3のデバッグ機能を制御する動作モード)をJTAGデバッガによりデバッグする場合の状態を示すブロック回路図である。   FIG. 4 is a block circuit diagram showing a state when the second operation mode of the control circuit 7 (operation mode in which the control circuit 7 is controlled by the processor 2 to control the debugging function of the processor 3) is debugged by the JTAG debugger.

即ち、制御回路7がプロセッサ2に制御されてプロセッサ3のデバッグ機能を制御する動作モードをJTAGデバッガによりデバッグする場合には、本発明の第1実施形態のTDI信号入力端子10、TRST信号入力端子11、TCK信号入力端子12、TMS信号入力端子13及びTDO信号出力端子14をそれぞれJTAGデバッガ47のTDI信号出力端子48、TRST信号出力端子49、TCK信号出力端子50、TMS信号出力端子51及びTDO信号入力端子52に接続する。   That is, when the operation mode in which the control circuit 7 is controlled by the processor 2 to control the debugging function of the processor 3 is debugged by the JTAG debugger, the TDI signal input terminal 10 and the TRST signal input terminal of the first embodiment of the present invention. 11, the TCK signal input terminal 12, the TMS signal input terminal 13, and the TDO signal output terminal 14 are respectively connected to the TDI signal output terminal 48, the TRST signal output terminal 49, the TCK signal output terminal 50, the TMS signal output terminal 51, and the TDO of the JTAG debugger 47. Connect to signal input terminal 52.

そして、プロセッサ2による制御回路7のデバッグ機能部36の制御により、デバッグ機能部36がセレクタ42〜46を制御し、セレクタ42、43、44、45はデバッグ機能部36が出力するTDI信号、TRST信号、TCK信号、TMS信号を選択し、セレクタ46はプロセッサ2が出力するTDO信号を選択すると共に、デバッグ機能部36はプロセッサ3が出力するTDO信号を入力する状態とする。   Then, under the control of the debug function unit 36 of the control circuit 7 by the processor 2, the debug function unit 36 controls the selectors 42 to 46, and the selectors 42, 43, 44, 45 are the TDI signal, TRST output from the debug function unit 36. The signal 46, the TCK signal, and the TMS signal are selected, the selector 46 selects the TDO signal output from the processor 2, and the debug function unit 36 enters the TDO signal output from the processor 3.

このようにすると、JTAGデバッガ47のTDI信号出力端子48、TRST信号出力端子49、TCK信号出力端子50、TMS信号出力端子51及びTDO信号入力端子52をそれぞれプロセッサ2のTDI信号入力端子26、TRST信号入力端子27、TCK信号入力端子28、TMS信号入力端子29及びTDO信号出力端子30に接続することができる。   Thus, the TDI signal output terminal 48, the TRST signal output terminal 49, the TCK signal output terminal 50, the TMS signal output terminal 51, and the TDO signal input terminal 52 of the JTAG debugger 47 are connected to the TDI signal input terminal 26 and TRST of the processor 2, respectively. The signal input terminal 27, the TCK signal input terminal 28, the TMS signal input terminal 29, and the TDO signal output terminal 30 can be connected.

また、デバッグ機能部36のTDI信号出力端子37、TRST信号出力端子38、TCK信号出力端子39、TMS信号出力端子40及びTDO信号入力端子41をそれぞれプロセッサ3のTDI信号入力端子31、TRST信号入力端子32、TCK信号入力端子33、TMS信号入力端子34及びTDO信号出力端子35に接続することができる。   Further, the TDI signal output terminal 37, TRST signal output terminal 38, TCK signal output terminal 39, TMS signal output terminal 40, and TDO signal input terminal 41 of the debug function unit 36 are input to the TDI signal input terminal 31 and TRST signal input of the processor 3, respectively. The terminal 32, the TCK signal input terminal 33, the TMS signal input terminal 34, and the TDO signal output terminal 35 can be connected.

即ち、JTAGデバッガ47が出力するTDI信号、TRST信号、TCK信号、TMS信号をプロセッサ2に与え、プロセッサ2が出力するTDO信号をJTAGデバッガ47に入力することができ、また、デバッグ機能部36が出力するTDI信号、TRST信号、TCK信号、TMS信号をプロセッサ3に与え、プロセッサ3が出力するTDO信号をデバッグ機能部36に入力することができる。   That is, the TDI signal, the TRST signal, the TCK signal, and the TMS signal output from the JTAG debugger 47 can be applied to the processor 2, and the TDO signal output from the processor 2 can be input to the JTAG debugger 47. The TDI signal, TRST signal, TCK signal, and TMS signal to be output can be supplied to the processor 3, and the TDO signal output by the processor 3 can be input to the debug function unit 36.

したがって、図4に示す状態にする場合には、制御回路7がプロセッサ2に制御されてプロセッサ3のデバッグ機能を制御する動作モードをJTAGデバッガ47によりデバッグすることができる。   Therefore, in the state shown in FIG. 4, the operation mode in which the control circuit 7 is controlled by the processor 2 to control the debugging function of the processor 3 can be debugged by the JTAG debugger 47.

以上のように、本発明の第1実施形態によれば、プロセッサ2に制御されてプロセッサ3のデバッグ機能を制御する動作モードを持つ制御回路7によりマルチプロセッサシステムとしての動作を可能としているので、プロセッサ2、3のアーキテクチャが異なる場合であっても、容易に連携可能なシステムとすることができ、2個のプロセッサ2、3を持つマルチプロセッサシステムを簡易に構築することができる。   As described above, according to the first embodiment of the present invention, the control circuit 7 having an operation mode that is controlled by the processor 2 and controls the debugging function of the processor 3 enables the operation as a multiprocessor system. Even if the architectures of the processors 2 and 3 are different, it is possible to make a system that can be easily linked, and a multiprocessor system having two processors 2 and 3 can be easily constructed.

また、プロセッサ3へのプログラムロードをデュアルポートメモリ6で行うことができるようにしているので、プロセッサ3の制御回路7を介した制御はプロセッサ3内のレジスタの設定だけとなり、動作の高速化を図ることができる。また、デュアルポートメモリ6の容量以内であれば、複数のプログラム等を配置しておくことで転送そのものを省略できるため、さらに高速化が可能となる。   Further, since the program load to the processor 3 can be performed by the dual port memory 6, the control via the control circuit 7 of the processor 3 is only the setting of the register in the processor 3, and the operation speed is increased. Can be planned. Further, if the capacity is within the capacity of the dual port memory 6, the transfer itself can be omitted by arranging a plurality of programs and the like, so that the speed can be further increased.

(第2実施形態)
図5は本発明の第2実施形態の要部を示すブロック回路図である。本発明の第2実施形態は、JTAG対応デバイスであり、3個のプロセッサを有するマルチプロセッサシステムの例である。図5中、53は本発明の第2実施形態のマルチプロセッサシステム本体、54はプロセッサであり、55はプロセッサ2、54が共用するデュアルポートメモリ、56はプロセッサ54が使用するバスである。
(Second Embodiment)
FIG. 5 is a block circuit diagram showing the main part of the second embodiment of the present invention. The second embodiment of the present invention is an example of a multiprocessor system that is a JTAG-compatible device and includes three processors. In FIG. 5, 53 is a multiprocessor system main body according to the second embodiment of the present invention, 54 is a processor, 55 is a dual port memory shared by the processors 2 and 54, and 56 is a bus used by the processor 54.

また、プロセッサ54において、57はデバッグ機能部、58はTDI信号入力端子、59はTRST信号入力端子、60はTCK信号入力端子、61はTMS信号入力端子、62はTDO信号出力端子である。   In the processor 54, 57 is a debug function unit, 58 is a TDI signal input terminal, 59 is a TRST signal input terminal, 60 is a TCK signal input terminal, 61 is a TMS signal input terminal, and 62 is a TDO signal output terminal.

本発明の第2実施形態は、プロセッサ3のTDO信号出力端子35をTDO信号線63でプロセッサ54のTDI信号入力端子58に接続し、プロセッサ54のTRST信号入力端子59、TCK信号入力端子60及びTMS信号入力端子61をそれぞれTRST信号線18、TCK信号線20、TMS信号線22に接続し、プロセッサ54のTDO信号出力端子62をプロセッサ3のTDO信号出力端子35の代わりにTDO信号線24に接続している。その他については、本発明の第1実施形態と同様に構成している。   In the second embodiment of the present invention, the TDO signal output terminal 35 of the processor 3 is connected to the TDI signal input terminal 58 of the processor 54 via the TDO signal line 63, and the TRST signal input terminal 59, TCK signal input terminal 60 of the processor 54, and The TMS signal input terminal 61 is connected to the TRST signal line 18, the TCK signal line 20, and the TMS signal line 22, respectively. The TDO signal output terminal 62 of the processor 54 is connected to the TDO signal line 24 instead of the TDO signal output terminal 35 of the processor 3. Connected. Others are the same as in the first embodiment of the present invention.

本発明の第2実施形態によれば、制御回路7は、プロセッサ2に制御されてプロセッサ3、54のデバッグ機能を制御することができるので、プロセッサ2、54のアーキテクチャが異なる場合であっても、容易に連携可能なシステムとすることができ、3個のプロセッサ2、3、54を持つマルチプロセッサシステムを簡易に構築することができる。   According to the second embodiment of the present invention, since the control circuit 7 can be controlled by the processor 2 to control the debugging function of the processors 3 and 54, even if the architectures of the processors 2 and 54 are different. The system can be easily linked, and a multiprocessor system having three processors 2, 3, and 54 can be easily constructed.

また、プロセッサ3、54へのプログラムロードをデュアルポートメモリ6、55で行うことができるので、プロセッサ3、54の制御回路7を介した制御は、プロセッサ3、54内のレジスタの設定だけとなり、動作の高速化を図ることができる。また、デュアルポートメモリ6、55の容量以内であれば、複数のプログラム等を配置しておくことで転送そのものを省略できるため、さらに高速化が可能となる。なお、4個以上のプロセッサを持つように構成することもできる。   Further, since the program load to the processors 3 and 54 can be performed by the dual port memories 6 and 55, the control via the control circuit 7 of the processors 3 and 54 is only the setting of the registers in the processors 3 and 54. The operation can be speeded up. Further, if the capacity is within the capacity of the dual port memories 6 and 55, the transfer itself can be omitted by arranging a plurality of programs and the like, so that the speed can be further increased. Note that it may be configured to have four or more processors.

ここで、本発明のマルチプロセッサシステムを整理すると、本発明のマルチプロセッサシステムには、少なくとも、以下のマルチプロセッサシステムが含まれる。   Here, when the multiprocessor system of the present invention is organized, the multiprocessor system of the present invention includes at least the following multiprocessor system.

(付記1)複数のプロセッサを持つマルチプロセッサシステムにおいて、前記複数のプロセッサのうち、所定のプロセッサは、他のプロセッサのデバッグ機能を利用して前記他のプロセッサを制御することを特徴とするマルチプロセッサシステム。   (Supplementary Note 1) In a multiprocessor system having a plurality of processors, a predetermined processor among the plurality of processors controls the other processor by using a debugging function of the other processor. system.

(付記2)前記所定のプロセッサに制御されて前記他のプロセッサのデバッグ機能を制御する制御回路を有し、前記所定のプロセッサは、前記制御回路を制御して前記他のプロセッサのデバッグ機能を利用することを特徴とする付記1記載のマルチプロセッサシステム。   (Additional remark 2) It has a control circuit which controls the debug function of the other processor under the control of the predetermined processor, and the predetermined processor uses the debug function of the other processor by controlling the control circuit The multiprocessor system according to appendix 1, wherein:

(付記3)前記制御回路は、外部デバッガの制御による前記複数のプロセッサのデバッグを可能とする動作モードと、前記所定のプロセッサに制御されて前記他のプロセッサのデバッグ機能を制御する動作モードを有することを特徴とする付記2記載のマルチプロセッサシステム。   (Supplementary Note 3) The control circuit has an operation mode that enables debugging of the plurality of processors under the control of an external debugger and an operation mode that is controlled by the predetermined processor and controls a debugging function of the other processor. The multiprocessor system according to supplementary note 2, wherein

(付記4)前記制御回路が前記所定のプロセッサに制御されて前記他のプロセッサのデバッグ機能を制御する動作モード時、前記所定のプロセッサのみが前記外部デバッガと接続可能とされることを特徴とする付記3記載のマルチプロセッサシステム。   (Supplementary Note 4) In the operation mode in which the control circuit is controlled by the predetermined processor to control the debugging function of the other processor, only the predetermined processor can be connected to the external debugger. The multiprocessor system according to appendix 3.

(付記5)前記デバッグ機能は、JTAGデバッグ機能であることを特徴とする付記1〜4のいずれか一の付記に記載のマルチプロセッサシステム。   (Supplementary note 5) The multiprocessor system according to any one of supplementary notes 1 to 4, wherein the debug function is a JTAG debug function.

(付記6)前記複数のプロセッサに共用されるメモリを有することを特徴とする付記1〜5のいずれか一の付記に記載のマルチプロセッサシステム。   (Supplementary note 6) The multiprocessor system according to any one of supplementary notes 1 to 5, further comprising a memory shared by the plurality of processors.

本発明の第1実施形態の要部を示すブロック回路図である。It is a block circuit diagram which shows the principal part of 1st Embodiment of this invention. 本発明の第1実施形態の通常使用時の状態を示すブロック回路図である。It is a block circuit diagram which shows the state at the time of normal use of 1st Embodiment of this invention. 本発明の第1実施形態が備える制御回路の第1動作モード時におけるセレクタの状態を示すブロック回路図である。It is a block circuit diagram which shows the state of the selector at the time of the 1st operation mode of the control circuit with which 1st Embodiment of this invention is provided. 本発明の第1実施形態が備える制御回路の第2動作モードをJTAGデバッガによりデバッグする場合の状態を示すブロック回路図である。It is a block circuit diagram which shows the state in the case of debugging with the JTAG debugger the 2nd operation mode of the control circuit with which 1st Embodiment of this invention is provided. 本発明の第2実施形態の要部を示すブロック回路図である。It is a block circuit diagram which shows the principal part of 2nd Embodiment of this invention.

符号の説明Explanation of symbols

1…本発明の第1実施形態のマルチプロセッサシステム本体
2、3、54…プロセッサ
4、5、57…デバッグ機能部
6、55…デュアルポートメモリ
7…制御回路
8、9、56…バス
10、26、31、58…TDI信号入力端子
11、27、32、59…TRST信号入力端子
12、28、33、60…TCK信号入力端子
13、29、34、61…TMS信号入力端子
14、30、35、62…TDO信号出力端子
15…TDI信号線
16…TDI/TDO信号線
17、18…TRST信号線
19、20…TCK信号線
21、22…TMS信号線
23、24、25、63…TDO信号線
36…デバッグ機能部
37…TDI信号出力端子
38…TRST信号出力端子
39…TCK信号出力端子
40…TMS信号出力端子
41…TDO信号入力端子
42〜46…セレクタ
47…JTAGデバッガ

DESCRIPTION OF SYMBOLS 1 ... Multiprocessor system main body 2, 3, 54 ... Processor 4, 5, 57 ... Debug function part 6, 55 ... Dual port memory 7 ... Control circuit 8, 9, 56 ... Bus | bath 10, 1 of 1st Embodiment of this invention 26, 31, 58 ... TDI signal input terminal 11, 27, 32, 59 ... TRST signal input terminal 12, 28, 33, 60 ... TCK signal input terminal 13, 29, 34, 61 ... TMS signal input terminal 14, 30, 35, 62 ... TDO signal output terminal 15 ... TDI signal line 16 ... TDI / TDO signal line 17, 18 ... TRST signal line 19, 20 ... TCK signal line 21, 22 ... TMS signal line 23, 24, 25, 63 ... TDO Signal line 36 ... Debug function unit 37 ... TDI signal output terminal 38 ... TRST signal output terminal 39 ... TCK signal output terminal 40 ... TMS signal output terminal 4 DESCRIPTION OF SYMBOLS 1 ... TDO signal input terminal 42-46 ... Selector 47 ... JTAG debugger

Claims (5)

複数のプロセッサを持つマルチプロセッサシステムにおいて、
前記複数のプロセッサのうち、所定のプロセッサは、他のプロセッサのデバッグ機能を利用して前記他のプロセッサを制御することを特徴とするマルチプロセッサシステム。
In multiprocessor systems with multiple processors,
A predetermined processor of the plurality of processors controls the other processor by using a debugging function of the other processor.
前記所定のプロセッサに制御されて前記他のプロセッサのデバッグ機能を制御する制御回路を有し、
前記所定のプロセッサは、前記制御回路を制御して前記他のプロセッサのデバッグ機能を利用することを特徴とする請求項1記載のマルチプロセッサシステム。
A control circuit that is controlled by the predetermined processor and controls a debugging function of the other processor;
The multiprocessor system according to claim 1, wherein the predetermined processor uses the debug function of the other processor by controlling the control circuit.
前記制御回路は、外部デバッガの制御による前記複数のプロセッサのデバッグを可能とする動作モードと、前記所定のプロセッサに制御されて前記他のプロセッサのデバッグ機能を制御する動作モードを有することを特徴とする請求項2記載のマルチプロセッサシステム。   The control circuit has an operation mode that enables debugging of the plurality of processors under the control of an external debugger, and an operation mode that is controlled by the predetermined processor and controls a debugging function of the other processor. The multiprocessor system according to claim 2. 前記制御回路が前記所定のプロセッサに制御されて前記他のプロセッサのデバッグ機能を制御する動作モード時、前記所定のプロセッサのみが前記外部デバッガと接続可能とされることを特徴とする請求項3記載のマルチプロセッサシステム。   4. The operation mode in which the control circuit is controlled by the predetermined processor to control a debugging function of the other processor, and only the predetermined processor can be connected to the external debugger. Multiprocessor system. 前記複数のプロセッサに共用されるメモリを有することを特徴とする請求項1〜4のいずれか一項に記載のマルチプロセッサシステム。

The multiprocessor system according to claim 1, further comprising a memory shared by the plurality of processors.

JP2005125936A 2005-04-25 2005-04-25 Multiprocessor system Expired - Fee Related JP4600134B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005125936A JP4600134B2 (en) 2005-04-25 2005-04-25 Multiprocessor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005125936A JP4600134B2 (en) 2005-04-25 2005-04-25 Multiprocessor system

Publications (2)

Publication Number Publication Date
JP2006302162A true JP2006302162A (en) 2006-11-02
JP4600134B2 JP4600134B2 (en) 2010-12-15

Family

ID=37470348

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005125936A Expired - Fee Related JP4600134B2 (en) 2005-04-25 2005-04-25 Multiprocessor system

Country Status (1)

Country Link
JP (1) JP4600134B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008287709A (en) * 2007-04-13 2008-11-27 Dspace Digital Signal Processing & Control Engineering Gmbh Adaptation element, test system, and operation method of adaptation element and test system
EP3327573A1 (en) 2016-11-28 2018-05-30 Renesas Electronics Corporation Multi-processor and multi-processor system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0798692A (en) * 1993-05-31 1995-04-11 Mitsubishi Electric Corp Microcomputer
JPH08147189A (en) * 1994-11-25 1996-06-07 Hitachi Ltd Debugging method for operating system of parallel computer
JP2004164367A (en) * 2002-11-14 2004-06-10 Renesas Technology Corp Multiprocessor system
JP2004326784A (en) * 2003-04-28 2004-11-18 Internatl Business Mach Corp <Ibm> Cross-chip communication mechanism of distributed node topology

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0798692A (en) * 1993-05-31 1995-04-11 Mitsubishi Electric Corp Microcomputer
JPH08147189A (en) * 1994-11-25 1996-06-07 Hitachi Ltd Debugging method for operating system of parallel computer
JP2004164367A (en) * 2002-11-14 2004-06-10 Renesas Technology Corp Multiprocessor system
JP2004326784A (en) * 2003-04-28 2004-11-18 Internatl Business Mach Corp <Ibm> Cross-chip communication mechanism of distributed node topology

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008287709A (en) * 2007-04-13 2008-11-27 Dspace Digital Signal Processing & Control Engineering Gmbh Adaptation element, test system, and operation method of adaptation element and test system
EP3327573A1 (en) 2016-11-28 2018-05-30 Renesas Electronics Corporation Multi-processor and multi-processor system
US10489271B2 (en) 2016-11-28 2019-11-26 Renesas Electronics Corporation Multi-processor and multi-processor system for code debugging

Also Published As

Publication number Publication date
JP4600134B2 (en) 2010-12-15

Similar Documents

Publication Publication Date Title
US7010722B2 (en) Embedded symmetric multiprocessor system debug
US9274169B2 (en) Asynchronous programmable JTAG-based interface to debug any system-on-chip states, power modes, resets, clocks, and complex digital logic
JP3998303B2 (en) Integrated circuit having a TAP controller
US10495690B2 (en) Combinatorial serial and parallel test access port selection in a JTAG interface
JP4450787B2 (en) Semiconductor integrated circuit device
US8666690B2 (en) Heterogeneous multi-core integrated circuit and method for debugging same
US6334198B1 (en) Method and arrangement for controlling multiply-activated test access port control modules
JP2004164367A (en) Multiprocessor system
US20060149958A1 (en) Code download in a system having multiple integrated circuits with a jtag capability
JP2009236879A (en) Scan control method, scan control circuit and device
US5809037A (en) Integrated circuit testing
KR100423891B1 (en) Microprocessor having trace module
JP4600134B2 (en) Multiprocessor system
JP2010032503A (en) Asynchronous communication apparatus using jtag test data register
US7231568B2 (en) System debugging device and system debugging method
JPH0424749A (en) Test facilitation circuit for information processor
JP5329743B2 (en) Semiconductor integrated circuit device
JP2004094451A (en) On-chip jtag interface circuit and system lsi
US7412624B1 (en) Methods and apparatus for debugging a system with a hung data bus
US7305512B2 (en) Programme-controlled unit with crossbar employing a diagnostic port
Hosny A Unified UVM Methodology For MPSoC Hardware/Software Functional Verification
JP2006146757A (en) Register for debugging and data transfer method
JP2004164113A (en) Resetting circuit and resetting method for multiple cpu
JP2004038464A (en) Microcomputer with built-in debugging function
CN207946806U (en) A kind of debugger and debugging apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071221

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20080730

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091126

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100615

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100809

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100831

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100913

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131008

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees