JP5322977B2 - Power consumption confusion type logic circuit and information storage medium - Google Patents

Power consumption confusion type logic circuit and information storage medium Download PDF

Info

Publication number
JP5322977B2
JP5322977B2 JP2010047810A JP2010047810A JP5322977B2 JP 5322977 B2 JP5322977 B2 JP 5322977B2 JP 2010047810 A JP2010047810 A JP 2010047810A JP 2010047810 A JP2010047810 A JP 2010047810A JP 5322977 B2 JP5322977 B2 JP 5322977B2
Authority
JP
Japan
Prior art keywords
output
state
logic
circuit
random number
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
Application number
JP2010047810A
Other languages
Japanese (ja)
Other versions
JP2011188009A (en
Inventor
芳夫 高橋
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.)
NTT Data Corp
Original Assignee
NTT Data 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 NTT Data Corp filed Critical NTT Data Corp
Priority to JP2010047810A priority Critical patent/JP5322977B2/en
Publication of JP2011188009A publication Critical patent/JP2011188009A/en
Application granted granted Critical
Publication of JP5322977B2 publication Critical patent/JP5322977B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Logic Circuits (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To reduce change of power consumption waveform to be generated, since the average number of charging path is different due to the combination of input signals and operation timing of gates of rear stages being different. <P>SOLUTION: The logic circuit 1 includes a logic operation circuit 10 which outputs an output logic state to be generated based on the input signals X, Y and a random number signal r to an output line Z1; an output control part 20, which controls an output state of the output line Z1 according to a control signal en1, and in the case of an output invalid state for invalidating the output logic state of the logic operation circuit 10, intercepts a path which leads from the output line Z1 to a power supply line VDD, and charges the output line Z1 by a potential of the power supply line VDD; and an output stage circuit 30, which switches the state to a masked state for invalidating a state for outputting based on the output state of the output line Z1 according to a control signal en2. <P>COPYRIGHT: (C)2011,JPO&amp;INPIT

Description

本発明は、暗号/復号処理の際に電力消費を解析して、秘密鍵を解明する電力解析攻撃を防ぐ消費電力錯乱型論理回路及び情報記憶媒体に関する。   The present invention relates to a power consumption confusion type logic circuit and an information storage medium that prevent power analysis attacks by analyzing power consumption during encryption / decryption processing and elucidating a secret key.

ICカードなどの暗号処理を行う情報記憶媒体の電力消費を解析処理することにより、暗号処理に使用する秘密鍵を解明する電力解析攻撃がある。この攻撃に対して論理回路レベルの対策回路が、開示されている。非特許文献1では、乱数を用いて入力信号及び論理演算の正論理/負論理をランダムに切り替えるRSL(Random Switching Logic)回路を開示している。CMOS(Complementary Metal Oxide Semiconductor:相補型金属酸化膜半導体)集積回路が動作する場合の電力消費は、論理ゲートの出力負荷容量を充放電させる電流による電力が支配的である。そのため、RSL回路は、論理ゲートの出力を乱数によりランダムに遷移させることにより、電力消費の統計値と秘密鍵の相関を無くすことを意図した回路である。   There is a power analysis attack that elucidates a secret key used for encryption processing by analyzing power consumption of an information storage medium such as an IC card that performs encryption processing. A countermeasure circuit at the logic circuit level against this attack is disclosed. Non-Patent Document 1 discloses an RSL (Random Switching Logic) circuit that randomly switches between an input signal and positive / negative logic of a logical operation using a random number. When a CMOS (Complementary Metal Oxide Semiconductor) integrated circuit operates, power consumption by the current that charges and discharges the output load capacitance of the logic gate is dominant. Therefore, the RSL circuit is a circuit intended to eliminate the correlation between the statistical value of the power consumption and the secret key by randomly changing the output of the logic gate with a random number.

図12の(a)は、非特許文献1が開示するRSLによるNAND(否定論理積)ゲート(以下、RSL−NANDという。)を示す。元のNANDゲートの入力信号をa、bとし、出力をc(=a NAND b)とする。RSL−NANDの入力信号X、Yは、乱数rと入力信号a、bとをそれぞれXOR(排他的論理和)演算された値である(X=a XOR r、Y=b XOR r)。また、RSL−NANDの出力Zは、同じく乱数信号rと出力cをXOR演算した値である(Z=c XOR r)。入力信号a、bをXOR演算する乱数と出力cをXOR演算する乱数は同じ値であり、ゲート動作ごとに毎回異なる値にする。
また、RSL−NANDは、制御信号enを備える。制御信号enは、“1”の場合にRSL−NANDの出力を無効状態にし、RSL−NANDの出力を“0”に固定する。また、制御信号enは、“0”の場合にRSL−NANDの出力を有効状態にし、入力信号X、Y、rの値に応じた出力にさせる。入力信号X、Y、rが遷移する期間では、制御信号enは“1”にされ、入力が確定した後に制御信号enは“0”にされ、RSL−NANDの出力を有効にする。これは、入力信号X、Y、rが遷移する際に消費される電力をなくすためである。
FIG. 12A shows a NAND (negative AND) gate (hereinafter referred to as RSL-NAND) based on RSL disclosed in Non-Patent Document 1. The input signals of the original NAND gate are a and b, and the output is c (= a NAND b). The input signals X and Y of the RSL-NAND are values obtained by XOR (exclusive OR) of the random number r and the input signals a and b, respectively (X = a XOR r, Y = b XOR r). The output Z of the RSL-NAND is also a value obtained by XORing the random number signal r and the output c (Z = c XOR r). The random number for performing the XOR operation on the input signals a and b and the random number for performing the XOR operation on the output c have the same value, and are set to different values every time the gate operation is performed.
The RSL-NAND includes a control signal en. When the control signal en is “1”, the output of the RSL-NAND is invalidated and the output of the RSL-NAND is fixed to “0”. Further, when the control signal en is “0”, the output of the RSL-NAND is made valid, and the output is made according to the values of the input signals X, Y, r. During the transition period of the input signals X, Y, r, the control signal en is set to “1”, and after the input is determined, the control signal en is set to “0” to enable the output of the RSL-NAND. This is to eliminate the power consumed when the input signals X, Y, and r transition.

D.Suzuki et al.,“Random Switching Logic: A New Countermeasure against DPA and Second-Order DPA at the Logic Level”IEICE TRANS.FUNDAMENTALS, VOL.E90-A, NO.1, JANUARY 2007.D. Suzuki et al., “Random Switching Logic: A New Countermeasure against DPA and Second-Order DPA at the Logic Level” IEICE TRANS.FUNDAMENTALS, VOL.E90-A, NO.1, JANUARY 2007.

しかしながら、図12の(a)が示すRSL−NANDでは、制御信号enが“1”から”0”に遷移し、無効状態から有効状態に切り替わる際に電力消費が発生する。この電力消費は、入力信号X、Y、rの状態により電力消費波形が異なる。
図12の(b)は、RSL−NANDの論理と“1”を出力する際の充電パスの数を示す論理表である。乱数rが“0”の場合、充電パスは、入力信号a、bの組合せ(1)において3本のパス、組合せ(2)及び(3)において1本のパスとなる。また、乱数信号rが“1”の場合、充電パスは、組合せ(4)において1本のパスとなる。そして、組合せ(1)から(4)の各場合における平均パス数、すなわち、rが“0”である場合のパス数とrが“1”である場合のパス数との平均は、順に3/2、1/2、1/2、1/2となる。充電のパス数が異なると、充電電流と充電速度に差が生じる。これら2つの差は、情報記憶媒体の外部から観測できる電力消費波形の差を生じさせる。この電力消費波形の差により、入力信号a、bの組合せが特定される可能性がある。すなわち、上述のRSL−NANDでは、入力信号a、bの組合せにより充電経路(パス)の平均数が異なることから電力消費波形の変化が生じるという問題がある。
However, in the RSL-NAND shown in FIG. 12A, power consumption occurs when the control signal en transitions from “1” to “0” and switches from the invalid state to the valid state. The power consumption waveform varies depending on the states of the input signals X, Y, and r.
(B) of FIG. 12 is a logic table showing the logic of the RSL-NAND and the number of charging paths when “1” is output. When the random number r is “0”, the charging path is three paths in the combination (1) of the input signals a and b, and one path in the combinations (2) and (3). When the random number signal r is “1”, the charging path becomes one path in the combination (4). The average number of paths in each case of the combinations (1) to (4), that is, the average of the number of paths when r is “0” and the number of paths when r is “1” is 3 in order. / 2, 1/2, 1/2, 1/2. When the number of charging paths is different, there is a difference between the charging current and the charging speed. These two differences cause a difference in power consumption waveform that can be observed from the outside of the information storage medium. The combination of the input signals a and b may be specified by the difference in the power consumption waveform. That is, the above-mentioned RSL-NAND has a problem that the power consumption waveform changes because the average number of charging paths differs depending on the combination of the input signals a and b.

また、充電速度が異なると、RSL−NANDの出力遷移時間の違いとなって、後段のゲートの動作タイミングに影響する。後段のゲートの動作タイミングが異なれば、情報記憶媒体の外部から観測できる電力消費波形の差を生じさせる。すなわち、上述のRSL−NANDでは、後段のゲートの動作タイミングが異なることから電力消費波形に変化が生じるという問題がある。  In addition, if the charging speed is different, the output transition time of the RSL-NAND is different, which affects the operation timing of the subsequent gate. If the operation timing of the subsequent gate is different, a difference in power consumption waveform that can be observed from the outside of the information storage medium is generated. That is, the above-described RSL-NAND has a problem in that the power consumption waveform changes because the operation timing of the subsequent gate is different.

本発明は、上記問題を解決すべくなされたもので、その目的は、入力信号の組合せにより充電経路の平均数が異なるために生じる電力消費波形の変化と、後段のゲートの動作タイミングが異なるために生じる電力消費波形の変化を低減する消費電力錯乱型論理回路、及び情報記憶媒体を提供することにある。   The present invention has been made to solve the above problem, and its purpose is that the change in the power consumption waveform caused by the difference in the average number of charging paths depending on the combination of input signals and the operation timing of the subsequent gate are different. It is an object of the present invention to provide a power consumption confusion type logic circuit and an information storage medium that reduce a change in a power consumption waveform that occurs in the system.

上記問題を解決するために、本発明は、第1の電位が第1の供給線から供給され、該第1の電位より低い第2の電位が第2の供給線から供給され、入力される入力信号と乱数信号とに基づいて生成される出力論理状態を出力線に出力する論理演算回路と、入力される第1の制御信号に応じて前記出力線の出力状態を制御し、前記出力論理状態を無効とする出力無効状態である場合に、前記出力線から前記第2の供給線に通じる第1の経路を遮断し、前記第1の電位により前記出力線を充電する出力制御部と、前記論理演算回路の後段に設けられ、前記出力線の出力状態に基づいて出力する状態を無効とするマスク状態に、入力される第2の制御信号に応じて切り替える出力段回路とを備える消費電力錯乱型論理回路である。   In order to solve the above problem, according to the present invention, a first potential is supplied from a first supply line, and a second potential lower than the first potential is supplied from a second supply line and inputted. A logic operation circuit for outputting an output logic state generated based on the input signal and the random number signal to the output line; and controlling an output state of the output line in accordance with the input first control signal; An output control unit that shuts off a first path from the output line to the second supply line and charges the output line with the first potential when the output is in an invalid output state; Power consumption comprising: an output stage circuit provided in a subsequent stage of the logic operation circuit, wherein the output stage circuit switches to a mask state that invalidates the output state based on the output state of the output line in accordance with the input second control signal It is a confusion-type logic circuit.

また、本発明は上記発明において、前記出力制御部は、前記出力無効状態を解除した場合、前記第1の経路を導通させ、前記生成される論理状態に応じて、前記第2の電位により前記出力線を放電することを特徴とする。   Further, in the present invention according to the above invention, when the output control unit cancels the output invalid state, the output control unit conducts the first path, and according to the generated logic state, the output potential is set by the second potential. The output line is discharged.

また、本発明は上記発明において、前記論理演算回路は、前記入力信号と前記乱数信号とに基づいて前記第1の電位により前記出力線を充電するPネット部と、前記入力信号と前記乱数信号とに基づいて前記第2の電位により前記出力線を放電するNネット部とが相補に動作して前記出力論理状態を生成し、前記第1の経路は、前記出力線から前記Nネット部を介して前記第2の供給線に通じる経路であることを特徴とする。   Further, the present invention is the above invention, wherein the logic operation circuit is configured to charge the output line with the first potential based on the input signal and the random number signal, the input signal and the random number signal. And the N net part discharging the output line with the second potential operates in a complementary manner to generate the output logic state, and the first path passes the N net part from the output line. And a path that leads to the second supply line.

また、本発明は上記発明において、前記消費電力錯乱型論理回路は、前記第1の制御信号又は前記第2の制御信号に応じて、前記第1の供給線から前記Pネット部を介して前記出力線に通じる第2の経路を遮断するPネット遮断部を備えることを特徴とする。   Further, the present invention is the above invention, wherein the power consumption confusion type logic circuit is configured to transmit the power supply from the first supply line through the P-net unit according to the first control signal or the second control signal. A P-net blocking unit that blocks the second path leading to the output line is provided.

また、本発明は上記発明において、前記入力信号及び前記乱数信号は、前記出力制御部が前記出力無効状態にあり、前記出力線が前記第1の電位になった後に、変更され、前記出力制御部は、前記入力信号及び前記乱数信号の変更が確定した後に、前記第1の制御信号に基づいて前記出力無効状態を解除し、前記出力段回路は、前記出力無効状態が解除され、前記出力線の出力状態が確定した後に、前記第2の制御信号に基づいて前記マスク状態を解除することを特徴とする。   Further, the present invention is the above invention, wherein the input signal and the random number signal are changed after the output control unit is in the output invalid state and the output line is at the first potential, and the output control is performed. The unit cancels the output invalid state based on the first control signal after the change of the input signal and the random number signal is confirmed, and the output stage circuit cancels the output invalid state and outputs the output The mask state is canceled based on the second control signal after the output state of the line is determined.

また、本発明は上記発明において、前記入力信号及び前記乱数信号は、前記出力制御部が前記出力無効状態にあり、前記Pネット遮断部が前記第2の経路を遮断した後に変更され、前記出力制御部は、前記入力信号及び前記乱数信号の変更が確定した後に、前記第1の制御信号に基づいて前記出力無効状態を解除し、前記出力段回路は、前記出力無効状態が解除され、前記出力線の出力状態が確定した後に、前記第2の制御信号に基づいて前記マスク状態を解除することを特徴とする。   Further, the present invention is the above invention, wherein the input signal and the random number signal are changed after the output control unit is in the output invalid state and the P-net blocking unit blocks the second path, and the output The control unit releases the output invalid state based on the first control signal after the change of the input signal and the random number signal is confirmed, and the output stage circuit releases the output invalid state, After the output state of the output line is determined, the mask state is canceled based on the second control signal.

また、本発明は上記発明において、前記論理演算回路は、前記入力信号に基づいて予め定められた論理演算処理に応じた論理状態を生成し、前記乱数信号に基づき、前記入力信号を反転させた前記論理演算処理を行うか否か、及び前記出力論理状態を前記論理状態から反転したものにするか否かを切り替えることを特徴とする。   Further, the present invention is the above invention, wherein the logic operation circuit generates a logic state corresponding to a predetermined logic operation process based on the input signal, and inverts the input signal based on the random number signal. Whether to perform the logical operation processing and whether to change the output logical state from the logical state are switched.

また、本発明は、秘密鍵と情報を記憶する記憶部と、前記乱数信号を生成する乱数生成部と、上記発明のいずれかの消費電力錯乱型論理回路を含み、前記秘密鍵に応じて暗号処理を行う暗号処理部とを備える情報記憶媒体である。   The present invention also includes a storage unit that stores a secret key and information, a random number generation unit that generates the random number signal, and a power consumption confusion type logic circuit according to any one of the inventions described above, and is encrypted according to the secret key. An information storage medium including an encryption processing unit that performs processing.

本発明によれば、論理演算回路が、第1の電位が第1の供給線から供給され、第1の電位より低い第2の電位が第2の供給線から供給され、入力される入力信号と乱数信号とに基づいて生成される出力論理状態を出力線に出力する。出力制御部が、第1の制御信号に応じて論理演算回路の出力線の出力状態を制御し、論理演算回路の出力論理状態を無効とする出力無効状態である場合に、論理演算回路の出力線から第2の供給線に通じる第1の経路を遮断し、第1の電位により前記出力線を充電する。これにより、入力信号の組合せによらず、充電経路の数が同じになる。そのため、消費電力錯乱型論理回路は、充電経路の平均数が異なるために生じる電力消費波形の変化を低減できる。また、論理演算回路の後段に設けられた出力段回路が、論理演算回路の出力線の出力状態に基づいて出力する出力状態を無効とするマスク状態に、入力される第2の制御信号に応じて切り替える。これにより、消費電力錯乱型論理回路は、論理演算回路の出力線の動作タイミングの変化をマスクし、消費電力錯乱型論理回路の後段のゲートの動作タイミングの変化を低減できる。そのため、消費電力錯乱型論理回路は、後段のゲートの動作タイミングが異なるために生じる電力消費波形の変化を低減できる。   According to the present invention, the logic operation circuit is supplied with the first potential supplied from the first supply line, the second potential lower than the first potential is supplied from the second supply line, and the input signal inputted. And an output logic state generated based on the random number signal is output to the output line. The output control unit controls the output state of the output line of the logic operation circuit according to the first control signal, and outputs the logic operation circuit when the output control unit is in an output invalid state that invalidates the output logic state of the logic operation circuit. The first path from the line to the second supply line is cut off, and the output line is charged with the first potential. Thereby, the number of charging paths becomes the same regardless of the combination of input signals. Therefore, the power consumption confusion type logic circuit can reduce the change in the power consumption waveform caused by the difference in the average number of charging paths. Further, the output stage circuit provided in the subsequent stage of the logical operation circuit responds to the second control signal input to the mask state that invalidates the output state output based on the output state of the output line of the logical operation circuit. To switch. Thereby, the power consumption confusion type logic circuit masks the change in the operation timing of the output line of the logic operation circuit, and can reduce the change in the operation timing of the gate in the subsequent stage of the power consumption confusion type logic circuit. Therefore, the power consumption confusion type logic circuit can reduce the change in the power consumption waveform caused by the operation timing of the subsequent stage gates being different.

第1の実施形態による論理回路を示すブロック図である。1 is a block diagram illustrating a logic circuit according to a first embodiment. 同実施形態における論理回路の論理表を示す図である。It is a figure which shows the logic table | surface of the logic circuit in the embodiment. 同実施形態における論理回路のシーケンスを示すタイムチャートである。3 is a time chart showing a sequence of a logic circuit in the same embodiment. 第2の実施形態による論理回路を示すブロック図である。It is a block diagram which shows the logic circuit by 2nd Embodiment. 同実施形態における論理回路のシーケンスを示すタイムチャートである。3 is a time chart showing a sequence of a logic circuit in the same embodiment. 第3の実施形態による論理回路を示すブロック図である。It is a block diagram which shows the logic circuit by 3rd Embodiment. 同実施形態における論理回路のシーケンスを示すタイムチャートである。3 is a time chart showing a sequence of a logic circuit in the same embodiment. 第4の実施形態による携帯可能情報記憶媒体を示すブロック図である。It is a block diagram which shows the portable information storage medium by 4th Embodiment. 同実施形態における暗号処理部を示すブロック図である。It is a block diagram which shows the encryption process part in the embodiment. 第5の実施形態による論理回路を示すブロック図である。It is a block diagram which shows the logic circuit by 5th Embodiment. 同実施形態における論理回路の論理表を示す図である。It is a figure which shows the logic table | surface of the logic circuit in the embodiment. 従来技術による論理回路と論理表を示す図である。It is a figure which shows the logic circuit and logic table by a prior art.

<第1の実施形態>
以下、本発明の第1の実施形態による論理回路について図面を参照して説明する。
図1は、本実施形態における論理回路を示すブロック図である。
図1に示される消費電力錯乱型論理回路である論理回路1は、論理演算回路10、出力制御部20及び出力段回路30を備える。
論理演算回路10は、電源線VDDと電源線GNDとの間に配置され、Pネット部11とNネット部12を備える。論理演算回路10は、入力信号X、Yと乱数信号rに基づき、Pネット部11とNネット部12とが相補に動作して生成される出力論理状態を出力線Z1に出力する。
Pネット部11は、電源線VDDと出力線Z1との間に配置され、入力信号X、Yと乱数信号rとに基づいて電源線VDDの電位により出力線Z1を充電し、論理レベル“1”を出力する。
Nネット部12は、出力線Z1と電源線GNDとの間に配置され、入力信号X、Yと乱数信号rとに基づいて電源線GNDの電位により出力線Z1を放電し、論理レベル“0”を出力する。
<First Embodiment>
Hereinafter, a logic circuit according to a first embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing a logic circuit in this embodiment.
A logic circuit 1 that is a power consumption confusion type logic circuit shown in FIG. 1 includes a logic operation circuit 10, an output control unit 20, and an output stage circuit 30.
The logical operation circuit 10 is disposed between the power supply line VDD and the power supply line GND, and includes a P net unit 11 and an N net unit 12. Based on the input signals X and Y and the random number signal r, the logic operation circuit 10 outputs an output logic state generated by the P net unit 11 and the N net unit 12 operating in a complementary manner to the output line Z1.
The P net unit 11 is disposed between the power supply line VDD and the output line Z1, charges the output line Z1 with the potential of the power supply line VDD based on the input signals X and Y, and the random number signal r, and has a logic level “1”. "Is output.
The N net unit 12 is disposed between the output line Z1 and the power supply line GND, and discharges the output line Z1 by the potential of the power supply line GND based on the input signals X and Y and the random number signal r, and the logic level “0”. "Is output.

Pネット部11は、Pチャネル型金属酸化膜半導体電界効果トランジスタ(P Channel Metal Oxide Semiconductor Field Effect Transistor、以下、PMOSという。)111〜115を備える。PMOS111、112は、電源線VDDと出力線Z1との間に直列に配置される。PMOS111は、ソース端子が電源線VDDに、ドレイン端子がノードN1にそれぞれ接続され、ゲート端子に入力信号Xが供給される。PMOS112は、ソース端子がノードN1、ドレイン端子が出力線Z1にそれぞれ接続され、ゲート端子に入力信号Yが供給される。
また、PMOS113、114は、電源線VDDとノードN2との間に並列に接続される。PMOS113は、ソース端子が電源線VDDに、ドレイン端子がノードN2にそれぞれ接続され、ゲート端子に入力信号Xが供給される。PMOS114は、ソース端子が電源線VDDに、ドレイン端子がノードN2にそれぞれ接続され、ゲート端子に入力信号Yが供給される。
また、PMOS115は、ソース端子がノードN2に、ドレイン端子が出力線Z1にそれぞれ接続され、ゲート端子に乱数信号rが供給される。
The P net unit 11 includes P channel metal oxide semiconductor field effect transistors (hereinafter referred to as PMOS) 111 to 115. The PMOSs 111 and 112 are arranged in series between the power supply line VDD and the output line Z1. The PMOS 111 has a source terminal connected to the power supply line VDD, a drain terminal connected to the node N1, and an input signal X supplied to the gate terminal. The PMOS 112 has a source terminal connected to the node N1, a drain terminal connected to the output line Z1, and an input signal Y supplied to the gate terminal.
The PMOSs 113 and 114 are connected in parallel between the power supply line VDD and the node N2. The PMOS 113 has a source terminal connected to the power supply line VDD, a drain terminal connected to the node N2, and an input signal X supplied to the gate terminal. The PMOS 114 has a source terminal connected to the power supply line VDD, a drain terminal connected to the node N2, and an input signal Y supplied to the gate terminal.
The PMOS 115 has a source terminal connected to the node N2, a drain terminal connected to the output line Z1, and a random number signal r supplied to the gate terminal.

Nネット部12は、Nチャネル型金属酸化膜半導体電界効果トランジスタ(N Channel Metal Oxide Semiconductor Field Effect Transistor、以下、NMOSという。)121〜125を備える。NMOS121、122は、出力線Z1とノードN4との間に直列に配置される。NMOS121は、ソース端子がノードN3に、ドレイン端子が出力線Z1にそれぞれ接続され、ゲート端子に入力信号Xが供給される。NMOS122は、ソース端子がノードN4、ドレイン端子がノードN3にそれぞれ接続され、ゲート端子に入力信号Yが供給される。
また、NMOS123、124は、出力線Z1とノードN5との間に並列に接続される。NMOS123は、ソース端子がN5に、ドレイン端子が出力線Z1にそれぞれ接続され、ゲート端子に入力信号Xが供給される。NMOS124は、ソース端子がノードN5に、ドレイン端子が出力線Z1にそれぞれ接続され、ゲート端子に入力信号Yが供給される。
また、NMOS125は、ソース端子がノードN4に、ドレイン端子がノードN5にそれぞれ接続され、ゲート端子に乱数信号rが供給される。
The N net unit 12 includes N channel metal oxide semiconductor field effect transistors (hereinafter referred to as NMOS) 121 to 125. The NMOSs 121 and 122 are arranged in series between the output line Z1 and the node N4. The NMOS 121 has a source terminal connected to the node N3, a drain terminal connected to the output line Z1, and an input signal X supplied to the gate terminal. The NMOS 122 has a source terminal connected to the node N4 and a drain terminal connected to the node N3, and an input signal Y is supplied to the gate terminal.
The NMOSs 123 and 124 are connected in parallel between the output line Z1 and the node N5. The NMOS 123 has a source terminal connected to N5, a drain terminal connected to the output line Z1, and an input signal X supplied to the gate terminal. The NMOS 124 has a source terminal connected to the node N5, a drain terminal connected to the output line Z1, and an input signal Y supplied to the gate terminal.
The NMOS 125 has a source terminal connected to the node N4, a drain terminal connected to the node N5, and a random number signal r supplied to the gate terminal.

出力制御部20は、PMOS21とNMOS22とを備え、制御信号en1に応じて出力線Z1の出力状態を制御する。出力制御部20は、PMOS21とNMOS22とにより、制御信号en1に応じて論理演算回路10の出力論理状態を無効にする。
PMOS21は、電源線VDDと出力線Z1との間に、Pネット部11と並列に配置される。PMOS21は、ソース端子が電源線VDDに、ドレイン端子が出力線Z1にそれぞれ接続され、ゲート端子に制御信号en1が供給される。PMOS21は、制御信号en1が“0”の場合(出力無効状態とする場合)に、電源線VDDと出力線Z1との間を導通して、出力線Z1を論理レベル“1”に充電する。これにより、Pネット部11は無効化される。
また、NMOS22は、出力線Z1と電源船GNDとの間に、Nネット部12と直列に配置される。NMOS22は、ソース端子が電源線GNDに、ドレイン端子がノードN4にそれぞれ接続され、ゲート端子に制御信号en1が供給される。NMOS22は、制御信号en1が“0”の場合(出力無効状態とする場合)に、電源線GNDからNネット部12を介して出力線Z1に通じる経路を遮断して、Nネット部12を無効化する。
The output control unit 20 includes a PMOS 21 and an NMOS 22, and controls the output state of the output line Z1 according to the control signal en1. The output control unit 20 invalidates the output logic state of the logic operation circuit 10 according to the control signal en1 by the PMOS 21 and the NMOS 22.
The PMOS 21 is arranged in parallel with the P net unit 11 between the power supply line VDD and the output line Z1. The PMOS 21 has a source terminal connected to the power supply line VDD, a drain terminal connected to the output line Z1, and a control signal en1 supplied to the gate terminal. When the control signal en1 is “0” (when the output is disabled), the PMOS 21 conducts between the power supply line VDD and the output line Z1 and charges the output line Z1 to the logic level “1”. As a result, the P net unit 11 is invalidated.
Further, the NMOS 22 is arranged in series with the N net portion 12 between the output line Z1 and the power ship GND. The NMOS 22 has a source terminal connected to the power supply line GND, a drain terminal connected to the node N4, and a control signal en1 supplied to the gate terminal. When the control signal en1 is “0” (when the output is disabled), the NMOS 22 blocks the path from the power supply line GND to the output line Z1 via the N net unit 12 and invalidates the N net unit 12. Turn into.

出力段回路30は、論理演算回路10の後段に配置され、インバータ部31と出力段制御部32とを備える。出力段回路30は、論理演算回路10の出力線Z1の出力状態に基づいて、論理回路1の出力線Z2に論理レベル“1”又は“0”を出力する。また、出力段回路30は、制御信号en2に応じて、出力線Z2の出力状態を無効にするマスク状態に切り替わる。
インバータ部31は、PMOS311とNMOS312とを備え、論理演算回路10の出力線Z1に出力される論理状態を反転した論理レベル“1”又は“0”を出力線Z2に出力する。
PMOS311とNMOS312は、ゲート端子が出力線Z1に、ドレイン端子が出力線Z2にそれぞれ接続される。また、PMOS311は、ソース端子がノードN6に接続される。NMOS312は、ソース端子が電源線GNDに接続される。
The output stage circuit 30 is disposed after the logic operation circuit 10 and includes an inverter unit 31 and an output stage control unit 32. The output stage circuit 30 outputs a logic level “1” or “0” to the output line Z2 of the logic circuit 1 based on the output state of the output line Z1 of the logic operation circuit 10. Further, the output stage circuit 30 switches to a mask state that invalidates the output state of the output line Z2 in response to the control signal en2.
The inverter unit 31 includes a PMOS 311 and an NMOS 312 and outputs a logic level “1” or “0” obtained by inverting the logic state output to the output line Z1 of the logic operation circuit 10 to the output line Z2.
The PMOS 311 and the NMOS 312 have a gate terminal connected to the output line Z1 and a drain terminal connected to the output line Z2. The source of the PMOS 311 is connected to the node N6. The NMOS 312 has a source terminal connected to the power supply line GND.

出力段制御部32は、PMOS321とNMOS322とを備え、制御信号en2に応じて、出力線Z2の出力状態を無効にするマスク状態に切り替わる。PMOS321は、電源線VDDとインバータ部31との間に配置される。PMOS321は、ソース端子が電源線VDDに、ドレイン端子がノードN6にそれぞれ接続され、ゲート端子に制御信号en2が供給される。PMOS321は、制御信号en2が“1”の場合(マスク状態とする場合)に、電源線VDDからインバータ部31を遮断して、インバータ部31を無効化する。
NMOS322は、出力線Z2と電源線GNDとの間に、NMOS312と並列に配置される。NMOS322は、ソース端子が電源線GNDに、ドレイン端子が出力線Z2にそれぞれ接続され、ゲート端子に制御信号en2が供給される。NMOS322は、制御信号en2が“1”の場合(マスク状態とする場合)に、電源線GNDと出力線Z2との間を導通して、出力線Z2を論理レベル“0”に放電する。これにより、出力段制御部32は、マスク状態である場合に、出力線Z2に論理レベル“0”を出力する。
The output stage control unit 32 includes a PMOS 321 and an NMOS 322, and switches to a mask state that invalidates the output state of the output line Z2 according to the control signal en2. The PMOS 321 is disposed between the power supply line VDD and the inverter unit 31. The PMOS 321 has a source terminal connected to the power supply line VDD, a drain terminal connected to the node N6, and a control signal en2 supplied to the gate terminal. When the control signal en2 is “1” (in the mask state), the PMOS 321 shuts off the inverter unit 31 from the power supply line VDD and invalidates the inverter unit 31.
The NMOS 322 is arranged in parallel with the NMOS 312 between the output line Z2 and the power supply line GND. The NMOS 322 has a source terminal connected to the power supply line GND, a drain terminal connected to the output line Z2, and a control signal en2 supplied to the gate terminal. The NMOS 322 conducts between the power supply line GND and the output line Z2 and discharges the output line Z2 to the logic level “0” when the control signal en2 is “1” (in the mask state). As a result, the output stage control unit 32 outputs the logic level “0” to the output line Z2 in the mask state.

次に、本実施形態の動作について説明する。
論理回路1は、入力信号a、bをAND(論理積)演算した出力cを得るためのAND回路である。論理回路1の入力信号X、Yは、入力信号a、bと、乱数信号rとをそれぞれXOR(排他的論理和)演算された値である(X=a XOR r、Y=b XOR r)。また、論理回路1の出力線Z2の出力z2は、同じく乱数rと出力cをXOR演算した値である(z2=c XOR r)。入力a、bをXOR演算する乱数信号rと出力cをXOR演算する乱数信号rは同じ値であり、乱数信号rはゲート動作ごとに毎回異なる値にする。
Next, the operation of this embodiment will be described.
The logic circuit 1 is an AND circuit for obtaining an output c obtained by performing an AND (logical product) operation on the input signals a and b. The input signals X and Y of the logic circuit 1 are values obtained by performing an XOR (exclusive OR) operation on the input signals a and b and the random number signal r, respectively (X = a XOR r, Y = b XOR r). . Similarly, the output z2 of the output line Z2 of the logic circuit 1 is a value obtained by XORing the random number r and the output c (z2 = c XOR r). The random number signal r for XORing the inputs a and b and the random number signal r for XORing the output c have the same value, and the random number signal r is set to a different value every time the gate operation is performed.

また、論理演算回路10は、入力信号a、bをNAND(否定論理積)演算した結果を乱数信号rとXOR演算した出力z1を得るためのNAND/NOR(否定論理和)演算回路である。乱数信号rが“0”の場合、論理演算回路10は、入力信号X、YのNAND演算回路として機能する(z1=X NAND Y)。また、乱数信号rが“1”の場合、論理演算回路10は、入力信号X、YのNOR演算回路として機能する(z1=X NOR Y)。その原理は、式(1)から式(3)に示される。   The logical operation circuit 10 is a NAND / NOR (negative logical sum) arithmetic circuit for obtaining an output z1 obtained by XORing the random number signal r with the result of NAND (negative logical product) operation of the input signals a and b. When the random number signal r is “0”, the logic operation circuit 10 functions as a NAND operation circuit for the input signals X and Y (z1 = X NAND Y). When the random number signal r is “1”, the logic operation circuit 10 functions as a NOR operation circuit for the input signals X and Y (z1 = X NOR Y). The principle is shown in equations (1) to (3).

z1=(a NAND b) XOR r ・・・(1)   z1 = (a NAND b) XOR r (1)

式(1)は、論理演算回路10の論理演算を示す式である。   Expression (1) is an expression indicating a logical operation of the logical operation circuit 10.

[r=“0”の場合]
X=a XOR r=a、Y=b XOR r=b、
z1=(a NAND b)XOR r=X NAND Y ・・・(2)
[When r = "0"]
X = a XOR r = a, Y = b XOR r = b,
z1 = (a NAND b) XOR r = X NAND Y (2)

式(2)は、乱数信号rが“0”の場合における論理演算回路10の論理演算を示す式である。乱数信号rが“0”の場合、入力信号a、bはそれぞれ入力信号X、Yと等しくなる。このため、論理演算回路10の出力線Z1の論理は、入力信号XとYのNAND演算したものになる。   Expression (2) is an expression showing a logical operation of the logical operation circuit 10 when the random number signal r is “0”. When the random number signal r is “0”, the input signals a and b are equal to the input signals X and Y, respectively. For this reason, the logic of the output line Z1 of the logic operation circuit 10 is obtained by NAND operation of the input signals X and Y.

[r=“1”の場合]
X=a XOR r=NOT(a)、Y=b XOR r=NOT(b)、
z1=NOT(NOT(X) NAND NOT(Y))=NOT(X OR Y)=X NOR Y ・・・(3)
[When r = “1”]
X = a XOR r = NOT (a), Y = b XOR r = NOT (b),
z1 = NOT (NOT (X) NAND NOT (Y)) = NOT (X OR Y) = X NOR Y (3)

式(3)は、乱数信号rが“1”の場合における論理演算回路10の論理演算を示す式である。乱数信号rが“1”の場合、入力信号a、bはそれぞれ入力信号X、YのNOT(否定)演算した値になる。このため、論理演算回路10の出力線Z1の論理は、入力信号XとYをそれぞれNOT演算したものをNAND演算し、更にその演算結果をNOT演算したものになる。ト゛・モルガンの定理により、(NOT(X) NAND NOT(Y))は、入力信号XとYのOR(論理和)演算(X OR Y)に置き換えられる。これにより、論理演算回路10の出力線Z1の論理は、入力信号XとYのNOR演算したものになる。   Expression (3) is an expression showing a logical operation of the logical operation circuit 10 when the random number signal r is “1”. When the random number signal r is “1”, the input signals a and b are values obtained by NOT (negative) calculation of the input signals X and Y, respectively. For this reason, the logic of the output line Z1 of the logic operation circuit 10 is obtained by performing a NAND operation on the input signals X and Y obtained by performing a NOT operation, and further performing a NOT operation on the operation result. According to De Morgan's theorem, (NOT (X) NAND NOT (Y)) is replaced by an OR (logical OR) operation (X OR Y) of the input signals X and Y. As a result, the logic of the output line Z1 of the logic operation circuit 10 is a NOR operation of the input signals X and Y.

論理演算回路10は、乱数信号rが“0”の場合、Pネット部11のPMOS115がオンして、電源線VDDに並列接続されたPMOS113、114が有効になる。また、Nネット部12のNMOS125がオフして、出力線Z1に並列接続されたNMOS123、124が無効になる。これにより、出力線Z1は、PMOS113、114と、出力線Z1にノードN3を介して直列接続されたNMOS121、122とで論理演算される出力論理状態が出力される。つまり、論理演算回路10は、入力信号XとYのNAND演算回路として機能する。なお、この場合、PMOS111、112は、出力論理状態を決める際に関係しない。
また、論理演算回路10は、乱数信号rが“1”の場合、Pネット部11のPMOS115がオフして、電源線VDDに並列接続されたPMOS113、114が無効になる。また、Nネット部12のNMOS125がオンして、出力線Z1に並列接続されたNMOS123、124が有効になる。これにより、出力線Z1は、NMOS123、124と、出力線Z1にノードN1を介して直列接続されたPMOS111、112とで論理演算される出力論理状態が出力される。つまり、論理演算回路10は、入力信号XとYのNOR演算回路として機能する。なお、この場合、NMOS121、122は、出力論理状態を決める際に関係しない。
In the logical operation circuit 10, when the random number signal r is “0”, the PMOS 115 of the P net unit 11 is turned on, and the PMOSs 113 and 114 connected in parallel to the power supply line VDD are enabled. Further, the NMOS 125 of the N net unit 12 is turned off, and the NMOSs 123 and 124 connected in parallel to the output line Z1 are disabled. As a result, the output line Z1 outputs an output logic state that is logically operated by the PMOSs 113 and 114 and the NMOSs 121 and 122 connected in series to the output line Z1 via the node N3. That is, the logic operation circuit 10 functions as a NAND operation circuit for the input signals X and Y. In this case, the PMOSs 111 and 112 are not involved in determining the output logic state.
In addition, when the random number signal r is “1”, the logic operation circuit 10 turns off the PMOS 115 of the P net unit 11 and disables the PMOSs 113 and 114 connected in parallel to the power supply line VDD. Further, the NMOS 125 of the N net unit 12 is turned on, and the NMOSs 123 and 124 connected in parallel to the output line Z1 become effective. As a result, the output line Z1 outputs an output logic state that is logically operated by the NMOSs 123 and 124 and the PMOSs 111 and 112 connected in series to the output line Z1 via the node N1. That is, the logic operation circuit 10 functions as a NOR operation circuit for the input signals X and Y. In this case, the NMOSs 121 and 122 are not involved in determining the output logic state.

論理演算回路10により論理演算された出力z1は、出力線Z1を介して出力段回路30のインバータ部31に供給される。インバータ部31は、PMOS311とNMOS312により、出力z1の出力論理状態を反転して、出力線Z2に出力z2として出力する。
これにより、論理回路1は、乱数信号rに応じて、入力信号XとYのAND演算結果(z2=X AND Y)、又は入力信号XとYのOR演算結果(z2=X OR Y)を出力線Z2に出力する。
The output z1 logically operated by the logical operation circuit 10 is supplied to the inverter unit 31 of the output stage circuit 30 via the output line Z1. The inverter unit 31 inverts the output logic state of the output z1 using the PMOS 311 and the NMOS 312 and outputs the inverted signal to the output line Z2 as the output z2.
Thereby, the logic circuit 1 outputs the AND operation result (z2 = X AND Y) of the input signals X and Y or the OR operation result (z2 = X OR Y) of the input signals X and Y according to the random number signal r. Output to the output line Z2.

図2は、本実施形態における論理回路1の論理表を示す図である。
図2において、入力信号X、Yの組合せ4通りと乱数信号rの組合せを合わせた8通りの組合せに応じて、出力線Z2の出力z2の状態を示している。乱数信号rの値に応じて、出力z2が論理反転していることがわかる。乱数信号rはランダムに値が変わるため、入力信号a、bが同じであっても、出力z2がランダムに変動する。
FIG. 2 is a diagram showing a logic table of the logic circuit 1 in the present embodiment.
In FIG. 2, the state of the output z2 of the output line Z2 is shown according to eight combinations including four combinations of the input signals X and Y and a combination of the random number signal r. It can be seen that the output z2 is logically inverted according to the value of the random number signal r. Since the value of the random number signal r changes at random, the output z2 varies randomly even if the input signals a and b are the same.

次に、タイムチャートを参照して、本実施形態の動作を詳細に説明する。
図3は、同実施形態における論理回路1のシーケンスを示すタイムチャートである。
図3において、入力信号X、Yと乱数信号r、制御信号en1、en2、出力線Z1の出力状態z1、及び出力線Z2の出力状態z2を示している。
まず、制御信号en1が時刻T0から時刻T0でL(ロウ)状態(論理“0”状態)にされると出力制御部20が出力有効状態から出力無効状態に移行する。これにより、NMOS22がオフする。そのため、出力制御部20は、電源線GNDからNネット部12を介して出力線Z1に通じる経路を遮断して、Nネット部12を無効化する。また、PMOS21がオンする。PMOS21は、出力線Z1を電源線VDDによりH(ハイ)状態(論理“1”状態)に充電する。ここで、出力線Z1がH状態に充電されるのは、入力信号X、Yと乱数信号rにより出力論理状態が“0”となる場合である。そのため、Pネット部11の経路は遮断されている。従って、出力線Z1への充電は、Pネット部11を経由することなく、PMOS21よって行われる。また、その場合の電力消費波形は、入力信号a、bの組合せに依存しない一定の波形となる。
Next, the operation of this embodiment will be described in detail with reference to a time chart.
FIG. 3 is a time chart showing a sequence of the logic circuit 1 in the embodiment.
FIG. 3 shows input signals X and Y, a random number signal r, control signals en1 and en2, an output state z1 of the output line Z1, and an output state z2 of the output line Z2.
First, when the control signal en1 is changed to the L (low) state (logic “0” state) from the time T0 H to the time T0 L , the output control unit 20 shifts from the output valid state to the output invalid state. Thereby, the NMOS 22 is turned off. Therefore, the output control unit 20 disables the N net unit 12 by blocking the path from the power supply line GND to the output line Z1 via the N net unit 12. Further, the PMOS 21 is turned on. The PMOS 21 charges the output line Z1 to the H (high) state (logic “1” state) by the power supply line VDD. Here, the output line Z1 is charged to the H state when the output logic state becomes “0” by the input signals X and Y and the random number signal r. Therefore, the route of the P net unit 11 is blocked. Accordingly, the charging of the output line Z1 is performed by the PMOS 21 without passing through the P net unit 11. In this case, the power consumption waveform is a constant waveform that does not depend on the combination of the input signals a and b.

時刻Taは、出力線Z1の充電が完了する時刻を示す。制御信号en2が出力線Z2の出力を有効にするL状態であるため、出力線Z1の出力z1がH状態になった結果、出力線Z2の出力z2は、L状態になる。この出力線Z2のH状態からL状態への移行は、PMOS21による充電タイミングが一定であるため、論理回路1の後段のゲートの動作タイミングは、一定となる。   Time Ta indicates the time when charging of the output line Z1 is completed. Since the control signal en2 is in the L state that enables the output of the output line Z2, the output z1 of the output line Z1 is in the H state, so that the output z2 of the output line Z2 is in the L state. In the transition from the H state to the L state of the output line Z2, since the charging timing by the PMOS 21 is constant, the operation timing of the gate at the subsequent stage of the logic circuit 1 is constant.

次に、制御信号en2が時刻T1から時刻T1でH状態(論理“1”状態)にされると出力段回路30が出力有効状態からマスク状態に移行する。これにより、PMOS321がオフし、NMOS322がオンする。そのため、出力段回路30は、PMOS321により電源線VDDから出力線Z2に通じる経路を遮断する。また、出力段回路30は、NMOS322により出力線Z2と電源線GNDとの間を導通してL状態(論理”0”状態)に放電する。これにより、出力段回路30はマスク状態になり、出力線Z1の状態が変化しても、論理回路1の後段のゲートに伝播しない状態となる。マスク状態の場合、出力線Z2は、出力線Z1の状態に係わらず、L状態(論理”0”状態)が保持される。 Next, when the control signal en2 is changed from the time T1 L to the H state (logic “1” state) at the time T1 H , the output stage circuit 30 shifts from the output valid state to the mask state. As a result, the PMOS 321 is turned off and the NMOS 322 is turned on. Therefore, the output stage circuit 30 blocks the path from the power supply line VDD to the output line Z2 by the PMOS 321. Further, the output stage circuit 30 conducts between the output line Z2 and the power supply line GND by the NMOS 322 and discharges to the L state (logic “0” state). As a result, the output stage circuit 30 is in a mask state, and even if the state of the output line Z1 changes, the output stage circuit 30 does not propagate to the gate in the subsequent stage of the logic circuit 1. In the mask state, the output line Z2 maintains the L state (logic “0” state) regardless of the state of the output line Z1.

また、入力信号X、Yと乱数信号rは、時刻T2から時刻T3の間に変更される。時刻T2は、出力制御部20が出力無効状態にあり、出力線Z1の充電が完了して、電源線VDDの電位になった時刻Taよりも後の時刻である。これは、時刻Taよりも前に、入力信号X、Yと乱数信号rを変更した場合、電源線VDDからPネット部11を介して出力線Z1に通じる経路が導通して、電力消費波形が入力信号a、bの組合せに依存する可能性があるためである。   The input signals X and Y and the random number signal r are changed between the time T2 and the time T3. The time T2 is a time after the time Ta when the output control unit 20 is in the output invalid state and the charging of the output line Z1 is completed and becomes the potential of the power supply line VDD. This is because when the input signals X and Y and the random number signal r are changed before the time Ta, the path from the power supply line VDD to the output line Z1 through the P net unit 11 becomes conductive, and the power consumption waveform is changed. This is because it may depend on the combination of the input signals a and b.

次に、制御信号en1が時刻T4から時刻T4でH状態(論理“1”状態)にされると出力制御部20が出力無効状態から出力有効状態に移行する。これにより、PMOS21がオフする。PMOS21は、出力線Z1と電源線VDDとの間を遮断する。また、NMOS22がオンする。そのため、出力制御部20は、電源線GNDからNネット部12を介して出力線Z1に通じる経路を導通して、Nネット部12による出力論理状態に応じて信号線Z1をL状態(論理“0”状態)に放電する。出力z1のp0は、論理演算回路10の出力論理状態が“1”である場合である。この場合、出力z1はH状態(論理“1”状態)を保持する。
また、出力z1のp1は、論理演算回路10のNネット部12において電源線GNDに放電する経路(パス)が1本の場合の波形である。この状態は、例えば図2の論理表における(4)の組合せ、且つ乱数信号rが“0”の場合である。この場合、NMOS125がオフとなるため、出力線Z1から電源線GNDに通じる経路は、NMOS121とNMOS122を通る経路の1本となる。放電の経路が1本であるため、出力z1は、p3よりも遅れてL状態に放電される。ここで、p1により、出力線Z1がL状態になる時刻をTbとする。
Next, when the control signal en1 is changed to the H state (logic “1” state) from the time T4 L to the time T4 H , the output control unit 20 shifts from the output invalid state to the output valid state. Thereby, the PMOS 21 is turned off. The PMOS 21 cuts off between the output line Z1 and the power supply line VDD. Further, the NMOS 22 is turned on. Therefore, the output control unit 20 conducts a path that leads from the power supply line GND to the output line Z1 via the N net unit 12, and sets the signal line Z1 to the L state (logic “logic” in accordance with the output logic state of the N net unit 12. 0 ”state). P0 of the output z1 is a case where the output logic state of the logic operation circuit 10 is “1”. In this case, the output z1 holds the H state (logic “1” state).
Further, p1 of the output z1 is a waveform when there is one path (path) for discharging to the power supply line GND in the N net portion 12 of the logic operation circuit 10. This state is, for example, when the combination (4) in the logical table of FIG. 2 and the random number signal r is “0”. In this case, since the NMOS 125 is turned off, the path from the output line Z1 to the power supply line GND is one path through the NMOS 121 and the NMOS 122. Since there is one discharge path, the output z1 is discharged to the L state later than p3. Here, the time when the output line Z1 is in the L state by p1 is Tb.

また、出力z1のp3は、論理演算回路10のNネット部12において電源線GNDに放電する経路(パス)が3本の場合の波形である。この状態は、例えば図2の論理表における(1)の組合せ、且つ乱数信号rが“1”の場合である。この場合、NMOS125がオンとなるため、出力線Z1から電源線GNDに通じる経路は、NMOS121とNMOS122を通る経路、NMOS123の経路、及びNMOS124の経路の3本となる。放電の経路が3本であるため、出力z1は、p1よりも早くL状態に放電される。
ここで、出力線Z1の負荷容量を電源線GNDに放電する放電電流が流れる。しかし、出力線Z1の負荷容量が繋がる電源線GNDとNMOS22と接続される電源線GNDが接続され、共通の電源線として論理回路1の外部に出ているものとする。その場合、この放電電流は、論理回路1内で消費されたものとなり、外部からの電力消費として観測されない。また、p1とp3による遷移タイミングの違いは、出力段回路30によりマスクされ、論理回路1の後段のゲートの動作タイミングに影響しない。
Further, p3 of the output z1 is a waveform when there are three paths (paths) discharging to the power supply line GND in the N net unit 12 of the logic operation circuit 10. This state is, for example, when the combination (1) in the logical table of FIG. 2 and the random number signal r is “1”. In this case, since the NMOS 125 is turned on, there are three paths from the output line Z1 to the power supply line GND: a path through the NMOS 121 and the NMOS 122, a path of the NMOS 123, and a path of the NMOS 124. Since there are three discharge paths, the output z1 is discharged to the L state earlier than p1.
Here, a discharge current for discharging the load capacitance of the output line Z1 to the power supply line GND flows. However, it is assumed that the power supply line GND connected to the NMOS 22 and the power supply line GND connected to the load capacity of the output line Z1 are connected and come out of the logic circuit 1 as a common power supply line. In this case, the discharge current is consumed in the logic circuit 1 and is not observed as power consumption from the outside. Further, the difference in transition timing between p1 and p3 is masked by the output stage circuit 30 and does not affect the operation timing of the subsequent gate of the logic circuit 1.

次に、制御信号en2が時刻T5から時刻T5でL状態(論理“0”状態)にされると出力段回路30がマスク状態から出力有効状態に移行する。これにより、PMOS321がオンし、NMOS322がオフする。そのため、出力線Z1の状態を反転した状態が、出力線Z2に出力される。この際に出力段回路30が消費する電力は、出力線Z2の負荷容量を充電する電流である。そのため、電力消費波形は、出力線Z1の状態により決まり、入力信号a、bの組合せに依存しない。また、出力線Z2の遷移タイミングは、入力信号a、bの組合せに依存しない。そのため、論理回路1の後段のゲートの動作タイミングは、入力信号a、bの組合せに依存しない一定となる。 Next, when the control signal en2 is changed to the L state (logic “0” state) from the time T5 H to the time T5 L , the output stage circuit 30 shifts from the mask state to the output valid state. As a result, the PMOS 321 is turned on and the NMOS 322 is turned off. Therefore, a state in which the state of the output line Z1 is inverted is output to the output line Z2. At this time, the power consumed by the output stage circuit 30 is a current for charging the load capacity of the output line Z2. Therefore, the power consumption waveform is determined by the state of the output line Z1, and does not depend on the combination of the input signals a and b. Further, the transition timing of the output line Z2 does not depend on the combination of the input signals a and b. For this reason, the operation timing of the subsequent gate of the logic circuit 1 is constant regardless of the combination of the input signals a and b.

以上のように、出力制御部20が、制御信号en1に応じて論理演算回路10の出力線Z1の出力状態を制御する。出力制御部20は、出力無効状態にある場合に、NMOS22により論理演算回路10の出力線Z1から電源線GNDに通じる経路を遮断し、PMOS21により電源線VDDと出力線Zとを導通して、H状態に充電する。これにより、入力信号の組合せによらず、充電経路の数がPMOS21による1本になる。そのため、論理回路1は、充電経路の平均数が異なるために生じる電力消費波形の変化を低減できる。これにより、入力信号a、bと相関する電力消費波形の統計的結果の変化を低減できる。
また、論理演算回路10の後段に設けられた出力段回路30が、制御信号en2に応じてマスク状態に切り替わる。出力段回路30は、マスク状態にある場合に、出力線Z1の出力状態を無効にして論理回路1の出力線Z2をL状態(論理“0”状態)に保持する。これにより、論理回路1は、論理演算回路10の出力線の動作タイミングの変化をマスクし、論理回路1の後段のゲートの動作タイミングの変化を低減できる。そのため、論理回路1は、後段のゲートの動作タイミングが異なるために生じる電力消費波形の変化を低減できる。これにより、入力信号a、bと相関する電力消費波形の変化を低減できる。
As described above, the output control unit 20 controls the output state of the output line Z1 of the logic operation circuit 10 according to the control signal en1. When the output control unit 20 is in an output invalid state, the NMOS 22 interrupts the path from the output line Z1 of the logic operation circuit 10 to the power supply line GND, and the PMOS 21 conducts the power supply line VDD and the output line Z. Charge to H state. As a result, the number of charging paths is one by the PMOS 21 regardless of the combination of input signals. Therefore, the logic circuit 1 can reduce the change in the power consumption waveform caused by the difference in the average number of charging paths. Thereby, the change of the statistical result of the power consumption waveform correlated with the input signals a and b can be reduced.
Further, the output stage circuit 30 provided in the subsequent stage of the logic operation circuit 10 is switched to the mask state in accordance with the control signal en2. When in the mask state, the output stage circuit 30 invalidates the output state of the output line Z1 and holds the output line Z2 of the logic circuit 1 in the L state (logic “0” state). As a result, the logic circuit 1 can mask the change in the operation timing of the output line of the logic operation circuit 10 and can reduce the change in the operation timing of the subsequent gate of the logic circuit 1. Therefore, the logic circuit 1 can reduce the change in the power consumption waveform that occurs because the operation timing of the subsequent gate is different. Thereby, the change of the power consumption waveform correlated with the input signals a and b can be reduced.

<第2の実施形態>
以下、本発明の第2の実施形態による論理回路について図面を参照して説明する。
図4は、本実施形態における論理回路1aを示すブロック図である。
図4において、第1の実施形態の論理回路1に、PMOSで構成されるPネット遮断部40を設けている。その他の構成は、第1の実施形態と同様である。この図において、図1と同じ構成には同一の符号を付す。
Pネット遮断部40は、Pネット部11と出力線Z1の間に配置され、ソース端子がPネット部11の出力であるノードN7に、ドレイン端子が出力線Z1にそれぞれ接続され、ゲート端子に制御信号en2が供給される。Pネット遮断部40は、制御信号en2が“0”になり、出力段回路30がマスク状態にある場合に、Pネット部11と出力線Z1との間を遮断し、Pネット部11を出力線Z1から切り離す。
<Second Embodiment>
Hereinafter, a logic circuit according to a second embodiment of the present invention will be described with reference to the drawings.
FIG. 4 is a block diagram showing the logic circuit 1a in the present embodiment.
In FIG. 4, the logic circuit 1 according to the first embodiment is provided with a P-net blocking unit 40 composed of PMOS. Other configurations are the same as those of the first embodiment. In this figure, the same components as those in FIG.
The P-net blocking unit 40 is disposed between the P-net unit 11 and the output line Z1, and has a source terminal connected to the node N7 that is an output of the P-net unit 11, a drain terminal connected to the output line Z1, and a gate terminal. A control signal en2 is supplied. When the control signal en2 becomes “0” and the output stage circuit 30 is in the masked state, the P net blocking unit 40 blocks between the P net unit 11 and the output line Z1 and outputs the P net unit 11 Disconnect from line Z1.

次に、本実施形態の動作について説明する。
論理回路1aは、Pネット遮断部40の動作が加わる以外、第1の実施形態と基本的な動作は同じである。
論理回路1aは、入力信号a、bをAND演算した出力cを得るためのAND回路である。論理回路1aの入力信号X、Yは、入力信号a、bと、乱数信号rとをそれぞれXOR演算された値である(X=a XOR r、Y=b XOR r)。また、論理回路1aの出力線Z2の出力z2は、同じく乱数rと出力cをXOR演算した値である(z2=c XOR r)。入力a、bをXOR演算する乱数信号rと出力cをXOR演算する乱数信号rは同じ値であり、乱数信号rはゲート動作ごとに毎回異なる値にする。
Next, the operation of this embodiment will be described.
The basic operation of the logic circuit 1a is the same as that of the first embodiment except that the operation of the P-net blocking unit 40 is added.
The logic circuit 1a is an AND circuit for obtaining an output c obtained by ANDing the input signals a and b. The input signals X and Y of the logic circuit 1a are values obtained by XORing the input signals a and b and the random number signal r, respectively (X = a XOR r, Y = b XOR r). Similarly, the output z2 of the output line Z2 of the logic circuit 1a is a value obtained by XORing the random number r and the output c (z2 = c XOR r). The random number signal r for XORing the inputs a and b and the random number signal r for XORing the output c have the same value, and the random number signal r is set to a different value every time the gate operation is performed.

図5は、同実施形態における論理回路1aのシーケンスを示すタイムチャートである。
図5において、入力信号X、Yと乱数信号r、制御信号en1、en2、出力線Z1の出力状態z1、及び出力線Z2の出力状態z2を示している。この図において、以下の2つのタイミングが、制御信号en1による時刻T0から時刻T0の前になる以外、図3におけるシーケンスと同じである。2つのタイミングとは、制御信号en2による時刻T1から時刻T1と、入力信号X,Yと乱数信号rを変更するための時刻T2から時刻T3である。
FIG. 5 is a time chart showing the sequence of the logic circuit 1a in the same embodiment.
FIG. 5 shows input signals X and Y, random number signal r, control signals en1 and en2, output state z1 of output line Z1, and output state z2 of output line Z2. In this figure, the following two timings, except made before the time T0 H by the control signal en1 time T0 L, is the same as the sequence in Figure 3. The two timings are from time T1 L to time T1 H based on the control signal en2, and from time T2 to time T3 for changing the input signals X and Y and the random number signal r.

制御信号en2が時刻T1から時刻T1でH状態(論理“1”状態)にされると出力段回路30が出力有効状態からマスク状態に移行する。また、Pネット遮断部40が、電源線VDDからPネット部11を介して出力線Z1に通じる経路を遮断する。また、制御信号en2が“0”から“1”に遷移する場合の動作は、第1の実施形態と同様である。
次に、入力信号X、Yと乱数信号rは、時刻T2から時刻T3の間に変更される。時刻T2は、Pネット遮断部40がPネット部11を遮断した時刻T1よりも後の時刻である。このタイミングにより入力信号X、Yと乱数信号rが変更される場合、Pネット遮断部40がPネット部11を遮断した後であるため、電力消費波形は、電力消費波形が入力信号X、Yと乱数信号rを変更しても影響を受けない。これにより、制御信号en1の状態に係わらず、入力信号X、Yと乱数信号rを変更することができる。そのため、入力信号X、Yと乱数信号rの変更タイミングを早めることができる。
When the control signal en2 is changed from the time T1 L to the H state (logic “1” state) at the time T1 H , the output stage circuit 30 shifts from the output valid state to the mask state. Further, the P net blocking unit 40 blocks a path from the power line VDD to the output line Z1 via the P net unit 11. The operation when the control signal en2 transitions from “0” to “1” is the same as in the first embodiment.
Next, the input signals X and Y and the random number signal r are changed between time T2 and time T3. The time T2 is a time after the time T1 H when the P net blocking unit 40 blocks the P net unit 11. When the input signals X and Y and the random number signal r are changed at this timing, since the P net blocking unit 40 is after the P net unit 11 is blocked, the power consumption waveform is the input signal X, Y Even if the random number signal r is changed, it is not affected. Thus, the input signals X and Y and the random number signal r can be changed regardless of the state of the control signal en1. Therefore, the change timing of the input signals X and Y and the random number signal r can be advanced.

次に、制御信号en1が時刻T0から時刻T0でL状態(論理“0”状態)にされると出力制御部20が出力有効状態から出力無効状態に移行する。これにより、NMOS22がオフする。そのため、出力制御部20は、電源線GNDからNネット部12を介して出力線Z1に通じる経路を遮断して、Nネット部12を無効化する。また、PMOS21がオンする。PMOS21は、出力線Z1を電源線VDDによりH状態(論理“1”状態)に充電する。時刻Taは、出力線Z1の充電が完了する時刻を示す。
その後の動作は、制御信号en1が時刻T4から時刻T4でH状態(論理“1”状態)にされると出力制御部20が出力無効状態から出力有効状態に移行する。また、制御信号en2が時刻T5から時刻T5でL状態(論理“0”状態)にされると出力段回路30がマスク状態から出力有効状態に移行する。また、Pネット遮断部40が、電源線VDDからPネット部11を介して出力線Z1に通じる経路を導通する。これにより、論理演算回路10の出力論理状態が“1”である場合、出力線Z1は、H状態(“1”状態)を保持する。また、出力線Z1の状態を反転した状態が、出力線Z2に出力される。
Next, when the control signal en1 is changed to the L state (logic “0” state) from the time T0 H to the time T0 L , the output control unit 20 shifts from the output valid state to the output invalid state. Thereby, the NMOS 22 is turned off. Therefore, the output control unit 20 disables the N net unit 12 by blocking the path from the power supply line GND to the output line Z1 via the N net unit 12. Further, the PMOS 21 is turned on. The PMOS 21 charges the output line Z1 to the H state (logic “1” state) by the power supply line VDD. Time Ta indicates the time when charging of the output line Z1 is completed.
In the subsequent operation, when the control signal en1 is changed to the H state (logic “1” state) from the time T4 L to the time T4 H , the output control unit 20 shifts from the output invalid state to the output valid state. Further, when the control signal en2 is changed to the L state (logic “0” state) from the time T5 H to the time T5 L , the output stage circuit 30 shifts from the mask state to the output valid state. Further, the P net blocking unit 40 conducts a path from the power supply line VDD to the output line Z1 through the P net unit 11. Thereby, when the output logic state of the logic operation circuit 10 is “1”, the output line Z1 holds the H state (“1” state). In addition, a state in which the state of the output line Z1 is inverted is output to the output line Z2.

以上のように、出力制御部20が、制御信号en1に応じて論理演算回路10の出力線Z1の出力状態を制御する。出力制御部20は、出力無効状態にある場合に、NMOS22により論理演算回路10の出力線Z1から電源線GNDに通じる経路を遮断し、PMOS21により電源線VDDと出力線Zとを導通して、H状態に充電する。これにより、入力信号の組合せによらず、充電経路の数がPMOS21による1本になる。そのため、論理回路1aは、充電経路の平均数が異なるために生じる電力消費波形の変化を低減できる。これにより、入力信号a、bと相関する電力消費波形の統計的結果の変化を低減できる。
また、論理演算回路10の後段に設けられた出力段回路30が、制御信号en2に応じてマスク状態に切り替わる。出力段回路30は、マスク状態にある場合に、出力線Z1の出力状態を無効にして論理回路1aの出力線Z2をL状態に保持する。これにより、論理回路1aは、論理演算回路10の出力線の動作タイミングの変化をマスクし、論理回路1aの後段のゲートの動作タイミングの変化を低減できる。そのため、論理回路1aは、後段のゲートの動作タイミングが異なるために生じる電力消費波形の変化を低減できる。これにより、入力信号a、bと相関する電力消費波形の変化を低減できる。
As described above, the output control unit 20 controls the output state of the output line Z1 of the logic operation circuit 10 according to the control signal en1. When the output control unit 20 is in an output invalid state, the NMOS 22 interrupts the path from the output line Z1 of the logic operation circuit 10 to the power supply line GND, and the PMOS 21 conducts the power supply line VDD and the output line Z. Charge to H state. As a result, the number of charging paths is one by the PMOS 21 regardless of the combination of input signals. Therefore, the logic circuit 1a can reduce the change in the power consumption waveform caused by the difference in the average number of charging paths. Thereby, the change of the statistical result of the power consumption waveform correlated with the input signals a and b can be reduced.
Further, the output stage circuit 30 provided in the subsequent stage of the logic operation circuit 10 is switched to the mask state in accordance with the control signal en2. When in the mask state, the output stage circuit 30 invalidates the output state of the output line Z1 and holds the output line Z2 of the logic circuit 1a in the L state. Thereby, the logic circuit 1a masks the change in the operation timing of the output line of the logic operation circuit 10, and can reduce the change in the operation timing of the gate in the subsequent stage of the logic circuit 1a. Therefore, the logic circuit 1a can reduce the change in the power consumption waveform that occurs because the operation timing of the subsequent gate is different. Thereby, the change of the power consumption waveform correlated with the input signals a and b can be reduced.

また、Pネット遮断部40が、制御信号en2に応じて、電源線VDDからPネット部11を介して出力線Z1に通じる経路を遮断する。これにより、出力線Z1の充電が完了する時刻Taよりも前に、入力信号X、Yと乱数信号rを変更することができる。時刻Taは、論理回路1aの内部信号である出力線Z1の状態を観測して判断する必要があるが、本実施形態では、入力信号である制御信号en2の状態により、入力信号X、Yと乱数信号rを変更するタイミングを判断できる。そのため、論理回路1aは、入力信号X、Yと乱数信号rを変更するタイミングを容易に決定できる利点がある。   Further, the P net blocking unit 40 blocks a path from the power supply line VDD to the output line Z1 via the P net unit 11 in accordance with the control signal en2. Thereby, the input signals X and Y and the random number signal r can be changed before the time Ta at which the charging of the output line Z1 is completed. The time Ta needs to be determined by observing the state of the output line Z1, which is an internal signal of the logic circuit 1a. In this embodiment, the input signal X, Y and the input signal X2 are determined according to the state of the control signal en2, which is the input signal. The timing for changing the random number signal r can be determined. Therefore, the logic circuit 1a has an advantage that the timing for changing the input signals X and Y and the random number signal r can be easily determined.

<第3の実施形態>
以下、本発明の第3の実施形態による論理回路について図面を参照して説明する。
図6は、本実施形態における論理回路1bを示すブロック図である。
図6において、第2の実施形態と同様にPMOSで構成されるPネット遮断部40aを設けている。その他の構成は、第2の実施形態と同様である。この図において、図4と同じ構成には同一の符号を付す。
Pネット遮断部40aは、Pネット部11と出力線Z1の間に配置され、ソース端子がPネット部11の出力であるノードN7に、ドレイン端子が出力線Z1にそれぞれ接続され、ゲート端子に制御信号en1を論理反転したen1b(=NOT(en1))が供給される。Pネット遮断部40aは、制御信号en1が“0”になり、出力段回路30がマスク状態にある場合に、Pネット部11と出力線Z1との間を遮断し、Pネット部11を出力線Z1から切り離す。
<Third Embodiment>
Hereinafter, a logic circuit according to a third embodiment of the present invention will be described with reference to the drawings.
FIG. 6 is a block diagram showing the logic circuit 1b in the present embodiment.
In FIG. 6, a P-net blocking unit 40a configured by PMOS is provided as in the second embodiment. Other configurations are the same as those of the second embodiment. In this figure, the same components as those in FIG.
The P-net blocking unit 40a is disposed between the P-net unit 11 and the output line Z1, has a source terminal connected to the node N7 that is the output of the P-net unit 11, a drain terminal connected to the output line Z1, and a gate terminal. En1b (= NOT (en1)) obtained by logically inverting the control signal en1 is supplied. When the control signal en1 becomes “0” and the output stage circuit 30 is in the mask state, the P net blocking unit 40a blocks the connection between the P net unit 11 and the output line Z1, and outputs the P net unit 11. Disconnect from line Z1.

次に、本実施形態の動作について説明する。
論理回路1bは、Pネット遮断部40aの制御信号en1bが異なる以外、第2の実施形態と基本的な動作は同じである。
論理回路1bは、入力信号a、bをAND演算した出力cを得るためのAND回路である。論理回路1bの入力信号X、Yは、入力信号a、bと、乱数信号rとをそれぞれXOR演算された値である(X=a XOR r、Y=b XOR r)。また、論理回路1bの出力線Z2の出力z2は、同じく乱数rと出力cをXOR演算した値である(z2=c XOR r)。入力a、bをXOR演算する乱数信号rと出力cをXOR演算する乱数信号rは同じ値であり、乱数信号rはゲート動作ごとに毎回異なる値にする。
Next, the operation of this embodiment will be described.
The basic operation of the logic circuit 1b is the same as that of the second embodiment except that the control signal en1b of the P-net blocking unit 40a is different.
The logic circuit 1b is an AND circuit for obtaining an output c obtained by ANDing the input signals a and b. The input signals X and Y of the logic circuit 1b are values obtained by XORing the input signals a and b and the random number signal r, respectively (X = a XOR r, Y = b XOR r). Similarly, the output z2 of the output line Z2 of the logic circuit 1b is a value obtained by XORing the random number r and the output c (z2 = c XOR r). The random number signal r for XORing the inputs a and b and the random number signal r for XORing the output c have the same value, and the random number signal r is set to a different value every time the gate operation is performed.

図7は、同実施形態における論理回路1bのシーケンスを示すタイムチャートである。
図7において、入力信号X、Yと乱数信号r、制御信号en1、en1b、en2、出力線Z1の出力状態z1、及び出力線Z2の出力状態z2を示している。この図において、以下の3つのタイミングの順序が異なる以外、図5におけるシーケンスと同じである。3つのタイミングとは、制御信号en1による時刻T0から時刻T0、制御信号en2による時刻T1から時刻T1、及び入力信号X,Yと乱数信号rを変更するための時刻T2から時刻T3である。
FIG. 7 is a time chart showing the sequence of the logic circuit 1b in the same embodiment.
FIG. 7 shows input signals X and Y, a random number signal r, control signals en1, en1b, and en2, an output state z1 of the output line Z1, and an output state z2 of the output line Z2. This figure is the same as the sequence in FIG. 5 except that the following three timings are different in order. The three timings are time T0 H to time T0 L based on the control signal en1, time T1 L to time T1 H based on the control signal en2, and time T2 to time T3 for changing the input signals X, Y and the random number signal r. It is.

まず、制御信号en1が時刻T0から時刻T0でL状態(論理“0”状態)にされると出力制御部20が出力有効状態から出力無効状態に移行する。また、制御信号en1の論理反転した制御信号en1bにより、Pネット遮断部40aが、電源線VDDからPネット部11を介して出力線Z1に通じる経路を遮断する。制御信号en1による出力制御部20の動作は、第1及び第2の実施形態と同様である。なお、時刻Taは、出力線Z1の充電が完了する時刻を示す。
次に、入力信号X、Yと乱数信号rは、時刻T2から時刻T3の間に変更される。時刻T2は、Pネット遮断部40aがPネット部11を遮断した時刻T0よりも後の時刻である。このタイミングにより入力信号X、Yと乱数信号rが変更される場合、Pネット遮断部40aがPネット部11を遮断した後であるため、電力消費波形は、電力消費波形が入力信号X、Yと乱数信号rを変更しても影響を受けない。これにより、出力線Z1の充電が完了する時刻Taより前のタイミングにおいて、入力信号X、Yと乱数信号rを変更することができる。そのため、入力信号X、Yと乱数信号rの変更タイミングを早めることができる。
次に、制御信号en2が時刻T1から時刻T1でH状態(論理“1”状態)にされると出力段回路30が出力有効状態からマスク状態に移行する。また、制御信号en2が“0”から“1”に遷移する場合の動作は、第1の実施形態と同様である。
First, when the control signal en1 is changed to the L state (logic “0” state) from the time T0 H to the time T0 L , the output control unit 20 shifts from the output valid state to the output invalid state. Further, the control signal en1b obtained by logically inverting the control signal en1 causes the P net blocking unit 40a to block the path from the power supply line VDD to the output line Z1 via the P net unit 11. The operation of the output control unit 20 in response to the control signal en1 is the same as in the first and second embodiments. Time Ta indicates the time when charging of the output line Z1 is completed.
Next, the input signals X and Y and the random number signal r are changed between time T2 and time T3. Time T2 is a time after time T0 H when the P net blocking unit 40a blocks the P net unit 11. When the input signals X and Y and the random number signal r are changed at this timing, since the P net blocking unit 40a blocks the P net unit 11, the power consumption waveform is the input signal X, Y. Even if the random number signal r is changed, it is not affected. Thereby, the input signals X and Y and the random number signal r can be changed at a timing before the time Ta at which the charging of the output line Z1 is completed. Therefore, the change timing of the input signals X and Y and the random number signal r can be advanced.
Next, when the control signal en2 is changed from the time T1 L to the H state (logic “1” state) at the time T1 H , the output stage circuit 30 shifts from the output valid state to the mask state. The operation when the control signal en2 transitions from “0” to “1” is the same as in the first embodiment.

その後の動作は、制御信号en1が時刻T4から時刻T4でH状態(論理“1”状態)にされると出力制御部20が出力無効状態から出力有効状態に移行する。また、時刻T4において、Pネット遮断部40aが、電源線VDDからPネット部11を介して出力線Z1に通じる経路を導通する。また、制御信号en2が時刻T5から時刻T5でL状態(論理“0”状態)にされると出力段回路30がマスク状態から出力有効状態に移行する。これにより、出力線Z1の状態を反転した状態が、出力線Z2に出力される。 In the subsequent operation, when the control signal en1 is changed to the H state (logic “1” state) from the time T4 L to the time T4 H , the output control unit 20 shifts from the output invalid state to the output valid state. At time T4 H, P net blocking portion 40a is made conductive path leading to the output line Z1 from the power supply line VDD via a P net portion 11. Further, when the control signal en2 is changed to the L state (logic “0” state) from the time T5 H to the time T5 L , the output stage circuit 30 shifts from the mask state to the output valid state. As a result, a state in which the state of the output line Z1 is inverted is output to the output line Z2.

以上のように、出力制御部20が、制御信号en1に応じて論理演算回路10の出力線Z1の出力状態を制御する。出力制御部20は、出力無効状態にある場合に、NMOS22により論理演算回路10の出力線Z1から電源線GNDに通じる経路を遮断し、PMOS21により電源線VDDと出力線Zとを導通して、H状態に充電する。これにより、入力信号の組合せによらず、充電経路の数がPMOS21による1本になる。そのため、論理回路1bは、充電経路の平均数が異なるために生じる電力消費波形の変化を低減できる。これにより、入力信号a、bと相関する電力消費波形の統計的結果の変化を低減できる。
また、論理演算回路10の後段に設けられた出力段回路30が、制御信号en2に応じてマスク状態に切り替わる。出力段回路30は、マスク状態にある場合に、出力線Z1の出力状態を無効にして論理回路1bの出力線Z2をL状態に保持する。これにより、論理回路1bは、論理演算回路10の出力線の動作タイミングの変化をマスクし、論理回路1bの後段のゲートの動作タイミングの変化を低減できる。そのため、論理回路1bは、後段のゲートの動作タイミングが異なるために生じる電力消費波形の変化を低減できる。これにより、入力信号a、bと相関する電力消費波形の変化を低減できる。
As described above, the output control unit 20 controls the output state of the output line Z1 of the logic operation circuit 10 according to the control signal en1. When the output control unit 20 is in an output invalid state, the NMOS 22 interrupts the path from the output line Z1 of the logic operation circuit 10 to the power supply line GND, and the PMOS 21 conducts the power supply line VDD and the output line Z. Charge to H state. As a result, the number of charging paths is one by the PMOS 21 regardless of the combination of input signals. Therefore, the logic circuit 1b can reduce the change in the power consumption waveform caused by the difference in the average number of charging paths. Thereby, the change of the statistical result of the power consumption waveform correlated with the input signals a and b can be reduced.
Further, the output stage circuit 30 provided in the subsequent stage of the logic operation circuit 10 is switched to the mask state in accordance with the control signal en2. When in the mask state, the output stage circuit 30 invalidates the output state of the output line Z1 and holds the output line Z2 of the logic circuit 1b in the L state. As a result, the logic circuit 1b masks the change in the operation timing of the output line of the logic operation circuit 10, and can reduce the change in the operation timing of the subsequent gate of the logic circuit 1b. Therefore, the logic circuit 1b can reduce the change in the power consumption waveform that occurs because the operation timing of the subsequent gate is different. Thereby, the change of the power consumption waveform correlated with the input signals a and b can be reduced.

また、Pネット遮断部40aが、制御信号en1b(=NOT(en1))に応じて、電源線VDDからPネット部11を介して出力線Z1に通じる経路を遮断する。これにより、出力線Z1の充電が完了する時刻Taよりも前に、入力信号X、Yと乱数信号rを変更することができる。時刻Taは、論理回路1bの内部信号である出力線Z1の状態を観測して判断する必要があるが、本実施形態では、入力信号である制御信号en1の状態により、入力信号X、Yと乱数信号rを変更するタイミングを判断できる。そのため、論理回路1bは、入力信号X、Yと乱数信号rを変更するタイミングを容易に決定できる利点がある。   Further, the P net blocking unit 40a blocks a path from the power supply line VDD to the output line Z1 via the P net unit 11 in accordance with the control signal en1b (= NOT (en1)). Thereby, the input signals X and Y and the random number signal r can be changed before the time Ta at which the charging of the output line Z1 is completed. The time Ta needs to be determined by observing the state of the output line Z1, which is an internal signal of the logic circuit 1b. In this embodiment, the input signal X, Y and The timing for changing the random number signal r can be determined. Therefore, the logic circuit 1b has an advantage that the timing for changing the input signals X and Y and the random number signal r can be easily determined.

<第4の実施形態>
以下、本発明の第4の実施形態による情報記憶媒体について図面を参照して説明する。
図8は、本実施形態における情報記憶媒体(ICカード200)を示すブロック図である。
図8において、情報記憶媒体(ICカード200)は、制御部210、RAM(Random Access Memory)220、ROM(Read Only Memory)230、EEPROM(Electrically Erasable Programmable ROM)240、インタフェース部250、暗号処理部260、及び乱数生成部270を備える。ICカード200は、外部装置300とインタフェース部250を通じて接続される。また、制御部210、RAM220、ROM230、EEPROM240、インタフェース部250、暗号処理部260、及び乱数生成部270は、それぞれデータバスB1に接続される。
<Fourth Embodiment>
Hereinafter, an information storage medium according to a fourth embodiment of the present invention will be described with reference to the drawings.
FIG. 8 is a block diagram showing an information storage medium (IC card 200) in the present embodiment.
In FIG. 8, an information storage medium (IC card 200) includes a control unit 210, a RAM (Random Access Memory) 220, a ROM (Read Only Memory) 230, an EEPROM (Electrically Erasable Programmable ROM) 240, an interface unit 250, and an encryption processing unit. 260 and a random number generation unit 270. The IC card 200 is connected to the external device 300 through the interface unit 250. The control unit 210, the RAM 220, the ROM 230, the EEPROM 240, the interface unit 250, the encryption processing unit 260, and the random number generation unit 270 are each connected to the data bus B1.

制御部210は、ICカード200全体を制御する。RAM220は、制御部210が制御に使用する一時記憶情報を記憶する。ROM230は、制御部210のための制御プログラム及び定数情報などを記憶する。EEPROM240は、電気的に書き換え可能な不揮発性メモリであり、外部装置300からインタフェース部250を介して供給された情報や暗号処理又は復号処理に使用する秘密鍵などを記憶する。インタフェース部250は、外部装置300との情報の授受を行う。
暗号処理部260は、EEPROM240が記憶する秘密鍵に基づき、情報の暗号処理及び復号処理を行う。乱数生成部270は、乱数Rを生成し、暗号処理部260に供給する。
The control unit 210 controls the entire IC card 200. The RAM 220 stores temporary storage information used by the control unit 210 for control. The ROM 230 stores a control program for the control unit 210, constant information, and the like. The EEPROM 240 is an electrically rewritable nonvolatile memory, and stores information supplied from the external device 300 via the interface unit 250, a secret key used for encryption processing or decryption processing, and the like. The interface unit 250 exchanges information with the external device 300.
The encryption processing unit 260 performs information encryption processing and decryption processing based on the secret key stored in the EEPROM 240. The random number generation unit 270 generates a random number R and supplies it to the encryption processing unit 260.

図9は、本実施形態における暗号処理部260を示すブロック図である。
図9において、暗号処理部260は、入力データレジスタ261、暗号キーレジスタ262、制御レジスタ263、暗号復号回路264、及び出力データレジスタ265を備える。入力データレジスタ261は、制御部210によってデータバスB1を通じて供給される情報を記憶し、暗号復号回路264に供給する。制御部210によって供給される情報は、EEPROM240に記憶された情報やインタフェース部250を介して外部装置300から供給された情報などである。また、暗号キーレジスタ262は、制御部210によってデータバスB1を通じて供給される秘密鍵を記憶し、暗号復号回路264に供給する。また、制御レジスタ263は、制御部210によってデータバスB1を通じて供給される制御情報を記憶し、制御信号を暗号復号回路264に供給する。制御信号は、暗号復号回路264の暗号処理、及び復号処理の制御を行う。また、制御レジスタ263は、暗号復号回路264の状態を記憶する。暗号復号回路264の状態は、データバスB1を通じて制御部210によって参照される。
FIG. 9 is a block diagram showing the cryptographic processing unit 260 in the present embodiment.
9, the encryption processing unit 260 includes an input data register 261, an encryption key register 262, a control register 263, an encryption / decryption circuit 264, and an output data register 265. The input data register 261 stores information supplied by the control unit 210 through the data bus B1, and supplies the information to the encryption / decryption circuit 264. The information supplied by the control unit 210 is information stored in the EEPROM 240, information supplied from the external device 300 via the interface unit 250, or the like. The encryption key register 262 stores a secret key supplied by the control unit 210 through the data bus B1 and supplies the secret key to the encryption / decryption circuit 264. The control register 263 stores control information supplied by the control unit 210 through the data bus B1, and supplies a control signal to the encryption / decryption circuit 264. The control signal controls encryption processing and decryption processing of the encryption / decryption circuit 264. The control register 263 stores the state of the encryption / decryption circuit 264. The state of the encryption / decryption circuit 264 is referred to by the control unit 210 through the data bus B1.

暗号復号回路264は、第1の実施形態のAND回路である論理回路1(図1)を含む。暗号復号回路264は、図示は省略するが、論理回路1を含んだ基本論理回路ライブラリを用いて、暗号処理回路、及び復号処理回路が構成される。また、暗号復号回路264は、乱数生成部270から供給される乱数Rを論理回路1に乱数信号rとして供給する。また、論理回路1の制御信号en1及びen2は、暗号復号回路264の図示しないタイミングコントローラにより生成する。
また、暗号復号回路264は、制御レジスタ263から供給される制御信号に応じて、入力データレジスタ261から供給される情報を、暗号キーレジスタ262から供給される秘密鍵に基づき暗号処理又は復号処理する。その結果、暗号情報又は平文情報が生成される。暗号復号回路264は、生成した暗号情報又は平文情報を出力データレジスタ265に記憶させる。ここで、暗号処理又は復号処理する暗号方式は、例えば、DES(Data Encryption Standard)暗号とする。
出力データレジスタ265は、暗号復号回路264が生成した暗号情報又は平文情報を記憶する。暗号情報又は平文情報は、制御部210により、データバスB1を介して読み出され、ICカード200の情報処理に使用される。
The encryption / decryption circuit 264 includes a logic circuit 1 (FIG. 1) that is an AND circuit of the first embodiment. Although not shown, the encryption / decryption circuit 264 includes an encryption processing circuit and a decryption processing circuit using a basic logic circuit library including the logic circuit 1. Also, the encryption / decryption circuit 264 supplies the random number R supplied from the random number generation unit 270 to the logic circuit 1 as a random number signal r. The control signals en1 and en2 of the logic circuit 1 are generated by a timing controller (not shown) of the encryption / decryption circuit 264.
Further, the encryption / decryption circuit 264 performs encryption processing or decryption processing on the information supplied from the input data register 261 based on the secret key supplied from the encryption key register 262 in accordance with the control signal supplied from the control register 263. . As a result, encryption information or plaintext information is generated. The encryption / decryption circuit 264 stores the generated encryption information or plaintext information in the output data register 265. Here, the encryption method for performing the encryption process or the decryption process is, for example, DES (Data Encryption Standard) encryption.
The output data register 265 stores encryption information or plaintext information generated by the encryption / decryption circuit 264. The encrypted information or plaintext information is read by the control unit 210 via the data bus B1 and used for information processing of the IC card 200.

次に、本実施形態の動作について説明する。
ICカード200は、インタフェース部250を介して外部装置300と様々な情報の授受を行う。その様々な情報を授受する処理の中で、ICカード200は、秘匿情報を扱う場合に、暗号復号処理部260を使用して、暗号処理又は復号処理を行う。例えば、ICカード200と外部装置300の正当性を互いに確認する相互認証処理において、暗号処理又は復号処理を使用する。
暗号処理又は復号処理を行う場合、まず、制御部210が、EEPROM240に記憶された秘密鍵を、データバスB1を通じて暗号キーレジスタ262に記憶させる。また、制御部210は、暗号処理又は復号処理する情報を、データバスB1を通じて入力データレジスタ261に記憶させる。次に、制御部210は、データバスB1を通じて制御レジスタ263に制御コマンドを供給する。これにより、制御信号が暗号復号回路264に供給され、暗号処理又は復号処理が開始される。
Next, the operation of this embodiment will be described.
The IC card 200 exchanges various information with the external device 300 via the interface unit 250. In the process of exchanging various information, the IC card 200 performs encryption processing or decryption processing using the encryption / decryption processing unit 260 when handling confidential information. For example, encryption processing or decryption processing is used in mutual authentication processing that mutually confirms the validity of the IC card 200 and the external device 300.
When performing the encryption process or the decryption process, first, the control unit 210 stores the secret key stored in the EEPROM 240 in the encryption key register 262 through the data bus B1. In addition, the control unit 210 stores information to be encrypted or decrypted in the input data register 261 through the data bus B1. Next, the control unit 210 supplies a control command to the control register 263 through the data bus B1. Thereby, the control signal is supplied to the encryption / decryption circuit 264, and the encryption process or the decryption process is started.

暗号復号回路264は、制御信号を受けて、入力データレジスタ261が記憶する情報を、暗号キーレジスタ262が記憶する秘密鍵に基づき暗号処理又は復号処理を行う。この暗号処理又は復号処理を行う際に、暗号復号回路264を構成する論理回路1は、乱数信号rに応じて、論理回路1の出力線Z2(図1)の出力をランダムに遷移させる。また、論理回路1の動作は、第1の実施形態で説明した通りである。論理回路1の動作により、暗号復号回路264は、電力消費の統計値と秘密鍵の相関を無くすことができる。
また、暗号復号回路264は、暗号処理又は復号処理が完了した場合、生成した暗号情報又は平文情報を出力データレジスタ265に記憶させる。また、暗号復号回路264は、暗号処理又は復号処理が完了した状態にあることを、制御レジスタ263に記憶させる。制御部210は、制御レジスタ263を参照して、暗号処理又は復号処理が完了したことを検出する。制御部210は、暗号処理又は復号処理の完了を検出した場合、データバスB1を通じて出力データレジスタ265の情報を読み出して、EEPROM240に記憶させる、又はインタフェース部250を介して外部装置300に供給する。
In response to the control signal, the encryption / decryption circuit 264 performs encryption processing or decryption processing on the information stored in the input data register 261 based on the secret key stored in the encryption key register 262. When performing this encryption process or decryption process, the logic circuit 1 constituting the encryption / decryption circuit 264 randomly changes the output of the output line Z2 (FIG. 1) of the logic circuit 1 in accordance with the random number signal r. The operation of the logic circuit 1 is as described in the first embodiment. By the operation of the logic circuit 1, the encryption / decryption circuit 264 can eliminate the correlation between the statistical value of power consumption and the secret key.
The encryption / decryption circuit 264 stores the generated encryption information or plaintext information in the output data register 265 when the encryption process or the decryption process is completed. Also, the encryption / decryption circuit 264 stores in the control register 263 that the encryption process or the decryption process has been completed. The control unit 210 refers to the control register 263 and detects that the encryption process or the decryption process is completed. When the completion of the encryption process or the decryption process is detected, the control unit 210 reads the information in the output data register 265 through the data bus B1 and stores it in the EEPROM 240 or supplies it to the external device 300 through the interface unit 250.

以上のように、ICカード200は、制御部210、RAM220、ROM230、EEPROM240、インタフェース部250、暗号処理部260、及び乱数生成部270を備える。また、暗号処理部260は、入力データレジスタ261、暗号キーレジスタ262、制御レジスタ263、暗号復号回路264、及び出力データレジスタ265を備える。暗号復号回路264は、論理回路1を含み、制御レジスタ263から供給される制御信号に応じて、入力データレジスタ261から供給される情報を、暗号キーレジスタ262から供給される秘密鍵に基づき暗号処理又は復号処理する。そのため、ICカード200は、暗号処理又は復号処理において、論理回路1の充電経路の平均数が異なるために生じる電力消費波形の変化、及び論理回路の後段のゲートの動作タイミングが異なるために生じる電力消費波形の変化を低減できる。結果として、ICカード200は、電力消費の統計値と秘密鍵の相関を低減でき、電力解析攻撃を防止する効果が期待できる。   As described above, the IC card 200 includes the control unit 210, the RAM 220, the ROM 230, the EEPROM 240, the interface unit 250, the cryptographic processing unit 260, and the random number generation unit 270. The encryption processing unit 260 includes an input data register 261, an encryption key register 262, a control register 263, an encryption / decryption circuit 264, and an output data register 265. The encryption / decryption circuit 264 includes the logic circuit 1 and performs encryption processing on information supplied from the input data register 261 based on a secret key supplied from the encryption key register 262 in accordance with a control signal supplied from the control register 263. Alternatively, the decryption process is performed. Therefore, in the IC card 200, the power generated due to the change in the power consumption waveform caused by the difference in the average number of charging paths of the logic circuit 1 and the operation timing of the gate at the subsequent stage of the logic circuit in the encryption process or the decryption process Changes in the consumption waveform can be reduced. As a result, the IC card 200 can reduce the correlation between the statistical value of the power consumption and the secret key, and can expect the effect of preventing the power analysis attack.

<第5の実施形態>
以下、本発明の第5の実施形態による論理回路について図面を参照して説明する。
図10は、本実施形態における論理回路を示すブロック図である。
図10に示される論理回路1cは、図1に示される論理回路1にORAND(論理和論理積)論理演算を行う複合ゲートを適用した一形態である。論理回路1cは、論理演算回路10a、出力制御部20及び出力段回路30を備える。この図において、図1と同じ構成には同一の符号を付す。
論理演算回路10aは、電源線VDDと電源線GNDとの間に配置され、Pネット部11aとNネット部12aを備える。論理演算回路10aは、入力信号X、Y、Wと乱数信号rに基づき、Pネット部11aとNネット部12aとが相補に動作して生成される出力論理状態を出力線Z1に出力する。
Pネット部11aは、電源線VDDと出力線Z1との間に配置され、入力信号X、Y、Wと乱数信号rとに基づいて電源線VDDの電位により出力線Z1を充電し、論理レベル“1”を出力する。
Nネット部12aは、出力線Z1と電源線GNDとの間に配置され、入力信号X、Y、Wと乱数信号rとに基づいて電源線GNDの電位により出力線Z1を放電し、論理レベル“0”を出力する。
<Fifth Embodiment>
Hereinafter, a logic circuit according to a fifth embodiment of the present invention will be described with reference to the drawings.
FIG. 10 is a block diagram showing a logic circuit in the present embodiment.
The logic circuit 1c shown in FIG. 10 is a form in which a composite gate that performs an ORAND (logical sum AND) logic operation is applied to the logic circuit 1 shown in FIG. The logic circuit 1c includes a logic operation circuit 10a, an output control unit 20, and an output stage circuit 30. In this figure, the same components as those in FIG.
The logical operation circuit 10a is disposed between the power supply line VDD and the power supply line GND, and includes a P net unit 11a and an N net unit 12a. Based on the input signals X, Y, W and the random number signal r, the logic operation circuit 10a outputs an output logic state generated by the complementary operation of the P net unit 11a and the N net unit 12a to the output line Z1.
The P net unit 11a is arranged between the power supply line VDD and the output line Z1, charges the output line Z1 with the potential of the power supply line VDD based on the input signals X, Y, W and the random number signal r, and has a logic level. Outputs “1”.
The N net portion 12a is disposed between the output line Z1 and the power supply line GND, and discharges the output line Z1 by the potential of the power supply line GND based on the input signals X, Y, W and the random number signal r, and has a logic level. Outputs “0”.

Pネット部11aは、PMOS111a〜115a、116、117を備える。PMOS111a、112a、115aは、電源線VDDと出力線Z1との間に直列に配置される。PMOS111aは、ソース端子が電源線VDDに、ドレイン端子がノードN1aにそれぞれ接続され、ゲート端子に入力信号Xが供給される。PMOS112aは、ソース端子がノードN1a、ドレイン端子がノードN8にそれぞれ接続され、ゲート端子に入力信号Yが供給される。PMOS115aは、ソース端子がノードN8に、ドレイン端子が出力線Z1にそれぞれ接続され、ゲート端子に乱数信号rが供給される。また、PMOS116は、PMOS111a、112aと並列に配置される。PMOS116は、ソース端子が電源線VDDに、ドレイン端子がノードN8にそれぞれ接続され、ゲート端子に入力信号Wが供給される。
また、PMOS113a、114aは、電源線VDDとノードN2aとの間に並列に接続される。PMOS113aは、ソース端子が電源線VDDに、ドレイン端子がノードN2aにそれぞれ接続され、ゲート端子に入力信号Xが供給される。PMOS114aは、ソース端子が電源線VDDに、ドレイン端子がノードN2aにそれぞれ接続され、ゲート端子に入力信号Yが供給される。
また、PMOS117は、ソース端子がノードN2aに、ドレイン端子が出力線Z1にそれぞれ接続され、ゲート端子に入力信号Wが供給される。
The P net unit 11a includes PMOSs 111a to 115a, 116, and 117. The PMOSs 111a, 112a, and 115a are arranged in series between the power supply line VDD and the output line Z1. The PMOS 111a has a source terminal connected to the power supply line VDD, a drain terminal connected to the node N1a, and an input signal X supplied to the gate terminal. The PMOS 112a has a source terminal connected to the node N1a, a drain terminal connected to the node N8, and an input signal Y supplied to the gate terminal. The PMOS 115a has a source terminal connected to the node N8, a drain terminal connected to the output line Z1, and a random number signal r supplied to the gate terminal. The PMOS 116 is disposed in parallel with the PMOSs 111a and 112a. The PMOS 116 has a source terminal connected to the power supply line VDD, a drain terminal connected to the node N8, and an input signal W supplied to the gate terminal.
The PMOSs 113a and 114a are connected in parallel between the power supply line VDD and the node N2a. The PMOS 113a has a source terminal connected to the power supply line VDD, a drain terminal connected to the node N2a, and an input signal X supplied to the gate terminal. The PMOS 114a has a source terminal connected to the power supply line VDD, a drain terminal connected to the node N2a, and an input signal Y supplied to the gate terminal.
The PMOS 117 has a source terminal connected to the node N2a, a drain terminal connected to the output line Z1, and an input signal W supplied to the gate terminal.

Nネット部12aは、NMOS121a〜125a、126、127を備える。NMOS121a、122a、125aは、出力線Z1とノードN4との間に直列に配置される。NMOS121aは、ソース端子がノードN3aに、ドレイン端子がノードN9にそれぞれ接続され、ゲート端子に入力信号Xが供給される。NMOS122aは、ソース端子がノードN4、ドレイン端子がノードN3aにそれぞれ接続され、ゲート端子に入力信号Yが供給される。NMOS125aは、ソース端子がノードN9に、ドレイン端子が出力線Z1にそれぞれ接続され、ゲート端子に乱数信号rが供給される。また、NMOS126は、NMOS121a、122aと並列に配置される。NMOS126は、ソース端子がノードN4に、ドレイン端子がノードN9にそれぞれ接続され、ゲート端子に入力信号Wが供給される。
また、NMOS123a、124aは、ノードN5aとノードN4との間に並列に接続される。NMOS123aは、ソース端子がノードN4に、ドレイン端子がノードN5aにそれぞれ接続され、ゲート端子に入力信号Xが供給される。NMOS124aは、ソース端子がノードN4に、ドレイン端子がノードN5aにそれぞれ接続され、ゲート端子に入力信号Yが供給される。
また、NMOS127は、ソース端子がノードN5aに、ドレイン端子が出力線Z1にそれぞれ接続され、ゲート端子に入力信号Wが供給される。
The N net unit 12a includes NMOSs 121a to 125a, 126, and 127. The NMOSs 121a, 122a, and 125a are arranged in series between the output line Z1 and the node N4. The NMOS 121a has a source terminal connected to the node N3a, a drain terminal connected to the node N9, and an input signal X supplied to the gate terminal. The NMOS 122a has a source terminal connected to the node N4, a drain terminal connected to the node N3a, and an input signal Y supplied to the gate terminal. The NMOS 125a has a source terminal connected to the node N9, a drain terminal connected to the output line Z1, and a random number signal r supplied to the gate terminal. The NMOS 126 is arranged in parallel with the NMOSs 121a and 122a. The NMOS 126 has a source terminal connected to the node N4, a drain terminal connected to the node N9, and an input signal W supplied to the gate terminal.
The NMOSs 123a and 124a are connected in parallel between the node N5a and the node N4. The NMOS 123a has a source terminal connected to the node N4, a drain terminal connected to the node N5a, and an input signal X supplied to the gate terminal. The NMOS 124a has a source terminal connected to the node N4, a drain terminal connected to the node N5a, and an input signal Y supplied to the gate terminal.
The NMOS 127 has a source terminal connected to the node N5a, a drain terminal connected to the output line Z1, and an input signal W supplied to the gate terminal.

次に、本実施形態の動作について説明する。
論理回路1cは、入力信号a、b、cをORAND(論理和論理積)演算した出力dを得るためのORAND回路である。論理回路1cの入力信号X、Y、Wは、入力信号a、b、cと、乱数信号rとをそれぞれXOR(排他的論理和)演算された値である(X=a XOR r、Y=b XOR r、W=c XOR r)。また、論理回路1cの出力線Z2の出力z2は、同じく乱数rと出力dをXOR演算した値である(z2=d XOR r)。入力a、b、cをXOR演算する乱数信号rと出力dをXOR演算する乱数信号rは同じ値であり、乱数信号rはゲート動作ごとに毎回異なる値にする。
Next, the operation of this embodiment will be described.
The logic circuit 1c is an ORAND circuit for obtaining an output d obtained by performing an ORAND (logical sum product) operation on the input signals a, b, and c. The input signals X, Y, and W of the logic circuit 1c are values obtained by performing an XOR (exclusive OR) operation on the input signals a, b, and c and the random number signal r (X = a XOR r, Y = b XOR r, W = c XOR r). Similarly, the output z2 of the output line Z2 of the logic circuit 1c is a value obtained by XORing the random number r and the output d (z2 = d XOR r). The random number signal r for XORing the inputs a, b, and c and the random number signal r for XORing the output d have the same value, and the random number signal r is set to a different value every time the gate operation is performed.

また、論理演算回路10aは、入力信号a、b、cをORNAND(論理和否定論理積)演算した結果を乱数信号rとXOR演算した出力z1を得るためのORNAND/ANDNOR(論理積否定論理和)演算回路である。乱数信号rが“0”の場合、論理演算回路10aは、入力信号X、Y、WのORNAND演算回路として機能する(z1=(X OR Y)NAND W)。また、乱数信号rが“1”の場合、論理演算回路10aは、入力信号X、Y、WのANDNOR演算回路として機能する(z1=(X AND Y)NOR W)。その原理は、式(4)から式(6)に示される。   Further, the logical operation circuit 10a performs an ORAND / ANDNOR (logical NAND operation) to obtain an output z1 obtained by performing an XOR operation with the random signal r on the result of performing an ORAND (logical OR operation) on the input signals a, b, and c. ) Arithmetic circuit. When the random number signal r is “0”, the logic operation circuit 10a functions as an ORAND operation circuit for the input signals X, Y, and W (z1 = (XORY) NAND W). When the random number signal r is “1”, the logic operation circuit 10a functions as an ANDNOR operation circuit for the input signals X, Y, and W (z1 = (X AND Y) NOR W). The principle is shown in equations (4) to (6).

