Design and Development of Virtual Instrument (VI) Modules for an Introductory Digital Logic Course



Similar documents
Virtual Instrument and Object Oriented Programming Modules to Enhance Computer Networking Course

AC : MATHEMATICAL MODELING AND SIMULATION US- ING LABVIEW AND LABVIEW MATHSCRIPT

Digital Electronics Detailed Outline

Upon completion of unit 1.1, students will be able to

Gates, Circuits, and Boolean Algebra

CHAPTER 3 Boolean Algebra and Digital Logic

Digital Design. Assoc. Prof. Dr. Berna Örs Yalçın

FORDHAM UNIVERSITY CISC Dept. of Computer and Info. Science Spring, Lab 2. The Full-Adder

CPEN Digital Logic Design Binary Systems

EE360: Digital Design I Course Syllabus

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

Online Development of Digital Logic Design Course

Lecture 8: Synchronous Digital Systems

The string of digits in the binary number system represents the quantity

Logic in Computer Science: Logic Gates

Undergraduate Research Projects for Engineering Technology Students

Understanding Logic Design

Course Requirements & Evaluation Methods

Content Map For Career & Technology

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

Philadelphia University Faculty of Information Technology Department of Computer Science Semester, 2007/2008.

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Decimal Number (base 10) Binary Number (base 2)

Binary Adders: Half Adders and Full Adders

Chapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language

University of St. Thomas ENGR Digital Design 4 Credit Course Monday, Wednesday, Friday from 1:35 p.m. to 2:40 p.m. Lecture: Room OWS LL54

Digital circuits make up all computers and computer systems. The operation of digital circuits is based on

Resolving ABET/TAC Criteria on Continuous Improvement: Surviving ABET Accreditation!

Digital Systems. Syllabus 8/18/2010 1

Guru Ghasidas Vishwavidyalaya, Bilaspur (C.G.) Institute of Technology. Electronics & Communication Engineering. B.

Innovations in Remote Laboratories & Simulation Software for Online and On-Site Engineering Students

A single register, called the accumulator, stores the. operand before the operation, and stores the result. Add y # add y from memory to the acc

Thomas Jefferson High School for Science and Technology Program of Studies Foundations of Computer Science. Unit of Study / Textbook Correlation

Circuits and Boolean Expressions

Fundamentals of Digital Electronics

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

United States Naval Academy Electrical and Computer Engineering Department. EC262 Exam 1

CSI 333 Lecture 1 Number Systems

ELEC EXPERIMENT 1 Basic Digital Logic Circuits

Digital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell

Systems I: Computer Organization and Architecture

Background: Experimental Manufacturing Cell

A Comparison of Student Learning in an Introductory Logic Circuits Course: Traditional Face-to-Face vs. Fully Online

Lab 1: Full Adder 0.0

Chapter 6: From Digital-to-Analog and Back Again

6.004 Computation Structures Spring 2009

Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.

3.Basic Gate Combinations

ENGI 241 Experiment 5 Basic Logic Gates

DEPARTMENT OF INFORMATION TECHNLOGY

BSEE Degree Plan Bachelor of Science in Electrical Engineering:

SECTION C [short essay] [Not to exceed 120 words, Answer any SIX questions. Each question carries FOUR marks] 6 x 4=24 marks

A Course Material on DIGITAL PRINCIPLES AND SYSTEM DESIGN

SIM-PL: Software for teaching computer hardware at secondary schools in the Netherlands

ANALOG & DIGITAL ELECTRONICS

Oct: 50 8 = 6 (r = 2) 6 8 = 0 (r = 6) Writing the remainders in reverse order we get: (50) 10 = (62) 8

Digital System Design Prof. D Roychoudhry Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur

Design of Remote Laboratory dedicated to E2LP board for e-learning courses.

plc numbers Encoded values; BCD and ASCII Error detection; parity, gray code and checksums

Chapter 1: Digital Systems and Binary Numbers

FACULTY OF COMPUTER SCIENCE AND ENGINEERING CURRICULUM FOR POSTGRADUATE PROGRAMMES. (Master in Information Technology)

Goals. Unary Numbers. Decimal Numbers. 3,148 is s 100 s 10 s 1 s. Number Bases 1/12/2009. COMP370 Intro to Computer Architecture 1

PLL frequency synthesizer

Karnaugh Maps. Circuit-wise, this leads to a minimal two-level implementation

AC : DEVELOPING AN INDUSTRY-DRIVEN GRADUATE CERTIFICATE IN TEST ENGINEERING FOR ELECTRICAL ENGINEERING TECHNOLOGISTS

