JPH09167150A - Single chip microcomputer and test device/method - Google Patents

Single chip microcomputer and test device/method

Info

Publication number
JPH09167150A
JPH09167150A JP7330423A JP33042395A JPH09167150A JP H09167150 A JPH09167150 A JP H09167150A JP 7330423 A JP7330423 A JP 7330423A JP 33042395 A JP33042395 A JP 33042395A JP H09167150 A JPH09167150 A JP H09167150A
Authority
JP
Japan
Prior art keywords
data
input
output terminal
mode
cpu
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.)
Pending
Application number
JP7330423A
Other languages
Japanese (ja)
Inventor
Hiroshi Obara
洋 小原
Katsuhiko Miyamae
克彦 宮前
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP7330423A priority Critical patent/JPH09167150A/en
Publication of JPH09167150A publication Critical patent/JPH09167150A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To simplify an 1 chip microcomputer test and to reduce cost. SOLUTION: A mode setting means 30 sets a one chip microcomputer 40 to a CPU (1) mode. At the CPU (1) mode, data can be transferred between a terminal 23B and a data bus 26 and data can be transferred between a terminal 23A and a peripheral circuit 25A. A mode setting means 30' sets a one chip microcomputer 40' to a CPU (2) mode. At the CPU (2) mode, data can be transferred between a terminal 23A' and the data bus 26, and data can be transferred between a terminal 23B' and a peripheral circuit 25B'. Data is given from the memory part 42 of a test controller 41 to the terminals 23B and 23A' and data is outputted from the terminals 23A and 23B'.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、シングルチップマ
イクロコンピュータのエミュレータ機能を持たせたテス
ト回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a test circuit having an emulator function for a single chip microcomputer.

【0002】[0002]

【従来の技術】従来、ROM、RAMなどの記憶回路
(以下、メモリ)及びその周辺回路を含むシングルチッ
プマイクロコンピュータ(以下、シングルチップマイコ
ン)は、動作のためにプログラムが必要となる。
2. Description of the Related Art Conventionally, a single-chip microcomputer (hereinafter, single-chip microcomputer) including a storage circuit (hereinafter, memory) such as ROM and RAM and its peripheral circuits requires a program for operation.

【0003】通常、プログラムはメモリに記憶され、そ
のプログラムの内容に応じて命令が実行されていく。シ
ングルチップマイコンは、プログラムの動作確認やデバ
ッグなどを行うために、エミュレータと呼ばれるソフト
ウェア開発ツールが必要となる。
Usually, a program is stored in a memory and instructions are executed according to the contents of the program. A single-chip microcomputer requires a software development tool called an emulator in order to check the program operation and debug.

【0004】エミュレータは、命令実行のためのプログ
ラムを記憶するメモリ(ROM)と、データ保持のため
のメモリ(RAM)を外部に有し、そのメモリの内容や
これらのアドレスを指定するプログラムカウンタの内容
などを確認できることが必要である。
The emulator has a memory (ROM) for storing a program for executing instructions and a memory (RAM) for holding data externally, and a program counter for designating the contents of the memory and these addresses. It is necessary to be able to confirm the contents.

【0005】このために、従来は、製品(シングルチッ
プマイコン)とは別にエミュレータ専用のエバリエーシ
ョンチップを作る方法と、製品にテスト回路を設けてエ
バリエーションチップと同等の動作をさせる方法とがあ
る。
For this reason, conventionally, there is a method of making an emulator variation chip separately from the product (single chip microcomputer) and a method of providing a test circuit in the product and performing an operation equivalent to that of the variation chip. .

【0006】本発明は、後者に関する方法であるため、
以下にその従来のテスト回路について述べる。図4は、
従来のシングルチップマイコンの主要部の構成を示すも
のである。
Since the present invention is a method relating to the latter,
The conventional test circuit will be described below. FIG.
1 shows a configuration of a main part of a conventional single-chip microcomputer.

