IMPLEMENTATION OF A BINARY SELECTION SYSTEM CREATED IN XILINX USING FPGA

Similar documents
FPGA-BASED EDUCATIONAL LAB PLATFORM

ENGG2410: Digital Design Lab 5: Modular Designs and Hierarchy Using VHDL

Microprocessor Design

Why FPGAs? FPGA Overview. Why FPGAs?

Lab 13: FPGA Circuit Realization Ian Callahan

COMPUTER ENGINEERING PROGRAM

EEM Digital Systems II

ECE 372 Microcontroller Design

MUHAMMAD NAEEM LATIF MCS 3 RD SEMESTER KHANEWAL

COE328 Course Outline. Fall 2007

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

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

Lab #12: 4-Bit Arithmetic Logic Unit (ALU)

DIGITAL CIRCUIT LOGIC UNIT 9: MULTIPLEXERS, DECODERS, AND PROGRAMMABLE LOGIC DEVICES

Programmable Logic Design I

Chapter Contents. Appendix A: Digital Logic. Some Definitions

Chapter 7 Memory and Programmable Logic

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

VHDL Design and Implementation of FPGA Based Logic Analyzer: Work in Progress

Chapter 9 MSI Logic Circuits

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

1. Convert the decimal number to binary, octal, and hexadecimal.

Logic Devices for Interfacing, The 8085 MPU Lecture 4

Theory Lecture Day Topic Practical Day. Week. number systems and their inter-conversion Decimal, Binary. 3rd. 1st. 1st

LED BASED SNAKE GAME

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

ECB DIGITAL ELECTRONICS PROJECT BASED LEARNING PROJECT REPORT ON 7 SEGMENT DIGITAL STOP WATCH USING DECODER

Field Programmable Gate Arrays (FPGAs)

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

FPGA Design. Part I - Hardware Components. Thomas Lenzi

Computer Architecture and Organization

Chapter 8 Functions of Combinational Logic

FPGA Design with VHDL

ROEVER COLLEGE OF ENGINEERING & TECHNOLOGY ELAMBALUR, PERAMBALUR DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING

ELEC 204 Digital System Design LABORATORY MANUAL

DIGITAL SYSTEM DESIGN UNIT I (2 MARKS)

University of Maiduguri Faculty of Engineering Seminar Series Volume 6, december 2015

Digital Fundamentals: A Systems Approach

March 13, :36 vra80334_appe Sheet number 1 Page number 893 black. appendix. Commercial Devices

University of Pennsylvania Department of Electrical and Systems Engineering. Digital Design Laboratory. Lab8 Calculator

CHAPTER1: Digital Logic Circuits

Lab #10: Building Output Ports with the 6811

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

Principles of Computer Architecture. Appendix A: Digital Logic

Lab #13: FPGA Circuit Realization

Figure 1 Block diagram of a 4-bit binary counter

Traffic Light Controller

Lab 4: Hex Calculator

Lab #6: Combinational Circuits Design

CS 151 Final. Instructions: Student ID. (Last Name) (First Name) Signature

Chapter 2. Digital Circuits

CSE140L: Components and Design Techniques for Digital Systems Lab. CPU design and PLDs. Tajana Simunic Rosing. Source: Vahid, Katz

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

Digital Electronics II 2016 Imperial College London Page 1 of 8

UNIT IV CMOS TESTING. EC2354_Unit IV 1

Lecture 6: Simple and Complex Programmable Logic Devices. EE 3610 Digital Systems

DIGITAL FUNDAMENTALS

Laboratory Exercise 7

The Nexys 4 Number Cruncher. Electrical and Computer Engineering Department

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


R13 SET - 1 '' ''' '' ' '''' Code No: RT21053

Tutorial 11 ChipscopePro, ISE 10.1 and Xilinx Simulator on the Digilent Spartan-3E board

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it,

Examples of FPLD Families: Actel ACT, Xilinx LCA, Altera MAX 5000 & 7000

IE1204 Digital Design F11: Programmable Logic, VHDL for Sequential Circuits

