[go: up one dir, main page]

JPH04332040A - Wait generator - Google Patents

Wait generator

Info

Publication number
JPH04332040A
JPH04332040A JP13190691A JP13190691A JPH04332040A JP H04332040 A JPH04332040 A JP H04332040A JP 13190691 A JP13190691 A JP 13190691A JP 13190691 A JP13190691 A JP 13190691A JP H04332040 A JPH04332040 A JP H04332040A
Authority
JP
Japan
Prior art keywords
wait
signal
counter
microprocessor
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.)
Pending
Application number
JP13190691A
Other languages
Japanese (ja)
Inventor
Ryuichi Soda
龍一 祖田
Yoshitaka Kashiwagi
喜孝 柏木
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric 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 Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP13190691A priority Critical patent/JPH04332040A/en
Publication of JPH04332040A publication Critical patent/JPH04332040A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To make it possible to change a wait cycle without correcting a pattern of a base by providing this wait generator with a binary counter capable of optionally setting up preset data, counting down clock signals by the counter and using a borrow output as a wait signal. CONSTITUTION:A chip select signal CS* from a microprocessor to a memory is inputted to a monostable multivibrator(MMV) 3 to obtain one pulse. An output pulse from the MMV 3 is inputted to the binary counter 6 as a load signal. An OR result between a clock CLK and the chip select signal is inputted to the counter 6 as a clock signal. At the time of inputting the load signal and the clock signal to the counter 6, data set up in a register 1 are loaded to the preset terminals P0 to P3 of the counter 6 to start down-counting. Then a borrow output from the counter 6 is sent to the microprocessor as a wait signal WAIT.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、マイクロプロセッサシ
ステムにおいてアクセススピードが遅いためウエイトサ
イクルを必要とするメモリやI/O等のデバイスに対し
てウエイト信号を生成するウエイトジェネレータに関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a wait generator for generating wait signals for devices such as memory and I/O which require wait cycles due to slow access speeds in microprocessor systems.

【0002】0002

【従来の技術】マイクロプロセッサシステムにおいて、
アクセススピードの異なるメモリやI/O等のデバイス
にアクセスする際、マイクロプロセッサに対し各デバイ
スに適応するウエイトサイクルを生成することで最適な
アクセススピードを得ている。従来のウエイトジェネレ
ータを図2に示す。シフトレジスタ7はストローブ信号
S、クロックCLKよりそれぞれのアクセススピードに
あったウエイト信号W1〜Wnを生成する。これらの信
号と、各デバイスのチップセレクト信号C1〜Cnとが
論理積素子8に入力され論理積が求められる。これによ
り各デバイスのアクセススピードを決定する。この論理
積信号は論理和素子9に入力され、論理和をとることに
よりマイクロプロセッサシステムのウエイト信号WAI
Tが得られる。このように従来のウエイトサイクルはそ
れぞれのアクセススピードにあったウエイト信号とそれ
ぞれメモリやI/Oのチップセレクト信号との論理積を
とるためにウエイトサイクルの構成を固定的に決定して
いた(本出願人が先に提案した特願平2−320020
参照)。
[Prior Art] In a microprocessor system,
When accessing devices such as memory and I/O that have different access speeds, the optimum access speed is obtained by generating a wait cycle for the microprocessor that is appropriate for each device. A conventional weight generator is shown in FIG. The shift register 7 generates wait signals W1 to Wn suitable for respective access speeds from the strobe signal S and the clock CLK. These signals and the chip select signals C1 to Cn of each device are input to the AND element 8 to calculate the AND. This determines the access speed of each device. This AND signal is input to the OR element 9, and by taking the OR, the wait signal WAI of the microprocessor system is
T is obtained. In this way, in the conventional wait cycle, the structure of the wait cycle was determined in a fixed manner in order to logically AND the wait signal suitable for each access speed and the chip select signal of each memory or I/O (in this paper). Patent application No. 2-320020 proposed earlier by the applicant
reference).

【0003】0003

