1. Field of the Invention
The present invention relates to the generation of variable numbers in an integrated circuit.
1. Description of the Related Art
The present invention particularly but not exclusively, relates to contactless tags, like RFID tags (Radio-Frequency IDentification tag). These tags usually comprise circuits for sending and receiving modulated radio signals to exchange data with a reader, a power supply circuit for generating from the electromagnetic field generated by the reader a supply voltage of the integrated circuit, a processing unit, and a non-volatile memory, for example of the EEPROM type.
Random or pseudo-random variable numbers are commonly used in the field of cryptography. In addition, some transmission protocols impose the use of variable numbers to determine timeouts. Thus, in the field of contactless tags, a tag must respond to a reader after a certain timeout. The duration of this timeout is randomly determined to limit the risks of collision with the responses sent by other tags that may be in the field sent by the reader.
There are many methods for generating a variable number. Thus, some methods use a noise signal which is sampled to generate a random variable. In the patent application EP 1 143 616, a jagged signal is sampled by a clock signal which frequency is different from the frequency of the jagged signal. The voltage of each sample is compared to a threshold voltage, and the result of the comparison supplies the value of a bit of the pseudo-random number generated.
These methods require the implementation of various components, particularly two decorrelated oscillators, which have a non negligible electrical consumption. Now, in a RFID tag powered by the electromagnetic field emitted by a reader, it is crucial that the electrical consumption of the tag is as low as possible.
One embodiment of the present invention generates variable numbers using a limited number of components having low electrical consumption.
According to an embodiment of the invention, a method comprises steps of-demodulating a received signal of data transmission to supply a binary signal comprising variable frequency pulses, and sampling a clock pulse by the binary signal, to supply samples constituting the bits of a variable number.
According to one embodiment of the invention, the clock signal has a frequency comprised in a first frequency band, and the frequency of the binary signal pulses is comprised in a second frequency band larger than the first frequency band.
According to one embodiment of the invention, the clock signal has a frequency larger than the frequency of the binary signal pulses.
According to one embodiment of the invention, the clock signal has a frequency more than ten times larger than the frequency of the binary signal pulses.
According to one embodiment of the invention, each pulse of the binary signal is subjected to a variable delay.
Preferably, the delay applied to each pulse of the binary signal is determined according to the variable number generated.
According to one embodiment of the invention, the delay applied to each pulse of the binary signal is generated in order to be sensitive to noise.
According to an embodiment of the invention, a device for generating a variable number includes a generator of a clock signal, a demodulation circuit demodulating a received signal of data transmission and supplying a binary signal having variable frequency pulses, and a sampling circuit sampling the clock signal by the binary signal, and supplying samples constituting the bits of the variable number generated.
According to one embodiment of the invention, the clock signal has a frequency comprised in a first frequency band, and the frequency of the binary signal pulses is comprised in a second frequency band larger than the first frequency band.
According to one embodiment of the invention, the clock signal has a frequency larger than the frequency of the binary signal pulses.
According to one embodiment of the invention, the clock signal has a frequency more than ten times larger than the frequency of the binary signal pulses.
According to one embodiment of the invention, the sampling circuit comprises a shift register including an input of clock signal receiving the binary signal, a data input receiving the clock signal, and a parallel output of variable number.
According to one embodiment of the invention, the device for generating variable numbers comprises a delay circuit subjecting to a variable delay each pulse of the binary signal at the input of the sampling circuit.
Preferably, the delay applied to each pulse of the binary signal by the delay circuit is adjustable according to the variable number generated.
Advantageously, the delay circuit is made in order to be sensitive to noise.
According to an embodiment of the invention, an integrated circuit includes a device for generating a variable number as described above for determining a delay of response to a message received.
According to one embodiment of the invention, the integrated circuit comprises circuits for sending and receiving modulated radio signals, and a processing unit. According to one embodiment of the invention, the integrated circuit comprises a demodulation circuit supplying a binary signal used for generating the variable number, the variable number being accessible to a processing unit.
According to an embodiment of the invention, an integrated circuit includes a means for receiving wireless data transmission, a means for generating a binary signal based upon the received wireless data transmission, a local oscillator configured to generate a clock signal having a second frequency, a random number generator device configured to generate a variable number based upon the clock signal and the the binary signal, and a means for determining a delay of response to the received wirelesss data transmission based upon the the variable number.
These and other advantages and features of the present invention will be presented in greater detail in the following description of an embodiment of the invention, given in relation with, but not limited to the following figures:
As shown in
The shift register SREG 12 can be made in a standard way, where the cells 22 of the register 12 are flip flops FF0-FFn. The flip-flops are mounted in series (output Q connected to input D of the following flip-flop). In addition, an input of clock signal 26 of each flip-flop is connected to the input of the clock signal 14 of the register SREG 12. Output Q of each flip-flop is further connected to the parallel output 24 of the shift register 12. Each flip-flop therefore memorizes a bit b0-bn of the variable number generated which is accessible on the parallel output 24 of the shift register 12. The register SREG 12 therefore comprises a number of flip-flops corresponding to a size of the variable number to be generated.
At each rising edge of the signal RS, a sample of the clock signal, constituting a random variable equal to 0 or 1, is taken and charged into the shift register SREG. The period of the clock signal is about 0.5 μs, whereas the time between two successive rising edges of the signal RS ranges from about 6.25 μs to 50 μs. Consequently, the duration between two successive rising edges of the signal RS, and the sampling period is about 12.5 to 100 times longer than the period of the clock signal. The variable number generated is therefore very sensitive to a small variation of the frequency of the clock signal SFo or of the difference between two successive rising edges of the binary signal RS.
The binary signal RS comes from the demodulator DEM 18 which demodulates a signal transmitted under the form of a modulated carrier signal. It is thus sure that the clock signal produced by the local oscillator OSC 20 of a chip (not shown) is decorrelated from the received and demodulated RS signal. The random nature of the numbers PRN obtained at the output 24 of the register SREG 12 is therefore ensured.
If each variable number to be generated must comprise a certain number of bits, it can only be obtained after receiving as many rising edges in the signal received. The method according to the invention in one embodiment is therefore applicable if a variable number is not needed before receiving the number of rising edges necessary for generating the variable number.
The delay circuit DEL 28 further comprises an output stage 40 comprising three transistors TP2, TN1 and TN2 mounted in series, as well as two inverters INV2, INV3 mounted in series. A source terminal 42 of the transistor TP2 receives the supply voltage Vcc and a drain terminal 44 of this transistor is connected to a drain terminal 46 of the transistor TN1, as well as to an input 48 of the inverter INV2. Gate terminals 50 of the transistors TP2 and TN1 are connected to the drain terminal 36 of the transistor TP1. A source terminal 52 of the transistor TN1 is connected to a drain terminal 54 of the transistor TN2 which source terminal 56 is put to the ground and which gate terminal 58 is linked to the input 32 of the demodulated signal RS through an inverter INV1. The delayed demodulated signal RSd is obtained at an output 60 of the inverter INV3.
When the input signal RS is at 0, the transistor TP1 is ON. The result is the charge of the capacitors C1-Cn of the capacitive stages corresponding to a bit at 1 of the variable number PRN. During this time, the control voltage applied to the gate terminals of the transistors TP2, TN1 and TN2 is at 1. As a result, the transistors TN1 and TN2 are ON, while the transistor TP2 is OFF. Consequently, the input of the inverter INV2 is at 0, and therefore the output signal RSd is also at 0.
When the input signal RS goes to 1 (arrival of a rising edge), the input transistor TP1 and the transistor TN2 block, which triggers the discharge at constant current of the capacitors C1-Cn by the current source Idel. The voltage applied to the gate terminals of the transistors TP2 and TN1 decreases until going below the threshold voltage of the transistors TP2 and TN1. As a result, the transistor TP2 unblocks and the transistor TN i blocks. The output voltage RSd then goes to 1.
A rising edge of the signal RS applied at the input 32 of the delay circuit DEL 28 is therefore delayed by a delay corresponding to the discharge time of the connected capacitors C1-Cn. The discharge time depends on the number of capacitors to be discharged, i.e., connected and previously charged.
The delay circuit DEL 28 is advantageously made to be sensitive to noise.
The invention as described before more particularly applies to an integrated circuit 62 of the contactless tag type as shown in
In addition, the stage RFST 70 produces from an electric or electromagnetic field radiated by the reader RD 68, a continuous voltage Vcc for supplying the TG integrated circuit 62. The integrated circuit 62 also comprises a circuit for generating a clock signal CKGEN comprising a local oscillator OSC 78 generating a first clock signal SFo from which a second clock signal SFC is generated. The second clock signal SFC is used to clock the modulator MOD 74, whereas the first clock signal SFo clocks the demodulator DEM 72.
The data transmission between the TG integrated circuit 62 and the reader RD 68 is for example performed using an ASK modulation (Amplitude Shift Keying) or a PSK modulation (Phase Shift Keying). The demodulator DEM 72 supplies to the decoder 76 a signal RS which shape matches the envelope of the signal received. The decoder 76 samples this signal with the clock signal SFC to obtain a binary signal containing the data received.
The integrated circuit 62 further comprises an RNG device 10 (such as RNG device 10a or RNG device 10b) for generating variable numbers according to embodiments of the invention, connected to the output of the oscillator OSC 78 and to the output of the demodulator DEM 72 to receive the signals SFo and RS. The variable numbers PRN produced by the RNG device 10 are accessible to the processing unit CPU 64, in particular for determining a delay of response to a message received.
It will be clear to those skilled in the art that the device according to the invention is susceptible of several variations. Thus, the invention is not limited to sampling a clock signal by a signal having a frequency inferior to the frequency of the clock signal. Indeed, variable numbers can be obtained even if this condition is not satisfied.
The sampling of the clock signal can alternately be performed on the falling edges of the demodulated signal, or even on all the edges of this signal.
In addition, the use of a shift register is not necessary, unless all the bits of each variable word generated must be supplied in parallel. Indeed, a simple flip-flop D allows the clock signal to be sampled and successively supplies random variables, each constituting a bit of the variable word.
All of the above U.S. patents, U.S. patent application publications, U.S. patent applications, foreign patents, foreign patent applications and non-patent publications referred to in this specification and/or listed in the Application Data Sheet, are incorporated herein by reference, in their entirety.
Number | Date | Country | Kind |
---|---|---|---|
05 09101 | Sep 2005 | FR | national |