Digital Signal Processing for an Integrated Power-Meter

Similar documents
Low power digital design in Integrated Power Meter IC

The Decomposition of DSP's Control Logic Block

Mixed Signal Virtual Components COLINE, a case study

Digital Integrated CircuitDesign

Course Outcome of M.Tech (VLSI Design)

Multi-functional Energy Metering IC

VLSI IMPLEMENTATION OF MODIFIED DISTRIBUTED ARITHMETIC BASED LOW POWER AND HIGH PERFORMANCE DIGITAL FIR FILTER Dr. S.Satheeskumaran 1 K.

DIGITAL SIGNAL PROCESSING WITH VHDL

CHAPTER 4 FIELD PROGRAMMABLE GATE ARRAY IMPLEMENTATION OF FIVE LEVEL CASCADED MULTILEVEL INVERTER

[Krishna, 2(9): September, 2013] ISSN: Impact Factor: INTERNATIONAL JOURNAL OF ENGINEERING SCIENCES & RESEARCH TECHNOLOGY

Digital Logic, Algorithms, and Functions for the CEBAF Upgrade LLRF System Hai Dong, Curt Hovater, John Musson, and Tomasz Plawski

EE 434 ASIC and Digital Systems. Prof. Dae Hyun Kim School of Electrical Engineering and Computer Science Washington State University.

Design of Multiplier Less 32 Tap FIR Filter using VHDL

Digital Systems Design

Lecture 1. Tinoosh Mohsenin

Disseny físic. Disseny en Standard Cells. Enric Pastor Rosa M. Badia Ramon Canal DM Tardor DM, Tardor

FPGA Implementation of Digital Modulation Techniques BPSK and QPSK using HDL Verilog

APPROACHES FOR ANALOG FRONT END DESIGN IN ELECTRIC POWER SYSTEM PARAMETERS MEASURING

An Efficent Real Time Analysis of Carry Select Adder

CHAPTER 4 ANALYSIS OF LOW POWER, AREA EFFICIENT AND HIGH SPEED MULTIPLIER TOPOLOGIES

JDT LOW POWER FIR FILTER ARCHITECTURE USING ACCUMULATOR BASED RADIX-2 MULTIPLIER

Option 1: A programmable Digital (FIR) Filter

Design and Implementation of High Speed Carry Select Adder Korrapatti Mohammed Ghouse 1 K.Bala. 2

A New High Speed Low Power Performance of 8- Bit Parallel Multiplier-Accumulator Using Modified Radix-2 Booth Encoded Algorithm

UNIT-III POWER ESTIMATION AND ANALYSIS

Design and Implementation of High Speed Carry Select Adder

Generation of Digital System Test Patterns Based on VHDL Simulations

Performance Analysis of a 64-bit signed Multiplier with a Carry Select Adder Using VHDL

A FFT/IFFT Soft IP Generator for OFDM Communication System

CHAPTER 1 INTRODUCTION

Single Chip FPGA Based Realization of Arbitrary Waveform Generator using Rademacher and Walsh Functions

AN EFFICIENT APPROACH TO MINIMIZE POWER AND AREA IN CARRY SELECT ADDER USING BINARY TO EXCESS ONE CONVERTER

INTERNATIONAL JOURNAL OF ELECTRONICS AND COMMUNICATION ENGINEERING & TECHNOLOGY (IJECET) STUDY ON COMPARISON OF VARIOUS MULTIPLIERS

CHAPTER 5 NOVEL CARRIER FUNCTION FOR FUNDAMENTAL FORTIFICATION IN VSI

Design and Implementation of Complex Multiplier Using Compressors

DYNAMICALLY RECONFIGURABLE PWM CONTROLLER FOR THREE PHASE VOLTAGE SOURCE INVERTERS. In this Chapter the SPWM and SVPWM controllers are designed and

Adder (electronics) - Wikipedia, the free encyclopedia

A Survey on Power Reduction Techniques in FIR Filter

Channelization and Frequency Tuning using FPGA for UMTS Baseband Application

Digital Controller Chip Set for Isolated DC Power Supplies

