JP2011070502A - Sequence control circuit and control circuit - Google Patents
Sequence control circuit and control circuit Download PDFInfo
- Publication number
- JP2011070502A JP2011070502A JP2009222300A JP2009222300A JP2011070502A JP 2011070502 A JP2011070502 A JP 2011070502A JP 2009222300 A JP2009222300 A JP 2009222300A JP 2009222300 A JP2009222300 A JP 2009222300A JP 2011070502 A JP2011070502 A JP 2011070502A
- Authority
- JP
- Japan
- Prior art keywords
- register
- cell
- output
- state
- next state
- 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.)
- Granted
Links
Images
Abstract
Description
本発明は、データパス回路を制御するシーケンス制御回路及び制御回路に関する。 The present invention relates to a sequence control circuit and a control circuit for controlling a data path circuit.
従来、データパス回路を制御する制御回路において、シーケンスを制御しているステートマシンは、組合せ回路からなる状態決定部と、順序回路からなる状態保持部により構成されており、フルハードウェアにより実現されていた(例えば、特許文献1参照)。 Conventionally, in a control circuit that controls a data path circuit, a state machine that controls a sequence is composed of a state determination unit composed of a combinational circuit and a state holding unit composed of a sequential circuit, and is realized by full hardware. (For example, refer to Patent Document 1).
しかしながら、従来の制御回路では、制御するデータパス回路が変わると、状態決定方法も異なるため、従来のフルハードウェアによる実現では、制御するデータパス回路毎にステートマシンを実装しなくてはならなかった。 However, in the conventional control circuit, if the data path circuit to be controlled changes, the state determination method also changes. Therefore, in the conventional full hardware implementation, a state machine must be mounted for each data path circuit to be controlled. It was.
この発明は上記のような課題を解決するためになされたもので、様々なデータパス回路の制御に対応可能なシーケンス制御回路及び制御回路を得ることを目的とする。 The present invention has been made to solve the above-described problems, and an object of the present invention is to obtain a sequence control circuit and a control circuit that can cope with various data path circuit controls.
この発明に係るシーケンス制御回路は、現ステートを保持する現ステートレジスタと、入力データと保持する比較対象値とを比較することにより、比較が一致したことを通知するための一致信号と次ステートとを得る複数のセルと、複数のセルの出力である一致信号の論理和を得る一致信号用論理和回路と、複数のセルの出力である次ステートの論理和を得るステート用論理和回路と、複数のセルで比較が一致しなかった場合に出力する次ステートを保持する複数のレジスタを持つ不一致用次ステートレジスタ群と、不一致用次ステートレジスタ群からレジスタを選択する不一致用次ステートセレクタと、一致信号用論理和回路の出力によりステート用論理和回路の出力と不一致用次ステートセレクタの出力を選択する次ステート出力用セレクタとを備え、各セルは、任意のビット位置とビット数の選択値を保持する複数のレジスタを持つビット選択レジスタ群と、ビット選択レジスタ群の選択されたレジスタのビット位置とビット数の選択値に従って入力データから対応するビット位置とビット数の比較データを選択するビット選択器と、比較対象値を保持する複数のレジスタを持つ比較対象レジスタ群と、ビット選択器で選択された比較データと比較対象レジスタ群の選択されたレジスタの比較対象値とを比較し、両者が一致した際に現セル一致信号を出力する比較器と、比較対象レジスタ群で保持する比較対象値に対応する次ステートを保持する複数のレジスタを持つ次ステートレジスタ群と、複数のセルにおける隣セルの一致信号を取り込むかどうかの選択値を保持する複数のレジスタを持つ一致信号伝達有無レジスタ群と、一致信号伝達有無レジスタ群の選択されたレジスタの値に基づいて隣セルの一致信号かまたは固定値‘1’を選択する一致信号伝達セレクタと、比較器から出力される現セル一致信号と一致信号伝達セレクタの出力に基づいて一致信号を生成する論理積ゲートと、生成された一致信号に基づいて次ステートレジスタ群の選択されたレジスタの次ステートか、または固定値‘0’を自セルの次ステートとするセル出力選択手段と、現ステートレジスタの値に基づいて各レジスタ群のそれぞれのレジスタを選択し、その保持するデータを出力するそれぞれのレジスタ選択手段とを有し、セル出力選択手段によって選択された次ステートを、次の現ステートとして現ステートレジスタにフィードバックするようにしたものである。 The sequence control circuit according to the present invention compares the current state register that holds the current state, the input data and the comparison target value that is held by comparing the match signal and the next state for notifying that the comparison is matched. A match signal OR circuit for obtaining a logical sum of match signals that are outputs of the plurality of cells, a state OR circuit for obtaining a logical sum of the next state that is an output of the plurality of cells, A mismatching next state register group having a plurality of registers for holding a next state to be output when the comparison does not match in a plurality of cells, a mismatching next state selector for selecting a register from the mismatching next state register group, Next state output selector that selects the output of the state OR circuit and the output of the next state selector for mismatch by the output of the match signal OR circuit. Each cell has a bit selection register group having a plurality of registers for holding a selected value of an arbitrary bit position and the number of bits, and selection of the bit position and the number of bits of the selected register of the bit selection register group. A bit selector that selects comparison data of a corresponding bit position and the number of bits from input data according to a value, a comparison target register group having a plurality of registers that hold comparison target values, and comparison data selected by the bit selector; A comparator that compares the comparison target value of the selected register of the comparison target register group and outputs a current cell match signal when the two match, and a next state corresponding to the comparison target value held in the comparison target register group A group of next state registers having a plurality of registers for holding and a selection value for selecting whether or not to receive a match signal of a neighboring cell in a plurality of cells. A match signal transmission presence / absence register group having the same register, a match signal transmission selector that selects a match signal of a neighboring cell or a fixed value “1” based on the value of a selected register of the match signal transmission presence / absence register group, and comparison AND gate that generates a match signal based on the current cell match signal output from the detector and the output of the match signal transmission selector, and the next state of the selected register of the next state register group based on the generated match signal Or cell output selection means for setting the fixed value “0” as the next state of the own cell, and each register for selecting each register of each register group based on the value of the current state register and outputting the held data A next state selected by the cell output selection unit as a next current state to the current state register. It is obtained so as to click.
この発明のシーケンス制御回路は、入力データと比較対象値の比較が一致したことを通知するための一致信号と次ステートとを得る複数のセルと、一致信号の論理和を得る一致信号用論理和回路と、次ステートの論理和を得るステート用論理和回路と、一致信号用論理和回路の出力によりステート用論理和回路の出力と不一致用次ステートレジスタ群の出力を選択する次ステート出力用セレクタを備えたので、様々なデータパス回路の制御に対応可能なシーケンス制御回路を得ることができる。 The sequence control circuit according to the present invention includes a plurality of cells for obtaining a match signal and a next state for notifying that the comparison between the input data and the comparison target value is matched, and a match signal logical sum for obtaining a logical sum of the match signals. Circuit, state OR circuit for obtaining the logical OR of the next state, and selector for next state output that selects the output of the logical OR circuit for state and the output of the next state register group for mismatch by the output of the logical OR circuit for match signal Therefore, it is possible to obtain a sequence control circuit that can handle various data path circuit controls.
実施の形態1.
図1は、この発明の実施の形態1によるシーケンス制御回路構成を示すブロック図である。
シーケンス制御回路1は、現ステートレジスタ2、複数のセル3a〜3d、一致信号用論理和回路4、ステート用論理和回路5、不一致用次ステートレジスタ群6、不一致用次ステートセレクタ(MUX)7、次ステート出力用セレクタ(MUX)8を備えている。
現ステートレジスタ2は、現ステート9を保持するレジスタである。複数のセル3a〜3dは、入力データ10と保持する比較対象値とを比較することにより比較が一致したことを通知する一致信号11a〜11dと次ステート12a〜12dを得るものである。一致信号用論理和回路4は、複数のセル3a〜3dの出力である一致信号11a〜11dの論理和を得る回路である。ステート用論理和回路5は、複数のセル3a〜3dの出力である次ステート12a〜12dの論理和を得る回路である。不一致用次ステートレジスタ群6は、比較が一致しなかった場合に出力する次ステートを保持する複数のレジスタを持つレジスタ群である。
FIG. 1 is a block diagram showing a sequence control circuit configuration according to
The
The
不一致用次ステートセレクタ7は、不一致用次ステートレジスタ群6からレジスタを選択するためのセレクタである。次ステート出力用セレクタ8は、一致信号用論理和回路4の出力13によりステート用論理和回路5の出力14と不一致用次ステートセレクタ7の出力15を選択するためのセレクタである。また、シーケンス制御回路1は、シーケンス制御回路1を所望のシーケンス制御用に構成するためにシーケンス制御回路1内の各レジスタにコンフィグレーションデータ17を書き込む際に、レジスタ指定アドレス信号18に基づいて、セル内レジスタ指定アドレス信号19を生成する共通アドレスデコーダ16を備えている。
The mismatching next state selector 7 is a selector for selecting a register from the mismatching next
また、固定値20は、左隣りのセルが存在しないセル3aに、隣セルの一致信号の代わりとして入力される固定値‘1’であり、ステート出力21は、次ステート出力用セレクタ8により出力される次ステートであり、現ステートレジスタ2、および、シーケンス制御回路1の外部へ出力となるものである。
The
図2は、セル3の構成を示すブロック図である。セル3a〜3dは、どれも同じ構成であり、ビット選択レジスタ群22、ビット選択器23、比較対象レジスタ群24、比較器25、次ステートレジスタ群26、一致信号伝達有無レジスタ群27、一致信号伝達セレクタ(MUX)28、論理積ゲート29、セル出力選択手段(MUX)30、レジスタ選択手段(MUX)31,32,33,34、セル内アドレスデコーダ35を備えている。以下、セル3bを例として説明する。
FIG. 2 is a block diagram showing the configuration of the
ビット選択レジスタ群22は、任意のビット位置とビット数の選択値を保持する複数のレジスタを持つレジスタ群である。ビット選択器23は、ビット選択レジスタ群22の選択されたレジスタのビット位置とビット数の選択値36に従って入力データ10から対応するビット位置とビット数の比較データを選択するビット選択器である。比較対象レジスタ群24は、比較対象値を保持する複数のレジスタを持つレジスタ群である。比較器25は、ビット選択器23で選択された比較データ37と、比較対象レジスタ群24の選択されたレジスタの比較対象値38とを比較し、両者が一致した際に現セル一致信号39を出力する比較器である。次ステートレジスタ群26は、比較対象レジスタ群24で保持する比較対象値38に対応する次ステートを保持する複数のレジスタを持つレジスタ群である。一致信号伝達有無レジスタ群27は、隣セルの一致信号11aを取り込むかどうかの選択値を保持する複数のレジスタを持つレジスタ群である。
The bit
一致信号伝達セレクタ28は、一致信号伝達有無レジスタ群27の選択されたレジスタの選択値40に基づいて隣セルの一致信号11aかまたは固定値‘1’を選択するセレクタである。論理積ゲート29は、比較器25から出力される現セル一致信号39と一致信号伝達セレクタ28の出力に基づいて一致信号11bを生成する論理積ゲートである。セル出力選択手段30は、生成された一致信号11bに基づいて次ステートレジスタ群26の選択されたレジスタの次ステート41か、または固定値‘0’を当該セルの次ステートとする選択手段である。レジスタ選択手段31〜34は、現ステート9に基づいて各レジスタ群22,24,26,27のそれぞれのレジスタを選択し、その保持するデータを出力する選択手段である。セル内アドレスデコーダ35は、セル3b内の各レジスタにコンフィグレーションデータ17を書き込む際に、セル内レジスタ指定アドレス信号19に基づいて、セル内のアドレス信号42を生成するためのデコーダである。
The coincidence
また、出力43は、一致信号伝達セレクタ28によって選択される信号であり、固定値44は、一致信号伝達セレクタ28の片方の入力となる固定値‘1’であり、固定値45は、セル出力選択手段30の片方の入力となる固定値‘0’である。
The
次に、図3に示すステートマシンを例に、シーケンス制御回路1の構成例、および、動作例を説明する。
図3のステートマシンは、S0〜S3の4つのステートを持ち、それぞれのステートにおいて、以下のような条件判定によって次ステートを決定する。図3のステートマシンは、次ステートとなる遷移先が多岐に渡っていたり、次ステートの判定に使用するビット数が4ビットであったり8ビットであったりと様々な遷移が存在する。
Next, a configuration example and an operation example of the
The state machine of FIG. 3 has four states S0 to S3, and the next state is determined by the following condition determination in each state. In the state machine of FIG. 3, there are various transitions such as the transition destinations to be the next state are diverse, and the number of bits used for determining the next state is 4 bits or 8 bits.
「現ステートがS0のとき」
・x+y=4’b1111ならば、次ステートはS0
・x+y=4’b1110ならば、次ステートはS1
・x+y=4’b1101ならば、次ステートはS2
・x+y=4’b1100ならば、次ステートはS3
・それ以外ならば、EXIT
“When the current state is S0”
If x + y = 4′b1111, the next state is S0
If x + y = 4′b1110, the next state is S1
If x + y = 4′b1101, the next state is S2.
If x + y = 4′b1100, the next state is S3
・ Exit otherwise
「現ステートがS1のとき」
・1ビットのフラグa〜hについて、
{(a=1)|(b=1)}&(c=1)&{(d=1)|(e=1)}&(f=1)&(g=0)&(h=0)
が成立するならば、次ステートはS2
・それ以外ならば、次ステートはS1
“When the current state is S1”
For 1-bit flags a to h,
{(A = 1) | (b = 1)} & (c = 1) & {(d = 1) | (e = 1)} & (f = 1) & (g = 0) & (h = 0 )
If is established, the next state is S2.
-Otherwise, the next state is S1
「現ステートがS2のとき」
・(z=4’b1100)|(z=4’b0100)|(z=4’b1000)ならば、次ステートはS3
・それ以外ならば、S2
“When the current state is S2”
If (z = 4′b1100) | (z = 4′b0100) | (z = 4′b1000), the next state is S3
・ Otherwise, S2
「現ステートがS3のとき」
・(w=4’b0001)|(w=4’b0010)|(w=4’b0011)|(w=4’b1111)ならば、次ステートはS0
・それ以外ならば、次ステートはS3
尚、上記の“|”はビット単位の論理和を示している。
“When the current state is S3”
If (w = 4′b0001) | (w = 4′b0010) | (w = 4′b0011) | (w = 4′b1111), the next state is S0
-Otherwise, the next state is S3
The above “|” indicates a bitwise logical sum.
図4は、図3のステートマシンをこの発明のシーケンス制御回路1で実現した場合の構成例である。図4では、図面としての煩雑さを避けるため、各レジスタ群からレジスタを選択するレジスタ選択手段31,32,33,34、および、コンフィグレーションにのみ関わる共通アドレスデコーダ16、セル内アドレスデコーダ35についてはその図示を省略している。
FIG. 4 is a configuration example when the state machine of FIG. 3 is realized by the
各レジスタ群は、上から1番目のレジスタに現ステートがS0のときに選択される値、上から2番目のレジスタに現ステートがS1のときに選択される値、上から3番目のレジスタに現ステートがS2のときに選択される値、上から4番目のレジスタに現ステートがS3の時に選択される値が保持されている。
ビット選択レジスタ群22において、「0−3」は入力データ10の先頭ビットを0ビット目と数えたときの、0ビット目から3ビット目までの4ビットを選択し、「4−7」は先頭から4ビット目から7ビット目までの4ビットを選択し、「―」はいずれのビットも選択しない、即ち当該セルでは比較を行わないことを示す。
比較対象レジスタ群24において、例えば「0110」は二進数表記で4ビットの値4’b0110を示す。
一致信号伝達有無レジスタ群27において、「0」は固定値‘1’(44)を選択し、「1」は隣セルの一致信号11を選択することを示す。
次ステートレジスタ群26、および、不一致用次ステートレジスタ群6において、「S0」はステートS0を表すユニークな値、「S1」はステートS1を表すユニークな値、「S2」はステートS2を表すユニークな値、「S3」はステートS3を表すユニークな値、「EXIT」はEXITを表すユニークな値、「0」は値‘0’を示す。
Each register group has a value selected when the current state is S0 in the first register from the top, a value selected when the current state is S1 in the second register from the top, and a value selected when the current state is S1 The value selected when the current state is S2, and the value selected when the current state is S3 are held in the fourth register from the top.
In the bit
In the comparison
In the coincidence signal transmission presence /
In the next
上から1番目のレジスタ、即ち、現ステートがS0のときには、入力データ10としてx+yの演算結果が入力され、セル3aでは入力データ10の先頭から0〜3ビット目の4ビットと4’b1111を比較し、比較が一致すれば次ステートとしてS0を出力する。セル3bでは入力データ10の先頭から0〜3ビット目の4ビットと4’b1110を比較し、比較が一致すれば次ステートとしてS1を出力する。セル3cでは入力データ10の先頭から0〜3ビット目の4ビットと4’b1101を比較し、比較が一致すれば次ステートとしてS2を出力する。セル3dでは入力データ10の先頭から0〜3ビット目の4ビットと4’b1100を比較し、比較が一致すれば次ステートとしてS3を出力する。いずれのセルも比較が一致しなかった場合は、次ステートとしてEXITを出力する。
When the first register from the top, that is, when the current state is S0, the operation result of x + y is input as the
上から2番目のレジスタ、即ち、現ステートがS1のときには、入力データとして8つのフラグが上位ビットから{a、b、c、d、e、f、g、h}の順で連結されたデータとして入力される。ここで、1つのセルで比較できる最大ビット数を4ビットとすると、8ビットの比較は2つのセルを用いて実行することになる。ここでは、左から偶数番目のセル(0番目:セル3a、2番目:セル3c、4番目、6番目、・・・)で上位4ビットの比較を行い、左から奇数番目のセル(1番目:セル3b、3番目:セル3d、5番目、7番目、・・・)で下位8ビットの比較を行う。
セル3aでは、入力データ10の先頭から0〜3ビット目の4ビット{a、b、c、d}と4’b0110を比較、即ち、aと0、bと1、cと1、dと0を比較し、比較が一致すれば‘0’を出力する。セル3bでは、入力データ10の先頭から4〜7ビット目の4ビット{e、f、g、h}と4’b1100を比較、即ち、eと1、fと1、gと0、hと0を比較する。セル3aとセル3bともに比較が一致すれば次ステートとしてS2を出力する。セル3cでは、入力データ10の先頭から0〜3ビット目の4ビット{a、b、c、d}と4’b1011を比較、即ち、aと1、bと0、cと1、dと1を比較し、比較が一致すれば‘0’を出力する。セル3dでは入力データ10の先頭から4〜7ビット目の4ビット{e、f、g、h}と4’b0100を比較、即ち、eと0、fと1、gと0、hと0を比較する。セル3cとセル3d共に比較が一致すれば次ステートとしてS2を出力する。
The second register from the top, that is, when the current state is S1, data in which eight flags are connected as input data in order of {a, b, c, d, e, f, g, h} from the upper bits Is entered as Here, assuming that the maximum number of bits that can be compared in one cell is 4 bits, the 8-bit comparison is executed using two cells. Here, the upper 4 bits are compared in the even-numbered cells from the left (0th:
In the
図4では、図を簡略化するためにセルを4つのみ示しているが、そのほか条件式が成立する比較対象値のパタン分、同様の比較を行うセルが必要であり、具体的には、以下の9つのパタン分の比較を行うセルが必要になる。
・a=1、b=1、c=1、d=1、e=1、f=1、g=0、h=0
・a=1、b=1、c=1、d=1、e=0、f=1、g=0、h=0
・a=1、b=1、c=1、d=0、e=1、f=1、g=0、h=0
・a=1、b=0、c=1、d=1、e=1、f=1、g=0、h=0
・a=1、b=0、c=1、d=1、e=0、f=1、g=0、h=0
・a=1、b=0、c=1、d=0、e=1、f=1、g=0、h=0
・a=0、b=1、c=1、d=1、e=1、f=1、g=0、h=0
・a=0、b=1、c=1、d=1、e=0、f=1、g=0、h=0
・a=0、b=1、c=1、d=0、e=1、f=1、g=0、h=0
上記9つのパタンを比較するいずれのセルも比較が一致しなかった場合は、次ステートとしてS1を出力する。
In FIG. 4, only four cells are shown to simplify the drawing, but in addition to this, a cell that performs the same comparison is required for the pattern of the comparison target value that satisfies the conditional expression. Specifically, A cell for comparing the following nine patterns is required.
A = 1, b = 1, c = 1, d = 1, e = 1, f = 1, g = 0, h = 0
A = 1, b = 1, c = 1, d = 1, e = 0, f = 1, g = 0, h = 0
A = 1, b = 1, c = 1, d = 0, e = 1, f = 1, g = 0, h = 0
A = 1, b = 0, c = 1, d = 1, e = 1, f = 1, g = 0, h = 0
A = 1, b = 0, c = 1, d = 1, e = 0, f = 1, g = 0, h = 0
A = 1, b = 0, c = 1, d = 0, e = 1, f = 1, g = 0, h = 0
A = 0, b = 1, c = 1, d = 1, e = 1, f = 1, g = 0, h = 0
A = 0, b = 1, c = 1, d = 1, e = 0, f = 1, g = 0, h = 0
A = 0, b = 1, c = 1, d = 0, e = 1, f = 1, g = 0, h = 0
If any cell comparing the nine patterns does not match, S1 is output as the next state.
上から3番目のレジスタ、即ち、現ステートがS2のときには、入力データ10としてzが入力され、セル3aでは入力データ10の先頭から0〜3ビット目の4ビットと4’b1100を比較し、比較が一致すれば次ステートとしてS3を出力する。セル3bでは入力データ10の先頭から0〜3ビット目の4ビットと4’b0100を比較し、比較が一致すれば次ステートとしてS3を出力する。セル3cでは入力データ10の先頭から0〜3ビット目の4ビットと4’b1000を比較し、比較が一致すれば次ステートとしてS3を出力する。セル3dでは比較を行わず、いずれのセルも比較が一致しなかった場合は、次ステートとしてS2を出力する。
The third register from the top, that is, when the current state is S2, z is input as the
上から4番目のレジスタ、即ち、現ステートがS3のときには、入力データ10としてwが入力され、セル3aでは入力データ10の先頭から0〜3ビット目の4ビットと4’b0001を比較し、比較が一致すれば次ステートとしてS0を出力する。セル3bでは入力データ10の先頭から0〜3ビット目の4ビットと4’b0010を比較し、比較が一致すれば次ステートとしてS0を出力する。セル3cでは入力データ10の先頭から0〜3ビット目の4ビットと4’b0011を比較し、比較が一致すれば次ステートとしてS0を出力する。セル3dでは入力データ10の先頭から0〜3ビット目の4ビットと4’b1111を比較し、比較が一致すれば次ステートとしてS0を出力し、いずれのセルも比較が一致しなかった場合は、次ステートとしてS3を出力する。
The fourth register from the top, that is, when the current state is S3, w is input as the
次に、図5を用いて、図4の構成例において現ステートがS0のときの動作を説明する。
現ステートレジスタ2から現ステート9としてS0を示す値が各セルの各レジスタ群22,24,26,27に入力され、各レジスタ群において、S0用の設定が保持されている上から1番目のレジスタが選択される。入力データ10として、x+yの演算結果である4’b1110(=10進数の14)が各セルのビット選択器23に入力される。各ビット選択器23は、ビット選択レジスタ群22のうち、選択された一番上のレジスタの選択値36に従って、比較器25へ供給するデータ37を入力データ10から選択し出力する。現ステート9によって比較対象値レジスタ群24から一番上のレジスタに保持されている比較対象値38が選択出力され、ビット選択器23の出力37と比較器25によって一致比較される。このとき、セル3aの比較器25では、比較対象値38の「4’b1111」とビット選択器出力37の「4’b1110」が比較されるため一致せず、現セル一致信号39は‘0’、セル3bの比較器25では比較対象値38の「4’b1110」とビット選択器出力37の「4’b1110」が比較されるため一致し、現セル一致信号39は‘1’、セル3cの比較器25では比較対象値38の「4’b1101」とビット選択器出力37の「4’b1110」が比較されるため一致せず、現セル一致信号39は‘0’、セル3dの比較器25では比較対象値38の「4’b1100」とビット選択器出力37の「4’b1110」が比較されるため一致せず、現セル一致信号39は‘0’となる。
Next, the operation when the current state is S0 in the configuration example of FIG. 4 will be described with reference to FIG.
A value indicating S0 as the
また、セル3aの一致信号伝達セレクタ28には固定値20と固定値44が入力され、一致信号伝達有無レジスタ群27の一番上のレジスタに保持されている選択値‘0’によって固定値44の‘1’が選択される。セル3bの一致信号伝達セレクタ28には隣セルの一致信号11aと固定値44が入力され、一致信号伝達有無レジスタ群27の一番上のレジスタに保持されている選択値‘0’によって固定値44の‘1’が選択される。セル3cの一致信号伝達セレクタ28には隣セルの一致信号11bと固定値44が入力され、一致信号伝達有無レジスタ群27の一番上のレジスタに保持されている選択値‘0’によって固定値44の‘1’が選択される。セル3dの一致信号伝達セレクタ28には隣セルの一致信号11cと固定値44が入力され、一致信号伝達有無レジスタ群27の一番上のレジスタに保持されている選択値‘0’によって固定値44の‘1’が選択される。
Further, the fixed
続いてセル3aの論理積ゲート29には一致信号伝達セレクタ28の出力43の‘1’と比較器25の出力‘0’が入力されて出力11aは‘0’になり、セル3bの論理積ゲート29には一致信号伝達セレクタ28の出力43の‘1’と比較器25の出力‘1’が入力されるため出力11bは‘1’になり、セル3cの論理積ゲート29には一致信号伝達セレクタ28の出力43の‘1’と比較器25の出力‘0’が入力されるため出力11cは‘0’になり、セル3dの論理積ゲート29には一致信号伝達セレクタ28の出力43の‘1’と比較器25の出力‘0’が入力されるため出力11dは‘0’になる。
Subsequently, '1' of the
続いて、セル3aの論理積ゲート29の出力11aはセル出力選択手段30に入力され、次ステートレジスタ群26の一番上のレジスタに保持されている次ステート‘S0’と固定値45‘0’のうち固定値45を選択し次ステート12aとして‘0’を出力する。セル3bの論理積ゲート29の出力11bはセル出力選択手段30に入力され、次ステートレジスタ群26の一番上のレジスタに保持されている次ステート‘S1’と固定値45‘0’のうち次ステートを選択し次ステート12aとして‘S1’を出力する。セル3cの論理積ゲート29の出力11cはセル出力選択手段30に入力され、次ステートレジスタ群26の一番上のレジスタに保持されている次ステート‘S2’と固定値45‘0’のうち固定値45を選択し次ステート12cとして‘0’を出力する。セル3dの論理積ゲート29の出力11dはセル出力選択手段30に入力され、次ステートレジスタ群26の一番上のレジスタに保持されている次ステート‘S3’と固定値45‘0’のうち固定値45を選択し次ステート12dとして‘0’を出力する。
Subsequently, the
各セルから出力された一致信号11a〜11dと次ステート12a〜12dは、それぞれ、一致信号用論理和回路4とステート用論理和回路5に入力され、一致信号用論理和回路4の出力13は‘1’、ステート用論理和回路5の出力14は‘S1’となる。ステート用論理和回路5の出力14の‘S1’と、不一致用次ステートレジスタ群6のうち選択された一番上のレジスタに保持されている次ステート15の“EXIT”が次ステート出力用セレクタ8に入力され、一致信号用論理和回路4の出力13‘1’によってステート用論理和回路5の出力14が選択され、最終的なステート出力(次ステート)21として‘S1’が出力される。次ステート21は、次の演算用の現ステートとして現ステートレジスタ2に格納される。
The match signals 11a to 11d and the
次に、図6を用いて、図4の構成例において現ステートがS1のときの動作を説明する。尚、図3の説明において記載したように、現ステートがS1のときの条件式が成立する比較対象値のパタンは9通りあり、1つのセルで比較できる最大ビット数を4ビットとすると全部で18個のセルが必要である。従って、図6においてセル3a〜3dの4個のみ示しているが、実際にはセル3a〜3rまでの18個が存在しているものとして説明する。
Next, the operation when the current state is S1 in the configuration example of FIG. 4 will be described with reference to FIG. As described in the description of FIG. 3, there are nine patterns of comparison target values that satisfy the conditional expression when the current state is S1, and if the maximum number of bits that can be compared in one cell is 4 bits, Eighteen cells are required. Accordingly, although only four
現ステートレジスタ2から現ステート9としてS1を示す値が各セルの各レジスタ群22,24,26,27に入力され、各レジスタ群においてS1用の設定が保持されている上から2番目のレジスタが選択される。入力データ10として、1ビットのフラグa〜hを連結した8ビットのデータである8’b10110100(a=1、b=0、c=1、d=1、e=0、f=1、g=0、h=0)が各セルのビット選択器23に入力される。
A value indicating S1 as the
ここで、1つのセルで比較できる最大ビット数を4ビットとすると、8ビットの比較は2つのセルを用いて実行することになる。ここでは、左から偶数番目のセル(0番目:セル3a、2番目:セル3c、4番目:セル3e、6番目:セル3g、8番目:セルi、10番目:セル3k、12番目:セル3m、14番目:セル3o、16番目:セルq)で上位4ビット(4’b1011)の比較を行い、左から奇数番目のセル(1番目:セル3b、3番目:セル3d、5番目:セル3f、7番目:セル3h、9番目:セル3j、11番目:セル3l、13番目:セル3n、15番目:セル3p、17番目:セル3r)で下位8ビット(4’b0100)の比較を行う。
Here, assuming that the maximum number of bits that can be compared in one cell is 4 bits, the 8-bit comparison is executed using two cells. Here, even-numbered cells from the left (0th:
各ビット選択器23は、ビット選択レジスタ群22のうち選択された上から二番目のレジスタの選択値36に従って、比較器25へ供給するデータ37を入力データ10から選択し出力する。即ち、セル3a、セル3cのビット選択器23は、上位4ビットの4’b1011を選択し、セル3b、セル3dのビット選択器23は、下位4ビットの4’b0100を選択し、ビット選択器出力37として出力する。現ステート9によって比較対象値レジスタ群24から上から二番目のレジスタに保持されている比較対象値38が選択出力され、ビット選択器23の出力37と比較器25によって一致比較される。このとき、セル3aの比較器25では比較対象値38の「4’b0110」とビット選択器出力37の「4’b1011」が比較されるため一致せず現セル一致信号39は‘0’となる。また、セル3bの比較器25では比較対象値38の「4’b1100」とビット選択器出力37の「4’b0100」が比較されるため一致せず現セル一致信号39は‘0’となる。更に、セル3cの比較器25では比較対象値38の「4’b1011」とビット選択器出力37の「4’b1011」が比較されるため一致し現セル一致信号39は‘1’となる。また、セル3dの比較器25では比較対象値38の「4’b0100」とビット選択器出力37の「4’b0100」が比較されるため一致し現セル一致信号39は‘1’となる。
Each
また、セル3aの一致信号伝達セレクタ28には固定値20と固定値44が入力され、一致信号伝達有無レジスタ群27の上から二番目のレジスタに保持されている選択値‘0’によって固定値44の‘1’が選択され、論理積ゲート29によって一致信号伝達セレクタ28の出力43‘1’と比較器25の出力39‘0’の論理積が演算され現セル一致信号11aとして‘0’が出力される。続いてセル3bの一致信号伝達セレクタ28には隣セルの一致信号11aと固定値44が入力され、一致信号伝達有無レジスタ群27の上から二番目のレジスタに保持されている選択値‘1’によって隣セルの一致信号11aの‘0’が選択され、論理積ゲート29によって一致信号伝達セレクタ28の出力43‘0’と比較器25の出力39‘0’の論理積が演算され現セル一致信号11bとして‘0’が出力される。同様に、セル3cの一致信号伝達セレクタ28には隣セルの一致信号11bと固定値44が入力され、一致信号伝達有無レジスタ群27の上から二番目のレジスタに保持されている選択値‘0’によって固定値44の‘1’が選択され、論理積ゲート29によって一致信号伝達セレクタ28の出力43‘1’と比較器25の出力39‘1’の論理積が演算され現セル一致信号11cとして‘1’が出力される。続いてセル3dの一致信号伝達セレクタ28には隣セルの一致信号11cと固定値44が入力され、一致信号伝達有無レジスタ群27の上から二番目のレジスタに保持されている選択値‘1’によって隣セルの一致信号11cの‘1’が選択され、論理積ゲート29によって一致信号伝達セレクタ28の出力43‘1’と比較器25の出力39‘1’の論理積が演算され現セル一致信号11dとして‘1’が出力される。
Further, the fixed
続いて、セル3aの論理積ゲート29の出力11aはセル出力選択手段30に入力され、次ステートレジスタ群26の上から二番目のレジスタに保持されている次ステート‘0’と固定値45‘0’のうち固定値45を選択し次ステート12aとして‘0’を出力する。セル3bの論理積ゲート29の出力11bはセル出力選択手段30に入力され、次ステートレジスタ群26の上から二番目のレジスタに保持されている次ステート‘S2’と固定値45‘0’のうち固定値45を選択し次ステート12aとして‘0’を出力する。セル3cの論理積ゲート29の出力11cはセル出力選択手段30に入力され、次ステートレジスタ群26の上から二番目のレジスタに保持されている次ステート‘0’と固定値45‘0’のうち次ステート‘0’を選択し次ステート12cとして‘0’を出力する。セル3dの論理積ゲート29の出力11dはセル出力選択手段30に入力され、次ステートレジスタ群26の上から二番目のレジスタに保持されている次ステート‘S2’と固定値45‘0’のうち次ステート‘S2’を選択し次ステート12dとして‘S2’を出力する。
Subsequently, the
各セルから出力された一致信号11a〜11dと次ステート12a〜12dは、それぞれ、一致信号用論理和回路4とステート用論理和回路5に入力され、一致信号用論理和回路4の出力13は‘1’、ステート用論理和回路5の出力14は‘S2’となる。ステート用論理和回路5の出力14‘S2’と、不一致用次ステートレジスタ群6のうち選択された上から二番目のレジスタに保持されている次ステート15“S1”が次ステート出力用セレクタ8に入力され、一致信号用論理和回路4の出力13‘1’によってステート用論理和回路5の出力14が選択され、最終的な次ステート21として‘S2’が出力される。次ステート21は、次の演算用の現ステートとして現ステートレジスタ2に格納される。
The match signals 11a to 11d and the
このように、この発明のシーケンス制御回路1は、遷移先が多岐にわたる状態遷移や、遷移条件が多ビットにわたる状態遷移等の複雑な状態遷移であっても、同一回路上でプログラマブルに実現可能である。また、各ステートでの条件比較を複数のセル3で並列に実行可能であるため、1クロックで高速に次ステートを決定することが可能である。
As described above, the
尚、上記例では現ステートがS1の場合にセルを18個並列に用いて比較を行う場合について説明したが、18個より少ないセル数で実現することも可能である。以下に、その方法について説明する。
図7は、図3に示したステートマシンを変形し、4個のセルで実現できるようにしたステートマシンの例である。図3においてステートS1からの遷移条件が8ビット分のフラグであったところを4ビットずつに分解し、ステートS1−1とS1−2の二段階で条件比較を行う。ステートS1−1では、{(a=1)|(b=1)}&(c=1)&(f=1)が成立する比較対象パタンとして以下の3通りの比較を行えばよく、4ビットの比較を3つのセルを用いて行うことができる。
・a=1、b=1、c=1、f=1
・a=1、b=0、c=1、f=1
・a=0、b=1、c=1、f=1
In the above example, a case has been described in which the comparison is performed using 18 cells in parallel when the current state is S1, but it is also possible to realize the comparison with fewer than 18 cells. The method will be described below.
FIG. 7 shows an example of a state machine in which the state machine shown in FIG. 3 is modified to be realized with four cells. In FIG. 3, where the transition condition from the state S1 is a flag of 8 bits, it is decomposed into 4 bits, and the conditions are compared in two stages of the states S1-1 and S1-2. In the state S1-1, the following three types of comparisons may be performed as comparison target patterns in which {(a = 1) | (b = 1)} & (c = 1) & (f = 1) holds. Bit comparison can be performed using three cells.
A = 1, b = 1, c = 1, f = 1
A = 1, b = 0, c = 1, f = 1
A = 0, b = 1, c = 1, f = 1
また、ステートS1−2では、{(d=1)|(e=1)}&(g=0)&(h=0)が成立する比較対象パタンとして以下の3通りの比較を行えばよく、4ビットの比較を3つのセルを用いて行うことができる。
・d=1、e=1、g=0、h=0
・d=1、e=0、g=0、h=0
・d=0、e=1、g=0、h=0
このとき、各レジスタ群には、それぞれステートの個数分、即ち、S0、S1−1、S1−2、S2、S3用の5個のレジスタが必要となるが、4個のセルで実現可能となる。
In the state S1-2, the following three types of comparisons may be performed as comparison target patterns in which {(d = 1) | (e = 1)} & (g = 0) & (h = 0) is established. A 4-bit comparison can be performed using three cells.
D = 1, e = 1, g = 0, h = 0
D = 1, e = 0, g = 0, h = 0
D = 0, e = 1, g = 0, h = 0
At this time, each register group requires five registers for the number of states, that is, S0, S1-1, S1-2, S2, and S3, but this can be realized with four cells. Become.
以上のように、実施の形態1のシーケンス制御回路1によれば、現ステートを保持する現ステートレジスタ2と、入力データ10と保持する比較対象値とを比較することにより、比較が一致したことを通知するための一致信号11a〜11dと次ステート12a〜12dとを得る複数のセル3a〜3dと、複数のセル3a〜3dの出力である一致信号11a〜11dの論理和を得る一致信号用論理和回路4と、複数のセル3a〜3dの出力である次ステート12a〜12dの論理和を得るステート用論理和回路5と、複数のセル3a〜3dで比較が一致しなかった場合に出力する次ステートを保持する複数のレジスタを持つ不一致用次ステートレジスタ群6と、不一致用次ステートレジスタ群6からレジスタを選択する不一致用次ステートセレクタ7と、一致信号用論理和回路4の出力によりステート用論理和回路5の出力と不一致用次ステートセレクタ7の出力を選択する次ステート出力用セレクタ8とを備え、各セル3a〜3dは、任意のビット位置とビット数の選択値を保持する複数のレジスタを持つビット選択レジスタ群22と、ビット選択レジスタ群22の選択されたレジスタのビット位置とビット数の選択値に従って入力データ10から対応するビット位置とビット数の比較データを選択するビット選択器23と、比較対象値を保持する複数のレジスタを持つ比較対象レジスタ群24と、ビット選択器23で選択された比較データと比較対象レジスタ群24の選択されたレジスタの比較対象値とを比較し、両者が一致した際に現セル一致信号を出力する比較器25と、比較対象レジスタ群24で保持する比較対象値に対応する次ステートを保持する複数のレジスタを持つ次ステートレジスタ群26と、複数のセル3a〜3dにおける隣セルの一致信号を取り込むかどうかの選択値を保持する複数のレジスタを持つ一致信号伝達有無レジスタ群27と、一致信号伝達有無レジスタ群27の選択されたレジスタの値に基づいて隣セルの一致信号かまたは固定値‘1’を選択する一致信号伝達セレクタ28と、比較器25から出力される現セル一致信号と一致信号伝達セレクタ28の出力に基づいて一致信号を生成する論理積ゲート29と、生成された一致信号に基づいて次ステートレジスタ群26の選択されたレジスタの次ステートか、または固定値‘0’を自セルの次ステートとするセル出力選択手段30と、現ステートレジスタ2の値に基づいて各レジスタ群のそれぞれのレジスタを選択し、その保持するデータを出力するそれぞれのレジスタ選択手段31,32,33,34とを有し、セル出力選択手段30によって選択された次ステートを、次の現ステートとして現ステートレジスタ2にフィードバックするようにしたので、様々なデータパス回路の制御に対応可能なシーケンス制御回路を得ることができる。また、複数のデータパス回路を備えた装置において、実施の形態1のシーケンス制御回路を用いることにより、シーケンス制御回路の共有化を行うことができるため、小型化、かつ低消費電力化を可能にする効果がある。
As described above, according to the
また、実施の形態1のシーケンス制御回路1によれば、不一致用次ステートレジスタ群6と、各セル3a〜3d内のビット選択レジスタ群22と、比較対象レジスタ群24と、次ステートレジスタ群26と、一致信号伝達有無レジスタ群27は、それぞれが備える複数のレジスタに対し、外部より入力されるコンフィグレーションデータ17を書き込むことが可能であり、かつ、コンフィグレーションデータ17と同時に入力されるレジスタ指定アドレス信号18に基づいて不一致用次ステートレジスタ群6か各セル3a〜3dのレジスタかを指定するアドレスを示すセル内レジスタ指定アドレス信号19を生成する共通アドレスデコーダ16と、セル内レジスタ指定アドレス信号19に基づいて各セル3a〜3d内のそれぞれのレジスタを指定するアドレスを生成するセル内アドレスデコーダ35とを備えたので、制御するデータパス回路が変更されてもコンフィグレーションデータの入れ替えによりシーケンス制御を変更可能であり、様々なデータパス回路の制御に対応可能となる効果がある。
Further, according to the
実施の形態2.
図8はこの発明のシーケンス制御回路を用いた制御回路の構成を示すブロック図である。
制御回路46は、シーケンス制御回路1と、データパス回路48への制御信号を生成する制御信号生成部47から構成される。
先ず、シーケンス制御回路1は、制御動作を開始する前に外部よりコンフィグレーションデータ17とレジスタ指定アドレス信号18が入力され、データパス回路48のシーケンス制御用の回路として構成される。制御動作開始後は、シーケンス制御回路1は入力データ10によってステート出力21を決定し、制御信号生成部47に出力する。制御信号生成部47は、ステート出力21に従って制御信号49を生成し、データパス回路48を制御する。
シーケンス制御回路1は、コンフィグレーションデータ17を書きかえることによって様々なシーケンス制御を実現可能であり、制御信号生成部47とデータパス回路48の変更にも対応可能である。また、データパス回路48が動的再構成可能な回路である場合、制御信号生成部47も動的再構成可能な回路により実装することで、動的再構成可能な制御回路として構成することが可能である。
FIG. 8 is a block diagram showing a configuration of a control circuit using the sequence control circuit of the present invention.
The
First, the
The
以上のように、実施の形態2の制御回路46によれば、実施の形態1のシーケンス制御回路1と、シーケンス制御回路1によって決定されたステートに従って制御信号を生成する制御信号生成部47を備えたので、様々なデータパス回路48の制御に対応可能な制御回路を実現することができる。
As described above, the
また、実施の形態2の制御回路46によれば、制御信号生成部47を動的再構成可能な回路により構成したので、動的再構成可能な制御回路を実現することができる。
Further, according to the
実施の形態3.
図9はこの発明のシーケンス制御回路を用いた制御回路の構成を示すブロック図である。
制御回路46は、シーケンス制御回路1と、複数のデータパス回路48a〜48zへの制御信号をそれぞれ生成する複数の制御信号生成部47a〜47zと、シーケンス制御回路1の出力であるステート出力21の接続先を選択するスイッチ50から構成される。尚、複数の制御信号生成部47a〜47z及びデータパス回路48a〜48zの設置数は任意の数である。
FIG. 9 is a block diagram showing a configuration of a control circuit using the sequence control circuit of the present invention.
The
先ず、シーケンス制御回路1は、制御動作を開始する前に外部よりコンフィグレーションデータ17とレジスタ指定アドレス信号18が入力され、データパス回路48a〜48zのシーケンス制御用の回路として構成される。制御動作開始後、シーケンス制御回路1は入力データ10によってステート出力21を決定しスイッチ50に出力する。制御するデータパス回路48a〜48zに対応した制御信号生成部47a〜47zへステート出力21が入力されるように、制御先選択信号52をスイッチ50に入力する。即ち、データパス回路48a用の制御回路を構成する場合はステート出力21の接続先が信号線51aとなるような制御先選択信号52をスイッチ50へ入力し、データパス48b用の制御回路を構成する場合はステート出力21の接続先が信号線51bとなるような制御先選択信号52をスイッチ50へ入力し、以下同様に、データパス48z用の制御回路を構成する場合はステート出力21の接続先が信号線51zとなるような制御先選択信号52をスイッチ50へ入力する。
First, the
スイッチ50によりステート出力21が接続された制御信号生成部47a〜47zは、ステート出力21に従って制御信号49a〜49zを生成し、データパス回路48a〜48zを制御する。予め、シーケンス制御回路1に複数のデータパス回路用のコンフィグレーションデータ17を入力すれば、制御先選択信号52を動的に切り替えることで、複数のデータパス回路間で制御回路をタイムシェアリングすることが可能となる。
The
以上のように、実施の形態3の制御回路によれば、実施の形態1のシーケンス制御回路1と、シーケンス制御回路1によって決定されたステートに従って制御信号を生成する複数の制御信号生成部47a〜47zと、これら複数の制御信号生成部47a〜47zのうち、ステートを入力する制御信号生成部47a〜47zを選択するスイッチ50とを備えたので、スイッチ50によりシーケンス制御回路1のステートを入力する制御信号生成部47a〜47zを動的に切り替えることにより、複数のデータバス回路48a〜48z間で制御回路をタイムシェアリングすることができる。
As described above, according to the control circuit of the third embodiment, the
1 シーケンス制御回路、2 現ステートレジスタ、3a〜3d セル、4 一致信号用論理和回路、5 ステート用論理和回路、6 不一致用次ステートレジスタ群、7 不一致用次ステートセレクタ(MUX)、8 次ステート出力用セレクタ(MUX)、9 現ステート、10 入力データ、11a〜11d 一致信号、12a〜12d 次ステート、13,14,15,43 出力、16 共通アドレスデコーダ、17 コンフィグレーションデータ、18 レジスタ指定アドレス信号、19 セル内レジスタ指定アドレス信号、20,44,45 固定値、21 ステート出力、22 ビット選択レジスタ群、23 ビット選択器、24 比較対象レジスタ群、25 比較器、26 次ステートレジスタ群、27 一致信号伝達有無レジスタ群、28 一致信号伝達セレクタ(MUX)、29 論理積ゲート、30 セル出力選択手段(MUX)、31,32,33,34 レジスタ選択手段(MUX)、35 セル内アドレスデコーダ、36 選択値、37 比較データ、38 比較対象値、39 現セル一致信号、40 選択値、41 選択されたレジスタの次ステート、42 セル内のアドレス信号、46 制御回路、47,47a〜47z 制御信号生成部、48,48a〜48z データパス回路、49,49a〜49z 制御信号、50 スイッチ、51a〜51z 信号線、52 制御先選択信号。 DESCRIPTION OF SYMBOLS 1 Sequence control circuit, 2 Current state register, 3a-3d cell, 4 Matching signal OR circuit, 5 State OR circuit, 6 Mismatch next state register group, 7 Mismatch next state selector (MUX), 8th order State output selector (MUX), 9 Current state, 10 input data, 11a to 11d match signal, 12a to 12d Next state, 13, 14, 15, 43 outputs, 16 Common address decoder, 17 Configuration data, 18 Register designation Address signal, 19-cell register designation address signal, 20, 44, 45 fixed value, 21-state output, 22-bit selection register group, 23-bit selector, 24 comparison target register group, 25 comparator, 26th-order state register group, 27 Match signal transmission presence / absence register group, 2 Match signal transmission selector (MUX), 29 AND gate, 30 Cell output selection means (MUX), 31, 32, 33, 34 Register selection means (MUX), 35 In-cell address decoder, 36 Selection value, 37 Comparison data, 38 Comparison target value, 39 Current cell match signal, 40 Selected value, 41 Next state of selected register, 42 Address signal in cell, 46 Control circuit, 47, 47a to 47z Control signal generator, 48, 48a to 48z Data path circuit, 49, 49a to 49z control signal, 50 switch, 51a to 51z signal line, 52 control destination selection signal.
Claims (5)
入力データと保持する比較対象値とを比較することにより、比較が一致したことを通知するための一致信号と次ステートとを得る複数のセルと、
前記複数のセルの出力である一致信号の論理和を得る一致信号用論理和回路と、
前記複数のセルの出力である次ステートの論理和を得るステート用論理和回路と、
前記複数のセルで比較が一致しなかった場合に出力する次ステートを保持する複数のレジスタを持つ不一致用次ステートレジスタ群と、
前記不一致用次ステートレジスタ群からレジスタを選択する不一致用次ステートセレクタと、
前記一致信号用論理和回路の出力により前記ステート用論理和回路の出力と前記不一致用次ステートセレクタの出力を選択する次ステート出力用セレクタとを備え、
各セルは、
任意のビット位置とビット数の選択値を保持する複数のレジスタを持つビット選択レジスタ群と、
前記ビット選択レジスタ群の選択されたレジスタのビット位置とビット数の選択値に従って前記入力データから対応するビット位置とビット数の比較データを選択するビット選択器と、
比較対象値を保持する複数のレジスタを持つ比較対象レジスタ群と、
前記ビット選択器で選択された比較データと前記比較対象レジスタ群の選択されたレジスタの比較対象値とを比較し、両者が一致した際に現セル一致信号を出力する比較器と、
前記比較対象レジスタ群で保持する比較対象値に対応する次ステートを保持する複数のレジスタを持つ次ステートレジスタ群と、
前記複数のセルにおける隣セルの一致信号を取り込むかどうかの選択値を保持する複数のレジスタを持つ一致信号伝達有無レジスタ群と、
前記一致信号伝達有無レジスタ群の選択されたレジスタの値に基づいて前記隣セルの一致信号かまたは固定値‘1’を選択する一致信号伝達セレクタと、
前記比較器から出力される現セル一致信号と前記一致信号伝達セレクタの出力に基づいて一致信号を生成する論理積ゲートと、
前記生成された一致信号に基づいて前記次ステートレジスタ群の選択されたレジスタの次ステートか、または固定値‘0’を自セルの次ステートとするセル出力選択手段と、
前記現ステートレジスタの値に基づいて前記各レジスタ群のそれぞれのレジスタを選択し、その保持するデータを出力するそれぞれのレジスタ選択手段とを有し、
前記セル出力選択手段によって選択された次ステートを、次の現ステートとして現ステートレジスタにフィードバックすることを特徴とするシーケンス制御回路。 A current state register holding the current state; and
A plurality of cells for obtaining a match signal and a next state for notifying that the comparison is matched by comparing the input data and the comparison target value to be held,
A logical OR circuit for a coincidence signal for obtaining a logical sum of coincidence signals that are outputs of the plurality of cells;
A state OR circuit for obtaining a logical OR of the next states that are outputs of the plurality of cells;
A next state register group for mismatching having a plurality of registers for holding a next state to be output when the comparison does not match in the plurality of cells;
A mismatching next state selector for selecting a register from the mismatching next state register group;
A next state output selector that selects an output of the state OR circuit and an output of the mismatch next state selector by an output of the match signal OR circuit;
Each cell
A bit selection register group having a plurality of registers holding arbitrary bit positions and selection values of the number of bits;
A bit selector that selects the corresponding bit position and bit number comparison data from the input data according to the bit position and bit number selection value of the selected register of the bit selection register group;
A comparison target register group having a plurality of registers for holding a comparison target value;
A comparator that compares the comparison data selected by the bit selector with the comparison target value of the selected register of the comparison target register group, and outputs a current cell match signal when they match,
A next state register group having a plurality of registers for holding a next state corresponding to a comparison target value held in the comparison target register group;
A match signal transmission presence / absence register group having a plurality of registers for holding a selection value as to whether or not to take in a match signal of an adjacent cell in the plurality of cells;
A coincidence signal transmission selector that selects a coincidence signal of the adjacent cell or a fixed value '1' based on a value of a selected register of the coincidence signal transmission presence / absence register group;
An AND gate for generating a match signal based on the current cell match signal output from the comparator and the output of the match signal transmission selector;
Cell output selection means for setting a next state of the selected register of the next state register group based on the generated match signal or a fixed value '0' as a next state of the own cell;
Each register selecting means for selecting each register of each register group based on the value of the current state register and outputting the data held therein,
A sequence control circuit for feeding back a next state selected by the cell output selection means to a current state register as a next current state.
かつ、
前記コンフィグレーションデータと同時に入力されるレジスタ指定アドレス信号に基づいて前記不一致用次ステートレジスタ群か各セルのレジスタかを指定するアドレスを示すセル内レジスタ指定アドレス信号を生成する共通アドレスデコーダと、
前記セル内レジスタ指定アドレス信号に基づいて各セル内のそれぞれのレジスタを指定するアドレスを生成するセル内アドレスデコーダとを備えたことを特徴とする請求項1記載のシーケンス制御回路。 The next state register group for mismatch, the bit selection register group in each cell, the comparison target register group, the next state register group, and the match signal transmission presence / absence register group are externally input to a plurality of registers. Configuration data can be written,
And,
A common address decoder for generating an in-cell register designation address signal indicating an address for designating whether the next state register group for mismatching or a register of each cell based on a register designation address signal input simultaneously with the configuration data;
2. The sequence control circuit according to claim 1, further comprising an in-cell address decoder for generating an address for designating each register in each cell based on the in-cell register designation address signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009222300A JP5208080B2 (en) | 2009-09-28 | 2009-09-28 | Sequence control circuit and control circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009222300A JP5208080B2 (en) | 2009-09-28 | 2009-09-28 | Sequence control circuit and control circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2011070502A true JP2011070502A (en) | 2011-04-07 |
JP5208080B2 JP5208080B2 (en) | 2013-06-12 |
Family
ID=44015715
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009222300A Expired - Fee Related JP5208080B2 (en) | 2009-09-28 | 2009-09-28 | Sequence control circuit and control circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5208080B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5375432B2 (en) | 2009-08-21 | 2013-12-25 | トヨタ紡織株式会社 | Vehicle seat cover structure |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001500324A (en) * | 1996-03-25 | 2001-01-09 | アイ―キューブ インコーポレイテッド | Network switch with arbitration system |
WO2007129577A1 (en) * | 2006-05-08 | 2007-11-15 | The University Of Electro-Communications | Text processing module |
WO2009116646A1 (en) * | 2008-03-19 | 2009-09-24 | 日本電気株式会社 | Finite automaton generating system for checking character string for multibyte processing |
-
2009
- 2009-09-28 JP JP2009222300A patent/JP5208080B2/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001500324A (en) * | 1996-03-25 | 2001-01-09 | アイ―キューブ インコーポレイテッド | Network switch with arbitration system |
WO2007129577A1 (en) * | 2006-05-08 | 2007-11-15 | The University Of Electro-Communications | Text processing module |
WO2009116646A1 (en) * | 2008-03-19 | 2009-09-24 | 日本電気株式会社 | Finite automaton generating system for checking character string for multibyte processing |
Also Published As
Publication number | Publication date |
---|---|
JP5208080B2 (en) | 2013-06-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4472788A (en) | Shift circuit having a plurality of cascade-connected data selectors | |
CN104765650A (en) | Data processing apparatus | |
JPS6242297B2 (en) | ||
JPS60163128A (en) | Multiplier circuit | |
US20050289327A1 (en) | Reconfigurable processor and semiconductor device | |
JP2006018453A (en) | Semiconductor device | |
JP2002215385A (en) | Calculation device, calculation method, and program utilizing residue number system expression | |
JP2001005675A (en) | Program converter and processor | |
JP5208080B2 (en) | Sequence control circuit and control circuit | |
JP5590148B2 (en) | Division circuit | |
US7509479B2 (en) | Reconfigurable global cellular automaton with RAM blocks coupled to input and output feedback crossbar switches receiving clock counter value from sequence control unit | |
KR20060110362A (en) | Programmable logic circuit | |
US7386650B2 (en) | Memory test circuit with data expander | |
US5192882A (en) | Synchronization circuit for parallel processing | |
JP3804778B2 (en) | Processor and instruction execution method | |
JP5253406B2 (en) | Digital electronic binary rotator and inverter | |
JP2005025752A (en) | Device and method for processing digital image data | |
JPH0661871A (en) | Parallel serial data conversion circuit | |
US20030056080A1 (en) | Register read circuit using the remainders of modulo of a register number by the number of register sub-banks | |
JP5447511B2 (en) | Communication circuit and communication method | |
JP5133169B2 (en) | State transition management device and state transition management method thereof | |
JP2005142820A (en) | Interleaving device | |
JPS62237523A (en) | Sorting circuit | |
JP2005073146A (en) | Crc check circuit | |
JP2002207707A (en) | Simd type micro-processor having function for selecting constant |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20120131 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20130122 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130219 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20160301 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5208080 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |