EFFICIENT FPGA IMPLEMENTATION OF 2 ND ORDER DIGITAL CONTROLLERS USING MATLAB/SIMULINK

Similar documents
DESIGN AND IMPLEMENTATION OF TWO PHASE INTERLEAVED DC-DC BOOST CONVERTER WITH DIGITAL PID CONTROLLER

DESIGN OF INTELLIGENT PID CONTROLLER BASED ON PARTICLE SWARM OPTIMIZATION IN FPGA

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

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

CHAPTER III THE FPGA IMPLEMENTATION OF PULSE WIDTH MODULATION

An Optimized Design for Parallel MAC based on Radix-4 MBA

Design and Simulation of PID Controller using FPGA

Design of Multiplier Less 32 Tap FIR Filter using VHDL

Globally Asynchronous Locally Synchronous (GALS) Microprogrammed Parallel FIR Filter

REAL TIME IMPLEMENTATION OF FPGA BASED PULSE CODE MODULATION MULTIPLEXING

STAND ALONE CONTROLLER FOR LINEAR INTERACTING SYSTEM

FPGA Implementation of Desensitized Half Band Filters

Realization of 8x8 MIMO-OFDM design system using FPGA veritex 5

Analysis of Parallel Prefix Adders

FPGA Implementation of Wallace Tree Multiplier using CSLA / CLA

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

MULTIRATE IIR LINEAR DIGITAL FILTER DESIGN FOR POWER SYSTEM SUBSTATION

PE713 FPGA Based System Design

FPGA Implementation of Ternary Pulse Compression Sequences with Superior Merit Factors

Research Article Design of a Novel Optimized MAC Unit using Modified Fault Tolerant Vedic Multiplier

Hardware Realization of Embedded Control Algorithm on FPGA

BPSK Modulation and Demodulation Scheme on Spartan-3 FPGA

IMPLEMENTATION OF QALU BASED SPWM CONTROLLER THROUGH FPGA. This Chapter presents an implementation of area efficient SPWM

Synthesis and Simulation of Floating Point Multipliers Dr. P. N. Jain 1, Dr. A.J. Patil 2, M. Y. Thakre 3

Optimum Analysis of ALU Processor by using UT Technique

Abstract of PhD Thesis

Design and Implementation of High Speed Carry Select Adder

Design of Digital FIR Filter using Modified MAC Unit