FOR HIGH SPEED LOW POWER APPLICATIONS USING RADIX-4 MODIFIED BOOTH ENCODER

Pardeep Kumar, Susmita Mishra, Amrita Singh

A New network multiplier using modified high order encoder and optimized hybrid adder in CMOS technology

ENHANCING SPEED AND REDUCING POWER OF SHIFT AND ADD MULTIPLIER

FIR Filter Design on Chip Using VHDL

VLSI Physical Design Prof. Indranil Sengupta Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur

A Survey on A High Performance Approximate Adder And Two High Performance Approximate Multipliers

CHAPTER III THE FPGA IMPLEMENTATION OF PULSE WIDTH MODULATION

EECS 427 Lecture 21: Design for Test (DFT) Reminders

EE 434 ASIC & Digital Systems

Technology Timeline. Transistors ICs (General) SRAMs & DRAMs Microprocessors SPLDs CPLDs ASICs. FPGAs. The Design Warrior s Guide to.

A Review of Phase Locked Loop Design Using VLSI Technology for Wireless Communication.

High speed all digital phase locked loop (DPLL) using pipelined carrier synthesis techniques

An Optimized Implementation of CSLA and CLLA for 32-bit Unsigned Multiplier Using Verilog

IJCSIET--International Journal of Computer Science information and Engg., Technologies ISSN

Implementation of FPGA based Design for Digital Signal Processing

CMOS VLSI IC Design. A decent understanding of all tasks required to design and fabricate a chip takes years of experience

Study on Digital Multiplier Architecture Using Square Law and Divide-Conquer Method

MEDIUM SPEED ANALOG-DIGITAL CONVERTERS

DESIGN FOR LOW-POWER USING MULTI-PHASE AND MULTI- FREQUENCY CLOCKING

REALIZATION OF FPGA BASED Q-FORMAT ARITHMETIC LOGIC UNIT FOR POWER ELECTRONIC CONVERTER APPLICATIONS

SPIRO SOLUTIONS PVT LTD

Advanced FPGA Design. Tinoosh Mohsenin CMPE 491/691 Spring 2012

Implementing Multipliers with Actel FPGAs

Mixed-Signal Simulation of Digitally Controlled Switching Converters

Mahendra Engineering College, Namakkal, Tamilnadu, India.

Area Power and Delay Efficient Carry Select Adder (CSLA) Using Bit Excess Technique

An Efficient Method for Implementation of Convolution

Construction. sunil kumar Electromechanical energy meters. Parts List

Techniques for Implementing Multipliers in Stratix, Stratix GX & Cyclone Devices

Appendix B. Design Implementation Description For The Digital Frequency Demodulator

Keywords: CIC Filter, Field Programmable Gate Array (FPGA), Decimator, Interpolator, Modelsim and Chipscope.

CHAPTER 4 HARDWARE DEVELOPMENT OF STATCOM

Section 1. Fundamentals of DDS Technology

VLSI Chip Design Project TSEK06

ECE 124 Digital Circuits and Systems Winter 2011 Introduction Calendar Description:

Keywords: Adaptive filtering, LMS algorithm, Noise cancellation, VHDL Design, Signal to noise ratio (SNR), Convergence Speed.

POWER EFFICIENT DESIGN OF COUNTER ON.12 MICRON TECHNOLOGY

Keyword ( FIR filter, program counter, memory controller, memory modules SRAM & ROM, multiplier, accumulator and stack pointer )

Using Soft Multipliers with Stratix & Stratix GX

22. VLSI in Communications

HIGH PERFORMANCE BAUGH WOOLEY MULTIPLIER USING CARRY SKIP ADDER STRUCTURE

The Application of System Generator in Digital Quadrature Direct Up-Conversion

VLSI Implementation of Digital Down Converter (DDC)

Design and Analysis of RNS Based FIR Filter Using Verilog Language

Computer Architecture and Organization:

Design and FPGA Implementation of an Adaptive Demodulator. Design and FPGA Implementation of an Adaptive Demodulator

An Optimized Wallace Tree Multiplier using Parallel Prefix Han-Carlson Adder for DSP Processors

