<<

Analog Circuits and Processing

Series Editors Mohammed Ismail Mohamad Sawan

For further volumes: http://www.springer.com/series/7381

Juan Pablo Alegre Pérez•ÂSantiago Celma Pueyo Belén Calvo López

Automatic Gain Control

Techniques and Architectures for RF Receivers

1 3 Juan Pablo Alegre Pérez Belén Calvo López LSI Corporation University of Zaragoza Madrid Zaragoza Spain Spain [email protected] [email protected]

Santiago Celma Pueyo University of Zaragoza Zaragoza Spain [email protected]

ISBN 978-1-4614-0166-7  â e-ISBN 978-1-4614-0167-4 DOI 10.1007/978-1-4614-0167-4 Springer New York Dordrecht Heidelberg London

Library of Congress Control Number: 2011933911

© Springer Science+Business Media, LLC 2011 All rights reserved. This work may not be translated or copied in whole or in part without the written permission of the publisher (Springer Science+Business Media, LLC, 233 Spring Street, New York, NY 10013, USA), except for brief excerpts in connection with reviews or scholarly analysis. Use in connec- tion with any form of information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed is forbidden. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights.

Printed on acid-free paper

Springer is part of Springer Science+Business Media (www.springer.com) Preface

Receivers have been a basic block in telecommunication systems since the inven- tion of the in the late 19th century, acquiring an essential role in what has been called the third Communication Revolution where information is transferred via controlled waves and electronic . Their main function is to recover the information from the transmitted wave and convert it to electronic signals that can be understood by the succeeding electronic processing signal systems. Since the Internet revolution, new receivers appeared to connect computers one to another or to the World Wide Web, such as wireless systems, have been gaining more and more popularity over the last few years. Thus, great investments in time, effort and money from both academia and industry have been made in the development of these re- ceivers in order to achieve fully integrated solutions in form of ASICs meeting the demand for ever increasing high performance with low cost, low voltage supply, low power consumption and reduced surface area. The design of one of these receivers include different blocks such as filters, low , gain controlled amplifiers, mixers and analog to digital converters. This book is precisely focused on the analysis and design of automatic gain control, AGC, circuits with wireless receivers as the main target application. In this context, the general function of the AGC circuitry is to automatically adjust the output sig- nal of a variable gain to an optimal rated level, for different input signal strengths. This function is essential to guarantee that the system is neither saturated with large signals nor makes the system fall below a tolerable noise level. Specifically, some wireless applications, such as WLAN or Bluetooth, must be able to handle packets-based data transmission and orthogonal frequency division multiplexing which introduce stringent settling-time constraints. Thus, fast AGCs are primordial in those systems. It is under these conditions that feedforward AGCs present their greatest advantages as an alternative to conventional feedback AGCs. Thus, all through this book we offer a detailed study about feedforward AGCs de- sign—both at basic AGC cells and system level—, their main characteristics and performances.

v vivi Preface

The starting point is a complete review and theoretical analysis of both feed- forward and feedback configurations and their behavioural modelling, issues ad- dressed in Chap.Â2. Next, basic components in gain control function, i.e., variable/programmable gain amplifiers, peak detectors and control voltage generation circuits are exam- ined. These basic blocks must be carefully chosen as they will limit the full AGC performance, so their specifications have to guarantee those required by the corre- sponding application. Thus, the main challenges and solutions encountered during the design of such high performance cells are summarized in Chap.Â3 and different high performance integrated proposals that will be next employed in specific AGCs are described and characterized considering low voltage low power constraints. To achieve low power consumption and ease any future scale to shorter transistor chan- nel length technologies, low voltage power supplies have been employed: this re- quires greater effort in the design, but guarantees the validity of the achieved results in current submicron process technologies. To close, the work is focused on the complete characterization of few different gain control loops required to implement a complete AGC system making use of some previously studied cells. Three complete AGC proposals are fully designed and evaluated in Chap.Â4: a general purpose digital feedforward CMOS AGC op- erating at 100ÂMHz, a fully analogue feedforward AGC for an 802.11a WLAN re- ceiver in SiGe BiCMOS technology and a combined feedforward/feedback CMOS AGC for operating frequencies up to 250ÂMHz. These novel AGC contributions, more than competitive with those already presented in the literature, prove that feedforward AGCs are a fine alternative in wireless receiver applications, evidenc- ing that this class of circuits will take an important role in upcoming applications where the stringent time constraints preclude the use of conventional closed-loop AGCs. Contents

1 Introduction ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â€‚ 1 1.1 AGC Design Strategies �����������������������ï   3 1.2 AGC Architectures for RF Receivers ����������������ï   6 1.3 Outline of the Work �������������������������ï   8 References ��������������������������������� â 10

2 AGC Fundamentals ���������������������������ï â 13 2.1 AGC Loop Fundamentals ����������������������ï â 14 2.1.1 AGC with Feedback Loop ������������������ â 14 2.1.2 AGC with Feedforward Loop ����������������ï â 20 2.2 Matlab Simulations �������������������������ï â 21 2.2.1 AGC with Feedback Loop ������������������ â 21 2.2.2 AGC with Feedforward Loop ����������������ï â 25 2.3 Conclusions �����������������������������ï â 26 References ��������������������������������� â 27

3 Basic AGC Cells �����������������������������ï â 29 3.1 Variable Gain Amplifiers ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 29 3.1.1 Degeneration Based VGA Structures. Proposed VGA1 ��� â 32 3.1.2 Multiplier-Based VGA Structures. Proposed VGA2 and VGA3 ��������������������������ï â 35 3.1.3 Complete VGA Architecture Design Considerations ����ï â 51 3.1.4 Conclusions �������������������������ï â 52 3.2 Peak Detectors ���������������������������� â 54 3.2.1 Basic Peak Topologies ��������������� â 55 3.2.2 Open-Loop Envelope Detectors. Proposed PD1 and PD2 ���������������������������ï â 57 3.2.3 Closed-Loop Envelope Detectors. Proposed PD3 and PD4 ���������������������������ï â 66 3.2.4 S/H Based Envelope Detector. Proposed PD5 ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 70 3.2.5 Conclusions �������������������������ï â 76

vii viiiviii Contents

3.3 Control Voltage Generation Circuit ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â€‚ 78 3.3.1 Digital Control �����������������������ï   78 3.3.2 Analog Control �����������������������   79 3.3.3 Conclusions ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â€‚ 82 References ��������������������������������ï   82

4 AGC Systems ������������������������������ï   87 4.1 CMOS Feedforward Digital AGC Circuit �������������ï   87 4.1.1 System Architecture ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â€‚ 88 4.1.2 Performances ������������������������   91 4.2 SiGe BiCMOS Analog AGC Circuit ����������������   93 4.2.1 System Architecture ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â€‚ 94 4.2.2 Performances ������������������������   98 4.3 CMOS Mixed Feedback/Feedforward AGC Circuit �������� â 101 4.3.1 System Architecture ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 102 4.3.2 Performances ������������������������ â 109 4.4 Conclusions ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 112 References ��������������������������������ï â 114

5 Conclusions �������������������������������ï â 117 5.1 General Conclusions ������������������������ â 117 5.2 Further Research Directions ��������������������ï â 119

Appendix A: Layout and Experimental Techniques �����������ï â 121

Appendix B: Acronym List ������������������������� â 127

Appendix C: Parameter Glossary ���������������������ï â 129

Appendix D: Process Parameters ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 131

Index ����������������������������������對�� â 133 List of Tables

Table 2.1⁜æ Summary of main AGC loop control characteristics ������ï â 14 Table 3.1⁜æ Summary of VGA1 performances ���������������� â 35 Table 3.2⁜æ VGA2 transistors sizes ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 41 Table 3.3⁜æ Simulation and measurement data of the VGA2 ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 44 Table 3.4⁜æ VGA3 transistor sizes ����������������������ï â 48 Table 3.5⁜æ Comparison of several VGAs ������������������ï â 53 Table 3.6⁜æ PD1 devices sizes ������������������������ï â 59 Table 3.7⁜æ Comparison of principal characteristics for simulation and measurements of the open-loop peak detector �������ï â 61 Table 3.8⁜æ Comparison summary between PD1 and PD2 for 10 MHz ��� â 65 Table 3.9⁜æ PD5 transistor sizes �����������������������ï â 75 Table 3.10⁠Comparison of proposed envelope detectors ����������ï â 77 Table 4.1⁜æ Comparison of literature and proposed AGCs ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 113 Table D.1⁜æ Technology: AMS 0.35Âμm CMOS P-Substrate, N-Well, 4-Metal, 2-Poly ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 131 Table D.2⁠Technology: IHP 0.25Âμm SiGe:C BiCMOS with High-Voltage Devices, 5-metal �����������������ï â 132

ix

List of Figures

Fig. 1.1⁜æ Estimated wireless subscribers from 1985 to 2009 ��������� â 2 Fig. 1.2⁜æ WLAN and Bluetooth receiver block diagram ����������� â 2 Fig. 1.3⁜æ Feedback (âleft) and feedforward (ârigth) AGC architectures ����ï â 4 Fig. 1.4⁜æ IF strip example ��������������������������� â 6 Fig. 1.5⁜æ OFDM preamble symbols transient response ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 7 Fig. 1.6⁜æ Feedback closed-loop AGC block diagram ������������� â 7 Fig. 1.7⁜æ Feedback open-loop AGC block diagram ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 8 Fig. 2.1âœæ¸ Simplified block diagrams of feedback (a) and feedforward (b) AGCs �������������������ï â 14 Fig. 2.2⁜æ Common block diagram of feedback AGC ������������� â 15 Fig. 2.3⁜æ Model of generalized feedback AGC ���������������� â 16 Fig. 2.4⁜æ Equivalent AGC loop diagram �������������������ï â 19 Fig. 2.5⁜æ Common block diagram of feedforward AGC �����������ï â 21 Fig. 2.6⁜æ AGC1: Simulink model ����������������������� â 22 Fig. 2.7⁜æ Convergence response of AGC1 for different stepwise changes �� â 22 Fig. 2.8⁜æ AGC2: Simulink model ����������������������� â 23 Fig. 2.9⁜æ Convergence response of AGC2 for different stepwise changes �� â 23 Fig. 2.10⁠AGC3: Simulink model ����������������������� â 24 Fig. 2.11⁜æSettling-time versus reference voltage for different input signal steps ��������������������������ï â 24 Fig. 2.12⁠AGC4: Simulink model ����������������������� â 25 Fig. 2.13⁠Convergence response of AGC4 for different stepwise changes �� â 26 Fig. 2.14⁠AGC5: Simulink model ����������������������� â 26 Fig. 2.15⁠Convergence response of AGC5 for a stepwise change ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 27 Fig. 3.1âœæ¸ a Programmable resistor and fixed gain amplifier based PGA and b high gain amplifier with resistor network feedback based PGA ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 31 Fig. 3.2⁜æ Differential pair transconductor with degenerative resistor ï¿½ï¿½ï¿½ï¿½ï¿ â 32 Fig. 3.3⁜æ Schematic view of the PGA proposed in [10] ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 34 Fig. 3.4⁜æ PGA frequency response ����������������������ï â 36 Fig. 3.5âœæ¸ THD levels at 10ÂMHz for all gain settings

versus output voltage Vout ���������������������� â 36

xi xiixii List of Figures

Fig. 3.6⁜æ a Conceptual multiplier scheme. b Gilbert cell ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 38 Fig. 3.7⁜æ Multiplier cell proposed in [14] ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 39 Fig. 3.8⁜æ Complete scheme of the proposed VGA ��������������ï â 40 Fig. 3.9⁜æ VGA2 chip photograph (a) and measurement setup (b) ������ï â 42 Fig. 3.10⁜æVGA gain frequency response: simulated (dashed) and measured (âsolid) ������������������������ï â 43 Fig. 3.11⁜æIM3 levels versus peak-to-peak differential input voltage

(Vp-p) at 50ÂMHz for different gain settings ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 43 Fig. 3.12⁠VGA IM3 versus frequencies at 0.4 and 0.8 Vp-p output ������ï â 43 Fig. 3.13⁠Measured HD3 for different gain settings at 100ÂkHz �������ï â 44 Fig. 3.14⁠Classical CMOS pseudo-differential transconductor �������� â 45 Fig. 3.15⁜æCMOS pseudo-differential transconductor: a Core of the proposed topology and b Output DC current

for different Vdâ = âVGâ−âVCM values ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 46 Fig. 3.16⁜æProposed CMOS pseudo-differential VGA with 3-bit rough gain adjustment, CMFF (a) and selfbias common-mode feedback loop (b) �������������������������� â 47 Fig. 3.17⁠VGA cell photograph ������������������������ â 49 Fig. 3.18⁜æSimulated (âdashed) and measured (âsolid) VGA frequency response for different gain settings ����������������� â 50 Fig. 3.19⁜æPGA plus buffer simulated (âblack) and experimental (âgrey)

IM3 for outputs signals of 0.4 and 0.8ÂVp-p at 100ÂMHz ������ï â 50 Fig. 3.20⁠Typical multiple cell VGA AGC structure �������������ï â 51 Fig. 3.21⁠Rough/fine gain based VGA structure ���������������ï â 52 Fig. 3.22⁜æIdeal charge/discharge behaviour in a peak detector with load , C, and resistor, R����������������������������������������������� â 54 Fig. 3.23⁠-RC peak detector topology ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 55 Fig. 3.24⁠Op-amp plus diode based peak detector topology ���������ï â 56 Fig. 3.25⁠Op-amp plus source follower based peak detector topology ���� â 56 Fig. 3.26⁠Open-loop peak detector topology �����������������ï â 57 Fig. 3.27⁠Schematic diagram of the full-wave precision rectifier block ���ï â 58 Fig. 3.28⁠Schematic diagram of the mirrored cascode OTA ���������ï â 58 Fig. 3.29⁠Schematic diagram of the peak detector block ����������� â 59 Fig. 3.30⁠Chip photograph of the peak detector PD1 ������������� â 60 Fig. 3.31⁠Measured and ideal linearity performance �������������ï â 60 Fig. 3.32⁜æMeasured tracking (âsolid grey line) of the open-loop envelope detectors for a 500ÂkHz square signal (âsolid black line) and simulation results (âdashed grey line) for a 71ÂMHz sinusoidal signal with a stepwise change (âdashed black line) �������������������������ï â 60 Fig. 3.33⁠Fast-settling open-loop envelope detector block diagram �����ï â 62 Fig. 3.34⁠Schematic of the peak hold block ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 62 Fig. 3.35⁜æEnvelope detector operation. Peak holder both output

signals (âgrey and black) and input signal (--) (âup). Below VC1 control signal ����������������������������ï â 63 List of Figures xiiixiii

Fig. 3.36⁠Schematic diagram of the control path ���������������ï â 63 Fig. 3.37⁜æRipple of the conventional (--) and the proposed (―) envelope detectors for an input voltage of 300ÂmV at 10ÂMHz and a total capacitance of 3.2ÂpF ������������������ï â 64 Fig. 3.38⁜æTracking of (--) ideal, (-.) conventional and (―) proposed envelope detectors for a step signal at 10ÂMHz and ripple of 1% ï¿½ï¿ â 65 Fig. 3.39⁜æDC (o) and 10ÂMHz (-) transfer characteristic for the conventional and the proposed envelope detector ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 65 Fig. 3.40⁠OTA plus current mirror closed-loop topology ����������� â 66

Fig. 3.41⁠Schematic of a high-Gm OTA/current mirror based peak detector �ï â 67 Fig. 3.42⁠Peak detector input-output performance ��������������ï â 68 Fig. 3.43⁜æPeak detector convergence performance for an input sinusoidal 100ÂMHz stepwise signal ���������������������� â 68 Fig. 3.44⁠Schematic of the fast-settling OTA/current mirror PD ������� â 69 Fig. 3.45⁠Chip photograph ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 70 Fig. 3.46⁠Measured and ideal input-output performance ����������� â 70 Fig. 3.47⁜æSimulated (âup) and measured (âdown) convergence performance with a 20ÂMHz input sinusoidal signal modulated by a 400ÂkHz square signal ��������������������� â 71 Fig. 3.48⁠S/H based detector conceptual scheme ��������������� â 72 Fig. 3.49⁠Schematic of the control block �������������������ï â 72 Fig. 3.50⁠Schematic diagram of the peak holder ���������������ï â 73 Fig. 3.51⁠Schematic diagram of the telescopic OTA �������������ï â 73 Fig. 3.52⁜æTracking of ideal (–), conventional (-.) and proposed (–) envelope detectors for a step signal at 10ÂMHz and ripple of 1% ï¿½ï¿ â 75 Fig. 3.53⁠Envelope detection of a frequency modulated input signal ï¿½ï¿½ï¿½ï¿½ï¿ â 76 Fig. 3.54⁜æ10ÂMHz input output performance for different envelope detectors ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 76 Fig. 3.55⁠Comparator bank cell employed in [57] ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 79 Fig. 3.56⁠Piece-wise linear approximation based logarithmic amplifier ���ï â 81 Fig. 3.57⁠Circuit to implement inverse of exponential function ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 81 Fig. 3.58⁠Simple divider ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 82 Fig. 4.1⁜æ IF 71ÂMHz strip ��������������������������� â 88 Fig. 4.2⁜æ Programmable gain amplifier cell ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 89 Fig. 4.3⁜æ Comparator bank cell ������������������������ â 90 Fig. 4.4⁜æ AGC1 chip photograph ����������������������� â 91 Fig. 4.5âœæ¸ Measured PGA frequency response: solid line, Kâ = â1; dashed line, Kâ = â1.5 ����������������������������� â 92 Fig. 4.6âœæ¸ Simulated THD levels at 71ÂMHz for the main gain settings

versus output voltage Vout ���������������������� â 92 Fig. 4.7⁜æ Measured input-output linearity of the peak detector ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 93 Fig. 4.8âœæ¸ Measured peak detector convergence response for a 21 dB abrupt stepwise change ���������������������ï â 93 Fig. 4.9⁜æ Simulated worst case AGC output �����������������ï â 94 xivxiv List of Figures

Fig. 4.10⁠Complete AGC architecture �������������������� â 95 Fig. 4.11⁠Schematic of the peak detector ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 98 Fig. 4.12⁠Die photo of the full AGC ��������������������� â 99 Fig. 4.13⁠Measurement test-bench PCB ������������������� â 99

Fig. 4.14⁜æFrequency response of the full VGA for several VC with fixed amplifiers VGA1 and VGA2 switched off (âblack) and for VCâ = â120ÂmV with VGA1 “on” (âgrey). Results are the mean value of 100 measurements ������������� â 100 Fig. 4.15⁠Input-output linearity for the peak detector ������������ â 100

Fig. 4.16⁠Control voltage (âVC,diffâ) versus peak detector output Vpd �����ï â 100 Fig. 4.17⁜æMeasured peak detector settling-time with a 20ÂMHz sinusoidal wave modulated with a 400ÂkHz square signal ï¿½ï¿½ï¿½ï¿½ï¿ â 101

Fig. 4.18⁜æSimulated AGC output signal, Vout, with an OFDM input signal for highest gain adjustment (18ÂdB) from lowest input level �����������������������������ï â 101 Fig. 4.19⁠AGC3 system schematic (âdown) and VGA3 (âup) ��������� â 104 Fig. 4.20⁠Block schematic of feedforward loop ��������������� â 105 Fig. 4.21⁠Inverter based comparator schematic ���������������ï â 106 Fig. 4.22⁠Peak detector schematic ���������������������� â 107 Fig. 4.23⁠Peak detector comparator ���������������������ï â 107 Fig. 4.24⁜æEquationÂ(4.7) for arbitrary constants and fitting curve obtained by Matlab Curve Fitting Toolbox ������������ï â 108 Fig. 4.25⁠Chip photograph �������������������������� â 109 Fig. 4.26⁠Measurement test circuitry ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 109 Fig. 4.27⁠Gain vs. input amplitude for an input signal at 100ÂMHz ����� â 110 Fig. 4.28⁜æAGC convergence with a square at 300ÂKHz and a carrier at 250ÂMHz for simulation (âup) and 20ÂMHz for measurements (âdown) are offered ��������������� â 111 Fig. A.1⁠Measurement scheme �����������������������ï â 123 Fig. A.2â CMOS test-buffer schematic ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 124 Fig. A.3â Test buffer chip photograph ��������������������ï â 124 Fig. A.4⁠PCBs for each chip ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ â 125 Chapter 1 Introduction

Receivers have been a basic block in telecommunication systems since the inven- tion of the radio in the late nineteenth century, acquiring an essential role in what has been called the third Communication Revolution where information is trans- ferred via controlled waves and electronic signals. Their main function is to recover the information from the transmitted wave and convert it to electronic signals that can be understood by the succeeding electronic processing signal systems. Following the Internet revolution which started in 1980s, new systems appeared designed either to connect computers one to another or to the World Wide Web. Among those new communication systems, wireless systems, such as wireless local area network (WLAN) and Bluetooth, have been gaining more and more popularity over the last few years. FigureÂ1.1 shows estimated wireless subscribers between 2006 and 2009. Thus, great investments in time, effort and money from both aca- demia and industry have been made in the development of these receivers in order to achieve fully integrated systems meeting the demand for ever increasing high performance with low cost, low power consumption and reduced surface area. The design of one of these receivers is usually carried out by several specialists, as it is made up of different blocks such as filters, low noise amplifiers (LNA), gain controlled amplifiers, mixers and analog to digital converters (ADC), see Fig.Â1.2. This book is precisely focused on the analysis and design of automatic gain control (AGC) circuits. Although the designed AGCs could serve other applications, the main target applications are wireless receivers. Therefore, the proposed AGCs must be able to handle a packets-based data transmission, orthogonal frequency division multiplexing (OFDM) and stringent settling-time constraints [1]. For the last two decades the expansion of ASICs (Application Specific Inte- grated Circuits) among many electronic applications has been spectacular. Wireless receivers are not an exception to this tendency. The main advantages of integrating mixed digital/analog functions into the same chip are the full system area reduction, improved operating speed, parasitic and contacts failure reduction, higher versatil- ity of the design and reduced cost, etc. In the design of digital circuits, which make up over 90% of the whole electronic system, CMOS technology is very superior to the other technologies such as bipolar due to its lower power consumption, high performance, higher integration density

J. P. Alegre Pérez et al., Automatic Gain Control, Analog Circuits and Signal Processing, 1 DOI 10.1007/978-1-4614-0167-4_1, ©ÂSpringer Science+Business Media, LLC 2011 2 1â Introduction

