JPS62100022A - Counter control circuit - Google Patents
Counter control circuitInfo
- Publication number
- JPS62100022A JPS62100022A JP23940485A JP23940485A JPS62100022A JP S62100022 A JPS62100022 A JP S62100022A JP 23940485 A JP23940485 A JP 23940485A JP 23940485 A JP23940485 A JP 23940485A JP S62100022 A JPS62100022 A JP S62100022A
- Authority
- JP
- Japan
- Prior art keywords
- counter
- count
- read
- read request
- turned
- 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
Links
Landscapes
- Communication Control (AREA)
Abstract
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は電子計算機のカウンタ制御回路に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a counter control circuit for an electronic computer.
電子計算機には各種のカウンタが使用されており、通常
ある時間毎にカウントアツプ又はカウントダウンされる
2進カウンタで実現される。カウントアツプまたはカウ
ントダウンされる時間間隔はその使用目的に応じて種々
の値をとるが、システムクロックカウンタは、最もカウ
ント時間間隔が短いものの一例である。Various types of counters are used in electronic computers, and are usually implemented as binary counters that count up or down at certain intervals. The time interval for counting up or down takes various values depending on the purpose of use, but the system clock counter is an example of one with the shortest counting time interval.
カウンタ値が必要となった場合、カウンタ読み取り要求
を受は取ったカウンタ制御回路は、カウンタ値をカウン
タ読み出しレジスタに読み取り、外部回路に出力する。When a counter value is required, the counter control circuit that has received the counter read request reads the counter value into a counter read register and outputs it to an external circuit.
カウンタとは別にカウンタ読み出しレジスタを設けて、
カウンタ値を一旦カウンタ読み出しレジスタに読み取る
理由は、常に変化するカウンタに関係なく、カウンタ読
み取り要求時のカウンタ値を外部回路に出力出来るよう
にする目的からである。A counter read register is provided separately from the counter.
The reason why the counter value is once read into the counter read register is to enable the counter value at the time of the counter read request to be output to the external circuit, regardless of the constantly changing counter.
しかし、回路実装上の制約から、カウンタとカウンタ読
み出しレジスタを接近して実装出来ない場合がある。一
方、電子計算機が高速化されるに従ってシステムクロッ
クも高速化される傾向にあり、上に述べたシステムクロ
ックカウンタのようにカウンタ値が高速に変化する場合
、1カウンタクロツク内ではカウンタ値をカウンタ読み
出しレジスタに読み取れないという問題が発生ずる。However, due to circuit implementation constraints, it may not be possible to mount the counter and the counter read register close to each other. On the other hand, as electronic computers become faster, system clocks also tend to become faster, and when the counter value changes rapidly like the system clock counter mentioned above, the counter value cannot be changed within one counter clock. The problem arises that the read register cannot be read.
本発明の目的は、このような問題点を解決したカウンタ
制御回路を提供することにある。An object of the present invention is to provide a counter control circuit that solves these problems.
本発明のカウンタ制御回路は、カウンタ読み取り要求時
、カウンタ値を読み取るのに必要な時間分のカウントク
ロック数分、カウントを停止する手段を有している。The counter control circuit of the present invention has means for stopping counting for a number of count clocks corresponding to the time required to read the counter value when a counter reading request is made.
次に、本発明の実施例について、図面を参照して説明す
る。第1図は、本発明の一実施例であるシステムクロッ
クカウンタ制御回路であり、フリップフロップ1と、2
進カウンタ2と、この2進カウンタを制御する更新論理
回路3と、読み出しレジスタ4とから構成される。フリ
ップフロップ1の非反転出力端子5は読み出しレジスタ
4の制御入力端子7に接続され、反転出力端子6は2進
カウンタ2の各制御用ANDゲート8の一方の入力端子
にそれぞれ接続されている。各ANDゲート8の他方の
入力端子は更新論理回路3の各出力端子9にそれぞれ接
続され、2進カウンタ2の各出力端子10は更新論理回
路3の各入力端子11および読み出しレジスタ4の各入
力端子12にそれぞれ接続されている。なお、カウンタ
読み取り要求信号はフリップフロップ1に入力される。Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 shows a system clock counter control circuit which is an embodiment of the present invention, and shows flip-flops 1 and 2.
It consists of a binary counter 2, an update logic circuit 3 for controlling this binary counter, and a read register 4. The non-inverting output terminal 5 of the flip-flop 1 is connected to the control input terminal 7 of the read register 4, and the inverting output terminal 6 is connected to one input terminal of each control AND gate 8 of the binary counter 2. The other input terminal of each AND gate 8 is connected to each output terminal 9 of update logic circuit 3, and each output terminal 10 of binary counter 2 is connected to each input terminal 11 of update logic circuit 3 and each input terminal of readout register 4. They are connected to terminals 12, respectively. Note that the counter reading request signal is input to the flip-flop 1.
次に、本実施例の動作を説明する。Next, the operation of this embodiment will be explained.
カウンタ読み取り要求がない場合、カウンタ読み取り要
求信号はオフであり、フリップフロップ1の非反転出力
はオフ、反転出力はオンとなっている。この時、2進カ
ウンタ2は更新論理回路3の制御に従ってシステムクロ
ックをカウントする。When there is no counter read request, the counter read request signal is off, the non-inverted output of the flip-flop 1 is off, and the inverted output is on. At this time, the binary counter 2 counts the system clock under the control of the update logic circuit 3.
又、フリップフロップ1の非反転出力がオフであること
により、読み出しレジスタ4は以前に読み取ったカウン
タ値を保持する。Also, since the non-inverting output of the flip-flop 1 is off, the read register 4 retains the previously read counter value.
カウンタ読み取り要求がある場合、カウンタ読み取り要
求信号は1システムクロック間オンとなる。すると、次
のシステムクロックにおいて、フリップフロップ1の非
反転出力はオン、−反転出力はオフとなる。この時、フ
リップフロップ1の反転出力がオフとなることにより2
進カウンタ2はカウントを行わず、更に、読み出しレジ
スタ4はフリップフロップ1の出力がオンとなるので、
2進カウンタ2の値を読み取る。If there is a counter read request, the counter read request signal is on for one system clock. Then, at the next system clock, the non-inverted output of flip-flop 1 is turned on and the -inverted output is turned off. At this time, since the inverted output of flip-flop 1 is turned off, 2
The digit counter 2 does not count, and the read register 4 has the output of the flip-flop 1 turned on, so
Read the value of binary counter 2.
次のシステムクロックでは、カウンタ読み取り要求信号
は既にオフとなっており、フリップフロップ1の非反転
出力はオフ、反転出力はオンとなる。従って、2進カウ
ンタ2はカウントを再開し、読み出しレジスタ4には先
のカウンタ読み取り要求時点のカウンタ値が保持される
。At the next system clock, the counter read request signal is already off, the non-inverted output of flip-flop 1 is turned off, and the inverted output is turned on. Therefore, the binary counter 2 restarts counting, and the read register 4 retains the counter value at the time of the previous counter read request.
以上の説明から分かるように、2進カウンタ2はカウン
タ読み取り要求がある毎に1システムクロック分カウン
トを停止するので、厳密な意味ではカウント誤差が発生
する。しかし、カウンタ読み取り要求が頻繁に出される
ような回路に通用しない限りは、実用上十分な精度を保
つことが可能である。As can be seen from the above explanation, the binary counter 2 stops counting for one system clock every time there is a counter reading request, so in a strict sense, a counting error occurs. However, it is possible to maintain sufficient accuracy for practical use as long as it is not applicable to a circuit where counter reading requests are frequently issued.
本実施例では、簡単のため読み取り要求パルスが1シス
テムクロック分の例をあげたが、複数システムクロック
分のカウント停止を行うには、カウンタ読み取り要求信
号を複数システムクロック分のパルスとし、このパルス
の後縁微分パルスで2進カウンタ2の出力を読み出しレ
ジスタ4にサンプリングすることで、容易に実現可能で
ある。In this embodiment, for simplicity, an example is given in which the read request pulse is equivalent to one system clock, but in order to stop counting for multiple system clocks, the counter read request signal is made into a pulse equivalent to multiple system clocks, and this pulse This can be easily realized by sampling the output of the binary counter 2 into the readout register 4 using the trailing edge differential pulse.
また、上記実施例ではシステムクロックカウンタを例に
して説明したが、その他のカウンタ、例えば、命令実行
数カウンタ、タイマカウンタなどについても通用出来る
ことは明白である。Further, although the above embodiment has been described using a system clock counter as an example, it is obvious that the present invention can also be applied to other counters such as an instruction execution number counter, a timer counter, etc.
以上説明したように本発明は、カウンタ読み取り要求が
あったときだけ一時的にカウントを停止し、カウンタの
値を読み取るのに必要な時間経過した後、カウントを再
開することにより、実用上十分な精度を保ちながら簡単
なカウンタ制御回路を構成出来るという効果がある。As explained above, the present invention temporarily stops counting only when there is a request to read the counter, and resumes counting after the time required to read the counter value has passed. This has the advantage that a simple counter control circuit can be constructed while maintaining accuracy.
第1図は本発明の一実施例を示す構成図である。 1・・・ ・ ・フリップフロップ 2・・・・・2進カウンタ 3・・・・・更新論理回路 4・・・・・読み出しレジスタ 8・・・・・ANDゲート FIG. 1 is a block diagram showing an embodiment of the present invention. 1...Flip-flop 2...Binary counter 3...Update logic circuit 4...Read register 8...AND gate
Claims (1)
のに必要な時間分のカウントクロック数分、カウントを
停止する手段を有することを特徴とするカウンタ制御回
路。(1) A counter control circuit characterized by having means for stopping counting for a number of count clocks corresponding to the time required to read a counter value when a counter reading request is made.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP23940485A JPS62100022A (en) | 1985-10-28 | 1985-10-28 | Counter control circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP23940485A JPS62100022A (en) | 1985-10-28 | 1985-10-28 | Counter control circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS62100022A true JPS62100022A (en) | 1987-05-09 |
Family
ID=17044269
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP23940485A Pending JPS62100022A (en) | 1985-10-28 | 1985-10-28 | Counter control circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS62100022A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100302330B1 (en) * | 1999-09-08 | 2001-11-07 | 서평원 | A device of suppling frame pulse of counter |
-
1985
- 1985-10-28 JP JP23940485A patent/JPS62100022A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100302330B1 (en) * | 1999-09-08 | 2001-11-07 | 서평원 | A device of suppling frame pulse of counter |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0212636B1 (en) | Bus state control circuit | |
DE3486399D1 (en) | Central processing unit with the ability to support commands of variable lengths. | |
JPS62100022A (en) | Counter control circuit | |
JPH06348507A (en) | Microcomputer | |
JPS62100023A (en) | Counter control circuit | |
JPS61267858A (en) | Microcomputer | |
JPS63187913A (en) | Pulse duty detecting circuit | |
SU1211728A1 (en) | Priority device | |
SU1305771A1 (en) | Buffer memory driver | |
JPS63131724A (en) | Counter input gate circuit | |
JPH0753312Y2 (en) | Pulse counting device | |
JPS63830B2 (en) | ||
SU1061143A1 (en) | Multichannel device for control of request priority | |
JPH027616A (en) | Timer circuit | |
SU1363221A1 (en) | Program-debugging device | |
SU1667082A1 (en) | Majority gate | |
SU1061144A1 (en) | Device for control of program interruptions | |
SU970367A1 (en) | Microprogram control device | |
SU1569832A1 (en) | Device for servicing inquiries | |
RU1775854C (en) | Controlled pulse recurrence frequency divider | |
JPH0531775B2 (en) | ||
JPS62241044A (en) | History information collecting device | |
JPH0476532B2 (en) | ||
JPH02156343A (en) | Tracer memory control circuit | |
JPS6459551A (en) | Input circuit |