JPS6168647A - Data processing device - Google Patents

Data processing device

Info

Publication number
JPS6168647A
JPS6168647A JP60208189A JP20818985A JPS6168647A JP S6168647 A JPS6168647 A JP S6168647A JP 60208189 A JP60208189 A JP 60208189A JP 20818985 A JP20818985 A JP 20818985A JP S6168647 A JPS6168647 A JP S6168647A
Authority
JP
Japan
Prior art keywords
bus
input
instruction
output
test
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
JP60208189A
Other languages
Japanese (ja)
Other versions
JPS648381B2 (en
Inventor
Mitsutoshi Nagoya
名古屋 光利
Junichi Iwasaki
岩先 純一
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP60208189A priority Critical patent/JPS6168647A/en
Publication of JPS6168647A publication Critical patent/JPS6168647A/en
Publication of JPS648381B2 publication Critical patent/JPS648381B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults

Abstract

PURPOSE:To eliminate a dedicated bus and to reduce a semiconductor chip area by utilizing an inner bus of CPU and connecting an input/output port thereto. CONSTITUTION:An input/output port 23 is connected to an inner bus 18. Also the inner bus 18 is connected to an input side of a multiplexer 31 through a bus 31 so that data from the inner bus 18 and data from a memory 11 area switched by a multiplexer 13 and set at an instruction register 15. Furthermore, a bus 16 is connected to the bus 18 through a bus 32 so that the contents of the instruction register 15 area supplied to the inner bus 18. In case of test, the input/output port 23 is set to input state by the signal sent from a terminal 27, and the test instruction is issued from outside to the inner bus 18 through the input/output 23 by giving timings M5 and M6 other than the instruction execution cycles issued from timing generator from a terminal 37.

Description

【発明の詳細な説明】 この発明はメモリを内蔵した中央処理装置、とくに試験
回路を具備したワンチップマイクロコ/ピエータに関す
る。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a central processing unit with a built-in memory, and particularly to a one-chip microco/pie equipped with a test circuit.

先ず従来のこの徨の情報処理装置を第1図を参照して説
明しよう。中央処理装置(以下CPUと称す)内に設け
られた読出し専用メモリ11内のプログラムが読出され
、その読出された命令はバス12を通じ、マルチプレク
サ13に与えられる。
First, a conventional information processing device of this type will be explained with reference to FIG. A program in a read-only memory 11 provided in a central processing unit (hereinafter referred to as CPU) is read, and the read instructions are given to a multiplexer 13 through a bus 12.

マルチプレクサ13の出力はバス14を通じて命令レジ
スタ15内にセットされ、この命令はバス16を通じて
デコーダ17に与えられ、そのデコーダ17で解読され
、更に図に示してないが演算装置等で処理実効されて内
部バス18を通じて出力ボート19に出力されたり、或
いは入力セード。
The output of the multiplexer 13 is set in the instruction register 15 through the bus 14, and this instruction is given to the decoder 17 through the bus 16, decoded by the decoder 17, and further processed and executed by an arithmetic unit (not shown). It is output to the output boat 19 through the internal bus 18, or the input source.

21を通じて内部バス18にデータが取込まれる−この
命令の実効サイクルは例えば第2図に示すようにタイミ
ングMl −Mtにおいてメモリ11か   ゛らのデ
ータが命令レジスタ15に読込まれ、これがタイミング
Ms 、M4において解読処理実効される。このM、〜
M4のタイミングが命令実効サイクルとなる。
Data is read into the internal bus 18 through 21.The effective cycle of this instruction is, for example, as shown in FIG. The decryption process is executed in M4. This M...
The timing of M4 is the instruction execution cycle.

このCPUの命令実効処理動作を試験するため或いはメ
モリ11の内容を試験するため、入出力ボート23が設
けられる。この入出力ボート23よりのデータはテスト
以外では使われない専用のデータはテスト以外では使わ
れない専用の命令バス24を通じてマルチプレクサ13
に与えられる。
In order to test the instruction execution processing operation of the CPU or to test the contents of the memory 11, an input/output board 23 is provided. Data from this input/output port 23 is sent to the multiplexer 13 through a dedicated instruction bus 24 that is not used for purposes other than testing.
given to.

マルチプレクサ13は端子25よシの信号によりてバス
12又は24の何れかのデータを選択することができる
。又命令レジスタ15よりデコーダ17に至るバス16
を分岐してこれもテスト以外には使われることのない出
力専用バス26を通じて命令レジスタ15の内容が入出
力ポート23に与えられるようにされる。入出力ポート
23は端子27よりの信号によって入力ポートとされ九
り出力ポートとされたり制御される。
Multiplexer 13 can select data on either bus 12 or 24 by a signal from terminal 25. Also, a bus 16 from the instruction register 15 to the decoder 17
is branched so that the contents of the instruction register 15 are given to the input/output port 23 via the output-only bus 26, which is also not used for purposes other than testing. The input/output port 23 is controlled by a signal from the terminal 27 to be used as an input port or as an output port.

外部から命令を与え、これを実効させてテストする場合
罠は端子27の信号により入出力ポート23を入力状態
とし、第2図に示した命令実効サイクル中のタイミング
Mt 、Mtと同期して外部から命令を取り込み、テス
ト専用バス24を通じてマルチプレクサ13に与えられ
る。この時マルチプレクサ13は端子25よりの信号に
よりテスト専用バス2491gのデータを選択して命令
レジスタ15に与えるようにされる。命令レジスタ15
にセットされた外部よりの命令はデコーダ17にて解読
されて命令が実効される。タイミングMl。
When testing by giving an external command and executing it, the trap sets the input/output port 23 to the input state by the signal from the terminal 27, and synchronizes with the timing Mt and Mt during the command execution cycle shown in FIG. The command is taken in from the test bus 24 and given to the multiplexer 13 through the test dedicated bus 24. At this time, the multiplexer 13 selects the data on the test dedicated bus 2491g based on the signal from the terminal 25 and applies it to the instruction register 15. instruction register 15
The external command set to is decoded by the decoder 17 and executed. Timing Ml.

M4でCPHの出力、つま9命令実効結果が検査される
。これによりその命令が正しく実効されたかどうかの試
験が行なわれる。
At M4, the output of the CPH, that is, the execution result of the 9 instructions, is inspected. This tests whether the command was executed correctly.

メモリ11を試験する場合には、端子27へ与える信号
によって入出力ポート23は出力状態とされ、マルチプ
レクサ13は端子25の信号によってメモリ11からの
読出データ12が命令レジスタ15に供給されるように
切替えられる。従ってタイミングM、、M、に訃いてメ
モリ11より読出され九命令はマルチプレクサ18を通
じて命令レジスタ15に格納され、タイミングMS、M
4においてテスト専用バス26を通じて出力ポート23
より出力されてメモリ11の内容が試験される。
When testing the memory 11, the input/output port 23 is set to an output state by the signal applied to the terminal 27, and the multiplexer 13 is set so that the read data 12 from the memory 11 is supplied to the instruction register 15 by the signal applied to the terminal 25. Can be switched. Therefore, the nine instructions read from the memory 11 at timings M, , M, are stored in the instruction register 15 through the multiplexer 18, and at timings MS, M
4 through the test dedicated bus 26 at the output port 23
The contents of the memory 11 are tested.

以上述べたように従来のメモリを内置したCPUKよる
データ旭理装置に対する試験は入出力ポート23と命令
入力用のテスト専用バス24と出力取出し用のテスト専
用バス26とを設けている。
As described above, in the conventional test of a data analysis device using a CPUK having an internal memory, an input/output port 23, a test dedicated bus 24 for command input, and a test dedicated bus 26 for output retrieval are provided.

このように多くの専用バスを使用することはCPUを構
成する半導体チップの面積が増大する欠点があった。
The use of such a large number of dedicated buses has the disadvantage that the area of the semiconductor chip constituting the CPU increases.

この発明の目的はCPU内にもともと存在する内部バス
を利用し、これに入出力ポートを接続することによって
専用バスを取除き、半導体チップ面積を縮少することが
できるデータ処理装置を提供するものである。
An object of the present invention is to provide a data processing device that utilizes an internal bus that originally exists in a CPU and connects input/output ports to it, thereby eliminating a dedicated bus and reducing the area of a semiconductor chip. It is.

この発明によれば入出力ポートは内部バスに接続され、
その内部バスよりのデータとメモリより読出されたデー
タとがマルチプレクサにて切替えられて命令レジスタに
セットできるように構成される。又命令レジスタにセッ
トされたデータを内部バスを通じて入出力ポートに供給
できるように構成される。
According to this invention, the input/output ports are connected to an internal bus,
The configuration is such that data from the internal bus and data read from the memory can be switched by a multiplexer and set in the instruction register. Also, the configuration is such that data set in the instruction register can be supplied to the input/output port via the internal bus.

例えば第3図に第1図と対応する部分に同一符号を付け
て示すが、この発明においては内部バスIJHC入出力
ボート23が接続される。又この内部バス18のデータ
とメモリ11からのデータとをマルチプレクサ13にて
切替えて命令レジスタ15にセットできるように、内部
バス18はバス31を通じてマルチプレクサ13の入力
側に接続される。更に命令レジスタ15の内容は内部バ
ス18に供給できるようにバス16はバス32を通じて
内部バス18に接続される。
For example, in FIG. 3, parts corresponding to those in FIG. 1 are given the same reference numerals, and in this invention, an internal bus IJHC input/output port 23 is connected. Further, the internal bus 18 is connected to the input side of the multiplexer 13 through a bus 31 so that the data on the internal bus 18 and the data from the memory 11 can be switched by the multiplexer 13 and set in the instruction register 15. Furthermore, bus 16 is connected to internal bus 18 via bus 32 so that the contents of instruction register 15 can be provided to internal bus 18.

第4図に示すように命令実効サイクルのタイミングM1
〜M4の他に試験の際にはタイミングに及びM6を発生
するようにされる。例えば第5図に示すように端子33
よりのクロックパルスがタイミング発生用6進カウンタ
34に供給されて計数される。常時はクロックパルスが
計数される毎に順次タイミングM、 、 M、 、 M
、 、 M4を発生し、そのタイミングM4が発生する
と、禁止ゲート35を通じてカウンタ34がリセットさ
れる。従ってタイミングM1〜M4が繰返し発生する。
As shown in FIG. 4, timing M1 of the instruction execution cycle
In addition to ~M4, M6 is generated depending on the timing during testing. For example, as shown in FIG.
The following clock pulses are supplied to a timing generation hexadecimal counter 34 and counted. Normally, the timing M, , M, , M is set sequentially every time the clock pulse is counted.
, , M4 are generated, and when the timing M4 occurs, the counter 34 is reset through the inhibit gate 35. Therefore, timings M1 to M4 occur repeatedly.

しかし試験の際には端子36より禁止ゲート35に試験
中であることを示す信号が入り禁止ゲート35は禁止状
態となる。従って端子33よりのクロックパルスはタイ
ミングぬ1M2 、 Ms 、 Vi4 と順次出力を
発生し、更にタイミングMs 、Ms と実効サイクル
以外のタイミングを発生し、これよりフルカウントとな
って再びタイミングM+ 9M! 1Ms 1M4 。
However, during the test, a signal indicating that the test is in progress is sent from the terminal 36 to the prohibition gate 35, and the prohibition gate 35 enters the prohibited state. Therefore, the clock pulse from the terminal 33 sequentially generates outputs at timings 1M2, Ms, and Vi4, and further generates timings other than the effective cycle, such as Ms and Ms, and from this point on, the full count is reached again at timing M+9M! 1Ms 1M4.

M、 、 M、と順次繰返し発生する。M, , M, occur repeatedly in sequence.

試験の際にはこの命令実効サイクル以外のタイミングM
s 、Me を通じて命令を入力し、或いは命令を出力
する。即ち命令実行の試験を行なうには入出力ボート2
3を端子27の信号によって入力状態にしておき、又端
子37よりのタイミング発生装置からの命令実効サイク
ル以外のタイミングMs 、Meを与えて外部よりテス
ト命令を入ti1カボート23を通じ内部バス18に送
る。そして内部バスを通じてマルチプレクサ13に送ら
れる。
During testing, timing M other than this instruction execution cycle is used.
Commands are input or output through s and Me. In other words, to test instruction execution, input/output board 2
3 is kept in an input state by a signal from the terminal 27, and timings Ms and Me other than the command execution cycle from the timing generator are given from the terminal 37, and a test command is input from the outside and sent to the internal bus 18 through the ti1 cover 23. . The signal is then sent to the multiplexer 13 via the internal bus.

タイミングMi 、 Mtにおいては端子25の信号に
よりマルチプレクサ13を内部バス側に切替える。従っ
て入出力ボート23よシ入力されたテスト命令が命令レ
ジスタ15にセットされる。この命令はデコーダ17に
てデコードされて処理実行が通常の実行タイミングと同
じタイミングM、。
At timings Mi and Mt, the multiplexer 13 is switched to the internal bus side by the signal at the terminal 25. Therefore, the test command input from the input/output board 23 is set in the command register 15. This instruction is decoded by the decoder 17 and the processing is executed at the same timing M as the normal execution timing.

M4において行われる。この結果は従来と同様に例えば
出力ポート19に−て゛検査され、或いは入力ポート2
1にて検査される。
This is done in M4. This result is inspected, for example, at the output port 19, or at the input port 2, as in the past.
1 will be inspected.

メモリ11の内容を検査する場合は端子27の信号によ
り入出力ボート23は出力状態とされ、又端子25の信
号によりマルチプレクサ13はメモリ11の出力がレジ
スタ15−に供給されるようにセットされる。タイミン
グM、、M、において読出されているメモリ11の命令
がタイミング凪M4においてマルチプレクサ13を通じ
て命令レジスタ15にセットされる。タイミングMs 
、 Meにおいて端子37の信号によυ内部バス18を
通じて命令レジスタ15の内容が入出力ボート23よシ
出力され、メモリ11の内容を試験することができる。
When inspecting the contents of the memory 11, the input/output port 23 is set to an output state by the signal at the terminal 27, and the multiplexer 13 is set by the signal at the terminal 25 so that the output of the memory 11 is supplied to the register 15-. . The instruction in the memory 11 being read at timings M, , M, is set in the instruction register 15 through the multiplexer 13 at a timing lull M4. Timing Ms
, Me, the contents of the instruction register 15 are outputted to the input/output board 23 via the internal bus 18 in response to the signal at the terminal 37, so that the contents of the memory 11 can be tested.

以上述べたようにこの発明によれば内部バス18を利用
してテストデータの入出力を行なうため、第1図におけ
る命令入力用のテスト専用バス24、出力用のテスト専
用バス26を必要とせずCPUを構成する半導体チップ
の面積を著しく小さく構成することができる。又このよ
うに内部バスを利用するが試験の際には分合実行サイク
ル以外のタイミングにおいて、外部とのデータの入出力
を行なうことによって内部バスを使用して、通常の動作
と同様のタイミングでテストすることができる。
As described above, according to the present invention, the internal bus 18 is used to input and output test data, so the test dedicated bus 24 for command input and the test dedicated bus 26 for output shown in FIG. 1 are not required. The area of the semiconductor chip constituting the CPU can be significantly reduced. In addition, although the internal bus is used in this way, during testing, data can be input and output to and from the external device at timings other than the division execution cycle, using the internal bus at the same timing as normal operation. Can be tested.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は従来のデータ処理装置を示すブロック図、第2
図は命令実効サイクルを示す図、第3図はこの発明によ
るデータ処理装置の一例を示すブロック図、第4図はそ
の試験状態における命令実効サイクルとそれ以外のタイ
ミングとの関係を示す図、第5図はタイミング発生装置
の一例を示す図である。 11:内蔵メモIJ、13:マルチプレクサ、15:命
令レジスタ、17:デコーダ、18:内部バス、19:
出力ポート、21:入力ボート、23:入出力ボート、
25:マルチプレクサ130制御入力端子、27:入出
力ボートの入出力切替制御入力端子、37:命令実効サ
イクル以外のタイミングが与えられて入出力ボートを動
作させ第    1    口 第  2   切 ヒ]浴i旨π−す
Figure 1 is a block diagram showing a conventional data processing device, Figure 2 is a block diagram showing a conventional data processing device.
3 is a block diagram showing an example of the data processing device according to the present invention; FIG. 4 is a diagram showing the relationship between the instruction effective cycle and other timings in the test state; FIG. FIG. 5 is a diagram showing an example of a timing generator. 11: Built-in memory IJ, 13: Multiplexer, 15: Instruction register, 17: Decoder, 18: Internal bus, 19:
Output port, 21: Input port, 23: Input/output port,
25: multiplexer 130 control input terminal, 27: input/output switching control input terminal of the input/output boat, 37: timing other than the command execution cycle is given to operate the input/output boat. π-su

