Reconfigurable Photonic Logic Architecture: An Overview

. The photosensor studied in this document, is an amorphous silicon structure deposited on transparent glass allowing illumination on both sides. It responds to wavelengths from near infrared range to the ultra-violet. The front illumination surface is used for inputting light signal. The dynamic characteristics of the photosensor are altered by using optical bias on either surface of the sensor, thus the same input results in different outputs. Experimental studies made with the photosensor evaluate its applicability as a multiplexer, demultiplexer and logical operations device. A memory effect was observed. A programmable pattern emission system, and a validation and recovery system were built to illuminate the sensor with input light signals and to analyze the resulting output.


Introduction
Research work of the a-Si:H, a-SiC:H pi'npin photosensor [1] has shown that it has a nonlinear property of changing its bandwidth not only with the electrical bias but also a change of its bandwidth occurs with a light shining over the sensor, in either surface, despite the applied electrical bias [2]. Several applications have been done or proposed and the possibility of using this sensor for communication is studied even though the throughput is presently 12000 bps per channel.
This suggests that the channel selection which is made by digital switching over electrical channels to be de-multiplexed can, with this approach, be selected at the sensor with light selectors thus bringing to the photon side of the interface the capability of choosing the desired channel. Using Manchester code instead of the previous work with NRZ (No Return to Zero) code improves channel discrimination at the reception. The sensor is also looked upon its capability of producing a single electrical output with several input channels. This photocurrent translation is studied to identify logical operations as the AND, OR, NOT and XOR, and other more complex as the adder. A memory effect has also been identified and studied herein. Experiments with random values show the dispersion of the signals at the reception and several strategies to reproduce the input channels are proposed. Several programs had to be built and are used as tools to illuminate the sensor and analyze the sensor output. Observation of the device's behavior arose several questions that span the proposed work: How many channels can be transmitted by WDM, in visible light, with the sensor by selecting the desired channel with ultra-violet light?; What wavelengths ranges are best suited for the de-multiplexing function?; Which are the logical functions that can be translated by this sensor?; How to build complex logical functions with the device?; How to de-multiplex light channels using light selectors with one sensor?; How to build a memory due to charges stored by light?. The answer to these questions is presented in this document, along with other study paths.

Relationship to Smart System
A smart system uses a feedback loop of data, providing evidence for decision-making. The system can monitor, measure, analyze, communicate and act, based on the sensors' information [3]. Smart systems can be classified in several levels: those that collect usage and performance data to be used for a next version of a smarter system, those that collect, process and present data for humans to make a better decision, and those that collect data to take action without any human intervention.
A smart system is based on data, and that is its core. Data can be easily acquired and stored but it will also easily increase in quantity. As a resource, its ownership is also a point to be taken into consideration. Data must be analyzed, fused with other data sources, interpreted and sourced into mathematical models that will hopefully provide a highly reliable decision making tool for society and especially for those whose jobs are involved in taking decisions.
A system needs feedback, and that aspect is fundamental in any smart system, not only to increase its performance but also to improve its robustness. Data of different sources may come from the same physical reality which brings our attention to redundancy. This redundancy, which can also be constituted by different systems, is also an advantage due to possible error conditions or flaws.
The device presented in this paper is a sensor that is sensitive to light and as such it can be inserted into a smart system data loop. One of the observed characteristics of the sensor is that it holds memory of the visible light that has impinged onto its surface, even when not connected to a circuit. This could be applied as a sensor to be located in a closed box or case; an environment where no electricity is present. If the box or case is opened under visible light and then shut again, it would be possible to know that at least one opening occurred by reading the sensor under a controlled no light condition.