【0007】シングルチップマイコン10のデ−タ入出
力端子11A,11Bは、それぞれ切り換え回路12
A,12Bに接続されている。切り換え回路12Aは、
周辺回路13Aを介して又は直接にデ−タバス14に接
続されると共に切り換え回路15に接続されている。切
り換え回路15は、メモリ16及びデ−タバス14に接
続されている。
The data input / output terminals 11A and 11B of the single-chip microcomputer 10 are connected to the switching circuit 12 respectively.
It is connected to A and 12B. The switching circuit 12A is
It is connected to the data bus 14 via the peripheral circuit 13A or directly and is also connected to the switching circuit 15. The switching circuit 15 is connected to the memory 16 and the data bus 14.

【0008】モ−ド設定端子18A,18Bは、シング
ルチップマイコン10のテスト時のモ−ドを設定するた
めのモ−ド設定手段19に接続されている。命令クロッ
クは、クロック入力端子20に印加される。
The mode setting terminals 18A and 18B are connected to the mode setting means 19 for setting the mode at the time of testing the single chip microcomputer 10. The instruction clock is applied to the clock input terminal 20.

【0009】切り換え回路12Aは、周辺回路13Aの
入出力とデ−タバス14の入出力とを切り換える。切り
換え回路12Bは、周辺回路13Bの入出力とデ−タバ
ス14の入出力とを切り換える。また、切り換え回路1
5は、外部メモリの入出力と内部メモリの入出力とを切
り換える。
The switching circuit 12A switches between input / output of the peripheral circuit 13A and input / output of the data bus 14. The switching circuit 12B switches between the input / output of the peripheral circuit 13B and the input / output of the data bus 14. Also, the switching circuit 1
Reference numeral 5 switches the input / output of the external memory and the input / output of the internal memory.

【0010】図5は、従来のシングルチップマイコンテ
スト時の様子を示すものである。このテスト方法では、
3つのシングルチップマイコンを使用し、各シングルチ
ップマイコンのモ−ドを設定することによりエミュレー
タを構成している。
FIG. 5 shows a state of a conventional single-chip microcomputer test. In this test method,
The emulator is configured by using three single-chip microcomputers and setting the mode of each single-chip microcomputer.

【0011】即ち、シングルチップマイコン10では、
テスト制御装置21からのモ−ド設定信号に基づき、モ
−ド設定手段19がCPUモ−ドを選択する。CPUモ
−ドは、テスト制御装置21のメモリ部(外部メモリ)
22のデ−タをデ−タ入出力端子11Aを経由してデー
タバス14に導き、CPU17においてそのデータを処
理し、デ−タ入出力端子11Bにデ−タを出力するとい
うモ−ドである。
That is, in the single chip microcomputer 10,
Based on the mode setting signal from the test controller 21, the mode setting means 19 selects the CPU mode. The CPU mode is a memory unit (external memory) of the test control device 21.
In this mode, the data of No. 22 is led to the data bus 14 via the data input / output terminal 11A, the CPU 17 processes the data, and the data is output to the data input / output terminal 11B. is there.

【0012】シングルチップマイコン10´では、テス
ト制御装置21からのモ−ド設定信号に基づき、モ−ド
設定手段19´がI/O1モ−ドを選択する。I/O1
モ−ドは、入力デ−タをデ−タ入出力端子11A´を経
由してデータバス14´に導き、周辺回路13B´を経
由して、デ−タ入出力端子11B´にデ−タを出力する
というモ−ドである。
In the single chip microcomputer 10 ', the mode setting means 19' selects the I / O1 mode based on the mode setting signal from the test controller 21. I / O1
The mode guides the input data to the data bus 14 'via the data input / output terminal 11A', and to the data input / output terminal 11B 'via the peripheral circuit 13B'. Is the mode of outputting.

【0013】シングルチップマイコン10´´では、テ
スト制御装置21からのモ−ド設定信号に基づき、モ−
ド設定手段19´´がI/O2モ−ドを選択する。I/
O2モ−ドは、入力デ−タをデ−タ入出力端子11B´
´を経由してデータバス14´に導き、周辺回路13A
´´を経由して、デ−タ入出力端子11A´´にデ−タ
を出力するというモ−ドである。
In the single-chip microcomputer 10 '', the mode is set based on the mode setting signal from the test controller 21.
The mode setting means 19 ″ selects the I / O2 mode. I /
In the O2 mode, input data is input / output terminal 11B '.
It leads to the data bus 14 'via', and the peripheral circuit 13A
In this mode, the data is output to the data input / output terminal 11A ″ via ″.

