JPH07295806A - Timer reading controller - Google Patents

Timer reading controller

Info

Publication number
JPH07295806A
JPH07295806A JP6089270A JP8927094A JPH07295806A JP H07295806 A JPH07295806 A JP H07295806A JP 6089270 A JP6089270 A JP 6089270A JP 8927094 A JP8927094 A JP 8927094A JP H07295806 A JPH07295806 A JP H07295806A
Authority
JP
Japan
Prior art keywords
timer
register
read
value
bytes
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
Application number
JP6089270A
Other languages
Japanese (ja)
Inventor
Koji Saito
康治 斉藤
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 Computertechno Ltd
Original Assignee
NEC Computertechno 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 NEC Computertechno Ltd filed Critical NEC Computertechno Ltd
Priority to JP6089270A priority Critical patent/JPH07295806A/en
Publication of JPH07295806A publication Critical patent/JPH07295806A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To eliminate the need for decision of the checking result of correctness of the read data on the timer value that is carried out by a microprogram and to improve the timer reading performance by reading out the the value of a reading register after the higher rank words of a timer are read. CONSTITUTION:A timer 1, a selector 2, a register 7 and an adder 10 are stored in an LSL'A', and the registers 3 and 4 are stored in an LSI'B' respectively. The timer 1 consists of 8 bytes, and the adder 10 counts up the value of the timer 1 in response to an updating pulse of 1 microsecond. Then the register 7 always reads the lower 4 bytes out of the timer 1, and the selector 2 selects the higher 4 bytes of the timer 1 and the value of the register 7 under the control of a microprogram. Thus the register 7 temporarily reads the lower or higher 4 bytes out of the timer 1, and the higher or lower 4 bytes of the timer 1 and the value of the register 7 are continuously read out and sent to both registers 3 and 4.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はタイマリード制御装置、
特にマイクロプログラム方式の情報処理装置で、データ
幅が半数のデータパスを介してタイマの値を外部に読出
すタイマリード制御装置に関する。
BACKGROUND OF THE INVENTION The present invention relates to a timer lead control device,
In particular, the present invention relates to a timer read control device for a microprogram type information processing device which reads out the value of a timer to the outside through a data path having a half data width.

【0002】[0002]

【従来の技術】従来のこの種のタイマリード制御装置
は、図7においてレジスタ5および比較器6を削除した
構成がよく知られており、タイマ1の上位4バイトをレ
ジスタ3、下位4バイトをレジスタ4に読み出してい
る。
2. Description of the Related Art A conventional timer read control device of this type is well known in which the register 5 and the comparator 6 are removed from FIG. 7, and the upper 4 bytes of the timer 1 are the register 3 and the lower 4 bytes. Reading to register 4.

【0003】しかし、このように2度に分けてタイマ値
を読み出すと、タイマの更新タイミングと読出しタイミ
ングが重なった時にタイマ値が正しく読めないという問
題がある。
However, if the timer value is read twice in this way, there is a problem that the timer value cannot be read correctly when the timer update timing and the read timing overlap.

【0004】そこで、これを改良した従来のタイマリー
ド制御装置が、図7に示すように、タイマ1の上位をレ
ジスタ3へ、タイマ1に下位をレジスタ4へ読出した
後、再びタイマ1の上位をレジスタ5へ読出して、比較
器6でレジスタ3とレジスタ5の値を比較し、値が一致
した時にはタイマ値がレジスタ3とレジスタ4に正しく
読出せたと認識するものが知られている。
Therefore, as shown in FIG. 7, an improved conventional timer read control device reads the upper part of the timer 1 into the register 3 and the lower part of the timer 1 into the register 4, and then reads the upper part of the timer 1 again. Is read to the register 5, the value of the register 3 is compared with that of the register 5 by the comparator 6, and when the values match, it is known that the timer value is correctly read to the register 3 and the register 4.

