Ojsmgr, Journal Manager, 2-4202-Tabassum-Sk1
Ojsmgr, Journal Manager, 2-4202-Tabassum-Sk1
425-430
Manuscript received May 25, 2023; revised July, 2023. DOI: 10.24425/ijet.2023.144379
I. INTRODUCTION
© The Author(s). This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY 4.0,
https://creativecommons.org/licenses/by/4.0/), which permits use, distribution, and reproduction in any medium, provided that the Article is properly cited.
226 HUMA TABASSUM, KRISHNA PRATHIK BV, SUJATHA S HIREMATH
• adc enable: When the enable signal goes high, the ADC • READY STATE: The next state that the ADC enters
is enabled and switched on. is the ready state. In this state, the adc pre end of
• asynchronous sampling enable: The ADC operates in two conversion and the adc end of conversion signals are set
modes. This signal decides which mode the ADC operates high simultaneously on the first posedge of clock after
in. This signal has to be held constant during sampling. the deassertion of reset signal. The ADC enters the
• start of conversion: This signal indicates the start of sampling mode and starts to respond to control signals.
conversion. The controller checks the start of conversion • WAIT FOR SOC: This phase is also referred toas
signal on the positive edge of the clock. It enters the the sampling phase. During this phase, the ADC samples
conversion phase on the immediate posedge after the start the data. The end of sampling is indicated by the start
of conversion is detected. of conversion signal going high. The adc pre end of
• select resolution: The 2 bit signal selects either 6,8,10 conversion and the adc end of conversion signals remain
or 12 bit resolution. low.
• reset adc: This active high signal is used to reset the • CONVERT STATE: ADC enters the conversion phase on
adc. first posedge of clock after it receives high on thestart
• adc data output: This is the parallel digital data output of of conversion signal. The conversion phase lasts for N-
the ADC. cycles, where N is the resolution of the ADC.
• adc serial output: This signal is the serial output of the • PRE END OF CONVERSION STATE: During this state,
digital data. the ADC pre end of conversion signal goes high. This
• adc end of conversion: This signal depicts the end of signal has to go high 1 clock cycle before the adc end
conversion. of conversion is set high. ADC remains in this state only
• adc pre end of conversion: This signal is driven high for one clock cycle.
one clock cycle before the end of conversion signal. • END OF CONVERSION STATE: In this state, the adc
end of conversion is set high. This indicates that the ADC
has completed the conversion of analog data. On the
B. Finite State Machine Design
same posedge of clock when this signal goes high, the
The ADC Emulation controller module is designed based parallel data outputs are available on the data output bus.
on a finite state machine. A finite state machine (FSM) is
a mathematical model used to represent systems that exhibit C. Data Output modes of the ADC
distinct states and transition between them based on inputs.
It consists of a finite number of states, transitions, and events • Parallel mode: In this mode, the data is output in parallel
[4]. The different states depict the phases through which the form i.e. all the bits of data are output at the same time [2].
ADC moves when it is required to convert data. See Fig. 3. The data is output only after the entire conversion cycle
completes. The data is output on the negative edge of the
clock. The size of adc data output depends on the
resolution set. If the resolution is set to 12 bits, the adc
data output is of 12 bits.
• Serial mode: In this mode, the data is output in serial form
i.e. the bits are output one after the other [2]. As soon as
a bit is obtained after conversion, it is output.The bits
are made available on the adc serial output and data is
output from the most significant bit first to the least
significant bit in the end.
• Typical SAR Mode of Operation This mode is enabled the output for 12 bit resolution of ADC. After the ADC is
when the asynchronous sampling enable is low. Here, the enabled, enough time is given for the warmup process. The start
sampling ends on the negative edge of the clock after of conversion is the input signal depicting the end of sampling
the positive edge on which the start of conversion was and start of conversion of data. On the first posedge of clock
detected high. This is the typical mode of operation. In this after the start of conversion signal goes high, the pre end of
mode the start of conversion and end of samplingare conversion and the end of conversion signals go low. Since
defined by the same start of conversion signal unlike the ADC is of 12 bit resolution, it takes 12 clock cyclesfor data
instantaneous sampling mode where a seperate signal was conversion as seen in the waveform. The conversion starts on
present to signify the end of sampling. the immediate next posedge of clock after start of conversion is
detected. The pre end of conversion and the end of conversion
E. Resolution of the ADC signals go high after 11 and 12 clock cycles respectively. The
parallel data output appears as soon as the conversion ends, i.e.
Analog-to-Digital Converter resolution is used to describe on the same posedge of clock when end of conversion signal
or measure the performance of an ADC [5]. The resolution of goes high.
an A/D converter (ADC) is specified in bits. The resolution
of the converter indicates the number of discrete values it
can produce over the range of analog values. A resolution
is the smallest voltage increment corresponding to a 1 LSB
change [6]. It is an important specification for ADC because
it determines the smallest analog input signal that an ADC can
resolve. It determines the magnitude of the quantization error
and therefore gives the maximum possible average signal-to-
noise ratio for an ideal ADC without oversampling [6].
TABLE I
Select Resolution of the ADC
select resolution number of bits of resolution Fig. 5. Output waveform for 10 bit resolution of ADC
2’b11 12
2’b10 10 Figure 5 shows the output for 10 bit resolution of ADC.
2’b01 8 Here, the ADC takes 10 clock cycles for conversion of data. The
2’b00 6 parallel data output appears after 10 clock cycles and the data is
continuously driven on the bus until the next converted data is
Table I highlights the value of the select resolution signal available. To set ADC resolution as 10, the selectresolution bits
which will produce the required resolution. The ADC used in are set to value 2. The serial data output also appears because the
this project can provide 4 resolution values. The resolution can enable serial bit is set to 1.
be set using the select resolution signal.
Fig. 7. Output waveform for 6 bit resolution of ADC Fig. 9. Burst mode of operation of ADC
The waveform in Figure 7 shows the output for 6 bit C. RTL Schematic of the design
resolution of ADC. Here, the ADC takes 6 clock cycles for
conversion of data. The number of start of conversion bits
shown in the waveform is one, hence one conversion occurs.
The parallel data output appears after 6 clock cycles and the
data is continuously driven on the bus until the next converted
data is available. In order to set the resolution of ADC as 6 bits,
the select resolution bits are set to value 0.
the logical representation of the design. It incorporates details analog input to digital. The FSM has 6 states- Reset, Ready,
regarding the interconnections among these elements and their Wait for Start of conversion (Sampling state), Conversion state,
respective logical functions. Synthesizing the design enables Pre-end of conversion state and the End of conversion state.
the evaluation of its estimated performance characteristics and The functioning of the design is verified from the sim-ulated
facilitates the analysis of logic utilization [8]. output waveforms. The waveforms show the outputs for
different configurations, different resolutions, normal and
E. Logic Utilization of the design burst mode of operation. The RTL schematic of the design
is obtained which is followed by synthesis using Vivado tool.
Artix 7 was chosen as the board. The logic utilization and
power consumption information is obtained. Fininally, the
bitstream is generated and the code is dumped on FPGA to
verify its functionality. The LUT utilization is 38, the number
of flip flops needed is 41 and the input output pin utilisation
is 20. The dynamic power utilization is 0.543W which is 87%
Fig. 12. Logic Utilization of the Design of the total power utilized and the static power utilization is
0.082W which contributes to 13% of the total power.
After running synthesis of the design, a project summary As a future scope of the work, the controller design can be
is obtained. The resource utilization of the design is shown extended to include different types of ADCs. The code can be
in the figure 12. The Look Up Table (LUT) serves as the enhanced to reduce the amount of logic cells used. The power
fundamental component of an FPGA, possessing the capability consumption of the design can also be reduced by using low
to implement any logic function involving N Boolean variables power techniques.
[9]. The LUT utilization of the design is 38, the number of flip
flops needed is 41 and the input output pin utilisation is 20. The ACKNOWLEDGMENT
LUTs and the flip flops used in teh design form 1 percent of We would like to express our gratitude to each and everyone,
the total LUT count and the input output pin utilisation is 7 who provided valuable input, insights, and assistance at every
percent of the total availability stage of the project. Their contributions were crucial to the
success of this work, and we are deeply grateful for their hard
F. Power Utilization of the design work and dedication.
REFERENCES
[1] S. Bashir, S. Ali, S. Ahmed and V. Kakkar, ”Analog-to-digital
converters: A comparative study and performance analysis,” 2016
International Conference on Computing, Communication and Au-
tomation (ICCCA), Greater Noida, India, 2016, pp. 999-1001,
https://doi.org/10.1109/CCAA.2016.7813861
[2] S. Pavan and H. Shibata, ”Continuous-Time Pipelined Analog-to-Digital
Converters: A Mini-Tutorial,” in IEEE Transactions on Circuits and
Systems II: Express Briefs, vol. 68, no. 3, pp. 810-815, March 2021,
https://doi.org/10.1109/TCSII.2020.3048850
[3] Y. Hu, K. Yan and W. Jing, ”Design of ADC Control Module in a MCU,”
2008 Fourth International Conference on Natural Computation, Jinan,
China, 2008, pp. 133-137,
https://doi.org/10.1109/ICNC.2008.204
[4] C. Sapsanis, M. Villemur and A. G. Andreou, ”Real Number Modeling
Fig. 13. Power Utilization of the Design of a SAR ADC behavior using SystemVerilog,” 2022 18th International
Conference on Synthesis, Modeling, Analysis and Simulation Methods
The figure 13 shows the power utilization of the design. and Applications to Circuit Design (SMACD), Villasimius, Italy, 2022,
pp. 1-4, https://doi.org/10.1109/SMACD55068.2022.9816309
Dynamic power refers to the power consumed by the de-sign [5] G. G. E. Gielen, L. Hernandez and P. Rombouts, ”Time-Encoding
while undergoing switching activities [10]. The dynamic Analog-to-Digital Converters: Bridging the Analog Gap to Advanced
power utilization of the design is 87 percent. Static power Digital CMOS-Part 1: Basic Principles,” in IEEE Solid-State Cir- cuits
Magazine, vol. 12, no. 2, pp. 47-55, Spring 2020,
is the power consumed by the design in the absence of any https://doi.org/10.1109/MSSC.2020.2987536
switching activity. The static power utilization of the design [6] Jinyuan Wu, Sten Hansen and Zonghan Shi, ”ADC and TDC imple-
is 13 percent. The dynamic power utilized is 0.543W and the mented using FPGA,” 2007 IEEE Nuclear Science Symposium Confer-
ence Record, Honolulu, HI, USA, 2007, pp. 281-286,
static power utilised is 0.082W. https://doi.org/10.1109/NSS-MIC.2007.4436331
[7] P. H. W. Leong, ”Recent Trends in FPGA Architectures and Applica-
IV. CONCLUSIONS tions,” 4th IEEE International Symposium on Electronic Design, Test and
Applications (delta 2008), Hong Kong, China, 2008, pp. 137-141,
The aim of our work was to design a controller on FPGA https://doi.org/10.1109/DELTA.2008.14
for ADC emulation. This involved designing a Finite State [8] J. E. Istiyanto, ”A VHDL-based ADC on FPGA,” International Confer-
ence on Instrumentation, Communication, Information Technology, and
Machine in System Verilog whose states represent the various Biomedical Engineering 2009, Bandung, Indonesia, 2009, pp. 1-3,
stages through which the ADC passes during conversion of https://doi.org/10.1109/ICICI-BME.2009.5417248
230 J. KHONRANG, M. SOMPHRUEK, P. DUANGNAKHORN, A. SIRI, K. BOONLOM
[9] H. Homulle, S. Visser and E. Charbon, ”A Cryogenic 1 GSa/s, Soft- Core Conference - Digest of Technical Papers, San Francisco, CA, USA,
FPGA ADC for Quantum Computing Applications,” in IEEE 2008, pp. 238-610, https://doi.org/10.1109/ISSCC.2008.4523145
Transactions on Circuits and Systems I: Regular Papers, vol. 63, no. [14] J. Bergeron, ”Writing testbenches using SystemVerilog,” Springer Sci-
11, pp. 1854-1865, Nov. 2016, ence Business Media, 2013
https://doi.org/10.1109/TCSI.2016.2599927 [15] S. Sutherland, S. Davidmann, and P. Flake, ”SystemVerilog for Design
[10] Bin Le, T. W. Rondeau, J. H. Reed and C. W. Bostian, ”Analog-to- digital Second Edition: A Guide to Using SystemVerilog for Hardware Design
converters,” in IEEE Signal Processing Magazine, vol. 22, no. 6, pp. 69- and Modeling,” Springer Science Business Media, 2006
77, Nov. 2005, https://doi.org/10.1109/MSP.2005.1550190 [16] J. Estarán, S. Almonacil et.al ”Sub-Baudrate Sampling at DAC and
[11] J. -H. Tsai, Y. -J. Chen, M. -H. Shen and P. -C. Huang, ”A 1-V, 8b, ADC: Toward 200G per Lane IM/DD Systems,” J. Lightwave Technol.
40MS/s, 113µW charge-recycling SAR ADC with a 14µW asynchronous 37, 1536-1542 (2019).
controller,” 2011 Symposium on VLSI Circuits - Digest of Technical [17] H. -Y. Tai, Y. -S. Hu, H. -W. Chen and H. -S. Chen, ”11.2 A
Papers, Kyoto, Japan, 2011, pp. 264-265. 0.85fJ/conversion-step 10b 200kS/s subranging SAR ADC in 40nm
[12] E. Monmasson, L. Idkhajine and M. W. Naouar, ”FPGA-based Con- CMOS,” 2014 IEEE International Solid-State Circuits Conference Digest
trollers,” in IEEE Industrial Electronics Magazine, vol. 5, no. 1, pp. 14- of Technical Papers (ISSCC), San Francisco, CA, USA, 2014, pp. 196-
26, March 2011, https://doi.org/10.1109/MIE.2011.940250 197, https://doi.org/10.1109/ISSCC.2014.6757397
[13] V. Giannini, P. Nuzzo, V. Chironi, A. Baschirotto, G. Van der Plas and J. [18] Keaveney, Martin and McMahon, Anthony et.al, ”The development of
Craninckx, ”An 820µW 9b 40MS/s Noise-Tolerant Dynamic-SAR ADC advanced verification environments using system verilog,” Institution of
in 90nm Digital CMOS,” 2008 IEEE International Solid-State Circuits Engineering and Technology,2014.