【0014】I/O1モードとI/O2モードの機能
は、同じであるが、データを入力するための端子とデ−
タを出力するための端子が異なっている。I/O1モー
ドとI/O2モードでは、シングルチップマイコン内部
のCPUは機能させなくてもよいため、データバス14
´,14´´から切り離されている。
The functions of the I / O1 mode and the I / O2 mode are the same, but a terminal for inputting data and a data input are provided.
The terminals for outputting the data are different. In the I / O1 mode and the I / O2 mode, the CPU inside the single-chip microcomputer does not need to function, so the data bus 14
It is separated from ‘14’.

【0015】このように、3つのモ−ドを設定すること
によってエミュレータ動作を可能にし、シングルチップ
マイコンの全ての機能のテストを行っている。このエミ
ュレータの構成は、周辺回路を操作する命令実行時の
み、I/O1モード又はI/O2モードに設定されたチ
ップをアクセスし、データの入出力を行う。このため、
CPUモードに設定されたチップから、命令の入力・出
力切り換え信号や命令コードなどを出力し、I/O1モ
ード・I/O2モードに設定されたチップの内部回路の
制御を行う。
As described above, the emulator operation is enabled by setting the three modes, and all the functions of the single-chip microcomputer are tested. With this emulator configuration, a chip set in the I / O1 mode or I / O2 mode is accessed and data is input / output only when an instruction for operating a peripheral circuit is executed. For this reason,
A chip set in the CPU mode outputs an instruction input / output switching signal, a command code, and the like to control the internal circuit of the chip set in the I / O1 mode / I / O2 mode.

【0016】なお、図5において、シングルチップマイ
コン中の実線は、実際に使用する回路及び信号ラインを
示し、シングルチップマイコン中の破線は、使用しない
回路及び信号ラインを示している。
In FIG. 5, solid lines in the single-chip microcomputer indicate circuits and signal lines actually used, and broken lines in the single-chip microcomputer indicate circuits and signal lines not used.

【0017】[0017]

【発明が解決しようとする課題】従来の3つのモードを
組み合わせたテスト回路では、周辺回路の制御命令実行
時に、CPUモードに設定されたチップがI/O1モー
ド、I/O2モードに設定された2つのチップを制御し
なければならない。
In the conventional test circuit combining the three modes, the chip set to the CPU mode is set to the I / O1 mode and the I / O2 mode when the control instruction of the peripheral circuit is executed. Two chips have to be controlled.

【0018】従って、3つのチップ間で入力・出力切り
換え信号や命令コードなどの制御信号の受け渡し時間が
必要になり、これらは1つの命令サイクル内で処理しな
ければならない。
Therefore, it takes time to transfer control signals such as input / output switching signals and instruction codes between the three chips, and these must be processed within one instruction cycle.

【0019】例えば、図6に示すように、CPUの命令
実行期間(1)がCPU命令の実実行期間(2)とその
他の動作期間(3)に分かれている場合には、その他の
動作期間(3)を利用してチップ間の制御信号(4)を
送れば良いが、図7に示すように、CPU命令の実実行
期間(2)がCPUの命令実行期間(1)の全体を使っ
ていた場合には、通常のCPUの命令実行期間(1)よ
り短い実行期間(3)にしてチップ間の制御信号(4)
を入れなければならない。
For example, as shown in FIG. 6, when the instruction execution period (1) of the CPU is divided into the actual execution period (2) of the CPU instruction and the other operation period (3), the other operation period It is sufficient to send the control signal (4) between chips using (3), but as shown in FIG. 7, the actual execution period (2) of the CPU instruction uses the entire instruction execution period (1) of the CPU. If it is, the control signal (4) between chips is set to an execution period (3) shorter than the normal CPU instruction execution period (1).
Must be entered.

