JPH0467643B2 - - Google Patents

Info

Publication number
JPH0467643B2
JPH0467643B2 JP61060937A JP6093786A JPH0467643B2 JP H0467643 B2 JPH0467643 B2 JP H0467643B2 JP 61060937 A JP61060937 A JP 61060937A JP 6093786 A JP6093786 A JP 6093786A JP H0467643 B2 JPH0467643 B2 JP H0467643B2
Authority
JP
Japan
Prior art keywords
clock
cpu
wait
signal
access
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
JP61060937A
Other languages
Japanese (ja)
Other versions
JPS62221719A (en
Inventor
Kyoshi Sudo
Toshihiro Sakai
Toshiharu Ooshima
Sadanari Sugiura
Akinao Tanigawa
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP61060937A priority Critical patent/JPS62221719A/en
Publication of JPS62221719A publication Critical patent/JPS62221719A/en
Publication of JPH0467643B2 publication Critical patent/JPH0467643B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Description

【発明の詳細な説明】 (概要〕 クロツク制御方式であつて、システムクロツク
とCPUクロツクとを同じクロツク源から生成す
ることにより、CPUが周辺装置へアクセスしよ
うとして待ちが生じた場合にCPUクロツクの同
期をシステムクロツクの一周期単位で必要なだけ
延長しようとするものである。
[Detailed Description of the Invention] (Summary) This is a clock control method in which the system clock and CPU clock are generated from the same clock source, so that when the CPU waits while trying to access a peripheral device, the CPU clock is The aim is to extend the synchronization of the system clock for as long as necessary in units of one cycle of the system clock.

〔産業上の利用分野〕[Industrial application field]

本発明は、クロツクにより計算機システムを同
期させるクロツク制御方式に関する。
The present invention relates to a clock control method for synchronizing computer systems using clocks.

CPUとその周辺装置とのデータのやりとりの
方式には同期方式と非同期方式がある。
There are synchronous and asynchronous methods for exchanging data between the CPU and its peripheral devices.

同期方式はCPUとその周辺装置が同一クロツ
クで制御される方式であり、同同期方式はCPU
とその周辺装置が全く別々のクロツクで制御され
かつデータ転送は応答確認方式により行なわれる
方式である。
The synchronous method is a method in which the CPU and its peripheral devices are controlled by the same clock;
This is a method in which the controller and its peripheral devices are controlled by completely separate clocks, and data transfer is performed using a response confirmation method.

このうち、非同期方式はCPUと周辺装置の処
理速度の違いを吸収するのには有用であるが、制
御方式が非常に複雑になりやすく、また応答確認
のための制御信号に波形割れが生じると誤動作が
起こるなど問題点が多い。これに対し同期方式は
制御方式が簡単であり。CPUと周辺装置間のデ
ータのやりとりにはこの同期方式がよく使用され
る。
Among these methods, the asynchronous method is useful for absorbing the difference in processing speed between the CPU and peripheral devices, but the control method tends to be very complicated, and it may cause waveform distortion in the control signal for response confirmation. There are many problems such as malfunctions. In contrast, the synchronous method has a simple control method. This synchronization method is often used to exchange data between the CPU and peripheral devices.

しかし、同期方式はシステム全体の同期クロツ
クの周期を、CPUの処理速度あるいは周辺装置
の処理速度もしくはCPUと周辺装置間のデータ
転送の速度のいずれかの最も遅いものに合わせな
ければならない。このため、制御方式が簡単でか
つ処理効率の良い同期方式が要求されている。
However, the synchronization method requires that the period of the synchronization clock of the entire system be adjusted to the slowest of the processing speeds of the CPU, the processing speeds of peripheral devices, or the data transfer speeds between the CPU and peripheral devices. For this reason, a synchronization method with a simple control method and high processing efficiency is required.

本発明は、かかる同期方式を採用した計算機シ
ステムにおけるクロツク制御方式に関する。
The present invention relates to a clock control method in a computer system employing such a synchronization method.

〔従来の技術〕 従来のクロツク制御方式は、第6図乃至第9図
に基いて、行われていた。第6図乃至第9図は、
それぞれ従来技術によるシステム構成図、メモリ
アクセスのタイムチヤート、クロツク生成回路、
クロツク生成回路のタイムチヤートを示してい
る。
[Prior Art] A conventional clock control system has been implemented based on FIGS. 6 to 9. Figures 6 to 9 are
System configuration diagram, memory access time chart, clock generation circuit, and
This shows a time chart of the clock generation circuit.

第6図において、システムを制御するCPU
1′は、クロツク生成回路2′が生成する2相のク
ロツクACLK,BCLKで動作している。この
ACLK,BCLKは、第7図A,Bに示すように互
いに位相が180゜ずれている。
In Figure 6, the CPU that controls the system
1' is operated by two-phase clocks ACLK and BCLK generated by a clock generation circuit 2'. this
ACLK and BCLK are out of phase with each other by 180 degrees, as shown in FIGS. 7A and 7B.

CPU1′はあるBCLKから次のBCLKの間まで
にメモリからフエツチした命令を次のACLKから
ACLKまでの間で実行する。但しアドレス、デ
ータバスを用いて実行する命令、例えばメモリ
オペランドアクセスなどは、次の命令のフエツチ
の後のBCLK〜BCLK間で行なう。CPU1′は、
命令フエツチ及びオペランドアクセスのためのメ
モリアクセス要求信号MRQ2を外部インタフエ
ース信号として、メモリアクセスサイクルの前の
ACLKからBCLKまでの間にプロセツサ外部のク
ロツク生成回路2′へ出力している(第7図E)。
CPU 1' fetches the instructions fetched from memory between one BCLK and the next BCLK from the next ACLK.
Execute until ACLK. However, instructions executed using the address and data buses, such as memory operand access, are executed between BCLK and BCLK after the fetch of the next instruction. CPU1' is
The memory access request signal MRQ2 for instruction fetch and operand access is used as an external interface signal and is sent before the memory access cycle.
It is output to the clock generation circuit 2' outside the processor between ACLK and BCLK (Fig. 7E).

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記従来技術の第6図において、メモリをアク
セスするのはCPU1′の他に、DMA制御回路
4′及びリフレツシユ要求制御回路5′があり、そ
れぞれメモリアクセス要求信号MRQ1,MRQ
2を優先順位制御回路3′へ出力する(第7図C,
D)。今、優先順位をMRQ0>MRQ1>MRQ
2の順とする。この場合、優先順位制御回路3′
は、MRQ0,MRQ1,MRQ2をBCLK同期で
受付け(第7図B〜E)、上記の順で優先順位を
とつて許可信号MACK0,MACK1,MACK2
を返し(第7図G〜I)、メモリアクセス権を制
御していた。
In FIG. 6 of the above-mentioned prior art, in addition to the CPU 1', there are a DMA control circuit 4' and a refresh request control circuit 5', which access memory access requests MRQ1 and MRQ, respectively.
2 to the priority control circuit 3' (Fig. 7C,
D). Now, prioritize MRQ0>MRQ1>MRQ
In order of 2. In this case, priority control circuit 3'
accepts MRQ0, MRQ1, and MRQ2 in BCLK synchronization (Figure 7 B to E), prioritizes them in the above order, and issues permission signals MACK0, MACK1, and MACK2.
(FIG. 7 G to I) and controlled memory access rights.

例えば、MRQ0とMRQ2が同時に入力され
た場合は、先にMACK0をBCLK〜BCLK間に
出力し(第7図G)、リフレツシユアドレスをメ
モリへ送出させ(第7図J)、次のBCLK〜
BCLKでMACK2を出力し(第7図I)、CPU
1′のアドレスとデータをメモリへ送出させてい
た(第7図J,K)。
For example, if MRQ0 and MRQ2 are input at the same time, MACK0 is first output between BCLK and BCLK (Figure 7G), the refresh address is sent to the memory (Figure 7J), and the next BCLK~
Output MACK2 with BCLK (I in Figure 7), and
1' address and data were sent to memory (Figure 7 J, K).

しかし、CPU1′からのメモリアクセスは、リ
フレツシユ期間中待たされるので、メモリリクエ
スト信号を保持するためにMRQ2をFFで保持し
た信号MRQ2Fの生成が必要である。また、
CPU1′のメモリアクセスがリフレツシユの後に
行なわれるので(第7図J)、待たされている間
ACLKとBCLKのペアがCPU1′に入力されるの
を抑止していた(第7図A,B)。
However, since memory access from the CPU 1' is made to wait during the refresh period, it is necessary to generate a signal MRQ2F in which MRQ2 is held at FF in order to hold the memory request signal. Also,
Since memory access of CPU1' is performed after refreshing (Fig. 7J), while waiting
The ACLK and BCLK pair was inhibited from being input to CPU 1' (Fig. 7A, B).

このように、CPU1′のメモリアクセスは、通
常はBCLK〜BCLK間の1サイクルで済むが、他
のアクセスと重なると2サイクル分以上の時間が
必要であつた。
In this way, memory access by the CPU 1' normally takes only one cycle between BCLK and BCLK, but if it overlaps with other accesses, it takes more than two cycles.

従つて、従来はCPUのシステムメモリへのア
クセスタイムが長くCPUの処理速度が低下する
という問題点があつた。
Therefore, in the past, there was a problem that the access time of the CPU to the system memory was long and the processing speed of the CPU was reduced.

さらに従来は、メモリアクセスサイクルを、
CPU1′のメモリアクセスサイクルに合わせて、
リフレツシユ、DMAの場合も常にBCLK〜
BCLK間としていたため、メモリアクセス要求信
号が上がるタイミングによつては第7図G,Kの
ように、メモリアクセスサイクルに空きが生じる
場合があり、メモリが有効に使われていないとい
う問題点があつた。
Furthermore, conventionally, memory access cycles are
According to the memory access cycle of CPU1',
Always BCLK for refresh and DMA
BCLK, depending on the timing at which the memory access request signal rises, there may be gaps in the memory access cycle as shown in Figure 7G and K, which causes the problem that the memory is not being used effectively. It was hot.

一方、従来技術では、ACLK〜ACLK間または
BCLK〜BCLK間の周期を400nsとしていた(第
7図A,B)。これはCPU1′の1命令実行のサ
イクルタイムに依存していたためである。また、
この400nsという時間はダイナミツクRAMをア
クセスする際のサイクルタイムともよく適合して
いたためである。例えば16Kbitダイナミツク
RAMの素子自体のアクセスタイムは150ns前後
のものが多い。アクセス元からのアドレス送出時
間が100ns、データが読み出されてECC回路でチ
エツクと訂正がされ、アクセス元に転送されるま
でが150nsとすると、アクセス元にとつてのメモ
リアクセスタイムは400nsとなり、大体CPU1′
のサイクルタイムと一致する。
On the other hand, in the conventional technology, between ACLK and ACLK or
The cycle between BCLK and BCLK was set to 400 ns (Fig. 7A, B). This is because it depends on the cycle time of CPU 1' for executing one instruction. Also,
This is because this time of 400 ns matched well with the cycle time when accessing dynamic RAM. For example, 16Kbit dynamic
The access time of the RAM element itself is often around 150ns. If the address transmission time from the access source is 100 ns, and the time from when data is read, checked and corrected by the ECC circuit, and transferred to the access source is 150 ns, the memory access time for the access source will be 400 ns. Approximately CPU1'
cycle time.

しかし、最近の技術の進歩により、LSIは一層
高集積化、高速化に向かつている。特にCMOS
の技術進歩はめざましく、前記従来技術のCPU
1′に用いていたマイクロプロセツサのサイクル
タイムは、400nsから半分の200nsに向上した。と
ころがダイナミツクRAMは集積度こそ16Kbitか
ら256Kbitに16倍に向上したが素子自体のアクセ
スタイムはそれほど高速になつておらず、相変わ
らず120ns〜150nsのものが多い。これは集積度が
向上するとアドレスデコード時間が大きくなるか
らである。またメモリへアドレスとデータを転送
するための周辺装置の処理速度もあまり速くなつ
ていない。そのためCPUからのメモリアクセス
タイムは依然として400ns程度である。
However, with recent technological advances, LSIs are becoming more highly integrated and faster. Especially CMOS
The technological progress has been remarkable, and the conventional technology CPU
The cycle time of the microprocessor used in 1' was halved from 400ns to 200ns. However, although the integration density of dynamic RAM has increased 16 times from 16Kbit to 256Kbit, the access time of the element itself has not become much faster, and is still often 120ns to 150ns. This is because the address decoding time increases as the degree of integration increases. Also, the processing speed of peripheral devices for transferring addresses and data to memory has not become very fast. Therefore, the memory access time from the CPU is still around 400ns.

即ち、CPU1′自身がサイクル200nsで動かせ
るのに、メモリへのアクセスタイムが遅いために
サイクルを400nsにしなければならないという不
都合がある。従つて、従来はシステム全体のスル
ープツトが低下するという問題点があつた。
That is, although the CPU 1' itself can run in cycles of 200 ns, the cycle has to be set to 400 ns because the memory access time is slow. Therefore, conventionally there has been a problem that the throughput of the entire system is reduced.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の目的は、上記問題点を解決しCPUの
処理速度を向上させ、メモリの使用効率を向上さ
せると共に周辺速度の処理速度も高めることによ
りシステム全体のスループツトの向上を図ること
にある。
An object of the present invention is to solve the above problems and improve the throughput of the entire system by increasing the processing speed of the CPU, improving the efficiency of memory use, and increasing the processing speed of peripheral speeds.

そのための手段は、システムクロツクとCPU
クロツクとを同じクロツク源から生成することに
より、CPUが周辺装置へアクセスしようとして
待ちが生じた場合にCPUクロツクの同期をシス
テムクロツクの一周期単位で必要なだけ延長しよ
うとするものである。
The means to do this are the system clock and CPU.
By generating the clock and the clock from the same clock source, the synchronization of the CPU clock can be extended for as long as necessary in one cycle of the system clock when a wait occurs when the CPU attempts to access a peripheral device.

〔作用〕[Effect]

上記のとおり、本発明によれば計算機システム
全体を同期するシステムクロツクとは別個に
CPUのみを同期するCPUクロツクを生成し、
CPUクロツクを適宜制御できる。
As mentioned above, according to the present invention, the system clock that synchronizes the entire computer system is
Generates a CPU clock that synchronizes only the CPU,
CPU clock can be controlled appropriately.

従つて、CPUのシステムメモリへのアクセス
タイムが減少するのでCPUの処理速度とメモリ
の使用効率とが向上する。また他のCPU、DMA
などの処理速度も速くなるのでシステム全体のス
ループツトも向上する。
Therefore, the time required for the CPU to access the system memory is reduced, thereby improving the processing speed of the CPU and the efficiency of memory usage. Also other CPU, DMA
As the processing speed of the above functions becomes faster, the throughput of the entire system also improves.

〔実施例〕〔Example〕

以下、本発明を、実施例により添付図面を参照
して、説明する。
The invention will now be explained by way of example with reference to the accompanying drawings.

第1図は本発明によるシステム構成図、第2図
は本発明に使用されるCPUのタイムチヤート、
第3図は本発明によるメモリアクセスのタイムチ
ヤート、第4図は本発明によるクロツク生成回
路、第5図は本発明によるクロツク生成回路のタ
イムチヤートである。
Figure 1 is a system configuration diagram according to the present invention, Figure 2 is a time chart of the CPU used in the present invention,
FIG. 3 is a time chart of memory access according to the present invention, FIG. 4 is a clock generation circuit according to the present invention, and FIG. 5 is a time chart of the clock generation circuit according to the present invention.

第1図の実施例はCPU1、クロツク生成回路
2、優先順位制御回路3、DMA制御信号4、リ
フレツシユ要求制御回路5、クロツク源6、
CPU専用ローカルメモリ7、CPUアドレス・デ
ータ転送制御及びECC回路11、DMAアドレ
ス・データ転送制御及びECC回路41、リフレ
ツシユアドレス送出制御回路51から成る。
The embodiment shown in FIG. 1 includes a CPU 1, a clock generation circuit 2, a priority control circuit 3, a DMA control signal 4, a refresh request control circuit 5, a clock source 6,
It consists of a CPU-dedicated local memory 7, a CPU address/data transfer control and ECC circuit 11, a DMA address/data transfer control and ECC circuit 41, and a refresh address sending control circuit 51.

図中、はCPUアドレスバス、はCPUデー
タバス、はDPAアドレスバス、はDMAデー
タバス、はリフレツシユアドレスバスである。
In the figure, is the CPU address bus, is the CPU data bus, is the DPA address bus, is the DMA data bus, and is the refresh address bus.

従来と異なるのは、システム全体の動作(第3
図)と、CPU専用ローカルメモリ7を設けたこ
とと、クロツク生成回路(第4図)の動作(第5
図)である。
What is different from the conventional system is the operation of the entire system (the third
(Fig. 4), the provision of a CPU-dedicated local memory 7, and the operation of the clock generation circuit (Fig. 4) (Fig. 5).
Figure).

上記、CPU専用ローカルメモリ7は高速のス
タテイツクRAMで構成され、CPU1が短いサイ
クル200nsの高速でアクセスできるように設けた
ものである。これに対し、CPU1と回路4,5
との共通メモリへは長いサイクルの500nsでアク
セスする。
The CPU-dedicated local memory 7 described above is composed of a high-speed static RAM, and is provided so that the CPU 1 can access it at high speed in a short cycle of 200 ns. On the other hand, CPU1 and circuits 4 and 5
The common memory is accessed in a long cycle of 500ns.

即ち、CPU専用ローカルメモリ7はCPU1が
頻繁にアクセスする命令コードなどを格納してお
くものであり、CPU1がサイクル200nsでアクセ
スできるようCPU1の近くに配置されている。
但しコストの関係上、必要最小限の容量にしてお
き、命令コードなど以外のデータは従来と同様に
他に共用するシステムの上述したメモリに格納し
ておく。
That is, the CPU-dedicated local memory 7 stores instruction codes and the like that are frequently accessed by the CPU 1, and is arranged near the CPU 1 so that the CPU 1 can access them in a cycle of 200 ns.
However, due to cost considerations, the capacity is kept to the minimum necessary, and data other than instruction codes and the like are stored in the above-mentioned memory of a system that is shared with other systems, as in the past.

以下、上記構成を有する第1図の実施例の動作
を説明する。本実施例ではメモリアクセス要求信
号MRQ0,MRQ1,MRQ2は100nsのクロツ
クSCLKで同期してサンプリングし、受付けられ
た時点で即座にアクセスを許すようにする(第3
図A)。
The operation of the embodiment shown in FIG. 1 having the above configuration will be explained below. In this embodiment, the memory access request signals MRQ0, MRQ1, and MRQ2 are sampled in synchronization with the 100 ns clock SCLK, and access is immediately permitted when they are accepted (3rd
Figure A).

このため、従来はMRQ2とMRQ0が重なつ
た場合、CPUのメモリアクセスは800nsがかつて
いたが(第7図K)。本実施例では、MRQ1に
受付けられた時点(第3図のt1)で、アクセスが
開始されるため、CPU1はその400ns後からアク
セスでき(第3図A)、待ち時間は100nsのみで、
CPUから見ると500nsでアクセスできるようにな
つた(第3図M)。
For this reason, in the past, when MRQ2 and MRQ0 overlapped, the CPU memory access time used to be 800ns (Fig. 7K). In this embodiment, since access is started at the time of acceptance by MRQ1 ( t1 in Figure 3), CPU1 can access from 400ns later (A in Figure 3), and the waiting time is only 100ns.
From the CPU's perspective, it can now be accessed in 500ns (Figure 3 M).

この動作に合わせてACLK,BCLKは通常
200nsである周期を、500nsに延ばすようにクロツ
ク生成回路2で制御している(第3図B,C)。
ACLK and BCLK are normally set according to this operation.
The clock generation circuit 2 is controlled to extend the period of 200 ns to 500 ns (Fig. 3B and C).

即ち、今、CPU専用のローカルメモリ7を
64KBとし、64KBを越えるアドレスが出力され
る場合にのみMRQ2が出力され、共用のシステ
ムメモリへアクセスするようにする(第1図)。
CPU1からMRQ2が出力されると、それがクロ
ツク生成回路2にも入力され、ACLK,BCLKの
対のCPUへの入力が一時中断する(第1図,第
3図B,C,G,第4図)。MRQ2が受付けら
れ、MACK2が400ns間オンになつて、最後の
100nsで中断していたACLK,BCLKの入力が解
除され、CPUへ再入力される(第1図,第3図
B,C,K、第4図)。他のメモリアクセス要求
信号MRQ0,MRQ1と競合した場合は、その
つど待たされたあとMACK2がオンになるので、
ACLK,BCLKの対は、400nsから100ns単位で必
要なだけ周期が延ばされることになる(第3図
B,C)。
In other words, the local memory 7 dedicated to the CPU is now
64KB, and MRQ2 is output only when an address exceeding 64KB is output, thereby accessing the shared system memory (Figure 1).
When MRQ2 is output from CPU 1, it is also input to clock generation circuit 2, and input to the ACLK and BCLK pairs to the CPU is temporarily interrupted (Figures 1, 3, B, C, G, and 4). figure). MRQ2 is accepted, MACK2 is turned on for 400ns, and the final
The input of ACLK and BCLK, which had been interrupted after 100 ns, is canceled and re-inputted to the CPU (Fig. 1, B, C, K in Fig. 3, Fig. 4). If there is a conflict with other memory access request signals MRQ0 and MRQ1, MACK2 will turn on after waiting each time.
The period of the ACLK and BCLK pair is extended as necessary from 400 ns to 100 ns (Fig. 3, B and C).

