JP2882714B2 - State selection device - Google Patents
State selection deviceInfo
- Publication number
- JP2882714B2 JP2882714B2 JP7256292A JP7256292A JP2882714B2 JP 2882714 B2 JP2882714 B2 JP 2882714B2 JP 7256292 A JP7256292 A JP 7256292A JP 7256292 A JP7256292 A JP 7256292A JP 2882714 B2 JP2882714 B2 JP 2882714B2
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- bit
- bits
- address
- output
- 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 - Fee Related
Links
Landscapes
- Memory System (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Communication Control (AREA)
- Use Of Switch Circuits For Exchanges And Methods Of Control Of Multiplex Exchanges (AREA)
Description
【0001】[0001]
【産業上の利用分野】この発明は、例えばバッファメモ
リを有する回路において、そのバッファメモリが空き状
態か否か等を指示する状態選択装置に関するものであ
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a state selecting device for indicating, for example, whether or not a buffer memory is empty in a circuit having a buffer memory.
【0002】[0002]
【従来の技術】近年、デジタル通信の普及等に伴って、
バッファメモリを用いたシステムの必要度が増してい
る。図6は、バッファメモリを用いた従来の回路の例で
あり、8回線の回線交換をする交換回路を示すブロック
図である。1−0〜1−7はデータ入力、2は多重化回
路、3は128個のデータを保持するバッファメモリ、
4は分解回路、5−0〜5−7はデータ出力、6は制御
回路、7は状態選択装置としての空きアドレス・キュー
回路である。2. Description of the Related Art With the spread of digital communication in recent years,
The necessity of a system using a buffer memory is increasing. FIG. 6 is an example of a conventional circuit using a buffer memory, and is a block diagram showing a switching circuit for performing line switching of eight lines. 1-0 to 1-7 are data inputs, 2 is a multiplexing circuit, 3 is a buffer memory for holding 128 data,
4 is a decomposition circuit, 5-0 to 5-7 are data outputs, 6 is a control circuit, and 7 is an empty address queue circuit as a state selection device.
【0003】8回線の交換回路は上記のように構成さ
れ、データ入力1−0〜1−7に入ってきたデータは、
多重化回路2により多重化され、バッファメモリ3に書
き込まれる。書き込まれたデータは、分解回路4によ
り、このデータに含まれる宛先情報に従ってデータ出力
5−0〜5−7に出力されることにより、回線交換が行
われる。バッファメモリ3にデータを書き込むとき、バ
ッファメモリの128個のアドレス中のどのアドレスに
書き込むかは、制御回路6によって管理される。バッフ
ァメモリ3の中でデータの入っていない、空いているア
ドレス(=空きアドレス)は、空きアドレス・キュー回
路7に記憶されており、制御回路6はバッファメモリ3
のこの空きアドレスにデータを書き込む。この空きアド
レス・キュー回路7は最大128個の空きアドレスを記
憶する回路であり、制御回路6の制御によって空きアド
レスを読み込み、または書き出す。この空きアドレス
は、バッファメモリ3の128個のアドレスを区別する
ために7ビット長となる。[0003] The eight-line switching circuit is configured as described above, and the data input to the data inputs 1-0 to 1-7 are:
The data is multiplexed by the multiplexing circuit 2 and written into the buffer memory 3. The written data is output to the data outputs 5-0 to 5-7 by the decomposing circuit 4 in accordance with the destination information included in the data, thereby performing circuit switching. When writing data to the buffer memory 3, the control circuit 6 manages which of the 128 addresses to write in the buffer memory. An empty address (= empty address) containing no data in the buffer memory 3 is stored in the empty address queue circuit 7, and the control circuit 6
Write data to this free address. The free address queue circuit 7 is a circuit for storing a maximum of 128 free addresses, and reads or writes free addresses under the control of the control circuit 6. This free address has a 7-bit length in order to distinguish 128 addresses in the buffer memory 3.
【0004】図7は、この空きアドレス・キュー回路7
を示すブロック図であり、7ビット長の空きアドレスを
128個記憶する。図7において、50は空きアドレス
入力、51は入力ラッチ回路、8は空きアドレスを記憶
するストア・セル・アレイ、11はストア・セル・アレ
イ8のどのアドレスに空きアドレスを書き込むかを保持
するライトアドレス・カウンタ回路、12はストア・セ
ル・アレイ8のどのアドレスから空きアドレスを読み出
すかを保持するリードアドレス・カウンタ回路、9は出
力ラッチ回路、10は空きアドレス出力、13は書き込
み信号、14は読み出し信号である。FIG. 7 is a block diagram showing the empty address queue circuit 7.
Is a block diagram showing 128 empty 128-bit addresses. 7, reference numeral 50 denotes a free address input, 51 denotes an input latch circuit, 8 denotes a store cell array for storing a free address, and 11 denotes a write to which address of the store cell array 8 is to be written with a free address. An address counter circuit, 12 is a read address counter circuit for holding an empty address from which address of the store cell array 8 is read, 9 is an output latch circuit, 10 is an empty address output, 13 is a write signal, and 14 is a write signal. This is a read signal.
【0005】従来の空きアドレス・キュー回路7は上記
のように構成され、例えば空きアドレスを書き込むとき
は、書き込み信号13によって入力ラッチ回路51が空
きアドレス入力50から新たな空きアドレスを読み込
み、読み込んだ空きアドレスをストア・セル・アレイ8
の、ライトアドレス・カウンタ11が保持しているアド
レスに書き込む。ライトアドレス・カウンタ11は初期
値は“0”であり、ストア・セル・アレイ8に空きアド
レスを書き込む毎にライトアドレス・カウンタ11の値
を一つずつインクリメントし、127までインクリメン
トすると、また“0”からインクリメントする。従っ
て、空きアドレスは、ストア・セル・アレイ8の最初の
アドレスから昇順に書き込まれる。The conventional free address queue circuit 7 is constructed as described above. For example, when writing a free address, the input latch circuit 51 reads a new free address from the free address input 50 by the write signal 13 and reads it. Store empty address in cell array 8
At the address held by the write address counter 11. The initial value of the write address counter 11 is “0”, and the value of the write address counter 11 is incremented by one each time an empty address is written to the store cell array 8 and incremented to 127. From ". Therefore, empty addresses are written in ascending order from the first address of the store cell array 8.
【0006】空きアドレスを読み出すときは、読み出し
信号14によってストア・セル・アレイ8の、リードア
ドレス・カウンタ12の保持しているアドレスから、空
きアドレスを読み出し、出力ラッチ9を通し空きアドレ
ス出力10に出力する。リードアドレス・カウンタ12
も初期値は“0”であり、ストア・セル・アレイ8から
空きアドレスを読み出す毎にリードアドレス・カウンタ
12の値を一つずつインクリメントし、127までイン
クリメントすると、また“0”からインクリメントす
る。よって、空きアドレスは、ストア・セル・アレイ8
の最初のアドレスから昇順に読み出され、ストア・セル
・アレイ8に書き込んだ順序と同じ順序で読み出され
る。When an empty address is read, an empty address is read from the address stored in the read address counter 12 of the store cell array 8 by a read signal 14 and passed to an empty address output 10 through an output latch 9. Output. Read address counter 12
The initial value is also "0", and every time an empty address is read from the store cell array 8, the value of the read address counter 12 is incremented by one, and when it is incremented to 127, it is incremented from "0" again. Therefore, the empty address is stored in the store cell array 8
Are read from the first address in ascending order, and are read in the same order as the order in which they were written to the store cell array 8.
【0007】上記の動作により、書き込み信号13によ
り空きアドレスを書き込み、読み出し信号14により空
きアドレスを読み出す、7ビット長の空きアドレスを1
28個記憶できる空きアドレス・キュー回路7を実現で
きる。By the above operation, the empty address is written by the write signal 13 and the empty address is read by the read signal 14.
An empty address queue circuit 7 capable of storing 28 can be realized.
【0008】[0008]
【発明が解決しようとする課題】上記のような従来の状
態選択装置としての空きアドレス・キュー回路7では、
ストア・セル・アレイ8が7ビット長の空きアドレス
を、128個保持しているために、(7×128=)8
96ビットもの容量のストア・セル・アレイ8が必要で
あった。そのため、空きアドレス・キュー回路7全体と
しての回路規模が大きくなり、空きアドレス・キュー回
路7をLSI化した場合の面積、消費電力が共に大きく
なるという問題点があった。In the empty address queue circuit 7 as the conventional state selection device as described above,
Since the store cell array 8 holds 128 free addresses of 7-bit length, (7 × 128 =) 8
A store cell array 8 as large as 96 bits was required. Therefore, there is a problem that the circuit size of the free address queue circuit 7 as a whole increases, and the area and the power consumption when the free address queue circuit 7 is formed into an LSI increase.
【0009】この発明は係る問題を解決するためになさ
れたものであり、必要とするメモリの容量を少なくする
ことにより回路規模を小さくし、LSI化した場合の面
積、消費電力が共に小さい状態選択装置を得ることを目
的とする。SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problem, and a circuit size is reduced by reducing a required memory capacity, and a state selection in which both area and power consumption in the case of an LSI are small is small. The aim is to obtain a device.
【0010】[0010]
【課題を解決するための手段】第1の発明に係る状態選
択装置は、メモリの数に対応して設けられた複数のフリ
ップフロップ回路18と、上記それぞれのメモリを区別
するために複数ビット長となって外部より取込まれるデ
ータを、上記フリップフロップ回路18の数に相当する
ビットにデコードして上記フリップフロップ回路18に
供給するデコーダ回路16と、上記フリップフロップ回
路18に記憶されている一方のビット情報のうち一つの
ビットを選択するビット選択回路20と、このビット選
択回路20の出力を、上記デコーダ回路16とは逆の変
換を行うエンコーダ回路22とを備える。According to a first aspect of the present invention, there is provided a state selecting apparatus, comprising: a plurality of flip-flop circuits provided corresponding to the number of memories; and a plurality of bit lengths for distinguishing the memories. The decoder circuit 16 decodes data taken in from the outside into bits corresponding to the number of the flip-flop circuits 18 and supplies the bits to the flip-flop circuit 18. A bit selection circuit 20 for selecting one bit out of the bit information of the above, and an encoder circuit 22 for performing an inverse conversion of the output of the bit selection circuit 20 with respect to the decoder circuit 16.
【0011】第2の発明に係る状態選択装置は、上記ビ
ット選択回路20が、選択したビットだけを“1”と
し、選択しないビットは“0”として出力するもので、
直列接続したOR回路26−1〜26−127により構
成され、かつ階層化されたビット探索回路30と、NO
T回路27−1〜27−127とAND回路28−1〜
28−127により構成される上記ビット探索回路30
の出力を修正する修正回路24とより構成される。In the state selection device according to the second invention, the bit selection circuit 20 outputs only the selected bit as "1" and outputs the non-selected bit as "0".
A bit search circuit 30 composed of serially connected OR circuits 26-1 to 26-127 and hierarchized;
T circuits 27-1 to 27-127 and AND circuits 28-1 to 28-1
28-127, the bit search circuit 30
And a correction circuit 24 for correcting the output of
【0012】第3の発明に係る状態選択装置は、上記エ
ンコーダ回路22が上位ビットと下位ビットに分けて別
々にエンコードする構成である。The state selecting device according to a third aspect of the present invention has a configuration in which the encoder circuit 22 separately encodes upper bits and lower bits separately.
【0013】[0013]
【作用】第1の発明においては、デコーダ回路16によ
り、外部より取込まれるデータがフリップフロップ回路
18の数に相当するビットにデコードされる。そして、
上記デコードされたビット情報がフリップフロップ回路
18に記憶される。また、上記ビット情報を読み出すと
きは、まず、ビット選択回路20により、フリップフロ
ップ回路18に記憶されているビット情報のうち一つの
ビットが選択される。そして、上記選択されたビット情
報がエンコーダ回路22によりデコーダ回路16とは逆
の変換が行われる。According to the first aspect of the invention, the data taken in from the outside is decoded by the decoder circuit into bits corresponding to the number of flip-flop circuits. And
The decoded bit information is stored in the flip-flop circuit 18. When reading the bit information, first, the bit selection circuit 20 selects one bit from the bit information stored in the flip-flop circuit 18. Then, the selected bit information is converted by the encoder circuit 22 in a manner reverse to that of the decoder circuit 16.
【0014】第2の発明においては、ビット探索回路3
0により、データが1ビットずつ探索され、最初に値が
“1”のビットが見つかるまでは“0”の値が出力さ
れ、最初の値が“1”であるビットとそのビットより上
位ビットでは“1”の値が出力される。そして、修正回
路24により、上記ビット探索回路30の出力が修正さ
れ、最初に“1”になったビットの出力だけが“1”に
され、他のビットの出力が“0”にして出される。In the second invention, the bit search circuit 3
With 0, data is searched one bit at a time, and a value of “0” is output until a bit of value “1” is first found. A bit having a first value of “1” and a bit higher than that bit are output. The value "1" is output. Then, the output of the bit search circuit 30 is corrected by the correction circuit 24, and only the output of the bit which first becomes "1" is set to "1", and the outputs of the other bits are output to "0". .
【0015】第3の発明においては、エンコーダ回路2
2により、上位ビットと下位ビットに分けてビット情報
がエンコードされる。In the third invention, the encoder circuit 2
2, the bit information is encoded into upper bits and lower bits.
【0016】[0016]
【実施例】実施例1.図1はこの発明の一実施例を示す
回路ブロック図であり、50,51,9,10,13,
14は上記従来回路と全く同一のものである。16は入
力ラッチ回路51から入力された7ビットのアドレスを
128ビットにデコードするデコーダ回路、15はデコ
ーダ回路16の入力、17はデコーダ回路16の出力、
18は128個の空きアドレスを記憶する128ビット
のフリップフロップ回路、19はフリップフロップ回路
18の出力、20はビット選択回路、21はビット選択
回路20の出力、22は128ビットを7ビットのアド
レスにエンコードするエンコーダ回路、23はエンコー
ダ回路22の出力である。[Embodiment 1] FIG. 1 is a circuit block diagram showing an embodiment of the present invention, in which 50, 51, 9, 10, 13,.
Reference numeral 14 is exactly the same as the conventional circuit. 16 is a decoder circuit for decoding a 7-bit address input from the input latch circuit 51 into 128 bits, 15 is an input of the decoder circuit 16, 17 is an output of the decoder circuit 16,
18 is a 128-bit flip-flop circuit for storing 128 free addresses, 19 is the output of the flip-flop circuit 18, 20 is the bit selection circuit, 21 is the output of the bit selection circuit 20, and 22 is the 128-bit address of 7 bits. And 23 is an output of the encoder circuit 22.
【0017】前記のように構成された状態選択装置とし
ての空きアドレス・キュー回路においては、128ビッ
トのフリップフロップ回路18は、それぞれバッファメ
モリ3の128個のアドレスに対応しており、1ビット
のフリップフロップ回路18は、対応するバッファメモ
リ3のアドレスが空きアドレスか否かを保持している。
すなわち、フリップフロップ回路18の値が“1”であ
ると、このフリップフロップ回路18に対応するバッフ
ァメモリ3のアドレスは、空きアドレスであることを示
し、フリップフロップ回路18の値が“0”であると、
このフリップフロップ回路18に対応するバッファメモ
リ3のアドレスは、空きアドレスではないことを示す。In the vacant address queue circuit as the state selection device configured as described above, the 128-bit flip-flop circuit 18 corresponds to each of the 128 addresses of the buffer memory 3 and has one bit. The flip-flop circuit 18 holds whether or not the address of the corresponding buffer memory 3 is a free address.
That is, if the value of the flip-flop circuit 18 is “1”, it indicates that the address of the buffer memory 3 corresponding to the flip-flop circuit 18 is a free address, and the value of the flip-flop circuit 18 is “0”. If there,
The address of the buffer memory 3 corresponding to the flip-flop circuit 18 indicates that it is not a free address.
【0018】空きアドレスをこのフリップフロップ回路
18に書き込むときは、まず、書き込み信号13によっ
て空きアドレス入力50から、新たな空きアドレスを入
力ラッチ回路51に読み込み、デコーダ回路16に送
る。デコーダ回路16は、入力された7ビットのアドレ
スを128ビットにデコードする。7ビットから128
ビットにデコードするとは、7ビットを128ビットの
情報に展開することであり、この128ビットの情報
は、入力された7ビットのアドレスに対応するビットの
値だけが“1”(もしくは、“0”)であり、他のビッ
トの値は全て“0”(もしくは、“1”)である情報で
ある。このデコード回路出力17により、入力された空
きアドレスに対応するフリップフロップ回路18の1ビ
ットの値を“1”にセッする。また、空きアドレスを読
み出すときは、まずビット選択回路20によってフリッ
プフロップ回路18に記憶した空きアドレスを1つ選択
する。このビット選択回路20は、複数のビットが
“1”である128ビットの入力のうち1ビットだけを
“1”のまま出力し、他のビットは“0”にして出力す
ることにより、フリップフロップ回路18に記憶された
空きアドレスを1つ選択する。選択された空きアドレス
は、エンコーダ回路22によって7ビットのアドレスに
エンコードされるエンコードとは、デコードの逆の操作
である。この空きアドレスを、読み出し信号14によっ
て出力ラッチ回路9を通して、空きアドレス出力10に
出力する。同時に、ビット選択回路出力21をフリップ
フロップ回路18にフィードバックさせることにより、
読み出した空きアドレスに対応するフリップフロップ回
路18の1ビットを“1”から“0”にリセットする。
以上の動作により128個の空きアドレスを保持する空
きアドレス・キュー回路7を得る。When writing an empty address into the flip-flop circuit 18, a new empty address is first read into the input latch circuit 51 from the empty address input 50 by the write signal 13, and sent to the decoder circuit 16. The decoder circuit 16 decodes the input 7-bit address into 128 bits. 7 bits to 128
Decoding into bits means expanding 7 bits into 128-bit information. In this 128-bit information, only the value of the bit corresponding to the input 7-bit address is “1” (or “0”). "), And the values of the other bits are all" 0 "(or" 1 "). With this decode circuit output 17, the 1-bit value of the flip-flop circuit 18 corresponding to the input empty address is set to "1". When reading an empty address, the bit selection circuit 20 first selects one empty address stored in the flip-flop circuit 18. This bit selection circuit 20 outputs only one bit of a 128-bit input in which a plurality of bits are “1” as “1” and outputs the other bit as “0”, thereby outputting the flip-flop. One empty address stored in the circuit 18 is selected. The selected vacant address is the reverse operation of the decoding performed by the encoder circuit 22 to encode it into a 7-bit address. This empty address is output to the empty address output 10 through the output latch circuit 9 by the read signal 14. At the same time, by feeding back the bit selection circuit output 21 to the flip-flop circuit 18,
One bit of the flip-flop circuit 18 corresponding to the read empty address is reset from "1" to "0".
With the above operation, a free address queue circuit 7 holding 128 free addresses is obtained.
【0019】上記空きアドレス・キュー回路では、フリ
ップフロップ回路18において、空きアドレスを“1”
として記憶したが、“0”として記憶することもでき
る。In the empty address queue circuit, the empty address is set to "1" in the flip-flop circuit 18.
, But may be stored as “0”.
【0020】また、上記実施例では、7ビット長の空き
アドレスを128個記憶するが、任意長の空きアドレス
を任意個記憶するように拡張することもできる。In the above embodiment, 128 free addresses having a 7-bit length are stored. However, the present invention can be extended to store any free addresses of any length.
【0021】さらに、上記説明では、この発明をバッフ
ァメモリ3の空きアドレスの記憶に利用する場合につい
て述べたが、その他のデータの記憶にも利用できること
は言うまでもない。例えば、複数のメモリを有するもの
において、どのメモリの記憶容量が設定レベル以上ある
か否かあるいはどのメモリに特定のデータが記憶されて
いるか等、メモリ内容を特定するものであれば本発明を
適用できる。2値の状態を選択するものであればいかな
るものでも適用できる。Further, in the above description, the case where the present invention is used for storing free addresses in the buffer memory 3 has been described, but it goes without saying that the present invention can be used for storing other data. For example, in a device having a plurality of memories, the present invention can be applied if the content of the memory is specified such as whether the storage capacity of the memory is equal to or more than a set level or which memory stores specific data. it can. Anything can be applied as long as it selects a binary state.
【0022】実施例2.図2は、本発明の状態選択装置
に用いられるビット選択回路20の回路構成を示す回路
図であり、19、21は図1の実施例1と全く同一のも
のである。30はビット選択回路20の前半部分であ
り、ビット選択回路入力19−0〜19−127から入
力されたデータの、最下位ビットから上位へ値が“1”
であるビットを探索していくビット探索回路、31−0
〜31−127はビット探索回路出力、24は探索した
結果を修正する修正回路、26−1〜26−127はO
R回路、27−1〜27−127はNOT回路、28−
1〜28−127はAND回路である。このように構成
されるビット選択回路20は、ビット選択回路入力19
−0〜19−127から入ってきた128ビットのデー
タを最下位ビット入力19−0から最上位ビット入力1
9−127へ1ビットずつ探索し、最初に“1”になっ
たビットの出力だけを“1”にし、他のビットの出力を
“0”にして出力する。Embodiment 2 FIG. FIG. 2 is a circuit diagram showing a circuit configuration of a bit selection circuit 20 used in the state selection device of the present invention. Reference numerals 19 and 21 are exactly the same as those in the first embodiment shown in FIG. Numeral 30 denotes the first half of the bit selection circuit 20, and the value of the data input from the bit selection circuit inputs 19-0 to 19-127 is "1" from the least significant bit to the most significant bit.
, A bit search circuit for searching for a bit 31-0
31 to 127 are output of a bit search circuit, 24 is a correction circuit for correcting the searched result, and 26-1 to 26-127 are O
R circuit, 27-1 to 27-127 are NOT circuits, 28-
1-28-127 are AND circuits. The bit selection circuit 20 configured as described above has a bit selection circuit input 19
−0 to 19-127, the 128-bit data from the least significant bit input 19-0 to the most significant bit input 1
9-127 is searched one bit at a time, only the output of the bit which first becomes "1" is set to "1", and the output of the other bits is set to "0" and output.
【0023】図2に示すようにビット選択回路20は、
ビット探索回路30と修正回路24から構成され、ビッ
ト探索回路30は、ビット選択回路入力19−0〜19
−127を最下位ビット入力19−0から最上位ビット
入力19−127まで1ビットずつ探索し、最初に値が
“1”のビットを見つけるまでは“0”の値を出力し、
最初の値が“1”であるビット(すなわち、値が“1”
である最下位のビット)とそのビットより上位のビット
では“1”の値をビット探索回路出力31−0〜31−
127へ出力する回路である。このビット探索回路30
は、直列接続したOR回路26−1〜26−127によ
り構成される。修正回路24は、このビット探索回路出
力31中でビットの値が“1”であり、かつ1つ前のビ
ットの値が“0”であるビットの出力の値だけを“1”
にし、他のビットの出力の値は“0”にする回路であ
る。この修正回路24は、NOT回路27とAND回路
28により構成できる。以上のビット探索回路30と修
正回路24を直列接続することにより、128ビットの
ビット選択回路入力19中で値が“1”であるビットの
うち最下位ビットの値だけを“1”として出力し、他の
ビットの値を“0”として出力する回路を得ることがで
きる。すなわち、フリップフロップ回路18に記憶され
た空きアドレスのうち最下位の空きアドレスを選択する
ビット選択回路20を得られる。As shown in FIG. 2, the bit selection circuit 20
The bit search circuit 30 includes a bit search circuit 30 and a correction circuit 24.
-127 is searched one bit at a time from the least significant bit input 19-0 to the most significant bit input 19-127, and outputs a value of "0" until the first bit having a value of "1" is found,
The bit whose first value is “1” (that is, the bit whose value is “1”)
Is the least significant bit) and bits higher than that bit, the value of "1" is set to the bit search circuit outputs 31-0 to 31-.
127. This bit search circuit 30
Is composed of OR circuits 26-1 to 26-127 connected in series. The correction circuit 24 sets only the output value of the bit whose bit value is “1” in the bit search circuit output 31 and the previous bit value is “0” to “1”.
And the value of the output of the other bits is "0". The correction circuit 24 can be constituted by a NOT circuit 27 and an AND circuit 28. By connecting the above-described bit search circuit 30 and the correction circuit 24 in series, only the least significant bit value among the bits having the value “1” in the 128-bit bit selection circuit input 19 is output as “1”. , A circuit that outputs the value of the other bit as “0” can be obtained. That is, the bit selection circuit 20 that selects the lowest free address from the free addresses stored in the flip-flop circuit 18 can be obtained.
【0024】図2の実施例2では、この発明を空きアド
レス・キュー回路7のビット選択回路20に利用する場
合について述べたが、その他の複数のビットから1つの
ビットを選択する回路にも利用できることは言うまでも
ない。In the second embodiment shown in FIG. 2, the case where the present invention is used for the bit selection circuit 20 of the empty address queue circuit 7 has been described, but it is also used for a circuit for selecting one bit from a plurality of other bits. It goes without saying that you can do it.
【0025】実施例3.図2の実施例2のビット選択回
路20では、ビット探索回路30において、127個の
OR回路26−1〜26−127を直列接続しているた
めに、最高でOR回路127個分の遅延が生じ、ビット
選択回路の回路動作が遅くなる。そこで、図3に示すよ
うにビット探索回路30を階層化することにより、ビッ
ト選択回路20を高速化した。図3は上記ビット選択回
路20におけるビット探索回路30を示す回路図であ
り、19、31は図2実施例2と全く同一のものであ
る。32−0〜32−31は4ビットのビット探索回
路、33−0〜33−127は4ビットのビット探索回
路出力、34は31ビットのビット探索回路、35−1
〜35−31はマスク信号、36−1〜36−31はマ
スク回路、37、38、39はOR回路である。上記の
ように構成されたビット探索回路においては、128ビ
ットの入力19を4ビットのブロック32個に分けて、
各ブロックに4ビットのビット探索回路32−0〜32
−31を設ける。この4ビットのビット探索下位32に
おいて、最上位ビットの出力33−3、33−7、33
−11、・・・、33−127の値が“1”であれば、
そのブロックの入力19の4ビット中に値が“1”のビ
ットが存在し、最上位ビットの出力の値が“0”であれ
ば、そのブロックの入力19である4ビット中に値が
“1”のビットが存在ないことが分かる。そこで、この
4ビットのビット探索回路の各最上位ビット出力33−
3、33−7、33−11、・・・、33−127を入
力とする31ビットのビット探索回路34を構成すれ
ば、値が“1”である入力19を含むブロックのうちで
最下位のブロックとそれにより上位のブロックに対応す
るビット探索回路34の出力35が“1”になり、他の
出力は“0”になる。そこで、このビット探索回路34
の出力35により、4ビットのビット探索回路出力33
をマスクする回路36を設けることにより、全体として
128ビットのビット探索回路を構成できる。マスク回
路36は、マスク信号35が“0”ならば4ビットのビ
ット探索回路出力33をそのまま出力し、マスク信号3
5が“1”ならば全ビットを“1”にして出力する回路
である。Embodiment 3 FIG. In the bit selection circuit 20 according to the second embodiment shown in FIG. 2, since 127 OR circuits 26-1 to 26-127 are connected in series in the bit search circuit 30, a delay of 127 OR circuits at the maximum is provided. As a result, the circuit operation of the bit selection circuit becomes slow. Therefore, the bit selection circuit 20 is speeded up by hierarchizing the bit search circuit 30 as shown in FIG. FIG. 3 is a circuit diagram showing a bit search circuit 30 in the bit selection circuit 20. Reference numerals 19 and 31 are exactly the same as those in the second embodiment shown in FIG. 32-0 to 32-31 are 4-bit bit search circuits; 33-0 to 33-127 are 4-bit bit search circuit outputs; 34 is a 31-bit bit search circuit;
35-31 are mask signals, 36-1 to 36-31 are mask circuits, and 37, 38 and 39 are OR circuits. In the bit search circuit configured as described above, the 128-bit input 19 is divided into 32 4-bit blocks,
A 4-bit bit search circuit 32-0 to 32 for each block
-31 is provided. In the lower 4 bits of the 4-bit search, the outputs 33-3, 33-7, and 33 of the most significant bit are output.
If the value of −11,..., 33-127 is “1”,
If there is a bit whose value is “1” in the four bits of the input 19 of the block and the value of the output of the most significant bit is “0”, the value is “4” in the four bits that are the input 19 of the block. It can be seen that there is no 1 "bit. Therefore, each of the most significant bit outputs 33-
By configuring a 31-bit bit search circuit 34 having inputs of 3, 33-7, 33-11,..., And 33-127, the least significant block among the blocks including the input 19 whose value is “1” And the output 35 of the bit search circuit 34 corresponding to the higher-level block becomes "1", and the other outputs become "0". Therefore, this bit search circuit 34
Of the 4-bit search circuit output 33
Is provided, a bit search circuit of 128 bits as a whole can be configured. If the mask signal 35 is “0”, the mask circuit 36 outputs the 4-bit bit search circuit output 33 as it is, and outputs the mask signal 3
If 5 is "1", all bits are set to "1" and output.
【0026】図3の実施例3のビット探索回路では、4
ビットのビット探索回路32と31ビットのビット探索
回路34により、128ビットのビット探索回路を構成
したが、任意ビット数のビット探索回路を組合わせて1
28ビットのビット探索回路を構成することもできる。In the bit search circuit of the third embodiment shown in FIG.
A 128-bit bit search circuit is formed by the bit search circuit 32 for bits and the bit search circuit 34 for 31 bits.
A 28-bit bit search circuit can also be configured.
【0027】図3の実施例3のビット探索回路では、4
ビットのビット探索回路32を32個に31ビットのビ
ット探索回路34を設けた2階層の構成になっている
が、任意の階層でビット探索回路を構成することもでき
る。In the bit search circuit of the third embodiment shown in FIG.
Although the bit search circuit 32 has a two-layer structure in which 32 bit search circuits 34 are provided for 32 bits, the bit search circuit can be formed in an arbitrary hierarchy.
【0028】図2の実施例2及び図3の実施例3では、
128ビットのビット選択回路及び128ビットのビッ
ト探索回路についてそれぞれ説明したが、任意のビット
数のビット選択回路、任意のビット数のビット探索回路
に拡張することもできる。In the second embodiment shown in FIG. 2 and the third embodiment shown in FIG.
Although a 128-bit bit selection circuit and a 128-bit bit search circuit have been described, the present invention can be extended to a bit selection circuit with an arbitrary number of bits and a bit search circuit with an arbitrary number of bits.
【0029】実施例4.図4の回路図は128ビットか
ら下位4ビットのアドレスをエンコードするエンコーダ
回路の回路図であり、21、23は図1実施例1の空き
アドレス・キュー回路の回路図と全く同一のものであ
る。40は8入力のOR回路、OR1〜OR15はOR
回路出力、41は16ビットから4ビットにエンコード
するエンコーダ回路、42は8入力OR回路である。図
5の回路図は128ビットから上位3ビットのアドレス
をエンコードするエンコーダ回路の回路図であり、2
1、23は図1実施例1の空きアドレス・キュー回路の
回路図と全く同一のものである。43は16ビットのビ
ット探索回路、44はビット探索回路44の最上位ビッ
トの出力、48は8ビットから3ビットにエンコードす
るエンコーダ回路、49は4入力OR回路である。図4
のエンコーダ回路と図5のエンコーダ回路により、12
8ビットから7ビットのアドレスにエンコードするエン
コーダ回路を構成する。Embodiment 4 FIG. The circuit diagram of FIG. 4 is a circuit diagram of an encoder circuit that encodes addresses from 128 bits to the lower 4 bits. Reference numerals 21 and 23 are exactly the same as the circuit diagram of the empty address queue circuit of the first embodiment in FIG. . 40 is an 8-input OR circuit, OR1 to OR15 are OR circuits
The circuit output, 41 is an encoder circuit for encoding from 16 bits to 4 bits, and 42 is an 8-input OR circuit. The circuit diagram of FIG. 5 is a circuit diagram of an encoder circuit that encodes the upper 3 bits of the address from 128 bits.
Reference numerals 1 and 23 are exactly the same as the circuit diagram of the empty address queue circuit of the first embodiment shown in FIG. 43 is a 16-bit bit search circuit, 44 is the output of the most significant bit of the bit search circuit 44, 48 is an encoder circuit for encoding from 8 bits to 3 bits, and 49 is a 4-input OR circuit. FIG.
The encoder circuit of FIG. 5 and the encoder circuit of FIG.
An encoder circuit for encoding an 8-bit to 7-bit address is configured.
【0030】図4の回路は、まず、128ビットの入力
21を16ビット単位の8ブロックに分け、この8個の
ブロック間においてOR回路40によってビット単位の
論理和を15個とる。ただし、各ブロックの最下位入力
21−0、21−16、21−32〜21−112の論
理和だけはとらない。これは、これらの入力をエンコー
ドすると下位4ビット全て“0”になるため、16ビッ
トから4ビットにエンコードするエンコーダ回路41の
入力に必要ないためである。この論理和された15ビッ
トの出力を16ビットから4ビットのアドレスにエンコ
ードするエンコーダ回路41によりエンコードすること
によって、128ビットの入力21から下位4ビット2
3−0〜23−3だけエンコードできる。The circuit shown in FIG. 4 first divides a 128-bit input 21 into eight blocks of 16-bit units, and ORs 40 bits between these eight blocks by an OR circuit 40. However, only the logical sum of the lowest inputs 21-0, 21-16 and 21-32 to 21-112 of each block is not obtained. This is because, when these inputs are encoded, all the lower 4 bits become "0", so that it is not necessary for the input of the encoder circuit 41 for encoding from 16 bits to 4 bits. The logically ORed 15-bit output is encoded by an encoder circuit 41 which encodes the 16-bit to 4-bit address.
Only 3-0 to 23-3 can be encoded.
【0031】図5の回路は、まず、128ビットの入力
21を図4の回路と同様に16ビット単位の8ブロック
に分ける。この各ブロックの入力を16ビット入力の実
施例2及び実施例3で示したビット探索回路43に入力
する。このビット探索回路43の最上位の出力44が
“1”であれば、この16ビットのブロック内に“1”
のビットがあることが分かる。よって、この8つのビッ
ト探索回路43の各最上位ビットの出力44の8ビット
を3ビットのアドレスにエンコードするエンコーダ回路
48によってエンコードすることにより、128ビット
の入力21から上位3ビット23−4〜23−7をエン
コードできる。図5の回路では、最初のブロック(入力
が21−0〜21−15のブロック)のビット探索回路
は無い。これは、最初のブロックが“1”であることを
エンコードすると上記3ビットの値は全て“0”となる
ので、エンコーダ回路48の入力に必要ないためであ
る。In the circuit shown in FIG. 5, first, the input 21 of 128 bits is divided into eight blocks in units of 16 bits as in the circuit shown in FIG. The input of each block is input to the bit search circuit 43 shown in the second and third embodiments of the 16-bit input. If the most significant output 44 of the bit search circuit 43 is "1", "1" is included in the 16-bit block.
It can be seen that there is a bit of Therefore, by encoding the 8 bits of the output 44 of the most significant bit of each of the eight bit search circuits 43 into an address of 3 bits, the encoder circuit 48 encodes the 128 bits of the input 21 to the upper 3 bits 23-4 to 23-7 can be encoded. In the circuit of FIG. 5, there is no bit search circuit for the first block (the block whose input is 21-0 to 21-15). This is because when encoding that the first block is "1", the values of the above three bits are all "0", and are not necessary for the input of the encoder circuit 48.
【0032】図4の回路と図5の回路により得られた下
位4ビットと上位3ビットのアドレスを連結することに
より、7ビットのアドレスを得、128ビットから7ビ
ットのアドレスにエンコードするエンコーダ回路を構成
できる。以上のように、エンコーダ回路を小さい規模の
2つのエンコーダ回路に分割して実現することにより、
従来のエンコーダ回路よりも回路規模の小さいエンコー
ダ回路が得られる。An encoder circuit that obtains a 7-bit address by concatenating the lower 4 bits and the upper 3 bits of the address obtained by the circuit of FIG. 4 and the circuit of FIG. 5 and encodes the address from 128 bits to 7 bits Can be configured. As described above, by dividing and realizing the encoder circuit into two small-scale encoder circuits,
An encoder circuit having a smaller circuit size than a conventional encoder circuit can be obtained.
【0033】実施例4では、128ビットから7ビット
にエンコードするエンコーダ回路を128ビットから下
位4ビット、上位3ビットのエンコードをそれぞれ行う
2つのエンコーダ回路に分けたが、任意のビット数にエ
ンコードするエンコーダ回路に分割することができる。In the fourth embodiment, the encoder circuit for encoding from 128 bits to 7 bits is divided into two encoder circuits for encoding the lower 4 bits and the upper 3 bits from 128 bits, respectively. It can be divided into encoder circuits.
【0034】実施例4では、、128ビットから7ビッ
トへエンコードするエンコーダ回路について説明した
が、任意のビット数から任意のビット数へエンコードす
るエンコーダ回路に拡張することもできる。In the fourth embodiment, the encoder circuit for encoding from 128 bits to 7 bits has been described. However, the encoder circuit for encoding from an arbitrary number of bits to an arbitrary number of bits can be extended.
【0035】実施例4では、この発明を空きアドレス・
キュー回路のエンコーダ回路に利用する場合について述
べたが、その他のエンコーダ回路にも利用できることは
言うまでもない。In the fourth embodiment, the present invention is applied to an empty address
Although the case where the present invention is used for the encoder circuit of the queue circuit has been described, it goes without saying that the present invention can be used for other encoder circuits.
【0036】実施例5.実施例2、実施例3及び実施例
4では同じ構成のビット探索回路を用いている。そこ
で、ビット探索回路をビット選択回路とエンコーダ回路
で供用することにより、空きアドレス・キュー回路全体
としての回路規模を小さくすることができる。Embodiment 5 FIG. In the second, third and fourth embodiments, a bit search circuit having the same configuration is used. Therefore, by using the bit search circuit with the bit selection circuit and the encoder circuit, the circuit scale of the entire empty address / queue circuit can be reduced.
【0037】[0037]
【発明の効果】以上のように第1の発明によれば、1ビ
ットのフリップフロップ回路により1つの空き状態が記
憶できるため、必要とするメモリの容量を少なくできて
状態選択装置全体としての回路規模を小さくすることが
できる。また、状態選択装置をLSI化した場合の面
積、消費電力を共に小さくすることができる。さらにま
た、空きアドレスをシフトレジスタでなくフリップフロ
ップにより管理しており、かつ、ビット選択回路を有し
ているので、特定のアドレスに書き込んだり、特定アド
レスから読み出したりする用途に適用することができ
る。 According to the invention the first as the foregoing, 1 for one vacant by the flip-flop circuit of the bit can be stored, the circuit of the entire state selection device can reduce the capacity of the memory required The scale can be reduced. Further, both the area and the power consumption when the state selection device is formed into an LSI can be reduced. Even better
In addition, empty addresses are flip-flop
And has a bit selection circuit.
Write to a specific address,
Can be applied to applications that read from
You.
【0038】また、第2の発明によれば、階層化された
ビット探索回路を用いてビット選択回路を構成するた
め、高速に動作するビット選択回路を得ることができ
る。According to the second aspect of the present invention, since the bit selection circuit is configured using the hierarchized bit search circuit, a bit selection circuit that operates at high speed can be obtained.
【0039】また、第3の発明によれば、上位ビットと
下位ビットに分けて別々にエンコードするので、エンコ
ードを高速で行え、かつ回路規模の小さいエンコーダ回
路を得ることができる。According to the third aspect of the present invention, since the upper bits and the lower bits are separately encoded, the encoding can be performed at a high speed and an encoder circuit having a small circuit size can be obtained.
【図1】この発明の実施例1を示すブロック図である。FIG. 1 is a block diagram showing a first embodiment of the present invention.
【図2】この発明の実施例2を示すビット選択回路の回
路図である。FIG. 2 is a circuit diagram of a bit selection circuit according to a second embodiment of the present invention.
【図3】この発明の実施例3を示すビット選択回路のビ
ット探索回路を示す回路図である。FIG. 3 is a circuit diagram showing a bit search circuit of a bit selection circuit according to a third embodiment of the present invention.
【図4】この発明の実施例4を示すエンコーダ回路の下
位4ビットをエンコードするエンコーダ回路の回路図で
ある。FIG. 4 is a circuit diagram of an encoder circuit that encodes lower 4 bits of an encoder circuit according to a fourth embodiment of the present invention.
【図5】この発明の実施例4を示すエンコーダ回路の上
位3ビットをエンコードするエンコーダ回路の回路図で
ある。FIG. 5 is a circuit diagram of an encoder circuit that encodes upper three bits of an encoder circuit according to a fourth embodiment of the present invention.
【図6】従来のバッファメモリを用いた回路を示す交換
回路のブロック図である。FIG. 6 is a block diagram of a switching circuit showing a circuit using a conventional buffer memory.
【図7】従来の空きアドレス・キュー回路を示すブロッ
ク図である。FIG. 7 is a block diagram showing a conventional empty address queue circuit.
3 バッファメモリ 7 空きアドレス・キュー回路 16 デコーダ回路 18 フリップフロップ回路 20 ビット選択回路 22 エンコーダ回路 24 修正回路 26 OR回路 27 NOT回路 28 AND回路 30 ビット探索回路 Reference Signs List 3 buffer memory 7 free address / queue circuit 16 decoder circuit 18 flip-flop circuit 20 bit selection circuit 22 encoder circuit 24 correction circuit 26 OR circuit 27 NOT circuit 28 AND circuit 30 bit search circuit
Claims (3)
等の2値の状態のいずれか一方を選択する状態選択装置
において、上記メモリの数に対応して設けられた複数の
フリップフロップ回路と、上記それぞれのメモリを区別
するために複数ビット長となって外部より取り込まれる
データを、上記フリップフロップ回路の数に相当するビ
ットにデコードして上記フリップフロップ回路に供給す
るデコーダ回路と、上記フリップフロップ回路に記憶さ
れている一方のビット情報のうちの一つのビットを選択
するビット選択回路と、このビット選択回路の出力を、
上記デコーダ回路とは逆の変換を行うエンコーダ回路と
を備えたことを特徴とする状態選択装置。A plurality of flip-flop circuits provided corresponding to the number of the memories in a state selection device for selecting one of binary states such as whether or not a plurality of memories are empty; And a decoder circuit for decoding data taken in from outside as a plurality of bits in order to distinguish the memories from each other into bits corresponding to the number of the flip-flop circuits and supplying the bits to the flip-flop circuits; A bit selection circuit for selecting one bit of the one bit information stored in the flip-flop circuit, and an output of the bit selection circuit,
A state selection device comprising: an encoder circuit that performs a reverse conversion to the decoder circuit.
を“1”とし、選択しないビットは“0”として出力す
るもので、直列接続したOR回路により構成され、かつ
階層化されたビット探索回路と、NOT回路とAND回
路とにより構成されて、上記ビット探索回路の出力を修
正する修正回路とより成ることを特徴とする請求項第1
項記載の状態選択装置。2. The bit selection circuit outputs only selected bits as "1" and outputs non-selected bits as "0". The bit selection circuit is composed of serially connected OR circuits, and is a hierarchical bit search circuit. And a correction circuit comprising a NOT circuit and an AND circuit for correcting the output of the bit search circuit.
Item.
ットとに分けて別々にエンコードする構成としたことを
特徴とする請求項第2項記載の状態選択装置。3. The state selection device according to claim 2, wherein the encoder circuit is configured to separately encode upper bits and lower bits separately.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP7256292A JP2882714B2 (en) | 1992-02-21 | 1992-02-21 | State selection device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP7256292A JP2882714B2 (en) | 1992-02-21 | 1992-02-21 | State selection device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH05235996A JPH05235996A (en) | 1993-09-10 |
JP2882714B2 true JP2882714B2 (en) | 1999-04-12 |
Family
ID=13492930
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP7256292A Expired - Fee Related JP2882714B2 (en) | 1992-02-21 | 1992-02-21 | State selection device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2882714B2 (en) |
-
1992
- 1992-02-21 JP JP7256292A patent/JP2882714B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH05235996A (en) | 1993-09-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2823767B2 (en) | Register file | |
USRE43552E1 (en) | Block programmable priority encoder in a cam | |
KR900005469A (en) | Serial I / O Semiconductor Memory | |
US6718433B1 (en) | Match and priority encoding logic circuit | |
JPH11353225A (en) | Memory that processor addressing gray code system in sequential execution style accesses and method for storing code and data in memory | |
JP2882714B2 (en) | State selection device | |
EP0690450A2 (en) | Memory circuit sequentially accessible by arbitrary address | |
CA2133263A1 (en) | Variable word length code decoding method, and a decoder for performing the same | |
US7350019B2 (en) | Content addressable memory device capable of being used in cascaded fashion | |
JP2741836B2 (en) | Adaptive variable length encoder | |
US6801981B1 (en) | Intra-row configurability of content addressable memory | |
JP3003894B2 (en) | Variable length decoder | |
US7363460B2 (en) | Semiconductor memory device having tag block for reducing initialization time | |
US5875147A (en) | Address alignment system for semiconductor memory device | |
US6081869A (en) | Bit-field peripheral | |
JPH03179562A (en) | Data recorder and data editing | |
JP2842094B2 (en) | Huffman decoding circuit | |
US7065606B2 (en) | Controller architecture for memory mapping | |
JPH0490267A (en) | Decoding circuit for variable length code | |
JPH0259560B2 (en) | ||
JP2996601B2 (en) | Shared circuit of elastic store circuit and time switch circuit | |
JPH0218638A (en) | Data control system | |
JPH04195895A (en) | Ic memory | |
JP2007172333A (en) | Bus address selection circuit and method of selecting bus address | |
JPS5984315A (en) | Memory circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080205 Year of fee payment: 9 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090205 Year of fee payment: 10 |
|
LAPS | Cancellation because of no payment of annual fees |