JPS61189731A - Discrete value counting circuit - Google Patents

Discrete value counting circuit

Info

Publication number
JPS61189731A
JPS61189731A JP2975285A JP2975285A JPS61189731A JP S61189731 A JPS61189731 A JP S61189731A JP 2975285 A JP2975285 A JP 2975285A JP 2975285 A JP2975285 A JP 2975285A JP S61189731 A JPS61189731 A JP S61189731A
Authority
JP
Japan
Prior art keywords
value
register
circuit
addition
bit
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
JP2975285A
Other languages
Japanese (ja)
Inventor
Takahiro Kanbara
神原 隆宏
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2975285A priority Critical patent/JPS61189731A/en
Publication of JPS61189731A publication Critical patent/JPS61189731A/en
Pending legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

PURPOSE:To simplify the constitution and to increase the operating speed of a descrete value counting circuit by adding in parallel the designated addition value for each generation of a clock pulse and outputs the descrete value. CONSTITUTION:An additional value generating part 4 outputs the designated addition value N in the form of an n-bit parallel signal. A count clock generating circuit 5 produces successively the pulse signals which decide the additional timing of the additional value. A register 6 holds an input signal for each supply of a clock pulse produced from the circuit 5 and outputs this holding data as the count result of the n-bit descrete value. Thus the register 6 reads out the contents of a memory 3 to supply them as address signals. An adder 7 adds the n-bit addition value outputted from an additional value generating part 4 and the n-bit output signal of the register 6 in parallel to each other and supplies this added result to the register 6 in the form of an n-bit signal. The count result of the descrete value is changed instantaneously every designated additional value every time a clock pulse is produced from the circuit 5. Thus a high-speed operation of a descrete value counting circuit is always secured regardless of the designated additional value N.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、任意の離散値を出力する離散値計数回路に
関し、特に所定加算値の加算処理が高速に行なえる離散
値計数回路に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a discrete value counting circuit that outputs arbitrary discrete values, and particularly relates to a discrete value counting circuit that can perform addition processing of a predetermined addition value at high speed. be.

〔従ン盲術〕[Blind Technique]

離散値計数回路は、任意゛の加算値Nを順次計数するこ
とによって、順次N値ずつ変化する離散値を得るもので
あって、例えばメモリのアドレス指定を行なう場合等に
おいて必要となるものである。
A discrete value counting circuit obtains a discrete value that sequentially changes by N values by sequentially counting arbitrary added values N, and is necessary, for example, when specifying a memory address. .

つまり、メモリのアドレスt−5香地飛び毎に指定した
い場合には、5,10.15・・・・・・と変化する離
散値が必要でめり、この場合に於ける離散値は加算値N
=5を繰り返し加算したものとなる。
In other words, if you want to specify every memory address t-5, you will need discrete values that change like 5, 10.15, etc., and in this case, the discrete values will be added. value N
=5 is repeatedly added.

第2図は従来一般に用いられている離散値計数回路の一
例を示す回路図であって、カウントクロック発生回路1
およびその出力クロックパルスを計数するバイナリ−カ
ウンタ2とによって構成されている。そして、カウント
クロック発生回路1は、予め定められた加算値Nに一致
する数のクロックパルスをブロック単位として、つまり
Nが5である場合には5個のクロックパルスを1プaツ
クとしてこのブロック単位毎に順次クロックパルスを発
生するように特殊な構成となっている。従って、バイナ
リ−カウンタ2は、カウントクロック発生回路1からブ
ロック単位のシリアル信号として供給されるクロックパ
ルスを順次計数することによシ、加算値N毎に変化点を
有する離散値が得られることになる。そして、このバイ
ナリ−カウンタ2の計数値は、nビットのアドレス信号
色してメモリ3に供給されることによジ、メモリアドレ
スが加算値N毎に順次飛ばされた状態で指定されて、こ
の指定アドレス部分の内容が読み出されることになる。
FIG. 2 is a circuit diagram showing an example of a conventionally commonly used discrete value counting circuit, in which the count clock generation circuit 1
and a binary counter 2 that counts its output clock pulses. Then, the count clock generation circuit 1 generates clock pulses of a number equal to a predetermined addition value N as a block unit, that is, when N is 5, 5 clock pulses as 1 block. It has a special configuration so that clock pulses are generated sequentially for each unit. Therefore, by sequentially counting the clock pulses supplied from the count clock generation circuit 1 as a block-by-block serial signal, the binary counter 2 can obtain a discrete value having a change point for each addition value N. Become. The count value of the binary counter 2 is supplied to the memory 3 as an n-bit address signal, so that the memory address is specified in a state where it is skipped sequentially for each addition value N. The contents of the specified address portion will be read.