次に本発明によるクロツク生成回路2の構成及
び動作を第4図及び第5図に基づいて説明する。
Next, the configuration and operation of the clock generation circuit 2 according to the present invention will be explained based on FIGS. 4 and 5.

同図において、FF1とFF3、FF5からFF7
まではDタイプのフリツプフロツプ、FF2とFF
4はJKタイプのフリツプフロツプである。
In the same figure, FF1 and FF3, FF5 to FF7
Up to D type flip-flop, FF2 and FF
4 is a JK type flip-flop.

この回路の動作の特徴は、ECCエラーが検出
された場合のBCLKのパルス幅の引き延ばし方式
にある。
A feature of this circuit's operation is the way the BCLK pulse width is extended when an ECC error is detected.

即ち、CPU1が外部の共通メモリ(第1図)
のデータをリードの場合、リードデータに訂正可
能なECCエラー(ECCER)があれば、回路11
のECC機能によりデータを訂正してからCPU1
に送るが、訂正時間が通常100nsほどかかる。す
なわちECCエラーがあつた場合はメモリアクセ
スサイクルは500nsになる。通常はエラー訂正時
間を見込んでメモリサイクル時間を決めることは
せず、エラーがない場合のサイクル時間を通常の
メモリサイクル時間(この場合400ns)とし、
ECCエラーがあつた場合のみそのアクセスのサ
イクル時間を100ms延長することは従来のクロツ
ク生成回路(第8図)でも行なつていた(第9図
F,K)。
In other words, CPU1 is an external common memory (Figure 1)
When reading data, if there is a correctable ECC error (ECCER) in the read data, circuit 11
After correcting the data using the ECC function of
However, the correction time usually takes about 100ns. In other words, if an ECC error occurs, the memory access cycle will be 500ns. Normally, the memory cycle time is not determined by taking into account the error correction time, but the cycle time when there is no error is set as the normal memory cycle time (400ns in this case).
The conventional clock generation circuit (FIG. 8) extends the access cycle time by 100 ms only when an ECC error occurs (FIGS. 9F and K).