【0005】図8はこの従来の改良型タイマリード制御
装置の制御を行うマイクロプログラムのフローチャート
である。すなわち、図8の(1)でタイマ1の上位をレ
ジスタ3へ読み出し、(2)でタイマ1の下位をレジス
タ4へ読出す。次に、(3)で再びタイマ1の上位をレ
ジスタ5へ読出し、(4)で比較器6においてレジスタ
3とレジスタ5の一致を判定し、不一致の時は再び
(1)の処理からくり返す。(4)で一致したときに
は、タイマ値が正しくレジスタ3とレジスタ4に読出し
たと認識する。
FIG. 8 is a flow chart of a microprogram for controlling the conventional improved timer read controller. That is, the upper part of the timer 1 is read to the register 3 in (1) of FIG. 8 and the lower part of the timer 1 is read to the register 4 in (2). Next, in (3), the higher order of the timer 1 is read again into the register 5, and in (4) the comparator 6 determines whether the register 3 and the register 5 match. If they do not match, the process of (1) is repeated again. When they match in (4), it is recognized that the timer values are correctly read in the registers 3 and 4.

【0006】図9は上述の従来のタイマリード制御装置
のタイマチャートであり、t0 ,t1 ,t2 等はマイク
ロプログラムの1ステップを示す。t0 でタイマ1を更
新する1マイクロ秒の更新パルスが出力されたとする。
0 ではタイマ1の上位4バイトは00000001、タイマ1
の下位4バイトはFFFFFFFFという値である。t0 でタイ
マの更新パルスが出たため、t1 ではタイマ1の上位は
00000002、タイマ1の下位は00000000という値となっ
た。t0 ,t1 ,t2 ,t3 ,およびt10,t11
12,t13はそれぞれ図8のマイクロプログラムの
(1),(2),(3),(4)の動作が対応する。
FIG. 9 is a timer chart of the above-described conventional timer read control device, where t 0 , t 1 , t 2 etc. indicate one step of the microprogram. It is assumed that an update pulse of 1 microsecond for updating the timer 1 is output at t 0 .
At t 0 , the upper 4 bytes of timer 1 are 00000001, timer 1
The lower 4 bytes of is a value of FFFFFFFF. At t 0 , a timer update pulse is output, so at t 1 , the upper bits of timer 1
The value of 00000002 and the lower order of timer 1 is 00000000. t 0 , t 1 , t 2 , t 3 , and t 10 , t 11 ,
The operations t 12 , t 13 correspond to the operations (1), (2), (3), (4) of the microprogram of FIG. 8, respectively.

【0007】したがって、t1 でレジスタ3へタイマ1
の上位を読出し、t2 でレジスタ4へタイマ1の下位を
読出し、t3 でレジスタ5へタイマ1の上位を再び読出
す。t3 ではレジスタ3の値は00000001、レジスタ5の
値は00000002という値なので比較器6は一致を検出しな
いことになる。つまり、タイマ1の値としてレジスタ3
およびレジスタ4に読出した0000000100000000は間違っ
たものであることを示す。
Therefore, at t 1 , the timer 1 is transferred to the register 3
Of the timer 1 is read, the lower part of the timer 1 is read to the register 4 at t 2 , and the upper part of the timer 1 is read again to the register 5 at t 3 . At t 3 , the value of the register 3 is 00000001 and the value of the register 5 is 00000002, so the comparator 6 does not detect a match. That is, the value of timer 1 is set as register 3
And 0000000100000000 read to the register 4 indicates that it is wrong.

【0008】マイクロプログラムはt10から再びタイマ
値の読出し動作をくり返す。t11,t12,t13の動作は
1 ,t2 ,t3 と同じである。この場合には、t13
はレジスタ3の値は00000002、レジスタ5の値は000000
02という値なので、比較器6は一致を検出する。t
13で、タイマ1の値(0000000200000000)が正しくレジ
スタ3とレジスタ4に読出せたことになる。
The microprogram repeats the operation of reading the timer value again from t 10 . The operations at t 11 , t 12 , and t 13 are the same as those at t 1 , t 2 , and t 3 . In this case, at t 13 , the value of register 3 is 00000002 and the value of register 5 is 000000.
Since the value is 02, the comparator 6 detects a match. t
At 13, it means that the value of timer 1 (0000000200000000) has been correctly read into the registers 3 and 4.