〔発EJAが解決しようとする問題点〕しかしながら、
上記構成による離散値計数回路に於いては、カウントク
ロック発生回路1から指定された加算値Nに一致する数
のクロックパルスをブロックとして順次送出させる必要
があるために、このカウントクロック発生回路1の構成
が極めて複雑なものとなってしまう。また、バイナリ−
カウンタ2は、加算値Nに一致する数のクロックパルス
を順次計数するものであることがら、指定した加算値N
の値が大きくなるに伴って計数時間も増大することから
、高速動作が得られない等の種々問題を有している。
[Problems that EJA is trying to solve] However,
In the discrete value counting circuit having the above configuration, it is necessary to sequentially send out clock pulses of the number matching the specified addition value N from the count clock generation circuit 1 as a block. The configuration becomes extremely complicated. Also, binary
Since the counter 2 sequentially counts the number of clock pulses that match the added value N, the specified added value N
Since the counting time also increases as the value of increases, there are various problems such as the inability to achieve high-speed operation.

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

従って、この発明による離散値計数回路は、任意の加算
値Nをパラレルデータとして出力する加算値発生部と、
計数タイミングを決定するクロックパルスを発生するカ
ウントクロック発生回路と、このカウントクロック発生
回路から出力されるクロックパルスの発生時毎に新たな
計数値を保持しテ出力するレジスタと、このレジスタの
出力信号と加算値発生部から出力される加算値とを加算
してレジスタに供給する加算器とによって構成したもの
である。
Therefore, the discrete value counting circuit according to the present invention includes an addition value generation section that outputs an arbitrary addition value N as parallel data;
A count clock generation circuit that generates clock pulses that determine counting timing, a register that holds and outputs a new count value every time a clock pulse is output from this count clock generation circuit, and an output signal of this register. and an adder that adds the sum and the sum output from the sum value generator and supplies the result to the register.

〔作 用〕[For production]

この様に構成された離散値計数回路に於いては、計数出
力値に加算値を並列加算処理することによって新たな計
数値を得、この計算結果をクロックパルスの発生毎にレ
ジスタに保持させ、このレジスタの保持内容を離散値計
数結果として出力するものであることから、加算値Nの
値に関係なく、常にクロックパルスの発生毎に離散値単
位の計数が行なえることから、その計数動作が高速化さ
れる。また、カウントクロック発生回路は、ただ単に計
数タイミングを決定するために用いられることから、所
定の周期でパルス信号を発生する簡単なパルス発振回路
で良いことになる。
In the discrete value counting circuit configured in this way, a new count value is obtained by adding the addition value to the count output value in parallel, and this calculation result is held in a register every time a clock pulse occurs. Since the content held in this register is output as a discrete value counting result, it is possible to always count in units of discrete values each time a clock pulse occurs, regardless of the value of the addition value N. Speed is increased. Further, since the count clock generation circuit is used simply to determine the counting timing, a simple pulse oscillation circuit that generates a pulse signal at a predetermined period may be sufficient.

〔実施例〕〔Example〕

