Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0532774B2 - - Google Patents
[go: Go Back, main page]

JPH0532774B2 - - Google Patents

Info

Publication number
JPH0532774B2
JPH0532774B2 JP58128408A JP12840883A JPH0532774B2 JP H0532774 B2 JPH0532774 B2 JP H0532774B2 JP 58128408 A JP58128408 A JP 58128408A JP 12840883 A JP12840883 A JP 12840883A JP H0532774 B2 JPH0532774 B2 JP H0532774B2
Authority
JP
Japan
Prior art keywords
signal
state
generating
state signal
active level
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 - Lifetime
Application number
JP58128408A
Other languages
Japanese (ja)
Other versions
JPS6020264A (en
Inventor
Tetsuo Kanai
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
Nippon Electric Co Ltd
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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP58128408A priority Critical patent/JPS6020264A/en
Publication of JPS6020264A publication Critical patent/JPS6020264A/en
Publication of JPH0532774B2 publication Critical patent/JPH0532774B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Microcomputers (AREA)
  • Information Transfer Systems (AREA)

Description

【発明の詳細な説明】 〔発明の属する技術分野〕 本発明はマイクロコンピユータのステート信号
制御回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of the Invention] The present invention relates to a state signal control circuit for a microcomputer.

〔従来技術〕[Prior art]

従来、ROM,RAM等を内蔵しているマイク
ロコンピユータに於て、内蔵ROMだけではプロ
グラムのステツプ数が限られてしまうので、外部
にメモリを拡張、アクセスする必要が生じる。し
かしながら、従来のROM,RAM等で内蔵して
いるマイクロコンピユータに於てウエイト機能を
有するものはほとんどなかつた。ウエイト機能が
ない場合、外部メモリのアクセスタイムがCPU
に比べて遅い時には、メモリの内容はCPUに受
付けられず、外部メモリに対しCPUは汎用性が
なく、限られたアクセスタイムのメモリしか使用
できず、またCPUの動作速度を落し、速く動作
するCPUの特性が生かされないという欠点があ
つた。
Conventionally, in microcomputers that have built-in ROM, RAM, etc., the number of program steps is limited by the built-in ROM, so it is necessary to expand and access memory externally. However, almost none of the conventional microcomputers with built-in ROM, RAM, etc. have a wait function. If there is no wait function, the external memory access time is
When the memory is slow compared to the CPU, the contents of the memory are not accepted by the CPU, the CPU is not as versatile as external memory, and can only use memory with a limited access time, and the CPU's operating speed is slowed down so that it runs faster. The drawback was that the characteristics of the CPU were not utilized.

また、ウエイト機能を有するCPUであつても、
外部の付加回路により制御するようになつてお
り、付加回路を使用しなければ外部にメモリを拡
張、アクセスすることができないという欠点があ
つた。
Also, even if the CPU has a wait function,
It is controlled by an external additional circuit, and the disadvantage is that the memory cannot be expanded or accessed externally without using the additional circuit.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、上記欠点を除去し、マイクロ
コンピユータに外部メモリを付加してアクセスす
るに際し、全く外部の付加回路の取付けを要せ
ず、アクセスタイムの異なつた外部メモリを自由
に選択することのできるマイクロコンピユータの
ステート信号制御回路を提供することにある。
An object of the present invention is to eliminate the above-mentioned drawbacks, and to freely select external memories with different access times without requiring any external additional circuitry when accessing an external memory added to a microcomputer. An object of the present invention is to provide a state signal control circuit for a microcomputer that can perform the following functions.

〔発明の構成〕[Structure of the invention]