(VWLPDWHG:LUHOHVV6XEVFULEHUV

  

  

   

  

   1XPEHURIVXEVFULEHUV  

                                      

Fig. 1.1⁠Estimated wireless subscribers from 1985 to 2009

Antenna

Mixer V RF Channel out LNA VGA ADC Filter Filter

VCO

Fig. 1.2⁠WLAN and Bluetooth receiver block diagram and unbeatable cost. Consequently, as mixed digital/analog ASICs became more popular, the interest for designing the analog part in the same digital CMOS process has increased exponentially. Thus, bipolar technology, which offers better perfor- mance for analog circuits than CMOS, has been progressively given up in exchange for the implementation of mixed ASICs. In the search to further reduce the power consumption, achieve higher integra- tion density and increase signal processing speed in digital circuits, the tendency in CMOS has been to reduce the transistors’ channel length and consequently, the power supply. This tendency, however, has put up the price of the CMOS process while other options have become more reasonable. One of these options is SiGe 1.1â AGC Design Strategies 3

BiCMOS technology. This process offers a combination of bipolar and CMOS technologies, so that digital circuitry can still be designed in CMOS, but without losing the best option of bipolar transistors for analog design. Furthermore, SiGe technology offers very high transconductance with much lower power consumption than CMOS counterparts, so this technology is mainly employed in applications in the frequency range of 5–100ÂGHz, representing a performance-cost trade-off in Very High Frequency (VHF) applications. In this book both CMOS and BiCMOS technology processes have been em- ployed for different applications, so that the study of both technologies is incorpo- rated to the book and results obtained in each case can be compared. To achieve low power consumption and ease any future scale to shorter transistor channel length technologies, low voltage power supplies have been employed in al- most all the proposed designs. This requires greater effort in the design, but guaran- tees the validity of the achieved results in current submicron process technologies. High frequency signals can easily be transmitted inside a circuit going from one via to another close by or through power and substrate lines. This effect is called crosstalk and it is unavoidable, so a way to cancel it must be found. Bal- anced signals allow us to reject common-mode noise very efficiently, so it can be used to remove noise caused by crosstalk. Furthermore, balanced circuits obtain better linearity results as even non-linear harmonics are cancelled and also per- mit doubling the noise-signal ratio of the differential signal with regard to non- balanced circuits. On the other hand, balanced circuits require greater area and power consumption, but this increase can be reduced as differential structures can be less complex than single ones. Additionally, balanced circuits need special structures to fix the common-mode voltage and special care is a must in layout to keep good symmetry between balanced signal paths. Anyhow, all these drawbacks are acceptable if we are to obtain the advantages inherent to balanced signals and, as a consequence, balanced signals have been employed in most circuits presented here.

1.1 AGC Design Strategies

Automatic gain control (AGC) is an essential function in many modern applications where incoming signals with a high dynamic range must be processed, such as disk drive read channels, medical and multimedia systems, wire and wireless commu- nications, sensor interfaces and charge coupled devices (CCD) imagers, to name a few. In disk drives, the AGC circuit is required to stabilize the voltage supplied to the detector and filter section in the read channel [2]. In modern hearing aids, AGCs are employed to fit information variations in the world of sound in the dynamic range of the person with hearing impairment; this way, the loss of certain parts of information or the excess of the pain limit is avoided and an improvement of the speech intelligibility is achieved [3, 4]. AGC circuit is also a critical block in many communications applications such as portable [5] or optical systems [6–8], WLAN 4 1â Introduction

VIN VOUT VIN VOUT VGA VGA

FB-AGC FF-AGC

Fig. 1.3⁠Feedback (âleft) and feedforward (ârigth) AGC architectures or Bluetooth receivers [1, 9], etc., where the received signal strength depends on the distance between the and the receiver. The general function of the AGC circuitry is to automatically adjust the output signal of a variable or programmable gain amplifier (VGA or PGA) to an optimal rated level, for different input signal strengths. This is needed to assure that the input dynamic range for the subsequent analog to digital converter (ADC) is nei- ther saturated with large signals nor makes the system fall below a tolerable noise level. Furthermore, in all these applications where analog signals must be processed before converting them to digital, the number of bits required by the analog-to- digital converter depends on its input dynamic range. A converter dynamic range, in decibels, is six times the number of bits, so a 10-bit converter has 60ÂdB of range. If the carrier average-signal-strength swing is 50–80ÂdB, which is common in many applications, you lose most or all of the headroom you need to distinguish the infor- mation embedded within that carrier [10]. Since the ADC is one of the most power hungry blocks of the analog receiver, its reduction in complexity, derived from op- erating with a delimited dynamic range set by the AGC, leads to a reduction in the total power consumption of the system. This is a critical characteristic, for example, in modern portable systems [11]. The AGC function can mainly be realized in two different ways according to the signal which senses the amplitude and adjusts the gain correspondingly. If the input VGA signal is employed, the AGC loop moves forward in the receiver signal direction, so this loop is called “feedforward loop”. On the other hand, if the output VGA signal is sensed, the AGC loop moves backwards in the signal direction. This loop is called “feedback loop”. Both structures are drawn in Fig.Â1.3. Between both loop structures, the feedback one is the most popular when designing AGCs since it provides higher linearity and requires narrower dynamic range (DR) in the detector. However, as will be demonstrated in next chapter, feedforward loops present some very interesting characteristics, such as wide bandwidth loop and consequently, faster settling-time which can overshadow the drawbacks: high linearity loop and wide DR peak detector are required. Thus, this book is mainly focused on the study of this kind of structure. Apart from the classification depending on the direction of the AGC loop, AGCs can be classified in a further two groups depending on whether the control loop is digital or analog. The digital option is much simpler and commonly employs the Digital Signal Processor (DSP) to control the PGA in a feedback loop [12]. How- 1.1â AGC Design Strategies 5 ever, this solution does not allow a fast-settling response and spends DSP resources which could be employed for other issues. These problems are both solved by using a digital solution in feedforward loop: the simplicity inherent to the digital solution is kept without the previously mentioned drawbacks. Nevertheless, certain applica- tions such as audio do not admit discrete gain steps or require small gain error so a high number of bits would be required to adjust the gain through the PGA. The analog AGC is usually more complex and specific, but in such cases this solution is preferred. Finally, a combination of both can be the best option as advantages are put together in one sole circuit. All these options are analyzed in depth further on, in Chap.Â4. Focusing on wireless receivers, the receiver architecture itself greatly affects the AGC specifications. The IF filter, analog-to-digital converter (ADC) and AGC block order in the receiver chain would require different solutions for the AGC. Therefore, if the AGC loop is after the ADC, the only logical solution is to design a digital AGC circuit which would be inside the DSP. The drawbacks are that using DSP processing capacity increases system power consumption and that feedback architecture is only possible, so this solution has the speed limitations typical of this kind of loop. If the AGC is at the beginning of the IF block, the received signal could be quite noisy and the AGC design would have to be able to distinguish be- tween wanted signal and noise; in contrast, the design of the filter would be greatly simplified as its dynamic range requirement would be very low. Finally, if the AGC is between the filter and the ADC, the filter requires special care in the design as it must be able to filter the signal and handle the full input dynamic range. However, the AGC receives a completely filtered signal without the inconvenience of spuri- ous signals. Therefore, each solution offers advantages and drawbacks. The design of a cir- cuit can be greatly simplified just by increasing the complexity of the one close to it. When trying to improve their block over other previous designs in the literature, designers usually forget the circuit background: the best solution is the one which improves the whole receiver performance. Furthermore, circuit performance usu- ally improves from very simple to moderate ones with a moderate increase in power and area consumption. However, achieving very high performance usually requires extremely high power and area consumption. Therefore, in this book has been considered a structure which obtains a good trade-off among different blocks’ performance and one which is usually employed in receivers [1, 13]. This solu- tion is a mixture where the AGC is split into at least two cascaded parts, with the filter inserted between them. The first half of the AGC, i.e. the blocks preceding the filter, introduces a rough gain adjustment that does not require great precision so high noise rates are easily withstood. This rough gain adjustment is enough to reduce the filter input dynamic range by many decibels so its design is not so complex. Finally, AGC fine gain block is introduced after the filter. This way both the AGC and the filter gain advantages, none of which is either too complex or power/area hungry. An example figure of the considered receiver chain is shown in Fig.Â1.4. 6 1â Introduction

IF Strip

From Vin Channel Vout To Preamp VGA LNA Filter ADC Mixer

Fine Gain VCO Switched Gain Control Control

Vref

Fig. 1.4⁠IF strip example

1.2 AGC Architectures for RF Receivers

The applications that will be considered in this book are focused on RF receiver IF blocks. Typically these blocks are in the HF (3–30ÂMHz) and VHF range (30– 300ÂMHz). Therefore, in order to fulfil the whole work frequency range, a differ- ent AGC solution is offered for three different frequency ranges: lowest frequency range goes from 300ÂkHz to 20ÂMHz; middle frequency range is around 100ÂMHz and high frequency AGC can work with input signals up to 250ÂMHz. Another characteristic specifically present in wireless receivers is the wide dy- namic range required due to the possibility of receiving signals from points close or far from the emitter. This wide dynamic must be achieved while keeping â±â1ÂdB accuracy. Finally, some wireless receivers, such as WLAN and Bluetooth receivers, have stringent settling-time requirements. In WLAN receivers one of the accepted stan- dards is the so called “IEEE 802.11a standard” [14]. This standard uses orthogo- nal frequency division multiplexing (OFDM) to allow high data rates in multipath WLAN environments. As it is known, in the IEEE 802.11a WLAN protocol, re- ceived data consists of a preamble, header and data segments. The receiver esti- mates the characteristics for each channel during the reception of the preamble, which consists of ten symbols of 0.8µs microseconds as those in Fig.Â1.5. In the literature it is possible to find feedback AGC examples designed for wire- less applications, such as that proposed in [15]. This is a conventional feedback AGC designed in a 0.25µm BiCMOS technology which includes on-chip peak- detect and hold gain control circuitry with short attack-time, developed for IF trans- ceiver applications in burst-transmission-based wireless access systems. To obtain the short attack-time as well as the analog gain control voltage, an on-chip gain control processes the amplifier differential output signals through a peak detection/ comparison block (PCO) and a multistage gain control circuit (GCC) as shown in Fig.Â1.6. This AGC obtains a 400ÂMHz bandwidth with gain range from 0 to 45ÂdB, a fast attack-time of 0.3µs and a total power consumption between 60 and 104ÂmW. This is a very high frequency AGC with a very fast attack-time. However, its fast attack-time does not guarantee a fast release-time, so global settling-time can 1.2 AGC Architectures for RF Receivers 7

1

0.8

0.6

0.4

0.2

0

Amplitude (V) –0.2

–0.4

–0.6

–0.8

–1 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 t (s) –6 x 10

Fig. 1.5⁠OFDM preamble symbols transient response

Fig. 1.6⁠Feedback closed- loop AGC block diagram VIN VGA VOUT

VREF GCC PCO

be slow. Besides, in feedback closed-loop AGCs, to keep the circuit stable and to properly determine the gain control signal, the loop response must be much slower than the input signal. This means that the loop needs many input signal cycles to generate a valid gain control signal. Therefore, in cases as OFDM modulation with only few symbols available to adjust the receiver AGC gain, the associated stringent time constraints preclude the use of AGC schemes using a closed-loop feedback technique to settle the desired output signal amplitude. As an alternative to obtain faster convergence, a so-called open-loop AGC algo- rithm has recently been proposed [1]. The architecture proposed in this case makes use of a pseudo-RMS block to estimate OFDM signal amplitude. Then, this ampli- tude is compared with a reference and converted to the required form by a computa- tion block. Finally, the inverse gain block generates the control signal that is applied 8 1â Introduction

VIN VGA VOUT

VCP RMS

Inverse Gain S&H block VO1

VC VREF

VC1 VC2 Computation block VC1 VC2 = VC1 VREF / VO1

Fig. 1.7⁠Feedback open-loop AGC block diagram to the VGA. Complete block diagram is shown in Fig.Â1.7. These operations are realized in a feedback loop. Nevertheless, to avoid inherent limitations of conven- tional closed-loops the signals generated by pseudo-RMS block and computation block are sampled and held, so this loop is always kept as an open loop. Thus, this feedback open-loop AGC, implemented in 0.18 µm CMOS, ac- complished the strict time requirements of a 802.11a WLAN receiver, achieving 18ÂMHz bandwidth, gain range between −â8 and 32ÂdB, a maximum settling-time below 4.2µs and total power consumption of 10.44ÂmW. However, a quicker solu- tion would be to employ feedforward AGC architecture. In this context is where the work of this book is placed. The main objective is to offer a reliable alternative to conventional feedback AGC solutions, based on the feedforward approach that has not been developed as much as its counterpart. Al- though each application requires different specifications, the AGCs proposed in this book mean to achieve the usual specifications required for WLAN receivers. Thus, settling-time must be around 1µs; non-linearities below 1%; considered frequency range, as said before, from 3 to 300ÂMHz and gain error less than 1ÂdB. Finally, as is compulsory in all ASICs, the complete specifications mentioned must be obtained with both area and power consumption kept to an absolute minimum.

1.3 Outline of the Work

The main objective of this book is to develop AGC solutions in the environment of wireless receivers, aiming to present novelties which mean an improvement to cur- rent states-of-art. Two common process technologies, CMOS and SiGe BiCMOS, 1.3 Outline of the Work 9 are employed in this endeavour and thus, a wider application and solution range is covered. Though the detailed specifications of an AGC depend on each application, the following numeric values are chosen as general objectives: the frequency range variation can be between 30 and 250ÂMHz; fast settling-time is pursued, generally below 1µs; maximum total non-linearities below 1% are accepted; and gain error must be under 1ÂdB. These are only approximate values; for a particular application few of them can be improved without jeopardizing the rest. Moreover, the main objective is to obtain a good trade-off between all these specifications, area and power consumption. In addition, this study is mainly focused on wireless receivers with stringent constraints in settling-time and wide dynamic range, such as WLAN and Bluetooth receivers. It is under these specifications that feedforward AGCs present their great- est advantages. Thus, through this book we offer a detailed study about feedforward AGCs design, their main characteristics and performances as an alternative to con- ventional feedback AGCs. The starting point is a theoretical analysis of both feedforward and feedback con- figurations and their behavioural modelling. Next, basic components in gain control function are characterized and modelled, this time by an electric simulator. These basic blocks must be carefully chosen as they will limit the full AGC performance, so their specifications have to guarantee those required by the corresponding appli- cation. Finally, the work is focused on the complete characterization of few differ- ent gain control loops required to implement a complete AGC system making use of some previously studied cells. Thus, three complete AGC systems are presented at the end as a result of the complete study carried up along this book. This book is set out in five different chapters; the first one includes this introduc- tion and the last one presents conclusions of the whole work. In all the chapters a section is reserved at the end for conclusions drawn for that chapter and bibliogra- phy employed. This first chapter sets out to situate, in the corresponding context, the work de- veloped in this book. In addition, the aims to be achieved are presented and the book organization is offered. The second chapter contains a theoretical analysis of gain control loops: feed- back and feedforward. First, feedback AGC loop models are developed starting from the most basic to the most generic configuration. Then, the transfer function is obtained for this later AGC model and possible AGC solutions are analyzed look- ing towards the optimization of the time-constant. The ideal solution is that which keeps time-constant as a function of invariable parameters. In the case of feedfor- ward loop the same process is followed. Once the main solutions are identified, Matlab numerical computing environment is employed to implement behavioural models of each AGC. These models are then simulated to verify results predicted by developed equations. Thus, in this chapter, main AGC solutions are identified and taken into account for the AGC structure proposals made in this book. In Chap.Â3 the study of main AGC circuit blocks is completed. The variable gain amplifier, the peak detector and the control voltage generation block are separately analyzed, each one in a different section. In the first section, a classification of dif- ferent VGAs is given depending on the different ways to change gain: passive and 10 1â Introduction active VGA. At the same time, the VGA cells that will be employed in complete AGCs are characterized, their design is explained and simulation and experimental results are offered. Moreover, as wide gain range VGAs require very specific struc- tures, one of the most popular solutions is chosen and its properties are explained. The next section deals with the analysis of different peak detectors. In this case, an evolution of peak detectors structures is offered from the most basic cell to the more complex ones that can be found in the literature. Furthermore, some of these circuits are improved by several proposals so the fast-settling objective is covered while keeping other performances at the same level. As well as for VGAs, several peak detector proposals are characterized as they will be employed in the develop- ment of AGC systems. Finally, a general view of the possible control voltage generation circuits is of- fered in Chap.Â3. This block is actually a group of blocks which will be different depending on the AGC structure and the VGA gain control function. In general, digital or analog, feedback or feedforward, each one requires different solutions. Thus, generalized solutions are only considered at this point, while more specific solutions are presented later for each AGC proposal. Chapter 4 offers a summary of the analysis made and the blocks presented throughout the book, all included in three complete AGC proposals. These AGC circuits are completely characterized, each design is explained step by step, simula- tion results are offered and finally experimental verifications are given. To conclude, Chap.Â5 draws up the general conclusions of the book and the most important contributions are summarized. Moreover, the aspects that have not been analyzed in depth are identified and future work lines are drawn. At the end of this work, are several appendixes. The first one shows some gen- eral layout techniques considered which are critical to achieve valid prototypes. Furthermore, also described are the experimental considerations used. Both are completely necessary in order to validate the designs developed throughout this book as any error committed at these stages could undermine the work done pre- viously. Finally, further appendixes give an acronym list, parameter glossary and process parameters.

References

1. O. Jeon, R.M. Fox, B.A. Myers; “Analog AGC Circuitry for a CMOS WLAN Receiver”; Sol- id-State Circuits, IEEE Journal of; Vol. 41, Issue 10, pp. 2291–2300, Oct. 2006. 2. R. Harjani.; “A low-power CMOS VGA for 50 Mb/s disk drive read channels”; Circuits and Systems II: Analog and Digital Signal Processing, IEEE Transactions on; Vol. 42, Issue 6, pp. 370–376, Jun. 1995. 3. W.A. Serdijn, A.C. Van Der Woerd, J. Davidse, A.H.M. van Roermund; “A low-voltage low- power fully-integratable automatic gain control for hearing instruments”; Solid-State Circuits, IEEE Journal of; Vol. 29, Issue 8, pp. 943–946, Aug. 1994. 4. J. Silva-Martinez, Salcedo-Suner; “A CMOS automatic gain control for hearing aid devices”; Circuits and Systems, 1998. ISCAS ’98. Proceedings of the 1998 IEEE International Sympo- sium on; Vol. 1, pp. 297–300, 31 May-3 Jun. 1998. References 11

â 5. G.S. Sahota, C.J. Persico; “High dynamic range variable-gain amplifier for CDMA wire- less applications”; Solid-State Circuits Conference, 1997. Digest of Technical Papers. 43rd ISSCC. 1997 IEEE International; pp. 374–375, 488, 6–8 Feb. 1997. â 6. M. Nakamura, N. Ishihara, Y. Akazawa, H. Kimura; “An instantaneous response CMOS opti- cal receiver IC with wide dynamic range and extremely high sensitivity using feed-forward auto-bias adjustment”; Solid-State Circuits, IEEE Journal of; Vol. 30, Issue 9, pp. 991–997, Sep. 1995. â 7. A. Tanabe, M. Soda, Y. Nakahara, T. Tamura, K. Yoshida, A. Furukawa; “A single-chip 2.4- Gb/s CMOS optical receiver IC with low substrate cross-talk preamplifier”; Solid-State Cir- cuits, IEEE Journal of; Vol. 33, Issue 12, pp. 2148–2153, Dec. 1998. â 8. W. I-Hsin, L. Shen-Iuan; “A 0.18-μm CMOS 1.25-Gbps Automatic-Gain-Control Ampli- fier”; Circuits and Systems II: Express Briefs, IEEE Transactions on; Vol. 55, Issue 2, pp. 136–140, Feb. 2008. â 9. W. Hioe, K. Maio, T. Oshima, Y. Shibahara, T. Doi, K. Ozaki, S. Arayashiki; “0.18-/spl mu/m CMOS Bluetooth analog receiver with -88-dBm sensitivity”; Solid-State Circuits, IEEE Journal of; Vol. 39, Issue: 2, pp. 374–377, Feb. 2004. 10. B. Schweber; “AGC disciplines RF and fiber signals so they "ain’t misbehavin"”; EDN, Vol. 43, Issue 3, 1998. 11. B. Calvo, S. Celma, M.T. Sanz; “Low-voltage low-power 100 MHz programmable gain am- plifier in 0.35 μm CMOS”; Analog Integrated Circuits and Signal Processing; Vol. 48, Issue 3, Sep. 2006. 12. H. Elwan, T.B. Tarim, M. Ismail; “Digitally programmable dB-linear CMOS AGC for mixed- signal applications”; IEEE Circuits and Devices Magazine; Vol. 14, Issue 4, pp. 8–11. Jul. 1998. 13. C.P. Wu, H.W. Tsao: “A 110-MHz 84-dB CMOS programmable gain amplifier with integrat- ed RSSI function”; Solid-State Circuits, IEEE Journal of; Vol. 40, Issue 6, pp. 1249–1258. Jun. 2005. 14. “Wireless Lan Medium Access Control (MAC) and Physical Layer (PHY) Specifications: High-Speed Physical Layer in the 5-GHz Band”; IEEE Std. 802.11a; Part11, Sep. 1999. 15. T. Drenski, L. Desclos, M. Madihian, H. Yoshida H. Suzuki, T. Yamazaki; “A BiCMOS 300ns Attack-Time AGC Amplifier with Peak-Detect and Hold Feature for High-speed Wire- less ATM Systems”; Solid-State Circuits Conference, Digest of Technical Papers. ISSCC. IEEE International; pp. 166–167, Feb. 1999.

Chapter 2 AGC Fundamentals

From a practical point of view, the most general description of an AGC system is presented in Fig.Â2.1. The input signal VIN is amplified by a variable gain amplifier (VGA), whose gain is controlled by a signal VC. In order to adjust the gain of the VGA to its optimal output level VOUT, the AGC generally, first detects the strength level of the signal using the peak detector; it then compares this level with a refer- ence voltage VREF and finally, it filters and generates the required control voltage. This function can be performed by detecting the signal at the output of the VGA, so the architecture is called “feedback” AGC (Fig.Â2.1a), or at the input, in which case it is identified as “feedforward” AGC (Fig.Â2.1b) [1]. Both structures present different inherent characteristics which means choosing one or the other depending on the target application. Feedback AGCsâ The advantages of using feedback AGC are: first, the dynamic range required at the detector input is reduced in the same way as the AGC gain range; and second, the circuit linearity is high due to the feedback loops’ inherent characteristic. On the other hand, this architecture also has the following disadvan- tages. The high level of feedback required to reach high compression ratios makes feedback processors more likely to exhibit instabilities if high compression ratios are managed. Instability is also likely in feedback expanders where high expansion ratios are desired. Finally, the feedback loop will always have a maximum boundary bandwidth in order to maintain stability. This maximum bandwidth entails a mini- mum settling-time [2]. In many applications this is not a significant issue, since sev- eral signal periods are processed before the gain is changed. However, in other cases the standard imposes a maximum settling-time that precludes the use of conven- tional feedback configurations [3, 4]. Moreover, in order to keep the settling-time constant, the feedback configuration requires the use of specific control voltage generation functions. Feedforward AGCsâ High compression and high expansion ratios are possible with this configuration [5]. Moreover, the feedforward AGC offers a time constant that mainly depends on the peak detector response, so this loop is ideally not affected by the minimum settling-time restriction. In contrast, the disadvantages of a feed- forward AGC are that the level detector is exposed to the entire dynamic range of

J. P. Alegre Pérez et al., Automatic Gain Control, Analog Circuits and Signal Processing, 13 DOI 10.1007/978-1-4614-0167-4_2, ©ÂSpringer Science+Business Media, LLC 2011 14 2â AGC Fundamentals

9,1 9287 9,1 9287 9*$ 9*$

'HWHFWRU 'HWHFWRU &RPS &RPS 95HI 95HI D E

Fig. 2.1⁠Simplified block diagrams of feedback (a) and feedforward (b) AGCs

Table 2.1⁠Summary of Advantages Disadvantages main AGC loop control Feedback Lower input dynamic Instabilities with high characteristics Loop range required by compression or peak detector expansion Inherently higher Higher settling-time linearity Feedforward No instability AGC input dynamic Loop problems range required by Ideally, zero peak detector settling-time High linearity required in loop the input signal and that the loop requires higher linearity, since the feedback loop inherent linearity improvement is now absent. TableÂ2.1 summarizes the main char- acteristics of these two configurations. To provide a deep insight into the theory and design of AGC circuits, this chapter will be focused on the study of the control theory involved behind the primary idea of an AGC system, for both the feedback and feedforward configurations. After that, a few practical AGC circuits will be simulated and the obtained performances analyzed.

2.1 AGC Loop Fundamentals

2.1.1 AGC with Feedback Loop

Typically, the AGC circuit has to adjust the amplitude of the incoming signal before the ADC continues with the recovery of data from the input signal. This adjustment usually occurs during a predetermined preamble where known data are transmitted and whose duration should be minimized to attain an efficient use of the channel bandwidth. One of the key issues in feedback control loops is that if the control voltage generation function is not correctly chosen, the acquisition time will be a function of the input amplitude and the preamble will be shorter than the slow- est possible AGC circuit acquisition time [6, 7]. Consequently, to optimize system 2.1â AGC Loop Fundamentals 15

Fig. 2.2⁠Common block diagram of feedback AGC 9,1 9*$ 9287 * 9&

9& /RRS 93 3HDN Ā /RJ&RQY )LOWHU 'HWHFWRU + V 

95() performance, the AGC loop settling time should be well defined and signal inde- pendent. A typical feedback AGC scheme is shown in Fig.Â2.2. It consists of a variable gain amplifier, a peak detector and a loop filter. The loop filter is required to gener- ate the DC level required to manage the VGA and in feedback AGCs, it is especially important to settle loop bandwidth and keep it stable. In this scheme, VIN is the input signal to be adjusted; VOUT is the output signal which must have a constant ampli- tude associated to VREF; VP is the amplitude level detected by the peak detector; VREF is the reference which fixes the required output amplitude; and VC is the control signal which varies the gain of the VGA by means of a function G(âVC) in order to obtain the desired output. Although the AGC loop is typically a nonlinear system, the employment of a logarithmic converter, shown in the scheme in dashed lines, together with the cor- rect function G(âVC), will result in a linear system in decibels (dB) [8]. As will be shown in the following analysis, this result is the most common condition required to obtain the essential property of a constant acquisition time [9]. The loop works by increasing or reducing VC until VP is made equal to the reference voltage VREF which determines the output amplitude.

Consider now input VIN and output VOUT signals given by the general expres- sions:

VIN (t) AIN (t)f (wt) = VOUT (t) AOUT (t)f (wt), (2.1) = where Ai corresponds to the amplitude term and f is a function which introduces the frequency dependence. Since the AGC loop responds only to the amplitude level of the signals, let us continue this analysis considering only AIN(ât) and AOUT(ât). From Fig.Â2.2 the rela- tionship between the input and output amplitude is given by:

AOUT G(VC)AIN . (2.2) = To facilitate analysis, the AGC of Fig.Â2.2 is reshaped to the logarithmic domain, so in the following, the equivalent representation of the AGC shown in Fig.Â2.3 will be used. This AGC model employs logarithmic blocks to express the main input 16 2â AGC Fundamentals

