MODELING OF ADC ARCHITECTURES IN HDL LANGUAGES

Similar documents
INF4420 Project Spring Successive Approximation Register (SAR) Analog-to-Digital Converter (ADC)

Co-simulation Techniques for Mixed Signal Circuits

AC : DIGITAL DESIGN MEETS DSP

Adding Analog and Mixed Signal Concerns to a Digital VLSI Course

Verification Methodology for a Complex System-on-a-Chip

Design and analysis of microcontroller system using AMBA- Lite bus

COMP12111: Fundamentals of Computer Engineering

Clarke and Inverse ClarkeTransformations Hardware Implementation. User Guide

Interfacing Analog to Digital Data Converters. A/D D/A Converter 1

Chrontel CH7015 SDTV / HDTV Encoder

UNIT IV CMOS TESTING. EC2354_Unit IV 1

A FOUR GAIN READOUT INTEGRATED CIRCUIT : FRIC 96_1

TSIU03: Lab 3 - VGA. Petter Källström, Mario Garrido. September 10, 2018

PROVIDING AN ENVIRONMENT TO TEACH DSP ALGORITHMS. José Vieira, Ana Tomé, João Rodrigues

ACS College of Engineering. Department of Biomedical Engineering. HDL pre lab questions ( ) Cycle-1

Analog to Digital Conversion

EECS 578 SVA mini-project Assigned: 10/08/15 Due: 10/27/15

Equivalence Checking using Assertion based Technique

Hardware Modeling of Binary Coded Decimal Adder in Field Programmable Gate Array

CHAPTER 6 DESIGN OF HIGH SPEED COUNTER USING PIPELINING

Sharif University of Technology. SoC: Introduction

System Quality Indicators

IP-DDC4i. Four Independent Channels Digital Down Conversion Core for FPGA FEATURES. Description APPLICATIONS HARDWARE SUPPORT DELIVERABLES

ECE 372 Microcontroller Design

EEC 116 Fall 2011 Lab #5: Pipelined 32b Adder

DEPARTMENT OF ELECTRICAL &ELECTRONICS ENGINEERING DIGITAL DESIGN

FPGA Laboratory Assignment 4. Due Date: 06/11/2012

Design and Implementation of SOC VGA Controller Using Spartan-3E FPGA

Design and implementation (in VHDL) of a VGA Display and Light Sensor to run on the Nexys4DDR board Report and Signoff due Week 6 (October 4)

Lab #5: Design Example: Keypad Scanner and Encoder - Part 1 (120 pts)

Radar Signal Processing Final Report Spring Semester 2017

Checkpoint 2 Video Interface

ADC Peripheral in Microcontrollers. Petr Cesak, Jan Fischer, Jaroslav Roztocil

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

Laboratory 1 - Introduction to Digital Electronics and Lab Equipment (Logic Analyzers, Digital Oscilloscope, and FPGA-based Labkit)

Laboratory 4. Figure 1: Serdes Transceiver

CH7021A SDTV / HDTV Encoder

data and is used in digital networks and storage devices. CRC s are easy to implement in binary

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

Behavioral Modeling of a Charge Pump Voltage Converter for SoC Functional Verification Purposes

Introduction to Mechatronics. Fall Instructor: Professor Charles Ume. Analog to Digital Converter

Data Conversion and Lab (17.368) Fall Lecture Outline

Smart Night Light. Figure 1: The state diagram for the FSM of the ALS.

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Sciences

4 or 8 channel 24-bit audio A/D converter with analog and AES/EBU inputs COPYRIGHT 2017 AXON DIGITAL DESIGN BV ALL RIGHTS RESERVED

Figure 1: segment of an unprogrammed and programmed PAL.

Copyright. Robert Alexander Fontaine

Experiment: FPGA Design with Verilog (Part 4)

Research Results in Mixed Signal IC Design

ECE 263 Digital Systems, Fall 2015

Ryerson University Department of Electrical and Computer Engineering EES508 Digital Systems

Task 4_B. Decoder for DCF-77 Radio Clock Receiver

Converters: Analogue to Digital

Modeling Digital Systems with Verilog

Traffic Light Controller

L12: Reconfigurable Logic Architectures

HDL & High Level Synthesize (EEET 2035) Laboratory II Sequential Circuits with VHDL: DFF, Counter, TFF and Timer

Modeling Latches and Flip-flops

Report. Digital Systems Project. Final Project - Synthesizer

Solutions to Embedded System Design Challenges Part II

Digital to Mixed-Signal Verification of Power Management SOCs Using Questa-ADMS. M. Behaghel