本発明によるステート信号制御回路は、リング
カウンタを構成し所定数のステート信号を順次発
生する縦属接続された複数のシフトレジスタを有
するステート信号発生回路と、所定番目のステー
ト信号とその次のステート信号との間にウエイト
ステート信号を挿入して当該次のステート信号の
発生タイミングを遅らせるウエイトステート信号
発生手段とを備え、かつ前記ウエイトステート信
号発生手段が、命令によりセツト、リセツト可能
なフリツプフロツプと、このフリツプフロツプが
セツト状態でありかつ外部メモリに対するアクセ
スであるときにアクテイブレベルをとる第1の信
号を発生する第1のゲート手段と、この第1の信
号がアクテイブレベルでありかつ前記ステート信
号発生回路からの前記所定番目のステート信号と
等価な信号が発生されているときにアクテイブレ
ベルをとる第2の信号を発生する第2のゲート手
段と、この第2の信号のレベルを前記シフトレジ
スタのシフト動作と同期して取り込み、当該信号
の前記アクテイブレベルを取り込んだときに前記
ウエイトステート信号を発生する信号発生手段
と、前記第2の信号が前記アクテイブレベルでな
いときは前記等価な信号を出力し前記アクテイブ
レベルのときは前記等価な信号の出力を停止する
第3のゲート手段と、前記信号発生手段および前
記第3のゲート手段の出力を合成しその合成出力
を前記次のステート信号を発生するためのシフト
レジスタに供給する第4のゲート手段とを有する
ことを特徴としている。
A state signal control circuit according to the present invention includes a state signal generation circuit having a plurality of shift registers connected in series that constitute a ring counter and sequentially generate a predetermined number of state signals, and a state signal generation circuit that generates a predetermined state signal and the next state. a flip-flop, the flip-flop comprising a wait state signal generating means for inserting a wait state signal between the flip-flop and the wait state signal to delay the generation timing of the next state signal, and the wait state signal generating means can be set and reset by a command; a first gate means for generating a first signal that takes an active level when the flip-flop is in a set state and an external memory is being accessed; a second gate means for generating a second signal that assumes an active level when a signal equivalent to the predetermined state signal from the predetermined state signal is being generated; a signal generating means that generates the wait state signal when the active level of the signal is captured in synchronization with the operation; and a signal generating means that outputs the equivalent signal when the second signal is not at the active level; a third gate means that stops outputting the equivalent signal when the signal is at an active level; and a third gate means for synthesizing the outputs of the signal generating means and the third gate means, and generating the next state signal using the combined output. and a fourth gate means for supplying the signal to the shift register.

〔実施例の説明〕[Explanation of Examples]

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

第1図は本発明の一実施例のブロツク図であ
る。
FIG. 1 is a block diagram of one embodiment of the present invention.

ステート信号発生回路10はシフトレジスタ
SF1〜SF5とオアゲートOR2とノアゲート
NOR1とで構成され、複数のステート信号T1
T2,T3,TEを発生する。このステート信号制御
回路10はリングカウンタを構成している。
The state signal generation circuit 10 is a shift register.
SF1 to SF5 and OR gate OR2 and Noah gate
NOR1 and multiple state signals T 1 ,
Generates T 2 , T 3 and T E. This state signal control circuit 10 constitutes a ring counter.

ステート信号制御フリツプフロツプFF1はR
−S型(セツト・リセツト型)で、CPUからの
ウエイト信号WAITでセツトされオアゲートOR
3からの信号でリセツトされ、アンドゲートA1
〜A3を介してステート信号発生回路10を制御
する。
State signal control flip-flop FF1 is R
- S type (set/reset type), OR gate set by wait signal WAIT from CPU
It is reset by the signal from 3, and the AND gate A1
~A3 to control the state signal generation circuit 10.

シフトレジスタSF1〜SF5から出力されるス
テート信号T1,T2,T3,TEはそれぞれCPUを制
御する信号である。読出し信号RD、書込み信号
WRはCPUがメモリをアクセスした時にアクテイ
ブ“H”になる信号である。ウエイト信号
WAITはCPUよりプログラマブル可能なコント
ロール信号である。外部メモリアクセス信号
EXTはROM,RAM内蔵のマイクロコンピユー
タで内部メモリアクセス時に“L”外部メモリア
クセス時に“H”となる信号である。
State signals T 1 , T 2 , T 3 , and TE output from shift registers SF1 to SF5 are signals for controlling the CPU, respectively. Read signal RD, write signal
WR is a signal that becomes active "H" when the CPU accesses the memory. wait signal
WAIT is a control signal that can be programmed by the CPU. External memory access signal
EXT is a signal that becomes "L" when accessing internal memory and "H" when accessing external memory in a microcomputer with built-in ROM and RAM.

次に、この実施例の動作について説明する。 Next, the operation of this embodiment will be explained.

第2図は速いメモリをアクセスするときの実施
例のステートの推移を説明するための波形図、第
3図は遅いメモリをアクセスするときの実施例の
ステートの推移(ウエイト・ステートあり)を説
明するための波形図である。
Figure 2 is a waveform diagram for explaining the state transition of the embodiment when accessing fast memory, and Figure 3 is a waveform diagram for explaining the state transition of the embodiment (with wait state) when accessing slow memory. FIG.

まず、CPUが内部メモリをアクセスしたとき
について説明する。
First, we will explain when the CPU accesses internal memory.

この場合、外部メモリアクセス信号EXTは常
に“L”であり、アンドゲートA2の出力は常時
“L”であるから、第2図に示すように、ステー
ト信号T1,T2,T3,TEが順次発生する。
In this case, the external memory access signal EXT is always "L" and the output of the AND gate A2 is always "L", so the state signals T 1 , T 2 , T 3 , T E occurs sequentially.

次に、CPUが外部メモリをアクセスした時に
ついて説明する。
Next, we will explain when the CPU accesses external memory.

