JPH06149930A - Logic circuit replacement propriety judging method and technology mapping device - Google Patents

Logic circuit replacement propriety judging method and technology mapping device

Info

Publication number
JPH06149930A
JPH06149930A JP4323839A JP32383992A JPH06149930A JP H06149930 A JPH06149930 A JP H06149930A JP 4323839 A JP4323839 A JP 4323839A JP 32383992 A JP32383992 A JP 32383992A JP H06149930 A JPH06149930 A JP H06149930A
Authority
JP
Japan
Prior art keywords
logic circuit
circuit
partial
cell
replacement
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
JP4323839A
Other languages
Japanese (ja)
Inventor
Akira Nomura
亮 野村
Akira Nagoya
彰 名古屋
Mitsuteru Yukishimo
充輝 雪下
Takeshi Oguro
毅 大黒
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP4323839A priority Critical patent/JPH06149930A/en
Publication of JPH06149930A publication Critical patent/JPH06149930A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide the logic circuit replacement propriety judging method and the technology mapping device using the same so that the propriety of replacement can be judged at high speed and even a composite library cell composed of plural gate circuits can be efficiently replaced as well. CONSTITUTION:An encoding prime factor is allocated for each basic gate circuit, code values are respectively calculated as the products of encoding prime factors concerning the partial logic circuits of tree structure which does not branch any output in the middle, and the circuit replacement propriety is judged from the integral dividing relation between both of these code values. On the other hand, the desired logic circuit is inputted from a logic circuit information input/ output part 1, this is divided into partial logic circuits by a partial circuit extraction part 2, the library cell enabling the replacement of this partial logic circuit is selected by a cell selection part 3, further, the selected cell is made suitable by a cell suiting part 4, and the divided logic circuits are reconstituted by a circuit reconstitution part 5.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、半導体集積回路の自動
レイアウト設計方法として、所望の論理回路を予め用意
された論理機能ブロックで置換可能であるか否かを判断
する論理回路置換可否判断方法、およびこの判断方法に
基づくテクノロジマッピング装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic layout design method for a semiconductor integrated circuit, which is a method for determining whether or not a desired logic circuit can be replaced with a logic function block prepared in advance. , And a technology mapping device based on this determination method.

【0002】[0002]

【従来の技術】半導体集積回路は、近年における多品種
小量の需要に応じて開発コストの削減および開発期間の
短縮が重要視されており、特にこの要求に応じることを
目的として、所望の論理回路を分割して予め用意された
各種論理機能ブロック(以下、ライブラリセルという)
に割り当て、これらライブラリセル間を配線するという
スタンダードセル方式やゲートアレイ方式をはじめとし
た各種レイアウト設計方式が実用化されている。さらに
ライブラリセルに対して所望の論理回路を自動的に効率
よく割り当てる方式として各種テクノロジマッピング方
法が提案されている。
2. Description of the Related Art In semiconductor integrated circuits, it has been emphasized that the development cost and the development period are shortened in response to the recent demand for a wide variety of small quantities. Various logic function blocks prepared by dividing the circuit (hereafter called library cells)
, And various layout design methods such as a standard cell method and a gate array method of wiring between these library cells have been put to practical use. Further, various technology mapping methods have been proposed as a method for automatically and efficiently allocating desired logic circuits to library cells.

【0003】従来のテクノロジマッピング方法の1つと
して、論理回路における入出力関係すなわち論理関数を
キューブ等のビット列で表現して、起こり得る全ての入
力組み合わせに対して出力を算出し、これを所望の論理
回路とライブラリセルとで比較することによりマッピン
グの可否を判断する方法がある。またテクノロジマッピ
ング方法における他の例として、論理関数を考慮せず論
理回路を構成する基本ゲート回路毎に単純に比較する方
法がある。
As one of conventional technology mapping methods, the input / output relationship in a logic circuit, that is, a logic function is expressed by a bit string such as a cube, outputs are calculated for all possible input combinations, and this is calculated as desired. There is a method of determining whether or not mapping is possible by comparing the logic circuit and the library cell. Another example of the technology mapping method is a method of simply comparing each basic gate circuit forming a logic circuit without considering the logic function.

【0004】[0004]

【発明が解決しようとする課題】このような従来のテク
ノロジマッピング方法において、前者は、全ての入力組
み合わせに対してその出力を算出してその結果を比較す
るものであるから、その比較処理は入力論理数の増加に
対して指数的に増加するためその処理時間が膨大なもの
となり、特に規模が大きい論理回路に対するテクノロジ
マッピング方法としては実用的ではない。また後者は、
基本ゲート回路毎に単純に比較するものであるから、比
較処理として木構造のマッチングが必要となるため処理
時間が比較的長くなり、さらに所望の論理回路を実現で
きるライブラリセルであっても論理関数を考慮していな
いために、ゲート回路の入力数が異なる等の構成の相違
により不一致と判断してマッピング(割り当て)に失敗
するという問題点があった。
In such a conventional technology mapping method, the former is to calculate the outputs of all the input combinations and compare the results. As the number of logic increases exponentially, the processing time becomes enormous, which is not practical as a technology mapping method for a particularly large logic circuit. The latter is
Since the comparison is simply performed for each basic gate circuit, the tree structure matching is required as the comparison process, so the processing time is relatively long, and even if the library cell can realize a desired logic circuit, the logic function However, there is a problem in that mapping (assignment) fails due to a difference in the configuration such as the number of inputs of the gate circuit, which is determined as a mismatch.