【発明が解決しようとする課題】ところが、従来の方法
ではウエイトサイクルを基板パターン上に固定的に決定
していたためデバッグ時の最適なウエイト信号の決定を
おこなう際、パターンの修正を伴うことや、最初の設計
とは異なるアクセススピードのデバイス等を使用する際
、ウエイトサイクルが大幅に変わり修正が容易でないと
いう問題がある。そこで本発明は、どのようなウエイト
サイクルでも基板パターンの修正を伴わず簡単に変更を
可能とすることを目的とする。
[Problems to be Solved by the Invention] However, in the conventional method, the wait cycle is fixedly determined on the board pattern, so when determining the optimal wait signal during debugging, pattern modification is required. When using a device with an access speed different from that originally designed, there is a problem in that the wait cycle changes significantly and is not easy to correct. Therefore, an object of the present invention is to make it possible to easily change any weight cycle without modifying the substrate pattern.

【0004】0004

【課題を解決するための手段】上記問題点を解決するた
め、本発明は、メモリ及びI/O等のアクセススピード
が異なるデバイスを備えたマイクロプロセッサシステム
のマイクロプロセッサに対するウエイト信号を生成する
ウエイトジェネレータにおいて、該デバイスごとのウエ
イト信号生成用データを送出するためのレジスタ回路と
、CPUからのチップセレクト信号とクロックCLKと
の論理和を求める論理和回路と、該チップセレクト信号
からパルスを生成するモノステーブル・マルチバイブレ
ータ回路と、該モノステーブル・マルチバイブレータの
出力パルス幅調整用のコンデンサおよび抵抗と、該デバ
イスごとのウエイト信号を出力するバイナリカウンタ回
路とを備えたことを特徴とするものである。
[Means for Solving the Problems] In order to solve the above problems, the present invention provides a wait generator for generating wait signals for a microprocessor in a microprocessor system including devices with different access speeds such as memory and I/O. , a register circuit for sending data for generating a wait signal for each device, an OR circuit for calculating the logical sum of the chip select signal from the CPU and the clock CLK, and a monolithic circuit for generating pulses from the chip select signal. This device is characterized by comprising a table multivibrator circuit, a capacitor and a resistor for adjusting the output pulse width of the monostable multivibrator, and a binary counter circuit that outputs a wait signal for each device.

【0005】[0005]

【作用】上記手段により、マイクロプロセッサシステム
立ち上げ時に、前記レジスタ出力において最大ウエイト
信号が生成されるようにデータを設定しておき、前記レ
ジスタデータを変化することで次第にウエイトサイクル
を減少させ、メモリやI/O等の各デバイスに最適なウ
エイトサイクルを設定するものである。
[Operation] By the above means, data is set so that the maximum wait signal is generated at the register output when starting up the microprocessor system, and by changing the register data, the wait cycles are gradually reduced, and the memory This is to set the optimum wait cycle for each device, such as I/O and I/O.

【0006】[0006]

【実施例】以下に本発明の具体的実施例を図1に示して
説明する。ここで信号名の*は負論理を示す。また、こ
の実施例ではデバイスをメモリに限定して説明する。ま
ず、マイクロプロセッサシステム立ち上げ時のリセット
信号Reset*をレジスタ1のプリセット端子に入力
しレジスタ出力Q0 〜Q3 をHighに設定する。 その時、前記レジスタ出力Q0 〜Q3 には16進デ
ータFhが出力されていることになる。これがマイクロ
プロセッサシステム立ち上げ時でのメモリに対するウエ
イト信号生成用データの初期設定値となる。
[Embodiment] A specific embodiment of the present invention will be described below with reference to FIG. Here, * in the signal name indicates negative logic. Further, in this embodiment, the device will be explained limited to a memory. First, a reset signal Reset* at startup of the microprocessor system is input to the preset terminal of register 1, and register outputs Q0 to Q3 are set to High. At that time, hexadecimal data Fh is output to the register outputs Q0 to Q3. This becomes the initial setting value of the wait signal generation data for the memory at the time of starting up the microprocessor system.

【0007】つづいて、マイクロプロセッサからメモリ
へのチップセレクト信号CS*をモノステーブル・マル
チバイブレータ3に入力して1パルスを得る。その際、
コンデンサ4および抵抗5にてそのパルス幅を決定する
。前記出力パルスをロード信号としてバイナリカウンタ
6に入力する。また、前記マイクロプロセッサからのチ
ップセレクト信号とクロックCLKとの論理和をとるこ
とでクロックの制御をする。その論理和出力信号をクロ
ック信号として前記バイナリカウンタに入力する。ここ
で、前記ロード信号およびクロック信号が、バイナリカ
ウンタ6に入力される時、前記バイナリカウンタのP0
 〜P3 に16進データFhが前記レジスタよりロー