【0009】[0009]

【発明が解決しようとする課題】この従来のタイマリー
ド方式では、マイクロプログラムにより、タイマの値が
正しく読出せたか否かの判断をしているため、マイクロ
プログラムのステップ数が増加し、タイマ読出しの性能
が低下するという問題点がある。
In this conventional timer read method, the microprogram determines whether or not the value of the timer has been read correctly. Therefore, the number of steps of the microprogram increases and the timer read However, there is a problem in that

【0010】[0010]

【課題を解決するための手段】本発明の第1の装置は、
マイクロプログラム方式の情報処理装置で、データ幅が
半数のデータパスを介してタイマの値を外部に読出すタ
イマリード制御装置において、前記タイマの上位ワード
を外部リードすると同時に前記タイマの下位ワードをリ
ードし、その値を内部に保持する読出しレジスタを設
け、前記タイマの上位ワードリード後に、該読出しレジ
スタの値を外部にリードすることを特徴とする。
The first device of the present invention comprises:
In a microprogram type information processing device, a timer read control device for externally reading the value of a timer through a data path having a data width of half is used to externally read the upper word of the timer and simultaneously read the lower word of the timer. However, a read register for holding the value therein is provided, and after reading the upper word of the timer, the value in the read register is read to the outside.

【0011】本発明の第2の装置は、マイクロプログラ
ム方式の情報処理装置で、データ幅が半数のデータパス
を介してタイマの値を外部に読出すタイマリード制御装
置において、前記タイマの下位ワードを外部にリードす
ると同時に前記タイマの上位ワードをリードし、その値
を内部に保持する読出しレジスタを設け、前記タイマの
下位ワードリード後に、該読出しレジスタの値を外部に
リードすることを特徴とする。
A second device of the present invention is a microprogram type information processing device, wherein in a timer read control device for externally reading a timer value via a data path having a half data width, the lower word of the timer is used. Is read out at the same time, the upper word of the timer is read at the same time, and a read register for holding the value inside is provided, and after the lower word of the timer is read, the value of the read register is read out. .

【0012】[0012]

【実施例】次に本発明について図面を参照して説明す
る。
The present invention will be described below with reference to the drawings.

【0013】図1は本発明の第1の実施例のタイマリー
ド制御装置を示すブロック図であり、タイマ1と、セレ
クタ2と、3つのレジスタ3,4および7と、アダー1
0から成る。そして、タイマ1,セレクタ2,レジスタ
7およびアダー10はLSI“A”に、レジスタ3およ
び4はLSI“B”に収容されている。
FIG. 1 is a block diagram showing a timer read control device according to a first embodiment of the present invention, which is a timer 1, a selector 2, three registers 3, 4 and 7, and an adder 1.
It consists of zero. The timer 1, the selector 2, the register 7 and the adder 10 are accommodated in the LSI "A", and the registers 3 and 4 are accommodated in the LSI "B".

【0014】タイマ1は8バイトで構成されていて、ア
ダー10は1マイクロ秒の更新パルスに応答してタイマ
1の値をカウントアップする。レジスタ7はタイマ1の
下位4バイトを常時読出し、セレクタ2はマイクロプロ
グラムの制御により、タイマ1の上位4バイトとレジス
タ7の値を選択する。
The timer 1 is composed of 8 bytes, and the adder 10 counts up the value of the timer 1 in response to the update pulse of 1 microsecond. The register 7 always reads the lower 4 bytes of the timer 1, and the selector 2 selects the upper 4 bytes of the timer 1 and the value of the register 7 under the control of the microprogram.

【0015】セレクタ2の出力は、LSI“A”とLS
I“B”のインタフェイスを形成するが、これらLSI
の間のピン数が制限されているため、4バイト幅となっ
ている。すなわち、本来、タイマ1の8バイトの値を直
接にレジスタ3とレジスタ4へ読出したいのであるが、
LSIのピン数の制約を受けて4バイトのインタフェイ
スとなっている。レジスタ3はタイマ1の上位4バイト
を読出すためのレジスタ、レジスタ4はレジスタ7が保
持するタイマ1の下位4バイトを読出すためのレジスタ
である。
The outputs of the selector 2 are LSI "A" and LS.
I "B" interface is formed.
Since the number of pins between is limited, the width is 4 bytes. That is, originally, it is desired to directly read the 8-byte value of the timer 1 into the register 3 and the register 4,
It has a 4-byte interface due to the limitation of the number of pins of the LSI. The register 3 is a register for reading the upper 4 bytes of the timer 1, and the register 4 is a register for reading the lower 4 bytes of the timer 1 held by the register 7.

【0016】図2はタイマ1の値を読出すマイクロプロ
グラムのフローチャートを示す。図2の(A)でレジス
タ3へタイマ1の上位4バイトを読出し、レジスタ6に
タイマ1の下位4バイトを読出す。この時、セレクタ2
はタイマ1の上位4バイトを選択している。(B)では
レジスタ4へレジスタ7が保持するタイマ1の下位4バ
イトを読出す。このときセレクタ2はレジスタ7を選択
している。
FIG. 2 shows a flow chart of a micro program for reading the value of the timer 1. In FIG. 2A, the upper 4 bytes of timer 1 are read into register 3, and the lower 4 bytes of timer 1 are read into register 6. At this time, selector 2
Selects the upper 4 bytes of timer 1. In (B), the lower 4 bytes of the timer 1 held by the register 7 are read into the register 4. At this time, the selector 2 selects the register 7.

【0017】図3は図2で示したマイクロプログラムの
動作を示すタイムチャートである。t1 、t2 は図2に
示したマイクロプログラムの(A)、(B)に対応して
いる。t1 では、タイマ1の値は上位4バイトが000000
01、下位4バイトがFFFFFFFFという値である。
FIG. 3 is a time chart showing the operation of the microprogram shown in FIG. t 1 and t 2 correspond to (A) and (B) of the microprogram shown in FIG. At t 1 , the upper 4 bytes of the value of timer 1 are 000000
01 and the lower 4 bytes are FFFFFFFF.

【0018】t1 で1マイクロ秒のタイマ更新パルスが
出力されると、t1 のマイクロプログラムの指示(A)
で、タイマ1の上位4バイトをレジスタ3へ読出す。こ
の時、同時にタイマ1の下位4バイトがレジスタ7へ読
出されている。t2 のマイクロプログラムの指示(B)
で、レジスタ7が保持するタイマ1の下位4バイトの値
をレジスタ4に読出す。この結果、レジスタ3およびレ
ジスタ4に、t1 時のタイマ1の値(00000001FFFFFFF
F)が正しく読出されていることになる。
[0018] When the timer update pulse of 1 microsecond at t 1 is output, t 1 of the micro program of instruction (A)
Then, the upper 4 bytes of timer 1 are read into register 3. At this time, the lower 4 bytes of the timer 1 are simultaneously read to the register 7. Instruction of microprogram of t 2 (B)
Then, the value of the lower 4 bytes of timer 1 held in register 7 is read into register 4. As a result, the value of timer 1 at time t 1 (00000001FFFFFFF
F) has been correctly read.

【0019】図4は本発明の第2の実施例を示すブロッ
ク図である。本実施例は、第1の実施例の基本的には同
構成であるが、レジスタ7に導かれるのはタイマ1の上
位となっている点が相違する。
FIG. 4 is a block diagram showing a second embodiment of the present invention. The present embodiment has basically the same configuration as the first embodiment, except that the register 7 is guided to the higher order of the timer 1.