z1=((a OR b) NAND c) XOR r ・・・(4)   z1 = ((a OR b) NAND c) XOR r (4)

式(4)は、論理演算回路10aの論理演算を示す式である。   Expression (4) is an expression indicating a logical operation of the logical operation circuit 10a.

[r=“0”の場合]
X=a XOR r=a、Y=b XOR r=b、W=c XOR r=c、
z1=((a OR b) NAND c)XOR r=(X OR Y) NAND W ・・・(5)
[When r = "0"]
X = a XOR r = a, Y = b XOR r = b, W = c XOR r = c,
z1 = ((a OR b) NAND c) XOR r = (X OR Y) NAND W (5)

式(5)は、乱数信号rが“0”の場合における論理演算回路10aの論理演算を示す式である。乱数信号rが“0”の場合、入力信号a、b、cはそれぞれ入力信号X、Y、Wと等しくなる。このため、論理演算回路10aの出力線Z1の論理は、入力信号X、Y、WのORNAND演算したものになる。   Expression (5) is an expression showing a logical operation of the logical operation circuit 10a when the random number signal r is “0”. When the random number signal r is “0”, the input signals a, b, and c are equal to the input signals X, Y, and W, respectively. Therefore, the logic of the output line Z1 of the logic operation circuit 10a is obtained by performing an ORAND operation on the input signals X, Y, and W.