【0020】即ち、図7のような場合には、実際の動作
よりも高速で動作するようにマイコンを設計しなければ
ならない。また、高速処理を必要とするCPUの場合に
は、CPUモードのチップとI/O1モードのチップの
間、及びCPUモードのチップとI/O2モードのチッ
プの間におけるデータ及び制御信号の遅延が無視できな
くなる。
That is, in the case of FIG. 7, the microcomputer must be designed to operate at a higher speed than the actual operation. Further, in the case of a CPU that requires high-speed processing, there is a delay in data and control signals between the CPU mode chip and the I / O1 mode chip and between the CPU mode chip and the I / O2 mode chip. It cannot be ignored.

【0021】これにより、高速のCPUに対応したエミ
ュレータが構成できなくなる。さらに、信号の切り換え
制御部分が多く、テスト回路の増大及びチップコストの
増加を招く。
This makes it impossible to construct an emulator compatible with a high-speed CPU. Further, there are many signal switching control portions, which causes an increase in test circuits and a chip cost.

【0022】本発明は、上記欠点を解決すべくなされた
もので、その目的は、制御信号の簡素化を図り高速CP
Uに対応可能な低コストのシングルチップマイクロコン
ピュータを提供することである。
The present invention has been made to solve the above-mentioned drawbacks, and its purpose is to simplify a control signal and to provide a high-speed CP.
It is to provide a low-cost single-chip microcomputer compatible with U.

【0023】[0023]

【課題を解決するための手段】上記目的を達成するた
め、本発明のシングルチップマイクロコンピュ−タは、
デ−タバスと、前記デ−タバスとの間でデ−タの授受を
行うCPU並びに第1及び第2周辺回路と、第1入出力
端子と前記第1周辺回路の間におけるデ−タの授受及び
前記第1入出力端子と前記デ−タバスの間におけるデ−
タの授受を切り換えるための第1切り換え回路と、第2
入出力端子と前記第2周辺回路の間におけるデ−タの授
受及び前記第2入出力端子と前記デ−タバスの間におけ
るデ−タの授受を切り換えるための第2切り換え回路
と、前記第1及び第2切り換え回路の動作を制御するモ
−ド設定手段とを備えている。
In order to achieve the above object, the single-chip micro computer of the present invention comprises:
A CPU for exchanging data between the data bus and the data bus, first and second peripheral circuits, and exchanging data between the first input / output terminal and the first peripheral circuit. And a data between the first input / output terminal and the data bus.
A first switching circuit for switching transmission / reception of data;
A second switching circuit for switching data transmission / reception between the input / output terminal and the second peripheral circuit and data transmission / reception between the second input / output terminal and the data bus; and the first switching circuit. And mode setting means for controlling the operation of the second switching circuit.

【0024】本発明のテスト装置は、シングルチップマ
イクロコンピュ−タの第1入出力端子とデ−タバスの間
でデ−タの授受が可能な状態に設定し、前記シングルチ
ップマイクロコンピュ−タの第2入出力端子と第1周辺
回路の間でデ−タの授受が可能な状態に設定する手段
と、前記シングルチップマイクロコンピュ−タの第1又
は第2入出力端子にデ−タを与える手段と、前記シング
ルチップマイクロコンピュ−タのCPUで処理され、前
記シングルチップマイクロコンピュ−タの第1又は第2
入出力端子から出力されるデ−タを検査する手段とを備
えている。
The test apparatus of the present invention is set in a state where data can be transferred between the first input / output terminal of the single-chip microcomputer and the data bus, and the single-chip microcomputer is set to a state in which data can be transferred. Means for setting a state in which data can be transferred between the second input / output terminal and the first peripheral circuit, and data is supplied to the first or second input / output terminal of the single chip microcomputer. Means and a CPU of the single-chip micro-computer, the first or second of the single-chip micro-computer.
And means for inspecting the data output from the input / output terminal.

