# Bit Streaming Processing Algorithms for Intelligent Hardware Converters
## 3 Results
### Application of the Developed Modules  
The designed behavioral HDL modules are used in the design of the temperature regulator built into the human blood cholinesterase activity analyzer. This device provides analytical procedures with biological liquids. According to the rules of analysis, it is necessary to keep the temperature of the analytical solutions between 34 and 39 \({}^{\circ}\)C, since cholinesterase activity depends on temperature [18]. Figure 7 shows the cholinesterase activity analyzer. Thermal control is performed independently in two elements of the device: the measuring cuvette (A) and the reagent platform (B). Figure 6: Result of multiplication-division algorithm simulation: (**a**) transition process and (**b**) the process of tracking the result in a state of equilibrium. Measurement of cholinesterase activity is performed by measuring the time that the optical density of analytical solution changes by 10% from the initial value. The reservoir with analyte is placed in the measuring cuvette (A); the temperature of measuring cuvette is maintained within the specified range. The Analog Devices TMP03 sensor used for temperature control is inserted into the hole on the back side of the measuring cuvette using the thermally conductive paste. The aluminum platform (B) is used to preheat the reagent containers to the specified temperature. To control the platform temperature, a second AD TMP03 sensor is installed using a thermally conductive paste in the hole on the back of the platform. Both sensors generate PWM output signals continuously. The analyzer does not have a processing core, and its elements and modules operate under control of a digital finite state machine implemented on the CPLD chip (C). CPLD do not have special hardware elements for arithmetic calculations, but the temperature measurement requires arithmetic conversions according to the sensor characteristic:  
\[\mathrm{T}(^{\circ}\mathrm{C})=235-400\frac{T_{1}}{T_{2}}. \tag{4}\]  
To calculate the temperature according to Equation (4), we used designed algorithm of multiplication-division operation (Figure 3). In this case, the algorithm is not fully implemented; blocks 2 and 6 are not executed since the sensor signals are presented in the form of PWM, and operations to change the data format (pulse-width sweep, PWS) are not required. PWM signals come to processing immediately. The subtraction operation is also performed in stream form by decrementing constant 235 at the moment when the multiplication-division unit generates the next pulse of the output stream. Figure 8 shows the result of the simulation of the processes occurring during temperature measurement. Figure 8: Result of simulation of processes in the temperature measurement system. Figure 7: The cholinesterase activity analyzer: (**a**) exterior view of analyzer; (**b**) sensor installation; (**c**) temperature control using the proposed implementation and using mercury thermometers. We tested the algorithm operation during the experiments by means of an analyzer. To indicate the temperature, we used an external board with indicators, since the alphanumeric indicator of the analyzer is intended to display the results of the analysis of cholinesterase activity. The modules based on the behavioral description of the temperature meter were implemented into the CPLD (MAX3512), and the indicator of the external board showed the measurement results. At the same time, we monitored the temperature of the measuring cuvette and platform by means of mercury thermometers; Figure 7c shows this process. Rounding of the measurement results was performed with an accuracy of 0.5 \({}^{\circ}\)C, as the used sensor TMP03 for measurements in the range of 0-50 \({}^{\circ}\)C has such accuracy, and we conducted tests in this range. Mercury thermometers allow measurements with an accuracy of \(-\)0.1 \({}^{\circ}\)C. During the tests, the readings of the thermometers and the indicator of the device coincided.