第1図は本発明による離散値計数回路の一実施例を示す
ブロック図である。同図において、4は指定された加算
値Nをnビットのパラレル信号として出力する加算値発
生部、5はカウントクロック発生回路であって、加算値
の加算タイミングを決定するパルス信号を順次発生する
。6はレジスタであって、カウントクロック発生回路5
から発生されるクロックパルスの供給毎に入力信号を保
持し、この保持データをnビットの離散値計数結果とし
て出力することにより、メモリ3に読み出しアドレス信
号として供給する。7は加算器であって、加算値発生部
4から出力されるnビットの加算値Nとレジスタ6のD
ビット構成による出力信号とを並列加算し、その加算結
果をnビットの信号としてレジスタ6に供給する。
FIG. 1 is a block diagram showing an embodiment of a discrete value counting circuit according to the present invention. In the figure, numeral 4 is an addition value generation unit that outputs a specified addition value N as an n-bit parallel signal, and 5 is a count clock generation circuit, which sequentially generates pulse signals that determine the timing of addition of the addition value. . 6 is a register, and the count clock generation circuit 5
The input signal is held each time a clock pulse generated from the input signal is supplied, and this held data is outputted as an n-bit discrete value counting result to be supplied to the memory 3 as a read address signal. 7 is an adder, which combines the n-bit addition value N output from the addition value generation unit 4 and D of the register 6.
The bit-configured output signals are added in parallel, and the addition result is supplied to the register 6 as an n-bit signal.

この様に構成された離散値計数回路に於いて。In the discrete value counting circuit configured in this way.

図示しないスタートボタンを操作すると、レジスタ6の
保持内容がリセットされてその出力値が零となる。ここ
で、加算値発生部4は予め指定した加算値Nを加算器7
の入力ボートBに供給し続けている。この結果、加算器
7はレジスタ、6から入力ポートAに供給されるデータ
が零であることから、加算値Nそのものを加算結果とし
てレジスタ6の入力端に供給する。
When a start button (not shown) is operated, the contents held in the register 6 are reset and its output value becomes zero. Here, the addition value generating section 4 sends the prespecified addition value N to the adder 7.
continues to supply input boat B. As a result, since the data supplied from the register 6 to the input port A is zero, the adder 7 supplies the added value N itself to the input end of the register 6 as the addition result.

次に、カウントクロック発生回路5が第1番目のクロッ
クパルスを発生すると、レジスタ6が入力データとして
の上記加算値Nを取り込んで保持するとともに、この保
持データである加算値Nをメモリ3に読み出しアドレス
として供給する。また、このレジスタ6の出力データは
加算器7の入力ボート人に戻されることから、再び加算
値Nが加算されてその加算結果d2Nとなる。そして、
この加算器7の加算出力2Nは、nビットのパラレル信
号としてレジスタ6の入力端に供給される。
Next, when the count clock generation circuit 5 generates the first clock pulse, the register 6 takes in and holds the added value N as input data, and reads out the added value N, which is the held data, to the memory 3. Provide it as an address. Further, since the output data of this register 6 is returned to the input port of the adder 7, the addition value N is added again to obtain the addition result d2N. and,
The addition output 2N of the adder 7 is supplied to the input end of the register 6 as an n-bit parallel signal.

ここで、カウントクロック発生回路5から第2番目のク
ロックパルスが発生されると、レジスタ6に加算器7か
ら供給される加算出力2Nを取り込んで保持するととも
に、この新たに保持されたデータ2Nをアドレスデータ
としてメモリ3に供給する。また、レジスタ6の出力信
号2Nは、加算器7の入カポ−)Aに戻されることから
、加算値発生部4から加算57の入力ポートBに供給さ
れる加算値Nと加算されて加算器7の加算出力は3Nと
なる。そして、この加算器7の出力信号3Nは、カウン
トクロック発生回路5から発生される第3番目のクロッ
ク信号によってレジスタ6に保持されるとともに、その
保持内容3Nがアドレス信号としてメモリ3に供給され
る。
Here, when the second clock pulse is generated from the count clock generation circuit 5, the register 6 captures and holds the addition output 2N supplied from the adder 7, and also stores this newly held data 2N. It is supplied to the memory 3 as address data. Furthermore, since the output signal 2N of the register 6 is returned to the input port A of the adder 7, it is added to the addition value N supplied from the addition value generating section 4 to the input port B of the addition 57, and is added to the addition value N supplied to the input port B of the addition 57. The addition output of 7 becomes 3N. The output signal 3N of the adder 7 is held in the register 6 by the third clock signal generated from the count clock generation circuit 5, and the held content 3N is supplied to the memory 3 as an address signal. .

この様な動作を繰り返すことにより、レジスタ6からは
クロックパルスの供給毎に加算値Nずつ増加する離散値
が得られることになる。つまり、Nが5であった場合に
は、5,10,15.20・・・・・・と変化する離散
値が得られることから、この離散値をアドレス信号とし
てメモリ3に供給することにより、5番地飛びの位置に
記憶されている内容が順次読み出されることになる。そ
して、この場合に於ける離散値計数結果の指定加算値単
位の変化は、カウントクロック発生回路5からクロック
パルスが発生される毎に一瞬に行なわれることから、指
定加算値Nに関係なく常に高速動作となる。
By repeating such operations, a discrete value is obtained from the register 6, which increases by the addition value N each time a clock pulse is supplied. In other words, if N is 5, a discrete value that changes as 5, 10, 15.20, etc. is obtained, so by supplying this discrete value to the memory 3 as an address signal, , the contents stored in five consecutive addresses are sequentially read out. In this case, the change in the specified addition value unit of the discrete value counting result is instantaneously performed every time a clock pulse is generated from the count clock generation circuit 5, so it is always fast regardless of the specified addition value N. It becomes an action.

なお、上記実施例に於いては、加算値Nt−順次加算す
ることによって、N幅でカウントアツプする離散値を得
る場合について説明したが、加算値Nを2の補数とする
ことによって、カウントダウンする離散値が得られるこ
とになる。また、レジスタ6をリセットしてから加算動
作を開始させたが、レジスタ6に任意の値をプリセット
することにより、このプリセット値から変化する離散値
が得られることになる。
In the above embodiment, a case has been described in which a discrete value that counts up by a width of N is obtained by sequentially adding the addition value Nt. Discrete values will be obtained. Further, although the addition operation is started after resetting the register 6, by presetting an arbitrary value in the register 6, a discrete value that changes from this preset value can be obtained.

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

以上説明した様に、この発明による離散値計数回路に於
いては、クロックパルスの発生毎に指定加算値を並列加
算して離散値を出力するものであることから、カウント
クロック発生回路はただ単に加算タイミングを決定する
クロックパルスの発生のみを行なえば良いことから、そ
の構成が従来に比較して大幅に簡略化される。また、こ
の発明に於いては、クロックパルスの発生毎に指定加算
値を並列加算するものであることから、加算値Nの値に
関係なく、常に瞬時に加算が行なわれることから、従来
に比較して大幅な高速化が計れる等の種々優れた効果を
有する。
As explained above, in the discrete value counting circuit according to the present invention, the specified addition value is added in parallel every time a clock pulse occurs and a discrete value is output, so the count clock generation circuit simply Since it is only necessary to generate the clock pulse that determines the addition timing, the configuration is greatly simplified compared to the conventional one. In addition, in this invention, since the specified addition value is added in parallel every time a clock pulse occurs, the addition is always instantaneously performed regardless of the value of the addition value N, compared to the conventional method. It has various excellent effects such as being able to significantly increase speed.

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