Criteria for Accrediting Computer Science Programs Effective for Evaluations during the Accreditation Cycle

2 Number Systems. Source: Foundations of Computer Science Cengage Learning. Objectives After studying this chapter, the student should be able to:

COMBINATIONAL CIRCUITS

COURSE SYLLABUS. PRE-REQUISITES: Take CETT-1303(41052); Minimum grade C, CR.

Sistemas Digitais I LESI - 2º ano

VHDL Test Bench Tutorial

CSE140: Components and Design Techniques for Digital Systems

RARITAN VALLEY COMMUNITY COLLEGE COURSE OUTLINE. CISY 103 Computer Concepts and Programming

Number Systems and Radix Conversion

Two-level logic using NAND gates

EE 261 Introduction to Logic Circuits. Module #2 Number Systems

T146 Electro Mechanical Engineering Technician MTCU Code Program Learning Outcomes

WESTMORELAND COUNTY PUBLIC SCHOOLS Integrated Instructional Pacing Guide and Checklist Computer Math

Gray Code Generator and Decoder by Carsten Kristiansen Napier University. November 2004

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

Technical Aspects of Creating and Assessing a Learning Environment in Digital Electronics for High School Students

2011, The McGraw-Hill Companies, Inc. Chapter 3

3. Convert a number from one number system to another

earlier in the semester: The Full adder above adds two bits and the output is at the end. So if we do this eight times, we would have an 8-bit adder.

GPIB Instrument Control

INTRODUCTION TO DIGITAL SYSTEMS. IMPLEMENTATION: MODULES (ICs) AND NETWORKS IMPLEMENTATION OF ALGORITHMS IN HARDWARE

Aims and Objectives. E 3.05 Digital System Design. Course Syllabus. Course Syllabus (1) Programmable Logic

Reasons for need for Computer Engineering program From Computer Engineering Program proposal

ON SUITABILITY OF FPGA BASED EVOLVABLE HARDWARE SYSTEMS TO INTEGRATE RECONFIGURABLE CIRCUITS WITH HOST PROCESSING UNIT

Unit 3 Boolean Algebra (Continued)

ENEE Electrical & Computer Engineering Summer 2015

PLCs and SCADA Systems

DISTANCE DEGREE PROGRAM CURRICULUM NOTE:

BINARY CODED DECIMAL: B.C.D.

Binary Numbers. Binary Octal Hexadecimal

ESYST Residential Wiring

Useful Number Systems

CSE140 Homework #7 - Solution

Mathematics Cognitive Domains Framework: TIMSS 2003 Developmental Project Fourth and Eighth Grades

Transcription:

Session ENG 206-6 Design and Development of Virtual Instrument (VI) Modules for an Introductory Digital Logic Course Nikunja Swain, Ph.D., PE South Carolina State University swain@scsu.edu Raghu Korrapati, Ph.D. Walden University rkorrapa@waldenu.edu Abstract Today s test environment is more challenging than ever as pressure on increasing quality and meeting time-to-market continue to increase. Because of these recent advances in computer and other technologies, it is becoming evident that a sound foundation in computers and computer networking is critical for success in many kinds of computer-based work To address this, majority of the undergraduate programs have courses in Digital Logic, Computer Architecture, and Computer Networking with Digital Logic being the first course and prerequisite for other computer hardware courses. The objective of these courses are to provide the graduates with solid foundation in computers and their applications to solve real world problems. A problem for these students is the solution of problems in textbooks through the use of routine problem solving techniques such as equations and formulae. But the students over reliance upon formulae and routine use of technique in problem solving too often lead to poor performance in real world scenarios. Also, the students lack of comprehension of logical and mathematical concepts results in time wastage during laboratory experiments, misinterpretations of lab data and underachievement in standardized science and engineering tests that stress the fundamentals. This problem can be effectively addressed by improving the student s conceptual understanding and comprehension of the topics through interactive learning and teaching with virtual instruments (VI) software package like LabVIEW. This paper will discuss design and development of interactive instructional modules (VIs) for studying (a) Number Systems, (b) Logic Gates Truth Table and Logic Diagram, and (d) Half Adder and Full Adder. I. Introduction The engineering, science, and technology field at present is very dynamic. This is due to the recent advances in computer and other technologies. These advances are resulted in number of computer programs to solve traditional and novel problems. These programs use the computer's increased computational capabilities and assist in the design, development and control of complex systems in matter of minutes. Automation is becoming a part and parcel of every Proceedings of The 2006 IJME - INTERTECH Conference

industry and industries need trained workforce to manage this new development. As a result, the engineering, technology, and science programs are under pressure to incorporate use of computers into their curriculum so that their graduates can be well trained in the use and application of these changing technologies and serve the needs of the industrial community. To address this need, most of the engineering programs and some of the engineering technology programs have introduced courses, programs, and laboratories in Digital Design and Computer Architecture to provide the graduates with both the theoretical and practical knowledge and experience. The study of computers and networking requires a good background on Digital Design, and textbooks and software programs are currently used in academia to provide the students with such background. This allows the student to spend less time in writing the code to solve the problem and to spend more time to understand the concepts. One such program is LabVIEW from National Instruments Corporation. The acronym stands for Laboratory Virtual Instrumentation Engineering Work Bench. Originally designed for test and measurement applications, the program has been modified over the years to design and analyze various complex systems. LabVIEW is a graphical programming environment and is based on the concept of data flow programming. Data flow programming concept is different from the sequential nature of traditional programming languages, and it cuts down the design and development time of an application. It is widely accepted by industry, academia, and research laboratories around the world as a standard for data acquisition and instrument control software []. Since LabVIEW is based on graphical programming, users can build instrumentation called virtual instruments (VIs) using software objects. With proper hardware these virtual instruments can be used for remote data acquisition, analysis, design and distributed control. The built-in library of LabVIEW has number of VIs that can be used to design and develop any system. LabVIEW can be used to address the needs of various courses in a technology and science curriculum [2, 3, 4]. The objective of this paper is to discuss the application of built-in VIs in LabVIEW to develop VI modules to be used in an introductory Digital Design Course. This paper is arranged as follows: Section II discusses various LabVIEW application areas. Section III discusses the VI module for Number System Conversion. Section IV discusses the VI module for Logic Gates Truth Table and Logic Diagram. Section V discusses the VI modules for Half Adder and Full Adder. Section VI presents the conclusion and discussion and Section VII presents the references. II. LabVIEW Application Areas LabVIEW is extremely flexible and some of the application areas of LabVIEW [5] are Simulation, Data Acquisition & Data Processing. The Data Processing library includes signal generation, digital signal processing (DSP), measurement, filters, windows, curve fitting, probability and statistics, linear algebra, numerical methods, instrument control, program development, control systems, and fuzzy logic. These features of LabVIEW, will help us in providing an Interdisciplinary Integrated Teaching and Learning experiences that integrates team-oriented, hands-on learning experiences throughout the engineering technology and sciences curriculum and engages students in the design and analysis process beginning with their first year. LabVIEW can command DAQ boards to read analog input signals (A/D conversion), generate analog output signals (D/A conversion), read and write digital signals, and manipulate the on-board counters for frequency measurement, pulse generation, etc. The

voltage data goes into the plug-in DAQ board in the computer, which sends data into computer memory for storage, processing, or other manipulation. III. Number System Conversion The students of science, engineering, and technology deal with different computer application areas and frequently encounter binary, octal, and hexadecimal numbers. At times they have to convert a number in one system into another which requires a) understanding the principles behind number system conversions and b) interactive modules to practice different conversions. Presented below a brief discussion of the principles behind number system conversion and the interactive module using LabVIEW (Number System Conversion VI) A. Any Number System to Decimal Number System Rule Let us consider the source number as A = ( a n a n- a. a - a -2.a -n ) b where b = base and a = coefficients and the a values are between 0 and b-. Let the decimal equivalent of A be Deq Deq = a n *b n- + a n- *b n-2 + + a 2 *b +a *b 0. a - *b - +a -2 *b -2 + +a -n *b -n Example Determine the decimal equivalent of binary number. or (.) 2 = ( ) 0? Decimal equivalent Deq = *2 2 + *2 + *20. *2 - +*2-2 = (4+2+). (.5+.25) = (7.75) 0 B. Decimal Number System to Any Number System - Rule 2 Let D be the integer part of the decimal number and D be the fraction part of the decimal number. The decimal number therefore is equal to D.D. Let b be base or radix of the destination number. Converting Integer part to base b Converting Fraction part to base b Use process of repeated division. Process Use process of repeated multiplication. Terminates when quotient = 0 Process terminates when fraction part = 0 Example Determine the binary equivalent of decimal number 7.75 or (7.75) 0 = ( ) 2 In this example D = 7, D = 0.75, and b = 2. Integer Part = 7 Converting integer part to binary Fraction Part = 0.75 Converting fraction part to binary Quotien t Remainder Integer Fractio n 7/2 3 0.75*2 0.50 3/2 0.50*2 0 ½ 0 Result (.) 2

