JPH02190928A - 除算器 - Google Patents

除算器

Info

Publication number
JPH02190928A
JPH02190928A JP1010786A JP1078689A JPH02190928A JP H02190928 A JPH02190928 A JP H02190928A JP 1010786 A JP1010786 A JP 1010786A JP 1078689 A JP1078689 A JP 1078689A JP H02190928 A JPH02190928 A JP H02190928A
Authority
JP
Japan
Prior art keywords
dividend
divider
decoder
divisor
bits
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
JP1010786A
Other languages
English (en)
Inventor
Masayuki Kaneda
金田 正幸
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
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP1010786A priority Critical patent/JPH02190928A/ja
Priority to US07/466,148 priority patent/US4989173A/en
Publication of JPH02190928A publication Critical patent/JPH02190928A/ja
Pending legal-status Critical Current

Links

Classifications

    • G—PHYSICS
    • G06—COMPUTING OR CALCULATING; COUNTING
    • G06F—ELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/38—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
    • G06F7/48—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
    • G06F7/52—Multiplying; Dividing
    • G06F7/535—Dividing only
    • G—PHYSICS
    • G06—COMPUTING OR CALCULATING; COUNTING
    • G06F—ELECTRIC DIGITAL DATA PROCESSING
    • G06F2207/00—Indexing scheme relating to methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F2207/535—Indexing scheme relating to groups G06F7/535 - G06F7/5375
    • G06F2207/5352—Non-restoring division not covered by G06F7/5375

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Error Detection And Correction (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、Nビットの被除数Aを除数Bで除算し商及び
余りを出力する除算器に関し、特に被除数A及び除数B
が自然数であり且つ除数Bが定数である場合の除算器に
関するものである。
〔従来の技術〕
従来の除算器は、予めメモリにNビットの被除数を除数
B(定数)で除算した際の商及び余りの全ての計算結果
を書き込んでおき、被除数Aでメモリを索引することに
より除算結果を出力していた。
〔発明が解決しようとする課題〕
しかしながら従来の除算器は、メモリを用いた構成とな
っているので、被除数Aに対する計算結果をメモリから
索引するのに時間が掛り、ゲートを用いた構成と比較し
て計算速度が遅いという欠点があった。
〔課題を解決するための手段〕
本発明は上記の欠点を解消するためになされたもので、
被除数と除数の定数倍とを比較する複数個の比較回路と
、比較回路の出力をデコードするデコーダと、被除数の
下位ビットとデコーダの出力の下位ビットとの演算を行
なう演算器とを備えている。
〔作 用〕
被除数と除数の定数倍とを比較し、その結果に応じた値
をデコードすることにより商を出力する。
また、被除数の下位ビットとデコーダの出力の下位ビッ
トとを演算することにより余りを出力する。
〔実施例〕
次に本発明について図面を参照して説明する。
第1図は本発明の一実施例を示す除算器のブロック図で
ある。
同図において、10はNビットの被除数であり、被除数
10の全ビットが比較回路2.〜2,1に入力される。
この比較回路21〜21.は、被除数10と除数のi倍
とを比較し、被除数10が除数の倍数より小さければ「
0」が出力され、それ以外の場合にはrlJが出力され
る。次に、デコーダ30は比較回路2.〜2..の出力
を入力として商50の入力データとなるデータ31と演
算器40の入力データとなるデータ32とを出力する。
演算器40は被除数の下位ビット11及びデコーダ30
の出力データ32を入力とし、余り60の入力データと
なるデータ41を出力する。
第2図は被除数を9ビツト除数を6としたときの比較回
路21の論理構成を示した説明図である。図において、
210は減算器であり、被除数9ビツト0000001
10(= 6 x 1 )を減算した際に借りができれ
ばrOJを出力し、それ以外には「l」を出力する。被
除数が9ビツトの場合には比較回路は2’−1=63個
あり、他の比較回路22〜2°4.も第2図において入
力端子211に入力される固定人力値00000011
0が000001100〜101111010に起き換
わるのみで論理構成上は同等である。
第3図は被除数を9ビツト除数を6としたときのデコー
ダの論理構成を示した説明図である。
図において、データ31.32はデコーダ30の出力で
あり、例えば比較回路21,2□の出力が「1」であり
、比較回路23〜2,3の出力が「0」の場合にはデー
タ31は202進数表示6ビソト000010となり、
データ32は比較回路2の入力固定値の下位3ピノ)1
00となる。同様に比較回路1〜iの出力が「1」であ
り、比較回路(i+1)〜63の出力が「0」の際には
、データ31はiの2進数表示6ビツトとなり、データ
32は比較回路iの入力固定値の下位3ビツトとなる。
第4図は除数を6としたときの演算回路40の論理構成
を示した説明図である。除数が6の際には余りは2進数
表示で3桁で表されるため、被除数の下位ピント11及
びデータ32は共に3ピントのデータである。400は
減算器であり、被除数の下位ビット11からデータ32
を減算し、結果である3ピントのデータ41を出力する
。
第5図は本除算器を用いた除算回路の説明図である。図
において、70はレジスタであり、被除数、除算途中の
結果及び除算結果を格納する。除算器80は、例えばレ
ジスタ70の上位9ビツトのデータを入力とし、商50
をレジスタの最下位6ビツトに、余りをレジスタの最下
位3ビツトに入力する。レジスタのビット3−32には
、レジスタのビット9−38がシフトされて入力される
。
第6図はレジスタ70の各マシンサイクルにおける状態
の遷移を示したフローチャートである。
最初レジスタ70の最上位3ビツトには「0」が格納さ
れ、残りの36ビツトには被除数36ビツトが格納され
ている(ステップ700)、  1マシンサイクル毎に
前回の除算器の出力である余り13ビツトと、被除数:
1i−3i。、6ビツトが除算器の入力となる(ステッ
プ701〜705)。6マシンサイクルタイム後(=3
6/ (9−3))除算は完結し、最上位3ビツトが余
り、残り36ビツトが商となっている(ステップ706
)。
このように本実施例における除算器は、被除数と除数の
定数倍を比較する複数個の比較回路2゜〜27と、この
比較回路21〜2oの出力をデコードするデコーダ30
と、このデコーダ30の出力の一部下位ビットの演算を
行なう演算器40とで構成しているため、従来の除算器
のように予めメモリにNビットの被除数を除数(定数)
で除算した際の商及び余りの全ての計算結果を書き込ん
でおく必要がなく、任意の被除数に対して直接向及び余
り(余りがある場合)を出力することができる。これに
より、メモリを索引することが不用となり除算器の高速
化を図ることができる。
〔発明の効果〕
以上説明したように本発明は、被除数と除数の定数倍と
を比較する複数個の比較回路と、比較回路の出力をデコ
ードするデコーダと、被除数の下位ビットと前記デコー
ダの出力の下位ビットとの演算を行なう演算器とを備え
ているため、任意の被除数に対して直接面及び余りを出
力することができる。これにより、従来のようなメモリ
が不用となり除算器の高速化を図ることができる。
【図面の簡単な説明】
第1図は本発明の一実施例を示す除算器のブロック図、
第2図は被除数を9ビツト、除数を6としたときの比較
回路21の論理構成を示した説明図、第3図は被除数を
9ビツト、除数を6としたときのデコーダの論理構成を
示した説明図、第4図は除数を6としたときの演算回路
40の論理構成を示した説明図、第5図は本除算器を用
いた除算回路の説明図、第6図はレジスタ70の各マシ
ンサイクルにおける状態の遷移を示したフローチャート
である。 2I〜2、・・・比較回路、10・・・被除数、30・
・・デコーダ、40・・・演算器、50・・商、 ・余り。