【0020】従って、セレクタ2は、先ずタイマ1の下
位の値をレジスタ4に出力し、次いで、レジスタ7の値
をレジスタ3に出力するように動作する。この結果、図
5のフローチャートおよび図6のタイムチャートにも図
示するごとく、レジスタ3とレジスタ4にタイマ1の値
(00000001FFFFFFFF)が正しく読出されることになる。
Therefore, the selector 2 operates so that the lower value of the timer 1 is first output to the register 4 and then the value of the register 7 is output to the register 3. As a result, as shown in the flowchart of FIG. 5 and the time chart of FIG. 6, the value of the timer 1 (00000001FFFFFFFF) is correctly read into the registers 3 and 4.

【0021】[0021]

【発明の効果】以上説明したように本発明は、タイマの
下位もしくは上位の4バイトを一時的に読出すレジスタ
を設け、タイマの上位もしくは下位4バイトとレジスタ
7の値を連続してレジスタ3とレジスタ4へ読出すこと
により、外部への読出しデータ幅が制約されるインタフ
ェイスの下にあっても、マイクロプログラムによるタイ
マ値の読出しデータの正当性チェックの判定を不要と
し、タイマ読出し性能を向上させ、さらにマイクロプロ
グラムのステップ数を削減できるという効果を有する。
As described above, according to the present invention, a register for temporarily reading out the lower or upper 4 bytes of the timer is provided, and the upper or lower 4 bytes of the timer and the value of the register 7 are continuously stored in the register 3. By reading the data into the register 4 and the register 4, even if there is an interface in which the width of the read data to the outside is restricted, it is not necessary to determine the validity of the read data of the timer value by the microprogram, and the timer read performance is improved. This has the effect of improving and further reducing the number of steps of the microprogram.

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

【図1】本発明の第1の実施例のブロック図である。FIG. 1 is a block diagram of a first embodiment of the present invention.

【図2】第1の実施例におけるマイクロプログラムのフ
ローチャートである。
FIG. 2 is a flowchart of a micro program in the first embodiment.

【図3】第1の実施例のタイムチャートである。FIG. 3 is a time chart of the first embodiment.

【図4】本発明の第2の実施例のブロック図である。FIG. 4 is a block diagram of a second embodiment of the present invention.

【図5】第2の実施例におけるマイクロプログラムのフ
ローチャートである。
FIG. 5 is a flow chart of a micro program in the second embodiment.

【図6】第2の実施例のタイムチャートである。FIG. 6 is a time chart of the second embodiment.

【図7】従来例のブロック図である。FIG. 7 is a block diagram of a conventional example.

【図8】図7に示した従来例におけるマイクロプログラ
ムのフローチャートである。
8 is a flow chart of a microprogram in the conventional example shown in FIG.

【図9】図7に示した従来例のタイムチャートである。9 is a time chart of the conventional example shown in FIG.

【符号の説明】[Explanation of symbols]

1 タイマ 2 セレクタ 3,4,5,7 レジスタ 6 比較器 10 加算器。 1 Timer 2 Selector 3, 4, 5, 7 Register 6 Comparator 10 Adder.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 マイクロプログラム方式の情報処理装置
で、データ幅が半数のデータパスを介してタイマの値を
外部に読出すタイマリード制御装置において、 前記タイマの上位ワードを外部リードすると同時に前記
タイマの下位ワードをリードし、その値を内部に保持す
る読出しレジスタを設け、 前記タイマの上位ワードリード後に、該読出しレジスタ
の値を外部にリードすることを特徴とするタイマリード
制御装置。
1. A microprogram type information processing apparatus, comprising: a timer read control apparatus for externally reading a value of a timer through a data path having a half data width, wherein the upper word of the timer is externally read and at the same time the timer is read. A read register for reading the lower word of the above and holding the value therein, and after reading the upper word of the timer, the value of the read register is read outside.
【請求項2】 マイクロプログラム方式の情報処理装置
で、データ幅が半数のデータパスを介してタイマの値を
外部に読出すタイマリード制御装置において、 前記タイマの下位ワードを外部にリードすると同時に前
記タイマの上位ワードをリードし、その値を内部に保持
する読出しレジスタを設け、 前記タイマの下位ワードリード後に、該読出しレジスタ
の値を外部にリードすることを特徴とするタイマリード
制御装置。
2. A micro-program type information processing device, wherein a timer read control device reads out a value of a timer to the outside through a data path having a half data width, wherein the lower word of the timer is read to the outside at the same time. A timer read control device, comprising: a read register for reading an upper word of a timer and holding the value therein; and reading the value of the read register to the outside after reading the lower word of the timer.
JP6089270A 1994-04-27 1994-04-27 Timer reading controller Pending JPH07295806A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6089270A JPH07295806A (en) 1994-04-27 1994-04-27 Timer reading controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6089270A JPH07295806A (en) 1994-04-27 1994-04-27 Timer reading controller