【0025】本発明のテスト方法は、シングルチップマ
イクロコンピュ−タの第1入出力端子とデ−タバスの間
でデ−タの授受が可能な状態に設定し、かつ、前記シン
グルチップマイクロコンピュ−タの第2入出力端子と第
1周辺回路の間でデ−タの授受が可能な状態に設定し、
前記シングルチップマイクロコンピュ−タの第1又は第
2入出力端子にデ−タを与え、前記シングルチップマイ
クロコンピュ−タのCPUで処理され、前記シングルチ
ップマイクロコンピュ−タの第1又は第2入出力端子か
ら出力されるデ−タを検査する、という一連の工程を備
えている。
According to the test method of the present invention, the data can be transferred between the first input / output terminal of the single-chip microcomputer and the data bus, and the single-chip microcomputer is set. Set the state in which data can be transferred between the second input / output terminal of the data and the first peripheral circuit,
Data is applied to the first or second input / output terminal of the single-chip micro computer, processed by the CPU of the single-chip micro computer, and the first or second input of the single-chip micro computer is performed. It is equipped with a series of steps of inspecting the data output from the output terminal.

【0026】[0026]

【発明の実施の形態】以下、図面を参照しながら、本発
明のシングルチップマイクロコンピュ−タについて詳細
に説明する。図1は、本発明の実施の形態に関わるマイ
コンの主要部の構成を示すものである。
BEST MODE FOR CARRYING OUT THE INVENTION A single-chip microcomputer of the present invention will be described in detail below with reference to the drawings. FIG. 1 shows a configuration of a main part of a microcomputer according to an embodiment of the present invention.

【0027】シングルチップマイコン40のデ−タ入出
力端子23A,23Bは、それぞれ切り換え回路24
A,24Bに接続されている。切り換え回路24Aは、
周辺回路25Aを介して又は切り換え回路27を介して
デ−タバス26に接続されている。切り換え回路24B
は、周辺回路25Bを介して又は切り換え回路27を介
してデ−タバス26に接続されている。
The data input / output terminals 23A and 23B of the single chip microcomputer 40 are connected to the switching circuit 24, respectively.
It is connected to A and 24B. The switching circuit 24A is
It is connected to the data bus 26 via the peripheral circuit 25A or via the switching circuit 27. Switching circuit 24B
Are connected to the data bus 26 via the peripheral circuit 25B or via the switching circuit 27.

【0028】切り換え回路27は、内部メモリ28に接
続されると共にデ−タバス26に接続されている。モ−
ド設定端子31は、シングルチップマイコン40のテス
ト時のモ−ドを設定するためのモ−ド設定手段30に接
続されている。命令クロックは、クロック入力端子32
に印加される。
The switching circuit 27 is connected to the internal memory 28 and also to the data bus 26. Mode
The mode setting terminal 31 is connected to the mode setting means 30 for setting the mode at the time of testing the single chip microcomputer 40. The instruction clock is the clock input terminal 32.
Is applied to

【0029】切り換え回路24Aは、周辺回路25Aの
入出力とデ−タバス26の入出力とを切り換える。切り
換え回路24Bは、周辺回路25Bの入出力とデ−タバ
ス26の入出力とを切り換える。また、切り換え回路2
7は、デ−タ入出力端子の入出力と内部メモリの入出力
とを切り換える。
The switching circuit 24A switches between the input / output of the peripheral circuit 25A and the input / output of the data bus 26. The switching circuit 24B switches between input / output of the peripheral circuit 25B and input / output of the data bus 26. In addition, the switching circuit 2
Reference numeral 7 switches between input / output of a data input / output terminal and input / output of an internal memory.

【0030】図2は、本発明のシングルチップマイコン
テスト時の様子を示すものである。本発明のテスト方法
では、2つのシングルチップマイコンを使用し、各シン
グルチップマイコンのモ−ドを設定することによりエミ
ュレータを構成している。
FIG. 2 shows a state during a single chip microcomputer test of the present invention. In the test method of the present invention, two single chip microcomputers are used and the emulator is configured by setting the mode of each single chip microcomputer.

【0031】即ち、シングルチップマイコン40では、
テスト制御装置41からのモ−ド設定信号に基づき、モ
−ド設定手段30がCPU1モ−ドを選択する。CPU
1モ−ドは、テスト制御装置41のメモリ部(外部メモ
リ)42のデ−タをデ−タ入出力端子23Bを経由して
データバス26に導き、CPU29においてそのデータ
を処理し、周辺回路25Aを経由してデ−タ入出力端子
23Aにデ−タを出力するというモ−ドである。
That is, in the single chip microcomputer 40,
Based on the mode setting signal from the test controller 41, the mode setting means 30 selects the CPU1 mode. CPU
In one mode, the data of the memory section (external memory) 42 of the test control device 41 is led to the data bus 26 via the data input / output terminal 23B, and the CPU 29 processes the data, and the peripheral circuit. In this mode, the data is output to the data input / output terminal 23A via 25A.