Claims (1)

【特許請求の範囲】[Claims] 命令が格納されたメモリと、前記命令に基づく処理を実
行する実行部と実行時にデータ転送用として用いられる
内部バスとを同一チップ上に有するデータ処理装置にお
いて、前記実行部にテスト用命令を外部から入力する時
には前記内部バスを介して前記実行部にテスト用命令が
与えられ、前記メモリ内の命令をチェックする時には前
記内部バスを介して前記メモリ内の命令が外部に読み出
されるようにしたことを特徴とするデータ処理装置。
In a data processing device that has a memory in which instructions are stored, an execution unit that executes processing based on the instructions, and an internal bus used for data transfer during execution on the same chip, the execution unit is provided with test instructions externally. A test instruction is given to the execution unit via the internal bus when the instruction is input from the internal bus, and when an instruction in the memory is checked, the instruction in the memory is read out to the outside via the internal bus. A data processing device characterized by:
JP60208189A 1985-09-20 1985-09-20 Data processing device Granted JPS6168647A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60208189A JPS6168647A (en) 1985-09-20 1985-09-20 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60208189A JPS6168647A (en) 1985-09-20 1985-09-20 Data processing device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP598278A Division JPS5498546A (en) 1978-01-23 1978-01-23 Test system for data processor

Publications (2)