[r=“1”の場合]
X=a XOR r=NOT(a)、Y=b XOR r=NOT(b)、W=c XOR r=NOT(c)、
z1=NOT((NOT(X) OR NOT(Y))NAND NOT(W))=NOT((X AND Y)OR W)=(X AND Y)NOR W ・・・(6)
[When r = “1”]
X = a XOR r = NOT (a), Y = b XOR r = NOT (b), W = c XOR r = NOT (c),
z1 = NOT ((NOT (X) OR NOT (Y)) NAND NOT (W)) = NOT ((X AND Y) OR W) = (X AND Y) NOR W (6)

式(6)は、乱数信号rが“1”の場合における論理演算回路10aの論理演算を示す式である。乱数信号rが“1”の場合、入力信号a、b、cはそれぞれ入力信号X、Y、WのNOT演算した値になる。このため、論理演算回路10aの出力線Z1の論理は、入力信号X、Y、WをそれぞれNOT演算したものをORNAND演算し、更にその演算結果をNOT演算したものになる。ト゛・モルガンの定理により、((NOT(X) OR NOT(Y))NAND NOT(W))は、入力信号X、Y、WのANDOR(論理積論理和)演算((X AND Y)OR W)に置き換えられる。これにより、論理演算回路10aの出力線Z1の論理は、入力信号X、Y、WのANDNOR演算したものになる。   Expression (6) is an expression showing a logical operation of the logical operation circuit 10a when the random number signal r is “1”. When the random number signal r is “1”, the input signals a, b, and c are values obtained by NOT calculation of the input signals X, Y, and W, respectively. For this reason, the logic of the output line Z1 of the logic operation circuit 10a is obtained by performing an ORNAND operation on each of the input signals X, Y, and W, and further performing a NOT operation on the operation result. According to De Morgan's theorem, ((NOT (X) OR NOT (Y)) NAND NOT (W)) is an ANDOR (logical AND) operation ((X AND Y) OR of the input signals X, Y and W. W). As a result, the logic of the output line Z1 of the logic operation circuit 10a is an ANDNOR operation of the input signals X, Y, and W.

論理演算回路10aは、乱数信号rが“0”の場合、Pネット部11aのPMOS115aがオンして、PMOS111a、112a、116が有効になる。また、Nネット部12aのNMOS125aがオフして、NMOS121a、122a、126が無効になる。これにより、出力線Z1は、PMOS111a、112a、116と、NMOS123a、124a、127とで論理演算される出力論理状態が出力される。つまり、論理演算回路10aは、入力信号X、Y、WのORNAND演算回路として機能する。なお、この場合、PMOS113a、114a、117は、出力論理状態を決める際に関係しない。
また、論理演算回路10aは、乱数信号rが“1”の場合、Pネット部11aのPMOS115aがオフして、111a、112a、116が無効になる。また、Nネット部12aのNMOS125aがオンして、NMOS121a、122a、126が有効になる。これにより、出力線Z1は、NMOS121a、122a、126と、PMOS113a、114a、117とで論理演算される出力論理状態が出力される。つまり、論理演算回路10aは、入力信号X、Y、WのANDNOR演算回路として機能する。なお、この場合、NMOS123a、124a、127は、出力論理状態を決める際に関係しない。
In the logical operation circuit 10a, when the random number signal r is “0”, the PMOS 115a of the P net unit 11a is turned on, and the PMOSs 111a, 112a, and 116 are enabled. Further, the NMOS 125a of the N net portion 12a is turned off, and the NMOSs 121a, 122a, and 126 are disabled. As a result, the output line Z1 outputs an output logic state that is logically operated by the PMOSs 111a, 112a, and 116 and the NMOSs 123a, 124a, and 127. That is, the logic operation circuit 10a functions as an ORAND operation circuit for the input signals X, Y, and W. In this case, the PMOSs 113a, 114a, and 117 are not involved in determining the output logic state.
Further, in the logical operation circuit 10a, when the random number signal r is “1”, the PMOS 115a of the P net unit 11a is turned off, and 111a, 112a, and 116 become invalid. Further, the NMOS 125a of the N net portion 12a is turned on, and the NMOSs 121a, 122a, and 126 are enabled. As a result, the output line Z1 outputs an output logic state that is logically operated by the NMOSs 121a, 122a, and 126 and the PMOSs 113a, 114a, and 117. That is, the logic operation circuit 10a functions as an ANDNOR operation circuit for the input signals X, Y, and W. In this case, the NMOSs 123a, 124a, and 127 are not involved in determining the output logic state.

