JPH0158528B2 - - Google Patents
Info
- Publication number
- JPH0158528B2 JPH0158528B2 JP57085975A JP8597582A JPH0158528B2 JP H0158528 B2 JPH0158528 B2 JP H0158528B2 JP 57085975 A JP57085975 A JP 57085975A JP 8597582 A JP8597582 A JP 8597582A JP H0158528 B2 JPH0158528 B2 JP H0158528B2
- Authority
- JP
- Japan
- Prior art keywords
- output
- flip
- timing
- cycle
- flop
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/04—Generating or distributing clock signals or signals derived directly therefrom
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Manipulation Of Pulses (AREA)
- Executing Machine-Instructions (AREA)
Description
【発明の詳細な説明】
この発明はタイミングパルス発生回路、特にマ
イクロコンピユータ(以下マイコンと略す)のマ
シンサイクル発生回路に有効で、タイミングパル
スの発生順位の変更がタイミングパルス発生回路
に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention is effective for timing pulse generation circuits, particularly machine cycle generation circuits of microcomputers (hereinafter referred to as microcomputers), and relates to timing pulse generation circuits in which the timing pulse generation order can be changed.
一般にマイコンにおいて使用される命令は一定
の語長ではなく、1バイト命令、2バイト命令等
があり、データ処理の実行単位であるマシンサイ
クルをいくつか経て命令の実行が完了する。この
マシンサイクル数は各命令により一様でないた
め、願昭55−92542号にて提案された情報処理装
置のように、同一マシンサイクルでは同様なデー
タ処理を実行するように構成し、必要なマシンサ
イクル信号だけを発生して、命令の実行を完了す
る方法が知られている。これらの場合マシンサイ
クルの発生順位は、命令解読のためのオペレーシ
ヨンコードフエツチサイクル、メモリのリードサ
イクル、演算サイクル、メモリのライトサイクル
である。しかし、この順位は命令によつて一様で
なく、インデツクスアドレシングのようにアドレ
スの演算結果でメモリのアドレスを決定する命令
等、演算サイクルの後にメモリのリードサイクル
が必要となる命令がある。従来この種の命令を実
現するために以下の方法があつた。 In general, instructions used in microcomputers do not have a fixed word length, but include 1-byte instructions, 2-byte instructions, etc., and execution of the instructions is completed after passing through several machine cycles, which are the execution unit of data processing. Since the number of machine cycles is not uniform depending on each instruction, the information processing device proposed in Application No. 55-92542 is configured to execute similar data processing in the same machine cycle. It is known to complete execution of an instruction by generating only a cycle signal. In these cases, the machine cycles are generated in the following order: an operation code fetch cycle for decoding an instruction, a memory read cycle, an operation cycle, and a memory write cycle. However, this order is not uniform depending on the instruction, and there are instructions that require a memory read cycle after an operation cycle, such as an instruction such as index addressing that determines a memory address based on the address operation result. Conventionally, the following methods have been used to implement this type of command.
第1は、演算サイクルのあとにもメモリリード
サイクルを設ける方法であり、第2は演算サイク
ルのあとのメモリライトサイクルでメモリリード
を実行する方法である。しかしながら、前記第1
の方法は、余分なメモリリードサイクルの発生回
路が必要となるためハードウエアの増大を伴う。
また第2の方法は、本来メモリライトサイクルで
あるマシンサイクル信号でメモリリードを制御す
ることになり、マシンサイクル信号をいろいろな
制御系統に転送したり、余分な制御回路を必要と
し、マシンサイクル信号の配線やハードウエアの
増大を招くと言う欠点があつた。 The first is a method in which a memory read cycle is also provided after an arithmetic cycle, and the second is a method in which a memory read is executed in a memory write cycle after an arithmetic cycle. However, the first
The above method requires an extra memory read cycle generation circuit, resulting in an increase in hardware.
In addition, in the second method, memory reads are controlled using machine cycle signals, which are originally memory write cycles, which requires transferring the machine cycle signals to various control systems and requiring extra control circuits. The drawback was that it required an increase in wiring and hardware.
この発明の目的は前述の欠点をなくし、簡単な
回路構成で、特にマイコンの命令実行に有効なマ
シンサイクルカウンタに使用できるタイミングパ
ルス発生回路を提供することである。 SUMMARY OF THE INVENTION An object of the present invention is to eliminate the above-mentioned drawbacks and to provide a timing pulse generation circuit that has a simple circuit configuration and can be used in a machine cycle counter that is particularly effective in executing instructions of a microcomputer.
本発明によるタイミングパルス発生回路は、タ
イミングパルス発生要求信号によつてセツトされ
る第1および第2のフリツプフロツプと、前記第
2のフリツプフロツプの反転出力および発生順次
指示信号を受ける第1の論理和ゲート手段と、前
記第1のフリツプフロツプの非反転出力および前
記第1の論理和ゲート手段の出力を受け第1のタ
イミングパルスを発生する第1の論理積ゲート手
段と、前記第1のタイミングパルスで前記第1の
フリツプフロツプをリセツトする手段と、前記第
1のフリツプフロツプの反転出力および前記発生
順次指示信号の反転信号を受ける第2の論理和ゲ
ート手段と、前記第2のフリツプフロツプの非反
転出力および前記第2の論理和ゲート手段の出力
を受け第2のタイミングパルスを発生する第2の
論理積ゲート手段と、前記第2のタイミングパル
スで前記第2のフリツプフロツプをリセツトする
手段とを備えている。 The timing pulse generation circuit according to the present invention includes first and second flip-flops that are set by a timing pulse generation request signal, and a first OR gate that receives the inverted output of the second flip-flop and a generation order instruction signal. means, first AND gate means for receiving a non-inverting output of said first flip-flop and an output of said first OR gate means and generating a first timing pulse; means for resetting the first flip-flop; second OR gate means for receiving the inverted output of the first flip-flop and the inverted signal of the sequential instruction signal; The second AND gate means receives the outputs of the two OR gate means and generates a second timing pulse, and means resets the second flip-flop with the second timing pulse.
以下この発明を図面を用いてその一実施例につ
いて説明する。第1図はこの発明の一実施例を説
明する回路接続図で、11〜13はセツトリセツ
ト型フリツプフロツプ(以下F/Fと略す)でクロ
ツクφに同期して出力される。14及び15はオ
アゲート、16〜19はアンドゲートである。C
11はタイミング発生順位変更要求信号であり、
C12〜C14はタイミング信号M2〜M4の発
生要求信号である。第2図及び第3図は第1図の
動作を説明するためのタイムチヤートである。ま
ず第2図を用いて第1図の回路の動作を説明す
る。タイミング発生要求信号C12〜C14がM
1のタイミングで論理“1”(以下単に“1”と
言う)になるとF/F11〜13がセツトされクロ
ツクφに同期してQ出力は“1”、出力は“0”
(以下単に“0”と言う。)となる。ここでタイミ
ング発生順位変更要求信号C11は“0”である
ため、オアゲート14は“1”となり、タイミン
グ信号M1の次にM2が出力される。タイミング
信号M2の出力中はF/F11の出力が“0”で
あるための他のタイミング信号は全て“0”とな
る。一方F/F11は、リセツト入力にはM2が入
力されているため、タイミング信号M2が“1”
になると、次のクロツクφに同期してQ出力が
“0”、出力が“1”となり、M3が出力され
る。同様にM4が出力され、全てのF/Fがリセツ
トされるとM1が出力される。以上のようにタイ
ミング発生順は、M1,M2,M3,M4,M1
となる。次に第3図のタイムチヤートを用いて説
明する。タイミング発生要求信号C12及びC1
3がM1のタイミングで“1”となりF/F11及
びF/F12がセツトされクロツクφに同期してQ
出力“1”、出力は“0”となる。ここでタイ
ミング発生順位変更要求信号C11が“1”であ
るため、オアゲート15が“1”となり、タイミ
ング信号M1の次にM3が出力される。またタイ
ミングM3の期間はオアゲート14が“0”であ
るためM2は“0”のままである。次にタイミン
グ信号M3が“1”になると、次のクロツクφに
同期してQ出力が“0”、出力が“1”となり、
M2が出力される。F/F13はリセツトされてい
ないためタイミング信号M4は出力されず、M2
の次にM1が出力される。以上のようにタイミン
グ発生順は、M1,M3,M2,M1となり、M
2とM3の発生順が変更される。 An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a circuit connection diagram illustrating an embodiment of the present invention, and reference numerals 11 to 13 are set-reset type flip-flops (hereinafter abbreviated as F/F) which output signals in synchronization with a clock φ. 14 and 15 are OR gates, and 16 to 19 are AND gates. C
11 is a timing generation order change request signal;
C12-C14 are generation request signals for timing signals M2-M4. 2 and 3 are time charts for explaining the operation of FIG. 1. First, the operation of the circuit shown in FIG. 1 will be explained using FIG. Timing generation request signals C12 to C14 are M
When the logic becomes "1" (hereinafter simply referred to as "1") at the timing of 1, F/Fs 11 to 13 are set, and in synchronization with clock φ, the Q output becomes "1" and the output becomes "0".
(hereinafter simply referred to as "0"). Here, since the timing generation order change request signal C11 is "0", the OR gate 14 becomes "1", and the timing signal M2 is output next to the timing signal M1. While the timing signal M2 is being output, the output of the F/F 11 is "0", so all other timing signals are "0". On the other hand, since M2 is input to the reset input of F/F11, the timing signal M2 is "1".
Then, the Q output becomes "0" and the output becomes "1" in synchronization with the next clock φ, and M3 is output. Similarly, M4 is output, and when all F/Fs are reset, M1 is output. As mentioned above, the timing generation order is M1, M2, M3, M4, M1
becomes. Next, explanation will be given using the time chart shown in FIG. Timing generation request signals C12 and C1
3 becomes "1" at the timing of M1, F/F11 and F/F12 are set, and Q is synchronized with clock φ.
The output is “1” and the output is “0”. Here, since the timing generation order change request signal C11 is "1", the OR gate 15 becomes "1", and the timing signal M3 is output next to the timing signal M1. Furthermore, during the period of timing M3, since the OR gate 14 is "0", M2 remains "0". Next, when the timing signal M3 becomes "1", the Q output becomes "0" and the output becomes "1" in synchronization with the next clock φ.
M2 is output. Since F/F13 has not been reset, timing signal M4 is not output, and M2
Next, M1 is output. As described above, the timing generation order is M1, M3, M2, M1, and M
The order of occurrence of 2 and M3 is changed.
この発明をマイコン等の情報処理装置のマシン
サイクルカウンタとして用いる場合、M1〜M4
をそれぞれ、オペコードフエツチサイクル、メモ
リリードサイクル、演算サイクル、メモリライト
サイクルに対応させる。このように割付けること
により、例えばメモリの内容と汎用レジスタの内
容との演算結果をメモリに転送する命令の場合
は、M1〜M4の順にタイミング信号を発生させ
る。またインデツクスアドレシングのようなアド
レス演算を伴う命令の場合は、メモリリードサイ
クルM2と演算サイクルM3の発生順を変更すれ
ばよいため、演算サイクルM3とメモリライトサ
イクルM4の間に余分なメモリリードサイクル発
生のためのハードウエアを設ける必要がなく、ま
た本来メモリライトサイクルに割付けられたM4
タイミングでメモリリードを実施するような制御
回路や、その制御回路へのマシンサイクル信号の
配線が不要となるため非常に有効である。 When using this invention as a machine cycle counter for an information processing device such as a microcomputer, M1 to M4
correspond to the opcode fetch cycle, memory read cycle, arithmetic cycle, and memory write cycle, respectively. By allocating in this manner, for example, in the case of an instruction to transfer the result of an operation between the contents of the memory and the contents of a general-purpose register to the memory, timing signals are generated in the order of M1 to M4. Furthermore, in the case of an instruction that involves address operation such as index addressing, the order of occurrence of memory read cycle M2 and operation cycle M3 can be changed, so an extra memory read cycle is required between operation cycle M3 and memory write cycle M4. There is no need to provide hardware for generation, and M4, which was originally assigned to the memory write cycle,
This is very effective because it eliminates the need for a control circuit that performs memory reads at timing and for wiring machine cycle signals to the control circuit.
第1図はこの発明の一実施例を示す回路図であ
り、第2図及び第3図は第1図の回路動作を説明
するためのタイムチヤートである。
11〜13……フリツプフロツプ、14,15
……オアゲート、16〜19……アンドゲート、
C11〜C14……制御信号、φ……クロツク。
FIG. 1 is a circuit diagram showing an embodiment of the present invention, and FIGS. 2 and 3 are time charts for explaining the operation of the circuit shown in FIG. 11-13...Flip-flop, 14,15
...Or Gate, 16-19...And Gate,
C11 to C14...control signal, φ...clock.
Claims (1)
トされる第1および第2のフリツプフロツプと、
前記第2のフリツプフロツプの反転出力および発
生順次指示信号を受ける第1の論理和ゲート手段
と、前記第1のフリツプフロツプの非反転出力お
よび前記第1の論理和ゲート手段の出力を受け第
1のタイミングパルスを発生する第1の論理積ゲ
ート手段と、前記第1のタイミングパルスで前記
第1のフリツプフロツプをリセツトする手段と、
前記第1のフリツプフロツプの反転出力および前
記発生順次指示信号の反転信号を受ける第2の論
理和ゲート手段と、前記第2のフリツプフロツプ
の非反転出力および前記第2の論理和ゲート手段
の出力を受け第2のタイミングパルスを発生する
第2の論理積ゲート手段と、前記第2のタイミン
グパルスで前記第2のフリツプフロツプをリセツ
トする手段とを備えるタイミングパルス発生回
路。1 first and second flip-flops set by a timing pulse generation request signal;
a first OR gate means receiving the inverted output of the second flip-flop and instruction signals in the order of generation; and a first OR gate means receiving the non-inverting output of the first flip-flop and the output of the first OR gate means; first AND gate means for generating a pulse; and means for resetting the first flip-flop with the first timing pulse;
second OR gate means receiving an inverted output of the first flip-flop and an inverted signal of the sequential instruction signal; and a non-inverting output of the second flip-flop and an output of the second OR gate means. A timing pulse generating circuit comprising: second AND gate means for generating a second timing pulse; and means for resetting the second flip-flop with the second timing pulse.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57085975A JPS58203532A (en) | 1982-05-21 | 1982-05-21 | Circuit for generating timing pulse |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57085975A JPS58203532A (en) | 1982-05-21 | 1982-05-21 | Circuit for generating timing pulse |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS58203532A JPS58203532A (en) | 1983-11-28 |
| JPH0158528B2 true JPH0158528B2 (en) | 1989-12-12 |
Family
ID=13873709
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP57085975A Granted JPS58203532A (en) | 1982-05-21 | 1982-05-21 | Circuit for generating timing pulse |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS58203532A (en) |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5412656A (en) * | 1977-06-30 | 1979-01-30 | Toshiba Corp | Sequence control circuit |
-
1982
- 1982-05-21 JP JP57085975A patent/JPS58203532A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS58203532A (en) | 1983-11-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS58182758A (en) | Arithmetic controller | |
| US4566062A (en) | Timing control system in data processor | |
| JP2758624B2 (en) | Speed control method of micro program | |
| JPS6315628B2 (en) | ||
| JP2544015B2 (en) | Micro program processor | |
| JPS6326907B2 (en) | ||
| JPH01273132A (en) | Microprocessor | |
| JPH0561660B2 (en) | ||
| SU985791A1 (en) | Microprogram processor having checking | |
| JPS6235142B2 (en) | ||
| RU1789987C (en) | Direct memory access controller | |
| SU1608700A1 (en) | Matrix computer system | |
| JP2719227B2 (en) | Processing equipment | |
| JPS6368924A (en) | microprocessor | |
| JPH0131218B2 (en) | ||
| JPS6217840A (en) | Microprogram control system based upon attribution flag | |
| JPS62147545A (en) | Transfer command processing method in information processing equipment | |
| JPS6111493B2 (en) | ||
| JPS6191724A (en) | microprogram controller | |
| JPS6072055A (en) | programmable controller | |
| JPS63208124A (en) | Microprogram controller | |
| JPH02139652A (en) | Microcomputer | |
| JPH0243626A (en) | Apparatus for controlling execution speed of computer processor | |
| JPS60117334A (en) | Selection system of address information | |
| JPS63316130A (en) | Data editing processing device |