Design and Implementation of Timer, GPIO, and 7-segment Peripherals

BUSES IN COMPUTER ARCHITECTURE

FPGA-BASED EDUCATIONAL LAB PLATFORM

Unit V Design for Testability

Introduction to The Design of Mixed-Signal Systems on Chip 1

Integrated Circuit for Musical Instrument Tuners

Tutorial on Technical and Performance Benefits of AD719x Family

Modeling Latches and Flip-flops

Decade Counters Mod-5 counter: Decade Counter:

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Introductory Digital Systems Laboratory

Modeling and Implementing Software-Defined Radio Communication Systems on FPGAs Puneet Kumar Senior Team Lead - SPC

UVM Testbench Structure and Coverage Improvement in a Mixed Signal Verification Environment by Mihajlo Katona, Head of Functional Verification, Frobas

Achieving Timing Closure in ALTERA FPGAs

EE 209 Lab 7 A Walk-Off

Digital Audio Design Validation and Debugging Using PGY-I2C

Electrical and Telecommunications Engineering Technology_TCET3122/TC520. NEW YORK CITY COLLEGE OF TECHNOLOGY The City University of New York

Based on slides/material by. Topic 14. Testing. Testing. Logic Verification. Recommended Reading:

Last time, we saw how latches can be used as memory in a circuit

LFSRs as Functional Blocks in Wireless Applications Author: Stephen Lim and Andy Miller

Digital Systems Laboratory 1 IE5 / WS 2001

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Introductory Digital Systems Laboratory

Flip-flop and Registers

Spartan-II Development System

Lecture 17: Introduction to Design For Testability (DFT) & Manufacturing Test

IT T35 Digital system desigm y - ii /s - iii

Future of Analog Design and Upcoming Challenges in Nanometer CMOS

Performance Driven Reliable Link Design for Network on Chips

VLSI Design: 3) Explain the various MOSFET Capacitances & their significance. 4) Draw a CMOS Inverter. Explain its transfer characteristics

EL302 DIGITAL INTEGRATED CIRCUITS LAB #3 CMOS EDGE TRIGGERED D FLIP-FLOP. Due İLKER KALYONCU, 10043

Lab #10 Hexadecimal-to-Seven-Segment Decoder, 4-bit Adder-Subtractor and Shift Register. Fall 2017

Synchronous Sequential Logic

TSIU03, SYSTEM DESIGN. How to Describe a HW Circuit

Professor Henry Selvaraj, PhD. November 30, CPE 302 Digital System Design. Super Project

Digital Fundamentals. Introduction to Digital Signal Processing

High-Speed ADC Building Blocks in 90 nm CMOS

ET398 LAB 4. Concurrent Statements, Selection and Process

2 MHz Lock-In Amplifier

FPGA Design. Part I - Hardware Components. Thomas Lenzi

ECE337 Lab 4 Introduction to State Machines in VHDL

Transcription:

MODELING OF ADC ARCHITECTURES IN HDL LANGUAGES Marco Oliveira, Nuno Franca Modeling Group, Chipidea Microelectronics, Inc. Taguspark, Edifício Inovação IV, sala 733, 2780-920 Porto Salvo, Portugal Phone (351) 21 422 01 70 Fax (351) 21 422 01 89 e-mail: marco.oliveira@chipidea.com Abstract - This paper describes the modeling of A/D converters in HDL languages such as Verilog [1] and VHDL[2]. It starts with an introduction about the importance of hardware modeling to support the flow of modern integrated circuit design, followed by the presentations of two case studies. The first case study is an A/D converter with successive approximations architecture [3][4][5]. The functional model was written in VHDL. The second case study is an A/D converter with pipelined architecture [3][4][6], whose functional model was written in Verilog. A/D Analog to digital, ADC Analog to digital converter, DAC Digital to analog converter, HDL Hardware description languages. 1. INTRODUCTION The design of a mixed-signal electronic system is a complex task. It is imperative to develop capable tools and methodologies to decrease the design lifetime because of increasing competitive market forces. Developing functional and custom models of analog blocks improves design reuse, portability, decreases the likelihood of errors in the transistor level design and allows the system architecture to be rapidly tested to verify [7] interface and/or functional problems. Furthermore it is possible to carryout a mixed signal simulation of analog and digital blocks to qualify the overall functionality of complex mixed-signal system. It is easier to solve a problem or correct an idea in a functional model of a system than in a transistor level phase. The simulation runs are shorter and problem solving becomes easier. With a library of analog circuit functional models one can test and see rapidly if a selected architecture solution is adequate. Then, the designer will determine the required specifications for the individual analog blocks to achieve the desired goals. At Chipidea, the design flows starts with a system level architecture analysis with Matlab/Simulink [8] followed by an HDL functional/behavioral model of the architecture. This paper presents two case studies of ADC functional modeling recently implemented at Chipidea. In the first example, two levels of models were developed: one behavioral and one structural. The behavioral model contains a high-level functionality description whereas the structural model contains a behavioral model for each analog block used in the system. In the second example a structural model was developed. 2. CASE STUDY I 10 BIT SUCCESSIVE APPROXIMATION ADC For this first case study a functional model of a 10-bit Successive Approximation ADC for application in Touch Screen Monitors is presented. The functional model for this ADC was written in VHDL. 2.1 Structure The top symbol for the Successive Approximation ADC of 10 bits is presented in Fig. 1. The reference voltage is configurable in differential and single ended topologies. The input voltage is differential with the negative input always connected to the negative supply voltage. +ref +in -in = -ref ADC adcout<9:0> pon reset Fig.1 Top Symbol of the ADC for touch screen applications. The ADC has two voltage reference supplies and two input voltages. The negative input voltage is always connected to the negative power supply. The other inputs of the ADC are: clock pin. Clock is at 480 Khz bit indicating start of conversion; pon power on bit; reset reset bit, puts output in half scale (adcout = 1000000000) The outputs of the ADC are: end of conversion; adcout result of conversion.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 clock adcout conv0 conversion1 conversion2 12 conversion s Fig. 2 Desired timing diagram for the PenADC converter. The timing diagram of a full conversion of the ADC is shown in Fig. 2 when the conversion only starts with and bit high. The inside structural architecture of the ADC is described in Fig. 3. It is built, ideally, with one sample and hold, one voltage comparator, one SAR and one DAC that outputs the voltage for comparison. Vin S&H + Comp - pon reset SAR D/A adcout<9:0> Fig. 3 Internal Structure of the Successive Approximation ADC for Touch Screen. The sample&hold takes samples of the input voltage when a conversion starts. This input voltage is compared with the output of the DAC for each clock. The SAR and the result of the comparison determine the digital input of the D/A. After 12 clock s the bit goes high waiting for a at high to appear and start all over again. 2.2 VHDL Model There were two versions written, one behavioral and one structural. The behavioral version models the functionality of the ADC from the inputs to the outputs. This first approach is used to check the behavior of the circuit and speed up simulation. The structural model was built connecting all the models of the individual analog blocks (comparators, D/A, Sample and Hold) with the digital code of the SAR. This brings a more realistic approach to the structure of the circuit, thus allowing the validation of both analog and digital blocks simultaneously. Below is the definition of the entity for the functional model: entity touchscreen_adc is -- Parameters definition generic( nrbits : integer := 10 ); -- I/O definition port( refn: in real; -- Positive power supply refp: in real; -- Negative power supply : in std_ulogic;-- Clock Signal pon: in std_ulogic;-- Power on Pin reset: in std_ulogic; -- Reset Pin : in std_ulogic; -- Start conversion signal inn: in real; -- Negative input inp: in real; -- Positive input adcout: out std_logic_vector(nrbits-1 downto 0); --Result of conversion : out std_ulogic; -- End of conversion Bit ); end penadc_adc; 2.3 Results The simulation results are shown in Fig. 4. Both the Fig. 4 Simulation result for Successive Approximations converter.

Fig. 5 Simulation result for Successive Approximations converter for different input voltages. behavioral and structural models exhibit the same output waves. In this test it can be seen that the bit, when is high, waits for a bit high at a clock raising edge to start a new conversion. In Fig. 5 are represented several conversion s with the corresponding results and input voltage of the ADC. 3. CASE STUDY II 10 BIT PIPELINE ADC In this second case study a behavioral model of a fully differential pipelined ADC for applications requiring medium resolutions and high-speed conversion rates such as video and imaging is presented. This ADC has a 10-bit digital output code and employs digital error correction techniques. The functional diagram of the ADC is shown in Fig. 6. The voltage references and inputs are differential. The ADC has the following I/O ports: vcm input/output for common mode voltage decoupling and bypassing; ctl<2:0> vbg vcm vbyp, vbyn vinp,vinn avdd avdd1 dvdd1 vddd Decoder S/H agnd REF. GEN. Pipeline ADC Bias Current Generation Digital Error Correction Timing Generation Output Register agnd1 dgnd1 gnd! Fig. 6 Functional diagram of the pipelined ADC ibias vrefp vrefn b<9:0> vbyp, vbyn input for bypass of S/H; vinp, vinn input voltages; clock input; ibias bias current; vrefp, vrefn reference voltage; b output conversion code; out clock output for data out synchronization; ctl operating modes control. This ADC as a structural architecture composed of a decoder, a current generator, a voltage reference generator, a sample&hold, a pipeline ADC, a digital error correction block, an output register and a timing generation block. Besides several others, operating modes, the conversion mode 0 (normal conversion), of this ADC is selected by putting all ctl bits to low. In this mode the bias current is internally generated and the reference and common mode voltages are internally buffered. The sampling rate of the ADC is defined by the frequency of the signal. The input voltage is sampled in the falling edge of. This input voltage is then processed by the pipeline stages. The digital words (1.5 bits per stage) are synchronized by a chain of delay stages, overlapped and processed by the digital error correction logic to produce the 10-bit digital output code. The result is latched in the output register on the falling edge of with a latency of 5 periods the conversion timing diagram is shown in Fig. 7, where Tsd is the clock falling edge to sampling instant delay, Tod is the clock falling edge to data out delay and Ts is the sampling period. 3.1 Verilog Model For this case a structural behavioral model was developed.