【0005】本発明はこのような課題を解決するための
ものであり、高速で置換可否を判断できるとともに、複
数のゲート回路からなる複合ライブラリセルに対しても
効率よく置換可能な論理回路置換可否判断方法、および
これを用いたテクノロジマッピング装置を提供すること
を目的としている。
The present invention is intended to solve such a problem, and it is possible to determine whether or not replacement is possible at high speed, and whether or not replacement is possible for a logic circuit that can efficiently replace even a complex library cell composed of a plurality of gate circuits. It is an object to provide a determination method and a technology mapping device using the determination method.

【0006】[0006]

【課題を解決するための手段】このような目的を達成す
るため、本発明による論理回路置換可否判断方法は、A
ND,OR,NOT等の各種基本ゲート回路毎に符号化
素因数として素数または素数と−1を割り当てておき、
これらゲート回路から構成され途中のゲート回路出力が
分岐しない木構造の第1および第2の部分論理回路につ
いて符号化素因数の積としての符号値をそれぞれ算出
し、これら両符号値の整除関係により第1および第2の
部分論理回路間における回路置換の可否を判断するもの
である。また、部分論理回路を論理関数で表現した場合
に論理変数の積からなる項の和で表現されるものを積和
系、また論理変数の和からなる項の積で表現されるもの
を和積系とし、各種基本ゲート回路毎に少なくとも積和
系用または和積系用として符号化素因数を割り当ててお
き、両部分論理回路が分類される各系に対応する符号化
素因数に基づき符号値を算出するものである。
In order to achieve such an object, a method for determining whether or not a logic circuit can be replaced according to the present invention is
A prime number or a prime number and -1 are assigned as coding prime factors for each of various basic gate circuits such as ND, OR, and NOT.
A code value as a product of the coding prime factors is calculated for each of the first and second partial logic circuits of the tree structure configured from these gate circuits and the output of the gate circuit in the middle does not branch, and the first and second partial logic circuits are calculated according to the division relation of these two code values. Whether or not circuit replacement is possible between the first and second partial logic circuits is determined. Also, when a partial logic circuit is expressed by a logical function, the one represented by the sum of terms consisting of the product of the logical variables is the product-sum system, and the one represented by the product of the terms consisting of the sum of the logical variables is the sum-product As a system, at least a coding sum factor for each product gate system or a sum product system is assigned to each basic gate circuit, and a code value is calculated based on a coding prime factor corresponding to each system into which both partial logic circuits are classified. To do.

【0007】また、本発明におけるテクノロジマッピン
グ装置として、所望の論理回路を請求項1における部分
論理回路または請求項2における各系に分類される部分
論理回路に分割する手段と、前出の論理回路置換可否判
断方法に基づき、部分論理回路が置き換え可能なライブ
ラリセルを選択するセル選択手段と、論理回路置換可否
判断方法における整除算の商を素因数分解し、各素因数
に基づき所定の適合化処理を行うセル適合化手段と、こ
れら分割し置換した前記部分論理回路を所望の論理回路
として再構成する回路再構成手段とを備えるものであ
る。さらに、このセル選択手段として、前出の論理回路
置換可否判断方法に基づいて、各ライブラリセル毎に予
め符号値を算出しておき、部分論理回路の符号値以上の
符号値を持つライブラリセルに対して符号値の小さいも
のから順に置換可否判断を実施し、最初に置換可能と判
断されたライブラリセルを選択するセル選択手段を備え
るものである。
Further, as the technology mapping device of the present invention, means for dividing a desired logic circuit into a partial logic circuit according to claim 1 or a partial logic circuit classified into each system according to claim 2, and the above-mentioned logic circuit. Cell selection means for selecting a library cell in which the partial logic circuit can be replaced based on the replacement possibility determination method, and the quotient of the division in the logic circuit replacement availability determination method are decomposed into prime factors, and predetermined adaptation processing is performed based on each prime factor. It is provided with a cell adapting means for performing and a circuit reconfiguring means for reconfiguring the divided and replaced partial logic circuits as desired logic circuits. Further, as the cell selection means, a code value is calculated in advance for each library cell based on the above-mentioned logic circuit replacement possibility determination method, and a library cell having a code value equal to or greater than the code value of the partial logic circuit is selected. On the other hand, a cell selection unit is provided for performing replacement possibility determination in order from the smallest code value, and selecting the library cell first determined to be replaceable.

【0008】[0008]

【作用】従って、比較する部分論理回路についてそれぞ
れ素因数表に基づき符号値が算出され、両符号値間で整
除算が行われる。この結果、整除された場合には2つの
部分論理回路間で置換可能であると判断される。また、
部分論理回路がその接続形態により各系に分類され、そ
の系に基づく素因数表に応じて符号値が算出される。ま
た、入力された所望の論理回路が部分論理回路に分割さ
れ、個々の部分論理回路に対して置換可能なライブラリ
セルが選択され、さらに選択されたセルが適合化処理さ
れて、所望の論理回路に再構成される。さらに、部分論
理回路の符号値以上の符号値を持つライブラリセルに対
して小さい順に置換可否判断が行われる。
Therefore, the code value is calculated for each of the partial logic circuits to be compared based on the prime factor table, and the division is performed between both code values. As a result, when the division is performed, it is determined that the two partial logic circuits can be replaced. Also,
The partial logic circuits are classified into each system according to their connection form, and the code value is calculated according to the prime factor table based on that system. Further, the input desired logic circuit is divided into partial logic circuits, a replaceable library cell is selected for each partial logic circuit, and the selected cells are subjected to adaptation processing to obtain the desired logic circuit. Reconfigured into. Further, replacement possibility determination is performed in ascending order for library cells having a code value equal to or greater than the code value of the partial logic circuit.