Fig. 1. Sensor structure and operation
The experimental setup use LEDs as light sources: as digital signals and as bias lighting. The digital signals are usually: violet (400 nm), blue (470 nm), green (524 nm) and red (626 nm), and shone over the entire front surface of the device. The background lighting is ultra-violet (390 nm) and is set either at the back or at the front side of the sensor, and lighting is applied in a continuous non pulsating flux. Compared to the optical bias intensity, the intensity of the signal sources is lower.
Using a monochromator with 10 nm steps, from 300 to 800 nm, spectral response curves were produced, and the resulting photocurrent stored in a file with the corresponding input wavelength. The device operation point was set at -8 V because a previous study suggests that, that electrical bias is the most suited to allow for a steady state optical bias and channels with visible light impulses, while outputting a photocurrent that changes with the input wavelengths [6]. The spectral response for a violet (400 nm) optical bias at the front and back surfaces of the sensor is presented in Fig. 2  The experimental results of Fig. 2 a), show that the photocurrent increases in the 470 to 700 nm bandwidth when the sensor is lit on the front surface. To compare both graphs in of Fig. 2, the thick black curve represents the dark level and is the same on both figures. With increasing LED current through the LED that shines over the back surface, the photocurrent decreases gradually in the 470-700 nm bandwidths, and there is an almost identical increase of the photocurrent in the 400-470 nm range. The photocurrent gain, which is the output photocurrent divided by the dark current level, is shown in Fig. 3. The spectral gain shown in Fig. 3a), is reduced within the short wavelengths (< 470 nm) and increased over the long wavelengths (> 470 nm), behaving as a selective filter centered in 650 nm with bias illumination at the front. With bias lighting shining over the back surface, Fig. 3b), the opposite behavior is noticed; the short wavelengths gain increases while the long wavelengths gain decreases. This resembles a filter centered at 440 nm. The sensor acts as a selective filter, where the gain of the short and long pass wavelengths is controlled by the optical bias. The gains of both filters suffer almost no changes when the LED currents are above 10 mA.

Experimental Setup
The sensor is biased with -8 V and the experimental setup shown in Fig  All LEDs are software controlled by the PiscaLed [7,8] system that drives them physically by communicating with the HexaLed driver [9]. Data values supplied by the PiscaLed are shaped into configurable frames and encoded or not in Manchester coding; the frame can be raw, with the data bits presented to the channel LEDs, in a frame with a preamble, start of frame, data values and end of frame. The preamble is a sequence of several [010101] bits on all channels, used at the reception to determine the maximum intensity value, used for normalization and synchronization. The start of frame begins with a slight difference in the preamble [0110] followed by data. The sequence of [010100] at the end of the frame precedes the switching off of all channels. To analyze the results several programs developed within this thesis were used namely the IndicaLed [9,10,11].
Each data bit can be coded in non return to zero (NRZ) or Manchester [13]. When a large number of equal data bits are transmitted the resulting NRZ output is either no illumination (bits = 0) or continuous (bits = 1); resulting in no photocurrent changes. With Manchester coding there is always a change in photocurrent due to the pulsed pattern. There are more solutions to overcome the NRZ pattern for example by the introduction of a scrambler or other type of encoding [14].
The photocurrent output of the sensor is named differently according to its optical illumination and signal source: dark, back or front. The Dark photocurrent is defined as the output current when the sensor is in darkness. The Front signal is the photocurrent output with optical bias applied to the front surface of the sensor and pulsing data LEDs shining, and consequently the Back photocurrent output is the electrical signal produced with the optical bias at the back surface and the pulsating data LEDs lit.
The photocurrent output is converted to a voltage by the current to voltage converter and is connected to an oscilloscope. The voltage signal is sampled at the oscilloscope and sent to the computer, as shown in Fig. 4. The Data stored consists on the data LEDs input and converted output photocurrent, so that the analysis can be validated by having both the expected result and the obtained output. The signals are stored as received, Dark, Front and Back signals read with their minimum value set to 0.0 V, and normalized between 0.0 and 1.0 for analysis.

Five Channel WDM
The multiplexing of several data channels into one channel is an efficient way to communicate between two peers with the demultiplexing of the single channel into the original ones. Wavelength division multiplexing (WDM) uses different wavelengths for each channel. A five channel WDM with each channel at 12000 bps allows for a raw transmission rate of 5*12000 = 60000 bps. Two selectors, the front and back illumination of the background, are used to select the channels. As a summary the front illumination would sieve two channels and the back illumination would sieve another two, and the remaining channel selection process has a different approach [15]. To study the five channels multiplexer an experiment was made and the result is displayed in    Fig. 5 is the output of the pi'npin when it is bathed by the signal wavelengths (dark) and simultaneously by the front illumination of the background (front) and the background at the back of the device (back). The digital input signals applied to the LEDs, at the top of the figure, contain the input data to each channel. These digital signals help guiding the eyes to the front signal and showing that all 32 combinations are there. The back signal follows the violet input channel (400 nm) very strongly and distinguishes between dubious classifications of the front signal. The blue (470 nm) channel can also be recovered by the back signal. After the extraction of both violet and blue channels, the red=626 nm, orange=605 nm and green=524 nm can be easily identified.

Shown in
The orange wavelength can be extracted because the gain of that wavelength (αO-front=4.53, αOback=0.54) is different from the other gains. Using the clustering approach [16], applied to the front and back signals of Fig. 5 results in what is shown in Fig. 6. Additional channels may be introduced using only the front and back selectors, but due to the cross gains of one channel over another difficult the extraction of the individual channels [16].