ドされダウンカウントを開始する。このバイナリカウン
タ6のボロウ出力をウエイト信号WAITとしてマイク
ロプロセッサに送出することで1サイクルが終了する。
Next, the chip select signal CS* from the microprocessor to the memory is input to the monostable multivibrator 3 to obtain one pulse. that time,
The pulse width is determined by a capacitor 4 and a resistor 5. The output pulse is input to the binary counter 6 as a load signal. Further, the clock is controlled by ORing the chip select signal from the microprocessor and the clock CLK. The OR output signal is inputted to the binary counter as a clock signal. Here, when the load signal and the clock signal are input to the binary counter 6, P0 of the binary counter
~P3, hexadecimal data Fh is loaded from the register and starts counting down. One cycle is completed by sending the borrow output of the binary counter 6 to the microprocessor as a wait signal WAIT.

【0008】ここで、マイクロプロセッサのデータ信号
線D0〜D3をレジスタ1に入力し、同マイクロプロセ
ッサからのレジスタ1へのチップセレクト信号RS*を
、レジスタ1のクロック端子に入力しておくものとする
。  さて、実際に最適ウエイト信号を生成する仕組み
についてこれから述べる。まず、マイクロプロセッサは
メモリに対して、あるデータの書き込み処理を実行し、
つづいてそのメモリに対し読み出し処理を実行する。そ
の際のデータが一致していれば、マイクロプロセッサの
メモリに対するサイクルは十分満足しているとみなし、
前記レジスタ1に先の16進データFhより1減少させ
たEhを設定する。同様に、メモリに対しデータの書き
込み、読み出し処理を実施してデータが一致すればレジ
スタデータを1減少させる。この一連の動作を繰り返す
ことで、マイクロプロセッサのメモリに対するウエイト
サイクルが次第に減少してくる。ここでメモリに対する
書き込みデータと読み出しデータが、一致しなくなる1
つ手前のレジスタ設定データ値が、このメモリに対する
最適ウエイト信号生成データとなる。以後その最適デー
タを参照することでメモリにアクセスする。以上、デバ
イスをメモリに限定して説明してきたが、各種I/Oに
関しても第1図同様のウエイトジェネレータを構成でき
る。
Here, the data signal lines D0 to D3 of the microprocessor are input to register 1, and the chip select signal RS* from the microprocessor to register 1 is input to the clock terminal of register 1. do. Now, the mechanism for actually generating the optimal weight signal will be described. First, the microprocessor writes certain data to memory,
Next, a read process is executed for that memory. If the data at that time match, it is assumed that the cycles for the microprocessor's memory are sufficiently satisfied.
Eh, which is 1 less than the previous hexadecimal data Fh, is set in the register 1. Similarly, data is written to and read from the memory, and if the data match, the register data is decremented by 1. By repeating this series of operations, the wait cycles for the microprocessor's memory gradually decrease. At this point, the data written to the memory and the data read out do not match.
The previous register setting data value becomes the optimum wait signal generation data for this memory. Thereafter, the memory is accessed by referring to the optimal data. Although the above description has been made with the device limited to memory, the same weight generator as shown in FIG. 1 can be configured for various I/Os.

【0009】[0009]

【発明の効果】以上述べたように、本発明によればマイ
クロプロセッサシステムのメモリやI/O等の最適ウエ
イトを得ることが出来、またウエイトサイクルの変更が
容易である。さらに、アクセススピードの異なるメモリ
やI/O等デバイスの変更を行う際容易に対処できると
いう効果がある。
As described above, according to the present invention, it is possible to obtain optimum weights for memory, I/O, etc. of a microprocessor system, and it is easy to change the wait cycle. Furthermore, there is an effect that it is possible to easily change devices such as memories and I/Os having different access speeds.

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

【図1】本発明の実施例FIG. 1: Example of the present invention