【0009】[0009]

【実施例】次に、本発明について図面を参照して説明す
る。図1は本発明の一実施例であるテクノロジマッピン
グ装置のブロック図である。図1において、1は所望す
る論理回路に関する情報を入力する論理回路情報入出力
部、2は論理回路情報入出力部1により入力された論理
回路を分岐出力を含まない部分論理回路に分割する部分
回路抽出部、3は論理回路置換可否判断に基づき部分回
路抽出部2で抽出された部分論理回路に対応するライブ
ラリセルを選択するセル選択部である。また、4は所定
のセル選択部3で選択されたライブラリセルの内の1つ
を部分回路抽出部2で抽出された部分回路に適合化させ
るための適合化処理を行うセル適合化部、5は部分回路
抽出部2、セル選択部3およびセル適合化部4からの出
力に基づき分割され置換された回路を再構成し、所望の
論理回路に対するマッピング結果を出力する回路再構成
部である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of a technology mapping device according to an embodiment of the present invention. In FIG. 1, reference numeral 1 is a logic circuit information input / output unit for inputting information about a desired logic circuit, and 2 is a portion for dividing the logic circuit input by the logic circuit information input / output unit 1 into partial logic circuits not including branch outputs. The circuit extracting unit 3 is a cell selecting unit that selects a library cell corresponding to the partial logic circuit extracted by the partial circuit extracting unit 2 based on the logic circuit replacement availability determination. Further, 4 is a cell matching unit that performs a matching process for matching one of the library cells selected by the predetermined cell selecting unit 3 with the partial circuit extracted by the partial circuit extracting unit 2. Is a circuit reconfiguring unit that reconfigures the divided and replaced circuit based on the outputs from the partial circuit extracting unit 2, the cell selecting unit 3, and the cell adapting unit 4, and outputs the mapping result for a desired logic circuit.

【0010】さらに、6は予め用意されたライブラリセ
ルの論理回路情報を入力するライブラリ情報入力部、7
は積和系における各基本論理ゲート回路と符号化素因数
との対応を示す積和系素因数表、8は和積系における各
基本論理ゲート回路と素因数との対応を示す和積系素因
数表である。また、9はライブラリ情報入力部6から入
力された各ライブラリセルを積和系素因数表7に基づく
素因数の積として表した積和系ライブラリ符号値表、1
0はライブラリ情報入力部6から入力された各ライブラ
リセルを和積系素因数表8に基づく素因数の積として表
した和積系ライブラリ符号値表である。
Further, 6 is a library information input section for inputting logic circuit information of a library cell prepared in advance, 7
Is a product-sum system prime factor table showing the correspondence between each basic logic gate circuit in the product-sum system and the coding prime factor, and 8 is a sum-product system prime factor table showing the correspondence between each basic logic gate circuit in the sum-product system and the prime factors . Further, 9 is a product-sum system library code value table in which each library cell input from the library information input unit 6 is represented as a product of prime factors based on the product-sum system prime factor table 7.
Reference numeral 0 is an addition product library code value table in which each library cell input from the library information input unit 6 is represented as a product of prime factors based on the addition product prime factor table 8.

【0011】今、所望の論理回路を示す回路情報として
論理関数値が論理回路情報入出力部1から入力された場
合、この情報に基づき部分回路抽出部2で部分論理回路
に分割される。図2に、部分回路抽出部2により所望の
論理回路から分割され抽出された部分論理回路を示す。
この分割処理は、セル選択部3におけるライブラリセル
の選択を容易にするために行われるもので、部分論理回
路を構成する基本論理ゲート回路の接続形態に応じて各
系、例えばAND(論理積)ゲートの出力がOR(論理
和)ゲートに接続されている積和系、あるいはORゲー
トの出力がANDゲートに接続されている和積系等の分
類パターンが設けられており、部分回路抽出部2におい
てこれら系に適合しかつ基本論理ゲート回路間に他の回
路への分岐出力を含まない単位で分割される。回路の分
割に伴って、所望の論理回路の再構成に必要な情報は回
路再構成部5に送出される。
When a logic function value is input from the logic circuit information input / output unit 1 as circuit information indicating a desired logic circuit, the partial circuit extraction unit 2 divides the logic function value into partial logic circuits based on this information. FIG. 2 shows a partial logic circuit divided and extracted from a desired logic circuit by the partial circuit extraction unit 2.
This division processing is performed in order to facilitate selection of library cells in the cell selection unit 3, and each system, for example, AND (logical product) is performed according to the connection form of the basic logic gate circuit that constitutes the partial logic circuit. There are provided classification patterns such as a product-sum system in which the output of the gate is connected to an OR (logical sum) gate, or a sum-product system in which the output of the OR gate is connected to an AND gate. In the above, the system is divided into units that are compatible with these systems and do not include branch outputs to other circuits between the basic logic gate circuits. Information necessary for reconfiguring a desired logic circuit is sent to the circuit reconfiguring unit 5 as the circuit is divided.