【0032】シングルチップマイコン40´では、テス
ト制御装置41からのモ−ド設定信号に基づき、モ−ド
設定手段30´がCPU2モ−ドを選択する。CPU2
モ−ドは、テスト制御装置41のメモリ部(外部メモ
リ)42のデ−タをデ−タ入出力端子23A´を経由し
てデータバス26´に導き、CPU29´においてその
データを処理し、周辺回路25B´を経由してデ−タ入
出力端子23B´にデ−タを出力するというモ−ドであ
る。
In the single chip microcomputer 40 ', the mode setting means 30' selects the CPU2 mode based on the mode setting signal from the test controller 41. CPU2
The mode guides the data of the memory section (external memory) 42 of the test control device 41 to the data bus 26 'via the data input / output terminal 23A', and the CPU 29 'processes the data. In this mode, the data is output to the data input / output terminal 23B 'via the peripheral circuit 25B'.

【0033】CPU1モードとCPU2モードの機能
は、同じであるが、データを入力するための端子とデ−
タを出力するための端子が異なっている。このように、
2つのモ−ドを設定することによってエミュレータ動作
を可能にし、シングルチップマイコンの全ての機能のテ
ストを行っている。
The functions of the CPU1 mode and the CPU2 mode are the same, but a terminal for inputting data and a data
The terminals for outputting the data are different. in this way,
The emulator operation is enabled by setting two modes, and all functions of the single chip microcomputer are tested.

【0034】なお、図2において、シングルチップマイ
コン中の実線は、実際に使用する回路及び信号ラインを
示し、シングルチップマイコン中の破線は、使用しない
回路及び信号ラインを示している。
In FIG. 2, solid lines in the single-chip microcomputer indicate circuits and signal lines actually used, and broken lines in the single-chip microcomputer indicate circuits and signal lines not used.

【0035】上記構成のシングルチップマイクロコンピ
ュ−タ用テスト回路によれば、外部メモリをアクセスす
るための端子が2種類あり、これにより2つのチップに
それぞれ別の端子から同時に外部メモリデータを入出力
し、2つのCPUを同一動作させることでエミュレータ
を構成している。
According to the test circuit for a single-chip microcomputer having the above-mentioned configuration, there are two types of terminals for accessing the external memory, which allows the two chips to simultaneously input / output external memory data from different terminals. The emulator is configured by operating the two CPUs in the same way.

【0036】即ち、図3に示すように、2つのチップ間
の制御信号をなくすことができるため、CPU命令の実
実行期間(2)をCPUの命令実行期間(1)の全体を
使うことができる。即ち、テスト時に、CPUを通常時
と同じスピードで動作させることができるため、高速C
PUにも対応可能なエミュレータが実現できる。
That is, as shown in FIG. 3, since the control signal between the two chips can be eliminated, it is possible to use the entire CPU instruction execution period (1) as the CPU instruction actual execution period (2). it can. That is, at the time of test, the CPU can be operated at the same speed as in normal time, so that high-speed C
It is possible to realize an emulator that is compatible with PU.

【0037】[0037]

【発明の効果】以上、説明したように、本発明のシング
ルチップマイクロコンピュ−タによれば、次のような効
果を奏する。2つのチップを用い、各チップのモ−ドを
設定することにより、それぞれのチップのCPUを同時
に動作させて周辺回路の制御を行っている。このため、
2つのチップ間の制御信号を設ける必要がなく、2つの
チップで構成したエミュレータでのCPUの動作スピー
ドを通常動作時と同じにでき、高速CPUに対応したエ
ミュレータを構成する事ができる。
As described above, the single-chip microcomputer of the present invention has the following effects. By using the two chips and setting the mode of each chip, the CPUs of the respective chips are simultaneously operated to control the peripheral circuits. For this reason,
It is not necessary to provide a control signal between the two chips, and the operation speed of the CPU in the emulator composed of the two chips can be made the same as in the normal operation, and the emulator corresponding to the high speed CPU can be configured.

