TESTING SET-UP FOR DIGITAL PART OF THE POWER- METER IC

Similar documents
The Design of MCU's Communication Interface

Digital Electronics 27. Digital System Design using PLDs

Implementation of Control Logic in the Scoreboard of Tennis

D Demonstration of disturbance recording functions for PQ monitoring

Dual Port SRAM Based Microcontroller Chip Test Report

ADSP-2100A DSP microprocessor with off-chip Harvard architecture. ADSP-2101 DSP microcomputer with on-chip program and data memory

Overview of Microcontroller and Embedded Systems

JTAG TAP CONTROLLER PROGRAMMING USING FPGA BOARD

Altera FLEX 8000 Block Diagram

OPERATIONAL UP TO. 300 c. Microcontrollers Memories Logic

Design and Synthesis for Test

University of Alexandria Faculty of Engineering Division of Communications & Electronics

PIC Serial Peripheral Interface (SPI) to Digital Pot

IC Testing and Development in Semiconductor Area

INTERCONNECT TESTING WITH BOUNDARY SCAN

System Testability Using Standard Logic

THE MICROCOMPUTER SYSTEM CHAPTER - 2

A Behavioral Test Strategy For Board Level Systems

Development and research of different architectures of I 2 C bus controller. E. Vasiliev, MIET

Section 6. Memory Components Chapter 5.7, 5.8 Physical Implementations Chapter 7 Programmable Processors Chapter 8

A Research Paper on Designing a TAP(Test Access Port)

Evaluation of FPGA Resources for Built-In Self-Test of Programmable Logic Blocks

Basic FPGA Architectures. Actel FPGAs. PLD Technologies: Antifuse. 3 Digital Systems Implementation Programmable Logic Devices

Figure 1.1: Some embedded device. In this course we shall learn microcontroller and FPGA based embedded system.

Vertex Detector Electronics: ODE to ECS Interface

Sencer Yeralan and Helen Emery Gainesville, Florida January 2000

STPM32, STPM33, STPM34 Smart Metering ICs. Taking care of every milliwatt

Expanding IEEE Std Boundary-Scan Architecture Beyond Manufacturing Test of Printed Circuit Board Assembly