【0012】部分回路抽出部2で分割された部分論理回
路は1つづつセル選択部3に送られて、予め入力されて
いるライブラリセルのうち最も効率よく適合するセルが
選択される。以下に、このライブラリセルに対する論理
回路置換可否判断として図2の積和系部分論理回路を用
いて説明する。部分回路抽出部2において、図2に示す
ような3入力ANDゲートと2入力ANDゲートの出力
が2入力ORゲートに入力されている積和系の部分論理
回路が抽出された場合、まず、この部分論理回路の符号
値が図3に示す積和系素因数表7を参照して算出され
る。
The partial logic circuits divided by the partial circuit extracting unit 2 are sent to the cell selecting unit 3 one by one, and the most suitable cell is selected from the library cells input in advance. Below, the product-sum system partial logic circuit of FIG. 2 will be described as the logic circuit replacement availability judgment for this library cell. When the partial circuit extracting unit 2 extracts a product-sum system partial logic circuit in which the outputs of the 3-input AND gate and the 2-input AND gate are input to the 2-input OR gate as shown in FIG. The sign value of the partial logic circuit is calculated with reference to the product-sum system prime factor table 7 shown in FIG.

【0013】図3の積和系素因数表7は論理関数におけ
る積項パタン、すなわちANDゲート、これに置換され
るゲート回路および単純入力に対して符号化素因数とし
て素数または素数および「−1」を割り当てたものであ
り、部分論理回路はこれら素因数の積として符号化表現
される。なお、出力段ゲート回路の出力が否定論理であ
る場合には、算出された符号値に「−1」が積算され
る。これは他の素数を割り当てることも可能であるが、
「−1」を割り当てることにより部分論理回路の符号値
において−(マイナス符号)の有無により、その部分論
理回路が否定論理出力か否かを容易に判断でき、後述の
セル適合化部4における適合化処理を高速化できる。
The product-sum system prime factor table 7 of FIG. 3 shows a product term pattern in a logical function, that is, an AND gate, a gate circuit to be replaced by this AND a prime number or a prime number and "-1" as an encoding prime factor. The partial logic circuit is coded and expressed as a product of these prime factors. In addition, when the output of the output stage gate circuit is a negative logic, “−1” is added to the calculated code value. It is possible to assign other prime numbers,
By assigning "-1", it is possible to easily judge whether or not the partial logic circuit is a negative logic output depending on the presence or absence of- (minus sign) in the code value of the partial logic circuit. The processing speed can be increased.

【0014】従って、この符号値は論理回路固有のもの
となるだけでなく、これを素因数分解することにより回
路構成が把握され、さらに、この素因数を比較すること
により2つの論理回路間における置換可否判断が可能と
なる。すなわち、各論理回路に固有の符号値をそれぞれ
算出し、大きい方の符号値を小さい方の符号値で整除算
した余りが「0」すなわち整除される場合には、小さい
符号値を持つ論理回路は大きい符号値を持つ論理回路に
より置き換えが可能であることを示している。
Therefore, not only is this code value unique to a logic circuit, but the circuit configuration is grasped by factorizing it, and by comparing these prime factors, it is possible to determine whether or not replacement is possible between two logic circuits. Judgment is possible. That is, when the remainder obtained by calculating the code value unique to each logic circuit and dividing the larger code value by the smaller code value is "0", that is, the remainder, the logic circuit having the smaller code value is obtained. Indicates that replacement is possible with a logic circuit having a large code value.

【0015】今、図2に示された部分論理回路は入力段
として3入力ANDゲートと2入力ANDゲートにより
構成されており、図3の積和系素因数表7からこれら各
ANDゲートに対応する素因数「13」と「5」が参照
されて、この部分論理回路の符号値として「13」×
「5」=「65」が算出される。なお、部分論理回路を
構成する各ゲート回路の入力側に否定論理が含まれる場
合、例えば図2において2入力ANDゲートの代わりに
NOTゲートが接続されている場合には、NOTゲート
に対応する符号化素因数として「3」が参照される。さ
らに、同図において2入力ANDゲートがなく直接1つ
の信号が2入力ORゲートに入力されている場合には、
単純入力に対応する「2」が参照される。
Now, the partial logic circuit shown in FIG. 2 is constituted by a 3-input AND gate and a 2-input AND gate as an input stage, and corresponds to each AND gate from the product-sum system prime factor table 7 of FIG. The prime factors “13” and “5” are referred to, and “13” × is obtained as the code value of this partial logic circuit.
“5” = “65” is calculated. When the input side of each gate circuit forming the partial logic circuit includes a negative logic, for example, when a NOT gate is connected instead of the two-input AND gate in FIG. 2, a code corresponding to the NOT gate "3" is referred to as a prime factor. Further, in the same figure, when there is no 2-input AND gate and one signal is directly input to the 2-input OR gate,
Reference is made to "2" corresponding to simple input.

【0016】次に、このようにして算出された部分論理
回路の符号値は、前述の素因数による論理回路置換可否
判断の思想に基づき、予め用意された各ライブラリセル
の符号値と順に比較される。なお、各ライブラリセルの
論理回路情報はライブラリ情報入力部6から入力され、
前述の論理ゲート回路の接続形態に基づく各系に分類さ
れた後、対応する系の素因数表7,8を参照してそのラ
イブラリセルの符号値すなわち素因数の積が算出され、
各系毎に符号値順にライブラリ符号値表に予め格納され
ているものとする。
Next, the code value of the partial logic circuit calculated in this way is sequentially compared with the code value of each library cell prepared in advance, based on the idea of the logic circuit replacement availability judgment based on the aforementioned prime factors. . The logic circuit information of each library cell is input from the library information input unit 6,
After being classified into each system based on the connection form of the logic gate circuit described above, the code value of the library cell, that is, the product of prime factors is calculated with reference to the prime factor tables 7 and 8 of the corresponding system,
It is assumed that the values are stored in advance in the library code value table in the order of code values for each system.