Logic Functions
The logic functions that are the basic of present digital technologies are mathematic operators of Boolean Algebra. The theoretical work done by George Boole in 1847 is presented in "The mathematical analysis of Logic" [17]. Using the Boolean logical functions with mathematical state theory more complex structures were built creating the reliable computers that are available at this date [18].
The Boolean logic functions, based in mathematical set theory, necessary to build other logic functions are: NOT (negation), AND (conjunction), OR (disjunction) [19]. The implementation of these mathematical constructs in hardware has been done with several techniques [20]. The basic logical functions can be implemented on a pi'npin device [21], as well as the Majority function, which is also known as the voting function [22].

Digital Light Signals
Logical functions are used as logic gates [23] and other logical functions are created by combining those basic gates. Some circuits are known by a name due to their function. One of those circuits is the multiplexer which is a combinatorial function. The multiplexer can be used as a basic circuit producing results as simple as the basic logic gates. The NOT function is one of those applications built with a multiplexer and is presented in Fig. 7 [24]. The 2x1 multiplexer shown in Fig. 7 a) composed by a selector that chooses inputs Y and ~Y (NOT Y). When Invert input is 1, the output follows Y, and when the Invert selector is 0 the output follows ~Y. The Invert selector chooses between: a Y signal, or its inverse ~Y. Using the sensor's multiplexer capability [25] to act as an inverter is the basis of the work. Equation 1 shows, circuit in Fig. 7a), the following transformations: (1) Equation 1, simplified as the exclusive OR (XOR) relation between Y and Invert inputs. If Invert is 0 the output follows Y input, otherwise it follows ~Y [26].
A digital light signal is defined as: a signal pair with two components where one is the inverse of the other, and the wavelengths of one is from the long and the other from the short filter ranges [27].
Any long, short combination as a signal pair can be used, for example: (Red, Blue) pair and (Green, Violet), both shown in Fig. 7 b).
The two different digital light signal pairs are presented in Fig. 8 with the same data sequence. By subjecting both digital light signal pairs shown in Fig. 8 to the Front and Back bias lighting, it is clear that the Front signal follows the Red and Green input, and Back signal follows Blue and Violet signals.
A visible digital light signal D is the multiplexed signal of two wavelength channels; from the long and from the short wavelength ranges. Represented as D[L, S] where L and S represent the channel color [26], long and short-wavelength range, respectively.

NOT Gate.
The NOT gate shown in Fig. 7 b) is built by a long and a short wavelength channels (for example red and blue or green and violet) is controlled by the violet irradiation. The construction of this gate urged the definition of the digital light signal. Thus the digital light signal is the base of all logical functions built with this device. Fig. 8 shows examples of the NOT function, with the Back ultra-violet light.
Transmitting a False or a True value for a long period of time would degrade the recovery of the output signals, as only the ac component is used. To improve the photocurrent output it is necessary that a True or False bit value changes in time during its bit length. This can be solved by using the Manchester coding [13] which guarantees that there is a polarity change in the middle of each True or False bit time length. The photocurrent to be useful must be time dependent, so the logic signal, even if does not have its state changed, must vary in time. This obliges the digital signals to be synchronized and differential, thus a digital light signal must be Manchester coded [20,21].
Two examples of digital light signals with Manchester coding are shown in Fig. 9. The scatter graph also shows that the front and back signal are inversely correlated, due to the negative slope of the graphs [28] as expected due to each digital light signal being a composition of a short and long wavelength [29].
A digital light signal can be written as Equation 1.