EECS 140 Laboratory Exercise 7 PLD Programming

AIM: To study and verify the truth table of logic gates

Chapter 5 Flip-Flops and Related Devices

Logic Design II (17.342) Spring Lecture Outline

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

WELCOME. ECE 2030: Introduction to Computer Engineering* Richard M. Dansereau Copyright by R.M. Dansereau,

Review : 2 Release Date : 2019 Last Amendment : 2013 Course Code : SKEE 2742 Procedure Number : PK-UTM-FKE-(0)-10

Contents Circuits... 1

9 Programmable Logic Devices

Department of Electrical and Computer Engineering Mid-Term Examination Winter 2012

EEE130 Digital Electronics I Lecture #1_2. Dr. Shahrel A. Suandi

IE1204 Digital Design. F11: Programmable Logic, VHDL for Sequential Circuits. Masoumeh (Azin) Ebrahimi

Final Exam review: chapter 4 and 5. Supplement 3 and 4

Testability: Lecture 23 Design for Testability (DFT) Slide 1 of 43

Digital Electronic Circuits Design & Laboratory Guideline

R13. II B. Tech I Semester Regular Examinations, Jan DIGITAL LOGIC DESIGN (Com. to CSE, IT) PART-A

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

Digital. Digital. Revision: v0.19 Date: : / 76

of Boundary Scan techniques.

LAB #6 State Machine, Decoder, Buffer/Driver and Seven Segment Display

Half-Adders. Ch.5 Summary. Chapter 5. Thomas L. Floyd

TSIU03, SYSTEM DESIGN. How to Describe a HW Circuit

Using the XC9500/XL/XV JTAG Boundary Scan Interface

Logic Design. Flip Flops, Registers and Counters

Instructions. Final Exam CPSC/ELEN 680 December 12, Name: UIN:

Figure 1: segment of an unprogrammed and programmed PAL.

Laboratory 4. Figure 1: Serdes Transceiver

3/5/2017. A Register Stores a Set of Bits. ECE 120: Introduction to Computing. Add an Input to Control Changing a Register s Bits

Tribhuvan University Institute of Science and Technology Bachelor of Science in Computer Science and Information Technology

Reaction Game Kit MitchElectronics 2019

VLSI IEEE Projects Titles LeMeniz Infotech

Available online at ScienceDirect. Procedia Computer Science 46 (2015 ) Aida S Tharakan a *, Binu K Mathew b

Design and analysis of microcontroller system using AMBA- Lite bus

nmos transistor Basics of VLSI Design and Test Solution: CMOS pmos transistor CMOS Inverter First-Order DC Analysis CMOS Inverter: Transient Response

Transcription:

ANNALS of Faculty Engineering Hunedoara International Journal of Engineering Tome XV [2017] Fascicule 3 [August] ISSN: 1584-2665 [print; online] ISSN: 1584-2673 [CD-Rom; online] a free-access multidisciplinary publication of the Faculty of Engineering Hunedoara 1. Corina Daniela CUNŢAN, 2. Bianca SERBAN, 3. Ioan BACIU IMPLEMENTATION OF A BINARY SELECTION SYSTEM CREATED IN XILINX USING FPGA 1,3. University Politehnica Timişoara, Faculty of Engineering Hunedoara, Electrical Engineering and Industrial Informatics Department, Hunedoara, ROMANIA 2. University Politehnica Timişoara, Faculty of Engineering Hunedoara, Advanced Systems for Using Electricity, Hunedoara, ROMANIA Abstract: The system requires the implementation of complex logic circuits using the hierarchical design concept. In such approach, a system block diagram has been developed, followed by the Xilinx design of each block separately. When using hardware description programs, the hierarchical design involves using a project that includes multiple files: a high-level file, specifying how to interconnect the blocks of the system structure, several low-level components, and at least one constraints file specifying data concerning the implementation. The following functional blocks have been created in Xilinx: encoder, 4-bit memory register, BCD to 7 segment decoder, and 8-bit multiplexed comparator. After implementing all circuits, their operation was tested using a Basys2 board. Keywords: Complex logic circuits, Field programmable gate arrays, Basys2 1. INTRODUCTION The program used to implement the application was Xilinx. This CAD (Computer Aided Design) design software containing programmable logic circuits (FPGA) enables, in the first stage, the selection of project description method: schematic, VHDL description, or state diagrams. For this application, we selected the schematic design method. [1][2][3] After the schematic implementation of logic circuits, verification of accuracy and identification of constraints files, we used Digilent Adept System software to upload the file with the extension.bit on the Basys2 board (Figure 1a)[10] Figure 1. Basys2 board The board can be either powered or programmed via a USB port (Figure 1b). The Digilent Adept System software detects automatically the board, but also provides a programming interface to FPGA. The Adept program enables data transfer from the computer to the Basys2 board.[8] Usually, the Basys2 board is powered via a USB cable, but it is also fitted with a connector for an external power source, for example a battery of 3.5 V 5.5 V. After starting, the FPGA fixed on the Basys2 board must be configured to work properly. During the configuration process, a bit is transferred into a memory cell inside the FPGA, to define the logical functions of the interconnection between circuits.[9] 75 F ascicule 3