【図2】従来例[Figure 2] Conventional example

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

1  レジスタ 2、9  論理和回路 3  モノステーブル・マルチバイブレータ4  コン
デンサ 5  抵抗 6  バイナリカウンタ
1 Registers 2, 9 OR circuit 3 Monostable multivibrator 4 Capacitor 5 Resistor 6 Binary counter

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】メモリ及びI/O等のアクセススピードが
異なるデバイスを備えたマイクロプロセッサシステムの
マイクロプロセッサに対するウエイト信号を生成するウ
エイトジェネレータにおいて、該デバイスごとのウエイ
ト信号生成用データを送出するためのレジスタ回路と、
CPUからのチップセレクト信号とクロックCLKとの
論理和を求める論理和回路と、該チップセレクト信号か
らパルスを生成するモノステーブル・マルチバイブレー
タ回路と、該モノステーブル・マルチバイブレータの出
力パルス幅調整用のコンデンサおよび抵抗と、該デバイ
スごとのウエイト信号を出力するバイナリカウンタ回路
とを備えたことを特徴とするウエイトジェネレータ回路
Claims: 1. A wait generator for generating wait signals for a microprocessor in a microprocessor system including devices with different access speeds such as memory and I/O; a register circuit,
A logical sum circuit for calculating the logical sum of the chip select signal from the CPU and the clock CLK, a monostable multivibrator circuit for generating pulses from the chip select signal, and a circuit for adjusting the output pulse width of the monostable multivibrator. A weight generator circuit comprising a capacitor, a resistor, and a binary counter circuit that outputs a weight signal for each device.
JP13190691A 1991-05-07 1991-05-07 Wait generator Pending JPH04332040A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13190691A JPH04332040A (en) 1991-05-07 1991-05-07 Wait generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13190691A JPH04332040A (en) 1991-05-07 1991-05-07 Wait generator

Publications (1)

Publication Number Publication Date
JPH04332040A true JPH04332040A (en) 1992-11-19

Family

ID=15068940

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13190691A Pending JPH04332040A (en) 1991-05-07 1991-05-07 Wait generator

Country Status (1)

Country Link
JP (1) JPH04332040A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6684278B1 (en) 1999-07-16 2004-01-27 Mitsubishi Denki Kabushiki Kaisha Microcomputer and memory access control method
US6748464B2 (en) 2000-09-20 2004-06-08 Mitsubishi Denki Kabushiki Kaisha Semiconductor device comprising CPU and peripheral circuit wherein control unit performs wait cycle control that makes peripheral circuit wait a predetermined time before responding to CPU

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6684278B1 (en) 1999-07-16 2004-01-27 Mitsubishi Denki Kabushiki Kaisha Microcomputer and memory access control method
US6748464B2 (en) 2000-09-20 2004-06-08 Mitsubishi Denki Kabushiki Kaisha Semiconductor device comprising CPU and peripheral circuit wherein control unit performs wait cycle control that makes peripheral circuit wait a predetermined time before responding to CPU

Similar Documents

Publication Publication Date Title
JP2661222B2 (en) Pulse output device
JPH0526439B2 (en)
JPH06139191A (en) Bus cycle timing control circuit
JPH04332040A (en) Wait generator
JP2624388B2 (en) DMA device
JPH0542525Y2 (en)
JP3565603B2 (en) Microcontroller system and microcontroller
JP2617132B2 (en) Direct memory access method
JPH029401Y2 (en)
JP2626112B2 (en) Microprocessor
JP3389152B2 (en) DRAM control circuit
JPH04106793A (en) Memory interface circuit
KR0174512B1 (en) Refresh Timing Generation Circuit
JP3450667B2 (en) Data processor
JPS63271561A (en) DMA control circuit
JP2570271B2 (en) Semiconductor memory controller
JPS61112272A (en) Microcomputer applied device
JPH0561762A (en) Memory controller
JPH05241939A (en) Access controller for dram
JPS61228556A (en) Variable weight circuit
JPH06119231A (en) Memory initial cycle control system
JPH04283493A (en) Information processing device
JPH08329034A (en) Analog data read circuit by microcomputer
JPH0581445A (en) Microcomputer lsi
JPH0675902A (en) Dma transfer circuit