Design of Bandpass Delta-Sigma Modulators: Avoiding Common Mistakes

Electronic Design Automation at Transistor Level by Ricardo Reis. Preamble

Design of Efficient 64 Bit Mac Unit Using Vedic Multiplier

54. IWK Internationales Wissenschaftliches Kolloquium International Scientific Colloquium

Lecture 3, Handouts Page 1. Introduction. EECE 353: Digital Systems Design Lecture 3: Digital Design Flows, Simulation Techniques.

Low Power R4SDC Pipelined FFT Processor Architecture

International Journal of Scientific & Engineering Research Volume 3, Issue 12, December ISSN

EECS150 - Digital Design Lecture 28 Course Wrap Up. Recap 1

Realization and characterization of a smart meter for smart grid application

DIGITAL FILTERING OF MULTIPLE ANALOG CHANNELS

REAL TIME DIGITAL SIGNAL PROCESSING. Introduction

On Built-In Self-Test for Adders

Transcription:

49. Internationales Wissenschaftliches Kolloquium Technische Universität Ilmenau 27.-30. September 2004 Borisav Jovanović / Milunka Damnjanović / Predrag Petković Digital Signal Processing for an Integrated Power-Meter 1 ITRODUCTIO owadays, complete hardware and software multi-processor systems are integrated into a single silicon circuit called System-on-Chip. Architectural design is not only about choosing and assembling components together to create a coherent system. It s also making sure that the designed architecture is the right one, capable of successful delivery the system functionality while respecting other constraints such as timing constraints, cost, power consumption, etc. Digital signal processing module (DSP) presented in this paper is a part of an integrated power meter, performing several functions: three-phase energy consumption measuring, providing informations about frequency, current and voltage levels, power and energy consumption. It is a mixed signal system that consists of analog and digital signal processing blocks (Fig. 1). As can be seen in Fig. 1, analog voltage and current signals are processed within appropriate sigma-delta modulators. Then, decimation of sampled signals is performed through the Figure 1. Main blocks in energy meter IC appropriate digital filters. Hilbert digital filter takes output data from voltage decimation filter on it s input, and produces 90 degrees phaseshift signal on it s output. Data rate of current, voltage and phase-shifted voltage digital values, that enter DSP part, is exactly 4.096 khz. Communication between DSP and external micro controller is done through a serial two-wire interface and allows the user to calibrate various parameters of a meter, including gain, offset and phase errors (in the initialization mode), and read the measured results (in normal operation and testing mode). All registers in the memory are, also, available through the two wire serial interface. DSP is based on controller/datapath partitioning and offers advantages in high-speed operation, low power consumption and significant savings in chip area. Full design procedure from high level system design to synthesis phase, performed by Cadence design system tools, is presented here. The chip is implemented in Alcatel CMOS 0.35µ technology.

2 DSP-MODULE FUCTIO Based on instantaneous values of current and voltage, DSP performes effective value of current (Ieff), effective value of voltage (Veff), active power (P), reactive power (Q), apparent power (S), and power-factor cos(φ) in every second. It determines the instantaneous value of the power-network frequency with accuracy of 0.01 Hz. Based on calculated values of P and Q, Whr (Wat-hour) pulses are generated for every Whr of the received active and reactive energy. That pulses increment the content of the related registers keeping the values of positive and negative active energy, and positive and negative reactive energy. A short survey of used algorithms would be as follows. Instantaneous value of current as function of time can be represented in the form: i( t) = 2Ieff cos(2π ft + ϕ) After the discretisation in time, it becomes: f i( nt ) = 2Ieff cos(2π n + ϕ) f sempl where f = 50Hz, f sempl = 4096 Hz. Effective value of current, Ieff, is calculated once per second according to the expression: (1) (2) 2 i( nt ) n= 1 Ieff = (3) where =4096. Relative error of the Ieff-calculation is the function of power-network frequency. Similar expression, like for Ieff, is used for Veff calculation. The same stands for relative error. The relation S 2 = P 2 + Q 2 (4) between apparent power (S), active power (P) and reactive power (Q), suggest us that it is enough to calculate two of three values and then use (4) to find the third. If the instantaneous values of current and voltage are as follows, i( t) = 2Ieff cos(2π ft + ϕ1) v( t) = 2Veff cos(2π ft + ϕ2) the instantaneous power is (5) (6) p ( t) = i( t)* v( t) (7) After the discretization of the instantaneous power, the active power is calculated according to: p( nt ) n= 1 P = (8) Possible sources of error in active power calculation are the phase difference between voltage and current values and the fact that power-network frequency is slightly changed around the nominal (50Hz), so there is not an integer number of voltage half-periods in a second. Apparent power and power-factor Cos(φ) are calculated according to (9) and (10):