Binary to Decimal Conversion VI (Front Panel) Binary to Decimal Conversion VI (Diagram Panel) Figure Number Systems Conversion VI

IV. Logic Gates Truth Table and Logic Diagram A logic gate is an elementary building block of a digital circuit. Most logic gates have two inputs and one output. There are seven basic logic gates: AND, OR, XOR, NOT, NAND, NOR, and XNOR. The following is the logic symbol, Logic Equation, and Tryth Table for these gates and is reproduced from [6]. Figure 2 Logic Gates: Symbol, Equation, and Truth Table A digital system is usually represented by a logic equation and implemented using the gates. For example, the logic equation w = xyz + yz x + x y z can be implemented using INVERTERS, AND gates, and OR gate. This can be also simplified by using Boolean algebra or Karnaugh s Map (K-Map). Using Boolean Equation, w can be simplified to w = xy + x y z. A Truth Table of this logic equation will produce s at xyz combination of (0, 0, 0), (,,0) and (,,) and 0s at any other xyz combinations. Figure 3 presents the VI for the Truth Table of Logic Gates, Truth Table for the Logic Equation, and Logic Diagram for the logic equation.

Logic Gates Truth Table and Truth Table of Logic Equation VI Front Panel Logic Gates Truth Table and Truth Table of Logic Equation VI Diagram Panel V. Half Adder and Full Adder VI Figure 3 Logic Gates and Logic Equation (Truth Table) VI The logic diagram of a Half-Adder and a Full-Adder is shown in Figure 4. This figure is borrowed from [6]. A Half-Adder is used to add two single bits and a Full Adder is used to add two bits with carry. The VI modules for Half-Adder and Full Adder are shown in Figures 5 and 6, respectively [7].

Figure 4 Half Adder and Full Adder Half Adder VI Front Panel Half Adder VI Diagram Panel A Half adder + A2 = Sum + Carry 0 Figure 5 Half Adder VI Full Adder VI Front Panel Full Adder VI Diagram Panel Full adder Carry in + A + A2 = Sum + Carry out Figure 6 Full Adder VI

VI. Conclusion/Discussion The VI modules presented in this paper are tested with the input values from various examples in textbooks and results matched with the results of the examples. The authors have developed number of other VIs for other courses and used them as needed. The modules presented in this paper are used in Digital Logic and Computer Organization courses. A number of software packages are currently being used in engineering, technology, and sciences curriculum. While some of them require programming background, others are designed for specific course requirements. LabVIEW has features and built in virtual instrument modules identical to most of the features found in all these software packages. No or minimal programming knowledge is necessary to design and develop the VI modules. LabVIEW Therefore, one can use LabVIEW only to address the needs of various courses. This will be beneficial for students and faculty and introduce standardization across the curriculum. VII. References []. Chugani, M., Samant, A., and Cerna, N. LabVIEW Signal Processing, Prentice Hall, NJ 07458, 998. [2]. Anderson, J. A., Korrapati. R. B., & Swain. N. K., "Digital signal processing using virtual instrumentation". Proceedings of SPIE Vol. 4052. [3]. Korrapati, R. B. & Swain. N. K., "Study of Modulation using Virtual Instruments". Proceedings of National Conference on Allied Academies, Spring 2000. [4]. Swain, N. K., Anderson, J. A., & Korrapati. R. B. "Computer based virtual engineering Laboratory (CBVEL) and Engineering Technology Education". 2000 Annual ASEE Conference Proceedings. [5]. Lisa Wells and Jeferey Travis, LabVIEW for Everyone, Graphical Programming Even Made Easier, Prentice Hall, NJ 07458, 997. [6]. Mano, Morris M., Digital Design, Prentice Hall, NJ, 2002. [7]. Fundamentals of Digital Electronics, retrieved on August 2, 2006 from http://www.ni.com. Biography Nikunja Swain is currently a Professor at the South Carolina State University. Dr. Swain has 25+ years of experience as as an engineer and educator. He has close to 50 publications in journals and conference proceedings and he has procured research and development grants from the NSF, NASA, DOT, DOD, and DOE. He has reviewed books on TCP/IP, Microprocessors, and Information Systems and a reviewer for ACM Computing Reviewes, IJAMT, CIT, ASEE, and other conferences and journals. Dr. Swain is also an adjunct faculty for Walden University, and Webster University. He is a registered professional engineer in the state of South Carolina.

Raghu Korrapati, Ph.D is a faculty in Applied Management and Decision Sciences Program in School of Management at Walden University, Minneapolis, MN, USA. His email address: rkorrapa@waldenu.edu.