Cycle 1 2 5 6 CLK Stage 0 (S&H) Sample of X0(1) Hold of X1(1) Sample of X0(2) Hold of X1(2) Sample of X0(8) Hold of X1(8) Sample of X0(9) Hold of X1(9) Stage 1 of X1(1) of X2(1) of X1(2) of X2(7) of X1(8) of X2(8) of X1(9) Stage 2 of X2(1) of X3(1) of X2(7) of X3(7) of X2(8) of X3(8) Stage 9 of X9(1) of X9(2) adcout b[x(1)] Tsd Ts Latency of 5 CLK s Tod The structural model contains individual behavioral descriptions of the circuit components. The various functionalities in the real circuit where simplified and then proceeded to an architecture segmentation. This procedure isolates the parts that were more closely related and improves the circuit/model understanding, debugging and reusability. The ADC model is built from the sub models of: ADC pipeline, reference voltage generator, digital correction logic, clock phases generator, a bias current generator and an output latch. The model was written in Verilog HDL language and this is the model header: module ascad1032 ( b, out, ibias, vrefn, vrefp,, ctl,vbg, vbyn, vbyp, vcm, vinn, vinp ); 3.2 Results Fig. 8 shows the resulting timing diagrams from simulation. In this figure, the rl_vout signal is the sampled voltage from the sample and hold (see Fig. 7) and the stage signals are the output codes of the pipeline stages. Fig. 9 Fig. 7 Desired timing diagram for the pipelining operation. shows the output conversion code for different input voltages. 4. CONCLUSIONS Modeling analog circuits in HDL languages is an important issue in modern integrated electronics. It improves the testing capability and verification of the circuit functionality as well as its reusability. Having entire systems, and/or portions of it, modeled in HDL languages, decreases the project time and thus reducing development cost and time to market. Doing a prior modeling of the circuits behavior it helps detecting behavioral/functional bugs. This paper described the importance of hardware modeling to support the flow of modern integrated circuit design with the presentation of two case studies. The first case study was an A/D converter with successive approximations architecture with functional model written in VHDL. The second case study was an A/D converter with Fig. 8 Simulation Result for pipeline AD converter for all stages.

Fig. 5 Simulation result for Successive Approximations converter for different input voltages. pipelined architecture, whose functional model was written in Verilog. ACKNOWLEDGMENTS We would like to thank to our colleges Carlos Fachada, Luís Franco, Luís Laranjeira, Paulo Pereira as well as Profs. João Vital and Carlos Azeredo Leme for their support and useful information regarding the presented case studies. REFERENCES [1] James M. Lee, Verilog QuickStart, Kluwer Academic Publishers 1997 [2] Peter J. Ashenden, The Designers Guide to VHDL, Morgan Kaufmann 1996 [3] Rudy van de Plassche, Integrated Analog to Digital and Digital to Analog Converters, Kluwer Academic Publishers 1994 [4] David A. Johns, Ken Martin, Analog Integrated Circuit Design, John Wiley & Sons 1997 [5] Chipidea Microelectrónica, SA, ADC for Touch-Screen Target, Advanced Data Conversion Products 2001 [6] Chipidea Microelectrónica, SA, AD1032AT57K, Advanced Data Conversion Products 2000 [7] Janick Bergeron, Writing Testbenches- Functional Verification of HDL Models, Kluwer Academic Publishers 2000 [8] John O. Attia, Electronics and Circuit Analysis using Matlab, CRC press 2001