S = Ieff * Veff (9) cos( ϕ) = P / S (10) Error eliminating is necessary, so after the multipication of the current and voltage values, the values i 2 (t), u 2 (t), p(t) i q(t) are filtered, accumulated 4096 times per second and the achieved total is devided with 4096 every second. 3 DSP-MODULE ARCHITECTURE DSP module has four working modes: reset, initialization, normal operation and testing mode. In the normal operation mode, with the accuracy less than 0.1%, it calculates root mean square values for voltage and current, mean values for active and reactive power, apparent power, active and reactive energy, power factor and frequency. The current input dynamic range is from 10 ma RMS to 100 A RMS, and voltage is up to 300V RMS. It s base clocking frequency is 4.194 MHz. DSP consists of several blocks: controller, static single port 64x24 bit Random Access Memory, four working registers, arithmetical units for addition, subtraction, division, square-rooting, multiplication and other digital blocks. Digital blocks are divided into several main groups shown in Fig. 2. There is a single 24-bit data bus connecting working registers of DSP to memory block. The control path of DSP unit (controller) is Figure 2. DSP block diagram implemented as a finite state machine and it generates a number of control signals that determine what component can write to bus, what registers are loaded from the bus and what arithmetical operation is performed. In normal operating mode, controller performs the periodically repeated sequence that lasts exactly 1024 clock periods. It is divided into four subsequences. Each subsequence lasts exactly 256 clock periods (Fig. 3). Figure 3. Controller s subsequences The first three controller s subsequences are called R, S and T and they control the calculations made for each phase of the three-phase energy system. At the beginning of each subsequence R, 24 bit instantaneous waveform samples of current; voltage and phase-shifted voltage are transferred from Hilbert and decimation filter outputs into the memory. After that, instantaneous sample of current I is squared in multiplication unit. Multiplier takes 18-bit operands and produces 36-bit result within 18 clock periods. Then, the value I 2 is passed throught the single pole Low Pass Filter (LPF) with a cut-off frequency of 10Hz, and after that, it is accumulated into a 48-bit register AccI 2 (Fig. 4a).

(a) (b) Figure 4. (a) Data processing chain for current-square accumulation (b) Low pass filter Low pass filter helps in reducing the calculation error that could exist due to the fact that timeinterval of 1 second (that is, accumulating time for the value I 2 ) doesn t always happend to be integer number of power-line-signal half-periods. LPF data processing chain is shown in Fig. 4b, and its transfer function is: 6 Y ( z) 2 H ( z) = = (11) 1 6 X ( z) 1 z (1 2 ) Therefore, LPF is easy for implementation. Part of a DSP s hardware in which these operations are done is shown in Fig. 5. The LPF uses registers RegA and RegB and arithmetical addition and Fig. 5. Structure of DSP block 4 subtraction units. The content of 48- bit register AccI 2 (Fig. 4a) and the content of the register FiltI 2 (Fig. 4b) are stored in RAM block. The same procedure is performed and the same hardware is used for V 2. Active and reactive power accumulation is done through the same proce- dure. The only difference is in multiplication process: voltage- and current-samples values are multiplied for active power accumulation, and current-sample value is multiplied with phase-shifted voltage-sample for reactive power accumulation. The fourth subsequence of the controller, denoted E, manages the calculations that are periodically repeated every second. Based on accumulated squares of instantaneous current and voltage, and accumulated instantaneous active and reactive power during the last second, calculations are performed in order to generate voltage and current root mean square (RMS) and mean active and reactive power values.

