

















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















1 Introduction
1.1 What is Evolvable Hardware?
Using Darwinian principles to optimize machine performance is not a revolutionary concept. In fact, this technique has been part of a researcher’s toolkit ever since the 1960s, and is used to solve software problems for a variety of fields ranging from financial investment to artificial intelligence. Exploiting evolutionary-based solutions in the realm of hardware, however, is an emerging practice that is yielding intriguing designs and systems that fall under the blanket term: “Evolvable Hardware.” The recent development of this field is largely a result of Moore’s Law. The continued reduction in the size of transistors over the last 10 years has created the possibility of on-chip programmability since there is enough space for memory to be adjacent to the processing component on a single chip. [1]
Evolvable hardware (EHW) in most basic terms involves using a reconfigurable device and an evolutionary algorithm in order to solve a problem. The main idea is that the circuit will adapt to the problem specifications without human intervention, and the final adaptation will be a good solution to the problem at hand.
The field was initially pioneered by Adrian Thompson at the University of Sussex, England in 1996, when he evolved a tone discriminator using a reprogrammable device (the Xilinx XC 6216 FPGA). The final evolved circuit performed the task of discriminating between 1 kHz and 10 kHz frequencies without the assistance of a clock or off-chip components and other external resources such as RC time constants to time or filter the input. [14] His experiment led the way towards creating new applications using reconfiguration devices and consequently resulted in the development of the field of EHW.
1.2 Why Evolve Hardware?
The main motivation for evolving circuits can be divided into two categories of desired solutions: (1) synthesizing circuits that are difficult to design using conventional methods; and (2) allowing for the option of an existing circuit to autonomously adapt in runtime to compensate for internal faults or a change in the operational environment.
2 The Evolutionary Algorithm
2.1 Fundamentals of the Evolutionary Algorithm (EA)
Evolutionary algorithms (EAs) are computer algorithms that use neo-Darwinian principles of evolution and self-adaptation to attain solutions to a difficult problem. The algorithm is strongly tied to biological evolution and this link is reflected in the underlying theory and terminology of the computation. A population of individuals, each a candidate circuit that provides some kind of solution to the problem, resides in the environment space. This environment space is equivalent to the actual problem. Fitness of an individual is calculated with a predefined fitness function, and the score indicates how well the circuit satisfies the design specifications. The fitness score is then used in the EA with stochastic operators (selection, recombination, and mutation) to determine the next generation set. Randomness is introduced into the equation at this stage through mutations. EAs have the potential to progress towards producing an ideal configuration that satisfies the requirements through repeated application of the aforementioned genetic operators. However, it is important to note that a good solution is one that satisfies the specifications and is not necessarily optimized. [1]
Before detailing the typical steps of the EA, additional basic terminology is required. A gene is a single problem parameter in the algorithm and the full set of genes for an individual is called the genome. Each gene has a variety of possible encodings and each of these possibilities can be considered as the gene’s allele. There are five commonly used encodings for the DNA in EA: binary strings, integers, real numbers, graphs, and hybrids. Binary strings are most versatile because they can contain information about both the component values in the device and the organization of the circuit. [1] There are advantages and disadvantages for the various encodings, but for the purpose of this discussion the focus will be on binary encoding. Normally, a problem requires more than one gene and these required genes are arranged in chromosomes. The phenotype of each individual is the actual realization of the circuit and it is generally encoded in some form into its genome. The specific subset of parameters of all possible encodings (the allelic composition) that describes a particular circuit configuration is the individual’s genotype. In other words, the genotype is the system’s genetic makeup (as opposed to its physical characteristics – its phenotype).
Selection The fitness score is usually used to determine which individuals are accepted into the mating pool. There are a variety of selection methods, but they generally rely on stochastic and/or deterministic procedures. The degree of selection pressure determines how much weight is given to highly fit solutions. An individual with a relatively high fitness will usually have a high selection probability. In order for EA to be effective, the selection pressure must not be too high or it will cause the algorithm to converge too early. Since it is possible to lose a globally optimum solution when relying on probability, selection is usually coupled with elitism, which basically allows for a small number of the best fit individuals to be copied over to the next generation unchanged. [1]
Variation in an EA: Recombination and Mutation There are two common methods of introducing variation into the next population set: mutation and recombination. Recombination requires at least two parents to create an offspring, and these parents enter the mating pool via selection. How recombination occurs is dependent on the encoding and a couple examples using the binary format are provided to clarify the concept. The simplest form of recombination is called the “1-point crossover,” (Fig. 2.1) [1] where a section of bits are swapped between the parents. This can be further extended to an n-point crossover. Another common recombination technique is called the “uniform crossover.” (Fig. 2.2) [1] Each bit has an associated random variable and if the random variable is greater than a certain value, then the bit from parent A is used, otherwise the bit from parent B is used to form the offspring.
Before Crossover After Crossover Parents: Offspring (2): 1001 00 0011 11
Figure 2.1 1-point crossover in a binary encoding.
Before Crossover After Crossover Parents: Offspring (1):
Figure 2.2 Uniform Crossover in a binary encoding. Each bit has an associated random variable. If the random variable is > 0.5, the bit from Parent A is used; otherwise the bit from Parent B is used.
Mutation only requires one parent so a single offspring can be created by altering one or more genes of the parent. Usually, a copy of the parent is mutated and how mutation occurs is again dependent on the encoding. In the binary encoding, mutation is commonly accomplished by complementing each bit using a probability function for the bit position. (Fig 2.3) [1] The mutation strength is determined by the magnitude of the random variable.
For both mutation and recombination, illegal configurations are prohibited by some kind of restraint: certain genes are immutable, there is a minimum and maximum value, there is an error- checking operation that forcibly changes improper alleles, etc.
2.3 Illustration of EA
To make these concepts more concrete, consider the following example of evolving a bitmap image filter. (Figure 2.4) [1] A reconfigurable device (in this case, an FPGA) can be used to realize a candidate circuit’s configuration, and each configuration is downloaded into the device at the start of evaluation. The device is composed of an array of functional units that perform a specific operation, and each unit can be connected in some fashion to another unit. The DNA is encoded in binary and the bits are used to encode function codes and unit-to-unit connectivity. The function code is used to determine the logical output (AND, NOT, XOR, etc) for the particular unit. So, in this problem there are two types of genes: one for the function code and one for the interconnections. A chromosome in this scenario would be the combination of these two genes describing a single unit. A circuit’s genotype is the single binary string that consists of all the bits needed to hold the information for all the units on the device. Thus, the string is the collection of chromosomes describing the system, in other words, the genome. The phenotype would be the circuit that performs the image filtering operation. [4] The following figure illustrates the evolutionary process for this example. Further detail regarding FPGAs and the image filter application is discussed in the Reconfigurable Devices and Applications of Evolvable Hardware sections, respectively.
Parent = 0 1 0 0 011 0 after mutation: Offspring = 0 0 0 1 011 1
Figure 2.3 Complementing to produce mutations in a binary encoding.
3.2 Field Programmable Gate Arrays (FPGAs)
An FPGA is a type of programmable logic device that is configured by assigning values to its lookup tables. This is in contrast to other types of programmable (one-time) devices that require changing the actual wiring of the device in order to program it. [9] FPGAs are typically composed of an array configurable logic cells that are interconnected through programmable switch matrices (the routing architecture). There is additionally I/O blocks provided on the chip as well as other embedded functional blocks such microcontrollers, RAM memories, and embedded arithmetic operators. [17]
Configurable Logic Cells
A typical FPGA logic cell consists of SRAM memory cells and multiplexers. Figure 3.1 shows the basic logic cell of an FPGA. [8] One of the values stored in the memory cells labeled “?” passes through the multiplexers based on the x and y inputs. The value that is selected for is the functional output of the logic cell.
Figure 3.1 A Basic Logic Cell of an FPGA.
Figure 3.2 Implementation of an XOR Gate using an FPGA Logic Cell.
A simple example of how the cell implements a logical function is illustrated in Figure 3.2. The truth table for the XOR function is shown to the left of diagram, and the memory cells (collectively known as a lookup table, or LUT for short) have been programmed with the output of the XOR function. When y is equivalent to logical 1, the bottom cell values are passed through the multiplexer. When x is equivalent to logical 1, the value from input from the bottom multiplexer is selected. The resulting output is 0, which matches the behavior of the XOR truth table. [8] The size of the LUT is dependent on the FPGA manufacturer and family, but the most common size is a 4-input LUT. [17]
FPGA logic cells can additionally contain configurable sequential elements such as flip-flops with set/reset signals, edge sensitivity, and enabling options. (Figure 3.3) [17]
Routing Architecture
The logic cells are interconnected through a routing architecture that is composed of switch matrices and connection multiplexers. Island architecture is the basic organizational style for an FPGA. (Fig 3.3) [8] Both the switch blocks and connection multiplexers are programmable, and their function is to link the output of one logic cell to the input for another. The routing architecture can take up to about 70% of the chip space as a side effect of its flexibility and thus has the potential to slow the device down and increase its cost. [8] However, most FPGA vendors provide additional embedded functional blocks that can take over specialized functions and thus allow the device to offer higher performance. [17]
Figure 3.3 Diagram of an FPGA with Combinational and Sequential Logic Programmability.
of the configuration bitstream of the XC6216 chip was known. Although this chip has been discontinued and the formats of current FPGAs’ configuration bitsteams are not completely documented, the EHW community has used work-arounds such as JBits to continue using DPR devices. [10] Self-reconfigurable devices are a direct extension of dynamic partially reconfigurable systems. They can modify themselves and provide high performance, flexibility, and autonomy. These chips can achieve autonomy since they have the capability to modify themselves without external intervention. [17] Both dynamic partial reconfigurable and self-reconfigurable FPGAs are of interest to the field of evolvable hardware.
3.4 POEtic Tissue
A relatively new development and extension of FPGA technology is the POEtic tissue. It is based upon the 3 principle biological levels used to categorize life. In the first level called “phylogenetic,” the cells comprise of a species, in which replication of cells will produce the same breed of organism. In the second level called “ontogeny,” the cells are analogous to ‘stem cells’ in which each cell, while containing the same genetic information as another, can result in different forms. In the last level called “epigenesis,” consists of the ‘learning’ systems of the organism (i.e. nervous and immune systems), which help the organism adapt to different environments.
The POEtic tissue is a chip with three layers, each mapping to a different biological layer. As implied, each layer performs a different function. In the phylogenetic level, the cell’s genetic information is stored into memory. Next in the ontogeny layer, the organism chooses a genetic pattern to express. Finally in the epigenesis layer, the organizer uses the generated behavior to adapt to the environment. Collectively, the layers (i.e. tissue) simulate a cellular process in biological systems.
Figure 3.5 Organizational layers of POEtic Tissue. Each biological layer is associated with a level of the POEtic chip.
One of the main differences between the POEtic tissue and FPGA architecture is each cell of the tissue maps to the entire genome, while the FPGA does not. This indicates that the cell is aware of the system. Another difference is a dynamically routing algorithm that ensures valid connection states and subsequently produces efficiency in performance. Lastly, the tissue allows new cell generation that will not interrupt the current process. Such improvement allows faster execution time.
The POEtic tissue is modeled after evolutionary phases in biological systems. The overall effect of the model is achieved by incorporating EHW concepts to its architectural design.
4 Applications of Evolvable Hardware
4.1 Types of Applications
The capacity of evolvable hardware for adaptation has made the technology an attractive option for applications that require a mechanism to modify its behavior in order to thrive in different environments. The potential of EHW has had applications reaching across many industries. The following section highlights two applications: an image filter and modular robotics controller.
4.2 Application Example: Image Filtering
The evolvable hardware concept can be applied to image processing techniques using a Genetic Processing Unit (GPU). Specifically in this example, a 256 by 256 pixel grayscale image is filtered to achieve a certain noise level in the resulting picture. The GPU is broken up into seven components, of which the boxed components make up the functional unit of EHW. (Fig. 4.1) The Cartesian Genetic Programming (CGP) component has been modified to use 8 bits to represent one pixel. When a pixel is evaluated for its fitness level, the surrounding 3 x 3 pixel area is also included in the dataset for that pixel. The dataset represents an individual of the population (i.e., the image).
Each function dictates how the X and Y coordinates of the pixel are transformed (refer to Appendix Table 8.1 for Function examples). The inputs to the two multiplexer units are from the outputs of two other columns. The corresponding cfg1 and cfg2 to the multiplexers choose from the set of columns. The cfg3 line keeps track of the number of functions available to this particular PE (Figure 4.3).
Figure 4.2 Cartesian Genetic Programming (CPG) Architecture: Refer to Figure 4.1of the GPU to see how it fits in with overall picture.
Figure 4.3 Architecture of Processing Element (PE). Different MUX lines specify transformation requirements of image.
4.3 Application Example: Modular Robotics
The dynamics of modular robotics (i.e. collective robots) parallels that of evolution. In modular robotics, the modules that comprise the robot interact with one another as individuals, co-existing and competing with one another to achieve a set goal. [19] In this application, the goal is to maximize the distance traveled using an adapted locomotion.
The M-Tran (short for Modular Transformer) uses genetic algorithms to evolve motion patterns. To handle the complexity of the modular robot configurations, the research group devised a genetic representation of the robot’s motion where the genotype corresponded to a sequence of actions labeled as a ‘segment.’ [19] A visual representation of this is illustrated below in Figure 4.4. As illustrated, each segment delineates the possible movements the robot can make from its current modular connections.
In an evolutionary cycle, the genes go through three processes: 1) First, the genes are altered using mutation or crossover methods, 2) Second, the genes are evaluated based on fitness functions that take energy consumption, traveling distance, and velocity into consideration, 3) Lastly, the fittest genes are selected and joined with a small mix of randomly selected genes to preserve diversity in population. [19] This cycle continues until the appropriate locomotion has been determined. In a trial, the robot of five modules initially moves with the friction it generates while struggling, however in later generations, the robot realizes it can propel itself forward by lifting two adjacent modules and throwing them forward. Similarly, in another trial where different fitness functions were implemented, the robot realizes an inchworm motion (Refer to Fig. 8.3 & Fig 8.4 of Appendices for images).
Figure 4.4 Robot Motion Sequence Encoding. A gene is assigned to a segment to encode motion sequence into genotype.
5.2 Hardware Limitations
The discussion of the concept of evolvable hardware extends to limitations imposed by the architecture itself. While FPGA architectures have shown many promises by its threshold of applications, FPGA is still considered a nascent technology. The following highlights the most prominent issues: [3]
Scalability
The first limitation to consider is the amount of work the present technology can handle. The level of circuitry required to handle certain number of chromosomes (which can be tens of thousands of bits) is insufficient with the present development state of the EHW technology. At present, the circuitry must be able to accommodate chromosomes of up to couple of thousands of bits for 100 logic gates. Another limitation is the how many functional components (or molecules in analogous terms) the architecture can handle. With larger number of functional components, the time needed to execute an EA will increase exponentially.
Evolution Termination
The ultimate questions being asked here is: When will the machine reach the most ‘evolved’ state? At what point should the evolution stop? What should be deemed the maximum fitness level? Errors in circuit evolution can propagate to other generations, and so maximum fitness levels do not necessarily equate proper circuit wiring.
Inconsistencies
When a faulty circuit repairs itself, there is no guaranteed the circuit will behave exactly as it did before the fault occurred. Thus, the difficulty of tracking behaviors is inherent in evolvable systems. However alternative algorithms have been developed to bypass this problem. [7]
Circuit Verifications
External factors, such as the temperature and power supply, that should not be factored into fitness level calculations will impact the results of GA.
Maintainability
EHW hardware is very complex and as technologies develop, so will its complexity. The hardware is considered to be a black box, so tracking down how the output is generated is nonetheless difficult.
Conclusion on Challenges
Such issues indirectly impact the applicability of the technology. Because it would be harder to maintain, many would be discouraged to implement EHW technology. A developing field that addresses maintainability issues is that of self-repairing, which uses fault tolerance concepts and practices. For more information, refer to [1] for an introduction to fault tolerance.
6 Conclusions
6.1 Future Direction of Evolvable Hardware
To date, the culmination of FPGA research has been primarily applied to evolving silicon circuits.
Within the EHW community, new areas for application of EHW have been explored. For example, in a recent study by Miller and Downing, electric fields that are mapped to a genome alter molecular alignment of liquid crystals to produce a certain function. Another trend is to apply the computing power of EHW to nanotechnology technology nicknamed “Avogadro computers”, which operate 10^23 transistors at one time. Other burgeoning areas of research include molecular circuit design and quantum circuit synthesis. [2]
Within EVH, specifically in terms of hardware, technological advancement has addressed current limitations. For example, FPGA chip manufacturers are in the process of developing a re- programmable radiation tolerant chip. [7] NASA will benefit greatly from this, as they rely heavily on