JPH0318771B2 - - Google Patents

Info

Publication number
JPH0318771B2
JPH0318771B2 JP58083487A JP8348783A JPH0318771B2 JP H0318771 B2 JPH0318771 B2 JP H0318771B2 JP 58083487 A JP58083487 A JP 58083487A JP 8348783 A JP8348783 A JP 8348783A JP H0318771 B2 JPH0318771 B2 JP H0318771B2
Authority
JP
Japan
Prior art keywords
address
holding
output
state
count
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
JP58083487A
Other languages
Japanese (ja)
Other versions
JPS59210726A (en
Inventor
Atsushi Iwata
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 Corp
Original Assignee
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP8348783A priority Critical patent/JPS59210726A/en
Publication of JPS59210726A publication Critical patent/JPS59210726A/en
Publication of JPH0318771B2 publication Critical patent/JPH0318771B2/ja
Granted legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K21/00Details of pulse counters or frequency dividers

Landscapes

  • Complex Calculations (AREA)

Description

【発明の詳細な説明】 技術分野 本発明は複数個のカウンタを有する情報処理装
置におけるカウンタ回路に関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to a counter circuit in an information processing device having a plurality of counters.

背景技術 従来、情報処理装置において複数個のカウンタ
を構成する場合、一般に更新周期がマシンサイク
ルに対して十分に大きいにもかかわらず、更新方
向、加減算定数、カウント周期の相違から被カウ
ント値個有に更新回路を用意する必要があり、ハ
ードウエア量が大きくなるという欠点があつた。
BACKGROUND ART Conventionally, when configuring a plurality of counters in an information processing device, although the update cycle is generally sufficiently large compared to the machine cycle, the counted value is unique due to differences in update direction, addition/subtraction constant, and count cycle. It was necessary to prepare an update circuit for each update, which had the disadvantage of increasing the amount of hardware.

発明の開示 本発明の目的は、マシンサイクルに対して更新
周期が十分に大きい複数個のカウンタを構成する
場合、前記カウンタの被カウント値と、前記カウ
ンタ個有の更新方向、加減算定数と、前記カウン
タのカウント指示パルス信号に共通の走査可能な
アドレスを与え、前記カウンタの共通に処理でき
るようにし、更新回路が唯1個のみで更新を可能
にするカウンタ回路を提供することにある。
DISCLOSURE OF THE INVENTION It is an object of the present invention to configure a plurality of counters whose update period is sufficiently large with respect to a machine cycle, and to determine the counted value of the counter, the update direction unique to the counter, the addition/subtraction constant, and the To provide a counter circuit which gives a common scannable address to a count instruction pulse signal of a counter so that the counters can be commonly processed, and which enables updating with only one updating circuit.

本発明の構成について述べると、本発明は、複
数個のカウンタを有し、それぞれ該複数個のカウ
ンタに固有の周期を有する複数のパルス信号を発
生する情報処理装置において、前記各カウンタの
被カウント値をアドレス指定可能に格納する第1
の格納手段と、前記被カウント値個有のカウント
方向およびカウント数を決定する指示情報をアド
レス指定可能に格納する第2の格納手段と、前記
第1および第2の格納手段に対して走査可能なア
ドレスを与えるアドレス指定手段と、前記複数の
パルス信号と一対一対応に設けられ、対応する該
パルス信号が与えられたとき第1の状態を保持す
る複数の保持手段と、前記アドレス指定手段から
前記固有の周期に等しいかまたは短い周期で順次
出力される前記アドレスに基づき前記複数の保持
手段のうちの1つを選択し、該選択された保持手
段の状態を出力したあと、該保持手段に第2の状
態を保持させる選択手段と、前記アドレス指定手
段から出力される前記アドレスにより指定された
第1の格納手段内の被カウント値を、前記選択手
段より出力された前記保持手段の状態が前記第1
の状態を示しているとき第2の格納手段の指示に
よりカウント更新する更新手段とを有するカウン
タ回路である。
Describing the structure of the present invention, the present invention provides an information processing device that has a plurality of counters and generates a plurality of pulse signals each having a period unique to the plurality of counters, The first one that addressably stores the value
a second storage means for addressably storing instruction information that determines a count direction and a count number specific to the counted value; and a second storage means that is scannable with respect to the first and second storage means. a plurality of holding means that are provided in one-to-one correspondence with the plurality of pulse signals and hold a first state when the corresponding pulse signals are applied; One of the plurality of holding means is selected based on the address sequentially output at a period equal to or shorter than the unique period, and after outputting the state of the selected holding means, a selection means for holding a second state, and a state of the holding means outputted from the selection means for determining the counted value in the first storage means specified by the address outputted from the addressing means; Said first
This counter circuit has updating means for updating the count according to an instruction from the second storage means when the state is indicated.

本発明によれば、複数個のカウンタを有する場
合においても、各カウンタの被カウント値、更新
方向、加減算定数、カウント指示信号をアドレス
指定可能に格納することにより、唯1個の更新回
路を使用するのみで、すべてのカウンタの更新が
可能となり、したがつてハードウエア量が少くて
すむという効果がある。
According to the present invention, even if there are multiple counters, only one update circuit can be used by storing the counted value, update direction, addition/subtraction constant, and count instruction signal of each counter in an addressable manner. By simply doing this, all counters can be updated, which has the effect of reducing the amount of hardware required.

発明を実施するための最良の形態 本発明を実施例により図面を参照して説明す
る。
BEST MODE FOR CARRYING OUT THE INVENTION The present invention will be described by way of examples with reference to the drawings.

第1図は本発明の実施例のブロツク図を示す。
第1図において、レジスタフアイル1には複数の
カウンタの被カウント値が格納されている。信号
線6,7はそれぞれレジスタフアイル1の初期設
定パスおよび読み出しパスである。信号線8は加
減算器5の演算結果出力をレジスタフアイル1の
入力端に接続するものであり、信号線9はレジス
タフアイル1の出力を加減算器5の入力端に接続
するものである。レジスタフアイル2の部分2a
には前記被カウント値に対応する加減算定数が格
納され、部分2bには前記被カウント値に対応す
る更新方向を決定する1ビツト情報が格納されて
いる。部分2bの内容が“0”のとき更新方向は
−であり、“1”のとき更新方向は+である。信
号線10はレジスタフアイル2の初期設定パスで
ある。信号線11はレジスタフアイル2の部分2
bの出力端を加減算器5に接続する。信号線12
はレジスタフアイル2の部分2aの出力端を加減
算器5に接続する。アドレス生成回路3はマシン
サイクルで走査しているカウンタ回路で、信号線
13によつてレジスタフアイル1,2カウント指
示信号選択保持回路4にアドレスを与える。カウ
ント指示信号選択保持回路4は信号線14によつ
て入力される前記カウンタのカウント指示信号を
保持するもので、信号線13によつてアドレス指
示されるまで保持している。信号線15はカウン
ト指示信号選択保持回路4の出力端を加減算器5
に接続するものである。加減算器5は、信号線9
からの入力を信号線12による入力で指示される
加減算定数と信号線11による入力で指示される
更新方向とで、信号線15から入力される信号が
“1”のとき演算し、演算結果を信号線8に出力
する。信号線15から入力される信号が“0”の
ときの演算結果は、信号線9の入力がそのまま出
力される。信号線16は、レジスタフアイル1,
2を初期設定するために、アドレス生成回路3に
アドレスを設定する信号の入力線である。
FIG. 1 shows a block diagram of an embodiment of the invention.
In FIG. 1, a register file 1 stores counted values of a plurality of counters. Signal lines 6 and 7 are the initial setting path and readout path of the register file 1, respectively. The signal line 8 connects the operation result output of the adder/subtractor 5 to the input end of the register file 1, and the signal line 9 connects the output of the register file 1 to the input end of the adder/subtracter 5. Part 2a of register file 2
2b stores an addition/subtraction constant corresponding to the counted value, and 1-bit information for determining the update direction corresponding to the counted value is stored in the part 2b. When the content of portion 2b is "0", the update direction is -, and when it is "1", the update direction is +. The signal line 10 is an initial setting path for the register file 2. Signal line 11 is part 2 of register file 2
The output terminal of b is connected to the adder/subtracter 5. Signal line 12
connects the output end of the portion 2a of the register file 2 to the adder/subtractor 5. The address generation circuit 3 is a counter circuit that scans in machine cycles, and supplies an address to the register file 1, 2 count instruction signal selection and holding circuit 4 through a signal line 13. The count instruction signal selection and holding circuit 4 holds the count instruction signal of the counter inputted through the signal line 14 until an address is specified through the signal line 13. The signal line 15 connects the output terminal of the count instruction signal selection and holding circuit 4 to the adder/subtractor 5.
It is connected to. The adder/subtractor 5 is connected to the signal line 9
When the signal input from the signal line 15 is "1", the input is calculated using the addition/subtraction constant specified by the input through the signal line 12 and the update direction specified by the input through the signal line 11, and the calculation result is calculated. Output to signal line 8. When the signal input from the signal line 15 is "0", the calculation result is outputted as is from the signal input to the signal line 9. The signal line 16 is connected to the register file 1,
This is an input line for a signal for setting an address in the address generation circuit 3 in order to initialize the address generation circuit 2.

次にこの第1図の動作について説明すると、ま
ず信号線16によりアドレス生成回路3にアドレ
スを与え、レジスタフアイル1,2をそれぞれ信
号線6,10により初期設定する。初期設定以後
アドレス生成回路3はマシンサイクルで走査し、
信号線13によりレジスタフアイル1,2および
カウント指示信号選択保持回路4にアドレスを与
え、アドレス指示されたレジスタフアイル1の出
力は、レジスタフアイル2の出力とカウント指示
信号選択保持回路4の出力の指示により加減算器
5で演算され、再びレジスタフアイル1に格納さ
れる。(この動作を以後更新動作と呼ぶ)。例えば
アドレス0、1、2の3つが存在する場合は、あ
るマシンサイクルT0でアドレス0の更新動作が
行なわれると、マシンサイクルT0+1ではアド
レス1、T0+2ではアドレス2、T0+3ではア
ドレス0のように更新動作が続けられ、信号線1
5が“1”のときのみレジスタフアイル1の被カ
ウント値がカウントされる。従つて複数個のカウ
ンタは個有の更新条件の相違に関係なく唯一の更
新回路で構成が可能となる。
Next, the operation shown in FIG. 1 will be explained. First, an address is given to the address generation circuit 3 through the signal line 16, and the register files 1 and 2 are initialized through the signal lines 6 and 10, respectively. After initial setting, the address generation circuit 3 scans in machine cycles,
Addresses are given to register files 1 and 2 and the count instruction signal selection and holding circuit 4 through the signal line 13, and the output of the addressed register file 1 is an instruction for the output of the register file 2 and the output of the count instruction signal selection and holding circuit 4. is calculated by the adder/subtractor 5 and stored in the register file 1 again. (This operation will be referred to as update operation hereinafter). For example, if there are three addresses 0, 1, and 2, if address 0 is updated in a certain machine cycle T 0 , address 1 is updated in machine cycle T 0 +1, address 2 is updated in T 0 +2, and address 2 is updated in T 0 +3. Then the update operation continues like address 0, and signal line 1
The counted value of register file 1 is counted only when 5 is "1". Therefore, a plurality of counters can be configured with a single update circuit regardless of differences in individual update conditions.

第2図は、カウント指示信号選択保持回路4の
詳細ブロツク図である。FF40〜FF47は、レ
ジスタフアイル1,2のワード0〜7に対応した
フリツプフロツプであり、第1図の信号線14で
示した信号線140〜147がそれぞれセツト信
号として入力される。信号線140〜147は第
3図で示す予め決められた周期のカウントパルス
信号である。またFF40〜FF47にはデコーダ
401の出力信号410〜417が各々1ビツト
ずつホールド信号として入力されていて、例えば
FF45は、信号線145で入力した周期100Tの
カウントパルス信号でセツトされ、信号線415
が“0”であれば保持し、信号線415が“1”
になつたら保持をやめるように動作する。デコー
ダ401はアドレス生成回路3の出力を第4図の
ごとくデコードして信号線410〜417を生成
出力する。従つて信号線415の場合は、アドレ
ス生成回路3の出力が5(H)のときだけ“1”にな
る。またアドレス生成回路3の出力は、レジスタ
フアイル1,2のワードに合わせて0→1→2→
3→4→5→6→7→0→1→…とマシンクロツ
クで走査しているので、信号線415が“1”に
なるのは8T周期ということになる。セレクタ4
02はFF40〜FF47の出力信号420〜42
7を入力し、アドレス生成回路3の値により、第
4図のごとく選択出力する。すなわちFF45の
場合は、アドレス生成回路3の出力が5(H)のとき
のみ選択出力されるわけである。(信号線15に
出力される) 以上によりレジスタフアイル1のワード5の被
カウント値がカウント指示ごとに+30されるよう
にレジスタフアイル2のワード5の加減算定数、
更新方向が設定されていれば、第5図のタイムチ
ヤートで示すように動作して、レジスタフアイル
1のワード5の被カウンタ値Aは+30される。
FIG. 2 is a detailed block diagram of the count instruction signal selection and holding circuit 4. FF40 to FF47 are flip-flops corresponding to words 0 to 7 of register files 1 and 2, and signal lines 140 to 147 shown by signal line 14 in FIG. 1 are input as set signals, respectively. Signal lines 140 to 147 are count pulse signals having a predetermined period as shown in FIG. Further, the output signals 410 to 417 of the decoder 401 are input to FF40 to FF47 as hold signals of one bit each, for example.
The FF45 is set by a count pulse signal with a period of 100T inputted through the signal line 145, and
If it is “0”, it is held and the signal line 415 is “1”
It works so that it stops holding when it reaches that point. The decoder 401 decodes the output of the address generation circuit 3 as shown in FIG. 4, and generates and outputs signal lines 410-417. Therefore, in the case of the signal line 415, it becomes "1" only when the output of the address generation circuit 3 is 5 (H) . In addition, the output of the address generation circuit 3 is changed from 0 → 1 → 2 → according to the words of register files 1 and 2.
Since the machine clock scans in the order of 3→4→5→6→7→0→1→..., the signal line 415 becomes "1" in 8T cycles. selector 4
02 is the output signal 420-42 of FF40-FF47
7 is input, and according to the value of the address generation circuit 3, it is selectively output as shown in FIG. That is, in the case of the FF45, the selective output is performed only when the output of the address generation circuit 3 is 5 (H) . (Output to signal line 15) As described above, the addition/subtraction constant of word 5 of register file 2 is set so that the counted value of word 5 of register file 1 is increased by +30 for each count instruction.
If the update direction is set, the operation is performed as shown in the time chart of FIG. 5, and the counter value A of word 5 of register file 1 is incremented by +30.

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

第1図は本発明の実施例のブロツク回路図、第
2図は回路4の詳細を示すブロツク図、第3図な
いし第5図は回路4の動作を説明するための図で
ある。 1……第1の格納手段(レジスタフアイル)、
2……第2の格納手段(レジスタフアイル)、3
……アドレスを与える手段(アドレス生成回路)、
4……カウント指示信号選択保持回路、5……更
新回路(加減算器)。
FIG. 1 is a block circuit diagram of an embodiment of the present invention, FIG. 2 is a block diagram showing details of the circuit 4, and FIGS. 3 to 5 are diagrams for explaining the operation of the circuit 4. 1...first storage means (register file),
2...Second storage means (register file), 3
...Means for giving an address (address generation circuit),
4... Count instruction signal selection and holding circuit, 5... Update circuit (adder/subtractor).

Claims (1)

【特許請求の範囲】 1 複数個のカウンタを有し、それぞれ該複数個
のカウンタに固有の周期を有する複数のパルス信
号を発生する情報処理装置において、 前記各カウンタの被カウント値をアドレス指定
可能に格納する第1の格納手段と、 前記被カウント値固有のカウント方向およびカ
ウント数を決定する指示情報をアドレス指定可能
に格納する第2の格納手段と、 前記第1および第2の格納手段に対して走査可
能なアドレスを与えるアドレス指定手段と、 前記複数のパルス信号と一対一対応に設けら
れ、対応する該パルス信号が与えられたとき第1
の状態を保持する複数の保持手段と、 前記アドレス指定手段から前記固有の周期に等
しいかまたは短い周期で順次出力される前記アド
レスに基づき前記複数の保持手段のうちの1つを
選択し、該選択された保持手段の状態を出力した
あと該保持手段に第2の状態を保持させる選択手
段と、 前記アドレス指定手段から出力される前記アド
レスにより指定された第1の格納手段内の被カウ
ント値を、前記選択手段より出力された前記保持
手段の状態が前記第1の状態を示しているとき第
2の格納手段の指示によりカウント更新する更新
手段と を有することを特徴とするカウンタ回路。
[Scope of Claims] 1. In an information processing device that has a plurality of counters and generates a plurality of pulse signals each having a period unique to the plurality of counters, the counted value of each of the counters can be addressed. a first storage means for storing in the first and second storage means; a second storage means for storing in an addressable manner instruction information for determining a count direction and a count number specific to the counted value; addressing means for giving a scannable address to the plurality of pulse signals; and addressing means provided in one-to-one correspondence with the plurality of pulse signals, and when the corresponding pulse signal is applied, a first
a plurality of holding means for holding the state; and one of the plurality of holding means is selected based on the address sequentially output from the addressing means at a period equal to or shorter than the unique period; selecting means for causing the holding means to hold a second state after outputting the state of the selected holding means; and a count value in the first storage means specified by the address output from the addressing means. and updating means for updating the count according to an instruction from a second storage means when the state of the holding means output from the selection means indicates the first state.
JP8348783A 1983-05-14 1983-05-14 Counter circuit Granted JPS59210726A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8348783A JPS59210726A (en) 1983-05-14 1983-05-14 Counter circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8348783A JPS59210726A (en) 1983-05-14 1983-05-14 Counter circuit

Publications (2)

Publication Number Publication Date
JPS59210726A JPS59210726A (en) 1984-11-29
JPH0318771B2 true JPH0318771B2 (en) 1991-03-13

Family

ID=13803830

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8348783A Granted JPS59210726A (en) 1983-05-14 1983-05-14 Counter circuit

Country Status (1)

Country Link
JP (1) JPS59210726A (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5614343A (en) * 1979-07-13 1981-02-12 Hitachi Ltd Analogue output circuit

Also Published As

Publication number Publication date
JPS59210726A (en) 1984-11-29

Similar Documents

Publication Publication Date Title
EP0180196B1 (en) Programmable counter/timer device
JPS59146345A (en) Control flow parallel computer system
JPS63291134A (en) Logically integrated circuit
JPS59194245A (en) Microprogram controller
US5269012A (en) Stack memory system including an address buffer for generating a changed address by inverting an address bit
JPS6041769B2 (en) Addressing method
JPH0318771B2 (en)
US4888685A (en) Data conflict prevention for processor with input/output device
US5708842A (en) Apparatus for changing coefficients utilized to perform a convolution operation having address generator which uses initial count number and up/down count inputs received from external
JPH0831033B2 (en) Data processing device
JP2555882B2 (en) Signal processor
WO2021117112A1 (en) Computation device and computation system
JP2763655B2 (en) Semiconductor integrated circuit
JP2595998B2 (en) Electronic musical instrument
KR100247062B1 (en) Fifo method and circuit having ring structure
JP2526042Y2 (en) Memory / register control circuit
JPS63251825A (en) Control system for real time timer
JPH06168099A (en) Addition circuit
JPH04264620A (en) Status protection circuit using ram
JPS59200328A (en) Central processing unit incorporating data transfer circuit
KR19980014696A (en) DSP single instruction repeat processing circuit
JPH0677232B2 (en) Micro program controller
JPS59155884A (en) Signal generator
JPH05145407A (en) Counter
JPS61138305A (en) Sequence control circuit