Block 3 in Fig. 2 implements all these calculations. It s interior structure is shown in Fig. 7. It Figure 6: Data processing chain for current RMS calculation consists of two registers named RegC and RegD and arithmetical units that implement square rooting, subtraction, multiplication and division. To generate current root mean square, accumulated sum is stored into RegC and devided by 4096. ext, square rooting operation is performed over the average value of voltage square, current offset is subtracted, multiplied with gain correction and root mean square of current is obtained (Fig.6). The same procedure stands for root mean square of voltage. Mean active and reactive power calculation is similar, except there is no root calculation. Apparent power is Figure 7. Structure of DSP block 3 obtained by multiplying root mean square of current and voltage, and power factor divi-ding active and apparent power. Instantaneous values of current I, voltage V, phase-shifted voltage Vp, root mean square of current Irms, voltage Vrms, average values active Pav, reactive Qav, and apparent power S, and their offsets Ioffset, Voffset, Poffset, Qoffset are all represented by 24-bit signed two-complement values with a specific Figure 8. Data format 1 data format shown in Fig. 8. Its range is from -1 to 1 and it is normalized to some full-scale value. Full- scale value for the voltage (V, Vp, Vrms, Voffset) is 2 300V, for current (I, Irms, Ioffset) it is 2 100A, for power (Pav, Qav, S, Poffset, Qoffset) it is 2*100A*300V = 60kW. Gain corection values that should be obtained after power meter calibration (Igain, Vgain, Pgain), power Figure 9. Data format 2 factor Cos(φ) and power line frequency F are also represented by 24-bit signed two complement values in range from 2 to 2 and have the data format shown in Fig. 9. 4 DESIG PROCESS AD SIMULATIO RESULTS

To obtain the high level system simulation and verification, an algorithm had been developed and implemented in C. Extensive simulations at high level design enabled us choosing the appropriate data-width and valid ranges of algorithm s variables. ext, the task was to create an architecture well suited to a given algorithm. Techniques inherent pipelining increase throughput of the final design but they come as expense in increased gate number, more difficult implementation of external chip communication and difficult debug later in the design process. Instead, our DSP unit based on controller/datapath partitioning offers advantages in high-speed operation, low power consumption and small area for VLSI implementation. When architecture was obtained that runs the algorithm efficiently, it was translated into behavioral VHDL description. RTL descriptions were loaded into program for logical synthesis, Cadence's Build Gates that generated the netlist consisting of Alcatel CMOS035 digital library cells. After synthesis, estimated DSP area expressed in logical AD-gate units, is 10950 units. The extracted netlist was loaded back to Verilog simulator and the simulation was performed using Cadence Csim tool with same test bench as before synthesis process and the same results were obtained. Finally, Silicon Ensemble has performed floorplanning, placement and routing, as well as clock and reset trees generation for complete circuit. At the end of logical verification process, Verilog file was extracted from layout and brought back to Csim simulator where final check of the total digital part of the IC was performed. 5 COCLUSIO DSP part of power-consumption measuring IC, implemented in 0.35µm CMOS standard cell technology, isdescribed here. Based on controller/datapath partition, fast DSP with low power consumption and small area has been developed. The algorithms and circuitry are described. References: [1] Mark Zvolinski, Digital system design with VHDL, Pearson education Ltd, England. [2] Stefan Sjoholm, Lennart Lindh VHDL for designers, Prentice Hall Europe, England. [3] Cadence 2003 Documentation [4] Miljana Sokolovic, Borisav Jovanovic and Milunka Damnjanovic, Decimation Filter Design, [5] Borisav Jovanovic, Milunka Damnjanovic, Digital system for power line frequency measurement, [6] Borisav Jovanovic, Milunka Damnjanovic, Digital systems for square root computation, [7] Allen Kinast, Designing Digital Signal Processing with FPGAs, Mentor Graphics technical publications Author(s): Borisav Jovanović, Milunka Damnjanović, Predrag Petković Faculty of Electronic Engineering Aleksandar Medvedev str, o 14, P.O.B. 73 18000 iš Phone: +381 18 529208 Fax: +381 18 588399