【0017】今、図4に示すように複数のゲート素子か
ら構成されるライブラリセルが与えられているとする。
同図においてA〜Gは入力端子、Xは出力端子をそれぞ
れ示しており、このライブラリセルを論理回路記号によ
り符号化すると図5の回路のように、3入力ANDゲー
トと2つの2入力ANDゲート、およびこれらANDゲ
ートの出力を入力とする3入力NORゲートからなる積
和系の論理回路として表現される。
Now, assume that a library cell including a plurality of gate elements is provided as shown in FIG.
In the figure, A to G indicate input terminals and X indicates output terminals. When this library cell is encoded by a logic circuit symbol, a 3-input AND gate and two 2-input AND gates are obtained as shown in the circuit of FIG. , And a 3-input NOR gate that receives the outputs of these AND gates as an input.

【0018】このライブラリセルは、図3の積和系素因
数表7から「13」、「5」、「5」および「−1」の
積として符号値「−325」が算出されて、予め積和系
ライブラリ符号値表9に格納されているとする。従っ
て、論理回路置換可否判断として、積和系ライブラリ符
号値表9からこのライブラリセルの符号値「−325」
が読み出されて、部分論理回路の符号値「65」で整除
算される。整除算の結果「−325」÷「65」=「−
5」となり、その余りが「0」すなわち整除されるた
め、図2の部分論理回路は図4のライブラリセルにより
置換可能、すなわちこのライブラリセルにより同等な論
理回路を実現可能であると判断される。
In this library cell, a code value "-325" is calculated as a product of "13", "5", "5" and "-1" from the product-sum system prime factor table 7 of FIG. It is assumed that it is stored in the Japanese system code value table 9. Therefore, as the logic circuit replacement availability determination, the code value "-325" of this library cell is calculated from the product-sum system code value table 9.
Is read out and is divided by the code value “65” of the partial logic circuit. The result of the division is “−325” ÷ “65” = “−
5 "and the remainder is" 0 ", that is, it is divided, so that it is determined that the partial logic circuit of FIG. 2 can be replaced by the library cell of FIG. 4, that is, an equivalent logic circuit can be realized by this library cell. .

【0019】ここで、ライブラリ符号値表9,10に格
納された各ライブラリセルの符号値を比較参照する順番
として、算出した符号値の絶対値以上の符号値をもつラ
イブラリセルに対して参照することにより、セル選択に
おける処理速度がさらに改善され、また符号値の小さい
順に参照し最初に余り「0」になったものを選択結果と
して出力することにより、ゲート素子の使用効率を高く
することができる。なお、出力段の否定論理出力に対応
する素因数として「−1」ではなく素数(正の整数)を
割り当てた場合には、符号値の絶対値変換処理は不必要
となる。また、セル選択部3においてオーバーフローそ
の他の理由で符号値を算出できない回路や置き換え候補
がなくなった場合には、置換不可能な部分論理回路とし
て回路再構成部5へそのまま出力される。
Here, as the order in which the code values of the library cells stored in the library code value tables 9 and 10 are compared and referred to, reference is made to the library cells having a code value equal to or larger than the absolute value of the calculated code value. As a result, the processing speed in cell selection is further improved, and the efficiency of use of the gate element can be increased by referring to the ascending order of the code value and outputting the first remaining "0" as the selection result. it can. If a prime number (a positive integer) is assigned instead of "-1" as the prime factor corresponding to the negative logic output of the output stage, the absolute value conversion process of the code value is unnecessary. Further, if there is no circuit or replacement candidate whose code value cannot be calculated in the cell selection unit 3 due to overflow or some other reason, it is directly output to the circuit reconfiguration unit 5 as a non-replaceable partial logic circuit.

【0020】以上のような論理回路置換可否判断に基づ
き選択されたライブラリセルは、セル適合化部4におい
て、次のような適合化処理が行われる。まず、適合化処
理が必要であるか否か、すなわち部分論理回路とライブ
ラリセルの論理回路構成が同一であるか否かがセル選択
部3で算出された両者の符号値を比較することにより判
断される。部分論理回路とライブラリセルとの符号値が
等しい場合には、両者の論理回路構成は同一であると判
断され適合化処理は行われない。
The library cell selected based on the above logic circuit replacement possibility judgment is subjected to the following adaptation processing in the cell adaptation unit 4. First, it is determined whether or not the adaptation processing is necessary, that is, whether or not the logic circuit configurations of the partial logic circuit and the library cell are the same by comparing the code values of both calculated by the cell selection unit 3. To be done. When the partial logic circuit and the library cell have the same code value, it is determined that the logic circuit configurations of the two are the same, and the adaptation processing is not performed.