By choosing to view this document, you agree to all provisions of the copyright laws protecting it. (Go to next page to view the paper.

ni.com High-Speed Digital I/O

Chapter 13 Programmable Logic Device Architectures

The Boundary - Scan Handbook

ENG04057 Teste de Sistema Integrados. Prof. Eric Ericson Fabris (Marcelo Lubaszewski)

Introduction ADSP-2100 FAMILY OF PROCESSORS

A PRACTICAL GUIDE TO COMBINING ICT & BOUNDARY SCAN TESTING

8. Migrating Stratix II Device Resources to HardCopy II Devices

Project Plan of Simultaneous Co-Test of high performance DAC ADC Pairs

1. Attempt any three of the following: 15

Actel s SX Family of FPGAs: A New Architecture for High-Performance Designs

The data acquisition components, and their relationship to each other, are shown below.

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text

ispxpld TM 5000MX Family White Paper

Lecture 2 VLSI Testing Process and Equipment

XEN1210 Magnetic Sensor

EE434 ASIC & Digital Systems Testing

k -bit address bus n-bit data bus Control lines ( R W, MFC, etc.)

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices,

Enabling Intelligent Digital Power IC Solutions with Anti-Fuse-Based 1T-OTP

myproject - P PAR Detail

Implementation of High Speed Distributed Data Acquisition System

A Low Power DDR SDRAM Controller Design P.Anup, R.Ramana Reddy

Smart Power Flow Monitoring and Control

In-Circuit Functional Test ATE Tools

Readout Systems. Liquid Argon TPC Analog multiplexed ASICs SiPM arrays. CAEN 2016 / 2017 Product Catalog

VHDL-MODELING OF A GAS LASER S GAS DISCHARGE CIRCUIT Nataliya Golian, Vera Golian, Olga Kalynychenko

Keysight Technologies Expanding IEEE Std Boundary-Scan Architecture Beyond Manufacturing Test of PCBA

Power infrastructure monitoring system on Embedded Web

UNIT V (PROGRAMMABLE LOGIC DEVICES)

l Some materials from various sources! Soma 1! l Apply a signal, measure output, compare l 32-bit adder test example:!

Single Event Latchup Power Switch Cell Characterisation

Section I. Cyclone II Device Family Data Sheet

MICROCONTROLLER AND PLC LAB-436 SEMESTER-5

OUTLINE Introduction Power Components Dynamic Power Optimization Conclusions

SigmaRAM Echo Clocks

Device for the Remote Measurement of Meteorological Data Based on Arduino Platform

FPGA design with National Instuments

Chapter 9. Design for Testability

Data Acquisition Using INS8048

Agenda. Programming FPGAs Why Are They Useful? NI FPGA Hardware Common Applications for FPGAs How to Learn More

Leso Martin, Musil Tomáš

Scheme G. Sample Test Paper-I

Embedded Quality for Test. Yervant Zorian LogicVision, Inc.

High Speed Data Acquisition System with Ethernet Interface

CompuScope Ultra-fast waveform digitizer card for PCI bus. APPLICATIONS. We offer the widest range of

SSoCC'01 4/3/01. Specific BIST Architectures. Gert Jervan Embedded Systems Laboratory (ESLAB) Linköping University

Module 1. Introduction. Version 2 EE IIT, Kharagpur 1

Very Large Scale Integration (VLSI)

FPGA-Based derivative module for bioimpedance signal

ZPD Test Plan 1. 3 April 2003 S. Bailey, G. Brandenburg, N. Felt, M. Morii, J. Oliver, E. Won For the BABAR DCT Upgrade Final Design Review

Introduction Testing analog integrated circuits including A/D and D/A converters, requires a special digital interface to a main controller. The digit

ENVIRONMENTAL DATA ACQUISITION BASED ON 1-WIRE INTERFACE

Nanometer technologies enable higher-frequency designs

! Program logic functions, interconnect using SRAM. ! Advantages: ! Re-programmable; ! dynamically reconfigurable; ! uses standard processes.

IMPLEMENTATION OF USER-DEFINED VOLTAGE TRANSFER FUNCTIONS IN FPAA

Chapter 2. Cyclone II Architecture

INTRODUCTION. icegate

Built-In Self-Test for Programmable I/O Buffers in FPGAs and SoCs

High Performance Mixed-Signal Solutions from Aeroflex

INTRODUCTION TO FPGA ARCHITECTURE

DaqBoard/1000. Series 16-Bit, 200-kHz PCI Data Acquisition Boards

Novel Implementation of Low Power Test Patterns for In Situ Test

Section I. Cyclone II Device Family Data Sheet

Digital Integrated Circuits

Hardware Resources in Digital Systems Teaching

DSP240-LPI Inverter Controller Card. Technical Brief

A MOSIS CMOS 4-bit, 8-sample Fast Fourier Transform Chip Set

Chapter 8 Memory Basics

The Embedded computing platform. Four-cycle handshake. Bus protocol. Typical bus signals. Four-cycle example. CPU bus.

INTRODUCTION TO FIELD PROGRAMMABLE GATE ARRAYS (FPGAS)

Debugging of FPGA based Prototypes - A Case Study

Transcription:

TESTING SET-UP FOR DIGITAL PART OF THE POWER- METER IC Borisav Jovanović, Miljana Sokolović, Milan Savić, Milun Jevtić, Predrag Petković Laboratory for Electronic Design Automation, Faculty of Electronic Engineering Niš, Aleksandra Medvedeva 14, 18000 Niš, Serbia and Montenegro, +381 18 529 321, e-mail: borko@venus.elfak.ni.ac.yu Keywords: Testing, DSP, DFT, DFD The testing problem in electronic circuit design does not include just DFT techniques on chip. In the laboratory environment it is also important to provide an efficient and inexpensive test set-up which does not require large industry testing equipment. This paper presents such a set-up and testing procedure for digital part of the mixed-signal ASIC dedicated for power-metering. The testing procedure consists of 2 levels: one during the normal operating mode and the second dedicated for particular testing of each arithmetic. Control signals as well as the acquisition are performed through NI-DAQ PC-DIO-96 PnP card. All IC samples passed tests and are currently given for further industry implementation. 1. INTRODUCTION The successful development of integrated systems on chip depends not only on inventing and implementing new circuits, but also on the testability of the prototypes. Every new chip needs a test set-up capable to provide safe power supply, to test its input and output interconnections, and to check the complete functionality. To fulfill all specified requirements the set-up needs particular hardware and software. Besides biasing, the hardware part has to provide stimulation of every input port and monitoring of the response in real time. Software part has to offer complex digital and analog patterns and appropriate testing algorithm that manages interface between the test equipment and the device under test. If one considers mixed signal chip he, obviously, must support a large number of signals. The signal flow is controlled by a certain protocol. Usually, the test facility has both manual and automated control and modularity for customizing the test set-up for a variety of applications [1]. On the other hand, it is also important that the prototype testing is not far costlier than the prototypes itself. This is particularly arded to laboratory measurements and test set-ups. In this case avoiding the use of expensive and huge industry testers is very desirable or even obligatory. This paper presents one application specific test set-up solution dedicated to the digital part of the power-meter IC [2]. It is developed according to corresponding Design For Testability (DFT) and Design For Diagnostics (DFD) techniques already incorporated into the digital part of the chip. The paper is organized as follows. The second part gives a short description of functions and s built in the digital part of the chip. Specific DFT and DFD

techniques that enable test set-up developing, as well as the testing itself will be explained. The third section explains hardware of the test set-up while the fourth chapter describes testing procedures. A short overview of the protocol that enabled efficient data acquisition will also be given. In the last chapter some advantages of the used test set-up will be listed. 2. DFT AND DFD TECHNIQUES EMBEDDED IN DIGITAL PART OF THE POWER-METER IC Architecture of the digital part of the chip is shown in Figure 1. It consists of two Decimation filters (for current and voltage channel), a Hilbert transformer, dedicated DSP part containing arithmetic s and a control unit, communication, SRAM, and testing logic. It operates at f c =4.194MHz. Decimation filters reduce sampling rate from f s =f c /8 to f s /1024 and increase the data resolution from one bit up to 24 bits in the voltage and from two bits up to 24 bits in the current channel. The DSP calculates: current and voltage RMS values for the current and the voltage channel, power, energy and frequency of the input analog signal. The communication manages I/O data exchange between ASIC and adjacent circuitry via two lines and in compliance to a special protocol. According to the mixed-signal structure of the prototypes it was necessary to provide separate testing of analog and digital part. Moreover, that approach was mandatory due to the risk that analog part could not work. So, three bidirectional ports were left during design: one as digital I/O port for the voltage and two for the current channel. Analog part ADC current channel voltage channel Sinc 1 (I) Sinc 1 (V) Filters Sinc 2 (I) Hilbert transformer Sinc 2 (V) FIR 1 (I) FIR 1 (V) FIR 2 (I) FIR 2 (V) DSP Control logic Communication Frequency measurement RAM Arithmetics Testing logic Fig. 1. Architecture of the digital part of the power-meter IC Embedded DFT and DFD techniques improve testing and diagnostic capabilities of the chip. The realization of this concept requires relatively simple hardware that consists of: comparators, counters, data isters (which are also used in the system logic) and an additional status ister which is a part of the ister bank of the chip

internal memory. This is shown in Figure 2 [3]. Generally, the aim of the test is to determine whether the under test functions properly. CSP i(t) v(t) v'(t) ister bank bus controller counter counter Fig. 2. Embedded DFT and DFD techniques of the digital part of the power-meter IC s t a t u s The proposed testing approach assumes two main testing levels. One takes place during the normal operating mode, while the second one occurs throughout the special test mode. The chip switches to the test mode under special request of the user. During testing in the normal operating mode, each keeps operands data in appropriate input isters. After processing, the obtained output, stored in the output ister, is compared with the expected one. If the results match, the appropriate bit (corresponding to the under test) in status ister keeps flag 0. However, two consecutively istered malfunctioning sets the bit to 1. Once written 1 in a certain bit position cannot be overwritten with another value until the Status ister is read. This testing cycle repeats during normal operation mode in order to indicate the incorrect work of the DSP chain. Global testing cycle replicates the same procedure in order to enable access to each operation, operands and result. During the test mode detailed testing is enabled. All testing procedures will be explained in the forth section in detail. 3. TEST SET-UP FOR DIGITAL PART OF THE POWER-METER IC The test set-up for the digital part of the power-meter IC is shown in Figure 3 [4]. Control signals are generated in PC and through NI-DAQ PC-DIO-96 PnP acquisition card loaded into chip [5]. This interface was also used for collecting results from IC stored within an internal RAM. During the normal operating mode DSP calculates all necessary power line signal parameters, once in 1s. Therefore, the minimal digital input test sequence needed to check DSP must contain data corresponding to 1s (50 periods of sinewave analog signals, presuming 50Hz power line). ADC gives one-bit signal on the voltage channel and two-bit signal on the current channel after every rising edge of 512kHz clock. Consequently, one needs 3x512kb test vectors in order to provide required digital input signals.

During direct feeding the digital part with sequences generated by PC using the NI-DAQ card, a gap between the synchronous communication provided by the chip and an asynchronous communication provided by the acquisition card, was observed. Thus, it was necessary to store the test pattern in the additional EPROM. PC output file input file NI-DAQ PC-DIO -96/PnP level shifter 5-3.3V 3.3-5V EPROM Fig. 3. Set-up for DSP testing test pattern address Power meter IC clk/8 address counter The additional EPROM has a capacity of 512k x 8 bits. This memory together with some logic s emulates the analog part of the chip. Test patterns for the current and the voltage signal occupy only 3 bits in each of 512k address locations available in the memory. So, the unoccupied memory space was used for storing the digital data of the phase shifted voltage signal. Available phase shifts are: 15 0, 30 0, 45 0, 60 0 and 90 0. The usage of the memory requires also the use of the additional counter and logic to generate appropriate memory addresses. The clock signal for this counter is generated in the IC. The acquisition card and the power-meter IC have different operating logic levels. In order to adjust them it was essential to use some level shifter circuits that can convert levels in both directions. Here a standard 74HC and 74HCT chips were used. Test patterns are obtained in the verification phase of the chip design. They are already used in simulations of the chip s digital part. The circuitry described above was designed using program DXP-Protel and realized in a discrete manner on a separate printed circuit board. The view of the PCB is Fig. 4. The view of the testing board shown in Figure 4. Considering the realized testing board, the desired communication protocol which was implemented in the chip and the available acquisition card, some special software solution had to be developed. These software solutions enable communication between the IC, that is, results written in the chip s internal memory locations, and a PC via the NI-DAQ acquisition card. All software solutions were written in C programming language.

4. TESTING PROCEDURES AND LEVELS OF TESTING Testing procedure of the digital part consists of 2 levels. One is testing during the normal operating mode and the other is a detail testing of each. This also corresponds to two operating modes of the chip: normal and test mode. In the normal operating mode the testing of entire logic can be performed (correct functioning of the analog part of the chip is emulated using the external memory ), as well as the self-testing (checking if all arithmetic calculate correctly). The self testing procedure is the simplest one. It does not require test pattern loading into the chip. This procedure is performed every second during normal operation. The purpose of this procedure is to appoint if any of arithmetic s in the chip works incorrectly. Operands and the correct results for this procedure are already stored in the ROM cell of the chip. The embedded logic within the chip compare expected results with the obtained one and marks a flag at the appropriate bit position of the Status ister if a consecutive malfunctioning of an is detected. This Status ister, as mentioned before, is a part of the internal memory ister bank. If any of 9 arithmetic s does not function properly, it can be detected at the error pin of the chip, connected to an external led diode, in the case that the communication with a chip is not established, or, on the contrary, by reading the content of the status ister over the developed interface. This is also arded to as on-line testing since the testing sequences are incorporated in controller. In this case, no digital inputs are required. The testing at this level means observing the led diode connected to the error pin of the chip, or viewing the content of the status ister after storing it in a PC. Software used for this purpose, controls different parameters of the DSP, such as gain correction, offsets, phase shifts and so on. Besides, it is feasible to drive digital inputs with signals corresponding to different shapes of analog signals. All these signals can be generated in PC, and then loaded into EPROM. The next testing level stands for checking the entire DSP logic as well as the controller, especially if the previous test fails. Its purpose is to distinct if the defect occurs in the analog or the digital part. For this purpose the described testing board is inevitable. The EPROM keeps test patterns that emulate one second of correct functioning of the analog part. Therefore, input signals come from the memory instead from the analog part. Three additional pins intentionally left for testing allow this. The test pattern stored in the memory contains digital sequence input signal that corresponds to one second of ular operating. The testing implies the reading RAM contents through a serial port. Available data are: RMS values for current and voltage, power factor (cos φ), frequency, active, reactive and apparent power, energy, the status ister and the state of the controller. Data collected from the developed testing board are memorized as a file into PC through the corresponding NI-DAQ interface (Figure 3). Finally, these results are compared with the expected, obtained by simulation.

The objective of the last testing level is to segate particular arithmetic responsible for incorrect DSP action. The chip has to operate in the test mode. Time windows in the controller states are left and start/stop options are introduced to allow direct access to operand values for particular arithmetic s. Actually the user has permission to write desired values in the adequate memory locations, as well as to read results from the memory. Test patterns now may come directly from the PC, and through the acquisition card but not from the EPROM, because timing and synchronization problems do not exist. This testing level is capable not only to detect a failure but also to help in diagnosis using fault analysis techniques [6]. 5. CONCLUSION One specific application test set-up was presented in this paper. It implied both hardware and software development. This approach enables different levels of testing allowing variations of input signal: different amplitudes, phase shifts, frequencies, etc. The test logic implemented in the chip contains both DFT and DFD techniques and significantly simplifies the testing. It offers both functional and defect oriented testing. The advantage of this solution is very low cost and simple manipulation. All IC samples of the power-meter IC passed tests and are currently given for further industry implementation. 6. REFERENCES [1] Burns M., Roberts G. W., An Introduction to Mixed-Signal IC Test and Measurement, Oxford University Press, New York, 2001. [2] IMPEG LEDA08 Release Notes, Laboratory for Electronic Design Automation, Faculty of Electronic Engineering, Niš, 2004. [3] Sokolović M., Petković P., DSP Chain Testing in an Integrated Power-Meter, Electronics, ET03, Sozopol, Bulgaria, September 2003. [4] Sokolović M., Petković P., Development of the Testing System for the Integrated Power Consumption Measurement System, Proc. of XLVIII Conference of ETRAN, Čačak, Serbia and Montenegro, June 2004. (in Serbian) [5] NI-DAQ for PC Compatibles Version 6.1, Release Notes, National Instruments, Part Number 321647C-01, April 1998. [6] Petković P., Milovanović D., and Litovski V., Symbolic Fault Modeling of CMOS Combinational Circuits, Microelectron. Reliab. Vol. 37, No. 1., pp. 137-157, 1997.