Publications (1)

Publication Number Publication Date
JPH07295806A true JPH07295806A (en) 1995-11-10

Family

ID=13966064

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6089270A Pending JPH07295806A (en) 1994-04-27 1994-04-27 Timer reading controller

Country Status (1)

Country Link
JP (1) JPH07295806A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010113544A (en) * 2008-11-06 2010-05-20 Fujitsu Ten Ltd Timer value generation device and timer value generation method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61211719A (en) * 1985-03-15 1986-09-19 Sanyo Electric Co Ltd Integrated circuit
JPH01237861A (en) * 1988-03-18 1989-09-22 Fujitsu Ltd Microprocessor
JPH01280918A (en) * 1988-05-06 1989-11-13 Mitsubishi Electric Corp Interval timer
JPH0375909A (en) * 1989-08-18 1991-03-29 Fujitsu Ltd System for reading out counter value
JPH03188514A (en) * 1989-12-18 1991-08-16 Nippon Telegr & Teleph Corp <Ntt> counting circuit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61211719A (en) * 1985-03-15 1986-09-19 Sanyo Electric Co Ltd Integrated circuit
JPH01237861A (en) * 1988-03-18 1989-09-22 Fujitsu Ltd Microprocessor
JPH01280918A (en) * 1988-05-06 1989-11-13 Mitsubishi Electric Corp Interval timer
JPH0375909A (en) * 1989-08-18 1991-03-29 Fujitsu Ltd System for reading out counter value
JPH03188514A (en) * 1989-12-18 1991-08-16 Nippon Telegr & Teleph Corp <Ntt> counting circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010113544A (en) * 2008-11-06 2010-05-20 Fujitsu Ten Ltd Timer value generation device and timer value generation method

Similar Documents

Publication Publication Date Title
EP0238090A2 (en) Microcomputer capable of accessing internal memory at a desired variable access time
US7051194B2 (en) Self-synchronous transfer control circuit and data driven information processing device using the same
JPH05143323A (en) Method and apparatus for executing type-1 diadic instruction
JPH07295806A (en) Timer reading controller
JP3055139B2 (en) Micro program control method
JPH11353347A (en) Logical simulation device, its method and record medium recording its controlling program
JPH09330339A (en) Automatic description division device
JPH0954694A (en) Pipeline processor and its processing method
JPH11126200A (en) Vector processor
JPH10320380A (en) Vector processor
JPH08297583A (en) Interrupt handling apparatus and method thereof
JPH03137869A (en) Magnetic tape data recording system
JPH06266652A (en) Information processor
JPH0792902A (en) Programmable controller
JPH05108384A (en) Microprocessor
JPH02217924A (en) Store processing method of data processing device
JPS6217844A (en) Information processor
JPH1165829A (en) Address conversion circuit
JPS63173142A (en) Completion token output circuit
JPH02217935A (en) Interruption generating circuit for debugging
JPH05225113A (en) Input/output processor
JPS60101646A (en) Interruption processing method
JPH0342721A (en) Information processor
JPH0540661A (en) Simulator
JPH02204844A (en) Debug interruption generating circuit

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19971118