Published by: PIONEER RESEARCH & DEVELOPMENT GROUP ( 1

Fpga Implementation of Truncated Multiplier Using Reversible Logic Gates

Design of 16-bit Heterogeneous Adder Architectures Using Different Homogeneous Adders

DIGITAL SIGNAL PROCESSING WITH VHDL

Hardware/Software Co-Simulation of BPSK Modulator and Demodulator using Xilinx System Generator

BPSK System on Spartan 3E FPGA

PV SYSTEM BASED FPGA: ANALYSIS OF POWER CONSUMPTION IN XILINX XPOWER TOOL

Hardware Implementation of Automatic Control Systems using FPGAs

Design and synthesis of FPGA for speed control of induction motor

A Novel High-Speed, Higher-Order 128 bit Adders for Digital Signal Processing Applications Using Advanced EDA Tools

Design and Simulation of FPGA Based Digital Controller for Single Phase Boost PFC Converter

Keywords Double boost DC to DC Converter, integral-proportional control, PWM, ADC, FPGA. Fig1. Double Boost DC-DC converter Model

Design and Simulation of Universal Asynchronous Receiver Transmitter on Field Programmable Gate Array Using VHDL

VLSI Implementation of Digital Down Converter (DDC)

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

Design and Estimation of delay, power and area for Parallel prefix adders

FlexWave: Development of a Wavelet Compression Unit

A COMPARISON ANALYSIS OF PWM CIRCUIT WITH ARDUINO AND FPGA

BPSK_DEMOD. Binary-PSK Demodulator Rev Key Design Features. Block Diagram. Applications. General Description. Generic Parameters

Implementation and Comparison of Low Pass FIR Filter on FPGA Using Different Techniques

THE DESIGN OF A PLC MODEM AND ITS IMPLEMENTATION USING FPGA CIRCUITS

High Speed & High Frequency based Digital Up/Down Converter for WCDMA System

DIGITAL SYSTEM DESIGN WITH VHDL AND FPGA CONTROLLER BASED PULSE WIDTH MODULATION

Implementation of Decimation Filter for Hearing Aid Application

Synthesis of Blind Adaptive Beamformer using NCMA for Smart Antenna

VLSI Implementation of Image Processing Algorithms on FPGA

Image Enhancement using Hardware co-simulation for Biomedical Applications

Digital Systems Design

Implementation of Parallel Multiplier-Accumulator using Radix- 2 Modified Booth Algorithm and SPST

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

Webpage: Volume 3, Issue V, May 2015 ISSN

Design and Implementation of Digital Butterworth IIR filter using Xilinx System Generator for noise reduction in ECG Signal

Simulation and Experimental Based Four Switch Three Phase Inverter Fed Induction Motor Drive

Comparison among Different Adders

Artificial Neural Network Engine: Parallel and Parameterized Architecture Implemented in FPGA

Fast Fourier Transform utilizing Modified 4:2 & 7:2 Compressor

The Comparative Study of FPGA based FIR Filter Design Using Optimized Convolution Method and Overlap Save Method

Evaluation of FPGA Design and Implementation of Improved Systolic Architectures for Variable Length Median Filters

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

FIR Filter Design on Chip Using VHDL

FIR_NTAP_MUX. N-Channel Multiplexed FIR Filter Rev Key Design Features. Block Diagram. Applications. Pin-out Description. Generic Parameters

Method We follow- How to Get Entry Pass in SEMICODUCTOR Industries for 2 nd year engineering students

Design And Implementation of FM0/Manchester coding for DSRC. Applications

Implementation of Huffman Decoder on Fpga

Design of 2 4 Alamouti Transceiver Using FPGA

Modified Design of High Speed Baugh Wooley Multiplier

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

A Review on Implementation of Digital Filters on FPGA

Field Programmable Gate Arrays based Design, Implementation and Delay Study of Braun s Multipliers

Hardware Implementation of BCH Error-Correcting Codes on a FPGA

QAM Receiver Reference Design V 1.0

Synthesis and Analysis of 32-Bit RSA Algorithm Using VHDL

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

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

A Low Power VLSI Design of an All Digital Phase Locked Loop

Estimation of Real Dynamic Power on Field Programmable Gate Array

Hardware Implementation of OFDM Transceiver. Authors Birangal U. M 1, Askhedkar A. R 2 1,2 MITCOE, Pune, India

Available online at ScienceDirect. Procedia Technology 25 (2016 )

Design of a High Speed FIR Filter on FPGA by Using DA-OBC Algorithm

Design and Implementation of BPSK Modulator and Demodulator using VHDL

DESIGN OF LOW POWER HIGH SPEED ERROR TOLERANT ADDERS USING FPGA

Design and Implementation of Modern Digital Controller for DC-DC Converters

Design of FIR Filter on FPGAs using IP cores

A Comparative Study on Direct form -1, Broadcast and Fine grain structure of FIR digital filter

AREA EFFICIENT DISTRIBUTED ARITHMETIC DISCRETE COSINE TRANSFORM USING MODIFIED WALLACE TREE MULTIPLIER

FPGA Implementation of Complex Multiplier Using Urdhva Tiryakbham Sutra of Vedic Mathematics

Design of Adjustable Reconfigurable Wireless Single Core

Research Article. Amiya Karmakar Ȧ,#, Deepshikha Mullick Ḃ,#,* and Amitabha Sinha Ċ. Abstract

Real-Time Testing Made Easy with Simulink Real-Time

FINITE IMPULSE RESPONSE (FIR) FILTER

From Antenna to Bits:

Design and Simulation of 16x16 Hybrid Multiplier based on Modified Booth algorithm and Wallace tree Structure

Transcription:

EFFICIENT FPGA IMPLEMENTATION OF 2 ND ORDER DIGITAL CONTROLLERS USING MATLAB/SIMULINK Vikas Gupta 1, K. Khare 2 and R. P. Singh 2 1 Department of Electronics and Telecommunication, Vidyavardhani s College of Engineering and Technology, Vasai, University of Mumbai, India 2 Department of Electronics and Communication Engineering, Maulana Azad National Institute of Technology, Bhopal, India E-Mail: profvikasgupta@rediffmail.com ABSTRACT This paper explains a method for the design and implementation of digital controller based on Field Programmable Gate Array (FPGA) device. It is more compact, power efficient and provides high speed capabilities as compared to software based PID controllers. The proposed method is based on implementation of Digital controller as digital filters using DSP architectures. The PID controller is designed using MATLAB and Simulink to generate a set of coefficients associated with the desired controller characteristics. The controller coefficients are then included in VHDL that implements the PID controller on to FPGA. MATLAB program is used to design PID controller to calculate and plot the time response of the control system. The synthesis report concludes the resource utilization of selected FPGA. Keywords: digital PID controller, FPGA, digital filter architecture, MATLAB, Simulink, Xilinx ISE, Spartan3. 1. INTRODUCTION A control system is compared of two subsystems, a plant and a controller. The plant is an entity controlled by the controller. The controller can be either analog or digital. Generally, an implementation of digital PID controller includes the use of microprocessors or microcontrollers. The memory holds the application program while the processor fetches, decodes, and executes the program instructions. This method has a disadvantage in speed of operations because the operations depend on software which has a sequence of instructions and commands which needs many machine cycles to execute. Therefore, FPGA-based digital PID controller is proposed because the operations on FPGA are hardware compatible operations. However, FPGA-based digital PID controller still needs multipliers for computation. These multipliers will decrease the speed of processing time because the multiplying stage is a consumption process which introduces propagation delay and uses large part of silicon area. These multiplications are change to Distributed Arithmetic (DA) architecture which was first proposed by Peled and Liu in 1974 [1]. Today s high-speed and high-density FPGA s provide practical design alternatives to ASIC and microprocessor-based implementations. 2. DIGITAL PID CONTROLLER One of the most powerful but complex controller mode operations combines the proportional, integral, and derivative modes with a control loop feedback mechanism widely used in industrial control system. Figure-1. Digital PID controller [2]. The proportional, integral, and derivative control actions can be brought together to create a PID controller. Figure-1 shows an example of how this can be created. As the design increases in complexity, the need for more additions or subtractions and multiplications or divisions increases. This highlights the need to develop an architecture that uses hardware proficiently and can operate within the time constraints of the design. The arithmetic operations which are to be undertaken can be designed to be either separate actions (each action requiring its own dedicated hardware) or can be shared i.e., each addition, subtraction, multiplication, or division has a single common block, as is typical in the architecture of an arithmetic and logic unit, (ALU). Thus, in order to 94

design digital PID controller we use the above architecture as the base which will improve hardware efficiency [3]. 3. PRINCIPLE OF OPERATION Consider the block diagram of digital control system as shown in Figure-2. K P, K I and K D are proportional, integral and derivative parameters, respectively of digital PID controller and T is sampling period. Figure-3 shows the direct form I structure of digital PID controller corresponding to equation (5). Figure-2. Block diagram of digital control system. The analytical equation is: P = K p e + K I edt + K D (de/dt) + P I (0) (1) Where, K P = proportional gain K D = derivative gain e = error in % of full scale range K I = integral gain P I (0) = value of integral term at t=0 Taking Laplace transform of equation (1) will result in, Also the transfer function of PID controller is Where, D(S) is transfer of PID controller. Transforming equation (3) into digital domain gives the transfer function of digital PID controller. Equation (4) can be realized to direct form structure as: Normally for digital controller b 2 = 0 and b 1 = -1 Therefore, coefficients a 0, a 1 and a 2 can be given as: (2) (3) (4) (5) Figure-3. Direct Form I structure of digital PID controller. 4. FPGA IMPLEMENTATION System Generator implements the design by considering the correct hardware platform and also takes care of the synchronization and interfacing problems [3]. A separate test bench application for hardware (FPGA) verification is also not required. The cosimulation block can be used with the same Simulink test bench apparatuses that were used to test the original System Generator model. Along- disadvantages also, that are associated with the presented co simulation methodology/tools using automatic bit stream generation. With every release of System Generator, the top level output files change. Figure-4 illustrates the design flow adopted for the design of given PID controller. The Open Loop transfer function of a second order antenna control system is taken as H(s) is given by H(s)=0.2083/(s 2 +1.71s) The PID parameters for this required output speed are shown in Figure-5(a). The system generator is a Xilins tool box available with MATLAB. The blocks used for designs are as shown in the Figure-5(c). Then the PID controller is implemented in Xilinx Sys Gen and Simulink as shown in Figure-5(c). Where, 95

Figure-5(a). Simulink implementation of PID controller. Figure-4. Design methodology [3]. Figure-5(b). Simulink implementation of controlled system. 96

Figure-5(c). SysGen implementation of PID controller. 5. RESULTS Figure-6 shows the simulation results of FPGA based digital PID controller with multiplier. Figure-6 gives the comparison between the outputs of simple PID controller, FPGA based digital PID controller. It also gives the synthesis report of FPGA based digital PID controller. Output as seen on Scope with simple PID controller Output as seen on Scope without PID controller 97

Output as seen on Scope with FPGA based digital PID Figure-6. Output comparison of plant controlled variable. The synthesis using Xilinx ISE tools resulted in the following synthesis report for a Spartan3 as target FPGA. Here we can see that the overshoot (1.21) in the output of the plant with simple PID controller is higher than the overshoot (1.05) in output of plant with the FPGA based digital PID controller. This could be a very big advantage. Though the rise time in the output with simple PID controller is better than the rise time with DF-I PID controller but this can be easily improved by increasing the value of Ki. The device utilization summary is shown in Table-1. Table-1. Direct Form-I multiplier based digital PID controller. Device Utilization Summary Logic utilization Used Available Utilization Number of slice flip flops 240 7,168 3% Number of 4 input LUTs 236 7,168 3% Logic distribution Number of occupied slices 218 3,584 6% Number of slices containing only related logic 218 218 100% Number of slices containing unrelated logic 0 218 0% Total Number of 4 input LUTs 278 7,168 3% Number used as logic 236 Number used as a route-thru 42 Number of bonded IOBs 49 141 34% Number of MULT18X18s 3 16 18% Number of BUFGMUXs 1 8 12% Number of RPM macros 6 6. CONCLUSIONS Implementing the digital PID controller on FPGA gives better rise time as well as settling time as seen in the results. In designing and implementing the digital PID controller one major thing which affects the performance of controller and its effects on plant is the effective hardware utilization. Also implementing PID controller on FPGA features speed, accuracy, power, compactness, and cost improvement. In future work we plan to investigate implementation of multiplierless digital PID controller using distributed arithmetic architecture. The advantages are high processing speed, reduced power consumption and hardware compatibility for implementing on FPGA. 98

REFERENCES [1] A.peled and B. Liu. 1974. A new hardware realization of digital filters. IEEE Trans. ASSP. ASSP-22: 456-462. [2] Ian Grout. Digital systems design with FPGAs and CPLDs. 2008. Elsevier Newnes Press Publication. pp. 661-674. [3] Franklin G.F., J.D. Powell and M.L., Workman. 1990. Digital Control of Dynamic System. MA: Addison- Wesley Publishing Company. 99