ところがECCエラーはCPU1がBCLKにより
リードデータを取り込む直前にわかるため、この
時はすでにデータ取り込みのためのBCLKの前縁
が立ち上がつた後であり、もはや抑止できないタ
イミングにある。(ECCエラーがあつた時、11の
ECC回路からはECCER信号が、エラーがなかつ
た時にBCLKが立ち下がる直前のタイミングで立
上り、源クロツクの1周期以上オンになる) このため、従来は、源クロツクとしてACLK,
BCLKの2倍の周波数のクロツク(第9図B,
F)を用い、分周することによりACLK,BCLK
のパルス幅のクロツクを作り、ECCエラーがあ
つた時は第8図のFF1′のJ,K入力を“0”に
して源クロツクCLK1が入力されても出力が反
転しないようにし(第9図Bのα)、BCLKのパ
ルス幅をCLK1の1周期分延長するようにして
いる(第9図Fのβ)。
However, since the ECC error is detected just before the CPU 1 takes in the read data using BCLK, this time is already after the leading edge of BCLK for data taking has risen, and the timing is such that it can no longer be suppressed. (When an ECC error occurs, 11
(When there is no error, the ECCER signal from the ECC circuit rises at the timing just before BCLK falls, and is turned on for more than one cycle of the source clock.) For this reason, conventionally, ACLK,
A clock with twice the frequency of BCLK (Figure 9B,
ACLK, BCLK by dividing the frequency using
Create a clock with a pulse width of α) in B), the pulse width of BCLK is extended by one cycle of CLK1 (β in FIG. 9F).

しかし、この方式では源クロツクの周期とし
て、ACLK,BCLKのパルス幅のものが必要であ
る。本発明の場合、ACLK,BCLKのパルス幅は
50nsであるから、従来方式を適用しようとすると
周波数20MHzの超高周波数の水晶発振器が必要と
なり、コストが高くつく。
However, this method requires the pulse width of ACLK and BCLK as the period of the source clock. In the case of the present invention, the pulse width of ACLK and BCLK is
Since it is 50 ns, applying the conventional method would require an ultra-high frequency crystal oscillator with a frequency of 20 MHz, resulting in high costs.

これを避け、周波数10HMzの水晶発振器を使
用するため、本発明では源クロツクの周期を
ACLK,BCLKのパルス幅の半分のもの、すなわ
ち、源クロツクのパルス幅がACLK,BCLKのパ
ルス幅と同一のものを使えるようにしている(第
5図A,E,F)。
In order to avoid this and use a crystal oscillator with a frequency of 10 HMz, the frequency of the source clock is reduced in the present invention.
It is possible to use a pulse width that is half the pulse width of ACLK and BCLK, that is, a source clock whose pulse width is the same as that of ACLK and BCLK (Fig. 5 A, E, and F).

本発明では、第5図に示すように、ECCエラ
ーがあつたときに(ECCER)=“1”,FF2のJ.K
入力を、ACLK,BCLK抑止の時と同様に“0”
にしてFF2の出力が反転しないようにすると共
に(第5図Bのa)、ECCエラー信号ECCR自身
をFF2のQ2出力とSCLKとをアンドした信号
とオアしてBCLKとすることにより、BCLKのパ
ルス幅をシステムクロツクSCLKの周期100nsだ
け延長し、50nsを150nsとしている(第5図Eの
b)。
In the present invention, as shown in FIG. 5, when an ECC error occurs, (ECCER) = "1", JK of FF2
Set the input to “0” as in the case of ACLK and BCLK suppression.
to prevent the output of FF2 from being inverted (a in Figure 5B), and by ORing the ECC error signal ECCR itself with a signal obtained by ANDing the Q2 output of FF2 and SCLK to obtain BCLK. The pulse width is extended by the period of the system clock SCLK by 100 ns, so that 50 ns is changed to 150 ns (b in Fig. 5E).

上記のように、本発明によれば、たとえCPU
1が常にシステムメモリをアクセスするような場
合でも、第7図の従来技術のタイムチヤートと第
3図の本発明のタイムチヤートを見比べればわか
るように、メモリアクセス要求信号が重なつた場
合のCPU1のメモリのアクセスタイム及びメモ
リ使用効率のどちらも向上している(第3図L,
M、第7図J,K)。さらに、本発明によれば、
CPU1がローカルメモリ7を用いる時は、CPU
1のサイクルタイムをシステムメモリのアクセス
サイクルと無関係にCPU1の実力自体で決定で
き、またシステムメモリは使わないのでDMAの
メモリ使用効率も向上し、また、マルチプロセツ
サシステムのように他のCPUもシステムメモリ
を共用する場合に特に有効である。
As mentioned above, according to the present invention, even if the CPU
1 always accesses the system memory, as can be seen by comparing the time chart of the prior art shown in FIG. 7 and the time chart of the present invention shown in FIG. Both the memory access time and memory usage efficiency of CPU1 have improved (Figure 3L,
M, Figure 7 J, K). Furthermore, according to the present invention,
When CPU1 uses local memory 7, the CPU
The cycle time of CPU 1 can be determined by the power of CPU 1, regardless of the system memory access cycle, and since the system memory is not used, the memory usage efficiency of DMA is also improved. This is especially useful when sharing system memory.

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

本発明によれば、前述したようにCPUのシス
テムメモリへのアクセスタイムが減少し、CPU
の処理速度が向上すると共に、メモリ使用効率が
向上し、他プロセツサ、DMAなどの処理速度も
大きくなるのでシステム全体のスループツトの向
上においても効果がある。
According to the present invention, as described above, the access time of the CPU to the system memory is reduced, and the CPU
In addition to improving the processing speed of the processor, the efficiency of memory use is also improved, and the processing speed of other processors, DMA, etc. is also increased, which is effective in improving the throughput of the entire system.

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

第1図は本発明によるシステム構成図、第2図
は本発明に使用されるCPUのタイムチヤート、
第3図は本発明によるメモリアクセスのタイムチ
ヤート、第4図は本発明によるクロツク生成回
路、第5図は本発明によるクロツク生成回路のタ
イムチヤート、第6図は従来技術によるシステム
構成図、第7図は従来技術によるメモリアクセス
のタイムチヤート、第8図は従来技術によるクロ
ツク生成回路、第9図は従来技術によるクロツク
生成回路のタイムチヤート。 1…CPU、2…クロツク生成回路、3…優先
順位制御回路、4…DMA制御回路、5…リフレ
ツシユ要求制御回路、6…クロツク源、7…
CPU専用ローカルメモリ。
Figure 1 is a system configuration diagram according to the present invention, Figure 2 is a time chart of the CPU used in the present invention,
3 is a time chart of memory access according to the present invention, FIG. 4 is a clock generation circuit according to the present invention, FIG. 5 is a time chart of a clock generation circuit according to the present invention, and FIG. 6 is a system configuration diagram according to the prior art. FIG. 7 is a time chart of a memory access according to the prior art, FIG. 8 is a clock generation circuit according to the prior art, and FIG. 9 is a time chart of a clock generation circuit according to the prior art. DESCRIPTION OF SYMBOLS 1...CPU, 2...Clock generation circuit, 3...Priority control circuit, 4...DMA control circuit, 5...Refresh request control circuit, 6...Clock source, 7...
Local memory dedicated to the CPU.

Claims (1)

【特許請求の範囲】 1 CPUとその周辺装置とから構成される計算
機システムとを、クロツク生成回路により生成さ
れるクロツクにより、同期させるクロツク制御方
式において、 計算機システム全体の同期をとるためのシステ
ムクロツクと、中央処理装置のみの同期をとる
CPUクロツクとを同一のクロツク源から生成し、 上記システムクロツクを常に一定の周期に保持
し、CPUが周辺装置をアクセスする場合に待ち
が生じないときは、 CPUクロツクを該システムクロツクの自然数
倍の一定の周期に保持し、 待ちを生じるアクセスの場合は、待ちを生じる
ことを示す特定の信号を前記クロツク生成回路に
入力し、該クロツク生成回路では該特定の信号に
よりクロツク抑止信号をオンにして、CPUクロ
ツクの発生抑止を開始すると共に、該特定の信号
を周辺装置へのアクセスの競合を制御する優先順
位制御回路に入力し、該特定の信号に対する優先
順位制御回路の応答信号を前記クロツク生成回路
に入力することにより、前記クロツク抑止信号を
オフにしてCPUクロツクの発生抑止を解除して
CPUクロツクの再発生を行なうことにより、そ
のアクセスサイクルに限つてCPUクロツクを該
システムクロツクの一周期単位で引き延ばすこと
を特徴とするクロツク制御方式。 2 上記CPUクロツクの周期を引き延ばす場合、
次のクロツクパルスの前縁が立ち上がる前に待ち
が検出された時は、前記クロツク抑止信号をオン
にすることにより、パルス幅を一定にして、次の
クロツクパルスの発生をシステムクロツクの一周
期単位で遅らせることにより行ない、 次のクロツクパルスの前縁が立ち上がつてしま
つた後で待ちが検出された時は、その待ちを示す
信号を、クロツクパルスとオアすることによりク
ロツクパルスの後縁の発生を抑止すると共に、そ
の待ちを示す信号をクロツク発生回路内の、
CPUクロツクの同期を設定するフリツプフロツ
プの反転抑止条件として入力することにより、ク
ロツクパルス幅をその待ちを示す信号の長さに応
じてシステムクロツクの一周期単位で引き延ばし
クロツクパルスの後縁のみを遅らせることを特徴
とする、特許請求範囲第1項記載のクロツク制御
方式。
[Claims] 1. A system clock for synchronizing the entire computer system in a clock control method that synchronizes a computer system consisting of a CPU and its peripheral devices with a clock generated by a clock generation circuit. Synchronize only the central processing unit and the central processing unit.
When the system clock is generated from the same clock source as the CPU clock, the system clock is always kept at a constant cycle, and there is no wait when the CPU accesses a peripheral device, the CPU clock is generated from the system clock's natural clock source. In the case of an access that is held at a constant period several times higher than that and causes a wait, a specific signal indicating that a wait occurs is input to the clock generation circuit, and the clock generation circuit generates a clock inhibit signal using the specific signal. When turned on, it starts suppressing the generation of the CPU clock, inputs the specific signal to the priority control circuit that controls contention for access to peripheral devices, and outputs a response signal of the priority control circuit to the specific signal. By inputting the signal to the clock generation circuit, the clock suppression signal is turned off and the CPU clock generation suppression is canceled.
A clock control method characterized in that by regenerating the CPU clock, the CPU clock is extended in units of one period of the system clock only during the access cycle. 2 When extending the period of the CPU clock mentioned above,
If a wait is detected before the leading edge of the next clock pulse rises, the clock inhibit signal is turned on to keep the pulse width constant and prevent the generation of the next clock pulse in units of one system clock cycle. If a wait is detected after the leading edge of the next clock pulse has risen, the signal indicating the wait is ORed with the clock pulse to suppress the generation of the trailing edge of the clock pulse. At the same time, the signal indicating the wait is sent to the clock generator circuit.
By inputting this as the flip-flop reversal inhibiting condition that sets the synchronization of the CPU clock, the clock pulse width is extended in units of one system clock period according to the length of the signal indicating the wait, and only the trailing edge of the clock pulse is delayed. A clock control system according to claim 1, characterized in that:
JP61060937A 1986-03-20 1986-03-20 Clock control system Granted JPS62221719A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61060937A JPS62221719A (en) 1986-03-20 1986-03-20 Clock control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61060937A JPS62221719A (en) 1986-03-20 1986-03-20 Clock control system

Publications (2)

Publication Number Publication Date
JPS62221719A JPS62221719A (en) 1987-09-29
JPH0467643B2 true JPH0467643B2 (en) 1992-10-29

Family

ID=13156789

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61060937A Granted JPS62221719A (en) 1986-03-20 1986-03-20 Clock control system

Country Status (1)

Country Link
JP (1) JPS62221719A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5663628A (en) * 1979-10-25 1981-05-30 Nec Corp Data processing device
JPS6045828A (en) * 1983-08-24 1985-03-12 Hitachi Ltd Single chip microcomputer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5663628A (en) * 1979-10-25 1981-05-30 Nec Corp Data processing device
JPS6045828A (en) * 1983-08-24 1985-03-12 Hitachi Ltd Single chip microcomputer

Also Published As

Publication number Publication date
JPS62221719A (en) 1987-09-29

Similar Documents

Publication Publication Date Title
US4853847A (en) Data processor with wait control allowing high speed access
KR100395383B1 (en) Data transfer apparatus
JP2704113B2 (en) Data processing device
JP3153078B2 (en) Data processing device
KR960003065B1 (en) Information processing apparatus
JPH0467643B2 (en)
JPH04192056A (en) Arbitration system
JP4592944B2 (en) CPU interface circuit
JPH03144990A (en) Memory device
JPH04141757A (en) Bus control system
JP3818621B2 (en) Bus bridge circuit and data processing system
JPH04372030A (en) Memory access system for processor
JP3103174B2 (en) Memory access device
JP2756445B2 (en) Asynchronous circuit reset method
JPS6140660A (en) Multiprocessor system with shared memory
JPH08180027A (en) Arbitration circuit
JPS6054065A (en) Synchronous controller
JPH02101560A (en) Bus interface device
JP2976417B2 (en) Multiprocessor system
JP2570900B2 (en) Access control device and access control method
JPS5825299B2 (en) Memory control method
JPS6199996A (en) Dynamic ram controlling system
JP2000305895A (en) Asynchronous interface
JPH1083344A (en) Information processor
JPS6341973A (en) Multi-processor system