The Basys2 board contains four buttons and eight slide switches for the input circuits. The Buttons LEDs entries operated by buttons have a low frequency when the button is not pressed and a high frequency when the button is pressed. The slide switches generate a constant high or low frequency, depending on the switch position. All buttons and switches contain resistors connected in series, to protect against short circuits. For the output circuits, the board is provided with eight LEDs and a 7-segment BCD display. The anode of each LED exits the FPGA by current limiting resistors, lighting up when the logic 1 is applied to the corresponding pin. A ninth LED lights up when the board is powered on, and a tenth LED lights up when FPGA has been programmed successfully. (Figure 2) Each of the four digits of the 7-segment BCD display consists of seven LED segments arranged as a figure eight. The LED segments can light up individually, so the 128 patterns can be displayed on one digit illuminating certain LED segments and letting the others off. Of these 128 patterns, the ten ones corresponding to the tens figure are the most useful.[10] Since the Basys2 board provides the user with a common anode display, it was necessary to Slide switches 7-segment display create a multiplexing circuit for displaying the Figure 2. I/O circuits of Basys2 board figures typed on the keyboard. 2. DESCRIPTION OF APPLICATION The operating principle of the proposed system is based on the block diagram (Figure 3), containing the main modules created in Xilinx. [4] Figure 3. The block diagram of the system We present below the internal structure of each functional block individually, as follows: The delay flip-flop was created in Xilinx (Figure 4a), starting from the logical diagram of a MMC 4013 circuit, after which the constraints file was created (Figure 4b), and its operation has been verified using the Basys2 board. [11] The delay flip-flop was required to be inserted into the structure of the 2-bit counter. Also, to create the 4-bit memory, it was necessary to build a D-Latch flip-flop.[5][6][7] After verifying the correct operation of the flip-flop, we created the schematic symbol of the flip-flop used in the diagram of the component in whose structure it was integrated. 76 F ascicule 3

Figure 4. Delay flip-flop created in Xilinx We have also built the encoder structure (Figure 5a) and the related constraints file (Figure 5b), followed by the verification of operation using the Basys2 board..[5][6][7] Based on the results, we obtained the encoder schematic symbol, used subsequently in the final circuit. Figure 5. Encoder created in Xilinx The 4-bit comparator (Figure 6a), realised on the basis of the diagram with logic gates EXCLUSIVE-OR (XOR), whose constraints file is shown in Figure 6b, shows the result of coincidence between the typed number and the stored one, following the verification of operation on the Basys2 board. [5][6][7] Figure 6. Comparator created in Xilinx The memory circuit (Figure 7a), used to store the addresses of input quantities, has been realised using the structure of a MMC 4042, which is a 4-bit static memory required to keep the addresses of memory registers stable for the displayed numbers. [11] The constraints file (Figure 7b) assigns the input and output signals related to the memory circuit used to verify the operation on the Basys2 board. 77 F ascicule 3