Publication Number Publication Date
JPS6168647A true JPS6168647A (en) 1986-04-09
JPS648381B2 JPS648381B2 (en) 1989-02-14

Family

ID=16552135

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60208189A Granted JPS6168647A (en) 1985-09-20 1985-09-20 Data processing device

Country Status (1)

Country Link
JP (1) JPS6168647A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05334114A (en) * 1992-04-27 1993-12-17 Intel Corp Computer circuit, microprocessor, external command method, and method for operating microprocessor

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ELECTRONIC DESIGN=1977 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05334114A (en) * 1992-04-27 1993-12-17 Intel Corp Computer circuit, microprocessor, external command method, and method for operating microprocessor

Also Published As

Publication number Publication date
JPS648381B2 (en) 1989-02-14

Similar Documents

Publication Publication Date Title
JP2927108B2 (en) In-circuit emulator
US5717851A (en) Breakpoint detection circuit in a data processor and method therefor
JPS6120145A (en) Operation analyzer of microprocessor
JPH08212100A (en) Emulation chip for single-chip microcomputer
US5809037A (en) Integrated circuit testing
EP0457115B1 (en) Data processing device with test control circuit
JPH11282709A (en) In-circuit emulator
JPS6168647A (en) Data processing device
JPS603747A (en) Program selecting control system
JPH0267979A (en) Testing circuit for logic circuit
JP2004094451A (en) On-chip jtag interface circuit and system lsi
JPS62164140A (en) Testing of data processing system
JP2575025B2 (en) In-circuit emulator
JPS63298642A (en) Microcomputer
JPH02103482A (en) Integrated circuit device
JPS61112248A (en) Logical large-scale integrated circuit with easy test
JPH09106359A (en) Semiconductor integrated circuit
JPS62125441A (en) One-chip microcomputer
JPS62145438A (en) Microcomputer
JPS63216141A (en) Microcomputer device
JPH01147732A (en) Information processor
JPS62248043A (en) Memory switching circuit for fetching microcomputer instruction
JPS6091454A (en) Integrated circuit
JPS61155778A (en) Inspection of semiconductor integrated circuit
JPS619733A (en) Test device