外部メモリアクセス時には外部メモリアクセス
信号EXTは常に“H”となる。ここでアクセス
タイムの速いメモリの時には、リセツト後のフリ
ツプフロツプFF1の出力が“L”であるからア
ンドゲートA1の出力は常時“L”である。よつ
て内部メモリアクセス時と同様にステート信号は
第2図に示すように、ステート信号T1,T2
T3,TEを順次発生する。このとき、メモリのア
クセスタイムは1ステート時間である。
When accessing external memory, external memory access signal EXT is always "H". When the memory has a fast access time, the output of the flip-flop FF1 after reset is "L", so the output of the AND gate A1 is always "L". Therefore, as in the case of internal memory access, the state signals are the state signals T 1 , T 2 , T 2 ,
T 3 and T E are generated sequentially. At this time, the memory access time is one state time.

次に、外部メモリのアクセスタイムが1ステー
ト以上の遅いメモリに対しての動作を第3図を用
いて説明する。
Next, the operation for a memory whose external memory has a slow access time of one state or more will be explained with reference to FIG.

この場合、予めプログラムでウエイト信号
WAITをアクテイブさせフリツプフロツプFF1
の出力を常時“H”とすると、アンドゲートA1
の出力は読出し信号RD、あるいは書込み信号
WRが“H”のときに“H”となる。これにより
シフトレジスタSF1の出力が“H”となり第3
図に示すようにステート信号はT1,TW,T2
T3,TEと順次発生する。即ち、ステート信号TW
が発生するためアクセスタイムが長くなる。この
ときメモリのアクセスタイムは2ステート時間で
ある。
In this case, the wait signal can be programmed in advance.
Activate WAIT and flip-flop FF1
If the output of is always “H”, AND gate A1
The output is read signal RD or write signal
It becomes "H" when WR is "H". As a result, the output of shift register SF1 becomes “H” and the third
As shown in the figure, the state signals are T 1 , T W , T 2 ,
T 3 and T E occur sequentially. That is, the state signal T W
occurs, resulting in longer access times. At this time, the memory access time is 2-state time.

外部メモリのアクセスタイムの遅いメモリとア
クセスタイムの速いメモリの2種類をアクセスす
るような場合にはプログラムでフリツプフロツプ
FF1の内容をセツトすることによりステート信
号TWを多く発生させてアクセスタイムを長くし
(第3図参照)、あるいはリセツト(NOWAIT)
することによりステート信号TWを発生させず、
アクセスタイムを短くするというようにして自由
に外部メモリアクセスタイムを選択することがで
きる。このようにCPUの動作速度を遅くするこ
となくプログラムにて自由に外部のアクセスタイ
ムの異つたメモリを選択することができるという
効果が得られる。
When accessing two types of external memory: memory with slow access time and memory with fast access time, use the flip-flop function in the program.
By setting the contents of FF1, more state signals T W are generated to lengthen the access time (see Figure 3), or a reset (NOWAIT) is generated.
By doing so, the state signal T W is not generated,
The external memory access time can be freely selected by shortening the access time. In this way, it is possible to freely select external memories with different access times in a program without slowing down the operating speed of the CPU.

〔発明の効果〕〔Effect of the invention〕

以上詳細に説明したように、本発明によれば、
マイクロコンピユータに外部メモリを付加し、ア
クセスするに際し、外部の付加回路を全く要せず
に、アクセスタイムの異つつた外部メモリを自由
に選択することのできるマイクロコンピユータの
ステート信号制御回路が得られるのでその効果は
大きい。
As explained in detail above, according to the present invention,
Provided is a state signal control circuit for a microcomputer that can freely select external memories with different access times without requiring any external additional circuitry when an external memory is added to the microcomputer and accessed. So the effect is big.

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

第1図は本発明の一実施例のブロツク図、第2
図は速いメモリをアクセスするときの実施例のス
テートの推移を説明するための波形図、第3図は
遅いメモリをアクセスするときの実施例のステー
トの推移を説明するための波形図である。 10……ステート信号発生回路、A1,A2,
A3……アンドゲート、FF1……ステート信号
制御フリツプフロツプ、NOR1……ノアゲート、
OR1,OR2,OR3……オアゲート、SF1〜
SF5……シフトレジスタ、T1,T2,T3,TE
TW……ステート信号。
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG.
The figure is a waveform diagram for explaining the state transition of the embodiment when accessing a fast memory, and FIG. 3 is a waveform diagram for explaining the state transition of the embodiment when accessing a slow memory. 10...State signal generation circuit, A1, A2,
A3...AND gate, FF1...state signal control flip-flop, NOR1...NOR gate,
OR1, OR2, OR3...Orgate, SF1~
SF5...Shift register, T 1 , T 2 , T 3 , T E ,
T W ...state signal.

Claims (1)