$,1 ORJ $,1 [ W \ W $287 NFH[S \ NF  

ORJ * 9& NFH[S \

$287 9& NFORJ $287 *0 Ā NF & 

NFH[S ]

]

ORJ 95()

NF

95()

Fig. 2.3⁠Model of generalized feedback AGC signals in dBs. Thus, x, y and z are now the input, output and reference signals respectively. The peak detector block has been removed from the AGC in Fig.Â2.3, since it has been considered that the peak detector extracts the amplitude of VOUT linearly and much faster than the loop basic operation, so it has no effect on the loop dynamics. The loop filter H(âs) is represented as a low pass filter with the transfer function equal to GM2/sC. Again, as shown in the figure, only amplitude levels are taken into account. Thus, (2.2) can be rewritten as:

AIN AOUT kc1 exp log [G(VC )] log , (2.3) = +  kc1  where kc1 is a constant with the same dimensions as AIN and AOUT. On the other hand, according to Fig. 2.3, the output of the AGC can be ex- pressed as: y(t) x(t) log [G(V )] (2.4) = + C and the control voltage is given by this expression:

t GM2 z y(τ) VC(t) kc1e kc2 log e dτ. (2.5) = C − 0    Taking the derivative with respect to the time of (2.4) and introducing the result in (2.5), the following equation is obtained:

dy dx 1 dG GM2 z y(t) kc1e kc2 log [e ] , (2.6) dt = dt + G(VC) dVC C −  2.1â AGC Loop Fundamentals 17 which represents a nonlinear system response of the output y to the input x, depend- ing on the function G(âVC). Let us rewrite (2.6) in the following way: dy dx s(VC )kc1y(t) s(VC )VREF , dt + = dt + (2.7) where

1 dG GM2 s(VC ) . (2.8) = G(VC ) dVC C

EquationÂ(2.7) describes a first-order linear system having a high pass response with a time constant given by:

1 1 1 dG GM2 − τ kc2 . (2.9) = s(VC )kc2 = G(VC ) dVC C 

We are now going to look at different system responses depending on the choice of G(âVC) function. Many different functions could be employed though only main cases will be analyzed in this work.

Linear functionâ Let us begin with the simplest case taking G(âVC) as a linear func- tion: G(âVC) = aVC, where a is a constant. With this selection, the time constant in (2.9) yields to:

1 1 GM2 − τ kc2 . (2.10) = VC C 

As shown in (2.10), the time constant, τ, depends on the control voltage, VC. As a result, τ depends on the input signal strength, since VC will vary inversely propor- tional to the input level. In many receivers, input dynamic range can be up to 80ÂdB [10, 11]. This means the time constant for small signals would be ten thousand times longer than the minimum τ. As a result, given that the ADC must wait until all the previous blocks characteristics are fixed, the time performance of the full receiver would be degraded. Exponential functionâ The solution to the above problem is to employ a func- tion G(âVC) so that the associated time constant is kept steady throughout the full dynamic range: the most popular solution is to fix GM2 and C in Fig.Â2.3 and to make  constant by choosing the correct function G(âVC). Thus, we need only to solve the differential equation below:

1 dG kG1, (2.11) G(VC ) dVC = which has the unique solution given by:

kG1VC G(VC ) kG2e , (2.12) = 18 2â AGC Fundamentals so the time constant depends only on certain internal circuit characteristics:

C τexp log constant. (2.13) − = GM2kG1kc2 =

The function in (2.12) is the most popular solution employed to implement AGCs. This has lead many designers to try to implement the VGA with an exponential con- trol voltage [10–13]. This is not difficult if BiCMOS technology is used [14], but the logarithmic block (in dotted lines) is quite complicated to implement in CMOS technologies, and consequently, in some CMOS systems this block is omitted [15]. In these cases, it is also possible to meet the constant settling-time objective con- sidering small signal approximations. Using (2.8) and considering s(âVC)â = âkx, (2.6) without the log function is rewritten as:

dy dx y(t) kx[VREF kc1e ]. (2.14) dt = dt + −

Assuming that the output amplitude of the AGC loop is operating near its fully converged state AOUTâ ≈ âVREF, or equivalently, (âyâ−âz)â<<â1, the exponential function in (2.14) can be expanded in Taylor series as shown below:

y(t) z e e [1 y(t) z ... ]. (2.15) ≈ + − +

z Since kc1eâ = VREF, the following expression is obtained from (2.14):

dy dx VREF kx VREF y(t) kx VREF log , (2.16) dt + = dt + kc1  where the first-order linear system described by (2.16) again has a high pass re- sponse with the following time constant:

1 1 1 dG GM2 − τ VREF . (2.17) = VREF kx = G(VC) dVC C 

Bearing in mind once again the assumptions required to develop (2.11) and (2.12)

(i.e. GM2, C = constant and G(âVC) exponential), the time constant is given by:

C τexp . (2.18) = GM2kG1VREF

Notice that in this case the settling time is a function of the input variable VREF, indicating that the system is fundamentally nonlinear. On the contrary, (2.13) is in- dependent of any bias condition, since in this case the circuit is perfectly modelled as a linear system in the logarithmic domain. 2.1â AGC Loop Fundamentals 19

Fig. 2.4⁠Equivalent AGC loop diagram

A(s) VIN(dB) VOUT(dB)

F(s)

Although the most popular, solution (2.11) is not the only way to achieve a con- stant settling-time. As shown in (2.9), the function of the time constant depends on more parameters which can be employed to fix it to a constant value. In fact, a more general solution would be to consider a variable GM2, while C is kept constant due to the difficulty in varying its value in a continuous way. In this more general case, the settling-time will be constant if

GM2 dG kx C constant. (2.19) G(VC) dVC = =

Many solutions exist which satisfy (2.19), however in this chapter only the sim- plest one will be commented on briefly. This solution, already proposed in [9], is to consider again a linear variation G with the control voltage VC, but in this case GM2 varies in the same way as G. Therefore, dG/dVC is constant due to its linear depen- dence and GM2(âVC)/G(âVC) is constant because both functions are changed together in the same way. Thus, a constant settling-time is achieved without employing any complex function. A second key issue in feedback AGCs is the stability of the loop. As in any other feedback loop, designer must be careful when choosing parameters to guarantee the loop is stable for all conditions. Consider the equivalent feedback AGC loop diagram in logarithmic domain shown in Fig.Â2.4. Its transfer function can be given as in standard feedback theory by

A(s) H(s) . (2.20) = 1 A(s)F (s) + where A(s) is VGA transfer function and F(s) is AGC loop transfer function. For the study of stability, the well-known rules of feedback theory apply [16]. Many AGC stability analysis only consider the loop filter poles [17, 18]. However, in any practical AGC design, at least two other secondary poles should be consid- ered: one main pole associated to the VGA and another one to the peak detector. Here, as we are only interested in minimum stability conditions and their effects on loop performance, just a first order filter, VGA and peak detector are considered to 20 2â AGC Fundamentals simplify the analysis, but any higher number of poles would only introduce more limitations to loop stability conditions. The choice of VGA main pole must be done considering input signal bandwidth and noise constraints. The pole must be high enough, so that the amplifier can man- age the full input signal bandwidth. On the other hand, this pole cannot be chosen infinitely high as this is very power expensive and it would increase the noise intro- duced in the system. Thus, the usual choice is to match the VGA pole at the input signal highest frequency. One of the simplest ways to detect signal strength is to first rectify and next filter it. To correctly detect signal strength, detector output ripple must be low. This is possible if the signal strength is detected by averaging many signal cycles. How- ever, this also means that the detector pole is much lower than the main signal fre- quency or, in other words, much lower than the VGA pole. Finally, AGC loop filter introduces a third pole. As said before, a first order filter is considered to simplify this analysis. The main function of this filter is to reduce the ripple generated by the detector to generate a cleaner control voltage. Thus, to accomplish this function and to avoid the stability problems generated by having two poles very close in a feedback loop, this pole is chosen still smaller than the peak detector pole, which at the same time was smaller than the VGA pole:

pF << pPD << pVGA. (2.21)

Consequently, the feedback AGC loop bandwidth is much smaller than VGA’s one, so loop response is much slower than input signal. That is a limitation in fast-set- tling applications, as mentioned in Chap.Â1.

2.1.2 AGC with Feedforward Loop

Feedforward loop does not have the stability problems which can arise in feedback loop, as the circuit is open loop [1]. This loop responds in a predefined way to the input signals and so, its settling-time depends only on the time required by the level detector to follow the input signal, which is usually much lower than the feedback loop filter time constant. In consequence, feedforward loop has much faster con- vergence and does not present the time-constant variation problems explained in Sec.Â2.1.1. A typical feedforward AGC scheme is shown in Fig.Â2.5, which consists of a variable gain amplifier, a peak detector and a control voltage generation circuit.

The nodes in this scheme have equivalent meaning to those of feedback AGC: VIN is the input signal that must be adjusted; VOUT is the output signal which must have a constant amplitude associated to VREF; VP is the amplitude level detected by the peak detector; VREF is the reference which fixes the required output amplitude; and VC is the control signal generated as a function of VP and VREF to vary the gain of the VGA by means of function G(âVC) to obtain the wanted output. 2.2 Matlab Simulations 21

Fig. 2.5⁠Common block dia- gram of feedforward AGC VIN VGA VOUT G(VC)

VC

VP Peak VC = F(VP,VREF) Detector Generator

VREF

The key problem associated with feedforward AGCs is that the peak detector needs to be linear in the full VGA input dynamic range. This drawback can lead to a very power hungry detector or in some cases, makes its implementation impossible. In order to reduce the required dynamic range, multi-stage VGAs can be employed, so that the total input dynamic range is shared out between them and the detector sees only a small part of the full range.

2.2 Matlab Simulations

In order to verify the convergence response for the different AGC loops, behav- ioural simulations were carried out in Matlab using Simulink, a tool for modelling, simulating and analyzing multi-domain dynamic systems [19]. Five loop cases are analyzed: four feedback and one feedforward, one for each solution given in a pre- vious section. Feedback models are based on Fig.Â2.3 where different G(âVC) are em- ployed. The feedforward model is based on a VGA and loop linear in dB response; although any other function where the loop response is interrelated with the VGA gain function would ideally have the same result.

2.2.1 AGC with Feedback Loop

Simulink models based on the AGC loop in Fig.Â2.3 are implemented for the feed- back case. Differences are then introduced in the model depending on the function

G(âVC). All the cases will undergo the same test conditions so that a direct compari- son can be made. To facilitate simulations, only amplitude signals are considered.

The reference signal, Vref, is arbitrarily chosen equal to 0.1ÂV, but any other value would not affect the model dynamics. As a result, three different stepwise signals are introduced which start at tâ = â0Âs with an amplitude of 0.2ÂV; at tâ = â5µs these signals change abruptly to 100, 20 or 2ÂmV, values which correspond to 6, 20 and 40ÂdB steps, respectively, and keep constant at these values until tâ = â10µs. The reference signal is set at 100ÂmV and the loop filter is chosen to have a DC gain equal to 20ÂdB. 22 2â AGC Fundamentals

 X OQ  H 6WHS

OQ   2XW V ±.± Ā OQ ,QWHJUDWRU *P&

OQ



9UHI

Fig. 2.6⁠AGC1: Simulink model

Fig. 2.7⁠Convergence 0.2 6 dB response of AGC1 for differ- 0.18 ent stepwise changes 20 dB 0.16 40 dB 0.14 0.12 0.1 0.08 Amplitude (V) 0.06 0.04 0.02 0 0 1 2 3 4 5 6 7 8 9 10 t (us)

2.2.1.1â Case 1: Linear AGC

The first analyzed case is the linear AGC, whose convergence is described by:

1 1 GM2 − τ kc2 . (2.22) = VC C 

The equivalent Simulink model can be seen in Fig.Â2.6, where G(âVC)â = âVC. According to (2.22), the settling-time of this AGC should increase as long as the input signal decreases. Thus, as expected, the output transient response shown in Fig.Â2.7 validates the expected result for the linear AGC.

2.2.1.2â Case 2: Exponential AGC

The second case employs an exponential function G(âVC) to obtain a constant set- tling-time as shown in 2.2 Matlab Simulations 23

u ln ++ e Step

1 Out 1 –K– s +¯ ln Integrator Gm/C

ln 2 Vc 0.1 Vref

Fig. 2.8⁠AGC2: Simulink model

Fig. 2.9⁠Convergence 0.2 response of AGC2 for differ- 6 dB ent stepwise changes 20 dB 40 dB 0.15

0.1 Amplitude (V) 0.05

0 0 1 2 3 4 5 6 7 8 9 10 t (us)

1 dG kG1, (2.23) G(VC ) dVC = which has the unique solution:

kG1VC G(VC ) kG2e , (2.24) = so

C τexp log constant. (2.25) − = GM2kG1kc2 =

The employed Simulink model is the one in Fig.Â2.8. The same simulation conditions have been employed as in the previous model. Results are expressed in Fig. 2.9. The settling-time is constant and independent of any external parameter, this behaviour makes this AGC model one of the most popular options among AGC designers. 24 2â AGC Fundamentals

u ln ++ e Step Product

1 1 Out s –K +¯ Integrator Gm/C

2 Vc 1 In1

Fig. 2.10⁠AGC3: Simulink model

Fig. 2.11⁠Settling-time 5 versus reference voltage for 1% different input signal steps 4.5 10% 4 25% 50% 3.5 3 2.5 2 1.5 Settling-Time (90%) (us) (90%) Settling-Time 1 0.5 0 0. 1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Vref (V)

2.2.1.3â Case 3: Exponential AGC without log-converter

The model in Fig.Â2.8, still employs a logarithmic block in the AGC loop. This block is very complicated to be implemented in CMOS technology. However, it can be avoided. The Simulink model in Fig.Â2.10 verifies this response, which was previ- ously analyzed in (2.18):

C τexp . (2.26) = GM2kG1VREF

Considering small variations of the output signal versus the reference signal, this AGC settling-time could be considered constant. FigureÂ2.11 illustrates the varia- tion of the time constant (defined as the time required to converge to ±â10% of the 2.2 Matlab Simulations 25

Step VGA

1 Out

ln 1 +¯ s –K Integrator Gm/C Gm

ln

0.1 Vref

Fig. 2.12⁠AGC4: Simulink model reference voltage) versus the reference voltage. The simulated response verifies that expected in (2.18). The same simulation has been carried out for input signals with changes around VREF of 1, 10, 25 and 50%. Again, as expected, an almost constant settling-time is obtained where the response is degraded when the variation percent- age increases.

2.2.1.4â Case 4: Linear VGA with linear loop filter

The last feedback AGC model means to verify the response expected from:

GM2 dG kx C constant. (2.27) G(VC) dVC = =

A linear G(âVC) response is employed together with a linear GM2(âVC) filter response so that (2.27) is achieved. The corresponding Simulink model can be seen in Fig.Â2.12. This model ideally offers a constant settling-time and the response is confirmed in Fig.Â2.13.

2.2.2 AGC with Feedforward Loop

Finally, in order to compare all previous feedback AGC models with a feedforward AGC, the model in Fig.Â2.14 was simulated. 26 2â AGC Fundamentals

Fig. 2.13⁠Convergence 0.2 response of AGC4 for differ- 6 dB ent stepwise changes 0.18 20 dB 40 dB 0.16 0.14 0.12 0.1 0.08 Amplitude (V) 0.06 0.04 0.02 0 0 2 4 6 8 10 t (us)

Fig. 2.14⁠AGC5: Simulink ln + eu 1 model + Step Out

ln ¯+

ln

0.1 Vref

2.2.2.1â Case 5: Feedforward AGC

As shown in Fig. 2.4 and 2.14, no filter is needed in this AGC as stability will not suffer the lack of this block. Since the peak detector response is supposed to be immediate and given that ideally there is no other block to limit the frequency response of the loop, the ideal settling-time of this AGC is constant and immediate as shown in Fig.Â2.15.

2.3 Conclusions

In this chapter, the two main AGC configurations have been introduced: feedback and feedforward loops. An analysis has been made which, though not exhaustive, it highlights each of the main topology properties. Furthermore, Simulink-Matlab toolbox has been employed to verify these results by behavioural simulation. References 27

Fig. 2.15⁠Convergence response of AGC5 for a 0.2 stepwise change 0.15 0.1 0.05

Input Amplitude (V) 0 0 2 4 6 8 10 t (us) 0.2 0.15 0.1 0.05 0 Output Amplitude (V) 0 2 4 6 8 10 t (us)

Each architecture offers different advantages and drawbacks, which must be taken into account when choosing one for a target application. Conventional feedback AGC facilitates peak detector design and intrinsically offers higher linearity. On the other hand, high compression or expansion ratios make feedback processors more likely to exhibit instabilities; their correct design only allows the use of certain given control functions in order to obtain a constant settling-time circuit and furthermore, these circuits submit a trade-off between time constant and stability which precludes the possibility of designing AGCs with a very fast convergence. Alternatively, feedforward AGC requires a highly linear peak detector; since it responds in a predefined way to the input signals. However, stability is not a con- cern in these AGCs. In consequence, settling-time can be made ideally zero and much faster convergence is achieved. Due to the stringent time constraints in modern communication receivers, and due to the lack of available literature, this book will focus attention on the explora- tion of feedforward AGCs: new devices, circuits and techniques must be studied, developed and implemented to answer the demands of wireless technology, which is becoming ever faster, smaller and more complex. This study will be made mainly in standard CMOS technology, but also in SiGe BiCMOS technology which offers great advantages in performance with a cost difference that is rapidly increasing thanks to current submicron CMOS technologies.

References

1. “The Mathematics of Log-Based Dynamic Processors”; THAT Corporation; Application Note 101A. 2. D. Green; “Global stability analysis of automatic gain control circuits”; Circuits and Systems, IEEE Transactions on; Vol. 30, Issue 2, pp. 78–83, Feb. 1983. 28 2â AGC Fundamentals

3. O. Jeon, R.M. Fox, B.A. Myers; “Analog AGC Circuitry for a CMOS WLAN Receiver”; Sol- id-State Circuits, IEEE Journal of; Vol. 41, Issue 10, pp. 2291–2300, Oct. 2006. 4. W. Hioe, K. Maio, T. Oshima, Y. Shibahara, T. Doi, K. Ozaki, S. Arayashiki; “0.18-/spl mu/m CMOS Bluetooth analog receiver with -88-dBm sensitivity”; Solid-State Circuits, IEEE Jour- nal of; Vol. 39, Issue: 2, pp. 374–377, Feb. 2004. 5. J. Israelsohn; “Gain control”; EDN; pp. 38–46, Aug. 8, 2002. 6. J. Ohlson; “Exact Dynamics of Automatic Gain Control”; Communications, IEEE Transac- tions on; Vol. 22, Issue 1, pp. 72–75, Jan. 1974. 7. E.J. Tacconi, C.F. Christiansen; “A wide range and high speed automatic gain control”; Particle Accelerator Conference, 1993, Proceedings of the 1993; Vol.3, pp. 2139–2141, 17-20 May 1993. â 8. J. Smith; “Modern Communication Circuits”; McGraw-Hill, 1986. â 9. J.M. Khoury; “On the design of constant settling time AGC circuits”; Circuits and Systems II: Analog and Digital Signal Processing, IEEE Transactions on; Vol. 45, Issue 3, pp. 283– 294, Mar. 1998. 10. J.K. Kwon, K.D. Kim, W.C. Song, G.H. Cho; “Wideband high dynamic range CMOS vari- able gain amplifier for low voltage and low power wireless applications”; Electronics Letters; Vol. 39, Issue 10, pp. 759–760, May 2003. 11. Quoc-Hoang Duong, Le-Quan, and Sang-Gug Lee; “An All CMOS 84dB-Linear Low-Power Variable Gain Amplifier”; Digest of Technical Papers Symposium on VLSI Circuits; pp. 114 –117, 2005. 12. W. Liu, S.-I. Liu, S.-K. Wei; “CMOS exponential-control variable gain amplifiers”; Circuits, Devices and Systems, IEE Proceedings; Vol. 151, Issue 2, pp. 83–86, Apr. 2004. 13. S.-C. Tsou, C.-F. Li, P.-C. Huang; “A Low-Power CMOS Linear-in-Decibel Variable Gain Amplifier With Programmable Bandwidth and Stable Group Delay”; Circuits and Systems II: Express Briefs, IEEE Transactions on; Vol. 53, Issue 12, pp. 1436–1440, Dec. 2006. 14. B. Gilbert; “Limiting-Logarithmic Amplifiers”; Electronics Laboratories Advanced Engi- neering Course on RF IC Design for Wireless Communication Systems; Lausanne, Switzer- land, Jul. 1995. 15. Hung Yan Cheung, King Sau Cheung, J. Lau; “A low power monolithic AGC with automatic DC offset cancellation for direct conversion hybrid CDMA transceiver used in telemetering”; Circuits and Systems, 2001. ISCAS 2001. The 2001 IEEE International Symposium on; Vol. 4, pp. 390–393, 6-9 May 2001. 16. S. Skogestad and I. Postlethwaite; “Multivariable Feedback Control”; New York: Wiley, 1996. 17. D. N. Green; “Global stability analysis of automatic gain control circuits”; Circuits and Sys- tems, IEEE Transactions on; Vol. 30, Issue 2, pp. 78–83, Feb. 1983. 18. D. V. Mercy; “A review of automatic gain control theory”; Electron Radio Engineers; Vol. 51, Issue 12, pp. 579–590, Dec. 1981. 19. MATLAB and Simulink for Technical Computing, www.mathworks.com. Chapter 3 Basic AGC Cells

Automatic gain control circuit configurations require three key components that are employed in all or most architectures: a variable gain amplifier, a peak signal detec- tor and a gain control voltage generation circuit. The AGC core cell is the variable gain amplifier. This cell determines the main properties of the complete AGC, such as the frequency response, gain range and dis- tortion, and this is the reason for its importance. The other two basic blocks are part of the AGC loop. The peak detector is responsible for detecting the signal strength before adjusting the gain. The most important characteristics of peak detectors are linearity, input dynamic range and settling-time. Finally, the gain control voltage generation circuit is a block which is made up of several cells and whose particular structure depends on the chosen loop function. One of the most popular topologies consists of a filter, an adder and an exponential converter. In this chapter, an introduction to each of these basic cells will be made and some examples will be advanced from the solutions that will be proposed in Chap.Â4 meeting the specifications of wireless transceivers AGCs. Therefore, vari- able gain amplifiers are studied in the first section. Next, in the second section peak detectors are analyzed and finally, in the third section, several different gain control voltage generation circuits are introduced. As each cell is so different from the others, instead of introducing a closing section in the chapter with general conclusions, the analysis of each cell will end with the corresponding conclusions in each section.

3.1 Variable Gain Amplifiers

The Variable Gain Amplifier (VGA) is the core cell of the AGC system. It is a signal-conditioning amplifier with settable gain: the VGA adjusts -amplifying or attenuating- the incoming signal to the desired optimal level according to a gain function, G(âVC), which depends on a control signal VC provided by the AGC loop. The importance that this cell is to the AGC is shown in several publications where both concepts, AGC and VGA, are employed equivalently.

J. P. Alegre Pérez et al., Automatic Gain Control, Analog Circuits and Signal Processing, 29 DOI 10.1007/978-1-4614-0167-4_3, ©ÂSpringer Science+Business Media, LLC 2011 30 3â Basic AGC Cells

The VGA directly affects the main AGC specifications, such as bandwidth, noise and harmonic . Ideally, to obtain the best overall performance, the VGA should neither limit the frequency operation nor the linearity of the system. As a consequence, in the design of the AGC, meeting the VGA requirements is usually the most challenging task. Although in this chapter all the amplifiers are called generically “Variable Gain Amplifier”, depending on the continuous or discrete nature of the gain control, the amplifier is often given different names. Thus, when the gain is varied continuously, the amplifier takes the generic name “VGA”. In contrast, if the gain is varied digi- tally the amplifier is called “Programmable Gain Amplifier” or “PGA”. In this sec- ond case, the amplifier gain is typically controlled by a digital word either derived directly from the DSP (Digital Signal Processor) or, in order to liberate the DSP from this task, it can be provided by analog/mixed circuitry out of the DSP. Pro- grammable Gain Amplifiers save the need for auxiliary digital-to-analog converters and, due to the inherent robustness of digital circuits, are much easier to implement. However, some applications do not tolerate discrete steps in the gain; in these cases, the continuously variable gain amplifier is the only alternative. VGA Core Cellsâ Many techniques to vary the gain of an amplifier have been pro- posed since the beginning of Electronics. However, most of them are based on a few basic architectures. An initial classification can be made based on the amplified signal type: current mode or voltage mode, where each of them offers different characteristics [1]. In this book, all proposed VGAs are voltage based.

According to the VGA gain function, G(âVC), it is also possible to classify ampli- fiers. Many options exist as shown in Chap.Â2. However, two functions constitute the most popular: the linear gain and the exponential gain amplifiers. The linear gain VGA behaves like a simple multiplier so that VOut kVCVin. One of its main ad- = vantages is the great amount of bibliography available on multipliers, which makes it very easy to find the adequate VGA for each application. On the other hand, the need for an exponential control voltage response in most popular feedback AGCs has lead to the exponential variable gain amplifiers [2, 3] that offer an exponential response with the control voltage as:

V k V ek2VC , (3.1) Out = 1 in where k1,2 are constants, VC is the control voltage and Vin and Vout are the input and output signals respectively. The advantage of these VGAs would be simply to re- duce the number of blocks in the loop by introducing the function of the exponential converter in the VGA. Although the advantage of this option is clear in feedback AGCs, in feedforward it limits the choice of the VGA scheme and in some cases it could be more interesting to keep both blocks separated in order to obtain the advantages of another VGA scheme which can not offer an exponential response. Thus, all the VGAs proposed in this section will be linear. If the way to vary the gain is considered, VGAs can be split into two main groups: Passive VGA and Active VGA. In the first group, VGAs based on passive elements 3.1â Variable Gain Amplifiers 31

¯ ¯ + vin Amp vout vin OA vout + + ¯ a b

Fig. 3.1⁠a Programmable resistor and fixed gain amplifier based PGA and b high gain amplifier with resistor network feedback based PGA to achieve gain variation will be introduced; in the second group, gain variation is achieved by changing the transconductance of the amplifier. The main gain varia- tion techniques will then be introduced according to this classification. Passive VGAsâ One of the simplest techniques to build a VGA is to use a pro- grammable resistor attenuator followed by a fixed gain amplifier [4] (Fig.Â3.1a). The advantage of this technique is that the amplifier may be optimized for high gain and low noise figure. In addition, the gain variation range can be adapted as much as required simply by adding more stages to the programmable resistor. The drawbacks are that input impedance varies together with gain and furthermore, high output current is required from the previous stage to drive this VGA input impedance. High gain amplifier with resistor network feedback is another simple VGA tech- nique [5, 6] (Fig.Â3.1b). In the same way as in the previous technique, the voltage gain is varied by changing the resistor ratios. Thus, assuming the loop gain is large and the resistor network is linear, high linearity can be achieved. The drawbacks of this technique are firstly, that the feedback loop constrains the capacity of this archi- tecture to achieve high frequency performance; and secondly, that when changing the gain, the variation of the feedback factor results in variations of the input/output impedance, bandwidth, stability and the total harmonic distortion. Consequently, the operational amplifier usually employed in this architecture requires higher pow- er consumption to cover the worst case scenario over the entire gain range, so that with this technique power consumption is not optimized. To overcome the impedance problem intrinsic to this previous technique, a MOS programmable structure based on the current division technique can be used to im- plement the resistor network [7]. However, current division technique presents the same power consumption problem as the high gain amplifier with resistor network feedback technique. Therefore, typical application fields for passive VGAs are those which require high linearity at low frequency and with moderate/high power consumption. Active VGAsâ For high frequency applications, open loop amplifiers are commonly used that employ variable transconductance to achieve gain variation or active 32 3â Basic AGC Cells

Fig. 3.2⁠Differential pair transconductor with degen- erative resistor 5/ 5/ YRXW

Y Y LQ LQĀ

5GHJHQ

VGAs. This transconductance variation is usually achieved by changing the bias current, or by means of an adjustable source degeneration resistor.

3.1.1 Degeneration Based VGA Structures. Proposed VGA1

The differential pair with variable degenerative resistor, shown in Fig.Â3.2 [8], is a very popular standard topology for a differential variable-gain amplifier since it offers a good trade-off between linearity, gain range and power consumption. The differential input signal is copied over the series impedance of the two nonlinear transconductances and the linear degeneration resistor resulting in a differential sig- nal current given by:

vin vin + − i − 2 . (3.2) = Rdegen + gm As (3.2) shows, the relationship between the output current and the input voltage will be linear as long as 1/gmâ<<âRdegen. In this case, the gain of the VGA will be given by the ratio of load and degeneration resistors. The amplifier gain can then be selected either by using a variable degeneration or load resistor. In order to realize an amplifier with constant bandwidth independent of the programmable gain, the dominant pole at the VGA output node,

1 fd , (3.3) = 2πRLCL determined by load resistor RL and load capacitance CL, must be kept constant. A variable degeneration resistor is therefore mostly preferred as programmable im- pedance in the VGA while maintaining a constant load resistor. 3.1â Variable Gain Amplifiers 33

This structure presents several advantages over other VGA cells. Firstly, this VGA can be designed to produce both gain and attenuation by choosing the correct load and degeneration resistors. Secondly, as far as 1/gmâ<<âR condition is fulfilled, its linearity is higher than that obtained by other active VGA structures. However, practical values for the transconductance of the differential pair are limited to the mA/V range with moderate consumption for modern CMOS processes. As a result, degeneration resistor values >â10Â kΩ are required if good linearity and gain ac- curacy are required. At the same time, load resistors must be increased to achieve enough gain range, but then the frequency response of the circuit is limited. Hence, a trade-off exists for this structure between consumption, frequency response, lin- earity, gain range and accuracy.

A possible solution to this trade-off is the use of gm-boosting techniques. Although different solutions have been published in the literature [6, 8, 9], they can be classi- fied into only two groups depending whether they are based on positive or negative feedback techniques. The latter solution is the most commonly used. It boots gm by a factor which depends on the feedback amplifier gain, but has its drawbacks due to the intrinsic complexity of designing a stable loop, increased power consumption and the dynamic range restriction related to the use of a high gain amplifier.

Alternatively, the positive feedback based approach also offers an increase in gm through parameter compensation techniques. As this effect can be achieved with lower gain they do not have the above mentioned drawbacks for the negative coun- terparts. In contrast, stability conditions must be considered carefully.

3.1.1.1 Proposed VGA1: Degenerated OTA with gm-Boosting

The first studied VGA scheme is shown in Fig.Â3.3a. It is based on a very simple negative feedback gm-boosted differential pair with output resistive loads [10]. The gain is varied by a switchable array of source degenerating hybrid polysilicon-MOS (Fig.Â3.3b).

Focusing on the transconductor core, transistors M1-M2 form a two-pole neg- ative-feedback loop that boosts the equivalent transconductance of the input pair transistors M1 up to approximately [11]:

gm gm1ro1gm2, (3.4) ≈ where gmi and roi are respectively the transconductance and the output conductance of transistor Mi. Now, for a source-degenerated pair exploiting this approach, the differential transconductance can be expressed as

α Gm , (3.5) = R where R denotes one-half of the degeneration resistance and α denotes the M1 gate- to-source DC voltage gain, which is somewhat less than unity due to the body 34 3â Basic AGC Cells

5 ,% ,% 5 , / % /

 ± 9RXW 9RXW  ± 9LQ 0 0 9LQ

0 9FDV 9FDV 0 5 0 0 0 0

D

5 N:

DL D

:/ :/ 0 0   VL VL D 5L 5L 5L

 :/  :/ D

E  :/  :/

Fig. 3.3⁠Schematic view of the PGA proposed in [10] effect of the input pair transistors—NMOS in a P-substrate single well CMOS technology:

gm1 α . (3.6) ≈ gm1 gmb1 +

Next, the linearized differential signal current, copied out by loading each M2 gate terminal with a matched NMOS device, is converted to voltage through load resis- tors RL. Thereby, the differential gain of the full VGA is given by

RL Gain Gm RL α . (3.7) = · = R For high-frequency applications, noise specifications limit the value of the load and degeneration resistors to the kΩ range. Further, high resistivity polysilicon (HRP) loads RL will be implemented to avoid degrading the linearity performance. 3.1â Variable Gain Amplifiers 35

Table 3.1⁠Summary of Design parameter Value VGA1 performances Technology 0.35µm CMOS Supply voltage 1.8ÂV Frequency response 100ÂMHz Gain range 0–18ÂdB in 6ÂdB steps

THD@ 10ÂMHz, 0.2ÂVp-p out <â−â70ÂdB In-band noise @ 0ÂdB 51ÂnV/√Hz Power consumption 0.42ÂmW

A variable degeneration resistor can be created using a resistor bank or ladder with CMOS switches to obtain selectable taps. In our case, in order to preserve good linearity, moderate area consumption and, at the same time, facilitate digital gain control, we settled for an approach which merges, in equal parts, HRP resistors and MOS transistors biased in the triode region. These act simultaneously as resistors and switches. The minimum gain setting is imposed by a fixed high resistivity poly- silicon (HRP) resistor R0. The gain is then digitally increased by adding in parallel a new linear resistor in series with two MSi NMOS switches biased in the triode region, whose on-resistance is one half of the total conversion impedance. Fine gain tuning can be performed if necessary by applying slight gate voltage varia- tions for the switching transistors in order to improve accuracy. In particular, for this design the programmable degeneration impedance consists of a 3-bit array of hybrid NMOS-HRP resistors in parallel, which are weighted to obtain a logarithmic gain distribution ranging from 0 to 18ÂdB in 6ÂdB steps through a thermometer code control. Higher accuracy would be easily obtained just by increasing the bit number of the comparator bank. An additional current source, IQ, is introduced to guarantee a suitable common-mode output voltage, equal to that of the input. This PGA cell has been designed in the AMS 0.35Âμm CMOS technology. Tran- sistor sizes (W/L in μm) are M1â = â10/0.5 and M2â = â4/0.5; bias current IBâ = â40ÂμA and RLâ = â10ÂkΩ. The circuit consumes less than 0.5ÂmW from a single voltage of 1.8ÂV with a common-mode voltage of 1.3ÂV. Its main performances are summa- rized in TableÂ3.1. The bandwidth is kept constant around 100ÂMHz assuming ca- pacitive loads of 150ÂfF at the two outputs, see Fig.Â3.4. The total harmonic distortion (THD) behaviour for a signal frequency of 10ÂMHz is depicted in Fig.Â3.5 considering constant differential output levels. Figures are be- low −â70ÂdB over all the gain setting range with a differential output signal level of

0.2ÂVp-p, value that increases to −â60ÂdB for 0.4ÂVp-p. This circuit has been selected as it offers a good trade off between power con- sumption, maximum operating frequency and linearity.

3.1.2 Multiplier-Based VGA Structures. Proposed VGA2 and VGA3

Among the VGAs whose gain is changed by varying the bias current are multiplier- based cells. This is a very versatile architecture which is employed not only as a 36 3â Basic AGC Cells

Fig. 3.4⁠PGA frequency 24 response C=‘111’ 18

C=‘011’ 12

C=‘001’ 6 Gain (dB) C=‘000’ 0

¯6

¯12

¯18 106 107 108 109 Frequency (Hz)

Fig. 3.5⁠THD levels at 50 ¯ 10ÂMHz for all gain settings versus output voltage V out 0 dB

18 dB 60 ¯ 12 dB

6 dB

THD, 10 MHz (dB) 70 ¯

80 ¯ 0.0 0.2 0.4 0.6 0.8 differential output (Vpp) computational building block but also as a programming element in systems such as filters, neural networks, and communication systems where they are used to imple- ment mixers and modulators [4]. In this book we are only interested in its possible application as a VGA. Since the function of a multiplier is simply to multiply two signals, we will in our case multiply the input signal by the control signal generated by the AGC loop. Thus, a linear VGA is obtained by employing any multiplier cell, which, combined with an exponential converter, gives us the possibility to use it as a linear-in-dB VGA. This demonstrates that the multiplier cell is also a valid option a priori. 3.1â Variable Gain Amplifiers 37

To understand the basic idea of the multiplier implementation, consider two signals, v1(ât) and v2(ât), applied to a nonlinear device. The output of this device can be characterized by a high-order polynomial function, which is composed of 2 2 3 3 2 terms like v1 (ât), v2 (ât), v1 (ât), v2 (ât), v1 (ât)*v2(ât) and many others besides the desired v1(ât)*v2(ât). It is then required to cancel the undesired components. This is accom- plished by a cancellation circuit configuration. Typically, a multiplier-based VGA is realized using variable transconductance components, which are programmed by the bias current. Ideally, the output current of a transconductance amplifier is simply given by

io Gm1v1, (3.8) = where

Gm1 Gm1(Ibias1). (3.9a) =

For a CMOS transconductor, Gm1 becomes

Gm1 2K1Ibias1, (3.9b) = where K1 is the transconductance factor. Then, a small signal i2 from a second transconductor is added to the bias current Ibias1. If we introduce the new expression in (3.9b), and since i2â<<âIbias1, applying the Taylor series approximation, the transconductance can be rewritten as

2K1(Ibias1 i2) Gm1 + . (3.9c) ≈ √2K1Ibias1

At the same time, as well as in (3.8), i2(ât)â = âGm2v2(ât). Thus, the output current yields

2K1 io(t) Gm1v1 (Ibias1 Gm2v2(t)) v1(t), (3.10a) = = Ibias1 +

2K1 2K1 io(t) Gm2v2(t)v1(t) Ibias1v1(t) = Ibias1 + Ibias1

Ibias2 2K1 2K1K2 v2(t)v1(t) Ibias1v1(t) (3.10b) = Ibias1 + Ibias1 or

io(t) k1v2(t)v1(t) k2v1(t), (3.10c) = +

Ibias2 2K1 where k1 2K1K2 and k2 Ibias1. = Ibias1 = Ibias1 38 3â Basic AGC Cells

¯ Iout+ Iout ¯ v1 Gm1 + Vx+ Vx Vx+ i2 ¯ ¯ io v2 Gm2 Ibias1 + Vy+ Vy i2 ¯ Ibias2 ¯ v1 Gm1 IL + a b GND

Fig. 3.6⁠a Conceptual multiplier scheme. b Gilbert cell

Thus, io(ât) represents the multiplication of two signals v1(ât) and v2(ât) plus an un- wanted component k2v1(ât). This component can be eliminated by using a third trans- conductor equal to the first one Gm1 so that the whole transconductor group forms a conceptual multiplier cell. Furthermore, better cancellation is achieved when the second transconductor becomes a fully differential transconductor, and v1(ât) and v2(ât) are fully differential inputs. Thus, the following result is obtained:

io(t) 2k1v2(t)v1(t). (3.11) = The complete conceptual multiplier can be illustrated as in Fig.Â3.6a. It is the basic operation principle of a Gilbert cell [12, 13], shown in Fig.Â3.6b. Although this cell is one of the most popular multipliers, the MOS version has several setbacks which limit its application as a variable gain amplifier. After the analysis given between (3.8) and (3.11), the most obvious problem is the approxi- mation required to obtain a linear response as in (3.9c). Furthermore, once second order effects are introduced, the linearity offered by the Gilbert cell shows poor performance. On the other hand, the MOS transistor length reduction that has been given during recent years and the popularity obtained by low power portable de- vices make it necessary to use low voltage configurations. However, the classical Gilbert cell requires at least 4 transistors in cascade, making it an unsuitable struc- ture for low voltage implementation. Moreover, the only way to improve the inher- ently poor linearity of this cell is by increasing the bias current and consequently, increasing the power consumption. As a result, a highly linear multiplier structure, adequate for low voltage is required in order to employ a multiplier as a variable gain amplifier in present-day applications.

3.1.2.1 Proposed VGA2: Multiplier-Based VGA

The proposed VGA is an improved adaptation of the multiplier cell proposed by Liu and Hwang [14] shown in Fig.Â3.7, which offers the best performance accord- 3.1â Variable Gain Amplifiers 39

, , RXW RXWĀ $Ā $ 9LQ 9LQ± 9LQ 9LQ± 0 0 0 0

, , , , 9     9 9& 9& 9 & Ā Ā & 0 0 0 0

*1'

Fig. 3.7⁠Multiplier cell proposed in [14] ing to the comparison criteria established by Han and Sánchez-Sinencio in [15], including parameters such as linearity, minimum power supply and noise perfor- mance. Focussing on the core of this circuit in Fig.Â3.7, the control voltage and the input signal are introduced through transistors M1 and M2, respectively. Transistors M2 works in the saturation region while transistors M1 operate in the triode region. Consequently, drain currents of both transistors are given approximately by:

2 ID 2K1 (VGS1 VTH1)VDS1 V /2 = − − DS1 2  ID K2(VGS2 VTH2) , (3.12) = − where Kiâ = â1/2µCoxWi/Li is the transconductance parameter and VTHi is the threshold voltage for both types of transistors iâ = â1, 2. Assuming VTH1â = âVTH2â = âVTH and using these equations to obtain the expression for I1, a routine circuit analysis yields:

2 I1 K2(Vin V1 VTH ) , (3.13) = − − where

2 2 Vin VC 2VTH (VC VTH ) 2(VC VTH )(Vin VTH ) (Vin VTH ) V1 + − − + − − − − = 2 (3.14) and,

Vin VCM,in vin/2 ± = ± VC VCM,C vC, (3.15) ± = ± 40 3â Basic AGC Cells

C /2 CC /2 VDD C B:1 1:B M M M8 M7 M M M 4 3 7 8 3 M4 Iref

V A¯ V A+ V in¯ in+ Vin+ in¯ M2 M2 M2 M2 ¯out +out I3 I4 I1 I2 V V V VC C C+ C C+ ¯ L M1 M ¯ M M CL RL 1 5 M1 1 RL

GND

Fig. 3.8⁠Complete scheme of the proposed VGA

where vin is the differential input voltage and vC is the control voltage. If vin, vCâ<<âVTH, (3.13) can be approximated by

V V √2(V V )V I K in − C 2 in − C TH 1 = 2  2  − 2 2 2 VC V VC V V 1 in C − in  2 2  × − VTH + 2VTH + 4VTH V 2 V V V V 2 V 2 2 TH 1 C in C C − in . (3.16)  2 2   + 2 − VTH + 2VTH + 4VTH

Following a straightforward analysis with the remaining currents, the differential output current is approximately given by:

I0 (I1 I2) (I3 I4) 4K2vCvin, (3.17) = + − + ≈ where K2 is the transconductance constant of transistor M2. As a result, by K2, we can control the bias current through transistors M1 and M2 (3.12) and the maximum gain (3.17), so that both increase in parallel. Next, we built a VGA based on this core [16] converting the output current into voltage by load resistors RL (see Fig.Â3.8 in solid lines). Since all the bias current of the core (0.5ÂmA) is transmitted to the outputs, the maximum RL maintaining M4 in saturation operation is 2.5ÂkΩ for B†= â1. Thus, the results obtained are: a gain band- width product, GBW, of 570ÂMHz for a maximum gain of 3ÂdB (âvCâ = â400ÂmV); an output RMS noise of 240µV and an IM3 of −â46ÂdB for a differential output signal of 0.4ÂVp-p at 50ÂMHz. In order to improve linearity and achieve higher gain than the original cir- cuit, a feedback loop is introduced into the circuit as shown in Fig.Â3.8 in dashed lines. The negative feedback path, which consists of transistors M5-8, controls the common-mode current through load resistors. When this current increases, output 3.1â Variable Gain Amplifiers 41

Table 3.2⁠VGA2 transis- W/L (μm/μm) tors sizes M1 10/0.35 M2 30/0.35 M3 10/0.5 M4 30/0.5 M5 2.5/0.4 M7 1/0.5 M8 40/0.5

common-mode voltage, VCM,out, increases, then the drain current in transistor M5 increases and is transmitted through transistor M8 which draws the current surplus to the total current throughout M3, so the output current is reduced. Therefore, VCM,out is now controlled and fixed to 0.9ÂV by current source Irefâ. In consequence, with this technique output common mode current is controlled and thus, higher load resistances are possible (âRLâ = â5ÂkΩ), higher gain can be achieved through the current mirror (Bâ = â3, gain 18ÂdB, GBWâ = â1.6ÂGHz) and lower power consump- tion is required. Furthermore, it moderates the variations of the common-mode current sensed by transistors M5 due to gain variation. In this way, linearity is also improved, offering distortion levels (IM3) below −â68ÂdB for a 0.4ÂVp-p 50ÂMHz differential output signal. The feedback loop includes a capacitor, CC, to guarantee circuit stability. The VGA was simulated using Spectre AMS 0.35Âμm CMOS level 49 device parameters. Transistor sizes are shown in TableÂ3.2. The chip was built in the same AMS technology, see picture in Fig.Â3.9a and measured with a PCB as shown in Fig.Â3.9b. In simulation, the load , CL, are 50ÂfF (simulating the input capacitance of the next stage) while the load resis- tors, RL, are 5ÂkΩ. The feedback loop capacitor, CC, is 2ÂpF. The circuit consumes 2.7ÂmW with a supply voltage of 1.8ÂV. Both, input common-mode and control volt- age levels are 0.9 and 1.4ÂV, respectively. These values have been chosen so that the control voltage input range can be maximized up to ±â400ÂmV, while the maximum differential input signal can swing up to 400ÂmVp-p. Measurements were taken using a buffer after the VGA to reduce external parasitic capacitance influence and CC was chosen external to save chip area. Post-layout simulations provide a maximum gain range of 36ÂdB (from −18 to 18ÂdB) for an almost constant bandwidth of 200ÂMHz, while measurements verify a similar performance offering a 190ÂMHz bandwidth and a minimum gain range from 0 to 18ÂdB. It was not possible to measure attenua- tion range due to device intrinsic noise. The gain can be continuously adjusted with a linearity error below 1ÂdB in both cases. Good correspondence between simula- tion and measurement can be seen in Fig.Â3.10. The third-order intermodulation distortion (IM3) is simulated with two equal input signals, V1 and V2, at 50 and 51ÂMHz respectively. IM3 curves are shown in Fig.Â3.11 over the whole input range voltage for different gain settings. Fig- ureÂ3.12 shows the simulated IM3 of the VGA at different frequencies when the output is 0.4 and 0.8ÂVp-p. Measurements were taken at a low frequency because 42 3â Basic AGC Cells

Fig. 3.9⁠VGA2 chip photograph (a) and measurement setup (b) employed buffer attenuates the signal too much making it impossible to measure distortion properly. Results are shown in Fig.Â3.13. As can be seen, agreement is quite good compared with simulation except for input signals above 0.4ÂVp-p. The sensitivity of the circuit to large input signals was known from the reference [14], however, lower sensitivity was expected from simulations. The VGA still offers very good performance for lower input signals and in spite of this limita- tion it continues to be a viable choice for consideration. Furthermore, future work could be to find a solution to this problem by dynamic biasing. The input-referred noise spectral density under maximum gain setting and 200ÂMHz bandwidth is 12ÂnV/√Hz only. 3.1â Variable Gain Amplifiers 43

Fig. 3.10⁠VGA gain 25 frequency response: Vc = 840/880mV simulated (dashed) and 20 measured (âsolid) 15 Vc = 440mV

10 Vc = 240mV

Gain (dB) 5

Vc = 120mV 0

¯5

5 6 7 8 10 10 10 10 Frequency (Hz)

Fig. 3.11⁠IM3 levels versus 45 ¯ peak-to-peak differential ¯18 dB ¯50 0 dB input voltage (Vp-p) at 50ÂMHz for different gain 6 dB ¯55 settings 12 dB IM3 for an output 18 dB voltage of 0.4 Vp-p. ¯60

¯65

¯70

IM3@50MHz (dB) ¯75

¯80

¯85 90 ¯ 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2 Input signal (Vp-p)

Fig. 3.12⁠VGA IM3 versus ¯45 frequencies at 0.4 and 0.8 0 dB 18 dB Vp-p output ¯50 Vo = 0.8 Vp-p ¯55

¯60 Vout IM3 (dB) ¯65 Vo = 0.4 Vp-p ¯70

75 ¯ 20 40 60 80 100 Frequency (MHz) 44 3â Basic AGC Cells

Fig. 3.13⁠Measured HD3 40 ¯ for different gain settings at 0 dB 45 100ÂkHz ¯ 6 dB 12 dB 50 ¯ 18 dB 55 ¯ 60 ¯ 65 ¯

Vout HD3 (dB) ¯70 ¯75

¯80 85 ¯ 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 Vout (Vp-p)

Table 3.3⁠Simulation and measurement data of the VGA2 Design Simulated Measured CMOS process (µm) 0.35 0.35 Supply voltage (V) 1.8 1.8 Power (mW) 2.7 2.7 Intrinsic bandwidth (MHz) 200 190 Gain range (dB) −18−18 <0−18 Gain error (dB) <1ÂdB 1ÂdB Mode setting Continuous Continuous Distortion (IM3) a â 10ÂMHz <â−â70(0.4ÂVp-p) <â−â60(0.4ÂVp-p) â 50ÂMHz <â−â68(0.4ÂVp-p) ― Input referred noise (nV/√Hz) 12 ― a HD3 at 100 kHz

The main performances of the proposed design are shown in Table 3.3. The proposed VGA offers considerably low power consumption, great bandwidth and gain range, while distortion levels and noise performance obtain acceptable values. Furthermore, it offers a continuous gain variation and so features the possibility of a fine, smooth automatic gain control. Thus, a continuously variable linear gain amplifier is obtained, without the glitches introduced by the digital control required by programmable gain amplifiers and with a good trade-off between bandwidth, gain range, power consumption, linearity and noise performance. And in spite of being a linear gain amplifier, it is possible to obtain a linear-in-dB gain amplifier using an exponential converter, like the one proposed in [17], increasing the power consumption by only 0.2ÂmW.

3.1.2.2 Proposed VGA3: Linearly Tuneable VGA with CMFF

In the literature, there are also VGAs which were not originally designed as mul- tipliers, but make use of the same principle of varying the gain through the trans- 3.1â Variable Gain Amplifiers 45

Fig. 3.14⁠Classical ,  , ± CMOS pseudo-differential RXW RXW transconductor

9  Y  Y &0 LQ 0 0 9&0 ± LQ  

conductance. We will now take a look at one of these VGAs [18] which also offers a good trade-off between operating frequency, gain range, and power consump- tion, and which the author has therefore found suitable for application in one of the AGCs presented in Chap.Â4.

The proposed CMOS VGA is based on a Gm cell which is a new version of the ground referred differential pair using transistors in the saturation region with bal- anced input signals shown in Fig.Â3.14. This simple transconductor meets the currently demanded low voltage require- ment. High transconductance values can also be obtained, thus being an appealing choice for high frequency operation. However, the only way to tune the transcon- ductance necessary for compensation of fabrication tolerances and to achieve pro- grammability of VGA characteristic parameters is through the input common mode bias voltage VCMâ, see (3.18).

IO I + I − 2K(VCM VTH )Vin. (3.18) = out − out = − This modifies the biasing point of the pair transistors and directly affects the trans- conductor linearity performance, since the third harmonic distortion is inversely proportional to the pair transistors gate overdrive voltage Vodâ = âVCMâ−âVTH [19]. In addition, this issue is critical for low voltage applications where the signal swing, inherently constrained to a small headroom voltage, would be further limited due to common-mode voltage variations. On the other hand, for a VGA section consisting of cascaded Gm cells, the transconductance tuning through the input common mode voltage makes direct coupling impossible.

To overcome the aforementioned disadvantages derived from changing VCM for tuning purposes, the pseudo-differential stage shown in Fig.Â3.15a is proposed.

Each transistor M1-M2 has been split into common-source transistors M1A-M1B and M2A-M2B. Fully balanced input signals are applied to M1A and M2A respectively, which act as improved voltage followers thanks to the negative feedback introduced through M3: M1(2)A-M3 that form a two-pole shunt negative-feedback loop. This reduces the equivalent M1(2)A source resistance down to 50ÂΩ, a value approximate- ly given by 1/gm1Aro1Agm3, where parameters have their usual meaning [20]. These voltage followers: first, set the MA-MB common source quiescent voltage VS and second, accurately translate input signals to the source of MB transistors, leading, as shown in Fig.Â3.15a, to source voltages VSâ+â(1/2)Vin, VSâ−â(1/2)Vin. Both M1B and M2B transistor gates are controlled through a bias voltage VG. Therefore, the DC current through M1B (M2B) will replicate the current through M1A (M2A), with a gain which depends on the transistor MA-MB size ratio and on the 46 3â Basic AGC Cells

9&&

±  ,RXW ,RXW ,% ,%

Y Y 9&0 LQ 9&0± LQ   0$ 0$ 9 9 9 9 9 9 * &0 JDLQ 0% 0% * &0 JDLQ

0 0 D







,% ,RXW X$ 



 Ā Ā    E 9JDLQ 9

Fig. 3.15⁠CMOS pseudo-differential transconductor: a Core of the proposed topology and b Out- put DC current for different Vdâ = âVGâ−âVCM values value of the DC voltage VG with respect to VCM. For instance, given that M1A and M1B are equally sized, for VGâ = âVCM, the current I1 through M1B will be equal to the current through M1A, which remains constant to the value IB set by the bias current. For VGâ>âVCM, I1 will be higher than IB and the contrary for the complementary case. FigureÂ3.15b shows, for MAâ = âMBâ = â12/0.5µm/µm and IBâ = â50µA, the I1 (âI2) output current DC transfer characteristic versus Vdâ = âVGâ−âVCM. Transistor M3 takes in M1B (M2B) current changes. Straightforward analysis of this stage shows that the output differential current is given by

Io I2 I1 2K(VGS VTH )Vin, (3.19) = − = − 3.1â Variable Gain Amplifiers 47

Fig. 3.16⁠Proposed CMOS pseudo-differential VGA with 3-bit rough gain adjustment, CMFF (a) and selfbias common-mode feedback loop (b)

where VTH and VGS are, respectively, the threshold voltage and the gate-to-source voltage of MB transistors and Kâ = â(1/2)μCOX(âW/L)B. According to the expression in (3.19), this simple scheme makes it possible to preserve the input common mode voltage VCM constant, keeping it separate from the transconductance adjustment DC control voltage VG while, as will be shown next, linearity is independent of VG for a moderate transconductance tuning range. Another important issue is that, since a pseudo-differential structure has the same transconductance for both differential and common mode signals, the use of this solution requires a careful control of the common mode behaviour of the circuit. The common-mode control task can be performed efficiently by adopting a common-mode feedforward (CMFF) technique taking advantage of its own cell structure. As shown in Fig.Â3.16a in dashed lines, CMFF cancellation is inherently achieved using the same differential transconductance by making copies of the in- dividual currents and drawing the common-mode current at the output. Note that, at the same time, this structure sets the adequate output adaptive DC current over the whole VG tuning range. This latter feature is particularly useful as it avoids using ex- tra circuitry, so the resulting topology is very simple and compact. In addition, this 48 3â Basic AGC Cells

Table 3.4⁠VGA3 transistor W/L (μm/μm) sizes M1 12/0.5 M2 12/0.5 M3 8/0.5 M4 20/0.5 M5A 6/0.4 M5B 3/0.4 M6 20/0.5 M7 2/0.5 M8 40/0.5 feedforward approach—in contrast with the alternative based on the use of a sepa- rate transconductance for the common-mode detection—adds no more load to the driving stage as it keeps the input capacitance constant. Finally, although CMFF im- proves the rejection to the common-mode components at the output, it is incapable of properly fixing the DC common-mode output voltage. However, the control of the common-mode output voltage is easily had by employing floating resistors and fixing the common-mode voltage with a simple selfbias feedback loop which first, senses the output nodes, adds and filters both outputs and then, compares the result with a reference to fix the voltage at the floating node (see Fig.Â3.16b). Since control is regulated outside the signal path, frequency response is not affected. One of the advantages of this selfbias loop is that it avoids the use of other calibration circuitry. For the proposed VGA in Fig.Â3.16,

Io Io2 I2 I1 2K(VGS VTH )Vin (3.20) 1 = − = − = − and thus the transfer characteristic is

Io Io1 Io2 4K(VGS VTH )Vin GmVin, (3.21) d = − = − = where parameters have the same meaning as in (3.19). The circuit of Fig.Â3.16 has been designed in 0.35µm CMOS technology by Austria Microsystems (AMS). Transistor sizes are shown in TableÂ3.4.

The bias current IB has been implemented through high-swing cascode current mirrors to maximize signal swing while improving mirroring. Its value is fixed at

IBâ = â50ÂμA. Passive component values are: C1â = â2.4Â pF, R2â = â26ÂkΩ, R1â = â10Â kΩ and RL1,2â = â2ÂkΩ. The photograph is shown in Fig.Â3.17. The corresponding layout for this structure has been carefully realized taking into account matching between transistors and symmetry between sections in order to minimize second order dis- tortion components due to mismatches [21]. In order to demonstrate the low-voltage operation, the proposed transconductor with common-mode feedforward is biased with a single supply voltage of 1.8ÂV.

The common mode voltage VCM has been set to 1.3ÂV. Since the value for the bias current IB has been fixed to 50µA, for VGâ = âVCMâ = â1.3ÂV, the current I1 (âI2) through output transistors will ideally be also equal to 50µA. So as to keep moderate power 3.1â Variable Gain Amplifiers 49

m VGA3 60 µ

200 µm

Test Calibration m Buffer Buffer 70 µ

70 µm

Fig. 3.17⁠VGA cell photograph

consumption, the maximum value for the output current I1 (âI2) that will be consid- ered is 100µA.

Therefore, for the nominal value VGâ = âVCMââ = â1.3ÂV the current through output transistors is I1â = âI2†≈ â50µA and the experimental power dissipation is 0.65ÂmW. For VGâ = â1.25, 1.35 and 1.4ÂV the currents through output transistors are approxi- mately 25, 75 and 100µA respectively, and the power consumption varies between

0.55 and 1.1ÂmW. In order to increase the gain range, transistors M1,2B—both in the output and the feedforward path- are composed of a switchable array of transistors so that the effective (W/L)B size is changed and, according to (3.19), gain variation is obtained. In particular, a 3-bit array has been used, achieving a gain range from 0 to 12ÂdB in 6ÂdB steps. Simulations offered a bandwidth between 570 and 700ÂMHz for different gain settings. A measured intrinsic bandwidth almost constant above 500ÂMHz over the whole tuning range is obtained. Both, simulation and measured results are shown in Fig.Â3.18.

The measured and simulated IM3 of the output differential voltage for VGâ = â1.3ÂV is depicted in Fig.Â3.19, for a signal frequency of 100ÂMHz and considering constant output voltage levels. It is important to note that in our experimental set-up the noise floor was at values around −â50ÂdB due to the high operating frequency and genera- tor noise, so it was not possible to make accurate measurements for output signals below 0.4ÂVp-p. Furthermore, IM3 was also affected by a test buffer. Consequently, simulations are also given for the combination of the IM3 due to VGA and buffer blocks together: for Voutâ = â0.4 Vp-p, an IM3 below −â40ÂdB is obtained for all gain settings at 100ÂMHz. 50 3â Basic AGC Cells

Fig. 3.18⁠Simulated (âdashed) 12 and measured (âsolid) VGA frequency response for differ- 10 Vc = 1.31, bit = 100 ent gain settings 8 6

4 Vc = 1.31, bit = 010 2

Cell Gain (dB)Cell 0 Vc = 1.31, bit = 001 ¯2 ¯4 6 ¯ 105 106 107 108 109 Frequency (Hz)

Fig. 3.19⁠PGA plus buffer ¯25 simulated (âblack) and experi- 0 dB mental (âgrey) IM3 for outputs 6 dB signals of 0.4 and 0.8ÂV at 30 12 dB p-p ¯ 100ÂMHz

¯35

¯40 Vout IM3 @100MHz (dB) ¯45

50 ¯ 0.2 0.4 0.6 0.8 1 Vout (Vp-p)

As shown, the worst case results for IM3 correspond quite closely to those ex- pected by simulations, although IM3 for 6 and 12ÂdB was underestimated by simu- lations. Even if it was not possible to measure VGA IM3 without a buffer, it is pos- sible to obtain a first estimation: simulations offer an IM3 for an output of 0.4ÂVp-p at 100ÂMHz below −â49.2ÂdB for all gain settings. The common-mode rejection ratio at low frequencies is 37, 35 and 32ÂdB for

VGâ = â1.25, 1.3 and 1.4ÂV respectively. At 100ÂMHz the CMRR figures are 19, 22 and 24ÂdB for VGâ = â1.25, 1.3 and 1.4ÂV. These values are comparable to those reported for other CMOS pseudo-differential pairs using transistors in the saturation region [22]. A limitation of this topology is the restriction in the input voltage swing, imposed by maintaining transistors MA, M3 in saturation. The input VCM has been set to 1.3ÂV so as to obtain a maximum voltage swing of 0.6ÂVp-p on each input, or equivalently, 3.1â Variable Gain Amplifiers 51

Vref Control voltage Generator

Peak Detector

vin vout VGA VGA VGA

Fig. 3.20⁠Typical multiple cell VGA AGC structure

a maximum differential 1.2ÂVp-p input swing. This value is high enough for current wireless communication applications.

3.1.3 Complete VGA Architecture Design Considerations

Another important aspect to be considered is the structure of the full VGA when wide gain variation range is mandatory. Typical one cell VGAs offer a maximum gain between 12 and 40ÂdB depending on the bandwidth of the application, so at higher frequencies lower gain is achievable. In certain applications such as Code Division Multiple Access (CDMA) for example, 80ÂdB gain range and above 60ÂdB maximum gain VGAs are required. In these cases, it may not be possible to achieve all the specifications using a single high gain VGA. An additional problem of high gain VGAs is the DC-offset at the output. An amplifier with a maximum 60ÂdB gain would amplify 1ÂmV offset in the input to 1ÂV at the output and would reduce the total headroom in that point. Thus, it is mandatory to use a DC-offset cancellation circuit in such VGAs. This circuit usually consists of a low-pass filter forming a slow feedback loop from the output node to the input, so that any offset at the output will be corrected in the input [23]. Therefore, several VGA cells are employed in series. The number of cells used will be a trade-off between circuit simplicity and power consumption: employing many cells will ease the design of each one but in general the total power con- sumption will be higher than when using fewer cells. This trade-off is more critical when all the cells employ a different control voltage, since, to the increase of the power consumption, an increment in the AGC loop complexity must be added, see Fig.Â3.20. Thus, when planning to use several VGAs in series a good trade-off is usually achieved by splitting the full VGA into no more than three. However, there 52 3â Basic AGC Cells

&RQWURO9ROWDJH *HQHUDWRU

YLQ YRXW $PS $PS  $PS 9*$

Fig. 3.21⁠Rough/fine gain based VGA structure is another option, as explained in [24] and shown in Fig.Â3.21. Instead of using multiple VGAs controlled by the same AGC loop, one single VGA only is em- ployed to introduce the fine gain and several fixed gain amplifiers set up the rough gain variation. The rough gain control can be managed by simple digital circuitry and does not greatly increase the total power consumption. Furthermore, fixed gain amplifiers can be switched off when their gain is not required, reducing the pow- er consumption when high strength signals are received. Hence, a low gain range (12–20ÂdB) VGA would be enough for this application. This structure also presents some advantages for the AGC loop, since, by reducing the gain range, the effective input dynamic range in the loop is also reduced and the linearity requirements for the blocks in the fine gain control loop, such as the peak detector, are relaxed.

3.1.4 Conclusions

For the purpose of this work, the study of the feedforward approach for automatic gain control circuits is necessary to have a clear knowledge and to obtain a steady gain response with the control voltage, since we can not expect the inherent auto- correction of the feedback loop case. Hence, the linear response of the multiplier based VGAs fulfils this requisite quite accurately. Another alternative is the use of programmable gain amplifiers whose response can easily be predicted too. For the latter case, the cell proposed in [10] has offered a very good trade-off. To close the study of VGAs, a summary of the characteristics of the three con- sidered structures is offered in TableÂ3.5. They are also compared with some of the typical VGAs that can be found in the literature. The first conclusion of the com- parison is that the proposed examples offer all low power operation while keeping a wide bandwidth. Furthermore, distortion and noise levels are competitive and different gain ranges are obtainable to suit different possible applications. On the whole, a good trade-off between the main characteristics is obtained for given ex- amples. Thus, these cells are suitable for the applications studied in this book and consequently, will be used to implement different AGC topologies as will be ex- plained in Chap.Â4. 3.1â Variable Gain Amplifiers 53 b ) p-p continuous â + â V  12 â 43 (0. 1.1 ∼ â â â − 13.4 VGA 3 VGA Discrete 500 0.35 1.8 < ) ) p-p p-p V V   18 0 â ∼ â 18 70 (0.4 68 (0.4 â â â 12 − − VGA 2 VGA − 200 0.35 1.8 2.7 b ) p-p V  18 â 51 60 (0.4 ∼ â †â < – 100 0.35 1.8 0.42 ) − p-p V  17 0 â ∼ â 67 (1.4 84 â â < − – 100 20 5.6 â 30 â ∼ â ∼ â 10 â a a 11.2 − 0.5 0.18 0.25 1.8 2.5 2.43 6.75 )–)– p-p p-p V V   19 â 55 (2 74 (2 ∼ â â â − 8.6 Discrete Discrete Discrete Discrete Continuous Hsu [ 25 ] [ 26 ] Tsou Philips [ 27 ] 1 VGA 125 − 0.35 0 3.3 21 ) z H √ nV / dBm (  Comparison of several VGAs Comparison of several ⁠MHz MHz   10 50 At 100 MHz OIP3 is given: 29.2 Table 3.5 Table a b Input referred noise Mode setting Design Intrinsic bandwidth (MHz) Distortion (IM3) â â CMOS process ( µ m) Gain range (dB) Supply voltage (V) Power (mW) 54 3â Basic AGC Cells

Fig. 3.22⁠Ideal charge/dis- 1.1 charge behaviour in a peak detector with load capacitor, 1.05 C, and resistor, R 1 slope ~ ¯1/RC 0.95

0.9

Signal Amplitude (V) 0.85

0.8

0.75 18 20 22 24 26 28 t (us)

3.2 Peak Detectors

Peak detectors or, better said in our application field, envelope detectors, are a key block in gain control and spectral energy estimation. Their main function is to detect the amplitude or strength of the processing signal and track this value through- out the time. Apart from wireless communication receivers [28], these circuits can be found in a variety of applications, such as hearing aids, cochlear implants and speech recognition front-ends [29]. Furthermore, some adaptive bias techniques for linearity enhancement and dc current reduction in RF amplifiers are based on en- velope power detection [30]. The design of an accurate envelope detector is also critical for the efficient magnitude locked loop (MLL) Q-tuning method used in high-Q high-frequency continuous time filters [31]. Additionally, a new generation of dynamically varying analog circuits need high performance envelope detectors to optimize signal-to-noise ratio and power dissipation, such as dynamic gain scaling (syllabic companding) [32], dynamic impedance scaling [33], dynamic biasing [34] and dynamic structure variation [35]. This section is focused on envelope detectors applied to AGCs in wireless receiv- ers and, more precisely, to feedforward AGCs. As explained in Chap.Â2, a priori, the selection of a feedforward control structure considerably increases the envelope de- tector performance requirements, since its input dynamic range and, consequently, the linearity demand are enlarged. Thus, this basic cell becomes still more essential for the correct performance of feedforward AGCs, such as those presented in this book. Apart from linearity, there are some more specifications which will show the envelope detector structure required for the applications analyzed here. The two main specifications in any peak detector are droop and settling-time. Droop is a slow discharge from the hold capacitor C (Fig.Â3.22). Discharge can be unintentional, through a leakage current or the path provided by the following stage, or intentional, through a big resistor R or small current source Ib. The droop rate (âdVpeak/dt) is proportional to 1/RC in the case of the big resistor, or to Ib/C for the 3.2 Peak Detectors 55

Fig. 3.23⁠Diode-RC peak Vin Vpeak detector topology

CL

small current source, since across the capacitor, Iâ = âC*(âdVpeak/dt). This behaviour generates ripple at the output, so the output peak voltage deviates from the true peak value. As a consequence, droop should be reduced to increase accuracy. Settling- time is split into attack and release time. Attack-time, defined as the time required by the circuit to respond to a positive stepwise change in the input signal envelope, is dependent on the slew rate which is an indicator of the speed of the circuit. Higher slew rate offers a higher speed charging the hold capacitor. Speed is required in order to obtain a peak detector which can accurately track an increment in the input signal amplitude. The mentioned speed fixes circuit attack-time which is one of the parameters usually given to characterize peak detector speed. High speed means low attack-time. In contrast, release-time, defined as the time required to respond to a negative stepwise change in the input signal envelope, depends on the capaci- tor discharge current and the capacitor size itself. This parameter defines the peak detector capacity to track a decline in the input signal amplitude. One of the main problems with envelope detectors is that droop and release- time are correlated. Both are controlled by the capacitance plus the current source or the load resistor. Release-time is reduced choosing smaller capacitor (or bigger discharge current) while droop is reduced with a bigger capacitor (or smaller dis- charge current) that will discharge slowly. Therefore, there is a trade-off between fast decay-time and low droop rate in peak detector design [36]. There are more specifications, such as the sensitivity of the circuit output signal to input signal impairments [37]. This error is reduced simply by integrating several cycles before generating the output. Finally, the peak detector, as well as most IC´s, can retain minimum performance specifications considering PVT variations. The aim of delving into feedforward gain control configurations to achieve fast and accurate AGCs, requires high performance fast settling-time envelope detec- tors with high linearity. Next, different peak detector topologies will be analyzed, starting from the simplest and increasing complexity until previously introduced minimum requirements are achieved, following on to reach several peak detector topologies which are more appropriate for the studied applications.

3.2.1 Basic Peak Detector Topologies

The conventional diode-RC circuit, shown in Fig.Â3.23, is the simplest structure that can work as a peak detector. In this circuit, when the input signal is above the output signal plus the diode threshold voltage Vtd, the diode is equivalent to a resistor and the capacitor is charged by the current which flows from the input. On the other 56 3â Basic AGC Cells

Fig. 3.24⁠Op-amp plus diode based peak detector topology ¯ Vout ¯ Vpeak OA2 Vin OA1 + + CL

Fig. 3.25⁠Op-amp plus source follower based peak Vin detector topology + OA M1 ¯

Vpeak

CL

hand, when the input signal is smaller, the diode is in cut off operation region and the capacitor load is slowly discharged through the resistance. In spite of, or due to its simplicity, this circuit is not practical in present-day low voltage applications, as the diode does not allow detecting input signals with a peak voltage below Vtd. In addition, the diode threshold voltage depends on the temperature and process varia- tion, so this structure is very inaccurate. To improve the accuracy, an op-amp can be employed in feedback configura- tion so that the diode output is connected to the op-amp negative input, as shown in Fig.Â3.24 [38, 39, 40]. This op-amp and diode based peak detector reduces the threshold voltage to Vtd/A0, where A0 is the op-amp DC gain. Hence, this circuit can closely track Vin while its value is above the capacitor voltage, Vpeak. Alternatively, when the input signal is below Vpeak, the op-amp output goes to negative saturation, the diode goes to the cut-off region and the capacitor voltage is slowly discharged in the same way as previously explained. In order to minimize uncontrolled capaci- tor charge/discharge currents, a second op-amp is employed as a buffer to isolate

Vpeak from the next stage. Furthermore, these unwanted currents can be completely cancelled just by employing MOSFET input devices in both op-amps. The main drawback of this circuit is that op-amp and diode based envelope detectors have a problem due to high distortion during the zero crossing of the input signal. This is because the op-amps have to recover during non-conduction/conduction transi- tion with a small finite signal dV/dt (slew rate). The envelope detector is therefore limited to a frequency performance well below the gain bandwidth product of the amplifier. A similar topology is obtained simply by employing a source follower to perform the diode function [41, 42, 43], as shown in Fig.Â3.25. Its performance is similar to that explained for the op-amp plus diode topology: while Vin exceeds Vpeak, M1 is on, 3.2 Peak Detectors 57

Fig. 3.26⁠Open-loop peak detector topology Vin ¯ ¯ + PEAK Vpeak OTA RECTIFIER DETECTOR Vin+ + ¯ RL

which charges the capacitor C. While Vin goes below Vpeak, M1 is off and the capaci- tor holds the output peak voltage. A very small current source Ib can be included to discharge the capacitor for better tracking. However, as well as in the previous topology, this scheme also requires high slew rate and its frequency performance is limited.

3.2.2 Open-Loop Envelope Detectors. Proposed PD1 and PD2

As an alternative to closed loop schemes, a solution is to use an open-loop configu- ration [37] to achieve higher operating frequencies. This kind of circuit makes use of an OTA for voltage to current conversion followed by a precision rectifier and a current mode peak detector or a capacitor so that integration is made, see Fig.Â3.26. Due to the fact that the OTA is performing the voltage to current conversion in open loop and current mode rectifiers can operate at frequencies as high as 100ÂMHz [44], this circuit is capable of working at higher frequencies than diode based peak detectors. Next, we are going to evaluate several envelope detectors, all of which are suit- able for wireless LAN applications.

3.2.2.1 Proposed PD1: Conventional Open-Loop Envelope Detectors

The objective is to obtain a high performance envelope detector with a 71ÂMHz performance frequency and input amplitudes above 300ÂmV. The precision rectifier used for this circuit is based on the configuration proposed in [44] which is shown in Fig.Â3.27. This cell has been chosen due to its linearity for frequencies up to 100ÂMHz and input current signals above 150µA. The bias voltage VB1 is used to bias M1 and M2 transistors to have drain currents of 2.5µA; This bias voltage has the function of a threshold current and the rectifier does not rectify input current signals below this value. In order to overcome this limitation, an offset current is generated by the OTA with a value slightly higher than the bias current, so the signal is always above the threshold current. As high input frequencies, direct coupling and good control of the output offset current are required, the design of the OTA is started with the fully differential ver- sion of the folded cascode OTA, see Fig.Â3.28. The bias voltage VC1 controls the offset current required for the next stage and indirectly, the common-mode voltage 58 3â Basic AGC Cells

Fig. 3.27⁠Schematic diagram Iout of the full-wave precision rectifier block

VB1 VDD M1 M1

VB2 M4 I Iin in+ ¯ M2 M2

I VB3 bias M3

VDD V M BP 3 M3 V + C1 VC1 + IP ¯ ¯

M Vin+ M1 M1 Vin M4 4 ¯

IN1 I Iout out+ RD ¯ IN2

M5 M2 M2 VBN M5

VSS

Fig. 3.28⁠Schematic diagram of the mirrored cascode OTA at the output of the OTA. Due to the direct coupling between the OTA and the recti- fier, the offset current biases the diode-like transistor at the input of the rectifier, while the rectifier’s input resistance fixes the common-mode voltage at the output of the OTA. This makes the common-mode feedback circuit unnecessary. Finally, Fig.Â3.29 shows the cell of the peak detector which is suitable for opera- tion up to frequencies of 100ÂMHz. It consists of a slow source follower composed of M3, IL, CL and the feedback transistor M1a [29, 45]. The transistor M1b outputs a copy of the current in M1a, while transistors M2a,b are introduced to obtain a higher output resistance and thus, to minimize the offset current at the output. The source follower can follow descending signals in the input voltage rapidly because of the exponential dependence of the current of M3 on its gate voltage. However, the small current IL is slow in charging capacitor CL; as a result, during ascending signals in 3.2 Peak Detectors 59

Fig. 3.29⁠Schematic diagram VDD of the peak detector block I C L L M1a M1b

M2a M2b

VBP

M3

Iin Iout

Ibias Ibias

VSS

Table 3.6⁠PD1 devices W/L (μm/μm) sizes Rectifier OTA PD

M1 2/0.4 100/0.4 20/0.8 M2 2/0.4 90/2 5/0.4 M3 30/2 150/2 20/0.4 M4 5/0.4 40/0.4 – M5 – 60/2 – the input, the output signal is slow to respond as discharge slope is proportional to

CL/IL. In consequence, the ripple and time constant, τ, are controlled by IL and CL. This circuit was first simulated and next fabricated in AMS 0.35Â μm CMOS technology. All the blocks are powered with a single power supply of 3.3ÂV. Transis- tors sizes are shown in TableÂ3.6. Bias current, Ibias, in rectifier and in peak detector are 100 and 20ÂμA, respectively. IL is 1ÂμA, while IN1, IN2 and IP are 300, 200 and 500ÂμA, respectively. Finally, RD is 2.8ÂkΩ and CL is 1ÂpF. Chip photograph is shown in Fig.Â3.30. Measurements were realized employing a PCB and a 500ÂMHz band- width oscilloscope (for further information see Appendix A). The first parameter measured was the linearity of the circuit shown in Fig.Â3.31 for input sinusoidal signals at 71ÂMHz. The simulated result was up to 33 dB range for ±1ÂdB linearity, while the measurement offered quite a close value with 29ÂdB range. Next, the other two principal parameters were measured: ripple and settling- time. In this case a square signal was employed at 500ÂkHz with a predefined offset so that the input signal was equivalent to a 20ÂdB stepwise signal. Results are shown in Fig.Â3.32. Simulated release-time was around 0.15Âμs, but 0.6Âμs was measured. The same happens with attack-time where the measured time has a similar value to the release-time. There is an easy explanation for these discordances. As mentioned, the attack-time of the presented peak detector should be incredibly fast due to the exponential behaviour of the current in transistor M3. On the other hand, release- 60 3â Basic AGC Cells

Fig. 3.30⁠Chip photograph of the peak detector PD1 27$ 3HDN'HWHFWRU

5HFWLILHU µ P 

µP

Fig. 3.31⁠Measured and ideal 900 linearity performance 800 y = 0.763*x + 80.6 700

600

500

400

Output (V) signal 300

200

100 Ideal Measured 0 0 200 400 600 800 1000 Input signal (Vp-p)

Fig. 3.32⁠Measured tracking 0.5 (âsolid grey line) of the open- 0.4 loop envelope detectors for a 500ÂkHz square signal (âsolid 0.3 black line) and simulation 0.2 results (âdashed grey line) for a 71ÂMHz sinusoidal 0.1 signal with a stepwise change 0 (âdashed black line) ¯0.1

Detector Signals (V) ¯0.2 ¯0.3 ¯0.4 0.5 ¯ 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 t (s) x 10¯6 3.2 Peak Detectors 61

Table 3.7⁠Comparison of Design Simulation Measurements principal characteristics for simulation and measure- Supply voltage (V) 3.3 3.3 ments of the open-loop peak Power (mW) 6.1 6.1 detector Performance frequency (MHz) 71 71 Settling time (−20ÂdB step) (µs) 0.15 0.6

Ripple (âVinâ = â440 mVp–p) (mVp–p) 2.5 15

Linearity range (â±â10%) (dB) ∼â33 ∼â29

time is slow as it depends on the relation between CL and IL. Furthermore, as simu- lated parasitic capacitances (~â7ÂpF) between the chip and the PCB did not degrade the circuit performance considerably, simple buffers were kept. However, the only explanation to obtain similar settling-times in both cases is that larger parasitic ca- pacitances than expected have degraded the performance at the output. Droop was also measured with the oscilloscope and the measured peak-to-peak ripple went up to 15ÂmV. A discordance appeared again as simulations had predicted a ripple of 2.5ÂmV. Noise, low oscilloscope accuracy for small signals and PVT variations are possible responses to this issue. However, the lack of accuracy in set- tling-time measurements prevents it from being solved by making use of the known relation between both performances. Finally, a summary of circuit characteristics is given in TableÂ3.7 for simulation and measurement. A structure based on the high performance envelope detector topology presented here but scaled for a 10ÂMHz performance frequency application was also imple- mented in order to compare it with other peak detectors that will be introduced next. This scheme suffers from the same limitation as all the topologies introduced in Figs.Â3.23, 3.24 and 3.25: the trade off between droop and settling-time that makes necessary the use of filters at the output to minimize the ripple of the envelope at the cost of higher area and power consumption. Next, a novel envelope detector, pro- posed in [46, 47], is developed. Then, this circuit is modified so that it overcomes the traditional trade-off present in these circuits, thus improving both the droop and the settling-time of the circuit.

3.2.2.2 Proposed PD2: Fast-Settling Open-Loop Envelope Detector

FigureÂ3.33 shows the conceptual scheme of the newly proposed envelope detector. As can be seen, the circuit makes use of two peak detectors working in parallel. However, it is then shown that it is unnecessary to duplicate all the circuit; in fact, no more than a part of the peak hold circuit is duplicated, as will be shown later. In order to obtain the modified circuit, peak holders are employed instead of the peak detector to achieve a smaller ripple. The switches at the peak holders and the output are managed by a square signal provided by two control circuits. The control path changes the phase of the input signal by 90º before generating the digital signal by a few inverters. Thus, the peak holder is in hold mode just when the signal has reached its maximum value. This allows us to employ smaller load capacitance 62 3â Basic AGC Cells

CONTROL ¯

RL Vin ¯ ¯ + PEAK Vout RECTIFIER OTA HOLDER V + ¯ in+ CO RL

CONTROL +

Fig. 3.33⁠Fast-settling open-loop envelope detector block diagram

9& 9& 9''

,/ &/ &/ 0 0 0 9%S

0 0 0

0 , , ,LQ RXW RXWĀ ,ELDV ,ELDV ,ELDV

966

Fig. 3.34⁠Schematic of the peak hold block without spoiling the DC level obtained during the hold mode. To obtain the enve- lope of the signal, two peak holders work in parallel, one of them always providing a signal in hold mode at the output. The OTA and the rectifier are the same ones used for the basic topology. The following introduces the control path and the peak hold circuit shown in Fig.Â3.33: FigureÂ3.34 shows the proposed peak hold block. Note that the advantage of using current mirrors in Fig. 3.29 makes it unnecessary to duplicate all the cir- cuit to obtain two peak holders. Both circuits work with the same discharge path during different periods: when the first peak holder is in hold mode the second is discharging and vice versa, Fig.Â3.35 clarifies this. In red and black is shown the performance of each half peak holder. The envelope of the signal is obtained by switching between both halves and transmitting to the output only the hold signal.

VC1 and VC2 are the signals provided by the control path and manage the switches of the peak holds. 3.2 Peak Detectors 63

0.2

0.1

0

Amplitude (V) ¯0.1

0.2 ¯ 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 t (us) 2

1

0 Clock (V) ¯1

2 ¯ 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 t (us)

Fig. 3.35⁠Envelope detector operation. Peak holder both output signals (âgrey and black) and input signal (--) (âup). Below VC1 control signal

Fig. 3.36⁠Schematic diagram VDD of the control path

CC Vin Vout

RC

VSS

The power consumption is increased by 50% at this stage. However, we must remember that over 90% of the power consumption of the complete circuit is due to the OTA and in consequence, this increase is insignificant. Furthermore, two capacitances are employed instead of one, but the total capacitance is much smaller than the original. On the other hand, this configuration has a great advantage: the release time constant is given by CL and IL, while the ripple depends on CL and the equivalent resistance of the switches when working in subthreshold. This resistance is very high and offers the possibility of using much smaller capacitances, besides obtaining smaller ripple. The control path consists of a passive RC-differentiator followed by a few in- verters as shown Fig.Â3.36. The major problem of this stage is that after deriving the input signal to obtain a phase delay of 90º it is necessary to amplify the signal by the inverters to obtain a signal capable of managing the switches. In consequence, noise is also amplified and dynamic range is reduced. To minimize this effect, instead of a 64 3â Basic AGC Cells

Fig. 3.37⁠Ripple of the 0.304 conventional (--) and the PD1 10MHz proposed (―) envelope 0.302 detectors for an input voltage 0.3 of 300ÂmV at 10ÂMHz and a total capacitance of 3.2ÂpF 0.298 0.296 0.294

Detector Vout (V) Detector 0.292 0.29 0.288 0.286 PD2 4 4.5 5 5.5 6

t (s) x 10¯6

fourth inverter, two control paths are employed and a capacitance, CO, is connected at the output (see Fig.Â3.33) working as a first-order low-pass filter, thus providing a signal-to-noise ratio (SNR) not less than 60ÂdB. The need for a capacitance at the output could be considered a setback; nevertheless the total silicon area in this circuit is much smaller than that needed in the conventional counterpart of PD1 for 10ÂMHz and tracking is still much faster, as we will see. To verify the circuit performance, SPECTRE is used to simulate the proposed circuit using the AMS 0.35µm technology. The proposed envelope detector has been designed with the following component values: Transistors W/L relations are M1â = â20/0.8, M2â = â5/0.4, M3â = â20/0.4, Ibiasâ = â20µA, CLâ = â0.6 pF, CCâ = â0.1ÂpF and COâ = â1.6ÂpF; while ILâ = â1µA, RCâ = â10ÂkΩ and RLâ = â2ÂkΩ. The obtained rip- ple is around 0.3% when Vinâ = â300ÂmV for a total capacitance CTâ = â3.2ÂpF. On the other hand, if we use an equivalent capacitance area at the conventional circuit, i.e. CLâ = â3.2ÂpF, the minimum ripple to be reached is around 3%, as depicted in Fig.Â3.37, and if we use the same IL to obtain a similar release-time, then ripple is ten times that percentage. In order to compare the release time constant, the ripple is fixed at around 1%; In this case, the conventional circuit needs a huge load capaci- tance of 10ÂpF while the proposed circuit maintains previous values. A stepwise sig- nal at 10ÂMHz is employed in both circuits, which descends abruptly from a peak of 300 to 30ÂmV; results are shown in Fig.Â3.38. As can be seen, the proposed circuit is much faster tracking the signal than the conventional one and in addition, it is pos- sible to configure the desired release time constant by IL without changing the ripple of the envelope. The release-time constants, τ, defined as the time required by the signal to respond to 99% of a 20ÂdB stepwise change, are in this case τâ = â27.5µs for the conventional circuit and  = â0.4µs for the proposed circuit. FigureÂ3.39 shows DC and 10ÂMHz transfer characteristic. As seen, both envelope detectors are linear for amplitudes up to 300ÂmV. The proposed envelope detector obtains lower amplitude at high frequency since there is a gap between the input signal and the control path signal and the hold mode starts 3.2 Peak Detectors 65

Fig. 3.38⁠Tracking of (--) 0.35 ideal, (-.) conventional and (―) proposed envelope 0.3 detectors for a step signal at 10ÂMHz and ripple of 1% 0.25 PD1 for 10MHz

0.2

0.15

Detector Signals (Vpk)Detector 0.1

0.05 PD2

0 0 0.5 1 1.5 2 2.5 3 3.5 t (s) 5 x 10¯

Fig. 3.39⁠DC (o) and 0.4 PD2 (10MHz) 10ÂMHz (-) transfer charac- PD2 (DC) teristic for the conventional 0.35 PD1 (DC) and the proposed envelope PD1 (10MHz) 0.3 detector 0.25

0.2

0.15 Vout RMS (Vrms) 0.1

0.05

0 0 0.1 0.2 0.3 0.4 0.5 Vin (Vpk)

Table 3.8⁠Comparison Conventional Proposed circuit summary between PD1 and circuit PD2 for 10ÂMHz Ripple (CTâ = â3.2ÂpF) (%) 3 0.3  (99%) (ripple 1%) (µs) 27.5 0.4 Power consumption (mW) 2.13 2.49 just after the signal has reached its maximum. However, this gap can be minimized with careful phase matching of both signals. TableÂ3.8 summarizes the main characteristics of both envelope detectors. The proposed envelope detector has 17% higher power consumption. However, in re- turn, it obtains much better performance in keeping and tracking at the same time. This leads to simplifying the circuits required after the detector, and obtaining a faster circuit. Moreover, the capacitance area needed to obtain the same ripple is for this configuration a third of that needed by the conventional circuit. 66 3â Basic AGC Cells

Fig. 3.40⁠OTA plus current mirror closed-loop topology

M1 M2 Vin + OTA ¯

Vpeak

CL

3.2.3 Closed-Loop Envelope Detectors. Proposed PD3 and PD4

Although open-loop configuration is a proven solution for achieving higher perfor- mance operation frequency, closed-loop topologies can still offer similar frequen- cies with the advantages that the higher linearity closed-loop configurations offer inherently. The op-amp/diode topology of Fig.Â3.24 can be replaced by a transcon- ductor plus a current mirror (M1 and M2) structure [48, 49], as shown in Fig.Â3.40. When Vpeakâ<âVin and the capacitor is being charged, the behaviour of this circuit is ideally described by:

dVpeak IL Gm(Vpeak Vin) CL (3.22) + − = − dt or

dVpeak Gm Gm IL Vpeak Vin , (3.23) dt + CL = CL − CL where it is shown that the tracking behaviour of the peak detector can be improved just by increasing Gm/CL, instead of the slew-rate in the op-amp/diode topology. The advantage in this case is that higher values can be obtained for transconductance simply by using Gm-boosted transconductors. On the other hand, when Vpeakâ>âVin, since the current mirror is unidirectional it can not discharge the load capacitor and

CL is slowly discharged by IL following these expressions:

dQ (t) IL dVpeak (t) dt, (3.24) = CL = CL where, since IL is a constant current, the capacitor discharge is linear with IL/CL:

IL Vpeak(t) Vpeak(0) t. (3.25) = − CL 3.2 Peak Detectors 67

1.8 V

M4 M5 M5 M4 IB IB IB IB IB IB 80uA 5/0.4

5/0.4 Vout Vin+ Vin ¯ M1 M1 M1 M1 5/0.5 C I L L CL M2 M2 M2 M3 1.5pF 0.5uA M3 M2 3/0.35 3/0.35

Fig. 3.41⁠Schematic of a high-Gm OTA/current mirror based peak detector

As a result, peak detector settling time increases with the detected input signal am- plitude and it must be calculated for the worst case, i.e. the maximum possible amplitude.

3.2.3.1 Proposed PD3: High-Gm Transconductor/Current Mirror Based PD

The peak detector structure is a differential positive scheme where one detector is employed for each balanced signal, adding both signals at a single output. The schematic is shown in Fig.Â3.41, specifying transistor sizes, component values and biasing conditions. Rather than using a simple transconductor as in [48, 49], we employ a high performance Gm-cell based on the same core cell as the PGA proposed in [34]. In this way, with a very compact design, the peak detector exhibits higher linearity at higher frequencies with lower power consumption [50]. The aforementioned positive envelope detector has been designed in AMS 0.35 µm CMOS technology and simulated using SPECTRE with a BSIM3v3.2 level 53 transistor model. The circuit linearity and frequency response were tested introducing differential signals from 40 to 400ÂmVp-p at 100ÂMHz. The input-output performance with sinusoidal input for the implemented envelope detector is given in Fig.Â3.42. It is found that deviations from ideal behaviour are belowâ±â0.5ÂdB for all the input range. Next, the convergence of the circuit is tested introducing a 21ÂdB stepwise signal. To measure the attack-time, the input signal is increased by 21ÂdB, and the detector converges in less than 40 ns. On the other hand, to measure the release-time the input signal is reduced. The result for the latter is shown in Fig.Â3.43. The worst case settling-time is no more than 0.25µs.

This circuit presents, due to the employed Gm-boosted transconductor cell, a highly linear envelope detector. Furthermore, as a result of employing this trans- conductor cell, it is also suitable for Very High Frequency (VHF) applications. Fi- nally, release-time is, as expected, the same achieved by any conventional envelope detector. 68 3â Basic AGC Cells

Fig. 3.42⁠Peak detector 0.09 input-output performance Ideal 0.08 Simulated

0.07

0.06

0.05 Vout (V) 0.04

0.03

0.02

0.01 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 Vin,p-p (V)

Fig. 3.43⁠Peak detector 0.3 convergence performance for an input sinusoidal 100ÂMHz 0.2 stepwise signal

0.1

0

–0.1 Input & OutPD (V)

–0.2

0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 t (us)

In the same way as made for PD1, it is possible to design a fast-settling enve- lope detector based on the topology of PD3. This time, the new version, which is presented next, is part of the AGC proposed in [51], targeting specifically an IEEE 802.11a 5-GHz WLAN receiver application. It is implemented in SiGe technology in order to raise the range of study of this work. This technology offers advantages such as higher transconductance and consequently, higher linearity and speed, but also has some disadvantages such as the leakage current due to gate current.

3.2.3.2 Proposed PD4: Fast-Settling OTA/Current Mirror PD

As well as the topology PD3 presented, the basic PD4 cell is a differential positive peak detector where, instead of a diode, a unidirectional current mirror is employed 3.2 Peak Detectors 69

9''

6 6 9 9 Ā , & &/ / /

6 6 9SK

Fig. 3.44⁠Schematic of the fast-settling OTA/current mirror PD together with a transconductor to implement the rectifier. A significant difference is the use of source followers as buffers in order to avoid bipolar transistor base cur- rent discharging the load capacitors. Furthermore, the circuit is split into two parts.

Half cell is employed to detect the positive peak of each balanced signal, V1±, and the hold value of both peaks is transmitted to the output sequentially, see Fig.Â3.44.

The detector makes use of switches, S1-4, so a track and hold behaviour is obtained. This characteristic allows us to employ smaller load capacitance without spoiling the DC level obtained during the hold mode. The switches are managed by a digital control signal generated by a few D flip-flops and logic gates from a single 5ÂMHz clock provided by the receiver. The performance of each side of the circuit can be split into three different states, depending on the position of the switches and two symbols, where a symbol is de- fined as a period of time fixed by the control signal (0.4Âμs in this case). Thus, it is composed of several input signal cycles. The states are: the tracking state, which requires one full symbol, and the hold and discharge states, which together take another symbol. During the first symbol in the left side detector, switches S1,3 are “off” and the left side load capacitor is charged with the positive input signal; this is called tracking state. At the beginning of the second symbol, hold state starts and

S3 is closed so that the peak detected during previous period is transmitted to the output. In the last state named discharge, S1 is closed and S3 is opened, so that the rest of the second symbol is employed to discharge the load capacitor, CL, through current IL. This performance is successively repeated during the following symbols. The right side of the detector works equivalently, but employing the even symbols for tracking state and odd symbols for hold and discharge. Thus, this technique employs half circuit to detect the peak during odd symbols and the second one for even symbols. The advantage of considering symbols is that this way, this topology is also suitable for more complex modulated signals such as orthogonal frequency division multiplexing (OFDM). The envelope detector was designed, like the AGC, in a low-cost 0.25Â μm 75ÂGHz SiGe BiCMOS process. It employs a single supply voltage of 2.5ÂV and has a total current consumption of 220ÂμA.. The photograph of the integrated detec- tor is shown in Fig.Â3.45. The linearity performance is depicted in Fig.Â3.46 for a 70 3â Basic AGC Cells

70 µm

PMOS Transistors

Bio. Diff. pair C Buffers 1 Current Bias

440 µm

Fig. 3.45⁠Chip photograph

Fig. 3.46⁠Measured and ideal 0 input-output performance Measured linear ¯50 y = 0.495*x - 250

¯100

¯150

¯200 Peak Detector Output (mV) ¯250

-300 0 50 100 150 200 250 300 350 400 450 Vin+ (mVp-p)

20ÂMHz sinusoidal input signal. It can be seen that a 20ÂdB range with nonlinearities belowâ±â0.5ÂdB is offered at least. The settling-time of the envelope detector was measured with a 20ÂMHz input sinusoidal signal modulated by a 400ÂkHz square signal. The result is shown in Fig.Â3.47. Due to the awful modulation, release-time only can be measured, but the step response of the discharge is clear and the fast discharge is shown clearly setting in 1Âμs.

3.2.4 S/H Based Envelope Detector. Proposed PD5

Many different envelope detector topologies have already been analyzed. However, they are all based on some kind of rectification and integration. In fact, track and hold based topologies are no more than a mix between sample and hold circuits and peak detectors. Therefore, it will be shown next how theoretically a basic sample and hold (S/H) circuit, where switches are controlled properly, can also be em- ployed to track the envelope of a signal. 3.2 Peak Detectors 71











$PSOLWXGH 9 





          W V [Ā

      Ā Ā Ā 

$PSOLWXGH 9 Ā Ā Ā Ā Ā Ā  Ā                  W V [Ā

Fig. 3.47⁠Simulated (âup) and measured (âdown) convergence performance with a 20ÂMHz input sinusoidal signal modulated by a 400ÂkHz square signal

3.2.4.1 Proposed PD5: S/H Based Envelope Detector

The conceptual scheme of the topology presented next is shown in Fig.Â3.48 [52]. In fact, this topology is almost the same as that offered in Fig.Â3.33 for PD2. As well 72 3â Basic AGC Cells

6

Ā  3HDN+ROGHU 6 Ā  9 9 Ā  Ā 9LQ 6  9RXW %XIIHU &RQWURO 6 Ā 6 9 Ā RXWĀ 9 LQĀ 9 9 Ā  Ā  3HDN+ROGHU 6  Ā

Fig. 3.48⁠S/H based detector conceptual scheme

VDD S ¯ C C S Vin +

RC

VSS

Fig. 3.49⁠Schematic of the control block as in the mentioned detector, to obtain the envelope of the signal, two peak hold circuits work in parallel, one of them always providing a signal in hold mode at the output. The switches at the peak holder and the output are managed by a square signal provided by a control circuit. The control path changes the phase of the input signal by 90º before generating the digital signal by a few inverters (see Fig.Â3.49). Thus, the peak holder is in hold mode just when the signal has reached its maxi- mum value. This allows us to employ smaller load capacitance without spoiling the DC level obtained during the hold mode. The change in the phase can be made in several ways. In this case, amplitude-shift keying (ASK) or (AM) applications are targeted, so for a constant frequency input signal, a simple RC differentiator can be used. The control circuit is to be adapted to the application or signal modulation required in the circuit. For example, in the case of applications where frequency modulation must be adopted, a simple RC differentiator would not be accurate enough and an RC-CR circuit could be used for input and control signals since it offers ideally both outputs with a 90º phase shift over the whole frequency range. The main change comes in the employed peak holder block. Its schematic is shown in Fig.Â3.50. The OTA, a telescopic OTA with cascode compensation, is that shown in Fig.Â3.51. One of the reasons for using this basic sample and hold scheme is that it was specially designed to overcome certain drawbacks due to non-ideal effects associated with the use of switches in sample and hold circuits, which limit its dynamic range. These effects are capacitive feedthrough and, mainly, charge injection. 3.2 Peak Detectors 73

Fig. 3.50⁠Schematic diagram VG2 of the peak holder S+

S VG1 ¯ R2 CL V V in+ ¯ + out+ R1 OTA Vin S Vout ¯ ¯ + ¯ ¯

CL V G1 R2

S+

VG2

VDD

M12 M7 M8 Vb3 M13 V C b2 o Co V0+ V M5 M6 o¯

Vb1

M3 M4 M10 M11

+Vin/2 ¯Vin/2 M1 M2

Vb0 M9 M1 4

MC1 MC2 MC3 MC4

VSS

Fig. 3.51⁠Schematic diagram of the telescopic OTA

To understand charge injection, consider a MOS switch followed by a load ca- pacitor. When the MOS switch is on, there is a charge under the gate oxide result- ing from the inverted channel. When the switch is turned off, part of this charge is injected into the load capacitor which results in a change of voltage across it [53]. This change in voltage is nonlinear with respect to the input signal and consequently 74 3â Basic AGC Cells makes the envelope detector nonlinear with respect to the input signal. The change in load voltage is given by:

Cox WL(VDD Vin VTH ) Vload − − , (3.26) = − 2Cload where the threshold voltage, VTH, is a nonlinear function of Vin:

V V γ 2V V 2V . TH TH 0 fp in fp  (3.27) = +   + −       The advantage of this circuit is that both sides of the switch are at virtual ground and the change in voltage is no longer dependent on the threshold voltage of the switch itself. Therefore, the charge injection will be independent of the input signal and will result as a simple offset at the output [53]. When sampling, V– is closed and V+ is opened, and the equivalent circuit is a low-pass filter with buffered input and an approximated transfer function given by.

vout R2 1 . (3.28) vin = −R1 (sR2C1 1) + Once the hold mode starts, the output will stay constant at a value equal to the in- put signal. In our case, R2C1 is chosen small to obtain a fast-settling circuit. Thus, capacitor area is saved and ripple is kept low since discharge is controlled by the equivalent resistance of the switches when turned-off.

A MOS transistor is employed in parallel with resistances R1 and R2. As a result, it is possible to control the total gain of the circuit with small variations of their gate voltages. This is very useful if we need to compensate for the gain factor that appears when envelope is detected in this circuit. In our particular design, gain was fixed so the relation between input signal amplitude and output signal root-mean- square was equal to one. Mismatching between both peak holders introduces a time varying DC offset in the output. However, since cross-coupling outputs are employed, this offset is the same in both outputs so it is cancelled when the differential output is considered. On the other hand, if we introduce a dc offset in the input, the balanced output does not cancel it and the performance of the detector is degraded. However, this circuit shall be considered part of a complete automatic gain control circuit where a DC offset cancellation circuit is employed, so this problem can be overlooked [49]. To verify the circuit performance, SPECTRE is used to simulate the proposed circuit using the AMS 0.35Âμm technology. The proposed envelope detector has been designed with the following component values: C1â = â0.3ÂpF and CCâ = â0.1ÂpF; while RCâ = â10ÂkΩ and R1,2â = â6ÂkΩ. Transistor sizes are shown in TableÂ3.9. Further- more, each OTA requires two compensation capacitors of COâ = â0.5ÂpF considering load capacitors of 1.6ÂpF. These loads together with switch transistors are employed as a simple first order low pass loop filter. Thus, the ripple is around 0.3% when 3.2 Peak Detectors 75

Table 3.9⁠PD5 transistor W/L (μm/μm) sizes M1,2 4/0.4 M3,4 18/0.4 M5,6 4/0.4 M7,8 10/1.2 M9 11.6/0.4 M10,11 90/0.4 M12,13 30/1.2 M14 30/0.4 MC1,2 1.9/0.4 MC3,4 5/0.4

Fig. 3.52⁠Tracking of ideal 0.35 (--), conventional (-.) and proposed (─) envelope 0.3 detectors for a step signal at 10ÂMHz and ripple of 1% 0.25 PD1 for 10MHz 0.2

Ideal

Vin (Vpk) 0.15 PD5 0.1

0.05

0 0 0.5 1 1.5 2 2.5 3 3.5 t (s) 5 x 10¯

Vinâ = â300ÂmV for a total capacitance CTotalâ = â3.3ÂpF. In order to check the release time constant, a 10ÂMHz sinusoidal signal is employed, where the amplitude descends abruptly from a peak of 300 to 30ÂmV. The result is shown in Fig.Â3.52 and com- pared with the topology of PD1 for 10ÂMHz modified to obtain the same ripple with the same input signal. As can be seen, the proposed circuit is much faster at tracking the signal than PD1, in the same way as with PD2 in Fig.Â3.38. The release time constants, τ, de- fined as the time required by the signal to respond to 99% of a stepwise change, is τâ = â0.4µs. The operation of the envelope detector can be understood in the same way as explained previously for PD2 and shown in Fig.Â3.35. Figure 3.53 shows the circuit performance for a frequency modulated signal. Since the phase shift between the input and the control signal varies between 90 and 85º, the peak detection varies slightly for different frequencies, increasing ripple. However, as mentioned, this problem could be solved by employing an RC-CR circuit which would maintain a constant phase shift of 90º for the whole frequency range. Furthermore, we have to consider that typical frequency modulated signals variations are into a small frequency range around the IF frequency, so the differ- ences in the phase shift will usually be negligible. 76 3â Basic AGC Cells

Fig. 3.53⁠Envelope detection 0.2 of a frequency modulated input signal 0.15 0.1 0.05 0 0.05

Amplitude (V) ¯ ¯0.1 ¯0.15 ¯0.2 0 2 4 6 8 10 t (us)

Fig. 3.54⁠10ÂMHz input out-  put performance for different ,GHDO envelope detectors 3' 3'DW0+]  Ā 3'

Ā 506 9RXW  9UPV Ā

Ā Ā Ā Ā  9LQ 9SN

Although the performance obtained in keeping and tracking is similar to that ob- tained by the fast-settling envelope detector PD2, in this case the linearity is 20ÂdB higher. FigureÂ3.54 shows the 10ÂMHz transfer characteristic for the envelope detec- tors PD1, PD2 and PD5. In fact, linearity could be further improved, bettering gain and frequency behaviour in the control circuit, since the nonlinearity at low voltage seems to be due to the fact that the input voltage is employed to manage switches. In return for the increase in circuit complexity and consumption, this envelope detector offers high performance characteristics: much smaller release time con- stant, smaller ripple independent of the discharge resistor, higher linearity and con- sequently, higher dynamic range.

3.2.5 Conclusions

To end this section, TableÂ3.10 summarizes the principal characteristics of evaluated envelope detectors. They all have high performance characteristics and are suitable 3.2 Peak Detectors 77 µ m  a 10 â ∼ â 2.98 + 1.37 PD5 3.3 0.4 CMOS 0.35 3.3 Yes 0.3% 42 20 1 â ∼ â 20 â 0.55 PD4 2.5 1 0.3 SiGe BiCMOS 3.5 Yes > – µ m  21 â 0.864 PD3 1.8 0.25 100 3 No – > µ m CMOS 0.35  10 â ∼ â 2.49 PD2 3.3 0.4 3.3 Yes 1 0.3% 22 µ m CMOS 0.35  10 â ∼ â 2.13 PD1 (b) 3.3 27.5 1 10 No 30 µ m CMOS 0.35  mVpp 0.3%  29 â CMOS 0.35 6.1 PD1 3.3 0.6 1 No 15 ∼ dB) (dB)  dB step) ( µ s) mVpp)  1 â  ± 20 â 440 â Comparison of proposed envelope detectors = â ⁠Power consumption due to output buffer Technology Power (mW) Design Supply voltage (V) Table 3.10 Table Performance freq. (MHz) 71 a Ripple (Vin Settling time (− Capacitance (pF) Fast-settling technique Linearity range ( 78 3â Basic AGC Cells for wireless LAN applications as will be shown in Chap.Â4 for some of them. A wide range of performance frequencies has been considered, from 0.3 to 100ÂMHz. High linearity detectors have also been obtained, always above 20ÂdB, which is appropri- ate for feedforward AGC configuration. Moreover, new fast-settling configurations have been presented, which achieve very low release time and ripple at the same time, so a theoretical trade-off of these circuits has been overcome. Finally, the validity of one of the proposed topologies in a SiGe BiCMOS technology has been verified, so the range of applications has been extended to this technology market.

3.3 Control Voltage Generation Circuit

The control voltage generator must take the output signal from the peak detector and after comparing it with a reference signal, generate the control signal VC re- quired to adjust the gain in the VGA. The way it was explained in Sect.Â2.1, multiple choices exist to generate this control signal. Furthermore, feedforward and feedback

AGCs require different solutions, the feedback loop being more restrictive in the VC generation function required, while in the feedforward loop, accuracy is mandatory. Therefore, the main objective of this circuit is to generate a signal function of a reference voltage VREF and the input (or output) amplitude, depending on which loop topology is employed), such as

VC f (AIN/OUT , VREF ), (3.29) = so

AOUT g(AIN , VC ) g(AIN , f (AIN/OUT , VREF )) constant, (3.30) = = ≈ where f and g functions correspond to the VC generator block and VGA block re- spectively. As indicated in (3.29) and (3.30), functions f and g are correlated and thus, a different solution, f, will be required for each different VGA function g, so

AOUT is constant. In this section, first, two main groups will be differentiated, namely digital and analog VC generators corresponding each one to one of the VGA main topologies: (i) programmable gain amplifiers and (ii) continuously variable gain amplifiers. In both digital and analog subsections, different solutions will be offered.

3.3.1 Digital Control

Digital control approach groups mainly two options. First topology is that where the AGC loop is fully implemented inside the DSP [54]. This option requires a dif- ferent type of work completely oriented to digital designers, so it will not be gone into here as we understand it is beyond the aims of this book. The second option, 3.3 Control Voltage Generation Circuit 79

Fig. 3.55⁠Comparator bank Vref +VCM Vpeak cell employed in [57] + a0 Comp

¯

+ a1 Comp

¯

+ a2 Comp

¯

VCM however, takes the output of the peak detector and, making use of a simple digital block, generates the digital word required to manage the PGA [55]. Thus, the latter option inside mixed-signal design is considered in this book. Many different digital solutions are available to control more or less efficiently the PGA gain. However, usually PGAs of 10–20ÂdB gain range per stage are enough in wireless applications and 2–3ÂdB gain steps are also acceptable. Therefore, the most common solution is a simple comparator bank ADC [56, 57], as shown in Fig.Â3.55.

3.3.2 Analog Control

Analog control is much more complicated to implement than digital. However, some applications require smooth gain variation and thus, analog solutions can pro- vide the key. The main solutions are those analytically presented in Sect.Â2.1. Since, for each VGA case employed a different analog control is required and it is not pos- sible to offer an implementation of all the possibilities in this work. However, sev- eral solutions will be considered which could fit the VGAs presented in Sect.Â3.1. Then, the generalization will be analytically explained in Sect.Â2.1. VGA1 is fully programmable and in spite of it being possible to obtain a con- tinuous gain variation using active resistors, the gain dependency would again be linear in the best case, so it offers nothing new. VGA2 is the one which offers more control options, already presented in Sect.Â3.1, due to its linear dependency of gain with the control voltage. Finally, VGA3, which proposes a mixed, analog/digital, gain adjustment, presents a complex gain variation response to its control voltage, which could be considered linear at first order. Thus, VGA2 is the best candidate of 80 3â Basic AGC Cells all to make a study of different linear VC generation circuits for both feedforward and feedback. Other options exist in the literature, the most common being the linear in dB VGA. However, VGA2 can also be employed as a linear-in-dB VGA just by introducing an exponential block to generate VC and considering the input to this block the real control voltage. Finally, VGAs with general gain functions can also be considered [58, 59], but these cases require the generation of the opposite function, which usually involves another feedback loop inside the AGC loop. In feedback AGCs the use of another internal loop can greatly complicate the stability of the system or force making a considerable reduction in the bandwidth of the feed- back loop in order to make it much slower than the internal loop. This goes against the aims of this book of studying AGCs with a fast convergence. Alternatively, in feedforward AGCs the introduction of a new feedback loop in the AGC loop does not cause more stability complications than those inherent to the loop itself. How- ever, it does go against obtaining a fast convergence. Thus, the use of these general gain function VGAs has also been ruled out. The control voltage required by VGA2 to accomplish (3.30), is simply:

Vref vC k . (3.31) = Vpd  where k is a constant, Vref is the desired output voltage and Vpd is the signal provided by the peak detector. The most common analog control voltage generation circuit is based on the ex- ponential solution used to obtain a time-constant independent of bias signals in feedback loop AGCs. In these loops, it is the option of employing the exponential converter at the end of the loop alone or with a logarithmic converter just after the peak detector. The generation of both converters is feasible in BiCMOS technology due to the exponential behaviour of the bipolar transistors. However, in CMOS technology this task is much harder, since transistors present a quadratic current response (characteristics of both technologies are exposed in Appendix D). Several solutions exist in the literature for the CMOS exp-converter [60–64] or exponential VGAs [65, 66] employing pseudo-exponential functions that make the task easier. On the other hand, there are no simple solutions for the log-converter. Thus, for the latter case the need is to make use of a piece-wise linear approximation to the logarithm function, see Fig.Â3.56. As explained in [67], this method consists of us- ing many small linear functions combined together to approximate the logarithmic function. Another option is to try implementing it by using previously mentioned exponential solutions in a feedback loop as shown in Fig.Â3.57. The logarithm func- tion in the latter case is approximated when amplifier gain, A0, is much bigger than z one only. From Fig.Â3.57 we have: zâ = âA0(âxâ€−â€y), yâ = âe . As mentioned if A0â>>â1, xâ€≈â€y, xâ€≈â€ez, and consequently zâ€≈â€log(âx). Both cases cause complications in the AGC loop so in feedback loop the ap- proach is usually preferable where a log-converter is avoided. Unfortunately, feedforward loop has no possibility of avoiding the use of the log-converter without accepting the loss of accuracy, since the relation between 3.3 Control Voltage Generation Circuit 81

V Lim(Vout) pd

Log(Vpd)

Fig. 3.56⁠Piece-wise linear approximation based logarithmic amplifier

Fig. 3.57⁠Circuit to imple- Vpd ment inverse of exponential + Log(Vpd) x function Amp z y ¯

Exp

the control voltage function and the VGA gain function must be exact. Thus, it is mandatory to generate a circuit with a logarithmic response, employing one of the solutions proposed in FigsÂ3.56 and 3.57. The latter solution would be preferable for small input dynamic range AGCs, while piece-wise linear approximation is a better option for a higher dynamic range.

Apart from the exponential VC generator, feedforward AGC´s accept another straightforward solution. To achieve output amplitude as shown in (3.31), when using a linear multiplier, the logical solution would be to use a divider. Even if the implementation of an accurate divider in both CMOS and BiCMOS technologies can be as laborious as implementing an exponential circuit, when small dynamic range is required, simple dividers based on MOS transistors operating in triode re- gion, as shown in Fig.Â3.58, can be an acceptable solution. In this case, M2 operates in triode region so

I0 Vout , (3.32) ≈ K(VX VTH ) − where K and VTH are M2 transistor transconductance constant and threshold voltage, respectively. Thus, a division relation is obtained between the two inputs, I0 and VXâ. Dividers based on this simple technique can be found in several works in the lit- erature and they have been employed in the implementation of pseudo-exponential circuits [64] for example. Higher accuracy and dynamic range can be obtained em- 82 3â Basic AGC Cells

Fig. 3.58⁠Simple divider 9''

0 0

, , 9RXW

9; 0

*1' ploying more complex circuits; however, the study of this possible solution is left for future work.

3.3.3 Conclusions

In conclusion, each VGA can require a different solution, although, for example in feedback AGCs, the same exponential type solution is preferred among designers in the end, while in feedforward AGCs, PGAs and digital control are usually em- ployed. The next chapter introduces some proposals of control voltage generators explained in this section in general terms as part of the full AGCs proposed in the book.

References

1. C. Toumazou, F. J. Lidgey, and D. G. Haigh, Eds.; “Analogue IC Design: The Current-Mode Approach”; London: Peregrinus, 1990. 2. Quoc-Hoang Duong, Quan Le, Chang-Wan Kim, and Sang-Gug Lee; “A 95-dB Linear Low- Power Variable Gain Amplifier”; Circuits and Systems II: Express Briefs, IEEE Transactions on; Vol. 53, Issue 8, Aug. 2006. 3. W. Liu, S.-I. Liu and S.-K. Wei; “CMOS exponential-control variable gain amplifiers”; Cir- cuits Devices Syst., IEE Proc.; Vol. 151, Issue 2, Apr. 2004. 4. S. Tadjpour, F. Behbahani, A.A. Abidi; “A CMOS variable gain amplifier for a wideband wire- less receiver”; VLSI Circuits, Digest of Technical Papers. 1998 Symposium on; pp. 86–89, Jun. 1998. 5. C. C. Hsu and J. T. Wu; “A Highly Linear 125-MHz CMOS Switched-Resistor Programmable- Gain Amplifier”; Solid-State Circuits, IEEE Journal of; Vol. 38, Issue 10, Oct. 2003. 6. J. Guido, V. Leung, J. Kenney, J. Trackim, A. Agrillo, E. Zimany, and R. Shariatdoust; “Analog front end IC for category I and II ADSL”; VLSI Circuits, 2000. Digest of Technical Papers. 2000 Symposium on; pp. 178–181, 2000. References 83

7. Huy-Hieu Nguyen, Hoai-Nam Nguyen, Jeong-Seon Lee, and Sang-Gug Lee; “A Binary- Weighted Switching and Reconfiguration-Based Programmable Gain Amplifier”; Circuits and Systems II: Express Briefs, IEEE Transactions on; Vol. 56, Issue 9, Sep. 2009 8. J.J.F. Rijns; “CMOS low-distortion high-frequency variable-gain amplifier”; Solid-State Cir- cuits, IEEE Journal of; Vol. 31, pp. 1029–1034, Jul. 1996. 9. M.A.I. Mostafa, S.H.K. Embabi, M. Elmala; “Variable Gain Amplifier for Dual Mode WCD- MA/GSM Receivers”; Solid-State Circuits Conference, 2001. ESSCIRC 2001. Proceedings of the 27th European; pp. 53–56, Sept. 2001. 10. B. Calvo, S. Celma, M.T. Sanz; “Low-Voltage Low-Power 100MHz Programmable Gain Amplifier in 0.35μm CMOS”; Analog Processing; May 2006. 11. J. Ramírez-Angulo, R. G. Carvajal, A. Torralba, J.A. Galan, A.P. Vega-Leal and J. Thombs; “The flipped voltage follower: a useful cell for low- voltage low-power circuit design”; Cir- cuits and Systems, 2002. IEEE International Symposium on; Vol. 3, pp. 615–618, 2002. 12. J.N. Babanezhad, G.C. Temes; “A 20-V four-quadrant CMOS analog multiplier”; Solid-State Circuits, IEEE Journal of; Vol. 20, Issue 6, pp. 1158–1168, Dec. 1985. 13. D.C. Soo, R.G. Meyer; “A four-quadrant NMOS analog multiplier”; Solid-State Circuits, IEEE Journal of; Vol. 17, Issue 6, pp. 1174–1178, Dec. 1982. 14. S.I. Liu and Y.S. Hwang; “CMOS Four-Quadrant Multiplier Using Bias Feedback Tech- niques”; Solid-State Circuits, IEEE Journal of; Vol. 29, Issue 6, Jun. 1994. 15. G. Han and E. Sánchez-Sinencio; “CMOS Transconductance Multipliers: A Tutorial”; Cir- cuits and Systems II: Express Briefs, IEEE Transactions on; Vol. 45, Issue 12, Dec. 1998. 16. J.P. Alegre, S. Celma, B. Calvo and A. Otin; “Low-Voltage Low-Power 200MHz Variable Gain Amplier in CMOS 0.35µm”; European Conference on Circuit Theory and Design (ECCTD); Sevilla, Spain, Aug. 2007. 17. Q.H. Duong, V. Krizhanovskii, H.C. Choi, S.J. Yun, M.S. Yang and S.G. Lee; “Low-voltage, High dB-Linear, Exponential V-V Converter”; Electronic Letters; Vol. 40, Issue 17, 2004. 18. B. Calvo, S. Celma, M.T. Sanz, J.P. Alegre and F. Aznar; “Low-Voltage Linearly Tunable CMOS Transconductor with Common-Mode Feedforward”; Circuits and Systems I: Regular Papers, IEEE Transactions on; Vol. 55, Issue 3, pp. 715–721, Apr. 2008. 19. E. Sánchez-Sinencio and J. Silva-Martínez; “CMOS Transconductance Amplifiers and Ac- tive Filters: A Tutorial”; IEE Proceedings Circuits, Devices & Systems; Vol. 147, Issue 1, pp. 3–12, 2000. 20. R.G. Carvajal, J. Ramírez-Angulo, A.J. Lopez-Martin, A. Torralba, J.A.G. Galan, A. Car- losena and F.M. Chavero; “The Flipped Voltage Follower: a Useful Cell for Low-voltage Low-power Circuit Design”; Circuits and Systems I: Regular Papers, IEEE Transactions on; Vol. 52, Issue 7, pp. 1276–1291, 2005. 21. V. Saari, S. Lindfors; “Analysis of Common-Mode Induced Even-Order Distortion in a Pseu- do-Differential gm-C Filter”; Circuits and Systems, 2007. ISCAS 2007. IEEE International Symposium on; pp. 3546–3549, May 2007. 22. A. Baschirotto, F. Rezzi and R. Castello; “Low-voltage Balanced Transconductor with High Input Common-mode Rejection”; Electronics Letters; Vol. 30, Issue 20, pp. 1669–1670, Sep. 1994. 23. H.Y. Cheung, K.S. Cheung and J. Lau; “A low power monolithic AGC with automatic DC offset cancellation for direct conversion hybrid CDMA transceiver used in telemetering”; Circuits and Systems, Proceedings of the 2001 International Symposium on, ISCAS’01; Vol. 4, pp. 390–393, May 2001. 24. Chun-Pang Wu and Hen-Wai Tsao; “A 110-MHz 84-dB CMOS Programmable Gain Ampli- fier With Integrated RSSI Function”; Solid-State Circuits, IEEE Journal of; Vol. 40, Issue 6, pp. 1249–1258, 2005. 25. C.C. Hsu and J.T. Wu; “A Highly Linear 125-MHz CMOS Switched-Resistor Programma- ble-Gain Amplifier”; Solid-State Circuits, IEEE Journal of; Vol. 38, Issue 10, Oct. 2003. 26. S.C. Tsou, C.F. Li, P.C. Huang; “A Low-Power CMOS Linear-in-Decibel Variable Gain Am- plifier with Programmable Bandwidth and Stable Group Delay”; Circuits and Systems II: Express Briefs, IEEE Transactions on; Vol. 53, Dec. 2006. 84 3â Basic AGC Cells

27. K. Philips and E.C. Dijkmans; “A Variable Gain IF Amplifier with -67dBc IM3 Distortion at 1.4 Vpp Output in 0.25μm CMOS”; 2001 Symp. VLSI Circuits Dig. Tech. Papers; pp. 81– 82, 2001. 28. Chunbing Guo, Chi-Wa Lo, Yu-Wing Choi, I. Hsu, T. Kan, D. Leung, A. Chan, H.C. Luong; “A fully integrated 900-MHz CMOS wireless receiver with on-chip RF and IF filters and 79- dB image rejection”; Solid-State Circuits, IEEE Journal of; Vol. 37, Issue 8, pp. 1084–1089, Aug. 2002. 29. Serhii M. Zhak, Michael W. Baker and Rahul Sarpeshkar; “A Low-Power Wide Dynamic Range Envelope Detector”; Solid-State Circuits, IEEE Journal of; Vol. 38, Issue 10, pp. 1750–1753, Oct. 2003. 30. V.W. Leung, P.S Junxiong Deng Gudem, L.E. Larson; “Analysis of envelope signal injec- tion for improvement of RF amplifier intermodulation distortion”; Solid-State Circuits, IEEE Journal of; Vol. 40, Issue 9, pp. 1888–1894, Sept. 2005. 31. J.M. Stevenson, E. Sanchez-Sinencio; “An accurate quality factor tuning scheme for IF and high-Q continuous-time filters”; Solid-State Circuits, IEEE Journal of; Vol. 33, Issue 12, pp. 1970–1978, Dec. 1998. 32. Y.P. Tsividis, V. Gopinathan and L. Toth; “Compandig in signal processing”; Electronic Let- ters; Vol. 26, pp. 1331–1332, Aug. 1990. 33. F. Behbahani, A. Karimi-Sanjaani, Wee-Guan Tan, A. Roithmeier, J.C. Leete, K. Hoshino, A.A. Abidi; “Adaptive analog IF signal processor for a wide-band CMOS wireless receiver”; Solid-State Circuits, IEEE Journal of; Vol. 36, Issue 8, pp. 1205–1217, Aug. 2001. 34. N. Krishnapura, Y.P. Tsividis; “Noise and power reduction in filters through the use of adjust- able biasing”; Solid-State Circuits, IEEE Journal of; Vol. 36, Issue 12, pp. 1912–1920, Dec. 2001. 35. Y. Tsividis, N. Krishnapura, Y. Palascas and L. Toth; “Internally Varying Analog Circuits Minimize Power Dissipation”; Circuits and Devices Magazine, IEEE; Vol. 19, Issue 1, pp. 63–72, Jan. 2003. 36. Seok-Bae Park, James E. Wilson, and Mohammed Ismail, “Peak Detectors for Multistandard Wireless Receivers”, Circuits & Devices Magazine, IEEE, Vol. 22, Issue 6, pp. 6–9, Nov.- Dec. 2006. 37. Michel S. J. Steyaert, Wim Dehaene, Jan Craninckx, M´airt´ın Walsh and Peter Real; “A CMOS Rectifier-Integrator for Amplitude Detection in Hard Disk Servo Loops”; Solid-State Circuits, IEEE Journal of; Vol. 30, Issue 7, pp. 743–751, Jul. 1995. 38. A.J. Peyton and V. Walsh; “Analog Electronics with Op Amps: A Source Book of Practical Circuits”; Cambridge, U.K.: Cambridge Univ. Press, 1993. 39. R.G. Meyer and W.D. Mack; “Monolithic AGC loop for a 160 Mb/s transimpedance ampli- fier”; Solid-State Circuits, IEEE Journal of; Vol. 31, Issue 9, pp. 1331–1335, Sept. 1996. 40. H.-C. Chow and I.-H. Wang; “High performance automatic gain control circuit using a S/H peak detector for ASK receiver”; Electronics, Circuits and Systems, 2002. 9th International Conference on; Vol. 2, pp. 429–432, Sept. 2002. 41. J. Silva-Martinez, J. Salcedo-Suner; “A CMOS automatic gain control for hearing aid de- vices”; Circuits and Systems, 1998. ISCAS ’98. Proceedings of the 1998 IEEE International Symposium on; Vol. 1, pp, 297–300, Jun. 1998. 42. E.A. Crain and M.H. Perrott; “A 3.125 Gb/s limit amplifier in CMOS with 42 dB gain and 1 μs offset compensation”; Solid-State Circuits, IEEE Journal of; Vol. 41, Issue 2, pp. 443– 451, Feb. 2006. 43. R.J. Baker, H.W. Li, and D.E. Boyce; “CMOS: Circuit Design, Layout, and Simulation”; New York: Wiley, 1998. 44. Surachet Khucharoensin and Varakorn Kasemsuwan; “A High Performance CMOS Current- Mode Precision Full-Wave Rectifier”; Circuits and Systems, 2003. ISCAS ’03. Proceedings of the 2003 International Symposium on; Vol. 1, pp. 41–44, May 2003. 45. Rahul Sarpeshkar, Richard F. Lyon and Carver Mead; “A Low-Power Wide-Dynamic-Range Analog VLSI Cochlea”; Analog Integrated Circuits and Signal Processing; Vol. 16, Issue 3, pp. 245–274, Aug. 1998. References 85

46. J.P. Alegre, S. Celma, M.T. Sanz, and J.M. García del Pozo; “Low-ripple fast-settling enve- lope detector”; Electronics Letters; Vol. 42, Issue 18, pp. 1011–1012, Aug. 2006. 47. J.P. Alegre, S. Celma, B. Calvo and J.M. García del Pozo; “Design of a Novel Envelope De- tector for Fast-Settling Circuits”; Instrumentation and Measurements, IEEE Transactions on; Vol. 57, no 1, pp. 4–9, Jan. 2008. 48. S.A. Sanielevici, K.R. Cioffi, B. Ahrari, P.S. Stephenson, D.L. Skoglund, and M. Zargari; “A 900ÂMHz transceiver chipset for two-way paging applications”; Solid-State Circuits, IEEE Journal of; Vol. 33, Issue 12, pp. 2160–2168, Dec. 1998. 49. H.-Y. Cheung, K.S. Cheung, and J. Lau; “A low power monolithic AGC with automatic DC offset cancellation for direct conversion hybrid CDMA transceiver used in telemetering”; Circuits and Systems, 2001. ISCAS ’01. Proceedings of the 2001 International Symposium on; Vol. 4, pp. 390–393, May 2001. 50. J.P. Alegre, B. Calvo and S. Celma; “A Low-Voltage High-Performance CMOS Feedforward AGC Circuit for Wideband Wireless Receivers”; ETRI Journal; Vol. 30, no 5, pp. 729–734, Oct. 2008. 51. J.P. Alegre, N. Fiebig, S. Celma, S. Halder and B. Calvo; “SiGe Analog AGC Circuit for an 802.11a WLAN Direct Conversion Receiver”; Circuits and Systems II: Express Briefs, IEEE Transactions on; Vol. 56, Issue 2, pp. 93–96, 2009. 52. J.P. Alegre, S. Celma, J.M. García del Pozo and N. Medrano; “Fast-Response Low-Ripple Envelope Follower”; Integration, the VLSI Journal; Vol. 42, Issue 2, pp. 169–174, May 2008. 53. R.J. Baker; “CMOS circuit Design, Layout and Simulation”; IEEE Press Series on Micro- electronic Systems, 2005. 54. H. Elwan, T.B. Tarim, M. Ismail; “Digitally programmable dB-linear CMOS AGC for mixed- signal applications”; IEEE Circuits and Devices Magazine; Vol. 14, Issue 4, pp. 8–11. Jul. 1998. 55. Willy Hioe, Kenji Maio, Takashi Oshima, Yoshiyuki Shibahara, Takeshi Doi, Kiyoharu Ozaki, and Satoshi Arayashiki; “0.18-_m CMOS Bluetooth Analog Receiver With 88-dBm Sensitivity”; Solid-State Circuits, IEEE Journal of; Vol. 39, Issue 2, pp. 374–377, Feb. 2004. 56. Takashi Oshima, Kenji Maio, Willy Him, Yoshiy& Shibahara, Takeshi Doi; “Automatic tun- ing of RC filters and fast automatic gain control for CMOS low-IF transceiver”; Custom Integrated Circuits Conference, 2003. Proceedings of the IEEE 2003; pp. 5–8, Sept. 2003. 57. J.P. Alegre, B. Calvo, S. Celma; “A fast compact CMOS feedforward automatic gain control circuit”; Circuits and Systems, 2008. ISCAS 2008. IEEE International Symposium on; pp. 1504–1507, May 2008. 58. J.M. Khoury; “On the design of constant settling time AGC circuits”; Circuits and Systems II: Analog and Digital Signal Processing, IEEE Transactions on; Vol. 45, Issue 3, pp. 283– 294, Mar. 1998. 59. O. Jeon, R.M. Fox, B.A. Myers; “Analog AGC Circuitry for a CMOS WLAN Receiver”; Solid-State Circuits, IEEE Journal of; Vol. 41, Issue 10, pp. 2291–2300, Oct. 2006. 60. Weihsing Liu, Shen-Iuan Liu and Shui-Ken Wei; “CMOS Differential-Mode Exponential Voltage-To-Current Converter”; Analog Integrated Circuits and Signal Processing; Vol. 45, Issue 2, pp. 163–168, Nov. 2005. 61. Weihsing Liu and Shen-Iuan Liu; “CMOS exponential function generator”; Electronics Let- ters; Vol. 39, Issue: 1, pp. 1–2, Jan. 2003. 62. A. Motamed, C. Hwang and M. Ismail; “CMOS exponential current-to-voltage converter”; Electronics Letters; Vol. 33, Issue: 12, pp. 998–1000, Jun. 1997. 63. Cheng-Chieh Chang and Shen-Iuan Liu; “Current-mode pseudo-exponential circuit with tun- able input range”; Electronics Letters; Vol. 36, Issue: 16, pp. 1335–1336, Aug. 2000. 64. Q.-H. Duong, V. Krizhanovskii, H.-C. Choi, S.-J. Yun, M.-S. Yang and S.-G. Lee; “Low- voltage, high dB-linear, exponential V-V converter”; Electronics Letters; Vol. 40, Issue: 17, pp. 1032–1034, Aug. 2004. 65. W. Liu, S.-I. Liu and S.-K. Wei; “CMOS exponential-control variable gain amplifiers”; Cir- cuits, Devices and Systems, IEE Proceedings; Vol. 151, Issue: 2, pp. 83–86, Apr. 2004. 86 3â Basic AGC Cells

66. Q.-H. Duong, T.-J. Park, E.-J. Kim, and Sang-Gug Lee; “An All CMOS 743MHz Variable Gain Amplifier for UWB Systems”; Circuits and Systems, 2006. ISCAS 2006. Proceedings. 2006 IEEE International Symposium on; 2006. 67. B. Gilbert; “Limiting-Logarithmic Amplifiers”; Electronics Laboratories Advanced Engi- neering Course on RF IC Design for Wireless Communication Systems; Lausanne, Switzer- land, Jul. 1995. Chapter 4 AGC Systems

ChapterÂ4 presents the final AGC circuits achieved as a result of the study and the blocks implementation carried in previous chapters. In total three novel AGC cir- cuits are proposed. First is a CMOS feedforward digital AGC loop, AGC1. It is targeted for WLAN applications and its main strong points are its compactness and simplicity, together with its fast convergence time. The second AGC, AGC2, looks into the advantages of SiGe BiCMOS technol- ogy and offers solutions to an existing standard. Thus, a full AGC architecture is implemented to be integrated as a block of an IEEE 802.11a WLAN receiver. In this case a specific application is pursued, the main objective being to fulfil the standard requirements with a robust proposal offering minimum area and power consumption. The last AGC, AGC3, is designed to complete this chapter with a circuit capable of working at very high frequencies. The interesting field of the mixed loop AGC is also analyzed and novel unconventional level detection methods are proposed. Finally, at the end of the chapter conclusions are drawn and an interesting com- parison is offered between the proposed AGC circuits and some other architectures already proposed in the literature.

4.1 CMOS Feedforward Digital AGC Circuit

In applications such as WLAN or Bluetooth receivers, timing constraints preclude the use of closed-loop AGC schemes. Meanwhile, novel feedforward and open loop gain control techniques have proven to be adequate to shorten the settling time and reduce the acquisition time of AGCs [1–3]. Therefore, an automatic gain control circuit based on a feedforward approach to achieve very fast convergence will be presented in this section. It consists of a digitally programmable gain amplifier, a peak detector and a 4-bit flash ADC using thermometer code, offering low-voltage (1.8ÂV) low-power operation (1.6ÂmW), low-distortion (<â€−70ÂdB IM3) and an in- herent rapid convergence of the amplifier gain (attack-time <â40Âns and settling-time

J. P. Alegre Pérez et al., Automatic Gain Control, Analog Circuits and Signal Processing, 87 DOI 10.1007/978-1-4614-0167-4_4, ©ÂSpringer Science+Business Media, LLC 2011 88 4â AGC Systems

IF 71MHz 0/21/42 dB 0 to 21 dB This work Vin Channel Vout Preamp PGA Filter

Mixer RMS D Peak Comparator VCO Detector Switched Gain Control Bank

Vref

Fig. 4.1⁠IF 71ÂMHz strip

<â250Âns). First, the proposed AGC architecture and the circuit design of the key function blocks will be described. After that, main measured and simulated perfor- mances are summarized.

4.1.1 System Architecture

The automatic gain control described in this section is the last stage of the complete IF AGC shown in Fig.Â4.1. The full background AGC would consist of two coarse fixed-gain preamplifiers, controlled by simple pass-switches, with a digitally pro- grammable gain amplifier (PGA) at the end which allows final fine gain adjust- ment [4]. With this common gain distribution architecture, the total input range variation at the last stage can not exceed the gain of one of the previous amplifiers: establishing Voutâ = â0.4 Vp-p as a typical output voltage and by using preamplifiers of 21ÂdB as depicted in Fig.Â4.1, the expected input dynamic range extends from −â25 to −â4ÂdBm (21ÂdBm). This range is small enough to relax the design specifications of the peak detector. To reach the desired constant output amplitude a peak detector (PD) extracts the signal amplitude at the input of the PGA, as shown in Fig. 4.1. This signal amplitude is then introduced in a simple comparator array –like a flash ADC– that directly generates the digital word to control the PGA gain. The circuit description and implementation of these main blocks which constitute the proposed AGC, that is, the digitally programmable gain amplifier, the peak detector and a 4-bit com- parator bank, are described in the following. Programmable Gain Amplifierâ The complete PGA scheme, specifying transistor sizes and biasing conditions, is shown in Fig.Â4.2. It is based on the VGA1 scheme analyzed in Sect.Â3.1, so for detailed information refer to this Section. The core circuitry consists of a very simple negative feedback gm-boosted dif- ferential pair with output resistive loads and a switchable array of source degenerat- ing hybrid polysilicon-MOS resistors. In this design an additional gain program- mability degree of freedom is provided at the output current mirrors implemented 4.1â CMOS Feedforward Digital AGC Circuit 89

9

P$ P$ P$ 5 N: N: / 5/

 ± 9RXW 9RXW   9 Y 0 0 9 Y &0  LQ &0 Ā  LQ P$ P$ P$  P$ P$ P$

9 D D 0 9&0 &0 0 D D   5   0 0 91 0¶ 0¶ 0 0 0¶ 0 0¶ 91     

5

D

:/ :/ D

 :/  :/ D

 :/  :/

Fig. 4.2⁠Programmable gain amplifier cell

through M2-M3 by adding one identical output stage in parallel, with the M3 cascode transistors acting as the switching elements [5]. Thus, the PGA total differential gain is equal to:

RL Gain Kα , (4.1) = R where K is the current mirror gain

(W/L) K 3 , (4.2) = (W/L)2

R denotes one-half the degeneration resistance and α = gm1/(gm1+gmb1) the M1 gate- to-source DC voltage gain. The cell, designed in a 0.35µm CMOS process, is supplied with a single voltage of 1.8ÂV and the bias current value has been fixed to 40µA. Biasing currents have been implemented through cascode configurations. HRP load resistors RLâ = â8.3ÂkΩ are selected, which results in an expected intrinsic constant bandwidth in the 100ÂMHz range assuming output capacitive loads of 150ÂfF modelling the input capacitance of a succeeding cell based on this same topology.

The programmable degeneration impedance consists of a 3-bit array [a2 a1 a0] of hybrid HRP-NMOS resistors in parallel, binary weighted to obtain a logarithmic gain distribution ranging from 0 to 18ÂdB in 6ÂdB steps through a thermometer code control. A fourth bit a3 allows the output current mirror gain K to be set either at 90 4â AGC Systems

9UHI9&0 D 9UHI9&0 9SHDN  D D 9D &RPS 9SHDN 9UHI D D   9UHI Ā  D D &RPS 9  E D D &RPS Ā D D D 9UHI 9UHI 9UHI Ā

9F  D D &RPS D D D 9UHI 9UHI Ā

9G

9&0 9&0

Fig. 4.3⁠Comparator bank cell

1 or 1.5. This enables scaling each 6ÂdB step, so that the scheme covers an overall 021ÂdB gain programmability range, in 3ÂdB steps, by a 4-bit discrete coarse tuning. Fine gain tuning can be performed if necessary through slight gate voltage varia- tions for the switching transistors in order to improve accuracy. To generate a suitable common-mode output voltage, equal to that of the input

(âVCMâ = â1.3ÂV), an additional current source, controlled through the complementary of a3, is introduced. In this way, when the output current mirror gain Kâ = â1, the cur- rent source switches on, while when Kâ = â1.5 it switches off, enabling the output DC current and common mode voltage to be kept constant. Peak Detectorâ The peak detector structure is the same differential positive scheme presented in Sect.Â3.2 as PD3, where a unidirectional current mirror is employed together with a transconductor to implement the rectifier circuit [6]. A high per- formance Gm-cell is employed. In this way, with a very compact design, the peak detector exhibits higher linearity at higher frequencies with lower power consump- tion. One detector is employed for each balanced signal, adding both signals at a single output. Gain Computation Blockâ The output of the envelope detector is carried to a com- parator bank (simple differential pairs) where it is compared to a reference level

Vref, as shown in Fig.Â4.3. In order to take into account any change in the input common-mode level VCM, and since the peak detector is not balanced, the refer- ence level is generated with respect to VCM. The first 3Âbits [a2 a1 a0] that control the degeneration resistance providing the logarithmic gain distribution ranging from 0 to 18ÂdB in 6ÂdB steps are obtained simply by comparing the detected amplitude to the reference voltages Vref0, Vref1, Vref2 derived from a resistor ladder. The 4th bit a3, that allows the 3ÂdB step gain resolution through the control of the output current mirror, is generated by using a single comparator which contrasts the detected amplitude to a reference voltage Vref3 obtained by using simple logic (see Fig.Â4.3). 4.1â CMOS Feedforward Digital AGC Circuit 91

Fig. 4.4⁠AGC1 chip photograph

3' 9*$

P $*& %XIIHUV

 P &RPSV

&RPSV%XIIHUV

PP

V , if a 1 a 0 =  Vb, if AND(a1, a0) 1 Vref 3  = (4.3) =  Vc, if AND(a2, a1, a0) 1  = Vd , if AND(a2, a1, a0) 1.  =  That is, Vref3 equals one of the reference voltages Va, Vb, Vc or Vd depending on the value of the first three bits. For example, should Vpeak be between Vref0 and Vref1, the corresponding digital word would be [0 0 1] and following (4.5), the comparison reference voltage Vref3 to generate a3 would be equal to Va. Two different resistor banks are employed to avoid undesired feedback which would spoil the perfor- mance of the circuit.

4.1.2 Performances

The aforementioned proposed AGC has been simulated using SPECTRE with a BSIM3v3.2 level 53 transistor model and designed in AMS 0.35µm CMOS tech- nology. The chip photograph is shown in Fig.Â4.4. The overall circuit comprising the digitally programmable gain amplifier, the peak detector and the 4-bit comparator bank consumes 1.6ÂmW from a single 1.8ÂV supply voltage: 0.504ÂmW the PGA, 0.86ÂmW the peak detector and 0.23ÂmW the gain control block. Through a 4-bit thermometer code control, the gain can be varied linearly in dB from 0 to 21ÂdB in 3ÂdB steps. The frequency response of the main gain settings is shown in Fig.Â4.5; the −â3ÂdB bandwidth, as expected, is kept constant around 100ÂMHz over the whole gain range. The total harmonic distortion (THD) for sinusoidal input signals at 71ÂMHz is shown in Fig.Â4.6 considering constant differential output levels. Figures are below 92 4â AGC Systems

Fig. 4.5⁠Measured PGA fre- 24 quency response: solid line, Kâ = â1; dashed line, Kâ = â1.5 18 ‘111’

12 ‘011’ Gain ‘001’ (dB) 6 ‘000’ 0

–6

–12

–18 106 107 108 109 Frequency (Hz)

Fig. 4.6⁠Simulated THD ± levels at 71ÂMHz for the main G% gain settings versus output G% G% voltage Vout ± G%

±

± 7+'#0+] G%

±

±       9RXWSS 9

−â68Â dB over all the gain setting range with a differential output signal level of

0.2ÂVp-p, a value that increases to −â58ÂdB for 0.4ÂVp-p. Measured input-output performance with sinusoidal inputs for the implemented envelope detector is given in Fig.Â4.7. It is found that deviations from ideal behav- iour are below ±â0.5ÂdB for all the input range. Therefore, although the accuracy for the AGC employed in this work is 3ÂdB with 4Âbits, if necessary it can be increased up to 1ÂdB by raising the bit resolution. The convergence of the AGC is tested in the worst case condition: introducing a 21ÂdB stepwise signal, which is the maximum change that the AGC can observe due to the switching of one of the fixed gain amplifiers just before the PGA. To measure the attack-time, the input signal is increased by 21ÂdB, and the AGC converges in less than 40Âns. At the same time, to measure the settling-time the input signal is reduced. The results for the latter are shown in Fig.Â4.8. Simulated convergence time is around 0.25µs, while readings show a result of around 0.3µs. Thus, after measurements, the circuit still keeps a fast convergence response. 4.2 SiGe BiCMOS Analog AGC Circuit 93

Fig. 4.7⁠Measured input-  output linearity of the peak 0HDVXUHG  ,GHDO detector     

9RXWSG P9                 9LQ P9

Fig. 4.8⁠Measured peak  detector convergence 3'RXWSXW response for a 21ÂdB abrupt $*&LQSXW  stepwise change





$PSOLWXGH 9 



       W V [±

Total convergence is also checked by simulations for the full AGC in Fig.Â4.9.

The AGC adjusts signals to the desired output level (0.4 Vp-p) in no more than 0.25µs: since the AGC has a feedforward loop, the settling time required by the AGC is equal to that required by the envelope detector. The same can be expected for measurement results, where total convergence should be also around 0.3µs.

4.2 SiGe BiCMOS Analog AGC Circuit

In wireless local-area network (WLAN) receivers one of the accepted standards is the so called “IEEE 802.11a standard”. This standard uses orthogonal frequency di- vision multiplexing (OFDM) to allow high data rates in multipath WLAN environ- ments. As it is known, in the IEEE 802.11a WLAN protocol, received data consists of a preamble, header and data segments. The receiver estimates the characteristics 94 4â AGC Systems

Fig. 4.9⁠Simulated worst 0.3 case AGC output 0.2

0.1

0 Vout (V) Vout 0.1 ¯

0.2 ¯

0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 t (us) for each channel during the reception of the preamble. Once fixed, these charac- teristics must remain constant for the whole packet reception, which lasts up to 1Âms. The preamble consists of 10 short training symbols of 0.8Âμs each and 2 long training symbols of 4Âμs each, which are composed of a predefined data stream [7]. These stringent time constraints preclude the use of conventional AGC schemes using a closed-loop feedback technique to settle the desired output signal amplitude [8]. As an alternative, a so-called open-loop AGC algorithm has recently been pro- posed [1], obtaining convergence in less than 5.6µs. However, a quicker solution would be to employ a feedforward AGC architecture. In this section, the feasibil- ity of this latter solution is validated through the implementation of a feedforward analog AGC circuit embedded in an IEEE 802.11a 5-GHz WLAN receiver that has a fast convergence (3.2µs), while offering a good trade-off between the main char- acteristics: a gain range from 15 to 69ÂdB with an accuracy of ±â1ÂdB, a 9.7ÂdB noise figure and a total power consumption of 13.75ÂmW. An analog solution is adopted to reduce power consumption, allowing the DSP to sleep most of the time. The overall WLAN receiver is implemented through a direct conversion topol- ogy as its simplicity and benefits outweigh drawbacks such as DC-offset sensitivity [9]. To obtain a fully integrated system, a low-cost 0.25Âμm 75ÂGHz SiGe BiCMOS process is used for the whole receiver and consequently for the AGC shown here. Next, the complete AGC system is presented. After that, the design and implemen- tation of the different cells are explained. Finally, results and a summary of main characteristics are given.

4.2.1 System Architecture

Figure 4.10 shows the proposed feedforward baseband AGC block. The re- quired AGC design specifications in the WLAN receiver are: output voltage of 4.2 SiGe BiCMOS Analog AGC Circuit 95

& 2 9 RXW , 9 ([S  ± % % LQ± &± JHQHUDWLRQFLUFXLW 9 /RJ /RJ 9 &  9 UHI SG 9 9  , 9*$ )LQHJDLQ $  , RXW 9 & LQ 9 9 &  9 F & 9*$ WRG% FRQWLQXRXV ≠  ( ''  5 UHI 9 ,  *DLQ WRG% )LQH*DLQ&RQWURO LQ 3' 9 SG 9 F & FON UHI LQ &± 9 9 9 G% %XIIHU )LOWHU  IRU$DQG9*$ , Ā 2IIVHW ( $  , 5 *P&ILOWHU &DQFHOODWLRQ   & LQ± 9 9 9*$ ELW G%  3' % % $ IL[HG G% G% 2± 9*$VWDJHVIRU9*$ RXW± ,

9  ELW *DLQ 9*$ G% 6ZLWFKHG*DLQ&RQWURO  RXW 9 3' LQ  9 LQ 9 / 5 9&2 G% ( '' 5 $DQG9*$ 9  /1$ &RDUVHJDLQ 9*$ / Complete AGC architecture Complete 5 LQ± ⁠9 %3) :/$1DUHFHLYHUVKRZLQJWKHDUFKLWHFWXUHRIWKHSURSRVHGEDVHEDQGIHHGIRUZDUG$*& LQJUH\ DQGGHWDLOHGVFKHPHVRIWKH ±G% G% RXW± ±G% Fig. 4.10 9 96 4â AGC Systems

500ÂmVp-p,diff, noise figure below 10ÂdB, −â3ÂdB gain bandwidth from 100ÂkHz to 20ÂMHz, settling-time below 8Âμs and a 54ÂdB overall gain with ±â1ÂdB accuracy, ranging from 15 to 69ÂdB. The main setback of relying on a feedforward technique is that the peak detectors used to set the gain require higher input dynamic range. As a trade-off between power consumption and complexity, the total amplifier gain is split into three 18ÂdB stages, thus limiting to 18ÂdB the maximum input dynamic range for each peak detector. The AGC operates in three phases: two 0/18ÂdB switched coarse gain-setting phases, followed by a final 0 to 18ÂdB fine gain-setting phase. A fast settling chan- nel filter is embedded between the second and third VGA stages [1, 10]. The first coarse-gain stage VGA1 switches from 0 to 18ÂdB when the input signal Vin drops below −â32ÂdBm, during the first short training symbol time (tâ = â0–0.8Âμs). Simi- larly, the second coarse- gain stage VGA2 sets its gain to 0 or 18ÂdB during the second short training symbol (tâ = â0.8–1.6Âμs) and it is switched on when Vin is be- low −â50ÂdBm. Finally, the last stage VGA3 provides fine-gain variation from 0 to 18ÂdB and its settling time is determined by the peak detector PD3 response, which requires two short training symbols to converge. As shown in the scheme, a further stage A with a 15ÂdB fixed gain is required to fit the targeted specifications, but this does not take part in the gain settling process. Therefore, the AGC shows an overall 15–69ÂdB gain range and settles to ±1ÂdB in 3.2Âμs.

The DC offset cancellation circuit consists of a Gm-C filter with two external capacitors of 500ÂnF. The different blocks shown in Fig.Â4.10 which constitute the proposed AGC will be discussed next. All circuits were designed with fully differential circuitry.

4.2.1.1â Coarse Gain

The coarse gain block, provides a 15/33/51ÂdB controllable gain through VGA1–2 and a 15ÂdB fixed gain amplifier A. The input stage VGA1 is implemented by a simple BJT differential pair with load resistors to keep a low noise figure. The following stages,

A and VGA2, are both implemented by resistively-loaded BJT differential pairs with emitter degeneration resistances to increase the linear range for large input signals. Each VGA is managed by a 1-bit control circuit that completely switches on/off the corresponding amplifier depending on the input voltage level. The control circuit consists of a peak detector PD1(2), followed by a simple op-amp comparator and a D flip-flop, which stores the bit once the decision is taken. The structure of the peak de- tectors PD1,2 is based on the same principle as for PD3, which will be explained later on, but with relaxed requirements as precision for the coarse setting is not so critical.

4.2.1.2â Fine Gain

The final AGC stage VGA3 must provide a 0–18ÂdB fine gain tuning by means of a continuous control voltage VC. The cells included in this block are VGA3, peak detector and VC generation circuit. 4.2 SiGe BiCMOS Analog AGC Circuit 97

VGA3 Architectureâ The detailed VGA3 schematic is shown in Fig.Â4.10. It is an improved BiCMOS version of the VGA2 in Sect.Â3.1: a pseudo-differential BJT pair topology with common-mode feedforward cancellation to achieve high CMRR [6] and a negative feedback loop to increase linearity and reduce power consump- tion. Fully differential input signals Vin±â = âVCM,inâ±âvin/2 are applied to bipolar tran- sistors operating in the active region, while control voltages VC±â = âVCM,Câ±âVC drive the gate of emitter-degeneration NMOS transistors operating in the triode region. The negative feedback path, shown in dashed lines, allows keeping constant the common-mode current transmitted through the output mirrors, while the current surplus over the whole gain range is driven through a feedback-controlled transis- tor. In consequence, since not all the common-mode current is transmitted, power consumption reduction is achieved. Furthermore, using this technique, DC-voltage variations in nodes A± are moderated and therefore linearity is improved. After a non trivial routine circuit analysis [11], the output differential current can be approximated by

IO IO IO B(I1 I2) B(I3 I4) 4BK0VCvin, (4.4) = + − − = + − + ≈ where B is the gain in the current mirror, fixed to 2, and K0 is a constant which de- pends on the transistors’ intrinsic parameters. The output current in (4.6) is converted to voltage through floating output resistive loads RLâ = â5ÂkΩ implemented with a high resistivity poly-silicon layer. Therefore, the differential control voltage VC needed to obtain the desired output amplitude vOâ = âVref independently of vin can be expressed as:

Vref VC k , (4.5) = Vpd  where k is a constant and Vpd is the signal provided by the peak detector. This cell consumes a total current of 0.5ÂmA and can offer a continuous linear gain from −â3 to 21ÂdB with an accuracy of ±1ÂdB. Since only 18ÂdB gain variation is required, this ±3ÂdB gain excess can be employed to fix possible process variations. Peak Detectorâ The design of the peak detector is important because, as the AGC makes use of a feedforward loop, the total settling time of VGA3 is principally due to the settling time of the peak detector. The peak detector shown here is based on that introduced in Sect.Â3.2 as PD4. Consequently, a summary only is given here but for further details, the full explanation can be found in Chap.Â3. The basic cell is the same differential positive peak detector employed in PD3 and PD4. One cell is employed to detect the positive peak of each balanced signal,

V1±, and the mean value of both peaks is transmitted to the output, see Fig.Â4.11. The detector makes use of switches, S1-4 to obtain a track and hold behaviour so that small load capacitances can be employed. The switches are managed by a digital control signal generated by a few D flip-flops and logic gates from a single 5ÂMHz clock. The switches split the performance of the circuit into three different periods: “tracking”, “hold” and “discharge”, which all together require two symbols. During

“tracking” all switches S1-4 are “off” and the load capacitor is charged with the first 98 4â AGC Systems

VDD

S1 S2 V1+ V1– I C CL L L

S3 S4 Vph

Fig. 4.11⁠Schematic of the peak detector

symbol. At the beginning of the second symbol, “hold” period starts and S3,4 are closed so that the peak detected during the first symbol is transmitted to the output.

Finally, S1,2 are closed and S3,4 are opened, so that the rest of the second symbol is employed to discharge the load capacitor, CL, through current IL. This performance is successively repeated during the following symbols. In order to double the peak detector speed, a second peak detector like the one in Fig.Â4.11 works in parallel, starting the “tracking” during the second symbol, and “holding” and “discharging” during the third symbol. Thus, there is one circuit to detect the peak of odd symbols and the second one for even symbols, similar to that proposed in [12]. Control Voltage Generation Circuitâ Once the strength of the input signal is mea- sured, the circuitry to generate the required VC control voltage can be implemented either by a divider or by using the log-domain approach. Since we are employing BiCMOS technology and, log-amplifiers can easily be implemented making use of the direct translinearity of BJT, the latter choice is preferred in this case. Fur- thermore, since the loop operation frequency is low and a moderate dynamic range is required, it is possible to employ simple translinear cells to implement log and exp-amplifiers [13]. Separately, the performance of these cells is very dependent on process, voltage and temperature (PVT) variations. However, when they are employed in series as shown in Fig.Â4.10, the expression in (4.7) is achieved with PVT cancelled to the first order of approximation. Following the exp-amplifier, a conventional buffer stage is employed to generate the required VC±â = âVCM,Câ±âVC control voltages. This buffer is also used to connect the circuit with an external capacitor which stores the control voltage, VC, after the preamble signal.

4.2.2 Performances

Like the receiver, the complete AGC has been designed, in a low-cost 0.25 μm 75ÂGHz SiGe BiCMOS process. It employs a single supply voltage of 2.5ÂV and has 4.2 SiGe BiCMOS Analog AGC Circuit 99

Fig. 4.12⁠Die photo of the full AGC  P

PP PP PP PP PP PP

Fig. 4.13⁠Measurement test- bench PCB

a total current consumption of 5.5ÂmA for all the grey shadowed blocks in Fig.Â4.10. The photograph of the integrated AGC is shown in Fig.Â4.12. Employed PCB for the measurement test-bench is shown in Fig.Â4.13. The frequency response is given in

Fig.Â4.14 for several VGA3 gain settings, but with VGA1 and VGA2 disconnected. The low frequency response is controlled by DC-offset cancellation circuit. The bandwidth is constant for all the gain settings. The peak detector performance is given in Fig.Â4.15, while the control voltage versus detected amplitude is shown in Fig.Â4.16. Peak detector settling-time was measured with a 20ÂMHz sinusoidal wave modu- lated with a 400ÂkHz square signal. As shown in Fig.Â4.17, convergence is achieved in three clock cycles, consistent with the required three short symbols to settle the AGC. The convergence of the post-filter AGC for an OFDM signal was simulated us- ing SPECTRE due to the lack of instrumentation to generate this kind of modula- tion. The result for the worst case, high gain adjustment from low input level, is 100 4â AGC Systems

Fig. 4.14⁠Frequency  response of the full VGA 9*$RQ9F P9  for several VC with fixed amplifiers VGA and VGA 1 2 9F P9 switched off (âblack) and  for VCâ = â120ÂmV with  9F P9 VGA1 “on” (âgrey). Results are the mean value of 100  measurements 9F P9 *DLQ G%  9F P9 



      )UHTXHQF\ +]

Fig. 4.15⁠Input-output lin- 140 earity for the peak detector Measured data 120 Fitting y = 0.68*x - 1.6 100

80

60 Vpd (mV)

40

20

0 0 50 100 150 200 Vin (mV)

 )LWWLQJI [ H [  0HDVXUHG





9F P9 





Fig. 4.16⁠Control voltage          (âVC,diffâ) versus peak detector 9SG P9 output Vpd 4.3 CMOS Mixed Feedback/Feedforward AGC Circuit 101

Fig. 4.17⁠Measured peak 0.1 detector settling-time with 0.08 a 20ÂMHz sinusoidal wave 0.06 modulated with a 400ÂkHz 0.04 square signal 0.02 0 –0.02 –0.04 –0.06

Signals (V) –0.08 –0.1 –0.12 –0.14 –0.16 –0.18 –0.2 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 7 7.5 8 t (s) x 10¯6

Fig. 4.18⁠Simulated AGC 1.6 t1 t2 t3 t4 output signal, Vout, with an OFDM input signal for high- Initial gain 1.5 0 dB est gain adjustment (18ÂdB) from lowest input level 1.4

1.3

Vout (V) Vout 1.2

1.1

1

0 0.8 1.6 2.4 3.2 t (us)

shown in Fig.Â4.18. Initializing VGA3 gain in 0ÂdB, the fine gain circuit makes use of symbols t1 and t2, so the gain is already adjusted to ±â1ÂdB in t3. Since the coarse gain stage requires 1.6Âμs to set the gain, the total settling time is 3.2Âμs. This time is well below the standard preamble time, 8Âμs, so the rest of the preamble time is available to the digital signal processor (DSP).

4.3 CMOS Mixed Feedback/Feedforward AGC Circuit

In Sect.Â4.1, a feedforward digital AGC loop for 71Â MHz applications has been proposed. In Sect.Â4.2, a feedforward analog AGC loop for OFDM modulation at frequencies up to 20ÂMHz was analyzed. To finish this chapter, we propose a very high frequency (VHF) AGC, an AGC which is suitable for IF frequencies up to 250ÂMHz. 102 4â AGC Systems

As for the gain control approach, if high compression ratios are used, feedback AGCs can exhibit instabilities. Alternatively, the use of a feedforward loop can re- lax the compression ratio of the feedback loop [14]. In addition, the use of a digital control loop makes the output signal compression easy for high compression ratios. However, in feedback topologies, sudden steep rise in gain can reduce the stability margin. A solution is to increase the feedback loop time constant, slowing down the AGC response. Instead, digital control can be used in the feedforward loop drasti- cally reducing the target time constant. Therefore, a combined feedforward/feed- back AGC loop is chosen to take advantage of both control characteristics: high compression ratio and fast settling-time for the feedforward loop and accuracy for the feedback loop. This AGC is therefore suitable for applications such as terrestrial microwave equipment where 250ÂMHz IF frequency is common or re- ceivers where IF is between 30 and 900ÂMHz. Such mixed architecture however has already been proposed in the literature [15, 16], where a circuit with advantages of both loops is obtained. So the novelty of the circuit is not in the architecture, but in a couple of blocks employed in both loops. Feedforward loop includes an almost completely digital structure where the level detection is made not by a conventional peak detector, but by comparators, whereas feedback loop also employs an unconventional peak detector with an interesting response function. The system architecture and its different blocks are then described in more detail and simulation and experimental results are offered to finish off.

4.3.1 System Architecture

As mentioned above, high frequency AGC is a necessary requirement. Consequent- ly, to achieve this, the foremost characteristic of this circuit lies in simplicity. Apart from system architecture validation, this section also introduces a few novel blocks which will deal with the conventional AGC block functionality from a different angle, focused on circuit simplicity. The proposed combined feedforward/feedback AGC system is shown in Fig.Â4.20. The VGA is suitable for low voltage and allows for digital and analog gain control. The gain adjustment is dealt with in two phases: first, a digital feed- forward control loop, which tolerates very fast convergence of the amplifier gain, sets the output level as close as possible to the desired output amplitude. A feedback loop is then used to make the fine gain adjustment. Note that for this loop the input signal level varies within a reduced range, equal to the feedforward loop gain step. Therefore, its design can be greatly simplified. The feedforward loop is based on a novel configuration where a peak detector is not required, but keeps the same functionality as that obtained for AGC1. The feedback loop does not use a conventional peak detector, but a simple compara- tor followed by a charge pump and an integrator. The control voltage generation in this loop is finally accomplished through a simple Gm-C filter. The loop should 4.3 CMOS Mixed Feedback/Feedforward AGC Circuit 103 be completed with an exponential converter in order to maintain a constant (or almost constant) convergence time; however, this block has not been introduced here. Therefore, feedback loop convergence time will vary according to input sig- nal level. For the feedback loop the input signal level will vary only within a range equal to the minimum feedforward loop gain step. In this case, this is equal to 6ÂdB. Future work is intended to introduce the exponential block and to check the differ- ence obtained in the convergence time for both cases. To follow, different blocks will now be described. First, a summary of the perfor- mance characteristics will be offered of the employed VGA, which was presented in Chap.Â3. Then feedforward loop will be analyzed and a novel digital level detection concept will be presented. Finally, feedback loop is described along with another novel level detection concept. Variable Gain Amplifierâ The VGA within the AGC is the one introduced as VGA3 in Sect.Â3.1. Only a brief summary of the circuit will be offered here but further details can be found in Chap.Â3. The VGA is based on a new version of the ground referred differential pair, so low-voltage operation over the high frequency range can be achieved. A CMFF cancellation structure has been implemented to this Gm cell. The VGA cell is shown in the upper part of Fig. 4.19.Â

The Gm cell consists of an improved voltage follower formed by transistors M1A and M3 that increases the structure equivalent Gm to gm1Aro1Agm3, where the param- eters have their usual meaning [17]. According to previous analysis, the output dif- ferential current of the VGA is given by

Io Io2 I2 I1 2K(VGS VTH)Vin, (4.6) 1 = − = − = − where VTH and VGS are, respectively, the threshold voltage and the gate-to-source voltage of MB transistors and Kâ = â(1/2)COX(âW/L)B. In order to demonstrate the low-voltage operation, the proposed VGA with com- mon-mode feedforward is biased with a single supply voltage of 1.8ÂV. The common mode voltage VCM has been set to 1.3ÂV and the value for the bias current IB fixed at 50µA. This means that for VGâ = âVCMâ = â1.3ÂV, the current I1 (âI2) through the output transistors will ideally be also equal to 50µA and the VGA power dissipation is

0.65ÂmW. For VGâ = â1.25, 1.35 and 1.4ÂV the currents through the output transistors are approximately 25, 75 and 100µA respectively, and the power consumption var- ies between 0.55 and 1.1ÂmW. In order to maintain moderate power consumption, the maximum value for the output current I1 (âI2) that will be considered is 100µA. Feedforward Loopâ The feedforward loop is based on the concept already pre- sented for AGC1: first, input signal level detection is realized; then, this value is compared by simple comparators with reference values; and finally, the digital word required to adjust the gain in the PGA is generated. Though already really simple, the loop from AGC1 can be simplified still fur- ther. Instead of employing a peak detector followed by comparators, high speed comparators only are used. Supposing a sinusoidal input signal, when the amplitude 104 4â AGC Systems o 1 o 2 V V o 1 o 2 L 1,2 I I R 1 2 R R 8

M 1 ref C V out 7 – + o 1 V M V DD V 5B M o 2 V Detector Comp & 6 M B 5B I M 5A M 6 M VGA3 CM V O 2 G I V Loop Filter 1 2 I I M4 3-bit M2B in v C 1 2 – V CM V CC V M3 D VGA M2A B I up ) â M2B M4 2 3-bit I Block Digital CC V G V 1 I 3-bit M4 M1B ) and VGA3 ( down ) and â B I CC V M1A Comps M3 in v in 1 2 V + CM V M1B 1 2 I I M4 3-bit AGC3 system schematic ( AGC3 system schematic o 1 G I V ⁠Fig. 4.19 4.3 CMOS Mixed Feedback/Feedforward AGC Circuit 105

Fig. 4.20⁠Block schematic of 3-bit Vin± feedforward loop Digital Word 1 D Q D Q Vb1 Comp clk clk R Iref1 1 D Q D Q Vb2 Comp clk clk R Iref2 1 D Q D Q Vb3 Comp clk R clk Iref3 Clk

is above the reference value a pulse is generated at the comparator output. If this input level is kept constant, as the sinusoidal signal is periodic, the output pulse will become a periodic square signal. So, it is possible to use this square signal as a clock which makes a digital block changing its state from “low” to “high”. This state is also continuously reset with an internal clock, which could, for example, be provided by the DSP. This is not a special requirement as the digital circuitry usu- ally provides a clock signal to the analog block for normal performance. Thus, if the input amplitude drops below the reference value the clock will not be generated and as soon as the digital block is reset, the gain control bit will return to the start value. As one might deduce, the feedforward loop speed is fixed by the internal clock used to reset the digital block. The block schematic of this loop is shown in Fig.Â4.20. As what we require is a high frequency application, the comparator must be able to generate a pulse with a frequency equal to the input signal frequency. In this case, 250ÂMHz range is the target frequency. This means a very high slew rate is required. Two options were considered, the latch comparator [18] and inverter based com- parator [19], both of which provide a high slew rate and fast response. The inverter based comparator however, is the simplest circuit and its power consumption in static is almost nil. Thus, it is preferred to the latch comparator, which requires more transistors and has higher power consumption. The main disadvantage of the inverter based comparator is that it is highly sensitive to process variations and so requires calibration at the start up. In this work calibration has been made external- ly, though it could easily be done internally and controlled by the DSP, which is also a common practice in industrial electronics. The method chosen to calibrate each comparator is to introduce different small fixed currents into the inverter NMOS in order to change the crossover point to the desired value. Then, compared to the input signal common-mode voltage, this crossover point will be equivalent to the reference voltage generated by the string resistor ladder from AGC1. After that, the signal is regenerated by a few more inverters until a square signal is obtained at the 106 4â AGC Systems

VDD

Vin+

3.2/0.5 IRef

Vout Vri

V 2/0.5 in¯

VSS

Fig. 4.21⁠Inverter based comparator schematic

output when Vin is above the crossover point. FigureÂ4.21 shows the comparator schematic. Note that when the frequency is not so close to the technology limit, the com- parator performance can be greatly relaxed, for example in this case for 1–10ÂMHz applications. Thus, the comparator design can also be greatly simplified and so, the savings of avoiding the use of a peak detector increase. In fact, at lower frequencies, it is possible to use the same comparators as in AGC1, so the previous peak detec- tor is quite unnecessary. At high frequencies, the comparator will be more complex and given that as many comparators are necessary as bits, for many bits, the sum of all the comparators could make it more advisable to use a peak detector first. In this case, only three bits are employed and of course, designing a highly linear peak detector for frequencies up to 250ÂMHz would be very power hungry, so comparator based level detection is considered a better choice. The generated clock signal is carried on to manage a register. This register con- sists of two latches in series. The first latch has the input connected to logical “one” as shown in Fig.Â4.20. It stores this “one” only when the clock is working and, as it is reset continuously, if the clock is not working, a “zero” will be stored. At its input, the second latch receives the first latch output, but this latch uses the reset signal inverted as a clock. Thus, the signal stored in the first latch before the reset is transmitted to the block output. The reset period is responsible for the feedforward loop speed, so a low period is required to achieve fast convergence. However, the pulse signal generated by com- parators must be several times faster than the reset to guarantee that the required digital word will be processed correctly. In this case, one fifth of the input signal frequency was chosen for the reset frequency. In order to use a single power supply in the full AGC circuit, the same 1.8ÂV power supply is employed as in the VGA. Latches and inverters are those offered by AMS digital standard library. Feedback Loopâ Continuing with the idea of using comparators only to obtain an approximate idea of the input signal level, the feedback loop employs a comparator 4.3 CMOS Mixed Feedback/Feedforward AGC Circuit 107

Fig. 4.22⁠Peak detector schematic VDD

1pF 2/0.35

Vout

Vin + Comp 2/0.35 V ref ¯

VSS

9''

0 0 0 0 0 0 

9R 9 9 9 9 UHI R UHIĀ R 9RXW 0  0 0  0

 9ELDV —$ —$ 0 0    0 0

Fig. 4.23⁠Peak detector comparator based detector instead of conventional peak detectors such as those presented in Sect.Â3.2 (see Figs.Â4.22 and 4.23). In this case, the input signal is compared with a reference signal which marks the minimum expected output. This means that any input amplitude below this reference value will result in a VGA maximum gain configuration from the feed- back control. Should the input amplitude rise above the reference value, a pulse will be generated at the comparator output as happened in the feedforward loop. However, this case is analog and a continuous output is required for different input amplitudes. To obtain the analog response it must be noted that the generated pulses have a different width depending on how much bigger the amplitude is than the reference value. If a charge pump is connected in series with the comparator, this variable width pulse generates current pulses proportional to the square root of the input voltage. Loading the charge pump with a 1ÂpF capacitor, the current pulses charge the capacitor up to a value proportional to the current introduced. The rela- tion between the charge pump output and the input amplitude is not linear. In fact 108 4â AGC Systems

Fig. 4.24⁠EquationÂ(4.7) for y = 1001 - 637.3*arcsin(Vref/A) arbitrary constants and fitting 600 y = 204.8*log(A - 94.76) - 285.8 curve obtained by Matlab Curve Fitting Toolbox 500 Vref = 100 mV

400 y 300

200

100

0 100 120 140 160 180 200 A (mV) the relation is quite an unusual and interesting function. Straightforward analysis yields:

1 1 VRef Vout IoT arcsin , (4.7) = 2 − π A  where Io is the charge pump current, T is the input signal period, A is the input signal amplitude and VRef is the reference voltage. This equation is only valid for Aâ>âVRefâ, since it must be remembered that for Aâ≤âVRef the comparator output is zero. If we plot (4.7) for arbitrary constants using Matlab and analyze it with Curve Fitting Toolbox, it is found that another very useful function approximately fits in our ap- plication dynamic range. As Fig.Â4.24 shows, for VRefâ = â0.1ÂV and input amplitude, A, between 0.1 and 0.2ÂV, (4.7) is quite close to a logarithmic function. Thus, a peak detector with an approximate logarithmic function is obtained as long as input dy- namic range is kept low enough. After the detector, the signal is simply filtered and shifted so that the required VGA control voltage is obtained. Filtration is by means of a simple RC filter which mainly reduces the ripple generated by the charge pump. The RC filter is imple- mented as a MOS/switch-capacitor configuration where the MOS operates in triode and its equivalent resistance is reduced by a switch in parallel, which is connected for a small time period each time the digital feedforward loop changes the digital word. Providing the time period is not too long, AGC settling-time is reduced by this technique, whereas a simple differential pair makes the function of the level shifter. As mentioned, once logarithmic conversion has been achieved by the peak de- tector, if an exponential converter was introduced into the loop, the dynamic re- sponse given by (2.13) would be obtained. In its place, the dynamic response given by (2.10) for linear control voltage is expected. Once again, power supply is 1.8ÂV, the same as for the VGA. To follow, simu- lation and measurement results for certain separated blocks and the full AGC are offered. 4.3 CMOS Mixed Feedback/Feedforward AGC Circuit 109

Fig. 4.25⁠Chip photograph

Fig. 4.26⁠Measurement test circuitry

4.3.2 Performances

The AGC circuit was designed in 0.35µm CMOS technology by Austria Microsys- tems (AMS). The chip photograph is shown in Fig.Â4.25. The corresponding layout for this structure has been carefully realized taking into account matching between transistors and symmetry between sections in order to minimize second order dis- tortion components due to mismatches. FigureÂ4.26 shows the chip and the PCB used during measurement tests. Further information on the instrumentation and test probes employed is offered in Appendix A. First, VGA frequency response was measured. Simulation results obtained an al- most constant bandwidth around 700ÂMHz. Measurements however obtained a con- stant bandwidth of only 500ÂMHz though this bandwidth is more than enough for the target application, which was expected to be around 250ÂMHz. Bandwidth and 110 4â AGC Systems

Fig. 4.27⁠Gain vs. input 14 amplitude for an input signal Measured response at 100ÂMHz 12 Ideal response

10

8 Gain (dB) 6 4

2

0

–2

100 150 200 250 300 350 400 450 500 Vin (mVp-p) gain configuration measurement results are the same as those obtained by VGA3 and can be consulted in Fig.Â3.18. Next, measurement results are offered for input signals though only at 100ÂMHz, as, due to instrumentation limitations, it was not possible to make measurements at higher frequencies. Target and achievable fre- quencies are not so far apart, consequently, the obtained results can give a close view of expected results for 250ÂMHz signals. Distortion levels at high frequencies are expected to be high. Simulation results predicted an IM3 for a Voutâ = â0.4 Vp-p at 100ÂMHz below −â42ÂdB. Measured IM3 is below −â40ÂdB for all gain settings. Both results, simulated and measured, were ob- tained for the combination of the VGA and the buffer together and can be checked, as well as bandwidth results, in Chap.Â3 (see Fig.Â3.19). As shown, worst case results for IM3 correspond quite closely to those expected by simulations, although 6 and 12ÂdB IM3 was underestimated by simulations. A first estimation for the VGA without buffer IM3 is given by simulations which offer an IM3 for an output of 0.4ÂVp-p at 100ÂMHz below −â49.2ÂdB for all gain settings. To check AGC loop linearity response, the output amplitude was measured for different inputs at 100ÂMHz and thus, a graph with the gain vs. input amplitude was obtained. FigureÂ4.27 shows this graph where it can be compared with the ideal response and with ±â1ÂdB error curves. As shown, the obtained gain is below ±1ÂdB from the ideal response for a range above the input dynamic range of 12ÂdB (from

100 to 400ÂmVp-p). Finally, convergence was checked. Simulation results predicted a convergence time for a stepwise signal at 250ÂMHz below 50Âns. Again, instrumentation limita- tions prevented the use of such a high frequency modulation; instead, measure- ments were made with a square modulation of 300ÂKHz and a carrier frequency of 20ÂMHz. As shown in Fig.Â4.28, the AGC response to this input signal is quite fast. Therefore, although it is not possible to verify whether predicted simulations are 4.3 CMOS Mixed Feedback/Feedforward AGC Circuit 111

1.5 0.3 0.2 1.4 0.1 1.3 0

Vc (V) Vc 0.1 1.2 ¯

¯0.2 AGC Input (V) 1.1 0.3 0 0.5 1 1.5 2 2.5 3 3.5 4 ¯ t (s) x 10¯7 0.3 0.2 0.1 0

¯0.1 0.2

AGC Output (V) ¯ 0.3 ¯ 0 0.5 1 1.5 2 2.5 3 3.5 4 t (s) x 10¯7

0.05 0.45

0.025 0.4

0 0.35 Vc (V) Vc ¯0.025 0.3 AGC Input (V) ¯0.05 0.25 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 t (s) x 10¯6

0.03 0.02 0.01 0

¯0.01 0.02

AGC Output (V) ¯ 0.03 ¯ 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 t (s) x 10¯6

Fig. 4.28⁠AGC convergence with a square modulation at 300ÂKHz and a carrier at 250ÂMHz for simulation (âup) and 20ÂMHz for measurements (âdown) are offered good, measurement results at least offer a maximum response time below 0.8µs which is the maximum time required to vary VC between its maximum and mini- mum value with a 20ÂMHz signal. 112 4â AGC Systems

4.4 Conclusions

SectionÂ4.1 presented a 1.8ÂV─0.35µm CMOS automatic gain control circuit based on a digital feedforward approach which converges to the desired level within 0.3µs. The proposed architecture is very simple, compact and can be implemented with basic cells, obtaining at the same time high performance characteristics. There- fore, this AGC would prove very useful in applications such as WLAN or Blue- tooth receivers where the use of traditional closed loop feedback amplifiers forms a boundary due to the stringent settling time constraints. The second proposition presented is a full analogue SiGe BiCMOS AGC cir- cuitry embedded in an IEEE 802.11a WLAN direct conversion receiver. Based on an analog feedforward gain control technique, the circuit adjusts the gain rapidly and with high accuracy, maintaining at the same time a good trade-off between sim- plicity and power consumption. Therefore, this analog feedforward approach which provides very fast convergence and high enough linearity performance, classifies this architecture for WLAN receiver implementation. The third and final proposed AGC is a double loop AGC for application frequen- cies up to 250ÂMHz. The fast feedforward loop is combined with a more linear feedback loop, so it is possible to offer a fast enough AGC without gain steps that not all applications can accept. Furthermore, a novel digital level detection method is proposed for the feedforward loop and another pseudo-logarithmic peak detector has been obtained for the feedback loop. Summarizing, 0.35µm CMOS technology has been taken to its upper frequency limitation to offer a sufficiently linear AGC implemented with some simple but novel blocks. Next, a table (TableÂ4.1) is offered with main characteristics of three analyzed AGCs and some more AGC proposals from the literature: For WLAN applications, the AGC proposed by Dr. Jeon ET. Al in [1] is one of the most complete AGCs to be found in the literature. Therefore, it is a key refer- ence in this book where WLAN receivers are the target application. AGC1 and AGC2 proposals aim to improve the performances obtained in this case. AGC2 is targeted specifically for the same IEEE standard as Jeon’s work. However, the cir- cuit proposed here obtains a faster convergence-time thanks to its feedforward loop, while other performances are similar to those obtained in [1]. The strong points of AGC1 are its simplicity and very fast response. This AGC also offers considerably lower power consumption than other options; although, it would rise a little if gain range and precision were increased. [20] is another example from the literature of an AGC implemented in BiCMOS with high bandwidth and fast response. How- ever, it has the usual drawback in BiCMOS technologies. A higher power supply voltage is used and consequently, consumption is much higher than in other AGCs. AGC2. In spite of using BiCMOS technology, it also makes use of low voltage blocks, so it can work with the right power supply for CMOS transistors. Finally, AGC3, the proposal for high frequency applications, achieves the 243ÂMHz standard with moderate power consumption, while other performances are below standard for these frequencies. 4.4 Conclusions 113 dB  μm  42 12 â â 0.8 − ∼ â â â < 0.35 250 0.4 1.8 2.2 < 0 AGC 3 MHz  dB@20  μm 69  â 41 â ∼ â − â 0.068–20 0.5 2.5 13.75 3.2 SiGE BiCMOS CMOS < AGC 2 0.25 15 Continuous ( ± ldB)+ Cont. ( ± ldB) Discr. dB)  μm  60@71MHz 21 â â − ∼ â â 100 Discrete (3 0.35 0.4 1.8 1.62 0.25 CMOS AGC 1 < 0 b μm 32  â 37@lMHz â ∼ â − â 18 Continuous ( ± ldB) 0.5 < 1.6–2 10.44 4.2 [ 1 ] 0.18 −8 μm  45 a â ∼ â 0 Continuous — 60–104 3–5.2 [ 20 ] 0.25 BiCMOS CMOS 0.3 Comparison of literature and proposed AGCs proposed and Comparison of literature ⁠THD Attack-time AGC Gain range (dB) Table 4.1 Table a b Gain setting Distortion: IM3 (dB) Power (mW) Intrinsic bandwidth (MHz) 400 Supply voltage (V) Tech process Tech Design AGC output voltage (V) 0.11 AGC settling-time (μs) 114 4â AGC Systems

The AGC circuits proposed in this book are therefore highly competitive with those already presented in the literature.

References

â 1. O. Jeon, R.M. Fox and B.A. Myers; “Analog AGC Circuitry for a CMOS WLAN Receiver”; Solid-State Circuits, IEEE Journal of; Vol. 41, Issue 10, pp. 2291–2300, Oct. 2006. â 2. T. Oshima, K. Maio, W. Hioe, Y. Shibahara and T. Doi; “Automatic Tuning of RC Filters and Fast Automatic Gain Control for CMOS Low-IF Transceiver”; Custom Integrated Circuits Conference, 2003. Proceedings of the IEEE 2003; pp. 5–8, Sept. 2003. â 3. C.-W. Lin, Y.-Z. Liu and K. Y. J. Hsu; “A Low-Distortion and Fast-Settling Automatic Gain Control in CMOS Technology”; Circuits and Systems, 2004. ISCAS ’04. Proceedings of the 2004 International Symposium on; Vol. 1, pp. 541–544, May 2004. â 4. Chun-Pang Wu and Hen-Wai Tsao; “A 110-MHz 84-dB CMOS Programmable Gain Ampli- fier With Integrated RSSI Function”; Solid-State Circuits, IEEE Journal of; Vol. 40, Issue 6, pp. 1249–1258, Jun. 2005. â 5. B. Calvo, S. Celma and M.T. Sanz; “Low-Voltage Low-Power CMOS IF Programmable Gain Amplifier”; Circuits and Systems, 2006. MWSCAS ’06. 49th IEEE International Midwest Symposium on; Vol. 2, pp. 276–280, Aug. 2006. â 6. S.-B. Park, J.E. Wilson, and M. Ismail; “Peak Detectors for Multistandard Wireless Receiv- ers”; Circuits and Devices Magazine, IEEE; Vol. 22, Issue 6, pp. 6–9, Nov.-Dec. 2006. â 7. “Wireless Lan Medium Access Control (MAC) and Physical Layer (PHY) Specifications: High-Speed Physical Layer in the 5-GHz Band”; IEEE Std. 802.11a, Part11, Sep. 1999. â 8. J.M. Khoury, “On the design of constant settling time AGC circuits”; Circuits and Systems II: Analog and Digital Signal Processing, IEEE Transactions on; Vol. 45, Issue 3, pp. 283–294, Mar. 1998. â 9. M. Zargari, D.K. Su, C.P. Yue, S. Rabii, D.Weber, B.J. Kaczynski, S.S. Mehta, K. Singh, S. Mendis, and B.A. Wooley; “A 5-GHz CMOS transceiver for IEEE 802.11a wireless LAN system”; Solid-State Circuits, IEEE Journal of; Vol. 37, Issue 12, pp. 1688–1694, Dec. 2002. 10. A. Otin, S. Celma and C. Aldea; “A 40-200MHz Programmable 4th-Order Gm-C Filter with Auto-Tuning System”; Solid State Circuits Conference, 2007. ESSCIRC 2007. 33rd Euro- pean; pp. 214–217, Sep. 2007. 11. S.I. Liu and Y.S. Hwang; “CMOS Four-Quadrant Multiplier Using Bias Feedback Tech- niques”; Solid-State Circuits, IEEE Journal of; Vol. 29, Issue 6, Jun. 1994. 12. J.P. Alegre, S. Celma, B. Calvo and J.M. García del Pozo; “Design of a Novel Envelope De- tector for Fast-Settling Circuits”; Instrumentation and Measurement, IEEE Transactions on; Vol. 57, Issue 1, pp. 4–9, Jan. 2008. 13. B. Gilbert; “Limiting-Logarithmic Amplifiers”; Electronics Laboratories Advanced Engi- neering Course on RF IC Design for Wireless Communication Systems, Lausanne, Switzer- land, Jul. 1995. 14. J. Israelsohn; “Gain control”; EDN; pp. 38–46, Aug. 2002. 15. M. Fujii, N. Kawaguchi, M. Nakamura, T. Ohsawa; “Feedforward and feedback AGC for fast channels”; Electronics Letters; Vol. 31, Issue 13, pp. 1029–1030, Jun. 1995. 16. Wang Wenzhao, Chen Yaqin, Zhou Qi; “Implementation of mixed feedback/feedforward analog and digital AGC”; Microwave and Millimeter Wave Technology, 2004. ICMMT 4th International Conference on, Proceedings; pp. 377–381, Aug. 2004. 17. R.G. Carvajal, J. Ramírez-Angulo, A.J. Lopez-Martin, A. Torralba, J.A.G. Galan, A. Car- losena and F.M. Chavero; “The Flipped Voltage Follower: a Useful Cell for Low-voltage Low-power Circuit Design”; Circuits and Systems I: Regular Papers, IEEE Transactions on; Vol. 52, no. 7, pp. 1276–1291, 2005. References 115

18. C.J.B. Fayomi, G.W. Roberts, M. Sawan; “Low power/low voltage high speed CMOS dif- ferential track and latch comparator with rail-to-rail input”; Circuits and Systems, 2000. Pro- ceedings. ISCAS 2000; Vol. 5, pp. 653–656, May 2000. 19. J. Segura, J.L. Rossello, J. Morra, H. Sigg; “A variable threshold voltage inverter for CMOS programmable logic circuits”; Solid-State Circuits, IEEE Journal of; Vol. 33, Issue: 8, pp. 1262–1265, Aug. 1998. 20. T. Drenski, L. Desclos, M. Madihian, H. Yoshida H. Suzuki, T. Yamazaki; “A BiCMOS 300ns Attack-Time AGC Amplifier with Peak-Detect and Hold Feature for High-speed Wire- less ATM Systems”; Solid-State Circuits Conference, Digest of Technical Papers. ISSCC. IEEE International; pp. 166–167, Feb. 1999.

Chapter 5 Conclusions

Throughout this book, the most relevant results and main conclusions have been summarized in the concluding discussion of each chapter. In this final chapter, the most significant contributions will be reported in order to give a general overview of the work. First, the fulfilment of the main objectives presented in Sect.Â1.2 will be verified, leading on to the corresponding conclusions. Further research directions will then be pointed out. Among these are the ques- tions not considered in this book and the extra development of those already com- pleted. These proposed investigations could well be used in future works as an extension to complement the work presented here.

5.1 General Conclusions

ChapterÂ1 has been employed to introduce the framework for this book: techniques used, technology processes, active blocks, target applications, challenges and main objectives have been laid out. The second chapter offers a theoretical analysis of feedback and feedforward AGCs transfer functions and several possible solutions have been identified. Fur- thermore, behavioural models realized in Matlab made it possible to verify the ex- pected performance of these solutions. The third chapter consists of three sections, one for each of the main blocks required in an AGC: VGA, peak detector and control voltage generation circuit. SectionÂ3.1 characterizes several VGAs, some of which were classic literature pro- posals. We were however particularly concerned about those developed inside the design group. These were all designed in a 0.35µm CMOS process with a single 1.8ÂV power supply, so that the 1.8 V–0.18µm CMOS technology migration could easily be realized. Moreover, a multiplier based VGA was proposed (VGA2): a low-voltage constant-bandwidth VGA based on a high performance multiplier cell in a 0.35µm CMOS technology. This consumes a mere 1.5ÂmA from a single 1.8ÂV power supply voltage. Measured results showed competitive performances, such as

J. P. Alegre Pérez et al., Automatic Gain Control, Analog Circuits and Signal Processing, 117 DOI 10.1007/978-1-4614-0167-4_5, ©ÂSpringer Science+Business Media, LLC 2011 118 5â Conclusions

190ÂMHz gain bandwidth, while a continuous and wide gain range of 36ÂdB was offered. Thus, a set of high performance VGAs with very predictable responses has been put together to be suitable for feedforward AGCs. SectionÂ3.2 offered the evolution of peak detector cells ranging from the most basic to more complex ones. In this case, several peak detector proposals were made, all of them in 0.35µm CMOS technology. The first, PD1 is an open loop peak detector composed of a voltage to current converter, a rectifier and a cur- rent mode peak detector, which is able to operate at high frequencies. It employs a 3.3ÂV single supply voltage and consumes 6.1ÂmW when designed for a 71ÂMHz bandwidth or 2.13ÂmW for 10ÂMHz bandwidth. In order to obtain a 0.3% ripple, the latter one, requires 10ÂpF total capacitance and worst case settling-time can be up to 27.5µs due to the inherent trade-off between keeping and tracking. To overcome these results a new concept of envelope detector was proposed (PD2) based on a sample and hold performance controlled by the input signal. This proposal obtained similar performances to those obtained by its counterpart, but this time it only re- quired 3.3ÂpF and presented a worst case of 0.4µs settling-time. Thus, it offers the possibility of reducing the capacitance needed for the same performance, thereby achieving a great saving of circuit area and completely overcoming the inherent trade off between keeping and tracking exhibited by conventional peak detectors. Another proposal, PD3, was a differential positive peak detector where, instead of a diode, a unidirectional current mirror is employed together with a high performance transconductor. This transconductor allowed for high operation frequencies with quite low power consumption (0.9ÂmW) for a moderate linearity range (21ÂdB). Based on the same concept, but making use of a similar fast-settling technique as with PD2 and in SiGe BiCMOS technology, PD4 obtained very good performance tracking signals with low power consumption (0.55ÂmW). As speed was limited by an external 5ÂMHz clock, its settling-time was lower than that of others, though still quite fast. Finally, a peak detector based on a conventional Sample & Hold structure has been presented (PD5) proving how this kind of circuit is able to de- tect the amplitude of certain types of signals. The advantages of such circuits are those obtained in this case: fast settling-time, low capacitance area… Furthermore, this circuit was specifically designed to cancel charge injection, so a wide dynamic range would be obtained (42ÂdB). In Chap.Â4 all the AGC loops analysis carried out in Chap.Â2 and different block proposals developed in Chap.Â3 were considered and three different AGC proposals were offered. The first AGC proposal (AGC1) was based on a digital feedforward approach and offered very fast settling time. The projected architecture was very simple, implemented in 0.35µm CMOS process with basic cells, such as VGA1, PD3 and some simple comparators. Its characteristics obtained a good trade-off of 100ÂMHz bandwidth, 20ÂdB gain range with only 1.62ÂmW power consumption. Furthermore, it took full advantage of feedforward structure and fast peak detector, so its settling-time was only 0.25µs. The second proposition presented, AGC2, was implemented in a low-cost SiGe BiCMOS technology process. It is a fully analogue feedforward AGC circuit em- bedded in an IEEE 802.11a WLAN direct conversion receiver. This receiver had 5.2â Further Research Directions 119 stringent settling-time constraints, so this AGC fast tracking capability (requiring only 4 out of 10 OFDM preamble symbols to settle the worst case signal variation) was perfect for this application, improving the results obtained by other circuits in the literature. This time the AGC adjusted the gain continuously with only ±Â1ÂdB measured accuracy and a range which extends from 15 to 69ÂdB. Thus, all speci- fications fixed by the receiver were satisfied and the analog feedforward approach proved itself capable of providing very fast convergence with ample linearity per- formance. Finally, a double loop feedforward/feedback AGC (AGC3) was proposed for ap- plication frequencies of up to 250ÂMHz. The fast feedforward loop was combined with a more linear feedback loop to be able to offer a fast AGC with continuously variable gain. Furthermore, a novel digital level detection method was proposed for the feedforward loop and another pseudo-logarithmic peak detector was ob- tained for the feedback loop. In summary, a low-cost 0.35µm CMOS technology was taken to its upper frequency limitation and fed with a lower supply (1.8ÂV) to present a linear AGC which consumes 2.2ÂmW implemented with some simple but novel blocks. For WLAN applications, the CMOS AGC proposed by Jeon et al. (see TableÂ4.1 in Chap.Â4) is one of the most complete AGCs to be found in the literature. Thus, it is a key reference in this book where WLAN receivers are the target application. AGC1 and AGC2 proposals aim to improve the performances obtained in this case. The strong points of AGC1 are its simplicity and very fast response. This AGC also presents considerably lower power consumption than other options; although, it would raise a little if gain range and precision were increased. AGC2 is targeted specifically for the same IEEE standard as Jeon’s work. However, the circuits pro- posed here obtained a faster convergence-time thanks to their feedforward loop, while other performances are within the requirements of the application. There is another BiCMOS example taken from the literature with high bandwidth and fast response (also shown in TableÂ4.1, Chap.Â4). However, it has the usual drawback in BiCMOS technologies. It uses a higher power supply voltage and consequently, its power consumption is much higher than in other AGCs. In spite of employing BiC- MOS technology, AGC2 also makes use of low voltage blocks, so it can work with the power supply corresponding to CMOS transistors. Thus, by means of these two AGCs, this book shows that mentioned AGCs are competitive with those already presented in the literature and consequently, the feedforward loop is a fine alterna- tive in WLAN receivers.

5.2 Further Research Directions

The fast-settling peak detectors introduced in Sect.Â3.2 offer a new research line which is very advantageous in many applications such as adaptive bias techniques for linearity enhancement, dc current reduction in RF amplifiers or MLL Q-tun- ing method used in high-Q high-frequency continuous time filters, beyond AGC 120 5â Conclusions circuits. These detectors still have one or two issues to be solved such as those brought about by switches: charge injection and capacitive feedthrough. Many tech- niques in the literature deal with these problems, but their study was sidestepped to avoid deviating from our objectives in this book. AGC3, the proposal for high frequency applications, introduced a new field of study that should be developed still further: the feedforward/feedback dual loop. The possibility of reducing feedback loop compression ratios by feedforward loop and thus, relaxing loop stability conditions can lead to faster AGC circuits. This has been introduced through AGC3, but could require much greater work and has been set aside for future investigation lines. Finally, another issue to be investigated is the use of the pseudo-logarithmic peak detector presented in Sect.Â4.3. This simple method for obtaining a logarithmic response in CMOS technologies could be combined with other simple exponential converters to design a fast analog feedforward loop in a CMOS process. Thus, the future work to be realized is clear and will be useful to complete the study carried out in this book as well as to explore new research directions. Appendix A: Layout and Experimental Techniques

A.1â General Layout Considerations

The layout of an analog IC directly influences its performance. Therefore, if we are to keep the characteristics of the designed circuits up to certain specifications despite negative effects such as crosstalk, parasitics, mismatches, noise, etc, a care- ful layout is mandatory. Although the layout considerations to be taken into account to minimize these effects are quite well-known and commonly used by analog de- signers [1–4], a reminder of them here in this work will not go amiss. A summary follows of the relevant key points to be considered in the design of the main com- ponents.

A.1.1 Layout Components

Transistorsâ Transistor layout was carried out using common design rules in order to achieve adequate matching. Therefore, in cases where matching between com- ponents was critical, interdigitized or common centroid structures were employed. Likewise, dummy transistors were introduced in the stack borders to guarantee obtaining similar performance for each finger. These dummies were connected to the adequate power supply, to keep them in the cutoff region. Guard rings were also included to reduce substrate noise influence in transistor signals. Capacitorsâ These are basic elements in the implementation of any integrated cir- cuit. In this book, the main use of capacitors has been in peak detectors and in stabil- ity compensation of feedback loops. All the capacitors in 0.35µm CMOS process were implemented by double poly structures. The main reason for choosing this type was its superior linearity and area relation. Metal-metal capacitors offer supe- rior linearity performance, but their specific capacitance is low and requires greater area. Alternatively, MOS based capacitors can present high specific capacitance, but their linearity performance is lower.

J. P. Alegre Pérez et al., Automatic Gain Control, Analog Circuits and Signal Processing, 121 DOI 10.1007/978-1-4614-0167-4, ©ÂSpringer Science+Business Media, LLC 2011 122 Appendix A: Layout and Experimental Techniques

With regard to circuits in 0.25µm SiGe BiCMOS, Metal-Insulator-Metal, MIM, capacitors were employed as this technology allows only this kind of capacitor. In the circuits offered throughout this work, no critical capacitor matching re- quirement was found and their values were moderate, so parasitic capacitors were a second order issue. Thus, their layouts have not followed any special requirement. Resistorsâ 1. MOS based resistors: To implement the layout of MOS based transistors, the criteria explained in transistor layout has been followed: basically, transistors were interdigitized and dummy transistors were introduced in the borders of the

stacks. A guard ring connected to VSS was also used in each case. 2. Polysilicon resistors: If best linearity is required, MOS based resistors are not adequate. Therefore, in high frequency amplifiers for example, load resistors were implemented in this technology. When matching was necessary, these resis- tors were interdigitized with dummy structures on both sides, inside an N-well and a guard ring to guarantee isolation. Padsâ In CMOS circuits two types of pads were employed. One included a simple diode based protection system to avoid break voltages in MOS gates due to Elec- troStatic Discharge. (ESD). This is a simple system, but adequate enough for our requirements. In all the other inputs/outputs simple custom pads were used to avoid degradation in frequency response. In SiGe BiCMOS circuits, there were also two pad types: one for high frequency response and the other for DC signals. Furthermore, the same simple protection system was introduced where required as in CMOS circuits.

A.1.2 Full Systems Layouts

In the different circuit layouts, apart from using different component matching tech- niques, we have tried to keep the natural circuit symmetry. Furthermore, differences in the paths of balanced signals were carefully avoided as it is absolutely necessary to obtain the benefits inherent to these signals. To avoid coupling between inputs and outputs, bondpads were distributed sepa- rately. As previously mentioned, balanced signal paths were drawn symmetrically and the same was done with bondpads.

A.2â Experimental Considerations

To verify simulation results several circuits were measured. This section introduces the techniques that were used to realize the measurements and the solutions applied to the typical small problems that crop up during the process. First of all, here is a layout of the equipment used. A.2 Experimental Considerations 123

Fig. A.1⁠Measurement CHIP scheme

Test

Vin Vout

DUT Test

A.2.1 Measurement Equipment

Apart from the typical measuring equipment found in any laboratory, the following devices were employed: • Network analyzer: Rohde&Schwartz ZVL6 (9ÂkHz–6ÂGHz) • Digital oscilloscope: Tektronix TDS544A (500ÂMHz) • Signal synthesizer/generator: HP3325B (20ÂMHz) • Signal generator: Rohde&Schwartz SMY-01 (1.04ÂGHz) • RF signal generator: Rohde&Schwartz SM300 (9ÂkHz–3ÂGHz) • Spectrum analyzer: Rohde&Schwartz FS300 (9ÂkHz–3ÂGHz)

A.2.2 Measurement of Integrated Circuits

The first thing to take into account in the measurement of an IC is the design of PCB board required to support the chip and connect it to the measurement devices and auxiliary circuitry. The most important requirement of a PCB board in this work was to avoid as much as possible parasitic capacitances along the signal path from the generator to the chip input pads and from the output pads to the measurement devices. To do so, SMA connectors were employed, PCB paths were kept as short as possible to minimize parasitics and high frequency transformers (WBC8-1LB and WB3-1TSLB) were used. A way to facilitate tests is to introduce calibration test circuitry in the chip de- sign or Device Under Test (DUT). This calibration circuitry is composed, for ex- ample, of a second path between inputs and outputs with the test-buffer employed to cancel pad parasitic capacitances in the middle, so that it is possible to calibrate the frequency analyzer and measure DUT frequency response. This measurement schematic is shown in Fig. A.1. The input signal is carried from the generator to the PCB in single mode. Then, it is converted to balanced currents by the transformers and again into voltage by in- put resistors, Rin. These resistors are chosen so that the generator sees an equivalent load resistor of 50ÂΩ to optimize energy transmission. The output buffer is loaded 124 Appendix A: Layout and Experimental Techniques

Fig. A.2â CMOS test-buffer VDD VDD schematic

IB1 IB1 Iout+ Iout–

Vout+ Vout– IB2

GND

Fig. A.3â Test buffer chip photograph

Test buffer

with Rout resistors, which again give an equivalent resistance equal to the measure- ment device input resistor: 50ÂΩ. The test-buffer scheme is shown in Fig. A.2. It is a two stage transconductor, which consequently, avoids inverse transmissions. The first stage is a simple source follower composed of P-transistors M1. The second stage is a simple differential pair biased by 2ÂmA current and loaded by external resistors. These resistors can not be very big, as together with parasitic capacitors, they would greatly reduce buffer bandwidth. Thus, 100ÂΩ resistors were employed, so, at the same time an equivalent output resistor of 50ÂΩ was obtained. In BiCMOS designs, buffers based on simple transconductors with a feedback loop were employed. As the bipolar differential pair was used instead of the MOS one, greater transconductance was obtained, so these buffers offered very good performance in spite of the feedback loop. FigureÂA.3 shows a CMOS test buffer chip photograph, while FigÂA.4 shows example pictures of both the PCBs used to measure chips and of the laboratory test table. To automate some of the measurements, GPIB connectors were inserted between the measurement devices and the computer. Using Matlab, it was possible to create the adequate files to automatically measure and collect the data. References 125

Fig. A.4⁠PCBs for each chip

References

1. Y. Tsividis; “Mixed Analog Digital VLSI Devices and Technology”; McGraw-Hill, New York, 1996 2. R.J. Baker, H.W. Li, D.E. Boyce; “CMOS Circuit Design, Layout and Simulation”; IEEE Press Series on Microelectronic Systems, 1998. 3. A. Hastings; “The Art of Analog Layout”; Prentice Hall Inc., New Jersey, 2001 4. F. Maloberti; “Analog Design for CMOS VLSI Systems”; Kluwer Academic Publishers, 2001.

Appendix B: Acronym List

Acronym Significance

ADC Analog to Digital Converter AGC Automatic Gain Control AM Amplitude Modulation AMS Austria Micro Systems ASIC Application Specific Integrated Circuits ASK Amplitude-Shift Keying BiCMOS Bipolar-CMOS BJT Bipolar Junction Transistor BSIM Berkeley Short-channel IGFET Model BW Bandwidth CCD Charge Coupled Device CDMA Code Division Multiple Access CMFF Common-Mode Feedforward (C)MOS (Complementary) Metal Oxide Semiconductor CMRR Common-Mode Rejection Ratio DR Dynamic Range DSP Digital Signal Processor GBW Gain Bandwidth product GPIB General Purpose Interface Bus HF High Frequency HRP High Resistivity Polysilicon IC Integrated Circuit IEEE Institute of Electrical and Electronics Engineers IF Intermediate Frequency IM3 Third order Intermodulation distortion LAN Local Area Network LNA Low Noise Amplifier MLL Magnitude Locked Loop MOSFET Metal Oxide Semiconductor Field Effect Transistor N/PMOS N-channel/P-channel MOS

J. P. Alegre Pérez et al., Automatic Gain Control, Analog Circuits and Signal Processing, 127 DOI 10.1007/978-1-4614-0167-4, ©ÂSpringer Science+Business Media, LLC 2011 128 Appendix B: Acronym List

Op-Amp Operational Amplifier OFDM Orthogonal Frequency Division Multiplexing OTA Operational Transconductance Amplifier PCB Printed Circuit Board PD Peak Detector PGA Programmable Gain Amplifier PH Peak Holder PVT variations Process-Voltage-Temperature variations RMS Root Mean Square S/H Sample and Hold SiGe BiCMOS Silicon Germanium BiCMOS SNR Signal-to-Noise Ratio SR Slew-Rate THD Total Harmonic Distortion VGA Variable Gain Amplifier VHF Very High Frequency VLSI Very Large Scale Integration WLAN Wireless LAN Appendix C: Parameter Glossary

Parameter Significance k Boltzmann constant (1.38â×â10–23 J/K) T Absolute temperature (in Kelvin degrees) –11 εox Dielectric permittivity of SiO2 (3.4531â×â10 ÂF/m) ID Total drain current of a MOS transistor μn/μp Surface mobility for electrons and holes respectively μo Effective mobility at low electrical fields tOX Gate-oxide thickness of a MOS transistor θ Mobility-reduction coefficient of a MOS transistor γ Body-effect coefficient of a MOS transistor λ Channel-length modulation factor of a MOS transistor

NSUB Effective substrate doping CJ Junction capacitance per unit area (source/drain-bulk) CJW Sidewall junction capacitance (source/drain-bulk) CPOX Poly1-poly2 specific capacitance per unit area ρSH Sheet resistance of a high resistivity poly module W Channel width of a MOS transistor L Channel length of a MOS transistor dW Difference between W and the effective channel width Weff dL Difference between L and the effective channel length Leff α MOS transistor gate-to-source DC voltage gain

K MOS transistor gain factor: Kâ€=‽µCoxW/L gm MOS transistor transconductance defined as δID/δVGS gmb MOS transistor bulk-transconductance defined as δID/δVBS ro MOS transistor output conductance VTH Threshold voltage VTHO Zero-VBS value of threshold Vfp Fermi potential

VDSAT Drain-source saturation voltage of a MOS transistor

J. P. Alegre Pérez et al., Automatic Gain Control, Analog Circuits and Signal Processing, 129 DOI 10.1007/978-1-4614-0167-4, ©ÂSpringer Science+Business Media, LLC 2011 130 Appendix C: Parameter Glossary

VGSâ, VDSâ, VBS Gate-source, drain-source and bulk-source MOS transistor voltages

COX MOS gate-oxide capacitance per unit area VDD Supply voltage VCM Common-mode voltage IB, Ibias Bias current RL, CL Load resistance and load capacitance CT Circuit total capacitance Gm Differential transconductance of a system τ Time constant Appendix D: Process Parameters

This appendix summarizes the most important parameters associated to both tech- nologies, CMOS and SiGe BiCMOS, considered in this work. TableÂD.1 reports the parameters related to the 0.35Âμm, P-substrate, N-well, 4-metal, 2-poly, Aus- tria Microsystems (AMS); whereas TableÂD.2 reports those related to SGB25V, the 0.25µm CMOS core, SiGe:C BiCMOS with High-Voltage Devices, 5-metal, IHP- microelectronics.

Table D.1⁠Technology: AMS 0.35Âμm CMOS P-Substrate, N-Well, 4-Metal, 2-Poly Parameter N-Transistor P-Transistor Units 2 μCOX 170 58 μA/V VTHo (10/0.35) 0.5 −â0.65 V tOX 7.58 7.75 nm 2 μO 370 126 cm /(Vs) θ 0.264 0.258 1/V dL 0.06 0.04 μm dW 0.05 0.05 μm γ 0.58 0.40 V1/2 λ 0.044 0.178 1/V 17 17 –3 NSUB 2.12â×â10 1.01â×â10 cm –3 −3 2 COX 4.54â×â10 4.54â×â10 F/m –3 –3 2 CJ 0.94â×â10 1.36â×â10 F/m –9 –9 CJW 0.25â×â10 0.32â×â10 F/m –3 −3 2 CPOX 0.86â×â10 0.86â×â10 F/m

ρSH 1200 1200 Ω/Sq 2 CPoly 1.1 fF/µm

J. P. Alegre Pérez et al., Automatic Gain Control, Analog Circuits and Signal Processing, 131 DOI 10.1007/978-1-4614-0167-4, ©ÂSpringer Science+Business Media, LLC 2011 132 Appendix D: Process Parameters

Table D.2⁠Technology: IHP CMOS Section 0.25Âμm SiGe:C BiCMOS Parameter N-Transistor P-Transistor Units with High-Voltage Devices, 5-metal VTH 0.6 −â0.56 V IDSAT 540 −â230 μA/μm Ioff 3 −â3 pA/μm Bipolar Section Parameter Standard Units 2 AE 0.42â×â0.84 µm

Peak fmax 90 GHz Peak fT 45 GHz BVCE0 4.0 V BVCB0 >â15 V VA >â80 V ß 190 Passives MIM Capacitor 1 fF/µm2 N+ Poly Resistor 210 Ω/sq P+ Poly Resistor 280 Ω/sq High Poly Resistor 1600 Ω/sq Index

A Exponential AGC, 23 active VGA, 33 exponential converter, 29, 30, 36, 44, 80 AGC, 1, 3–10, 13–16, 18–27, 87, 88, 91–99, 101–103, 106, 108–114 F AGC model, 15, 23 feedback AGC, 6, 8, 9, 13, 15, 16, 19, 20, 25, AGC stability, 19 27 analog AGC, 5 feedback loop, 31, 33, 40, 41, 45, 47, 48, 51, analog control, 79, 80 52, 78, 80 attack-time, 55, 59, 67 feedforward AGC, 8, 9, 13, 20, 21, 25, 27, 94 Feedforward AGC, 101, 103, 105, 107, 109, B 111 balanced signals, 3 feedforward loop, 78, 80 Bluetooth, 1, 2, 4, 6, 9, 87, 112 folded cascode OTA, 57

C G charge pump, 102, 107, 108 gm-boost, 33, 88 closed-loop AGC, 87 CMFF, 44, 47, 48, 103 H CMOS, 1–3, 8 high speed comparator, 103 common-mode control, 47 Comparator bank, 35, 79, 88, 90, 91 I compression ratio, 13, 102 IEEE 802.11a, 6, 87, 93, 94, 112 control voltage, 13, 14, 16–20, 96–99, 102, IF strip, 6 108 Inverter based comparator, 105, 106 Control voltage, 98, 100 conventional AGC, 94, 102 L latch comparator, 105 D leakage current, 54, 68 degenerative resistor, 32 linear AGC, 22 Digital AGC, 5, 87, 101 log-amplifier, 98 digital control, 44, 69, 82 logarithmic amplifier, 81 direct conversion, 94, 112 divider, 81, 82 droop, 54, 55, 61 M multiplier, 30, 36–38, 52, 81 E envelope detector, 54–57, 61, 62, 64, 65, O 67–71, 74–76, 132 OFDM, 1, 6, 7, 93, 99, 101 exp-amplifier, 98 open-loop AGC, 94

J. P. Alegre Pérez et al., Automatic Gain Control, Analog Circuits and Signal Processing, 133 DOI 10.1007/978-1-4614-0167-4, ©ÂSpringer Science+Business Media, LLC 2011 134 Index

P T peak detector, 87, 88, 90, 91, 93, 96–103, telescopic OTA, 72, 73 106–108 time constant, 13, 17–20, 24, 59, 63, 64, 75, Peak detector, 68, 90, 107 76, 102 peak holder, 61, 62, 72, 73 PGA, 30, 31, 34–36, 50, 67, 79, 88, 89, 91, V 92, 103 VGA, 29–38, 40–45, 47–52, 78–82, 96, 100, preamplifier, 88 102, 103, 106–110 pseudo-logarithmic peak detector, 112 W R wireless system, 1 Receivers, 1 WLAN, 1–3, 6, 8, 9, 87, 93, 94, 112 rectifier, 57–59, 62, 69 release-time, 55, 59, 61, 64, 67, 70 resistor bank, 35 ripple, 55, 59, 61, 63–65, 74–76, 78

S settling-time, 29, 54, 55, 59, 61, 67, 70, 87, 92, 96, 99, 101, 102, 108, 113 SiGe BiCMOS, 3, 8 Simulink, 21–26