【0021】両者の符号値が等しくない場合には適合化
処理が必要であると判断して、ライブラリセルの符号値
を部分論理回路の符号値で整除算した商を素因数分解
し、素因数「−1」が含まれる場合には、出力部の適合
化処理として出力段にNOTゲートが付加される。また
それ以外の素因数に対しては、入力部の適合化処理とし
て各系の素因数表を参照して各素因数に対応するゲート
回路の入力段を所定の論理定数すなわち電源電圧あるい
は接地電圧を印可する。
If the code values of the two are not equal, it is judged that the adaptation process is necessary, and the quotient obtained by dividing the code value of the library cell by the code value of the partial logic circuit is factored into a prime factor "-". If "1" is included, a NOT gate is added to the output stage as the adaptation processing of the output unit. For other prime factors, the input stage of the gate circuit corresponding to each prime factor is applied with a predetermined logic constant, that is, the power supply voltage or the ground voltage, by referring to the prime factor table of each system as the adaptation process of the input unit. .

【0022】従って、図5のライブラリセルの符号値を
図2の部分論理回路の符号値で整除算した商は、「−3
25」÷「65」=「−5」=「−1」×「5」とな
り、図5のライブラリセルは出力段にNOTゲートを付
加し、2入力ANDゲートのいずれか一方の入力が接地
されて図6に示すような論理回路に適合化される。同図
において点線で囲まれた回路がライブラリセルを示して
おり、同図A〜Eは図2における各入力a〜eに対応
し、適合化処理によりF,Gは接地電圧に接続され、X
は同じく適合化処理により付加されたNOTゲートを介
して図2のx出力となる。
Therefore, the quotient obtained by dividing the code value of the library cell of FIG. 5 by the code value of the partial logic circuit of FIG.
25 ”÷“ 65 ”=“ − 5 ”=“ − 1 ”ד 5 ”, the library cell of FIG. 5 has a NOT gate added to the output stage, and one input of the two-input AND gate is grounded. And is adapted to a logic circuit as shown in FIG. A circuit surrounded by a dotted line in the figure shows a library cell, and A to E in the figure correspond to the respective inputs a to e in FIG. 2, and F and G are connected to the ground voltage by the adaptation process, and X
Is also the x output of FIG. 2 via the NOT gate added by the adaptation process.

【0023】さらに、回路再構成部5では部分回路抽出
部2からの回路再構成に必要な接続情報、セル選択部3
およびセル適合化部4からのライブラリセル置換・適合
化情報に応じて所望の論理回路を再構成し、論理回路情
報入出力部1よりテクノロジマッピングの結果として出
力される。
Further, in the circuit reconfiguring section 5, connection information necessary for circuit reconfiguration from the partial circuit extracting section 2 and the cell selecting section 3
Also, a desired logic circuit is reconfigured according to the library cell replacement / adaptation information from the cell adaptation unit 4, and is output from the logic circuit information input / output unit 1 as a result of technology mapping.

【0024】なお、以上の論理回路置換可否判断方法お
よびこれを用いたテクノロジマッピング装置において、
積和系の部分論理回路を例に説明したものであるが、和
積系の論理回路についても和積系素因数表8および和積
系ライブラリ符号値表10に基づき同様に実施されるも
のである。さらに必要に応じて実施例で述べた積和系お
よび和積系以外の系についても、その系に対応する素因
数表およびライブラリ符号値表を設けることにより実施
例と同様に実施可能である。
In addition, in the above logic circuit replacement possibility determination method and the technology mapping device using the same,
Although the partial logic circuit of the product-sum system is described as an example, the logical circuit of the product-sum system is similarly implemented based on the product-system prime factor table 8 and the product-system library code value table 10. . Further, if necessary, the product-sum system and the systems other than the sum-product system described in the embodiment can be implemented in the same manner as the embodiment by providing a prime factor table and a library code value table corresponding to the system.

【0025】[0025]

【発明の効果】以上説明したように、本発明は、論理回
路置換可否判断方法として、AND,OR,NOT等の
各種基本ゲート回路毎に符号化素因数として素数または
素数および「−1」を割り当てておき、途中で出力が分
岐していない木構造の部分論理回路に対し、符号化素因
数の積からなる論理回路構成に固有の符号値で表現し、
この符号値の整除関係により置換可否を判断するように
したものである。また、部分論理回路の基本ゲート回路
の接続形態に基づく系として積和系あるいは和積系を設
けてその系に対応する素因数を設定し、比較する部分論
理回路が分類される系の素因数に基づき符号値を算出す
るようにしたものである。
As described above, according to the present invention, a prime number or a prime number and "-1" are assigned as encoding prime factors for each basic gate circuit such as AND, OR, and NOT as a logic circuit replacement possibility determination method. In advance, for a partial logic circuit of a tree structure in which the output does not branch in the middle, it is expressed by a code value unique to the logic circuit configuration consisting of products of coding prime factors,
Whether or not replacement is possible is determined based on the division relation of the code values. Further, a product-sum system or a sum-product system is provided as a system based on the connection form of the basic gate circuits of the partial logic circuits, and a prime factor corresponding to the system is set, and based on the prime factors of the system into which the partial logic circuits to be compared are classified. The code value is calculated.

【0026】また、テクノロジマッピング装置として、
所望の論理回路を分割して、論理回路置換可否判断方法
に基づき置き換え可能なライブラリセルを選択し、符号
値間の商に含まれる素因数に基づきこのライブラリセル
を適合化し、所望の論理回路を再構成するようにしたも
のである。さらに、各ライブラリセルの符号値を算出し
て各系毎に格納しておき、セル選択にあたって部分論理
回路の符号値以上の符号値を持つライブラリセルに対し
て符号値の小さいものから順に置換可否判断を行うよう
にしたものである。
As a technology mapping device,
Divide the desired logic circuit, select a replaceable library cell based on the logic circuit replacement possibility determination method, adapt this library cell based on the prime factor included in the quotient between code values, and re-create the desired logic circuit. It is designed to be configured. Further, the code value of each library cell is calculated and stored for each system, and when selecting a cell, it is possible to replace a library cell having a code value greater than or equal to the code value of the partial logic circuit in order from the smallest code value. The decision is made.

【0027】従って、論理回路置換可否判断方法におい
ては、比較する部分論理回路の各符号値による1回の整
数剰余算により置換可否判断が可能となり、基本論理ゲ
ート回路の接続形態を分類することにより、さらに置換
可否判断が高速化される。また、テクノロジマッピング
装置においては、この論理回路置換可否判断方法を用い
ることにより、その処理時間が格段に短縮されるととも
に複数の基本論理ゲート回路からなる複合ライブラリセ
ルに対しても効率よく置換され、さらに予め設けられた
ライブラリ符号値表に基づき所定の順序で可否判断を行
うことにより、その所要時間および置換効率がさらに改
善される。
Therefore, in the logic circuit replacement feasibility determination method, the replacement feasibility can be determined by performing the integer remainder calculation once for each code value of the partial logic circuits to be compared, and by classifying the connection form of the basic logic gate circuit. In addition, the determination as to whether or not replacement is possible is speeded up. Further, in the technology mapping device, by using this logic circuit replacement possibility determination method, the processing time is markedly shortened and the replacement is efficiently performed even for the composite library cell including a plurality of basic logic gate circuits. Further, the required time and the replacement efficiency are further improved by performing the permission / prohibition determination in a predetermined order based on the library code value table provided in advance.

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

【図1】本発明の一実施例によるテクノロジマッピング
装置のブロック図である。
FIG. 1 is a block diagram of a technology mapping device according to an embodiment of the present invention.

【図2】部分回路抽出部2により分割された部分論理回
路の回路図である。
FIG. 2 is a circuit diagram of a partial logic circuit divided by a partial circuit extraction unit 2.

【図3】積和系における素因数表7である。FIG. 3 is a prime factor table 7 in a sum-of-products system.

【図4】ライブラリセルの実際の回路図である。FIG. 4 is an actual circuit diagram of a library cell.

【図5】図4のライブラリセルの符号化回路図である。5 is an encoding circuit diagram of the library cell of FIG.

【図6】適合化されたライブラリセルの回路図である。FIG. 6 is a circuit diagram of an adapted library cell.

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

1 論理回路情報入出力部 2 部分回路抽出部 3 セル選択部 4 セル適合化部 5 回路再構成部 6 ライブラリ情報入力部 7 積和系素因数表 8 和積系素因数表 9 積和系ライブラリ符号値表 10 和積系ライブラリ符号値表 1 logic circuit information input / output unit 2 partial circuit extraction unit 3 cell selection unit 4 cell adaptation unit 5 circuit reconstruction unit 6 library information input unit 7 sum-of-products prime factor table 8 sum-of-products prime factor table 9 sum-of-products library code value Table 10 Sum product library code value table

