JP3062513B2 - Microprocessor - Google Patents

Microprocessor

Info

Publication number
JP3062513B2
JP3062513B2 JP4005035A JP503592A JP3062513B2 JP 3062513 B2 JP3062513 B2 JP 3062513B2 JP 4005035 A JP4005035 A JP 4005035A JP 503592 A JP503592 A JP 503592A JP 3062513 B2 JP3062513 B2 JP 3062513B2
Authority
JP
Japan
Prior art keywords
wait
peripheral device
mpu
time information
instruction
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.)
Expired - Fee Related
Application number
JP4005035A
Other languages
Japanese (ja)
Other versions
JPH05189344A (en
Inventor
和治 伊達
祐希 鍛治川
文雄 室岡
幸弘 吉田
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP4005035A priority Critical patent/JP3062513B2/en
Publication of JPH05189344A publication Critical patent/JPH05189344A/en
Application granted granted Critical
Publication of JP3062513B2 publication Critical patent/JP3062513B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、ウェイト機能を有する
コンピュータシステムに使用されるマイクロプロセッサ
(MPU)に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microprocessor (MPU) used in a computer system having a weight function.

【0002】[0002]

【従来の技術】図2にウェイト機能を有する従来のコン
ピュータのブロック図を示す。同図において、1はMP
U、2はメモリ、3は信号線6及びデータ線7を介して
MPU1に接続される周辺装置、4はMPU1のウェイ
ト状態を制御するためのウェイト制御回路である。
2. Description of the Related Art FIG. 2 is a block diagram of a conventional computer having a wait function. In the figure, 1 is MP
U and 2 are memories, 3 is a peripheral device connected to the MPU 1 via the signal line 6 and the data line 7, and 4 is a wait control circuit for controlling the wait state of the MPU 1.

【0003】メモリ2からMPU1に与えられた命令に
よって、MPU1が周辺装置3からデータを読み出す
際、周辺装置3の応答速度がMPU1の動作速度に比較
して遅い場合には、MPU1をウェイト状態に設定する
必要がある。ウェイト制御回路4はこのために、信号線
6を介してMPU1から周辺装置3にアクセス制御信号
として 読み出し信号が出力されるとMPU1に対しウ
ェイト要求信号を一定期間出力し、MPU1をウェイト
状態に設定する。
When the MPU 1 reads data from the peripheral device 3 according to an instruction given from the memory 2 to the MPU 1, if the response speed of the peripheral device 3 is slower than the operation speed of the MPU 1, the MPU 1 is put into a wait state. Must be set. To this end, the wait control circuit 4 outputs a wait request signal to the MPU 1 for a certain period of time when a read signal is output from the MPU 1 to the peripheral device 3 via the signal line 6 to the peripheral device 3 to set the MPU 1 to the wait state. I do.

【0004】[0004]

【発明が解決しようとする課題】一般に、コンピュータ
には多数の周辺装置が接続されるので、各周辺装置の応
答速度に応じてMPUのウェイト時間を制御する必要が
あり、従ってウェイト制御回路の構成は非常に複雑なも
のとなる。
Generally, since a large number of peripheral devices are connected to a computer, it is necessary to control the wait time of the MPU in accordance with the response speed of each peripheral device. Is very complicated.

【0005】MPUのウェイト時間を、最も応答速度の
遅い周辺装置に適合するようにすればウェイト制御回路
の構成を簡単にすることができるが、この場合には、応
答速度の速い周辺装置に対して、MPUが不必要に長い
期間ウェイト状態に設定されることになるので、システ
ム全体の動作速度が低下してしまうという問題がある。
If the wait time of the MPU is adapted to the peripheral device having the slowest response speed, the configuration of the wait control circuit can be simplified. As a result, the MPU is set in the wait state for an unnecessarily long period of time, so that the operation speed of the entire system is reduced.

【0006】本発明は、上記問題に鑑みなされたもので
あり、周辺装置の応答速度に応じてウェイト時間を制御
する機能を備えており、ウェイト制御回路を設けること
を必要としないマイクロプロセッサを提供することにあ
る。
The present invention has been made in view of the above problems, and provides a microprocessor which has a function of controlling a wait time according to the response speed of a peripheral device and does not require the provision of a wait control circuit. Is to do.

【0007】[0007]

【課題を解決するための手段】本発明のマイクロプロセ
ッサは、上記目的を達成するために、周辺装置へのアク
セスを指示する命令を与えられたときに、該周辺装置に
アクセス信号を送る手段と、前記命令に付加されてい
るウェイトサイクル数を示すウェイト時間情報に応じた
期間、内部をウェイト状態に設定する手段とを備えたこ
とを特徴とする。
In order to achieve the above object, a microprocessor according to the present invention comprises: means for transmitting an access signal to a peripheral device when given an instruction to access the peripheral device; , wherein the period corresponding to the wait time information indicating the number of wait cycles is added to the instruction, and means for setting the internal wait state.

【0008】[0008]

【作用】メモリから送られてくる命令が周辺装置に対す
るアクセスを指示するものである場合、該命令には周
辺装置の応答速度に応じたウェイトサイクル数を示すウ
ェイト時間情報が付加されている。マイクロプロセッサ
は、この命令を受け取ると該周辺装置にアクセス信号を
送る。これと同時に、マイクロプロセッサに内蔵されて
いるウェイト時間情報処理回路は、ウェイト時間情報を
解読し、マイクロプロセッサを指定されたサイクル数の
間ウェイト状態に設定し、周辺装置からの応答を待ち受
けるようにする。
[Action] When the instruction sent from the memory is for instructing access to the peripheral device, the wait time information indicating the number of wait cycles in accordance with the response speed of the peripheral device while the instruction is being added. When the microprocessor receives this instruction, it sends an access signal to the peripheral device. At the same time, the wait time information processing circuit built in the microprocessor decodes the wait time information, sets the microprocessor to the wait state for the specified number of cycles, and waits for a response from the peripheral device. I do.

【0009】[0009]

【実施例】以下に、本発明の実施例を図面を参照して詳
細に説明する。図1は本発明のマイクロプロセッサを有
するコンピュータシステムの一実施例のブロック図であ
る。同図において、MPU10にはメモリ11がデータ
線14を介して接続されている。また、MPU10に
は、信号線15及びデータ線14を介して複数(ここで
は3つ)の周辺装置12a,12b,12cが接続され
ている。MPU10にはウェイト時間情報処理回路13
が内蔵されている。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a block diagram of one embodiment of a computer system having a microprocessor according to the present invention. In FIG. 1, a memory 11 is connected to an MPU 10 via a data line 14. Further, a plurality (three in this case) of peripheral devices 12a, 12b, and 12c are connected to the MPU 10 via a signal line 15 and a data line 14. The MPU 10 has a wait time information processing circuit 13
Is built-in.

【0010】次に上記コンピュータシステムの動作を説
明する。ここでは、周辺装置12a及び12bの応答速
度は比較的遅く、周辺装置12aに必要なウェイトサイ
クル数が3であり周辺装置12bに必要なウェイトサイ
クル数が2であるとする。また、周辺装置12cの応答
速度は比較的速く、周辺装置12cに必要なウェイトサ
イクル数が1であるとする。
Next, the operation of the computer system will be described. Here, it is assumed that the response speed of the peripheral devices 12a and 12b is relatively slow, the number of wait cycles required for the peripheral device 12a is 3, and the number of wait cycles required for the peripheral device 12b is 2. The response speed of the peripheral device 12c is relatively fast, and the number of wait cycles required for the peripheral device 12c is one.

【0011】メモリ11に格納されている命令のうち、
周辺装置をアクセスする命令、例えば“IN”、“OU
T”、“LOAD”等の命令には、ウェイト時間情報が
付加されている。従って、例えば、メモリ11からMP
U10に周辺装置12aをアクセスする命令が送られる
場合、これと同時に、ウェイト時間情報として“3”が
MPU10に送られる。このとき、MPU10は、信号
線15を介して周辺装置12aにアクセス信号を送る。
一方、MPU10に内蔵されているウェイト時間情報処
理回路は、このウェイト時間情報“3”に従って、MP
U10を3ウェイトサイクルの期間ウェイト状態に設定
する。
[0011] Of the instructions stored in the memory 11,
Instructions for accessing peripheral devices, for example, "IN", "OU"
The instructions such as “T” and “LOAD” have wait time information added thereto.
When a command to access the peripheral device 12a is sent to the U10, at the same time, "3" is sent to the MPU 10 as wait time information. At this time, the MPU 10 sends an access signal to the peripheral device 12a via the signal line 15.
On the other hand, the wait time information processing circuit incorporated in the MPU 10 determines the MP time according to the wait time information “3”.
U10 is set in a wait state for a period of three wait cycles.

【0012】同様に、メモリ11からMPU10に周辺
装置12cをアクセスする命令が送られる場合、これと
同時に、ウェイト時間情報として“1”がMPU10に
送られる。このとき、MPU10は、信号線15を介し
て周辺装置12cにアクセス信号を送る。一方、MPU
10に内蔵されているウェイト時間情報処理回路は、こ
のウェイト時間情報“1”に従い、MPU10を1ウェ
イトサイクルの期間ウェイト状態に設定する。このよう
に、MPU10のウェイト時間は、周辺装置12a,1
2b,12cの応答速度に応じて命令毎に最適に制御さ
れる。
Similarly, when an instruction to access the peripheral device 12c is sent from the memory 11 to the MPU 10, "1" is sent to the MPU 10 as wait time information at the same time. At this time, the MPU 10 sends an access signal to the peripheral device 12c via the signal line 15. On the other hand, MPU
The wait time information processing circuit built in 10 sets the MPU 10 to the wait state for one wait cycle according to the wait time information “1”. As described above, the wait time of the MPU 10 depends on the peripheral devices 12a, 1
Optimum control is performed for each command according to the response speed of 2b and 12c.

【0013】周辺装置へのアクセスを指示する命令にウ
ェイト時間情報を付加してメモリ11に格納する方法と
しては、例えば1バイトを10ビット構成とし、従来通
り8ビットで命令を表し、残りの2ビットでウェイト時
間情報を表すようにすることができる。また、8ビット
中、6ビットが命令を表し残り2ビットがウェイト時間
情報を表すような新たな命令を定義するようにしても良
い。
As a method of adding wait time information to an instruction for instructing access to a peripheral device and storing the instruction in the memory 11, for example, one byte is composed of 10 bits, the instruction is represented by 8 bits as in the conventional case, and the remaining 2 bytes are used. The wait time information can be represented by bits. Alternatively, a new instruction may be defined in which 6 bits out of 8 bits represent an instruction and the remaining 2 bits represent wait time information.

【0014】[0014]

【発明の効果】以上説明したように、本発明のマイクロ
プロセッサは、周辺装置へのアクセスを指示する命令を
与えられたときに、該周辺装置にアクセス信号を送る手
段と、該命令に付加されているウェイトサイクル数を
示すウェイト時間情報に応じた期間、内部をウェイト状
態に設定する手段とを備えている。従って、本発明のマ
イクロプロセッサを有するコンピュータシステムにおい
ては、マイクロプロセッサにウェイト入力端子が不要で
あり、応答速度の異なる多数の周辺装置が接続されて
も、複雑なウェイト制御回路を設けることなく、各周辺
装置の応答速度に応じたサイクル数の期間、マイクロプ
ロセッサをウェイト状態に設定し、システムを高速で動
作させることができる。
As described above, according to the present invention, the microprocessor of the present invention, when given an instruction for access to the peripheral device, means for sending an access signal to the peripheral device, added during the instruction Means for setting the inside to a wait state for a period according to the wait time information indicating the number of wait cycles. Therefore, in the computer system having the microprocessor of the present invention, the microprocessor does not need a weight input terminal, and even if a large number of peripheral devices having different response speeds are connected, without having to provide a complicated weight control circuit, The microprocessor can be set in the wait state for the number of cycles corresponding to the response speed of the peripheral device, and the system can operate at high speed.

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

【図1】本発明のマイクロプロセッサを有するコンピュ
ータシステムのブロック図である。
FIG. 1 is a block diagram of a computer system having a microprocessor of the present invention.

【図2】従来のマイクロプロセッサを有するウェイト制
御回路を備えた従来のコンピュータシステムのブロック
図である。
FIG. 2 is a block diagram of a conventional computer system including a weight control circuit having a conventional microprocessor.

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

1、10 MPU 2、11 メモリ 3、12a〜12c 周辺装置 4 ウェイト制御回路 13 ウェイト時間情報処理回路 1, 10 MPU 2, 11 Memory 3, 12a to 12c Peripheral device 4 Weight control circuit 13 Wait time information processing circuit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 室岡 文雄 大阪府大阪市阿倍野区長池町22番22号 シャープ株式会社内 (72)発明者 吉田 幸弘 大阪府大阪市阿倍野区長池町22番22号 シャープ株式会社内 (56)参考文献 特開 平2−162451(JP,A) 特開 昭59−91544(JP,A) ──────────────────────────────────────────────────続 き Continued on the front page (72) Fumio Murooka 22-22 Nagaikecho, Abeno-ku, Osaka-shi, Osaka Inside Sharp Corporation (72) Inventor Yukihiro Yoshida 22-22 Nagaikecho, Abeno-ku, Osaka-shi, Osaka Sharp Corporation (56) References JP-A-2-162451 (JP, A) JP-A-59-91544 (JP, A)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 周辺装置へのアクセスを指示する命令を
与えられたときに、該周辺装置にアクセス信号を送る手
段と、前記命令に付加されているウェイトサイクル数
を示すウェイト時間情報に応じた期間、内部をウェイト
状態に設定する手段とを備えたことを特徴とするマイク
ロプロセッサ。
When 1. A given an instruction for access to the peripheral device, according to the wait time information indicating means for sending an access signal to the peripheral device, the number of wait cycles is added in the instruction Means for setting the inside to a wait state for a period of time.
JP4005035A 1992-01-14 1992-01-14 Microprocessor Expired - Fee Related JP3062513B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4005035A JP3062513B2 (en) 1992-01-14 1992-01-14 Microprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4005035A JP3062513B2 (en) 1992-01-14 1992-01-14 Microprocessor

Publications (2)

Publication Number Publication Date
JPH05189344A JPH05189344A (en) 1993-07-30
JP3062513B2 true JP3062513B2 (en) 2000-07-10

Family

ID=11600208

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4005035A Expired - Fee Related JP3062513B2 (en) 1992-01-14 1992-01-14 Microprocessor

Country Status (1)

Country Link
JP (1) JP3062513B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR200480186Y1 (en) * 2016-03-04 2016-04-21 박용성 Memorial Ring Having Function Of Keeping

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5991544A (en) * 1982-11-18 1984-05-26 Nec Corp Inserting circuit of waiting cycle
JPH02162451A (en) * 1988-12-15 1990-06-22 Mitsubishi Electric Corp Microprocessor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR200480186Y1 (en) * 2016-03-04 2016-04-21 박용성 Memorial Ring Having Function Of Keeping

Also Published As

Publication number Publication date
JPH05189344A (en) 1993-07-30

Similar Documents

Publication Publication Date Title
JP3062513B2 (en) Microprocessor
JP2936036B2 (en) Memory access device
JP2710151B2 (en) How the automation device works
JPH02500692A (en) Integration of computational elements in multiprocessor computers
JPH05173933A (en) Direct memory access transfer system
JPS5936773B2 (en) Local burst transfer control method
JPH0115900B2 (en)
JP2837698B2 (en) Direct memory access controller
JP2969817B2 (en) Information processing system
JPS61183764A (en) Direct memory access controlling system
JP2912090B2 (en) Time slot interchange circuit
JPH0520253A (en) Data processor
JPH04360251A (en) Computer system
JPS6135576B2 (en)
JPS60142450A (en) Storage system
JP2003186666A (en) Microcomputer and dma control circuit
JPH01199257A (en) Data transfer controller
JPH103463A (en) Inter-processor communication method
JPS59123914A (en) Channel device and its control
JPH0573461A (en) Input/output processor
JPS603048A (en) Data transfer controller
JPH0154729B2 (en)
JPH08161253A (en) Dma control method and dma controller
JPH03286237A (en) Control system for storage device
JPH01320561A (en) Dma circuit

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080428

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090428

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees