# US 2020/0265179 A1 · Method for generating redundant configuration in fpgas

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2020/0265179 A1
- Document ID: US20200265179A1
- Status: Published application
- Kind: A1
- Application number: 16/348,810
- Filed: 2018-12-20
- Published: 2020-08-20
- Earliest claimed: 2018-01-09
- Assignees: Universita degli Studi di Napoli Federico II
- Applicants: Universita' Degli Studi Di Napoli Federico II
- Inventors: Raffaele Giordano
- Web page: https://patentgrep.com/patent/US20200265179A1

## CPC

- G06F 30/34: for reconfigurable circuits, e.g. field programmable gate arrays [FPGA] or programmable logic devices [PLD]
- H03K 19/17768: for security
- G01R 31/31816: {Soft error testing; Soft error rate evaluation; Single event testing}
- G06F 30/343: Logical level
- H03K 19/177: arranged in matrix form
- G06F 30/337: Design optimisation
- G06F 30/347: Physical level, e.g. placement or routing
- G06F 2119/06: Power analysis or power optimisation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H03K: PULSE TECHNIQUE (measuring pulse characteristics G01R; modulating sinusoidal oscillations with pulses H03C; transmission of digital information H04L; discriminator circuits detecting phase difference between two signals by counting or integrating cycles of oscillation H03D3/04; automatic control, starting, synchronisation or stabilisation of generators of electronic oscillations or pulses where the type of generator is irrelevant or unspecified H03L; coding, decoding or code conversion, in general H03M)
- G01R: MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES (indicating correct tuning of resonant circuits H03J3/12)

## Abstract

A method for generating redundant configuration in FPGA devices includes: analysing the configuration pertaining to a given design to be configured, or already configured, in the FPGA device, in order to identify programmed and empty configuration memory portions, configuring the FPGA device for implementing said design, measuring the power consumption of the configured FPGA device, copying the configuration from at least some subsets of the programmed portion to subsets of the empty portion, (a) verifying the configuration read back from said subsets of the empty portion with the configuration data read from said subsets of the programmed portion, (b) verifying whether the functionality of the design after the copy is still correct, (c) measuring the power consumption of the FPGA device, and verifying whether the power consumption of the FPGA device after the copy is acceptable according to pre-defined criteria, if the verification steps (a), (b) and (c) are all successful the redundant configuration is correctly generated, and if the verification steps (a), (b) and (c) are not all successful the method restarts from the beginning choosing other subsets of the empty portion of the FPGA device for hosting the configuration data from said subsets of the programmed portion.

## Claims

### Claim 1

A method for generating redundant configuration in an FPGA device, the FPGA device being connected to a power supply that provides the required supply voltages for proper operation of the FPGA, the FPGA device comprising a design and a Configuration Access Port (CAP), the method being operated by a replication controller, the method comprising the steps of:
identifying programmed and empty configuration memory portions of the FPGA pertaining to the given design,
configuring the FPGA device for implementing the functionality of said design,
measuring the power consumption of the configured FPGA device,
copying the configuration from at least some subsets of the programmed portion to subsets of the empty portion,
(a) verifying whether the copy is correct by comparing the configuration read back from said subsets of the empty portion against the configuration data read from said subsets of the programmed portion,
(b) running a functional test on the design in order to verify if its functionality is still correct after the copy,
(c) measuring the power consumption of the FPGA device, and verifying whether the power consumption variation of the FPGA device after the copy complies with predefined criteria,
and
restarting the method from the beginning choosing other subsets of the empty portion of the configuration memory of the FPGA device for hosting the configuration data from said subsets of the programmed portion if any of the following conditions is met:
the copy, verified at step a), is not correct; or,
the functionality of the design, verified at step b), is not correct; or,
the power consumption variation, verified at step c), does not comply with the predefined criteria.

### Claim 2 (depends on 1)

The method according to claim 1, wherein for each frame of each sequence of programmed frames identified by analysing the configuration pertaining to the design, the replication controller, by means of signals, accesses the Configuration Access Port (CAP) to copy the configuration from a source frame address (SRC) to a destination frame address (DST).

### Claim 3 (depends on 2)

The method according to claim 2, wherein for each frame of each sequence of programmed frames identified by analysing the configuration pertaining to the design, the replication controller, by means of signals, accesses the Configuration Access Port (CAP) to copy a subset of the frame configuration from a source frame address (SRC) to a destination frame address (DST).

### Claim 4 (depends on 2)

The method according to claim 2, wherein for each sequence of programmed frames identified by analysing the configuration pertaining to the design, the replication controller, by means of signals accesses the Configuration Access Port (CAP) to copy a portion of the sequence consisting of a plurality of frames starting at source frame address (SRC) to a homologous plurality of frames starting at destination frame address (DST).

### Claim 5 (depends on 2)

The method according to claim 2, comprising the steps of:
after the copy, reading back by means of the replication controller the configuration data from the Configuration Access Port (CAP), and
comparing the configuration data with the data the replication controller attempted to write, and
verifying if there is a match: in positive case the verification step (a) is successful, otherwise the verification step (a) is not successful.

### Claim 6 (depends on 1)

The method according to claim 1, comprising the steps of:
measuring the currents drawn by the FPGA on its power domains, before (Ii(SRC)) and after (I′i(SRC)) the copy, where i=1, . . . , N and N is the number of power domains of the FPGA,
evaluating the drawn current differences |Ii(SRC)−I′i(SRC)|, and
comparing the drawn current differences to pre-defined threshold values (ΔIthi(SRC))
wherein, the verification step is successful if
|Ii(SRC)−I′i(SRC)|<ΔIthi(SRC) (1)
for i=1, . . . , N.

### Claim 7 (depends on 6)

The method according to claim 6, wherein said pre-defined threshold values (ΔIthi) are computed as a function of the source frame address.

### Claim 8 (depends on 7)

The method according to claim 7, comprising:
taking into account the time evolution of the currents at the power domains after the copy as a function of the source frame address (Ii(f)) and the time evolution of the currents during the initial configuration as a function of the frame address (I0i(f)) of the design (32), where f=0, . . . , SRC varies over all the copied frame source addresses,
considering the said time evolution of the currents as vectors of the 12 sequence space,
wherein, the verification step (c) is successful if
∥O(Ii(f),I0i(f)∥2<Ki (2)
for i=1, . . . , N,
where N is the number of power domains comprised in the considered FPGA, Ki are N real numbers, O is an operator of the ⊗ space, the symbol ⊗ denotes the tensor product, ∥O(Ii(f), I0i(f))∥ is the norm of the vector O(Ii(f), I0i(f)) in the ⊗ space.

### Claim 9 (depends on 2)

The method according to claim 2, wherein the verification step (b) is performed by comparing the actual output signals of the design with the expected ones, and verifying that the redundancy generation process has not corrupted the functionality of the design.

### Claim 10 (depends on 2)

The method according to claim 2, wherein the verification step (b) is performed by means of a built-in self-test, a mechanism that permits to the design to check its own functionality and output a passed/failed signal to the replication controller.

### Claim 11 (depends on 1)

The method according to claim 1, wherein the generation of redundant frame sequence step comprises the steps of:
setting the source frame address (SRC) equal to the address of the programmed frame to be copied and the destination frame address (DST) equal to the address of an empty frame,
measuring the absorbed current on the FPGA power domains before the copy of the configuration frame Ii(SRC), where i=1, . . . , N, and N indicates the number of power domains comprised in the considered FPGA,
creating a backup copy of the configuration data at the destination address (DST) and then copying the configuration data from the source address (SRC) to the destination address (DST),
reading back the configuration data written in the previous step at the destination address (DST),
comparing the configuration data read back at the previous step with the configuration data written at the previous step to verify whether the copy is correct, if the copy is correct, the absorbed currents at the FPGA power domains, are measured, otherwise the destination address (DST) is changed to another empty frame address,
verifying whether the verification steps (b) and (c) are successful:
in negative case the frame at the destination address (DST) is restored to its configuration before the copy, the destination address (DST) is changed to another empty frame address and the method returns to the measuring step,
in positive case it is verified whether all the frames of the sequence have been processed, and in positive case the method goes to the next frame sequence, and in negative case the method goes back to processing the next frame in the sequence of frames.

### Claim 12 (depends on 1)

The method according to claim 1, wherein the generation of redundant configuration can be performed during the operation of the design in order to dynamically change the number of redundant copies of each programmed sequence.

### Claim 13 (depends on 1)

A system comprising:
an FPGA connected to a power supply that provides the required supply voltages for proper operation of the FPGA, wherein the FPGA comprises:
a replication controller,
a design,
a Configuration Access Port (CAP), and
a sub-system for measuring the current for each FPGA power domain,
wherein the replication controller is configured for executing the method according to claim 1.