Figure 7. Memory circuit created in Xilinx The shift registers were realised using the structure of the MMC 4076 circuit (Figure 8a), followed by the constraints file (Figure 8b), to verify the circuit operation.[11] Figure 8. Shift register created in Xilinx To control the display on the Basys2 board, it was necessary to implement a multiplexer realised using the 74LS153 circuit diagram (Figure 9).[11] Figure 9. The implemented diagram of multiplexer After the implementation of all components, the system diagram was integrated (Figure 10), followed by the verification of its operation. The verify the operation of the system, the number 10 was set in the comparator structure. By entering this number via the keyboard, the green LED will light on the Basys2 board, indicating the equality between the displayed number and the set number (Figure 11a). If the number entered via the keyboard differs from the set number, then the LED remains off (Figure 11b). The LED is used to indicate whether the output voltage exists or not. 78 F ascicule 3

Figure 10. Binary system selection diagram Figure 11. The pictures show the operation in the situations described above CONCLUSIONS An advantage of the Xilinx program is its flexibility, but also the fact that we can relatively easily develop projects just using the library of the program. Other advantages are its high programmability and low time required for design and presentation of the product on the market. Also, the program has an IEEE standard recognized by all manufacturers. The FPGA devices enable the design of specialized hardware architectures, thanks to the flexibility advantage of the programmable environment in which the implementation is carried out. This provides an extra degree of freedom in the design of digital control systems compared to the use of microprocessors, because the hardware architecture of the control system must not be imposed previously. The presented system enables serial selection of two numbers typed independently which, if matching with the set ones, they activate a control device. If the two numbers do not match with the stored ones, the system does not react. The numbers entered via the keyboard are viewed on the display of the FPGA board. References [1.] Haskell R.E., Hanna D.M., Digital design using digilent FPGA boards, Publisher LBE Books, Rochester Hills, 2012; [2.] Even G. & Medina M., Digital Logic Design: A Rigorous Approach., Cambridge University Press,ISBN 13: 9781107027534, 2012; 79 F ascicule 3

[3.] Haskell R. E., & Hanna, D. M. Digital Introduction to Digital Design Using Digilent FPGA Boards -VHDL Edition. LBE Books, ISBN 13: 978 0980133769, 2009; [4.] Pârvu, C., Note de aplicaţie în electronica digitală, Editura: Editura Albastră, Timişoara, 2008; [5.] Bostan, I., Metode clasice şi moderne în studiul circuitelor digitale Lucrări practice de laborator, Editura: Matrix Rom, Bucuresti, 2006; [6.] Toacşe, G., Nicula D., Electronică digitală. Dispozitive. Circuite. Proiectare, Vol. I, II, Editura Tehnică, București, 2005; [7.] Istvan Sztojanov, Sever Pasca, Niculae Tomescu, Electronică analogică şi digitala, vol. III, Editura Albastră, Cluj Napoca, 2008; [8.] Khaled Benkrid, Thomas Clayton, Digital Hardware Design Teaching: An Alternative Approach, ACM Transactions on Computing Education, Volume 12 Issue 4, Article No. 13, November 2012 [9.] Ionel Petrescu, Ionel-Bujorel Păvăloiu, George Drăgoi, Digital Logic Introduction Using FPGAs, Procedia - Social and Behavioral Sciences, Volume 180, 5 May 2015, Pages 1507-1513 [10.] Basys2 reference manual, www.digilent.com; [11.] Ardelean I. (colectiv) Circuite Integrate CMOS. Manual de utilizare, Editura Tehnică, București, 1986; ANNALS of Faculty Engineering Hunedoara International Journal of Engineering copyright UNIVERSITY POLITEHNICA TIMISOARA, FACULTY OF ENGINEERING HUNEDOARA, 5, REVOLUTIEI, 331128, HUNEDOARA, ROMANIA http://annals.fih.upt.ro 80 F ascicule 3