論理演算回路10aにより論理演算された出力z1は、出力線Z1を介して出力段回路30に供給される。出力段回路30は、出力z1の出力論理状態を反転して、出力線Z2に出力z2として出力する。これにより、論理回路1cは、乱数信号rに応じて、入力信号X、Y、WのORAND演算結果(z2=(X OR Y)AND W)、又は入力信号X、Y、WのANDOR演算結果(z2=(X AND Y)OR W)を出力線Z2に出力する。   The output z1 logically operated by the logical operation circuit 10a is supplied to the output stage circuit 30 via the output line Z1. The output stage circuit 30 inverts the output logic state of the output z1 and outputs it as the output z2 to the output line Z2. As a result, the logic circuit 1c causes the ORAND operation result of the input signals X, Y, and W (z2 = (XORY) AND W) or the ANDOR operation result of the input signals X, Y, and W according to the random number signal r. (Z2 = (X AND Y) OR W) is output to the output line Z2.

図11は、本実施形態における論理回路1cの論理表を示す図である。
図11において、入力信号X、Y、Wの組合せ8通りと乱数信号rの組合せを合わせた16通りの組合せに応じて、出力線Z2の出力z2の状態を示している。乱数信号rの値に応じて、出力z2が論理反転していることがわかる。乱数信号rはランダムに値が変わるため、入力信号a、b、cが同じであっても、出力z2がランダムに変動する。
FIG. 11 is a diagram showing a logic table of the logic circuit 1c in the present embodiment.
In FIG. 11, the state of the output z2 of the output line Z2 is shown according to 16 combinations of 8 combinations of the input signals X, Y, and W and combinations of the random number signal r. It can be seen that the output z2 is logically inverted according to the value of the random number signal r. Since the value of the random signal r changes randomly, the output z2 varies randomly even if the input signals a, b, and c are the same.

論理回路1cにおける、入力信号X、Y、W、乱数信号r、及び制御信号en1、en2の制御シーケンスは、図3が示すタイムチャートと同様である。入力信号Wは、入力信号X、Yと同じタイミング(時刻T2から時刻T3)で変更する。   The control sequence of the input signals X, Y, W, the random number signal r, and the control signals en1, en2 in the logic circuit 1c is the same as that in the time chart shown in FIG. The input signal W is changed at the same timing (time T2 to time T3) as the input signals X and Y.

以上のように、出力制御部20が、制御信号en1に応じて論理演算回路10aの出力線Z1の出力状態を制御する。出力制御部20は、出力無効状態にある場合に、NMOS22により論理演算回路10aの出力線Z1から電源線GNDに通じる経路を遮断し、PMOS21により電源線VDDと出力線Z1とを導通して、H状態に充電する。これにより、入力信号の組合せによらず、充電経路の数がPMOS21による1本になる。そのため、論理回路1cは、充電経路の平均数が異なるために生じる電力消費波形の変化を低減できる。これにより、入力信号a、b、cと相関する電力消費波形の統計的結果の変化を低減できる。
また、論理演算回路10aの後段に設けられた出力段回路30が、制御信号en2に応じてマスク状態に切り替わる。出力段回路30は、マスク状態にある場合に、出力線Z1の出力状態を無効にして論理回路1cの出力線Z2をL状態に保持する。これにより、論理回路1cは、論理演算回路10aの出力線の動作タイミングの変化をマスクし、論理回路1cの後段のゲートの動作タイミングの変化を低減できる。そのため、論理回路1cは、後段のゲートの動作タイミングが異なるために生じる電力消費波形の変化を低減できる。これにより、入力信号a、b、cと相関する電力消費波形の変化を低減できる。
As described above, the output control unit 20 controls the output state of the output line Z1 of the logic operation circuit 10a according to the control signal en1. When the output control unit 20 is in an output invalid state, the NMOS 22 interrupts the path from the output line Z1 of the logic operation circuit 10a to the power supply line GND, and the PMOS 21 connects the power supply line VDD and the output line Z1. Charge to H state. As a result, the number of charging paths is one by the PMOS 21 regardless of the combination of input signals. Therefore, the logic circuit 1c can reduce the change in the power consumption waveform that occurs because the average number of charging paths is different. Thereby, the change of the statistical result of the power consumption waveform correlated with the input signals a, b, and c can be reduced.
Further, the output stage circuit 30 provided in the subsequent stage of the logical operation circuit 10a switches to the mask state in accordance with the control signal en2. When in the mask state, the output stage circuit 30 invalidates the output state of the output line Z1 and holds the output line Z2 of the logic circuit 1c in the L state. Thereby, the logic circuit 1c masks the change in the operation timing of the output line of the logic operation circuit 10a, and can reduce the change in the operation timing of the gate in the subsequent stage of the logic circuit 1c. Therefore, the logic circuit 1c can reduce the change in the power consumption waveform that occurs because the operation timing of the subsequent gate is different. Thereby, the change of the power consumption waveform correlated with the input signals a, b, and c can be reduced.

なお、本発明の実施形態によれば、論理回路1(又は1a、1b、1cのいずれか)は、電源線VDDの電位が供給され、電源線VDDの電位より低い電源線GNDの電位が供給され、入力される入力信号X、Y(又はX、Y、W)と乱数信号rとに基づいて生成される出力論理状態を出力線Z1に出力する論理演算回路10(又は10a)と、入力される制御信号en1に応じて出力線Z1の出力状態を制御し、出力論理状態を無効とする出力無効状態である場合に、出力線Z1から電源線GNDに通じる経路を遮断し、電源線VDDの電位により出力線Z1を充電する出力制御部20と、論理演算回路10(又は10a)の後段に設けられ、出力線Z1の出力状態に基づいて出力する状態を無効とするマスク状態に、入力される制御信号en2に応じて切り替える出力段回路30とを備える。
これにより、入力信号X、Y(又はX、Y、W)の組合せによらず、充電経路の数がPMOS21による1本になる。そのため、論理回路1(又は1a、1b、1cのいずれか)は、充電経路の平均数が異なるために生じる電力消費波形の変化を低減できる。
また、論理回路1(又は1a、1b、1cのいずれか)は、出力段回路30により、論理演算回路10(又は10a)の出力線Z1の動作タイミングの変化をマスクし、論理回路1(又は1a、1b、1cのいずれか)の後段のゲートの動作タイミングの変化を低減できる。そのため、論理回路1(又は1a、1b、1cのいずれか)は、後段のゲートの動作タイミングが異なるために生じる電力消費波形の変化を低減できる。
According to the embodiment of the present invention, the logic circuit 1 (or any one of 1a, 1b, and 1c) is supplied with the potential of the power supply line VDD and supplied with the potential of the power supply line GND lower than the potential of the power supply line VDD. A logic operation circuit 10 (or 10a) for outputting an output logic state generated based on the input signals X, Y (or X, Y, W) and the random number signal r inputted to the output line Z1; In response to the control signal en1, the output state of the output line Z1 is controlled, and when the output logic state is invalid, the path leading from the output line Z1 to the power supply line GND is interrupted, and the power supply line VDD The output control unit 20 that charges the output line Z1 with the potential of the output and the mask state that is provided in the subsequent stage of the logic operation circuit 10 (or 10a) and invalidates the output state based on the output state of the output line Z1. Control signal And an output stage circuit 30 to switch in response to n2.
As a result, the number of charging paths is one by the PMOS 21, regardless of the combination of the input signals X, Y (or X, Y, W). Therefore, the logic circuit 1 (or any one of 1a, 1b, and 1c) can reduce the change in the power consumption waveform caused by the difference in the average number of charging paths.
Further, the logic circuit 1 (or any one of 1a, 1b, and 1c) masks a change in the operation timing of the output line Z1 of the logic operation circuit 10 (or 10a) by the output stage circuit 30, and the logic circuit 1 (or 1a, 1b, and 1c), the change in the operation timing of the subsequent stage gate can be reduced. Therefore, the logic circuit 1 (or any one of 1a, 1b, and 1c) can reduce the change in the power consumption waveform that occurs because the operation timing of the subsequent gate is different.

また、出力制御部20は、出力無効状態を解除した場合、出力線Z1から電源線GNDに通じる経路を導通させ、生成される論理状態に応じて、電源線GNDの電位により出力線Z1を放電する。
また、論理演算回路10(又は、10a)は、入力信号X、Y(又はX、Y、W)と乱数信号rとに基づいて電源線VDDの電位により出力線Z1を充電するPネット部11(又は11a)と、入力信号X、Y(又はX、Y、W)と乱数信号rとに基づいて電源線GNDの電位により出力線Z1を放電するNネット部12(又は12a)とが相補に動作して出力論理状態を生成する。また、出力線Z1から電源線GNDに通じる経路は、出力線Z1からNネット部12(又は12a)を介して電源線GNDに通じる経路である。
これにより、出力線Z1の負荷容量を電源線GNDに放電することで、論理演算回路10(又は10a)の出力論理状態になる。この放電電流は、論理回路1内で消費されるため、外部からの電力消費として観測されない。論理演算回路10(又は10a)の出力論理状態を決める際に、電力消費波形に影響を与えない。
Further, when the output invalid state is canceled, the output control unit 20 conducts the path from the output line Z1 to the power supply line GND, and discharges the output line Z1 by the potential of the power supply line GND according to the generated logic state. To do.
In addition, the logical operation circuit 10 (or 10a) charges the output line Z1 with the potential of the power supply line VDD based on the input signals X, Y (or X, Y, W) and the random number signal r. (Or 11a) is complementary to the N net portion 12 (or 12a) that discharges the output line Z1 by the potential of the power supply line GND based on the input signals X, Y (or X, Y, W) and the random number signal r. To generate an output logic state. Further, the path leading from the output line Z1 to the power supply line GND is a path leading from the output line Z1 to the power supply line GND via the N net unit 12 (or 12a).
As a result, by discharging the load capacity of the output line Z1 to the power supply line GND, the output logic state of the logic operation circuit 10 (or 10a) is obtained. Since this discharge current is consumed in the logic circuit 1, it is not observed as power consumption from the outside. When determining the output logic state of the logic operation circuit 10 (or 10a), the power consumption waveform is not affected.

また、論理回路1a(又は1b)は、制御信号en1(en1b)(又は制御信号en2)に応じて、電源線VDDからPネット部11を介して出力線Z1に通じる経路を遮断するPネット遮断部40(又は40a)を備える。
これにより、出力制御部20が電源線VDDの電位により出力線Z1を充電する際に、Pネット部11を出力線Z1から遮断することができる。そのため、出力制御部20は、入力信号X、Yと乱数信号rの状態によらず、PMOS21により1本の経路により出力線Z1を充電することができる。
The logic circuit 1a (or 1b) also shuts off the P net that cuts off the path from the power line VDD to the output line Z1 via the P net unit 11 in response to the control signal en1 (en1b) (or control signal en2). The unit 40 (or 40a) is provided.
Thereby, when the output control part 20 charges the output line Z1 with the electric potential of the power supply line VDD, the P net | network part 11 can be interrupted | blocked from the output line Z1. Therefore, the output control unit 20 can charge the output line Z1 through one path by the PMOS 21 regardless of the states of the input signals X and Y and the random number signal r.

また、入力信号X、Y(又はX、Y、W)及び乱数信号rは、出力制御部20が出力無効状態にあり、出力線Z1が電源線VDDの電位になった後に、変更される。出力制御部20は、入力信号X、Y(又はX、Y、W)及び乱数信号rの変更が確定した後に、制御信号en1に基づいて出力無効状態を解除する。出力段回路30は、出力無効状態が解除され、出力線Z1の出力状態が確定した後に、制御信号en2に基づいてマスク状態を解除する。
これにより、入力信号X、Y(又はX、Y、W)及び乱数信号rが遷移する際に消費される電力を低減し、入力信号X、Y(又はX、Y、W)の組合せによらず確実に、充電経路をPMOS21による1本にできる。そのため、論理回路1(又は1a、1b、1cのいずれか)は、充電経路の平均数が異なるために生じる電力消費波形の変化をより低減できる。また、論理演算回路10(又は10a)の出力線Z1の動作タイミングの変化を確実にマスクできる。そのため、論理回路1(又は1a、1b、1cのいずれか)の後段のゲートの動作タイミングの変化をより低減できる。
The input signals X, Y (or X, Y, W) and the random number signal r are changed after the output control unit 20 is in an output invalid state and the output line Z1 becomes the potential of the power supply line VDD. The output control unit 20 cancels the output invalid state based on the control signal en1 after the change of the input signals X, Y (or X, Y, W) and the random number signal r is confirmed. The output stage circuit 30 releases the mask state based on the control signal en2 after the output invalid state is released and the output state of the output line Z1 is determined.
This reduces the power consumed when the input signals X, Y (or X, Y, W) and the random number signal r transition, and depends on the combination of the input signals X, Y (or X, Y, W). Therefore, the charging path can be made one by the PMOS 21 without fail. Therefore, the logic circuit 1 (or any one of 1a, 1b, and 1c) can further reduce the change in the power consumption waveform caused by the difference in the average number of charging paths. Further, a change in the operation timing of the output line Z1 of the logic operation circuit 10 (or 10a) can be reliably masked. Therefore, it is possible to further reduce the change in the operation timing of the subsequent gate of the logic circuit 1 (or any one of 1a, 1b, and 1c).

また、入力信号X、Y及び乱数信号rは、出力制御部20が出力無効状態にあり、Pネット遮断部40(又は40a)が電源線VDDからPネット部11を介して出力線Z1に通じる経路を遮断した後に変更される。出力制御部20は、入力信号X、Y及び乱数信号rの変更が確定した後に、制御信号en1に基づいて出力無効状態を解除する。出力段回路30は、出力無効状態が解除され、出力線Z1の出力状態が確定した後に、制御信号en1に基づいてマスク状態を解除する。
これにより、入力信号X、Y及び乱数信号rの変更タイミングを早めることができる。また、入力信号である制御信号en1(又はen2)の状態により、入力信号X、Yと乱数信号rを変更するタイミングを判断できる。そのため、論理回路1a(又は1b)は、入力信号X、Yと乱数信号rを変更するタイミングを容易に決定できる利点がある。
Further, the input signals X and Y and the random number signal r are in an output invalid state by the output control unit 20, and the P net blocking unit 40 (or 40a) communicates from the power supply line VDD to the output line Z1 via the P net unit 11. It is changed after the route is blocked. The output control unit 20 cancels the output invalid state based on the control signal en1 after the change of the input signals X and Y and the random number signal r is confirmed. The output stage circuit 30 releases the mask state based on the control signal en1 after the output invalid state is released and the output state of the output line Z1 is determined.
Thereby, the change timing of the input signals X and Y and the random number signal r can be advanced. Further, the timing for changing the input signals X and Y and the random number signal r can be determined based on the state of the control signal en1 (or en2) that is an input signal. Therefore, the logic circuit 1a (or 1b) has an advantage that the timing for changing the input signals X and Y and the random number signal r can be easily determined.

また、論理演算回路10(又は10a)は、入力信号X、Y(又はX、Y、W)に基づいて予め定められた論理演算処理に応じた論理状態を生成し、乱数信号rに基づき、入力信号X、Y(又はX、Y、W)を反転させた論理演算処理を行うか否か、及び出力論理状態を論理状態から反転したものにするか否かを切り替える。
これにより、論理演算回路10(又は10a)は、乱数信号rに基づき、NAND論理演算とNOR論理演算(又はORNAND論理演算とANDNOR論理演算)を切り替えることができる。そのため、論理回路1(又は1a、1b、1cのいずれか)は、出力線Z2の出力z2を乱数rによりランダムに遷移させることができる。
The logic operation circuit 10 (or 10a) generates a logic state corresponding to a predetermined logic operation process based on the input signals X, Y (or X, Y, W), and based on the random number signal r. It is switched whether or not to perform a logical operation process by inverting the input signals X and Y (or X, Y and W) and whether or not to change the output logic state from the logic state.
Thereby, the logical operation circuit 10 (or 10a) can switch between the NAND logical operation and the NOR logical operation (or the ORNAND logical operation and the ANDNOR logical operation) based on the random number signal r. Therefore, the logic circuit 1 (or any one of 1a, 1b, and 1c) can change the output z2 of the output line Z2 at random with the random number r.

また、本発明の実施形態によれば、ICカード200は、秘密鍵と情報を記憶するEEPROM240と、乱数信号Rを生成する乱数生成部270と、論理回路(1、1a、1b、1cの少なくともいずれか)を含み、秘密鍵に応じて暗号処理又は復号処理の少なくともいずれか一方を行う暗号処理部260とを備える。
これにより、ICカード200は、暗号処理又は復号処理において、論理回路1(又は1a、1b、1cのいずれか)の充電経路の平均数が異なるために生じる電力消費波形の変化、及び論理回路の後段のゲートの動作タイミングが異なるために生じる電力消費波形の変化を低減できる。結果として、ICカード200は、電力消費の統計値と秘密鍵の相関を低減でき、電力解析攻撃を防止する効果が期待できる。
Further, according to the embodiment of the present invention, the IC card 200 includes an EEPROM 240 that stores a secret key and information, a random number generation unit 270 that generates a random number signal R, and at least logic circuits (1, 1a, 1b, 1c). And an encryption processing unit 260 that performs at least one of encryption processing and decryption processing according to a secret key.
Thereby, the IC card 200 changes the power consumption waveform caused by the difference in the average number of charging paths of the logic circuit 1 (or any of 1a, 1b, and 1c) in the encryption process or the decryption process, and the logic circuit It is possible to reduce the change in the power consumption waveform caused by the operation timing of the subsequent stage gates being different. As a result, the IC card 200 can reduce the correlation between the statistical value of the power consumption and the secret key, and can expect the effect of preventing the power analysis attack.

なお、本発明は、上記の各実施形態に限定されるものではなく、本発明の趣旨を逸脱しない範囲で変更可能である。Pネット部11、11a、Nネット部12、12aは、各実施形態に限定されるものではなく、例えば、直列接続されたNMOS又はPMOSの接続順序は別の順序で接続された形態でも良い。また、論理演算回路10、10aは、NAND/NOR演算回路とORNAND/ANDNOR演算回路の形態を説明したが、これに限定されるものではなく、他の論理演算を行う形態でも良い。
また、論理演算回路10、10aにおいて、乱数信号rの代わりに乱数信号rの反転信号を使用しても良い。例えば、論理演算回路10に乱数信号rの反転信号を使用した場合、論理演算回路10は、乱数信号rが“0”の場合にNOR論理、乱数信号rが“1”の場合にNAND論理となり、異なる論理演算を行う論理演算回路(NOR/NAND演算回路)に容易に変更することができる。論理演算回路10aに乱数信号rの反転信号を使用した場合、ANDNOR/ORNAND演算回路となる。
また、出力段回路30の出力段制御部32は、マスク状態の場合に出力線Z2を“0”に保持する形態を説明したが、PMOS321とNMOS322の位置を変えて“1”を保持する形態でも良い。ただしこの場合、制御信号en2の論理を反転する必要がある。
The present invention is not limited to the above embodiments, and can be modified without departing from the spirit of the present invention. The P net units 11 and 11a and the N net units 12 and 12a are not limited to the embodiments. For example, the connection order of the NMOS or PMOS connected in series may be connected in a different order. Further, although the logic operation circuits 10 and 10a have been described as being NAND / NOR operation circuits and ORNAND / ANDNOR operation circuits, the present invention is not limited to this, and other logic operations may be performed.
Further, in the logic operation circuits 10 and 10a, an inverted signal of the random number signal r may be used instead of the random number signal r. For example, when an inverted signal of the random number signal r is used for the logic operation circuit 10, the logic operation circuit 10 becomes NOR logic when the random number signal r is “0”, and becomes NAND logic when the random number signal r is “1”. It can be easily changed to a logic operation circuit (NOR / NAND operation circuit) that performs different logic operations. When an inverted signal of the random number signal r is used for the logical operation circuit 10a, an ANDNOR / ORNAND operation circuit is obtained.
Further, the output stage control unit 32 of the output stage circuit 30 has been described in the form in which the output line Z2 is held at “0” in the mask state, but the form in which the positions of the PMOS 321 and the NMOS 322 are changed to hold “1”. But it ’s okay. However, in this case, it is necessary to invert the logic of the control signal en2.

また、Pネット遮断部40(又は40a)は、Pネット部11と出力線Z1の間に配置する形態を説明したが、電源線VDDとPネット部11の間に配置する形態でも良い。また、NMOS22は、Nネット部12(又は12a)と電源線GNDの間に配置する形態を説明したが、出力線Z1とNネット部12(又は12a)の間に配置する形態でも良い。また、PMOS321も同様に、PMOS311と出力線Z2の間に配置しても良い。
また、論理演算回路10(又は10a)及び出力制御部20に使用する電源線VDDと、出力段回路30に使用する電源線VDDとは、同じ電位の形態を説明したが、異なる電位の電源を使用して、レベルシフタを介して接続しても良い。
また、第1、第3の実施形態において、制御信号en2をH状態にする時刻T1は、制御信号en1をL状態にする時刻T0以前でも良い。また、第2の実施形態において、制御信号en2をH状態にする時刻T1は、制御信号en1をL状態にする時刻T0以降でも良い。
Further, the P net blocking unit 40 (or 40a) has been described as being disposed between the P net unit 11 and the output line Z1, but may be disposed between the power supply line VDD and the P net unit 11. Further, the NMOS 22 has been described as being disposed between the N net portion 12 (or 12a) and the power supply line GND, but may be disposed between the output line Z1 and the N net portion 12 (or 12a). Similarly, the PMOS 321 may be disposed between the PMOS 311 and the output line Z2.
Further, although the power supply line VDD used for the logic operation circuit 10 (or 10a) and the output control unit 20 and the power supply line VDD used for the output stage circuit 30 have been described with the same potential form, power supplies with different potentials are used. It may be used and connected via a level shifter.
In the first and third embodiments, the time T1 L when the control signal en2 is in the H state may be before the time T0 H when the control signal en1 is in the L state. In the second embodiment, the time T1 L when the control signal en2 is in the H state may be after the time T0 H when the control signal en1 is in the L state.

また、本発明の情報記憶媒体は、第4の実施形態のICカード200に限定されるものではない。例えば、暗号処理機能を備えたUSB(Universal Serial Bus)メモリやSD(エスディー)メモリカードでも良いし、他の形態の情報記憶媒体でも良い。また、インタフェース部250は、コンタクトによる接触式インタフェースでも良いし、非接触式インタフェースでも良い。また、暗号処理部260が使用する暗号方式は、DES暗号に限定されるものではなく、AES(Advanced Encryption Standard)暗号などの共通鍵暗号や、RSA(アールエスエイ)暗号、楕円曲線暗号などの公開鍵暗号、あるいはSHA−1(Secure Hash Algorithm−1)などのハッシュ関数でも良く、他の暗号方式でも良い。また、第4の実施形態において、ICカード200は、暗号処理と復号処理の両方を行う形態を説明したが、いずれか一方を処理する形態でも良い。
また、ICカード200は、情報を記憶する書き換え可能な不揮発性メモリとしてEEPROM240を備える形態を説明したが、他の書き換え可能な不揮発性メモリを備える形態でも良い。例えば、フラッシュメモリやFeRAM(Ferroelectric Random Access Memory)などのメモリを備える形態でも良い。
また、ICカード200は、暗号復号回路264に論理回路1を含む形態を説明したが、論理回路1a、1b、1cの内のいずれか1つ又は複数を含む形態でも良い。
なお、本発明の消費電力錯乱型論理回路は、論理回路1(又は1a、1b、1cのいずれか)に対応する。
Further, the information storage medium of the present invention is not limited to the IC card 200 of the fourth embodiment. For example, a USB (Universal Serial Bus) memory or an SD (SD) memory card having a cryptographic processing function may be used, or another form of information storage medium may be used. The interface unit 250 may be a contact type interface using contacts or a non-contact type interface. In addition, the encryption method used by the encryption processing unit 260 is not limited to the DES encryption, and public key encryption such as AES (Advanced Encryption Standard) encryption, RSA (RSA) encryption, and elliptic curve encryption are disclosed. Key encryption or a hash function such as SHA-1 (Secure Hash Algorithm-1) may be used, or another encryption method may be used. In the fourth embodiment, the IC card 200 has been described as performing both encryption processing and decryption processing, but may be configured to process either one.
Further, although the IC card 200 has been described as having the EEPROM 240 as a rewritable nonvolatile memory for storing information, the IC card 200 may have another rewritable nonvolatile memory. For example, a form including a memory such as a flash memory or a FeRAM (Ferroelectric Random Access Memory) may be used.
Further, although the IC card 200 has been described as including the logic circuit 1 in the encryption / decryption circuit 264, the IC card 200 may include any one or more of the logic circuits 1a, 1b, and 1c.
Note that the power consumption confusion type logic circuit of the present invention corresponds to the logic circuit 1 (or any one of 1a, 1b, and 1c).

1、1a、1b、1c 論理回路
10、10a 論理演算回路
11、11a Pネット部
12、12a Nネット部
20 出力制御部
21 PMOS
22 NMOS
30 出力段回路
31 インバータ部
32 出力段制御部
40、40a Pネット遮断部
111、111a、112、112a、113、113a、114、114a、115115a、116、117 PMOS
121、121a、122、122a、123、123a、124、124a、125125a、126、127 NMOS
200 ICカード
210 制御部
220 RAM
230 ROM
240 EEPROM
250 インタフェース部
260 暗号処理部
261 入力データレジスタ
262 暗号キーレジスタ
263 制御レジスタ
264 暗号復号回路
265 出力データレジスタ
270 乱数生成部
300 外部装置
311、321 PMOS
312、322 NMOS
1, 1a, 1b, 1c Logic circuit 10, 10a Logic operation circuit 11, 11a P net unit 12, 12a N net unit 20 Output control unit 21 PMOS
22 NMOS
30 Output stage circuit 31 Inverter unit 32 Output stage control unit 40, 40a P net blocking unit 111, 111a, 112, 112a, 113, 113a, 114, 114a, 115 115a, 116, 117 PMOS
121, 121a, 122, 122a, 123, 123a, 124, 124a, 125125a, 126, 127 NMOS
200 IC card 210 Control unit 220 RAM
230 ROM
240 EEPROM
250 Interface unit 260 Cryptographic processing unit 261 Input data register 262 Cryptographic key register 263 Control register 264 Cryptographic decryption circuit 265 Output data register 270 Random number generating unit 300 External device 311, 321 PMOS
312 and 322 NMOS

Claims (8)

第1の電位が第1の供給線から供給され、該第1の電位より低い第2の電位が第2の供給線から供給され、入力される入力信号と乱数信号とに基づいて生成される出力論理状態を出力線に出力する論理演算回路と、
入力される第1の制御信号に応じて前記出力線の出力状態を制御し、前記出力論理状態を無効とする出力無効状態である場合に、前記出力線から前記第2の供給線に通じる第1の経路を遮断し、前記第1の電位により前記出力線を充電する出力制御部と、
前記論理演算回路の後段に設けられ、前記出力線の出力状態に基づいて出力する状態を無効とするマスク状態に、入力される第2の制御信号に応じて切り替える出力段回路と
を備えることを特徴とする消費電力錯乱型論理回路。
The first potential is supplied from the first supply line, and the second potential lower than the first potential is supplied from the second supply line, and is generated based on the input signal and the random number signal that are input. A logical operation circuit that outputs an output logic state to an output line;
The output state of the output line is controlled in accordance with the input first control signal, and when the output logic state is invalidated, the output line leads from the output line to the second supply line. An output control unit that interrupts one path and charges the output line with the first potential;
An output stage circuit provided at a subsequent stage of the logic operation circuit and switching to a mask state that invalidates the output state based on the output state of the output line according to the input second control signal. Characteristic power consumption confusion type logic circuit.
前記出力制御部は、
前記出力無効状態を解除した場合、前記第1の経路を導通させ、前記生成される論理状態に応じて、前記第2の電位により前記出力線を放電する
ことを特徴とする請求項1に記載の消費電力錯乱型論理回路。
The output control unit
2. The output circuit according to claim 1, wherein when the output invalid state is canceled, the first path is made conductive, and the output line is discharged by the second potential according to the generated logic state. Power confusion type logic circuit.
前記論理演算回路は、
前記入力信号と前記乱数信号とに基づいて前記第1の電位により前記出力線を充電するPネット部と、前記入力信号と前記乱数信号とに基づいて前記第2の電位により前記出力線を放電するNネット部とが相補に動作して前記出力論理状態を生成し、
前記第1の経路は、
前記出力線から前記Nネット部を介して前記第2の供給線に通じる経路である
ことを特徴とする請求項1又は2項に記載の消費電力錯乱型論理回路。
The logical operation circuit is:
A P net unit that charges the output line with the first potential based on the input signal and the random number signal, and discharges the output line with the second potential based on the input signal and the random number signal. And the N net part that operates complementarily generates the output logic state,
The first route is:
3. The power consumption confusion type logic circuit according to claim 1, wherein the output line is a path that leads from the output line to the second supply line via the N net unit. 4.
前記第1の制御信号又は前記第2の制御信号に応じて、前記第1の供給線から前記Pネット部を介して前記出力線に通じる第2の経路を遮断するPネット遮断部
を備える
ことを特徴とする請求項3に記載の消費電力錯乱型論理回路。
In accordance with the first control signal or the second control signal, a P net blocking unit that blocks a second path that leads from the first supply line to the output line via the P net unit. The power consumption confusion type logic circuit according to claim 3.
前記入力信号及び前記乱数信号は、
前記出力制御部が前記出力無効状態にあり、前記出力線が前記第1の電位になった後に、変更され、
前記出力制御部は、
前記入力信号及び前記乱数信号の変更が確定した後に、前記第1の制御信号に基づいて前記出力無効状態を解除し、
前記出力段回路は、
前記出力無効状態が解除され、前記出力線の出力状態が確定した後に、前記第2の制御信号に基づいて前記マスク状態を解除する
ことを特徴とする請求項1から請求項4のいずれかに記載の消費電力錯乱型論理回路。
The input signal and the random number signal are:
After the output control unit is in the output invalid state and the output line is at the first potential,
The output control unit
After the change of the input signal and the random number signal is confirmed, the output invalid state is canceled based on the first control signal,
The output stage circuit is
5. The mask state is canceled based on the second control signal after the output invalid state is canceled and the output state of the output line is determined. 5. The power consumption confusion type logic circuit described.
前記入力信号及び前記乱数信号は、
前記出力制御部が前記出力無効状態にあり、前記Pネット遮断部が前記第2の経路を遮断した後に変更され、
前記出力制御部は、
前記入力信号及び前記乱数信号の変更が確定した後に、前記第1の制御信号に基づいて前記出力無効状態を解除し、
前記出力段回路は、
前記出力無効状態が解除され、前記出力線の出力状態が確定した後に、前記第2の制御信号に基づいて前記マスク状態を解除する
ことを特徴とする請求項4に記載の消費電力錯乱型論理回路。
The input signal and the random number signal are:
The output control unit is in the output invalid state, and the P net blocking unit is changed after blocking the second path,
The output control unit
After the change of the input signal and the random number signal is confirmed, the output invalid state is canceled based on the first control signal,
The output stage circuit is
The power consumption confusion type logic according to claim 4, wherein after the output invalid state is canceled and the output state of the output line is determined, the mask state is canceled based on the second control signal. circuit.
前記論理演算回路は、
前記入力信号に基づいて予め定められた論理演算処理に応じた論理状態を生成し、前記乱数信号に基づき、前記入力信号を反転させた前記論理演算処理を行うか否か、及び前記出力論理状態を前記論理状態から反転したものにするか否かを切り替える
ことを特徴とする請求項1から請求項6のいずれかに記載の消費電力錯乱型論理回路。
The logical operation circuit is:
Generating a logical state corresponding to a predetermined logical operation process based on the input signal, whether to perform the logical operation process in which the input signal is inverted based on the random number signal, and the output logical state The power consumption confusion type logic circuit according to any one of claims 1 to 6, wherein whether or not the logic state is inverted from the logic state is switched.
秘密鍵と情報を記憶する記憶部と、
前記乱数信号を生成する乱数生成部と、
請求項1から請求項7のいずれかに記載の消費電力錯乱型論理回路を含み、前記秘密鍵に応じて暗号処理を行う暗号処理部と
を備えることを特徴とする情報記憶媒体。
A storage unit for storing a secret key and information;
A random number generator for generating the random number signal;
An information storage medium comprising: a power consumption confusion type logic circuit according to any one of claims 1 to 7; and an encryption processing unit that performs encryption processing according to the secret key.
JP2010047810A 2010-03-04 2010-03-04 Power consumption confusion type logic circuit and information storage medium Expired - Fee Related JP5322977B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010047810A JP5322977B2 (en) 2010-03-04 2010-03-04 Power consumption confusion type logic circuit and information storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010047810A JP5322977B2 (en) 2010-03-04 2010-03-04 Power consumption confusion type logic circuit and information storage medium

Publications (2)

Publication Number Publication Date
JP2011188009A JP2011188009A (en) 2011-09-22
JP5322977B2 true JP5322977B2 (en) 2013-10-23

Family

ID=44793819

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010047810A Expired - Fee Related JP5322977B2 (en) 2010-03-04 2010-03-04 Power consumption confusion type logic circuit and information storage medium

Country Status (1)

Country Link
JP (1) JP5322977B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE2853517A1 (en) * 1977-12-14 1979-06-21 Western Electric Co MULTI-LEVEL LOGIC CIRCUIT
JP3737783B2 (en) * 2002-06-28 2006-01-25 株式会社東芝 Logic element and cryptographic operation circuit using the same
US8577942B2 (en) * 2004-07-07 2013-11-05 Mitsubishi Electric Corporation Electronic device and data processing device for implementing cryptographic algorithms
JP2009253753A (en) * 2008-04-08 2009-10-29 Nippon Telegr & Teleph Corp <Ntt> Logic circuit and encryption operation circuit

Also Published As

Publication number Publication date
JP2011188009A (en) 2011-09-22

Similar Documents

Publication Publication Date Title
JP5339237B2 (en) Encryption key generation using stored input value and stored count value
US8861720B2 (en) Tamper-resistant memory integrated circuit and encryption circuit using same
US9325494B2 (en) Method for generating a bit vector
JP2010219666A (en) Encryption processing apparatus
US11115181B2 (en) Memory device, host device, and memory system
CN105095097B (en) The memory access of randomization
JP2016171452A (en) Electronic circuit, authentication device, and authentication system
Raghav et al. A balanced power analysis attack resilient adiabatic logic using single charge sharing transistor
US20070030031A1 (en) Circuit and method for calculating a logic combination of two encrypted input operands
US7545933B2 (en) Decryption circuit, encryption circuit, logic cell, and method of performing a dual-rail logic operation in single-rail logic environment
US8901979B2 (en) Storage circuit
JP6246239B2 (en) Method and device for prime number generation
JP5322977B2 (en) Power consumption confusion type logic circuit and information storage medium
US7538698B2 (en) Apparatus and method of generating DBI signal in semiconductor integrated circuit
JP2006019872A (en) Encryption processing apparatus
US7240134B2 (en) Circuit with processing prevention unit
KR101247482B1 (en) Apparatus for adiabatic logic against power analysis attack
JP4435593B2 (en) Tamper resistant information processing equipment
EP3472821A1 (en) An apparatus and method for obfuscating power consumption of a processor
KR100280500B1 (en) Large and small judgment comparator
JP2005528022A (en) Circuit configuration and apparatus for generating dual rail signals
JP2008067349A (en) Semiconductor integrated circuit
US11463074B2 (en) Storage element with clock gating
Mayhew et al. Integrated capacitor switchbox for security protection
US20240193300A1 (en) Data processing device and method for processing secret data

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120315

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20130515

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130607

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: 20130618

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130716

R150 Certificate of patent or registration of utility model

Ref document number: 5322977

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

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