【特許請求の範囲】[Claims] 1 リングカウンタを構成し所定数のステート信
号を順次発生する縦属接続された複数のシフトレ
ジスタを有するステート信号発生回路と所定番目
のステート信号と、その次のステート信号との間
にウエイトステート信号を挿入して前記次のステ
ート信号の発生タイミングを遅らせるウエイトス
テート信号発生手段とを備えるステート信号制御
回路において、前記ウエイトステート信号発生手
段は、命令によりセツト、リセツト可能なフリツ
プフロツプと、このフリツプフロツプがセツト状
態でありかつ外部メモリに対するアクセスである
ときにアクテイブレベルをとる第1の信号を発生
する第1のゲート手段と、前記第1の信号が前記
アクテイブレベルをとりかつ前記ステート信号発
生回路からの前記所定番目のステート信号と等価
な信号が発生されているときにアクテイブレベル
をとる第2の信号を発生する第2のゲート手段
と、前記第2の信号のレベルを前記シフトレジス
タのシフト動作と同期して取り込み、前記第2の
信号の前記アクテイブレベルを取り込んだときに
前記ウエイトステート信号を発生する信号発生手
段と、前記第2の信号が前記アクテイブレベルで
ないときは前記等価な信号を出力し前記アクテイ
ブレベルのときは前記等価な信号の出力を停止す
る第3のゲート手段と、前記信号発生手段および
前記第3のゲート手段の出力を合成しその合成出
力を前記次のステート信号を発生するためのシフ
トレジスタに供給する第4のゲート手段とを有す
ることを特徴とするステート信号制御回路。
1. A state signal generation circuit that constitutes a ring counter and has a plurality of cascaded shift registers that sequentially generate a predetermined number of state signals, and a wait state signal between a predetermined state signal and the next state signal. In the state signal control circuit, the wait state signal generating means includes a flip-flop that can be set and reset by a command, and a flip-flop that can be set and reset by a command. a first gate means for generating a first signal that takes an active level when the state is in the state and an external memory is being accessed; second gate means for generating a second signal that takes an active level when a signal equivalent to a predetermined state signal is being generated; and synchronizing the level of the second signal with the shifting operation of the shift register. a signal generating means for generating the wait state signal when the active level of the second signal is taken in; and a signal generating means for outputting the equivalent signal when the second signal is not at the active level; a third gate means that stops outputting the equivalent signal when the signal is at an active level; and a third gate means for synthesizing the outputs of the signal generating means and the third gate means, and generating the next state signal using the combined output. and fourth gate means for supplying the signal to the shift register.
JP58128408A 1983-07-14 1983-07-14 State signal control circuit Granted JPS6020264A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58128408A JPS6020264A (en) 1983-07-14 1983-07-14 State signal control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58128408A JPS6020264A (en) 1983-07-14 1983-07-14 State signal control circuit

Publications (2)

Publication Number Publication Date
JPS6020264A JPS6020264A (en) 1985-02-01
JPH0532774B2 true JPH0532774B2 (en) 1993-05-17

Family

ID=14984039

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58128408A Granted JPS6020264A (en) 1983-07-14 1983-07-14 State signal control circuit

Country Status (1)

Country Link
JP (1) JPS6020264A (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5072550A (en) * 1973-10-29 1975-06-16
JPS5311807B2 (en) * 1975-02-07 1978-04-25
JPS5663656A (en) * 1979-10-25 1981-05-30 Nec Corp Information processing unit

Also Published As

Publication number Publication date
JPS6020264A (en) 1985-02-01

Similar Documents

Publication Publication Date Title
US6111814A (en) Synchronous DRAM memory with asynchronous column decode
US5835422A (en) Circuit and method for generating a control signal for a memory device
JP2925600B2 (en) Semiconductor storage device
JPS6346920B2 (en)
JPH04323746A (en) Microcontroller unit
JPH0532774B2 (en)
JPH0143392B2 (en)
JPH0246970B2 (en) MEMORIKA KUCHOHOSHIKI
JPH04299752A (en) Microprocessor
JPS636872B2 (en)
JPS6277659A (en) Data access controller for memory device
JP3343556B2 (en) Storage system
JP2961219B2 (en) Semiconductor integrated circuit
JP2774752B2 (en) Clock synchronous semiconductor memory device and access method therefor
JPH02137009A (en) External device control device
JPH0542525Y2 (en)
JP2912090B2 (en) Time slot interchange circuit
JPS6319027B2 (en)
JP2648017B2 (en) Microcomputer
JPH04195894A (en) Asynchronous ram
JPH0578118B2 (en)
JPH0423145A (en) Memory access control circuit for risc processor
JPS59142658A (en) Shared memory control system
JPH05233835A (en) Program wait control circuit
JPH02100750A (en) Controller for microprocessor