JP2626112B2 - Microprocessor - Google Patents

Microprocessor

Info

Publication number
JP2626112B2
JP2626112B2 JP1339613A JP33961389A JP2626112B2 JP 2626112 B2 JP2626112 B2 JP 2626112B2 JP 1339613 A JP1339613 A JP 1339613A JP 33961389 A JP33961389 A JP 33961389A JP 2626112 B2 JP2626112 B2 JP 2626112B2
Authority
JP
Japan
Prior art keywords
state
signal
bus
microprocessor
generation circuit
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
JP1339613A
Other languages
Japanese (ja)
Other versions
JPH03196352A (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.)
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 JP1339613A priority Critical patent/JP2626112B2/en
Publication of JPH03196352A publication Critical patent/JPH03196352A/en
Application granted granted Critical
Publication of JP2626112B2 publication Critical patent/JP2626112B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)
  • Information Transfer Systems (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はマイクロプロセッサに関し、特にバスサイク
ルの制御、すなわち記憶装置や入出力装置とのデータ転
送における制御信号のアクティブタイミングを制御する
マイクロプロセッサに関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microprocessor, and more particularly to a microprocessor that controls a bus cycle, that is, controls the active timing of a control signal in data transfer with a storage device or an input / output device. .

〔従来の技術〕[Conventional technology]

従来、この種のマイクロプロセッサは、バスサイクル
を起動すると、記憶装置(以下、メモリと称す)や入出
力装置(以下、I/Oと称す)への制御信号がある一定の
(固定した)タイミングでアクティブとなるように構成
されている。
Conventionally, when a microprocessor of this type starts a bus cycle, a control signal to a storage device (hereinafter, referred to as a memory) or an input / output device (hereinafter, referred to as an I / O) has a certain (fixed) timing. Is configured to be active.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

上述した従来のマイクロプロセッサは、バスサイクル
における制御信号のアクティブタイミングがバスサイク
ルの起動時から一定時間後にアクティブとなるように固
定されているので、I/Oの種類によっては書き込み回復
時間を長くとらねばならず、しかもこの場合には、書き
込み動作を連続しないように、ソフト的な配慮を必要と
するという欠点がある。
In the conventional microprocessor described above, since the active timing of the control signal in the bus cycle is fixed so as to become active after a certain time from the start of the bus cycle, a long write recovery time is required depending on the type of I / O. In this case, there is a drawback that software considerations are required so that the writing operation is not continued.

また、従来のマイクロプロセッサはその動作周波数の
ハード的に変えた場合、最適なバスサイクルシーケンス
に近くするには、ダミーの命令(書き込みサイクルが連
続しないための処理)を増やしたり、あるいは減らした
りする必要が生じるという欠点がある。
Further, in the conventional microprocessor, if the operating frequency is changed in terms of hardware, in order to approach an optimum bus cycle sequence, the number of dummy instructions (processing for discontinuous write cycles) is increased or decreased. There is a disadvantage that necessity arises.

本発明の目的は、かかるバスサイクルにおけるアクテ
ィブタイミングのソフトウェア設計を容易にするととも
に、バスの使用効率を向上させるマイクロプロセッサを
提供することにある。
An object of the present invention is to provide a microprocessor that facilitates software design of active timing in such a bus cycle and improves the bus use efficiency.

〔課題を解決するための手段〕[Means for solving the problem]

本発明のマイクロプロセッサは、空きステートを含ん
だクロック単位で遷移する複数の内部ステートを設定す
るにあたり、前記複数の内部ステート間の遷移をアクセ
ス要求信号および外部信号の組合わせにより決定し、複
数のステート信号を出力するステート生成回路と、前記
ステート生成回路からの前記複数のステート信号により
記憶装置および入出力装置へのデータの書き込みおよび
読み出し用のバスを制御するためのアドレス信号および
制御信号を出力するバス制御回路とを有し、前記ステー
ト生成回路の前記ステート信号により前記制御信号を活
性化するタイミングを可変できるようにし、前記記憶装
置および前記入出力装置をアクセスする時のバスサイク
ルを制御するように構成される。
The microprocessor of the present invention, when setting a plurality of internal states that transition in clock units including an empty state, determines a transition between the plurality of internal states by a combination of an access request signal and an external signal, and A state generation circuit for outputting a state signal, and an address signal and a control signal for controlling a bus for writing and reading data to and from a storage device and an input / output device by the plurality of state signals from the state generation circuit A bus control circuit for activating the control signal according to the state signal of the state generation circuit, and controlling a bus cycle when accessing the storage device and the input / output device. It is configured as follows.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明す
る。
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の第一の実施例を示すマイクロプロセ
ッサのブロック図である。
FIG. 1 is a block diagram of a microprocessor showing a first embodiment of the present invention.

第1図に示すように、本実施例はマイクロプロセッサ
1内部にステート生成回路2とバス制御回路3とを有し
て構成される。このステート生成回路2は方形波信号の
クロック(CLK)4およびバスサイクルを起動させるた
めのアクセス要求信号5と、外部端子であるREDYF信号
6およびREADYL信号7とを入力し、ステートS1信号8,ス
テートS2信号9およびステートSI信号10をバス制御回路
3へ出力する。また、バス制御回路3はステート信号群
(S1,S2,SI)の信号状態によりアドレスバス11とメモリ
・I/O制御信号バス12の変化タイミングを決定する。
As shown in FIG. 1, the present embodiment includes a state generation circuit 2 and a bus control circuit 3 inside a microprocessor 1. The state generation circuit 2 inputs a clock (CLK) 4 of a square wave signal and an access request signal 5 for activating a bus cycle, and a REDYF signal 6 and a READYL signal 7 which are external terminals. It outputs the state S2 signal 9 and the state SI signal 10 to the bus control circuit 3. The bus control circuit 3 determines the change timing of the address bus 11 and the memory / I / O control signal bus 12 based on the signal state of the state signal group (S1, S2, SI).

第2図は第1図に示すステート生成回路の動作を説明
するための状態遷移図である。
FIG. 2 is a state transition diagram for explaining the operation of the state generation circuit shown in FIG.

第2図に示すように、マイクロプロセッサ1の内部状
態としては、S1,S2,SIのいずれかの状態であり、各状態
は1クロック単位で遷移する。
As shown in FIG. 2, the internal state of the microprocessor 1 is one of S1, S2, and SI, and each state transits in units of one clock.

すなわち、AはREADYF信号6がアクティブの時であ
り、BはREADYL信号7がアクティブで且つ次のアクセス
要求5がない時である。また、C,D,GはそれぞれREADYF
信号6がインアクティブ、READYL信号7がインアクティ
ブ、アクセス要求信号5がない時の状態である。更に、
EはREADYL信号7がアクティブで且つ次のアクセス要求
信号5がある時の状態であり、Fはアクセス要求信号5
があった時の状態である。
That is, A is when the READYF signal 6 is active, and B is when the READYL signal 7 is active and there is no next access request 5. Also, C, D, and G are each READYF
Signal 6 is inactive, READYL signal 7 is inactive, and there is no access request signal 5. Furthermore,
E is a state when the READYL signal 7 is active and there is a next access request signal 5, and F is an access request signal 5
It is the state when there was.

第3図は第1図におけるマイクロプロセッサのバスサ
イクル動作を説明するためのタイミング図である。
FIG. 3 is a timing chart for explaining the bus cycle operation of the microprocessor in FIG.

第3図に示すように、アクセス要求信号5がアクティ
ブとなると、ステート生成回路2はS1状態となり、ステ
ートS1信号8が「1」になる。このS1状態では、アドレ
スバス11にアドレス情報を出力し、バスサイクルが起動
開始となる。また、ステート生成回路2がS1状態では、
クロック(CLK)の立ち上りでREADYF信号6をサンプリ
ングし、「1」であればS2状態へ遷移し、「0」であれ
ばS1状態に遷移する。
As shown in FIG. 3, when the access request signal 5 becomes active, the state generation circuit 2 enters the S1 state, and the state S1 signal 8 becomes "1". In this S1 state, the address information is output to the address bus 11, and the bus cycle starts. When the state generation circuit 2 is in the S1 state,
At the rising edge of the clock (CLK), the READYF signal 6 is sampled. If "1", the state transitions to the S2 state, and if "0", the state transitions to the S1 state.

次に、S2状態になると、アドレスバス11にアドレス情
報を出力し続けるとともに、メモリ・I/O制御信号12を
アクティブとする。また、このS2状態ではクロック(CL
K)の立ち上りでREADYL信号7をサンプリングし、
「1」であればS1状態かSI状態へ遷移し、「0」であれ
ばS2状態に遷移する。さらに、S1状態かSI状態へ遷移す
る場合にはメモリ・I/O制御信号12をインアクティブと
する。
Next, in the S2 state, the address information is continuously output to the address bus 11, and the memory / I / O control signal 12 is activated. In this S2 state, the clock (CL
At the rising edge of K), the READYL signal 7 is sampled,
If it is “1”, the state transits to the S1 state or the SI state, and if it is “0”, it transits to the S2 state. Further, when transitioning from the S1 state to the SI state, the memory / I / O control signal 12 is made inactive.

このように、メモリやI/Oへの書き込み、読み出し制
御信号12はマイクロプロセッサ1の外部より入力するRE
ADY信号のタイミングに応じてアクティブとなるタイミ
ングを可変にできるので、バスの使用効率を高めること
ができる。
As described above, the write / read control signal 12 for the memory and the I / O is transmitted to the RE 1 input from the outside of the microprocessor 1.
Since the active timing can be varied according to the timing of the ADY signal, the bus use efficiency can be improved.

第4図は本発明の第二の実施例を示すマイクロプロセ
ッサのブロック図である。
FIG. 4 is a block diagram of a microprocessor showing a second embodiment of the present invention.

第4図に示すように、本実施例はマイクロプロセッサ
1の内部にステート生成回路2とバス制御回路3とを有
するのは、前述した第一の実施例と同様であるが、ステ
ート生成回路2は方形波信号のクロック(CLK)4およ
びバスサイクルを起動させるためのアクセス要求信号5
と、外部端子であるREADY信号13とを入力する点が異な
っている。また、ステート生成回路2から出力されるス
テートS1信号8,ステートS2信号9,ステートSI信号10をバ
ス制御回路3へ出力すること、およびバス制御回路3が
ステート信号群(S1,S2,SI)の信号状態によりアドレス
バス11とメモリ・I/O制御信号(バス)12の変化タイミ
ングを決定することは第一の実施例と同様である。
As shown in FIG. 4, the present embodiment has a state generation circuit 2 and a bus control circuit 3 inside a microprocessor 1 in the same manner as the first embodiment described above. Is a square wave signal clock (CLK) 4 and an access request signal 5 for activating a bus cycle.
And a READY signal 13 which is an external terminal. The state control circuit 3 outputs the state S1 signal 8, the state S2 signal 9, and the state SI signal 10 output from the state generation circuit 2 to the bus control circuit 3, and the bus control circuit 3 outputs the state signal group (S1, S2, SI). The change timing of the address bus 11 and the memory / I / O control signal (bus) 12 is determined according to the signal state of the first embodiment.

要するに、本実施例では、S1状態でサンプリングする
外部信号とS2状態でサンプリングする外部信号をREADY
信号13に共用させたものであり、これにより第一の実施
例に対して端子数を減らすことができるという利点があ
る。
In short, in this embodiment, the external signal sampled in the S1 state and the external signal sampled in the S2 state are READY
This is shared by the signal 13, which has the advantage that the number of terminals can be reduced compared to the first embodiment.

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明のマイクロプロセッサ
は、S1状態からS2状態への遷移を外部信号により制御す
ることにより、メモリやI/Oへの書き込みおよび読み出
し用の制御信号のアクティブになるタイミングを可変に
することができるので、リカバリタイムを長く必要とす
るI/Oをシステムに取り込む際のソフトウェア設計がハ
ードウェアの制限を考慮することなく最適なバスサイク
ルタイミングに設計でき、しかもバスの使用効率を高め
ることができるという効果がある。
As described above, the microprocessor of the present invention controls the transition from the S1 state to the S2 state by an external signal, so that the timing at which the control signals for writing and reading to the memory and the I / O become active is controlled. Because it can be made variable, the software design when incorporating I / O that requires a long recovery time into the system can be designed to the optimal bus cycle timing without considering hardware limitations, and bus use efficiency There is an effect that can be increased.

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

第1図は本発明の第一の実施例を示すマイクロプロセッ
サのブロック図、第2図は第1図に示すステート生成回
路の動作を説明するための状態遷移図、第3図は第1図
におけるマイクロプロセッサのバスサイクル動作を説明
するためのタイミング図、第4図は本発明の第二の実施
例を示すマイクロプロセッサのブロック図である。 1……マイクロプロセッサ、2……ステート生成回路、
3……バス制御回路、4……クロック信号、5……アク
セス要求信号、6,7,13……外部READY信号、8……S1信
号、9……S2信号、10……SI信号、11……アドレスバ
ス、12……メモリI/O制御信号バス。
FIG. 1 is a block diagram of a microprocessor showing a first embodiment of the present invention, FIG. 2 is a state transition diagram for explaining the operation of the state generating circuit shown in FIG. 1, and FIG. 3 is FIG. And FIG. 4 is a block diagram of a microprocessor showing a second embodiment of the present invention. 1... Microprocessor, 2... State generation circuit,
3 Bus control circuit 4 Clock signal 5 Access request signal 6,7,13 External READY signal 8 S1 signal 9 S2 signal 10 SI signal 11 …… Address bus, 12 …… Memory I / O control signal bus.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】空きステートを含んだクロック単位で遷移
する複数の内部ステートを設定するにあたり、前記複数
の内部ステート間の遷移をアクセス要求信号および外部
信号の組合わせにより決定し、複数のステート信号を出
力するステート生成回路と、前記ステート生成回路から
の前記複数のステート信号により記憶装置および入出力
装置へのデータの書き込みおよび読み出し用のバスを制
御するためのアドレス信号および制御信号を出力するバ
ス制御回路とを有し、前記ステート生成回路の前記ステ
ート信号により前記制御信号を活性化するタイミングを
可変できるようにし、前記記憶装置および前記入出力装
置をアクセスする時のバスサイクルを制御することを特
徴とするマイクロプロセッサ。
When setting a plurality of internal states that transition in clock units including an empty state, a transition between the plurality of internal states is determined by a combination of an access request signal and an external signal, and a plurality of state signals are set. And a bus for outputting an address signal and a control signal for controlling a bus for writing and reading data to and from a storage device and an input / output device by the plurality of state signals from the state generation circuit A control circuit, wherein the timing of activating the control signal can be changed by the state signal of the state generation circuit, and controlling a bus cycle when accessing the storage device and the input / output device. Microprocessor characterized.
JP1339613A 1989-12-26 1989-12-26 Microprocessor Expired - Fee Related JP2626112B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1339613A JP2626112B2 (en) 1989-12-26 1989-12-26 Microprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1339613A JP2626112B2 (en) 1989-12-26 1989-12-26 Microprocessor

Publications (2)

Publication Number Publication Date
JPH03196352A JPH03196352A (en) 1991-08-27
JP2626112B2 true JP2626112B2 (en) 1997-07-02

Family

ID=18329149

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1339613A Expired - Fee Related JP2626112B2 (en) 1989-12-26 1989-12-26 Microprocessor

Country Status (1)

Country Link
JP (1) JP2626112B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01121965A (en) * 1987-11-06 1989-05-15 Nec Corp Microprocessor

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
日経バイト,No.8,日経マグロウヒル社(1985−5),P.111−P.126

Also Published As

Publication number Publication date
JPH03196352A (en) 1991-08-27

Similar Documents

Publication Publication Date Title
JPH0676566A (en) Semiconductor memory device
JPH0821011B2 (en) Bus expansion control method
US20040008069A1 (en) Method and apparatus for skewing data with respect to command on a DDR interface
JP2626112B2 (en) Microprocessor
US20060018185A1 (en) Memory control apparatus and electronic apparatus
JPS6323581B2 (en)
JP3563223B2 (en) Register circuit
JPH03214252A (en) Microprocessor
JP3451631B2 (en) Handshake type data processing circuit
JPH09311812A (en) Microcomputer
JP3048762B2 (en) Semiconductor integrated circuit device
JP2912090B2 (en) Time slot interchange circuit
JP2867480B2 (en) Memory switching circuit
JPH1125030A (en) Bus extension control circuit
JPH06103026A (en) Memory system
EP1122733A1 (en) Internal regeneration of the address latch enable (ALE) signal of a protocol of management of a burst interleaved memory and relative circuit
JP2697772B2 (en) Information processing device
JPH11273380A (en) Lsi operation mode setting signal fetching method and lsi with mode signal fetching function
JP2570271B2 (en) Semiconductor memory controller
JPH11126480A (en) Semiconductor device
JPH0581445A (en) Microcomputer lsi
JPH0719243B2 (en) Microcomputer
JPS61289442A (en) Memory access controller
JPS59119B2 (en) voice response device
JPH08329034A (en) Analog data read circuit by microcomputer

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees