JPH0223885B2 - - Google Patents

Info

Publication number
JPH0223885B2
JPH0223885B2 JP60189572A JP18957285A JPH0223885B2 JP H0223885 B2 JPH0223885 B2 JP H0223885B2 JP 60189572 A JP60189572 A JP 60189572A JP 18957285 A JP18957285 A JP 18957285A JP H0223885 B2 JPH0223885 B2 JP H0223885B2
Authority
JP
Japan
Prior art keywords
block
time
update
tim3
updating
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
JP60189572A
Other languages
Japanese (ja)
Other versions
JPS61173327A (en
Inventor
Yoshitoshi Tsuji
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP60189572A priority Critical patent/JPS61173327A/en
Publication of JPS61173327A publication Critical patent/JPS61173327A/en
Publication of JPH0223885B2 publication Critical patent/JPH0223885B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は電子計算機の時計機構に係り、特に時
計機構部分のゲート数および入出力ピン数を減少
し、しかも時計機構の読み書きに要するオーバー
ヘツドを減少させるのに好適な技術に関する。
[Detailed Description of the Invention] [Field of Application of the Invention] The present invention relates to a clock mechanism for an electronic computer, and in particular reduces the number of gates and the number of input/output pins in the clock mechanism, and also reduces the overhead required for reading and writing the clock mechanism. Relating to techniques suitable for reducing.

〔発明の背景〕[Background of the invention]

従来の時計機構の一例を第1図に示す。ここで
レジスタ2(以下TTMと称する)は32ビツトか
ら構成されるものとする。TIMの値は常に加算
回路3で+1され、適当なタイミングでレジスタ
4にセツトされる。選択回路1は通常はレジスタ
4の出力をTIMに入力する。TIMは1マイクロ
秒に1回トリガーされ、レジスタ4の値をセツト
する。これら一連の動作により、TIMは1マイ
クロ秒に1回、+1する時計として利用すること
ができる。なお、TIMの書込み(時刻の設定)
およびTIMの読出し(時刻の読出し)はマイク
ロプログラムにより指令される。今、TIMの書
込みが指令されると、選択回路1はINBUSを選
択し、TIMにINBUSの値をセツトする。もし、
書込みの指令とTIM更新の時期が重なつた場合
は、書込みの指令のみ実行し、TIMの更新は行
わない。またTIMの読出しが指令されると、
TIMの値はOUTBUSに出力される。なお、この
時、TIM更新のタイミングとOUTBUSへ出力す
るタイミングを異なる様にしておけば、TIMは
マイクロプログラムにより、いつでも読出すこと
ができる。第5図にそのタイムチヤートを示す。
第5図においてステージA〜Jはそれぞれ1マシ
ンサイクルとし、1マシンサイクルは100ナノ秒
とする。したがつてA〜Jの計10マシンサイクル
で1マイクロ秒となる。TIMは常にステージA
の後半で更新されるとする。第5のケース1に、
ステージAでマイクロプログラムにより読出しが
指令された時のOUTBUSの内容を示す。この様
にステージAの前半から後半にかけて、TIMの
内容をOUTBUS上に出力すれば、マイクロプロ
グラムはその内容を解読することができる。第5
図のケース2にはステージBで読出しが指令され
た時の様子を示す。同様にしてステージC〜Jの
どこで読出しが指令されても、ただちに読出しが
可能である。この様に第1図に示した例は非常に
マイクロプログラム上の効率は良いが、第1図か
ら明らかな様にすべて4バイト幅を必要とし、ハ
ードウエア量が非常に多い欠点があつた。
An example of a conventional clock mechanism is shown in FIG. Here, it is assumed that register 2 (hereinafter referred to as TTM) is composed of 32 bits. The value of TIM is always incremented by 1 by the adder circuit 3 and set in the register 4 at an appropriate timing. The selection circuit 1 normally inputs the output of the register 4 to TIM. TIM is triggered once every microsecond and sets the value of register 4. Through this series of operations, TIM can be used as a clock that increases by 1 every microsecond. In addition, writing TIM (time setting)
And TIM reading (time reading) is commanded by a microprogram. Now, when writing of TIM is commanded, selection circuit 1 selects INBUS and sets the value of INBUS in TIM. if,
If the write command and TIM update time overlap, only the write command will be executed and the TIM will not be updated. Also, when TIM reading is commanded,
The TIM value is output to OUTBUS. At this time, if the TIM update timing and the output timing to OUTBUS are made different, the TIM can be read at any time by the microprogram. Figure 5 shows the time chart.
In FIG. 5, stages A to J are each one machine cycle, and one machine cycle is 100 nanoseconds. Therefore, a total of 10 machine cycles from A to J is 1 microsecond. TIM is always stage A
Suppose that it is updated in the latter half of . In the fifth case 1,
This shows the contents of OUTBUS when reading is commanded by the microprogram at stage A. In this way, by outputting the contents of TIM to OUTBUS from the first half to the second half of stage A, the microprogram can decode the contents. Fifth
Case 2 in the figure shows the situation when reading is commanded at stage B. Similarly, no matter where reading is commanded in stages C to J, reading is possible immediately. As described above, the example shown in FIG. 1 is very efficient in terms of microprogramming, but as is clear from FIG. 1, it requires a width of 4 bytes and has the disadvantage of requiring a very large amount of hardware.

第2図に、他の従来例を示す。ここでレジスタ
9〜12(以下それぞれTIM0〜3と称す)はそ
れぞれ8ビツトから成り、TIM0〜3全体では32
ビツトから成る。選択回路13は1マイクロ秒に
1回のTIM0〜3の更新時に、TIM3、2、1、
0の順に連続してTIM0〜3のうちの1バイトを
選択し、1バイト幅の加算回路14へ入力する。
加算回路14は選択回路13がTIM3を選択して
いる時は常に+1を加算し、選択回路13が
TIM2を選択している時は、TIM3の値を+1し
た時の桁上げの有無により、桁上げがあつた場合
は+1し、桁上げが無かつた場合は、そのままの
値をレジスタ15へ送る。選択回路13が
TIM1、TIM0を選択している時はTIM2を選択
している時と同様、下位バイトの加算時の桁上げ
の有無により、+1またはそのままの値をレジス
タ15へ送る。選択回路5〜8は通常はレジスタ
15を選択し、書込みが指令された時のみ
INBUS(4バイト)を選択する。また読出しが指
令されるとTIM0〜3の値をOUTBUS(4バイ
ト)へ出力する。第6図に本方式のタイムチヤー
トを示す。A〜Jは第5図と同様である。本方式
は加算回路が1バイト幅のためTIM3、2、1、
0はそれぞれステージA,B,C,Dで更新す
る。本方式はマイクロプログラムにより書込みが
指令されるといつでも書込めるが、読出しが指令
されると、ステージE〜JおよびAでしか読出せ
ない。(第6図OUTBUSのケース1にステージ
Eで読出しが指令された場合を、ケース2にステ
ージAで読出しが指令された場合を示す。)なぜ
なら、たとえばステージCで読出しが指令され、
ただちに読出したとすると、TIM0およびTIM1
は更新前の値であるが、TIM2およびTIM3は更
新後の値であるためTIM0〜3の全体としては、
正しい現在の時刻を示せない。したがつて本方式
では、通常ステージA〜Dの間はマイクロプログ
ラムによる読出しは禁止され、ステージEになる
まで、その実行が待たされる。したがつて第2図
の方式は第1図の方式に比べ、ゲート数は減少す
るが、入出力ピン数は減少しないし、さらにマイ
クロプログラム上のオーバーヘツドが増加すると
いう欠点があつた。
FIG. 2 shows another conventional example. Here, registers 9 to 12 (hereinafter referred to as TIM0 to 3) each consist of 8 bits, and the total of TIM0 to 3 is 32 bits.
Consists of bits. When updating TIM0 to TIM3 once every microsecond, the selection circuit 13 selects TIM3, 2, 1,
One byte of TIM0 to TIM3 is selected consecutively in the order of 0 and inputted to the 1-byte wide adder circuit 14.
The addition circuit 14 always adds +1 when the selection circuit 13 selects TIM3;
When TIM2 is selected, depending on whether or not there is a carry when adding +1 to the value of TIM3, if there is a carry, +1 is added, and if there is no carry, the value is sent as is to register 15. . The selection circuit 13
When TIM1 and TIM0 are selected, as when TIM2 is selected, +1 or the value as is is sent to the register 15 depending on whether or not there is a carry when adding the lower byte. Selection circuits 5 to 8 normally select register 15, and only when writing is commanded.
Select INBUS (4 bytes). Also, when read is commanded, the values of TIM0 to TIM3 are output to OUTBUS (4 bytes). Figure 6 shows a time chart of this method. A to J are the same as in FIG. In this method, since the adder circuit is 1 byte wide, TIM3, 2, 1,
0 is updated at stages A, B, C, and D, respectively. In this system, writing can be performed at any time when writing is commanded by the microprogram, but when reading is commanded, only stages E to J and A can be read. (Case 1 of OUTBUS in Figure 6 shows the case where reading is commanded at stage E, and case 2 shows the case where reading is commanded at stage A.) This is because, for example, reading is commanded at stage C,
If read immediately, TIM0 and TIM1
is the value before the update, but TIM2 and TIM3 are the values after the update, so the overall value of TIM0 to TIM3 is:
Unable to show correct current time. Therefore, in this method, reading by the microprogram is normally prohibited during stages A to D, and its execution is delayed until stage E is reached. Therefore, compared to the method shown in FIG. 1, the method shown in FIG. 2 has the disadvantage that although the number of gates is reduced, the number of input/output pins is not reduced, and the overhead on the microprogram is increased.

第3図にさらに他の従来例を示す。第3図の例
はTIM0〜3の更新に関しては第2図の例と同様
である。第2図の例と異なる点は、INBUSおよ
びOUTBUSを1バイト幅にして入出力ピン数を
削減している点である。このため、第3図の例で
は、マイクロプログラムにより書込みが指令され
た時は、TIM0〜3の更新は中止し、選択回路1
6はINBUS側を選択することにより書込みを行
う。また、読出しは、TIM0〜3が更新を行つて
いない時に、選択回路17でTIM0〜3の1つを
選択してOUTBUS上に読出す。第7図に本方式
のタイムチヤートを示す。本方式はTIM0〜3が
更新していない時のみ読出し可能で、しかも読出
しに4マシンサイクルかかるため、OUTBUSの
ケース1〜4に示した4通りの時しか読出せな
い。(ケース4のステージAは、実際にはTIM3
の更新動作に入つているが、第3図の選択回路1
7がTIM3を選択しているため、TIM3の値を
OUTBUSに出力することが可能である。)した
がつて第3図の方式は第2図の方式に比べ、入出
力ピン数は減少するが、マイクロプログラム上の
オーバーヘツドが、さらに増加するという欠点が
あつた。
FIG. 3 shows yet another conventional example. The example in FIG. 3 is similar to the example in FIG. 2 with regard to updating TIM0 to TIM3. The difference from the example in FIG. 2 is that INBUS and OUTBUS are made 1 byte wide to reduce the number of input/output pins. Therefore, in the example shown in Figure 3, when writing is commanded by the microprogram, updating of TIM0 to TIM3 is stopped and the selection circuit 1
6 performs writing by selecting the INBUS side. Further, for reading, when TIM0 to TIM3 are not being updated, the selection circuit 17 selects one of TIM0 to TIM3 and reads it onto OUTBUS. Figure 7 shows a time chart of this method. In this method, reading is possible only when TIM0 to TIM3 are not updated, and since it takes four machine cycles to read, it can only be read in the four cases shown in OUTBUS cases 1 to 4. (Stage A in case 4 is actually TIM3
The selection circuit 1 in Fig. 3 is in the update operation.
7 selects TIM3, so change the value of TIM3.
It is possible to output to OUTBUS. )Therefore, although the system shown in FIG. 3 has a smaller number of input/output pins than the system shown in FIG. 2, it has the disadvantage that the overhead on the microprogram further increases.

以上の説明では、説明を簡単にするため、時計
のバイト数を4バイトとし、最下位のビツトの更
新間隔を1マイクロ秒とし、時計は+1の時計1
個のみとしたが、実際に電子計算機で用いられる
時計は、バイト数ももつと多く、最下位ビツトの
更新間隔ももつと長く、さらに、+1する時計の
他−1する時計等も用いられるため、ハードウエ
アを減少するための各種の工夫をするとマイクロ
プログラムが無駄に時間を待つ期間が増え、他の
緊急性のあるマイクロプログラムの実行に影響を
与え、ひいては電子計算機の性能を悪化させる欠
点があつた。
In the above explanation, to simplify the explanation, the number of bytes of the clock is 4 bytes, the update interval of the lowest bit is 1 microsecond, and the clock is +1 clock 1.
However, the clocks actually used in electronic computers have a large number of bytes, have a long update interval for the least significant bit, and in addition to clocks that increase by +1, clocks that decrease by -1 are also used. However, when various measures are taken to reduce the amount of hardware, the period during which microprograms needlessly wait increases, which affects the execution of other urgent microprograms, which in turn worsens the performance of the computer. It was hot.

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

本発明の目的は、マイクロプログラムのオーバ
ーヘツドを増加させることなく、また複雑な制御
回路を付加することなく、ゲート数、入出力ピン
数を削減してハードウエア量を減少させた時計機
構を提供することにある。
An object of the present invention is to provide a clock mechanism that reduces the amount of hardware by reducing the number of gates and input/output pins without increasing the overhead of microprograms or adding complicated control circuits. It's about doing.

〔発明の概要〕[Summary of the invention]

本発明は従来例が、時計機構の読出し時に問題
点があることに着目し、ハードウエアにいつでも
時分割に読出せる回路を設け、マイクロプログラ
ムには実質的には何ら影響を与えない程度の軽い
制限事項を課すことにより、本発明の目的を達成
するものである。
The present invention focuses on the problem that the conventional example has when reading the clock mechanism, and provides a circuit in the hardware that can be read out in a time-sharing manner at any time. By imposing limitations, the objectives of the present invention are achieved.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の一実施例を第4図により説明す
る。第4図は選択回路18の使用方法および選択
回路19が付加されている点を除いて第3図に示
した従来例と同様である。つまり、第3図では選
択回路17は、TIM0〜3の更新用とOUTBUS
への出力用とを兼用していたが、第4図では選択
回路18はTIM0〜3の更新専用であり、選択回
路19はOUTBUSへの出力専用である。第8図
に第4図のTIM0〜3の更新の状況およびケース
1〜4の4つの場合に分けて読出しの状況をタイ
ムチヤートで示す。第8図に示す様にTIM3、
2、1、0はそれぞれステージA,B,C,Dの
後半で更新する。ケース1にマイクロプログラム
でステージAでTIM3の読出しが、ステージBで
TIM2の読出しが、ステージCでTIM1の読出し
が、ステージDでTIM0の読出しがそれぞれ指令
された場合の、OUTBUS上の内容を示す。各ス
テージは読出しが指令されると、ただちに指令さ
れたレジスタの内容を第4図の選択回路19を通
してOUTBUS上に出力する。マイクロプログラ
ムは各ステージの中央のタイミングでOUTBUS
の内容を取込む。ケース2には、マイクロプログ
ラムによるTIM3の読出し指令がステージBの時
点で発行され、以下図の様にTIM0まで読出し指
令が発行された場合を示す。ケース3には、
TIM3の読出し指令がステージJで発行され、以
下同様にTIM0まで読出し指令が発行された場合
を示す。この様にして本発明ではステージA〜J
のどこでマイクロプログラムの読出し指令が発行
されても、ただちに読出しが可能である。ただ
し、ここで注意しなければならないのは、マイク
ロプログラムは、必ずTIM3、2、1、0の順
に、しかも連続して読出し指令を出さなければな
らない点である。もしTIM0、1、2、3の順に
読出したり、TIM3、2、1、0と連続して読出
さないと(ケース4参照)、TIM0〜3全体とし
ては正しい現在の時刻としては使用できない場合
がある。(なぜならバイト位置によつて更新前の
値と更新後の値が混在してしまう場合があるた
め。)しかしながら、この程度のマイクロプログ
ラム上の制限事項は、マイクロプログラムにとつ
て、何ら重要な影響を与えない。
An embodiment of the present invention will be described below with reference to FIG. FIG. 4 is similar to the conventional example shown in FIG. 3 except for the method of using the selection circuit 18 and the addition of the selection circuit 19. In other words, in FIG. 3, the selection circuit 17 is used for updating TIM0 to TIM3 and
However, in FIG. 4, the selection circuit 18 is used exclusively for updating TIM0 to TIM3, and the selection circuit 19 is used exclusively for outputting to OUTBUS. FIG. 8 is a time chart showing the update status of TIM0 to TIM3 in FIG. 4 and the read status in four cases, cases 1 to 4. As shown in Figure 8, TIM3,
2, 1, and 0 are updated in the latter half of stages A, B, C, and D, respectively. In case 1, the microprogram reads TIM3 at stage A, but at stage B.
The contents on OUTBUS are shown when reading TIM2 is commanded at stage C, TIM1 is commanded at stage C, and TIM0 is commanded at stage D. When each stage is instructed to read, it immediately outputs the contents of the instructed register onto OUTBUS through the selection circuit 19 in FIG. 4. The microprogram outputs OUTBUS at the center timing of each stage.
Import the contents of. Case 2 shows a case where a read command for TIM3 by the microprogram is issued at stage B, and read commands are issued up to TIM0 as shown in the figure below. In case 3,
A case is shown in which a read command for TIM3 is issued at stage J, and read commands for TIM0 are similarly issued thereafter. In this way, in the present invention, stages A to J
No matter where a microprogram read command is issued, reading is possible immediately. However, it must be noted here that the microprogram must issue read commands in the order of TIM3, 2, 1, and 0, and continuously. If you do not read TIM0, 1, 2, 3 in order, or read TIM3, 2, 1, 0 consecutively (see case 4), TIM0 to 3 as a whole may not be usable as the correct current time. be. (This is because the value before the update and the value after the update may be mixed depending on the byte position.) However, this level of restriction on microprograms has no important effect on the microprogram. not give.

TIM0〜3にマイクロプログラムで時刻をセツ
トしたい時、第3図の従来例のところで説明した
様に、TIM0〜3の更新を一時中止してから値を
セツトすることも可能である。しかしながらその
ためには、ハードウエアにそのための特別の制御
回路が必要である。しかるに、本発明では下記に
説明する方法により、何ら特別な制御回路を付加
することなく、TIM0〜3に値をセツトすること
が可能である。第9図にマイクロプログラムによ
るTIM3の書込み指令がステージBで発行され、
以下同様にTIM2の書込み指令はステージCで、
TIM1の書込み指令はステージDで、TIM0の書
込み指令はステージEでそれぞれ発行された場合
のタイムチヤートを示す。なお、TIM3、2、
1、0は第8と同様、それぞれステージA,B,
C,Dで更新されているとする。この場合、ステ
ージBの前半からステージCの前半にかけて、マ
イクロプログラムでINBUSにTIM3にセツトし
たい値を乗せれば、TIM3はステージBの後半で
INBUSの内容を書込むことができる。以下同様
にしてTIM2、1、0と書込むことができる。第
10図には、ステージJからマイクロプログラム
による書込み指令が発行された場合のタイムチヤ
ートを示す。また第11図には、ステージAから
マイクロプログラムによる書込み指令が発行され
た場合のタイムチヤートを示す。この様に更新と
書込みが重なつた場合は、書込み動作のみ実行し
て更新動作は行わない。なお、この動作は、
TIM0〜3の更新タイミングとINBUSからのデ
ータ入力タイミングを同一タイミングにしておけ
ば、マイクロプログラムによる書込み要求信号で
第4図の選択回路にINBUS側を選択することに
より容易に実現でき、他の複雑な制御回路は必要
としない。この様にして、本発明ではステージA
〜Jのどこでマイクロプログラムの書込み指令が
発行されても、ただちに書込みが可能である。た
だしここで注意しなければならないのは、マイク
ロプログラムは、必ずTIM3、2、1、0の順
に、しかも連続して書込み指令を出さなければな
らない点である。もしTIM0、1、2、3の順に
書込んだり、TIM3、2、1、0と連続して書込
まないと、TIM0〜3の全体としては正しい時刻
をセツトできない場合がある。第12図に、
TIM2とTIM1の間に別のマイクロプログラムを
実行して、TIM3、2、1、0と連続して書込ま
なかつた場合のタイムチヤートを示す。この場
合、TIM3およびTIM2は、時刻を書込んだ後、
すぐ次のステージで+1されるが、TIM1および
TIM0は、+1されないため、TIM0−3全体とし
ては、結果として誤つた時刻がセツトされてしま
う。しかしながら、この程度のマイクロプログラ
ム上の制限事項は、マイクロプログラムにとつ
て、何ら重要な影響を与えない。
When it is desired to set the time in TIM0 to TIM3 by a microprogram, it is also possible to temporarily stop updating TIM0 to TIM3 and then set the value, as explained in the conventional example in FIG. However, this requires a special control circuit in the hardware. However, according to the present invention, values can be set in TIM0 to TIM3 without adding any special control circuit by the method described below. Figure 9 shows that a TIM3 write command is issued by the microprogram at stage B.
Similarly, the TIM2 write command is at stage C,
Time charts are shown when the TIM1 write command is issued at stage D and the TIM0 write command is issued at stage E. In addition, TIM3, 2,
1 and 0 are the same as the 8th stage, respectively stages A, B,
Assume that C and D have been updated. In this case, if you put the desired value in TIM3 to INBUS in the microprogram from the first half of stage B to the first half of stage C, TIM3 will be set in the second half of stage B.
The contents of INBUS can be written. Subsequently, TIM2, 1, and 0 can be written in the same manner. FIG. 10 shows a time chart when a write command is issued by a microprogram from stage J. Further, FIG. 11 shows a time chart when a write command is issued by a microprogram from stage A. When update and write overlap in this way, only the write operation is performed and no update operation is performed. Note that this operation is
If the update timing of TIM0 to 3 and the data input timing from INBUS are set to the same timing, this can be easily achieved by selecting the INBUS side in the selection circuit shown in Figure 4 using the write request signal from the microprogram. No special control circuit is required. In this way, in the present invention, stage A
No matter where a microprogram write command is issued between ~J, writing is possible immediately. However, it must be noted here that the microprogram must issue write commands in the order of TIM3, 2, 1, and 0, and consecutively. If TIM0, 1, 2, and 3 are written in this order, or if TIM3, 2, 1, and 0 are not written in succession, it may not be possible to set the correct time for TIM0 to TIM3 as a whole. In Figure 12,
A time chart is shown when another microprogram is executed between TIM2 and TIM1 and TIM3, 2, 1, and 0 are not written consecutively. In this case, TIM3 and TIM2 write the time and then
It will be +1 at the next stage, but TIM1 and
Since TIM0 is not incremented by 1, an incorrect time will be set for TIM0-3 as a whole. However, this level of restriction on the microprogram does not have any significant effect on the microprogram.

今までの説明では、説明の都合上、TIM3、
2、1、0は連続して読出しまたは書込みを行わ
ないといけないとしたが、実際には必らずしもそ
の必要はない。たとえば第13図に示す様に
TIM2とTIM1の間に1マシンサイクル他のマイ
クロプログラムを実行したい様な時は、TIM3、
2、1、0の更新もそれに合わせて、それぞれス
テージA,B,D,Eで更新する様にすればよ
い。つまり、必要なマイクロプログラム上の制限
事項は、TIM3、2、1、0の更新の時系列に、
読出しおよび書込みの時系列を合わせることであ
る。
In the explanation so far, for convenience of explanation, TIM3,
Although it is assumed that 2, 1, and 0 must be read or written continuously, in reality, this is not always necessary. For example, as shown in Figure 13
If you want to execute another microprogram for one machine cycle between TIM2 and TIM1, use TIM3,
2, 1, and 0 may be updated at stages A, B, D, and E, respectively. In other words, the necessary microprogram restrictions are as follows in the chronological order of updates of TIM3, 2, 1, and 0.
This is to match the read and write time series.

なお、以上の説明では、説明の都合上、時計の
バイト数を4バイト、1マシンサイクルを100ナ
ノ秒、時計の最下位ビツトの更新間隔を1マイク
ロ秒としたが、時計のビツト数、1マシンサイク
ル、時計の最下位ビツトの更新間隔は何でもよ
い。時計の最下位ビツトの更新間隔がマシンサイ
クルで割切れない場合でもよい。(その場合は、
時計の最下位ビツトの更新間隔をマシンサイクル
で同期してステージを作ればよい。)時計の種類
も、たとえばステージA〜Dで+1する時計を更
新し、ステージE〜Hで−1する時計を更新する
という様に複数の種類の時計にも応用できる。ま
た時計の更新も+1、−1のみでなく他の加減算
も可能である。また第4図において加算回路14
とレジスタ15の上下の位置を換えてもよい。
In addition, in the above explanation, for convenience of explanation, the number of bytes of the clock is 4 bytes, one machine cycle is 100 nanoseconds, and the update interval of the least significant bit of the clock is 1 microsecond. The machine cycle and the update interval of the least significant bit of the clock may be any value. The update interval of the least significant bit of the clock may not be evenly divisible by the machine cycle. (In that case,
Stages can be created by synchronizing the update interval of the least significant bit of the clock with machine cycles. ) The present invention can be applied to multiple types of clocks, such as updating a clock that increases by +1 in stages A to D, and updating a clock that increases by -1 in stages E to H. Furthermore, the clock can be updated not only by +1 and -1 but also by other additions and subtractions. Also, in FIG. 4, the adder circuit 14
The upper and lower positions of the register 15 may be changed.

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

本発明によれば、少ないハードウエアで時計機
構を実現できるので電子計算機の原価を低減する
効果がある。またマイクロプログラムのオーバー
ヘツドを減少させるので、電子計算機の性能を向
上させる効果がある。
According to the present invention, since a clock mechanism can be realized with less hardware, there is an effect of reducing the cost of an electronic computer. Furthermore, since the overhead of microprograms is reduced, it has the effect of improving the performance of electronic computers.

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

第1図、第2図および第3図は従来例の構成を
第4図は本発明の一実施例の構成を、第5図は第
1図のタイムチヤートを、第6図は第2図のタイ
ムチヤートを、第7図は第3図のタイムチヤート
を、第8図〜第13図は第4図のタイムチヤート
をそれぞれ示す図である。 1……選択回路、2……レジスタ、3……加算
回路、4……レジスタ、5〜8……選択回路、9
〜12……レジスタ、13……選択回路、14…
…加算回路、15……レジスタ、16〜19……
選択回路。
1, 2, and 3 show the configuration of the conventional example, FIG. 4 shows the configuration of an embodiment of the present invention, FIG. 5 shows the time chart of FIG. 1, and FIG. 7 shows the time chart of FIG. 3, and FIGS. 8 to 13 show the time chart of FIG. 4. 1... Selection circuit, 2... Register, 3... Addition circuit, 4... Register, 5 to 8... Selection circuit, 9
~12...Register, 13...Selection circuit, 14...
...Addition circuit, 15...Register, 16-19...
selection circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 電子計算機の時計機構の複数ビツトから成る
時刻記憶部を、複数個のブロツクに分け、ブロツ
ク単位に下位ブロツクからの桁上げの有無により
該ブロツクの値を更新するという動作を、最下位
ブロツクから順に最上位ブロツクまでブロツクの
数だけ行うことによつて時刻記憶部全体としての
値を更新し、さらにこの一連の時刻更新動作を一
定周期毎に繰返すことにより、記憶している時刻
を一定周期毎に更新する仕組みの電子計算機の時
計機構において、時刻読出し指令によりブロツク
単位に最下位ブロツクから順に最下位ブロツクま
で時刻を読出す機能を持ち、時刻読出し指令時に
最下位ブロツクを読出してから最上位ブロツクを
読出すまでの期間における各ブロツクの読出し時
期の時系列を、時刻更新時に最下位ブロツクを更
新してから最上位ブロツクを更新するまでの期間
における各ブロツクの更新時期の時系列に一致さ
せることにより、一連の時刻更新動作と、その次
の一連の時刻更新動作との間の期間はもちろん、
一連の時刻更新動作中において任意のブロツクを
更新中の時でも、その更新動作を中断させること
なく、また最上位ブロツクの更新が終了するまで
待つことなく、一連の時刻読出し動作を実行でき
ることを特徴とする電子計算機の時計機構。
1. The time storage unit consisting of multiple bits of the clock mechanism of a computer is divided into multiple blocks, and the operation of updating the value of the block based on the presence or absence of a carry from the lower block in units of blocks is performed starting from the lowest block. By sequentially updating the value of the time storage unit as many times as there are blocks up to the top block, and repeating this series of time updating operations at regular intervals, the stored time is updated at regular intervals. In the clock mechanism of an electronic computer, the clock mechanism has a function of reading out the time in block units from the lowest block to the lowest block in response to a time read command. The chronological order of the read timing of each block in the period up to the reading of the block is made to match the chronological order of the update timing of each block in the period from updating the lowest block to updating the highest block at the time of time update. Therefore, the period between a series of time update operations and the next series of time update operations, as well as
The feature is that even when any block is being updated during a series of time update operations, a series of time read operations can be executed without interrupting the update operation or waiting until the update of the topmost block is completed. A clock mechanism for an electronic computer.
JP60189572A 1985-08-30 1985-08-30 Computer clock mechanism Granted JPS61173327A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60189572A JPS61173327A (en) 1985-08-30 1985-08-30 Computer clock mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60189572A JPS61173327A (en) 1985-08-30 1985-08-30 Computer clock mechanism

Publications (2)

Publication Number Publication Date
JPS61173327A JPS61173327A (en) 1986-08-05
JPH0223885B2 true JPH0223885B2 (en) 1990-05-25

Family

ID=16243574

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60189572A Granted JPS61173327A (en) 1985-08-30 1985-08-30 Computer clock mechanism

Country Status (1)

Country Link
JP (1) JPS61173327A (en)

Also Published As

Publication number Publication date
JPS61173327A (en) 1986-08-05

Similar Documents

Publication Publication Date Title
US3983539A (en) Polymorphic programmable units employing plural levels of sub-instruction sets
JPH04229355A (en) Data access method and data processing system
GB1111046A (en) Data processing system
JPH0346850B2 (en)
JP2548428B2 (en) Timing generator
EP0164418B1 (en) Microprogram control system
JPH0223885B2 (en)
JP2595992B2 (en) Electronic musical instrument
JPS6339939B2 (en)
US3359542A (en) Variable length address compouter
SU1725237A1 (en) Device for selecting object attributes
JP2924968B2 (en) Time interactive simulation device
JP2576589B2 (en) Virtual storage access control method
SU1767500A1 (en) Microprogram control device
JPS58222346A (en) Control system of executing time of microprogram
JP3048969B2 (en) Cycle-based simulator
JPH0423021A (en) Timer circuit
JPS5925251B2 (en) Creation method for arithmetic control signals in microprogram-controlled electronic computers
JP3776652B2 (en) Vector arithmetic unit
JPS60198970A (en) Device for timing signal generation
JPH07120938B2 (en) Pulse output device
JPS61165148A (en) Table access instructing system
JPS61216030A (en) Control system for microprogram
JPS61264431A (en) Storage circuit
JPS62219026A (en) Register file control system