第1図はこの発明による離散値計数回路の一実施例を示
すブロック図、第2図は従来の離散値計数回路の一例を
示すブロック図である。 4・・・加算値発生部、5・・・カウントクロック発生
回路、6・・・レジスタ、7・・・加算器。
FIG. 1 is a block diagram showing an embodiment of a discrete value counting circuit according to the present invention, and FIG. 2 is a block diagram showing an example of a conventional discrete value counting circuit. 4... Addition value generation section, 5... Count clock generation circuit, 6... Register, 7... Adder.

Claims (1)

【特許請求の範囲】[Claims] (1)任意の加算値を発生する加算値発生回路と、離散
値の計数タイミングを決定するクロックパルスを発生す
るクロックパルス発生回路と、このクロックパルス発生
回路から出力されるクロックパルスによつて新たな計数
値を保持して出力するレジスタと、前記加算値発生回路
から出力される加算値と前記レジスタの出力信号とを加
算してレジスタの入力端に供給する加算器とを設けたこ
とを特徴とする離散値計数回路。
(1) An addition value generation circuit that generates an arbitrary addition value, a clock pulse generation circuit that generates a clock pulse that determines the counting timing of discrete values, and a new A register that holds and outputs a counted value, and an adder that adds the added value output from the added value generating circuit and the output signal of the register and supplies the result to the input end of the register. Discrete value counting circuit.
JP2975285A 1985-02-18 1985-02-18 Discrete value counting circuit Pending JPS61189731A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2975285A JPS61189731A (en) 1985-02-18 1985-02-18 Discrete value counting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2975285A JPS61189731A (en) 1985-02-18 1985-02-18 Discrete value counting circuit

Publications (1)

Publication Number Publication Date
JPS61189731A true JPS61189731A (en) 1986-08-23

Family

ID=12284819

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2975285A Pending JPS61189731A (en) 1985-02-18 1985-02-18 Discrete value counting circuit

Country Status (1)

Country Link
JP (1) JPS61189731A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63224953A (en) * 1987-03-16 1988-09-20 Fuji Xerox Co Ltd Address controller for printer
JPH01108807A (en) * 1987-10-21 1989-04-26 Fujitsu Ten Ltd Pulse generating circuit
JPH04172822A (en) * 1990-11-07 1992-06-19 Nec Corp Up-down counter

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63224953A (en) * 1987-03-16 1988-09-20 Fuji Xerox Co Ltd Address controller for printer
JPH01108807A (en) * 1987-10-21 1989-04-26 Fujitsu Ten Ltd Pulse generating circuit
JPH04172822A (en) * 1990-11-07 1992-06-19 Nec Corp Up-down counter

Similar Documents

Publication Publication Date Title
US5706029A (en) Apparatus and method for retrieving data from a joystick
JPH053032B2 (en)
JPS61189731A (en) Discrete value counting circuit
JP3536426B2 (en) Waveform generator
JPH0651957A (en) Random numbers generator
JP3425175B2 (en) Random pulse generation device and random pulse generation method
JP2005066127A (en) Random number generator for game machine
JP3125651B2 (en) Rate generator
JP2871253B2 (en) Timing generator with skew correction function
JPS6018005A (en) Digital oscillating circuit
KR0174707B1 (en) Clock generator
JPH05175794A (en) M series generating circuit
JPH01258130A (en) Pseudo random number generator
JP2651300B2 (en) Timer circuit
JPH1114711A (en) Timing generator for semiconductor testing device
JPH0282810A (en) Binary periodic signal generator
SU1649531A1 (en) Number searcher
JPS6227872A (en) Intersecting point detecting circuit
JPH06332845A (en) Text vram control circuit
JPH0467653B2 (en)
JPS609286B2 (en) Timing signal generation circuit
JPS63225182A (en) Synchronous adder circuit
JP2003018885A (en) Multi-shaft interpolation controller
JPH11150459A (en) Pulse output circuit
JPH06204857A (en) Oscillation circuit