───────────────────────────────────────────────────── フロントページの続き (72)発明者 大黒 毅 東京都千代田区内幸町1丁目1番6号 日 本電信電話株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Takeshi Oguro 1-1-6 Uchisaiwaicho, Chiyoda-ku, Tokyo Nihon Telegraph and Telephone Corporation

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 AND,OR,NOT等の各種基本ゲー
ト回路毎に符号化素因数として素数または素数と−1を
割り当てておき、これらゲート回路から構成され途中の
ゲート回路出力が分岐しない木構造の第1および第2の
部分論理回路について前記符号化素因数の積としての符
号値をそれぞれ算出し、これら両符号値の整除関係によ
り前記第1および第2の部分論理回路間における回路置
換の可否を判断する論理回路置換可否判断方法。
1. A prime number or a prime number and -1 are assigned as coding prime factors for each of various basic gate circuits such as AND, OR, and NOT, and a tree structure is formed from these gate circuits so that an intermediate gate circuit output does not branch. A code value as a product of the coding prime factors is calculated for each of the first and second partial logic circuits, and whether or not circuit replacement is possible between the first and second partial logic circuits is determined based on the division relation between these code values. Judgment method of logic circuit replacement availability.
【請求項2】 請求項1の論理回路置換可否判断方法に
おいて、前記部分論理回路を論理関数で表現した場合に
論理変数の積からなる項の和で表現されるものを積和
系、また論理変数の和からなる項の積で表現されるもの
を和積系とし、前記各種基本ゲート回路毎に少なくとも
前記積和系用または前記和積系用として符号化素因数を
割り当てておき、前記両部分論理回路が分類される前記
各系に対応する前記符号化素因数に基づき前記符号値を
算出する論理回路置換可否判断方法。
2. The logic circuit replacement feasibility determination method according to claim 1, wherein when the partial logic circuit is expressed by a logical function, a sum of terms consisting of products of logical variables is expressed as a sum of products system or a logic. What is expressed by the product of terms consisting of the sum of variables is defined as a sum product system, and at least each of the various basic gate circuits is assigned with a coding prime factor for the product sum system or the sum product system, A logic circuit replacement possibility determination method for calculating the code value based on the coding prime factor corresponding to each system into which the logic circuit is classified.
【請求項3】 AND,OR,NOT等の各種基本ゲー
ト回路からなる所望の論理回路を予め用意された論理機
能ブロックからなる複数のライブラリセルの内の1つに
置き換えることによりLSIを設計するテクノロジマッ
ピング装置において、前記所望の論理回路を請求項1に
おける部分論理回路または請求項2における前記各系に
分類される部分論理回路に分割する手段と、請求項1ま
たは請求項2の論理回路置換可否判断方法に基づき、前
記部分論理回路が置き換え可能なライブラリセルを選択
するセル選択手段と、前記論理回路置換可否判断方法に
おける整除算の商を素因数分解し、各素因数に基づき所
定の適合化処理を行うセル適合化手段と、これら分割し
置換した前記部分論理回路を所望の論理回路として再構
成する回路再構成手段とを備えることを特徴とするテク
ノロジマッピング装置。
3. A technology for designing an LSI by replacing a desired logic circuit composed of various basic gate circuits such as AND, OR and NOT with one of a plurality of library cells composed of logic function blocks prepared in advance. In the mapping device, a means for dividing the desired logic circuit into a partial logic circuit according to claim 1 or a partial logic circuit classified into each of the systems according to claim 2, and the possibility of replacing the logic circuit according to claim 1 or 2. Cell selection means for selecting a library cell in which the partial logic circuit is replaceable based on the determination method, and a quotient of the division in the logic circuit replacement availability determination method are decomposed into prime factors, and predetermined adaptation processing is performed based on each prime factor. Cell adapting means for performing and a circuit reconfiguring hand for reconfiguring the divided and replaced partial logic circuit as a desired logic circuit. A technology mapping device comprising: a step.
【請求項4】 請求項3のテクノロジマッピング装置に
おいて、前記セル選択手段として、請求項1または請求
項2の論理回路置換可否判断方法に基づき、前記各ライ
ブラリセル毎に予め符号値を算出しておき、前記部分論
理回路の符号値以上の符号値を持つライブラリセルに対
して符号値の小さいものから順に前記論理回路置換可否
判断を実施し、最初に置換可能と判断されたライブラリ
セルを選択するセル選択手段を備えることを特徴とする
テクノロジマッピング装置。
4. The technology mapping device according to claim 3, wherein as the cell selecting means, a code value is calculated in advance for each of the library cells based on the logic circuit replacement availability determination method according to claim 1 or 2. Every time, the logic circuit replacement possibility judgment is performed in order from the smallest code value for the library cells having a code value greater than or equal to the code value of the partial logic circuit, and the library cell determined to be replaceable first is selected. A technology mapping device comprising cell selection means.
JP4323839A 1992-11-10 1992-11-10 Logic circuit replacement propriety judging method and technology mapping device Pending JPH06149930A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4323839A JPH06149930A (en) 1992-11-10 1992-11-10 Logic circuit replacement propriety judging method and technology mapping device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4323839A JPH06149930A (en) 1992-11-10 1992-11-10 Logic circuit replacement propriety judging method and technology mapping device

Publications (1)

Publication Number Publication Date
JPH06149930A true JPH06149930A (en) 1994-05-31

Family

ID=18159170

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4323839A Pending JPH06149930A (en) 1992-11-10 1992-11-10 Logic circuit replacement propriety judging method and technology mapping device

Country Status (1)

Country Link
JP (1) JPH06149930A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6625799B2 (en) 1998-08-06 2003-09-23 Fujitsu Limited Technology mapping method and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6625799B2 (en) 1998-08-06 2003-09-23 Fujitsu Limited Technology mapping method and storage medium

Similar Documents

Publication Publication Date Title
Lai et al. OBDD-based function decomposition: Algorithms and implementation
US5239465A (en) Method and system for layout design of integrated circuits with a data transferring flow
US20060230376A1 (en) Methods for creating and expanding libraries of structured ASIC logic and other functions
US6192505B1 (en) Method and system for reducing state space variables prior to symbolic model checking
JPH08339291A (en) Selection circuit of maximum value
Venkataraman et al. GALLOP: genetic algorithm based low power FSM synthesis by simultaneous partitioning and state assignment
JPH06149930A (en) Logic circuit replacement propriety judging method and technology mapping device
Biswas Computer aided minimization procedure for boolean functions
US20060190890A1 (en) Cell instance generating method
CN106682290B (en) Wiring method and device for programmable logic device
US6834376B2 (en) Logic optimization device for automatically designing integrated circuits
Entrena et al. Timing optimization by an improved redundancy addition and removal technique
US6622292B2 (en) Design method for logic circuit, design support system for logic circuit and readable media
Czerwinski et al. State assignment for PAL-based CPLDs
US7103685B1 (en) Bitstream compression with don't care values
WO1999041685A1 (en) A method for manufacturing and designing an electronic device and electronic apparatus
CN115204103B (en) Fast wiring method and device based on CB classification
CN112749526A (en) Power rail design method, apparatus and non-transitory computer readable medium thereof
US7487198B2 (en) Multibit bit adder
Chang et al. Efficient Boolean division and substitution using redundancy addition and removing
Babakov et al. Structural representation of synthesis methods of finite state machine with datapath of transitions
JPH08153129A (en) Reuse facilitating device
Salice et al. Synthesis of multi-level self-checking logic
JPH1011473A (en) Flip-flop association method between two logic circuits
Wang et al. Multilevel logic simplification based on a containment recursive paradigm