【0038】また、種々の制御信号が不要となったこと
で、切り換え回路が減少し、チップコストも低くするこ
とができ、さらに2チップにて構成できるためにエミュ
レータボードの縮小も図れ、大幅なコストダウンが可能
になる。
Further, since various control signals are not necessary, the switching circuit can be reduced, the chip cost can be reduced, and since the configuration can be made with two chips, the emulator board can be downsized, which is significant. Cost reduction is possible.

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

【図1】本発明の実施の形態に関わるシングルチップマ
イクロコンピュ−タ用を示す図。
FIG. 1 is a diagram showing a single-chip micro computer for an embodiment of the present invention.

【図2】図1のマイコンのテスト時の様子を示す図。FIG. 2 is a diagram showing how the microcomputer of FIG. 1 is tested.

【図3】本発明のCPUの命令の実行期間と命令の実実
行期間との関係を示す図。
FIG. 3 is a diagram showing a relationship between an instruction execution period and an instruction actual execution period of the CPU of the present invention.

【図4】従来のシングルチップマイクロコンピュ−タを
示す図。
FIG. 4 is a diagram showing a conventional single-chip micro computer.

【図5】図4のマイコンのテスト時の様子を示す図。FIG. 5 is a diagram showing a state at the time of testing the microcomputer of FIG.

【図6】従来のCPUの命令の実行期間と命令の実実行
期間との関係を示す図。
FIG. 6 is a diagram showing the relationship between the instruction execution period and the instruction actual execution period of a conventional CPU.

【図7】従来のCPUの命令の実行期間と命令の実実行
期間との関係を示す図。
FIG. 7 is a diagram showing a relationship between an instruction execution period and an instruction actual execution period of a conventional CPU.

【符号の説明】[Explanation of symbols]