Interaction of Two Digital Light Signals
Logic operators besides the NOT have expressions with two variables. Boolean logic has the associative and commutative properties of algebra that are applied when more than two variables are involved. The number of input variables and the operation that produces a single logical output is called a gate. In this section two light variables are studied as the basic building block of a logical gate. In order to effectively classify the output of the logical gate the sampling of the signal will also be addressed.
Two different digital light signals D[R, B] (Fig. 9a) and P[G, V] (Fig. 9b) illuminated the device and their combination is presented in Fig. 11 [27]. The interaction of two digital light signal pairs red-blue and green-violet is shown in Fig. 11. This signal is shown in Fig. 12 a) as a scatter graph where the Front signal is set as the horizontal axis and the Back signal is set as the vertical axis.  Fig. 11 and b) detail of Fig. 11, contains all 4 combinations of two digital signals, front and back are the interaction of two signals D,P, and the OR, AND, XOR signals represent the expected output.
The pattern selected in Fig. 11, shown in detail in Fig. 12 b), holds all possible combinations of the D and P signal and will be analyzed further in the text. Fig. 12 shows signals Front and Back as a scatter graph, the sequence path where at each point, the back and front values meet at the same time instant i.e. functionOf (  Front(t), Back(t)

Memory Effect
The p'inpin device has been used throughout this work as a stateless component which means that its output is only dependent of its inputs regardless of the outcome history of past inputs or outputs. This however does not hold when the outputs are observed as a sequence of inputs. The identification of the input sequence, using a classification function with the output of the pi'npin, shows that past sequences do influence the output of the device which does in fact hold a memory of the illumination beforehand. Although this is a difficult task for signal identification it is necessary to understand this phenomenon to ease the identification task and also to use it as an advantage by constructing a volatile memory with the pi'npin device.

Paradigm Change
The observations made to indicate that there is a memory function that characteriz-es the pi'npin device started when the readings of the dark signal did not remain constant between experiments. Initially it was assumed that there was an influence of noise from the surrounding equipment and other devices. Several modifications were gradually made to the experimental setup to reduce the influence of the noise sources.
To understand the start condition of the pi'npin device and its influence over the output, changes were made to the software of the user interface and that of the microcontroller that drives the LEDs, to allow static readings [24,25]. The selection of a start condition, programmable delays and the possibility of short sequences, all time controlled and with adequate triggering for the oscilloscope, allowed the study that is presented in this section.
In all experiments till this point the optical bias was used as a steady lighting, namely in the digital light logical functions and WDM [18,21,26]. This optical bias paradigm has to be changed, and seen as two light Control signals; the Back and Front Control signals, to use the sensor as a volatile memory [31]. On this section, the Front and Back lighting are no longer steady state, but impulses.

Conceptual Approach
The experimental setup with the relative positioning of the LEDs to the sensor is shown in Fig. 13 a) along with the equipment. The LED currents and their timing patterns are controlled by PiscaLed system [24,25]. There is a sequential operation with three phases to use the sensor as a volatile memory: Control, Hibernation and Data phase. Control phase is when only the Front Control and or the Back Control signals lit the sensor. The Hibernation phase has no illumination over the sensor. Data phase when the sensor is illuminated with Data Sense signal. Phases are represented in Fig. 13 as switches a), and as a timeline b).
Data Sense signal Phase duration: to study the decay of the stored value through time, an experiment was set in which the Data Sense signal used in the previous experiments is repeated cyclically with a 0.5 ms interval. This is shown in Fig. 14, where the signals at the top guide the eyes. Presented in Fig. 14, are the results of the applied Back and Front Control signals, each with duration of 3 ms followed by the Hibernation phase lasting 3 ms. The Data Sense signal sequence is equivalent to 16 cycles at a frequency of 6000 Hz. These 16 cycles are then repeated.
Results show that there is amplitude decay in time of the output Data Sense signal despite the Control signal is either Front or Back. The decay rate, were it linear, is roughly twice higher in the Front Control signal (-83 μA/s) than in the Back Control signal (-46 μA/s) which means that they instead of crossing will maintain an amplitude equivalent to the Dark reference signal. Furthermore, the decayed amplitude of the Data Sense due to the Front Control will eventually be less than the highest amplitude of the Data Sense due to the Back Control. Observing Fig. 14 that would occur around 25 ms; this determines the volatile memory hold time due to the data sense signal profile.

Conclusion
The p'inpin device has proven to be versatile and with several applications in which it was used: multiplexer, logical gates and a volatile memory. This flexibility is its main advantage.
By experimental observation the simultaneous incidence of the front and back optical illumination is equivalent to a front bias illumination. This characteristic could be used by having the back surface always illuminated and using the front bias when convenient which could speed up the acquisition process.
The sensor illumination has always flooded the whole surface. Studying the use of masks to allow only certain parts of the sensor being used by spatially distributing the input wavelengths over the surface can produce curious results.
The photocurrent varies linearly with the flux intensity of the input signals. By using analogue signals a "light transistor" can be built using the background illumination as a constant amplification setting.
The possibility to change the pi'npin heterostructures by depositing more pins and enabling their junctions to be accessible by optical transparent contacts will definitely improve the research of this simple photosensitive device. The ideal device would be one that could also emit light; with optical inputs and outputs it would effectively be considered as an optical gate. The demultiplexer would then emit in separate channels, the logical functions would work as gates that could be connected as circuits including the memory component.
Due to the low throughput of 12000 bps of each channel the pi'npin sensor can be used in audio and signalling applications.