JPH0418657A - Microcomputer I/O bus - Google Patents
Microcomputer I/O busInfo
- Publication number
- JPH0418657A JPH0418657A JP2122587A JP12258790A JPH0418657A JP H0418657 A JPH0418657 A JP H0418657A JP 2122587 A JP2122587 A JP 2122587A JP 12258790 A JP12258790 A JP 12258790A JP H0418657 A JPH0418657 A JP H0418657A
- Authority
- JP
- Japan
- Prior art keywords
- wait
- bus
- chip
- data
- address
- 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
Links
- 230000002093 peripheral effect Effects 0.000 claims description 11
- 238000004519 manufacturing process Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 4
- 238000000034 method Methods 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000004260 weight control Methods 0.000 description 1
Landscapes
- Executing Machine-Instructions (AREA)
- Microcomputers (AREA)
- Information Transfer Systems (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は、マイクロコンピュータシステムで様々なタイ
ミングを持つ周辺チップを接続するマイクロコンピュー
タI/Oバスに関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microcomputer I/O bus that connects peripheral chips having various timings in a microcomputer system.
[従来の技術]
従来のマイクロコンピュータにおいて例をとると、第2
図のように、マイクロプロセッサ11がI/Oアドレス
バスにアドレスを出力しデコーダ13がデコードし周辺
チップ群14とウェイト発生器12に対してセレクト信
号を出す。ウェイト発生器12はマイクロプロセッサ1
1に対してI/Oウェイト信号を発生させることにより
、周辺チップとマイクロプロセッサ間のI/Oデータバ
ス上でのデータの入出力を遅らせバスタイミングを制御
していた。[Prior art] Taking an example of a conventional microcomputer, the second
As shown in the figure, a microprocessor 11 outputs an address to an I/O address bus, a decoder 13 decodes it, and outputs a select signal to a peripheral chip group 14 and a wait generator 12. The weight generator 12 is the microprocessor 1
By generating an I/O wait signal for 1, data input/output on an I/O data bus between a peripheral chip and a microprocessor is delayed and bus timing is controlled.
[発明が解決しようとする課題]
しかし従来技術による方法では、チップごとにウェイト
コントロールが必要となり、周辺チップが増えるほどウ
ェイト発生の回路が大きくなり、設計コスト、製造コス
ト共に増大していた。[Problems to be Solved by the Invention] However, in the conventional method, weight control is required for each chip, and as the number of peripheral chips increases, the weight generation circuit becomes larger, increasing both design cost and manufacturing cost.
[課題を解決するための手段]
本発明のマイクロコンピュータI/Oバスは第1図に示
すように、マイクロプロセッサ1がI/Oアドレスバス
にアドレスを出力しデコーダ3がデコードし周辺チップ
群4に対してセレクト信号を出すのと同期して、マイク
ロコンピュータの命令によりプログラム制御できるマイ
クロプロセッサ内部のウェイト発生器2で■/○ウェイ
ト信号を発生させることにより、周辺チップとマイクロ
プロセッサ間のI/Oデータバス上でのデータの入出力
を遅らせる。[Means for Solving the Problems] As shown in FIG. 1, in the microcomputer I/O bus of the present invention, a microprocessor 1 outputs an address to an I/O address bus, a decoder 3 decodes it, and a peripheral chip group 4 I/O between the peripheral chip and the microprocessor is synchronized with the output of the select signal by the wait generator 2 inside the microprocessor, which can be program-controlled by instructions from the microcomputer, to generate ■/○ wait signals. Delay data input/output on the O data bus.
[実施例]
第3図は本発明の一実施例である。これは■/○バスの
アドレスFOOOhにつながるチップAとアドレスFO
O1hにつながるチップBから4ウエイトでデータを取
り込む場合である。マイクロプロセッサの命令として、
I/Oバスのウェイト数を設定するSET命令と、ある
アドレスからデータをレジスタに取り込むLOAD命令
を仮定する。第3図に従い動作を説明する。[Example] FIG. 3 shows an example of the present invention. This is chip A and address FO connected to address FOOOh of the ■/○ bus.
This is a case where data is fetched in 4 waits from chip B connected to O1h. As a microprocessor instruction,
Assume a SET instruction that sets the wait number of the I/O bus and a LOAD instruction that loads data from a certain address into a register. The operation will be explained according to FIG.
第3図(a)のマイクロコンピュータ3は命令エリア3
1上にある命令を命令キュー32にフェッチし命令デコ
ーダ33でデコードする。” SET 4wa i
t’命令の場合ウェイト数である4といウデータカへコ
ントロールロジック34のレジスタセット信号に制御さ
れカウントレジスタ35に取り込まれ保存される。次の
゛ LOAD(FOOOh) RO’命令でまずカウ
ントレジスタ35に保存されているウェイト数がコント
ロールロジック34のカウンタセットの制御で減算カウ
ンタ36に取り込まれる。さらにI/Oアドレスバスに
FOOOhのアドレスデータが流れアドレスストローブ
がONとなる。第3図(b)のデコーダ41によりアド
レスがデコードされチップ穴セレクト信号がONとなり
4ウエイト後にチップAより有効データがI/Oデータ
バス上にのる。減算カウンタ36はアドレスストローブ
により減算を始め、0になるまでウェイト信号をコント
ロールロジック34に出しつづける。4ウエイト後にウ
ェイト信号はOFFとなりレジスタファイル37めRO
にI/Oデータバス上の有効データが読み込まれる。さ
らに次の゛ LOAD (Foolh) R1’命
令でも同様にカウントレジスタ35に保存されているウ
ェイト数4でウェイトがかかりチップBの有効データ出
力と同期をとりR1レジスタに読み込まれる。この様に
内部でウェイト信号をソフトウェア的にコントロールし
外部のI/Oバス上のチップのタイミングにあわせる。The microcomputer 3 in FIG. 3(a) has an instruction area 3.
1 is fetched into the instruction queue 32 and decoded by the instruction decoder 33. ” SET 4wa i
In the case of the t' instruction, the wait number of 4 is controlled by the register set signal of the control logic 34, and is taken into the count register 35 and stored. In the next "LOAD (FOOOh) RO' command, the wait number stored in the count register 35 is first loaded into the subtraction counter 36 under the control of the counter set of the control logic 34. Furthermore, the address data FOOOh flows to the I/O address bus, and the address strobe is turned on. The address is decoded by the decoder 41 in FIG. 3(b), the chip hole select signal is turned ON, and after 4 waits, valid data from chip A is placed on the I/O data bus. The subtraction counter 36 starts subtraction by the address strobe and continues to output a wait signal to the control logic 34 until it reaches 0. After 4 waits, the wait signal turns OFF and the 37th register file RO
Valid data on the I/O data bus is read. Furthermore, in the next ``LOAD (Foolh) R1' instruction, a wait is applied with the wait number 4 stored in the count register 35, and the data is read into the R1 register in synchronization with the effective data output of chip B. In this way, the wait signal is controlled internally by software to match the timing of the chip on the external I/O bus.
第4図は本発明の他の実施例である。第3図と同様にI
/OバスのアドレスFOOOhにつながるチップAとア
ドレスFOO1hにつながるチップBから4ウエイトで
データを取り込む場合である。マイクロプロセッサの命
令として、I/Oバスのウェイト数を設定しながらある
アドレスからデータをレジスタに取り込むl0LOAD
命令を仮定する。第4図に従い動作を説明する。FIG. 4 shows another embodiment of the invention. Similarly to Figure 3, I
This is a case where data is fetched in 4 waits from chip A connected to address FOOOh of the /O bus and chip B connected to address FOO1h. l0LOAD is a microprocessor instruction that loads data from a certain address into a register while setting the wait number of the I/O bus.
Assume the command. The operation will be explained according to FIG.
マイクロコンピュータ50は命令エリア51上にある命
令を命令キュー52にフェッチし命令デコーダ53でデ
コードする。’ IOLOAD(FOOOh)4wa
i t RO’命令で、まずウェイト数がコントロ
ールロジック54のカウンタセットのタイミングで減算
カウンタ55に取り込まれる。さらにI/Oアドレスバ
スにFOOOhのアドレスデータが流れアドレスストロ
ーブがONとなる。減算カウンタはアドレスストローブ
により減算を始め、0になるまでウェイト信号をコント
ロールロジック54に出しつづける。4ウエイト後にウ
ェイト信号はOFFとなりレジスタファイル56のRO
にI/Oデータバス上の有効データが読み込まれる。次
の゛ IOLOAD(FOOOh)4wa i t
RO’命令でもまったく同様に動作する。The microcomputer 50 fetches instructions on an instruction area 51 into an instruction queue 52 and decodes them with an instruction decoder 53. 'IOLOAD(FOOOh)4wa
With the i t RO' command, the wait number is first taken into the subtraction counter 55 at the timing when the control logic 54 sets the counter. Furthermore, the address data FOOOh flows to the I/O address bus, and the address strobe is turned on. The subtraction counter starts subtraction by the address strobe and continues to output a wait signal to the control logic 54 until it reaches 0. After 4 waits, the wait signal turns OFF and the register file 56 RO
Valid data on the I/O data bus is read. Next゛ IOLOAD(FOOOh)4wa it
The RO' instruction operates in exactly the same way.
第3図の実施例では最初にウェイト数をカウンタレジス
タに初期化をすればあとはウェイト数が変化するまで設
定しなおす必要がないが第4図の実施例では命令毎に設
定をしている。あまりウェイト数が変化しないときは第
3図の方法がよいがウェイト数がよ(変化するときは第
4図の方法がよい。カウントレジスタと減算カウンタが
第1図のウェイト発生器に相当する。In the embodiment shown in FIG. 3, once the wait number is initialized in the counter register, there is no need to set it again until the wait number changes, but in the embodiment shown in FIG. 4, it is set for each instruction. . When the weight number does not change much, the method shown in FIG. 3 is better, but when the weight number changes significantly, the method shown in FIG. 4 is better. The count register and subtraction counter correspond to the weight generator shown in FIG. 1.
なお、ユーザーがI/Oバスのアドレスを考えながらウ
ェイト数を直接プログラムするのは効率が悪いので、コ
ンパイラ等がアクセスするI/Oアドレスをチエツクし
自動的にウェイト数データを作成プログラムに付は加え
るようにすると、ユーザーのプログラム面での負担もほ
とんど増加せずにすむ。Note that it is inefficient for the user to directly program the wait number while considering the I/O bus address, so it is not efficient for a compiler etc. to check the I/O address to be accessed and automatically create wait number data and attach it to the program. By adding this, the burden on the user's program will hardly increase.
[発明の効果]
以上述べたように本発明によれば、マイクロコンピュー
タI/Oパスにおいてマイクロコンピュータの命令によ
りプログラム制御できるマイクロプロセッサ内部のウェ
イト発生器でI/Oウェイト信号を発生させることによ
り、外部のウェイト発生回路が不要になり設計コストと
製造コストを少なくすることができる。[Effects of the Invention] As described above, according to the present invention, an I/O wait signal is generated in a microcomputer I/O path by a wait generator inside a microprocessor that can be program-controlled by microcomputer instructions. No external weight generation circuit is required, and design and manufacturing costs can be reduced.
第1図は、本発明のマイクロコンピュータI/Oバスの
構成を示すブロック図。
第2図は、従来のマイクロコンピュータI/Oバスの構
成を示すブロック図。
第3図は、本発明のマイクロコンピュータI/Oバスの
一実施例を示す詳細なブロック図。
第4図は、本発明のマイクロコンピュータI/Oバスの
一実施例を示す詳細なブロック図。
・マイクロプロセッサ
・ウェイト発生器
・デコーダ
・周辺チップ群
・マイクロプロセッサ
・ウェイト発生器
・デコーダ
・周辺チップ群
30 ・ ・
31 ・ ・
32 ・ ・
33 ・ ・
34 ・ ・
35 ・ ・
36 ・ ・
37 ・ ・
41 ・ ・
42 ・ ・
43 ・ ・
50 ・ ・
51 ・ ・
52 ・ ・
53 ・ ・
54 ・ ・
55 ・ ・
56 ・ ・
・マイクロプロセッサ
・命令エリア
・命令キュー
・命令デコーダ
・コントロールロジック
・カウントレジスタ
・減算カウンタ
・レジスタファイル
・デコーダ
・チップA
・チップB
・マイクロプロセッサ
・命令エリア
・命令キュー
・命令デコーダ
・コントロールロジック
・減算カウンタ
・レジスタファイルFIG. 1 is a block diagram showing the configuration of a microcomputer I/O bus according to the present invention. FIG. 2 is a block diagram showing the configuration of a conventional microcomputer I/O bus. FIG. 3 is a detailed block diagram showing one embodiment of the microcomputer I/O bus of the present invention. FIG. 4 is a detailed block diagram showing one embodiment of the microcomputer I/O bus of the present invention.・Microprocessor, weight generator, decoder, peripheral chip group ・Microprocessor, weight generator, decoder, peripheral chip group 30 ・ ・ 31 ・ ・ 32 ・ ・ 33 ・ 34 ・ ・ 35 ・ ・ 36 ・ ・ 37 ・ ・41 ・ ・ 42 ・ ・ 43 ・ ・ 50 ・ ・ 51 ・ ・ 52 ・ ・ 53 ・ ・ 54 ・ ・ 55 ・ ・ 56 ・ ・ ・ Microprocessor・Instruction area・Instruction queue・Instruction decoder・Control logic・Count register・Subtraction Counter, register file, decoder, chip A, chip B, microprocessor, instruction area, instruction queue, instruction decoder, control logic, subtraction counter, register file
Claims (1)
タの入出力を制御するマイクロコンピュータシステムに
おいて、マイクロプロセッサがI/Oアドレスバスにア
ドレスを出力しデコーダがデコードし周辺チップ群に対
してセレクト信号を出すのと同期して、マイクロコンピ
ュータの命令によりプログラム制御できるマイクロプロ
セッサ内部のウェイト発生器でI/Oウェイト信号を発
生させることにより、周辺チップとマイクロプロセッサ
間のI/Oデータバス上でのデータの入出力を遅らせる
ことを特徴とするマイクロコンピュータI/Oバス。In a microcomputer system that connects peripheral chips with various bus timings and controls data input/output, the microprocessor outputs an address to the I/O address bus, the decoder decodes it, and sends a select signal to a group of peripheral chips. Data on the I/O data bus between the peripheral chip and the microprocessor is generated by generating an I/O wait signal in a wait generator inside the microprocessor that can be program-controlled by instructions from the microprocessor. A microcomputer I/O bus characterized by delaying input/output.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2122587A JPH0418657A (en) | 1990-05-11 | 1990-05-11 | Microcomputer I/O bus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2122587A JPH0418657A (en) | 1990-05-11 | 1990-05-11 | Microcomputer I/O bus |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0418657A true JPH0418657A (en) | 1992-01-22 |
Family
ID=14839613
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2122587A Pending JPH0418657A (en) | 1990-05-11 | 1990-05-11 | Microcomputer I/O bus |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0418657A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6408353B1 (en) | 1998-10-09 | 2002-06-18 | Nec Corporation | Microcomputer having sampling function of retry requesting signal in syncronization with strobe signal |
-
1990
- 1990-05-11 JP JP2122587A patent/JPH0418657A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6408353B1 (en) | 1998-10-09 | 2002-06-18 | Nec Corporation | Microcomputer having sampling function of retry requesting signal in syncronization with strobe signal |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4181938A (en) | Processor device | |
| US6145027A (en) | DMA controller with split channel transfer capability and FIFO buffering allowing transmit channel to get ahead of corresponding receive channel by preselected number of elements | |
| US20030070049A1 (en) | Memory control method, memory control circuit using the control method, and integrated circuit device with the memory control circuit | |
| US6289468B1 (en) | Technique for controlling system bus timing with on-chip programmable delay lines | |
| US6167529A (en) | Instruction dependent clock scheme | |
| JPH0418657A (en) | Microcomputer I/O bus | |
| JPH0772864B2 (en) | Digital signal processor | |
| KR100321745B1 (en) | A micro controller unit for external memory access | |
| EP1177499B1 (en) | Processor and method of executing instructions from several instruction sources | |
| JPH04192056A (en) | Arbitration system | |
| US20050015561A1 (en) | Memory control method and memory control apparatus | |
| JPS59161752A (en) | Central processor of data processing system | |
| JP2721610B2 (en) | Programmable controller | |
| JP2721611B2 (en) | Programmable controller | |
| JPH05100844A (en) | Program wait control circuit for micro processor | |
| JPS6031652A (en) | Microcomputer incorporating read-only memory | |
| JPH04275603A (en) | Programmable controller | |
| JPS6244835A (en) | Microprocessor | |
| JPS6277659A (en) | Data access controller for memory device | |
| JPH04372030A (en) | Memory access system for processor | |
| JPH01263732A (en) | Special action processing system for microprocessor | |
| JPH04311225A (en) | System for executing microprocessor instruction | |
| JPH0287254A (en) | External memory access system | |
| JPH01288913A (en) | Timer circuit | |
| JPH03252740A (en) | Instruction generation control system |