10,40 :シングルチップマ
イコン、 11A,11B、23A,23B :デ−タ入出力端
子、 12A,12B,15,24A,24B,27 :切り
換え回路、 13A,13B,25A,25B :周辺回路、 14,26 :デ−タバス、 16,28 :メモリ、 17,29 :CPU、 18A,18B,31 :モ−ド設定端子、 19,30 :モ−ド設定手段、 20,32 :命令クロック端
子、 21,41 :テスト制御装置、 22,42 :メモリ部。
10, 40: Single chip microcomputer, 11A, 11B, 23A, 23B: Data input / output terminal, 12A, 12B, 15, 24A, 24B, 27: Switching circuit, 13A, 13B, 25A, 25B: Peripheral circuit, 14 , 26: data bus, 16, 28: memory, 17, 29: CPU, 18A, 18B, 31: mode setting terminal, 19, 30: mode setting means, 20, 32: instruction clock terminal, 21 , 41: test control device, 22, 42: memory unit.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 デ−タバスと、前記デ−タバスとの間で
デ−タの授受を行うCPU並びに第1及び第2周辺回路
と、第1入出力端子と前記第1周辺回路の間におけるデ
−タの授受及び前記第1入出力端子と前記デ−タバスの
間におけるデ−タの授受を切り換えるための第1切り換
え回路と、第2入出力端子と前記第2周辺回路の間にお
けるデ−タの授受及び前記第2入出力端子と前記デ−タ
バスの間におけるデ−タの授受を切り換えるための第2
切り換え回路と、前記第1及び第2切り換え回路の動作
を制御するモ−ド設定手段とを具備することを特徴とす
るシングルチップマイクロコンピュ−タ。
1. A data bus, a CPU for exchanging data between the data bus and the first and second peripheral circuits, and a first input / output terminal and the first peripheral circuit. A first switching circuit for switching data transmission / reception and data transmission / reception between the first input / output terminal and the data bus, and data between the second input / output terminal and the second peripheral circuit. A second for switching between data transfer and data transfer between the second input / output terminal and the data bus
A single-chip microcomputer having a switching circuit and mode setting means for controlling the operations of the first and second switching circuits.
【請求項2】 シングルチップマイクロコンピュ−タの
第1入出力端子とデ−タバスの間でデ−タの授受が可能
な状態に設定し、かつ、前記シングルチップマイクロコ
ンピュ−タの第2入出力端子と第1周辺回路の間でデ−
タの授受が可能な状態に設定する手段と、 前記シングルチップマイクロコンピュ−タの第1又は第
2入出力端子にデ−タを与える手段と、 前記シングルチップマイクロコンピュ−タのCPUで処
理され、前記シングルチップマイクロコンピュ−タの第
1又は第2入出力端子から出力されるデ−タを検査する
手段とを具備することを特徴とするテスト装置。
2. A single chip micro computer is set to a state in which data can be transferred between a first input / output terminal and a data bus, and the second input of the single chip micro computer is set. Between the output terminal and the first peripheral circuit
Means for setting a state in which data can be transferred and received, means for supplying data to the first or second input / output terminal of the single-chip micro computer, and processing by the CPU of the single-chip micro computer. And a means for inspecting the data output from the first or second input / output terminal of the single-chip micro computer.
【請求項3】 シングルチップマイクロコンピュ−タの
第1入出力端子とデ−タバスの間でデ−タの授受が可能
な状態に設定し、かつ、前記シングルチップマイクロコ
ンピュ−タの第2入出力端子と第1周辺回路の間でデ−
タの授受が可能な状態に設定し、 前記シングルチップマイクロコンピュ−タの第1又は第
2入出力端子にデ−タを与え、 前記シングルチップマイクロコンピュ−タのCPUで処
理され、前記シングルチップマイクロコンピュ−タの第
1又は第2入出力端子から出力されるデ−タを検査する
ことを特徴とするテスト方法。
3. A single chip micro computer is set to a state in which data can be transferred between the first input / output terminal and a data bus, and the second input of the single chip micro computer is set. Between the output terminal and the first peripheral circuit
Data transfer to and from the single chip micro computer, data is applied to the first or second input / output terminal of the single chip micro computer, and the data is processed by the CPU of the single chip micro computer. A test method comprising inspecting data output from a first or second input / output terminal of a microcomputer.
JP7330423A 1995-12-19 1995-12-19 Single chip microcomputer and test device/method Pending JPH09167150A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7330423A JPH09167150A (en) 1995-12-19 1995-12-19 Single chip microcomputer and test device/method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7330423A JPH09167150A (en) 1995-12-19 1995-12-19 Single chip microcomputer and test device/method

Publications (1)

Publication Number Publication Date
JPH09167150A true JPH09167150A (en) 1997-06-24

Family

ID=18232450

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7330423A Pending JPH09167150A (en) 1995-12-19 1995-12-19 Single chip microcomputer and test device/method

Country Status (1)

Country Link
JP (1) JPH09167150A (en)

Similar Documents

Publication Publication Date Title
US5654972A (en) Processor having test circuit
US6263305B1 (en) Software development supporting system and ROM emulation apparatus
JP2594130B2 (en) Semiconductor circuit
JP3131675B2 (en) Development and evaluation method of one-chip microcomputer and its program
JPH09167150A (en) Single chip microcomputer and test device/method
US5121393A (en) System for testing a microprocessor
JPH02128201A (en) Programmable controller
US7058842B2 (en) Microcontroller with multiple function blocks and clock signal control
JP3129397B2 (en) Emulation device for microcomputer
JP3265284B2 (en) emulator
JP3071044B2 (en) Test method for semiconductor integrated circuit with microcomputer
JPH01109459A (en) Logical integrated circuit
JPH0635750A (en) Semiconductor integrated circuit device
JP3074978B2 (en) Emulation device
JP2558902B2 (en) Semiconductor integrated circuit device
JPH06161809A (en) Semiconductor integrated circuit device
JP3193394B2 (en) Semiconductor integrated circuit and test method therefor
JP2704935B2 (en) Processor with test function
JPS648381B2 (en)
JPH052494A (en) Interruption control system
JPH02103482A (en) Integrated circuit device
JPH06223046A (en) Bus tracing execution method
JPH03134783A (en) Single chip microcomputer
JPH0659911A (en) External device control system
JPH02196347A (en) Run time monitor device