Claims (1)

    【特許請求の範囲】
  1. 被除数を予め定められた定数で割る除算器において、被
    除数と除数の定数倍とを比較する複数個の比較回路と、
    前記比較回路の出力をデコードするデコーダと、前記被
    除数の下位ビットと前記デコーダの出力の下位ビットと
    の演算を行なう演算器とを備えたことを特徴とする除算
    器。
JP1010786A 1989-01-19 1989-01-19 除算器 Pending JPH02190928A (ja)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP1010786A JPH02190928A (ja) 1989-01-19 1989-01-19 除算器
US07/466,148 US4989173A (en) 1989-01-19 1990-01-19 Fast divider for a constant divisor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1010786A JPH02190928A (ja) 1989-01-19 1989-01-19 除算器

Publications (1)

Publication Number Publication Date
JPH02190928A true JPH02190928A (ja) 1990-07-26

Family

ID=11760018

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1010786A Pending JPH02190928A (ja) 1989-01-19 1989-01-19 除算器

Country Status (2)

Country Link
US (1) US4989173A (ja)
JP (1) JPH02190928A (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5945657A (en) * 1996-07-31 1999-08-31 Nec Corporation Constant divider

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2835153B2 (ja) * 1990-06-25 1998-12-14 株式会社東芝 高基数除算器
US5649029A (en) * 1991-03-15 1997-07-15 Galbi; David E. MPEG audio/video decoder
US5315540A (en) * 1992-08-18 1994-05-24 International Business Machines Corporation Method and hardware for dividing binary signal by non-binary integer number
US5828591A (en) * 1992-11-02 1998-10-27 Intel Corporation Method and apparatus for using a cache memory to store and retrieve intermediate and final results
US5442581A (en) * 1993-11-30 1995-08-15 Texas Instruments Incorporated Iterative division apparatus, system and method forming plural quotient bits per iteration
US5644524A (en) * 1993-11-30 1997-07-01 Texas Instruments Incorporated Iterative division apparatus, system and method employing left most one's detection and left most one's detection with exclusive or
US6173305B1 (en) 1993-11-30 2001-01-09 Texas Instruments Incorporated Division by iteration employing subtraction and conditional source selection of a prior difference or a left shifted remainder
FR2771525B1 (fr) * 1997-11-24 2002-10-11 Sgs Thomson Microelectronics Procede de production d'un parametre de correction d'erreur associe a la mise en oeuvre d'operation modulaire selon la methode de montgomery
US6081824A (en) * 1998-03-05 2000-06-27 Intel Corporation Method and apparatus for fast unsigned integral division
US6108723A (en) * 1998-07-20 2000-08-22 Hewlett-Packard Company System for implementing hardware automated control of burst mode data transfer over a communication link between devices operating in a block mode
US6578062B1 (en) * 1999-10-13 2003-06-10 Maxtor Corporation Method and circuit for digital division
FR2837948B1 (fr) * 2002-03-27 2004-07-16 St Microelectronics Sa Procede de realisation de divisions entieres
CN100353310C (zh) * 2003-12-16 2007-12-05 河北工业大学 一种除数是15×2n的快速除法器
CN100349110C (zh) * 2003-12-16 2007-11-14 河北工业大学 一种除数是15×2n的快速除法器
CN100334542C (zh) * 2003-12-16 2007-08-29 河北工业大学 一种除数是15×2n的快速除法器
CN100334543C (zh) * 2003-12-16 2007-08-29 河北工业大学 一种除数是15×2n的快速除法器
CN100342323C (zh) * 2003-12-16 2007-10-10 河北工业大学 一种除数是15×2n的快速除法器
CN100353312C (zh) * 2003-12-16 2007-12-05 河北工业大学 一种除数是15×2n的快速除法器
CN100353311C (zh) * 2003-12-16 2007-12-05 河北工业大学 一种除数是15×2n的快速除法器
CN101018583A (zh) * 2004-08-26 2007-08-15 巴尔密封工程有限公司 用于医疗电子装置的导电路径
IT1395477B1 (it) * 2009-09-08 2012-09-21 St Microelectronics Srl "dispositivo per calcolare quozienti, ad esempio per convertire indirizzi logici in indirizzi fisici"

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4688186A (en) * 1982-10-04 1987-08-18 Honeywell Bull Inc. Division by a constant by iterative table lookup

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5945657A (en) * 1996-07-31 1999-08-31 Nec Corporation Constant divider

Also Published As

Publication number Publication date
US4989173A (en) 1991-01-29

Similar Documents

Publication Publication Date Title
US4953115A (en) Absolute value calculating circuit having a single adder
US5103451A (en) Parallel cyclic redundancy check circuit
US4623982A (en) Conditional carry techniques for digital processors
US4238833A (en) High-speed digital bus-organized multiplier/divider system
JPS60163128A (ja) 乗算回路
JPS6375932A (ja) ディジタル乗算器
US4172288A (en) Binary or BCD adder with precorrected result
JPH0746310B2 (ja) 半導体論理回路
JP2970231B2 (ja) 並列乗算回路
JPS59226923A (ja) バスインタ−フエ−ス装置
EP0332845A2 (en) Dual look ahead mask generator
JPH04270415A (ja) 高性能加算器
US3287546A (en) Parity prediction apparatus for use with a binary adder
US6470371B1 (en) Parallel multiplier
US5691930A (en) Booth encoder in a binary multiplier
GB2127187A (en) Circuits for operating on N- digit operands
EP0442220B1 (en) Decoder
JPH03164866A (ja) ハッシュ符号化回路
US3463910A (en) Digit processing unit
US3624375A (en) Binary coded decimal to binary conversion apparatus
US3824589A (en) Complementary offset binary converter
US3902055A (en) Binary adder circuit
JPH08202533A (ja) 除算処理装置
JPH0315209B2 (ja)
JP2705162B2 (ja) 演算処理装置