Implementation of Control Unit for Microprocessor Trainer (Arithmetic and Logical Instructions)

Size: px
Start display at page:

Download "Implementation of Control Unit for Microprocessor Trainer (Arithmetic and Logical Instructions)"

Transcription

1 Implementation of Control Unit for Microprocessor Trainer (Arithmetic and Logical Instructions) Phyu Phyu Shein, Tin Tin Khaing Abstract In this paper, the control unit for the 16-bit CPU of a microprocessor trainer is designed, implemented, and tested. The most important part of the control unit is the PIC microcontroller 18F452. The microprogram for the PIC was developed to execute the arithmetic and logical instructions. The control unit of this trainer is designed for NOP, Add, Add Immediate, Add with Carry, Subtract, Sub Immediate, Sub with Borrow, AND, AND Immediate, OR, OR Immediate, XOR, XOR Immediate, Increment, Decrement, Shift Left, Shift Left Carry, Shift Right and Shift Right Carry instructions. The control program was designed to execute the instructions precisely and to reduce executing cycles. The control unit of CPU program is written by using assembly language. Keywords arithmetic and logic unit, control unit, instructions, microprocessor A I. INTRODUCTION MICROCONTROLLER is a complete computer system, including a CPU, memory, a clock oscillator, and I/O on a single integrated circuit. The structure of the storedprogram computer which contains: 1. An input device through which data and instructions can be entered. 2. A storage into which results can be entered and from which instructions and data can be fetched. 3. An arithmetic unit to process data. 4. A control unit to fetch, interpret, and execute the instructions from the storage. 5. An output device to deliver the results to the user. All contemporary computers are being investigated. Commercial computer system development has followed development of hardware technology [4]. Microprocessors are regarded as one of the most important devices in everyday machines called computers. Typical microprocessors incorporate arithmetic and logic functional units as well as the associated control logic, instruction processing circuitry, and a portion of the memory hierarchy [20]. The CPU is the part of a computer in which arithmetic and logical operations are performed and instructions are decoded and executed. The CPU controls the operation of the computer [2]. Phyu Phyu Shein, Assistant Lecturer, Computer Department, Technological University (Dewei), Myanmar, the author was graduated from the University of Computer Studies, Yangon ( maphyu.shein79@gmail.com) Tin Tin Khaing, Assistant Lecturer, Department of Information Technology, Technological University (Pethein), Myanmar, the author was graduated from the University of Computer Studies, Yangon (phone: ; dttk2007@gmail.com) Certain types of basic instructions can be classified as follows. Arithmetic: add or subtract two values Logical: Boolean (e.g., AND, OR, XOR, NOT, etc.) manipulation of one or two values Transfer: retrieve a value from memory or store a value to memory. Branch: jump ahead or back to a particular instruction if a specified condition is satisfied. Arithmetic and logical instructions enable the microprocessor to modify and manipulate specific pieces of data. Transfer instructions enable these data to be saved for later use and recalled when necessary from memory. Branch operations enable instructions to execute in different sequences, depending on the results of arithmetic and logical operations [16]. Most microcontrollers are general purpose microprocessors. So, we often use the terms microcontroller and microprocessor interchangeably. II. RELATED WORK PICs are popular due to their low cost, wide availability, large user base, extensive collect ion of application notes. The main objective of this thesis is to understand the operation of simple RISC to understand the interfacing the CPU, memory, and I/O devices to a common bus. It aims to understand the functions of the basic components of a processor, to visualize how a processor actually executes an instruction and how data flows through its components, to understand assembly language programming of complex commercially available microprocessors/ microcontrollers, to comprehend the basic types and concepts of computer architecture. Processors are used in other advanced electronic systems. They are also used to control consumer electronic devices, to regulate gasoline consumption and antilock brakes in automobiles, to monitor alarm systems, to operate automatic tracking and targeting systems in aircraft, tanks, and missiles and to control radar arrays that track and identify aircraft, among other defense applications. III. MOTIVATION One of the most important digital systems today is the microprocessor. The MIPS instruction set is a very successful microprocessor instruction set architecture (ISA). The benefit of the 16-bit extension of the ISA is that instructions are encoded using fewer bits and thus a program may fit into a significantly smaller amount of memory when using the 16-bit instructions. However, usually the opportunities to use 16-bit instructions are limited such that the savings in memory space. 911

2 IV. CONTRIBUTION The main contribution of this paper is implementation of control unit for microprocessor trainer for arithmetic and logical (ALU) instruction. Figure.1. shows the block diagram of the whole circuit. In this circuit, there are 8 modules which are Processor (CPU) module, Direct Memory Access (DMA) module, Memory module, User Interface (IO CPU) module, Parallel Interface (parallel IO) module, Power module, Display and Keypad modules. To communicate all those modules, data bus (D0 to D15), address bus (A0 to A15), control bus (MEMRD=memory read, MEMWR=memory write, IORD=input/output read and IOWR=input/output write) are used. All modules will be supported by 5V DC from power supply unit. The control unit used this information to generate the necessary signals for executing the instruction. After completing the data path for all instructions, it is necessary to define control signals to execute each instruction Be independently since most data path components are shared for all instructions. The opcode tells the main control unit what is going on inside the data path in sufficient details for it to maintain proper operation of the control signals it sends to the data path via the set of signals The simple RISC instructions are used in this research such as arithmetic and logical instruction supported are shown in Table.1 and Table.2. TABLE I ALU INSTRUCTIONS USED FOR ALU CONTROL UNIT TABLE II SIMPLE RISC INSTRUCTIONS Fig. 1 Complete block diagram of microprocessor trainer V. DESIGN OF THE MICROCONTROLLER-BASED CONTROL UNIT Microprocessor control unit is a very important unit for the computer system. The instructions are needed to control the computer. The control unit fetches an instruction from memory by sending an address and a read command to the memory unit. The instruction word stored at the memory location is then transferred to the control unit. This instruction word, which is in some form of binary code, is then decoded by logic circuitry in the control unit to determine which instruction is being called for. VI. HARDWARE IMPLEMENTATION OF ALU CONTROL UNIT This unit provides the signal that specifies which arithmetic and logical (ALU) operation is to be performed on the present set of data. Some of these operations require two operands and 912

3 while others operate on only one operand. The operations include add, subtract, and, or, xor, logical shift, and arithmetic shift. The output of the ALU goes either to the data memory or through a multiplexer back to the register file. In this system, PIC18F452 is used as CPU PIC in Figure 2. The address enable (AE) and address latch enable (ALE) from CPU are connected to the two74als573b to get 16 bit address for being the 8 bit PIC.16 bit data [D0- D15] are also connected to this latch IC as inputs and output the address [A0 - A15]. PORT B is used as the external interrupt. Memory read (MEMRD) and memory write (MEMWR) are used to connect to the memory module. And then I/O read (IORD) and I/O write (IOWR) are also used to connect to the I/O modules called parallel IO and IOCPU which controls the keypad and display modules. These four memory and I/O control lines are connected with DMA module. It also connects with DMA acknowledge and DMA interrupt from CPU. The oscillator is used with the crystal to get clock inputs and outputs. All address lines [A0- A15] and data lines [D0- D15] are connected to DMA module, memory module, IO CPU module and parallel IO module. The power module gives the required DC power to the CPU. Fig. 3(a) Initialization routine Fig. 3(b) Initialization routine (continue) Fig. 2 Circuit diagram of CPU module VII. SOFTWARE IMPLEMENTATION FOR ALU CONTROL UNIT In this system, the arithmetic and logical (ALU) instructions are fetched, decoded and executed by using microprogram control. Initialization routine, main routine and instruction decode flowcharts are as shown in figures. Fig. 4 Main routine 913

4 Fig. 5(a) Execution of instruction decode Fig. 6 Execution of Add instruction Fig. 7 Execution of Add Immediate instruction Fig. 5(b) Execution of instruction decode (continue) VIII. ALU INSTRUCTIONS EXECUTION A. Arithmetic Instructions In arithmetic instructions, NOP, Add, Add Immediate, Add with Carry, Subtract, Sub Immediate, Sub with Borrow are executed. NOP is no operation. Fig. 8 Execution of Add with Carry instruction 914

5 B. Logical Instructions In logical instructions, AND, AND Immediate, OR, OR Immediate, XOR, XOR Immediate, Increment, Decrement, Shift Left, Shift Left Carry, Shift Right and Shift Right Carry instructions are executed. Fig. 9 Execution of Sub instruction Fig. 12 Execution of AND instruction Fig. 10 Execution of Sub Immediate instruction Fig. 13 Execution of AND Immediate instruction Fig. 11 Execution of Sub with Borrow instruction Fig. 14 Execution of OR instruction 915

6 Fig. 18 Execution of Increment instruction Fig. 15 Execution of OR Immediate instruction Fig. 16 Execution of XOR instruction Fig. 19 Execution of Decrement instruction Fig.17 Execution of XOR Immediate instruction Fig. 20 Execution of Shift Left instruction 916

7 Fig. 21(a) Execution of Shift Left Carry instruction Fig. 23(a) Execution of Shift Right Carry instruction Fig. 21(b) Execution of Shift Left Carry instruction (continue) Fig. 23(b) Execution of Shift Right Carry instruction (continue) Fig. 22 Execution of Shift Right instruction IX. CONCLUSION In this paper, it is impossible to make the control by hardware control, so it is used the software called microprogram control. By using the software or microprogram control, the cycles per instruction cannot be got exactly because it is difficult to adjust them. As used for PIC18F452, instruction sets are more powerful than PIC 16XXX series. Thus, it supports more to reduce the number of cycles per instruction. But 8-bit CPU is used to hold up the instructions; it cannot reduce the numbers of cycle per instruction more. To execute the instructions exactly, the assembly language is used instead of C language in programming. Not to increase the clock speed and to increase the through part of the CPU it should be tested by extending the size of the instruction or designing the instruction again. According to the data from testing, it can be seen to execute the instructions well and correctly. In making to develop the software, it can be supported more to use PIC ICD2 incircuit debugger or ICE 2000 incircuit emulator. 917

8 ACKNOWLEDGMENT I would like to express my heart-felt thanks to Dr. Ni Lar Thein, Rector, University of Computer Studies, Yangon, for her enthusiastic support and permission to carry out this thesis.i would like to deep appreciation to U Kyaw Swa Soe, Pro-Rector, University of Computer Studies, Yangon, U Win Khaine Moe, Deputy Director General, Myanma Science and Technology Research Department, and Professor Daw Nwe Ni, Head of Computer Hardware Technology Department, University of Computer Studies, Yangon, for their valuable suggestions at the seminars and made it possible for me to complete the whole thesis. I would like to acknowledge and express my gratitude to my external examiner Dr. Mie Mie Thet Thwin, Rector, University of Computer Studies, Mandalay, for her kind permission to use the required laboratory instruments in this research. I would like to especially thank my supervisor Professor Dr. Win Aye, Computer University (Mandalay), for her technical and kindly supports doing this research. I also wish to express my deepest gratitude my parents for their encouragement, understanding and support throughout the period of this painstaking research. Finally, my special thanks are due to my teachers who taught and encouraged me during the period of study and those who were directly or indirectly contributed towards the success of this thesis. [19] Murray Sargent III & Richard L. Shoemaker, The IBM Personal Computer From the Inside Out Revised Edition, Addison-Wesley Publishing Company, Inc,1986 [20] Barry B.Brey, The Intel Microprocessor, Architecture, Programming and Interfacing, Fifth Edition, Prentice-Hall, Inc., 2000 REFERENCES [1] David M Calcutt, Frederick J Cowan& G Hassan Parchizadeh, 8051 Microcontrollers, Hardware, Software and Application, John Wiley& Sons Inc., 1998 [2] James Karney, A+ Certification Training Kit, Second Edition, Microsoft Corporation, 2000 [3] Mark Balch, Complete Digital Design, McGraw-HILL, 2003 [4] John P. Hayes, Computer Architecture and Organization, Third Edition, McGraw-Hill, 1998 [5] John L. Hennessy & David A. Patterson, Computer Architecture: A Quantitative Approach, Fourth Edition, Elsevier Inc., 2007 [6] Sajjan G-Shiva, Computer Design and Architecture, Third Edition, Revisedand Expanded, Marcel Dekker, Inc., 2000 [7] David A. Patterson & John L.Hennessy, Computer Organization and Design Third Edition, Elsevier Inc., 2005 [8] Tim Wilmshurst, Designing Embedded Systems with PIC Microcontrollers Principles and Application, First Edition, Elsevier Ltd [9] Ken Arnold, Embedded Controller Hardware Design, LLH Technology Publishing, 2000 [10] Mostafa Abd-El-Barr & Hesham El-Rewini, Fundamentals of Computer Organization and Architecture, John Wiley & Sons,Inc., 2005 [11] Douglas V. Hall, Microprocessors and Interfacing Programming and Hardware, Second Edition, McGRAW- HILL, 1992 [12] S.A.Money, Microprocessor Data Book, McGraw-Hill, 1982 [13] Julio Sanchez & Maria P. Canton, Microcontroller Programming The Microchip, CRC Press, Taylor & Francis Group, LLC, 2007 [14] Nikitas A. Alexandaridis, Microprocessor System Design Concepts, Computer Science Press Inc., 1984 [15] James M. Sibigtroth, M68HC05 Family Understanding Small Microcontroller, Rev 2.0, Motorola Inc [16] Miles J. Murdocca & Vincent P. Heuring, Principle of Computer Architecture, Class Test Edition, Prentice Hall, 1999 [17] Andrew S. Tanenbaum, Structure Computer Organization, Fourth Edition, Prentice Hall of India, 1999 [18] Vojin G. Oklobdzija, The Computer Engineering Handbook, CRC Press,

INTRODUCTION OF MICROPROCESSOR& INTERFACING DEVICES Introduction to Microprocessor Evolutions of Microprocessor

INTRODUCTION OF MICROPROCESSOR& INTERFACING DEVICES Introduction to Microprocessor Evolutions of Microprocessor Course Title Course Code MICROPROCESSOR & ASSEMBLY LANGUAGE PROGRAMMING DEC415 Lecture : Practical: 2 Course Credit Tutorial : 0 Total : 5 Course Learning Outcomes At end of the course, students will be

More information

Multi Cycle Implementation Scheme for 8 bit Microprocessor by VHDL

Multi Cycle Implementation Scheme for 8 bit Microprocessor by VHDL Multi Cycle Implementation Scheme for 8 bit Microprocessor by VHDL Sharmin Abdullah, Nusrat Sharmin, Nafisha Alam Department of Electrical & Electronic Engineering Ahsanullah University of Science & Technology

More information

Chapter 2 Logic Gates and Introduction to Computer Architecture

Chapter 2 Logic Gates and Introduction to Computer Architecture Chapter 2 Logic Gates and Introduction to Computer Architecture 2.1 Introduction The basic components of an Integrated Circuit (IC) is logic gates which made of transistors, in digital system there are

More information

Processing Unit CS206T

Processing Unit CS206T Processing Unit CS206T Microprocessors The density of elements on processor chips continued to rise More and more elements were placed on each chip so that fewer and fewer chips were needed to construct

More information

Introduction to Microcontrollers

Introduction to Microcontrollers Introduction to Microcontrollers Embedded Controller Simply an embedded controller is a controller that is embedded in a greater system. One can define an embedded controller as a controller (or computer)

More information

Course Description: This course includes concepts of instruction set architecture,

Course Description: This course includes concepts of instruction set architecture, Computer Architecture Course Title: Computer Architecture Full Marks: 60+ 20+20 Course No: CSC208 Pass Marks: 24+8+8 Nature of the Course: Theory + Lab Credit Hrs: 3 Course Description: This course includes

More information

COURSE DELIVERY PLAN - THEORY Page 1 of 6

COURSE DELIVERY PLAN - THEORY Page 1 of 6 COURSE DELIVERY PLAN - THEORY Page 1 of 6 Department of Information Technology B.E/B.Tech/M.E/M.Tech : B.Tech Information Technology Regulation: 2013 Sub. Code / Sub. Name : CS6303 / Computer Architecture

More information

Professor E. Ambikairajah UNSW Sydney

Professor E. Ambikairajah UNSW Sydney ELEC2117 Chapter 3a: PIC16F886 Instruction set Professor Eliathamby Ambikairajah Head of School of Electrical Engineering and Telecommunications, UNSW, Sydney 06 March 2017 Prof E Ambikairajah Instruction

More information

CPU Structure and Function

CPU Structure and Function Computer Architecture Computer Architecture Prof. Dr. Nizamettin AYDIN naydin@yildiz.edu.tr nizamettinaydin@gmail.com http://www.yildiz.edu.tr/~naydin CPU Structure and Function 1 2 CPU Structure Registers

More information

Digital System Design Using Verilog. - Processing Unit Design

Digital System Design Using Verilog. - Processing Unit Design Digital System Design Using Verilog - Processing Unit Design 1.1 CPU BASICS A typical CPU has three major components: (1) Register set, (2) Arithmetic logic unit (ALU), and (3) Control unit (CU) The register

More information

Class Notes. Dr.C.N.Zhang. Department of Computer Science. University of Regina. Regina, SK, Canada, S4S 0A2

Class Notes. Dr.C.N.Zhang. Department of Computer Science. University of Regina. Regina, SK, Canada, S4S 0A2 Class Notes CS400 Part VI Dr.C.N.Zhang Department of Computer Science University of Regina Regina, SK, Canada, S4S 0A2 C. N. Zhang, CS400 83 VI. CENTRAL PROCESSING UNIT 1 Set 1.1 Addressing Modes and Formats

More information

3.1 Description of Microprocessor. 3.2 History of Microprocessor

3.1 Description of Microprocessor. 3.2 History of Microprocessor 3.0 MAIN CONTENT 3.1 Description of Microprocessor The brain or engine of the PC is the processor (sometimes called microprocessor), or central processing unit (CPU). The CPU performs the system s calculating

More information

Introduction to Computers - Chapter 4

Introduction to Computers - Chapter 4 Introduction to Computers - Chapter 4 Since the invention of the transistor and the first digital computer of the 1940s, computers have been increasing in complexity and performance; however, their overall

More information

EE 3170 Microcontroller Applications

EE 3170 Microcontroller Applications EE 3170 Microcontroller Applications Lecture 4 : Processors, Computers, and Controllers - 1.2 (reading assignment), 1.3-1.5 Based on slides for ECE3170 by Profs. Kieckhafer, Davis, Tan, and Cischke Outline

More information

COURSE DELIVERY PLAN - THEORY Page 1 of 6

COURSE DELIVERY PLAN - THEORY Page 1 of 6 COURSE DELIVERY PLAN - THEORY Page 1 of 6 Department of Information Technology B.E/B.Tech/M.E/M.Tech : B.Tech Information Technology Regulation: 2013 Sub. Code / Sub. Name : CS6303 / Computer Architecture

More information

Design and Implementation of Client Server Network Management System for Ethernet LAN

Design and Implementation of Client Server Network Management System for Ethernet LAN Design and Implementation of Client Server Network Management System for Ethernet LAN Ms. MAY PAING PAING ZAW and Ms. SU MYAT MARLAR SOE Abstract Network Management Systems have played a great important

More information

Design of 16-bit RISC Processor Supraj Gaonkar 1, Anitha M. 2

Design of 16-bit RISC Processor Supraj Gaonkar 1, Anitha M. 2 Design of 16-bit RISC Processor Supraj Gaonkar 1, Anitha M. 2 1 M.Tech student, Sir M Visvesvaraya Institute of Technology Bangalore. Karnataka, India 2 Associate Professor Department of Telecommunication

More information

Basics of Microprocessor

Basics of Microprocessor Unit 1 Basics of Microprocessor 1. Microprocessor Microprocessor is a multipurpose programmable integrated device that has computing and decision making capability. This semiconductor IC is manufactured

More information

Computer Architecture Review. ICS332 - Spring 2016 Operating Systems

Computer Architecture Review. ICS332 - Spring 2016 Operating Systems Computer Architecture Review ICS332 - Spring 2016 Operating Systems ENIAC (1946) Electronic Numerical Integrator and Calculator Stored-Program Computer (instead of Fixed-Program) Vacuum tubes, punch cards

More information

Computer Systems Architecture

Computer Systems Architecture Computer Systems Architecture Guoping Qiu School of Computer Science The University of Nottingham http://www.cs.nott.ac.uk/~qiu 1 The World of Computers Computers are everywhere Cell phones Game consoles

More information

Rewa Engineering College, Rewa. Rewa Department OF Electrical Engineering

Rewa Engineering College, Rewa. Rewa Department OF Electrical Engineering Rewa Engineering College, Rewa Rewa 486001 Department OF Electrical Engineering VI TH SEMESTER Microprocessors and Microcontrollers SESSION: 2017-18 Prepared by: Durgesh Choudhary Approved by H.O.D. 1

More information

Chapter 4. The Processor

Chapter 4. The Processor Chapter 4 The Processor Introduction CPU performance factors Instruction count Determined by ISA and compiler CPI and Cycle time Determined by CPU hardware We will examine two MIPS implementations A simplified

More information

Computer Architecture Programming the Basic Computer

Computer Architecture Programming the Basic Computer 4. The Execution of the EXCHANGE Instruction The EXCHANGE routine reads the operand from the effective address and places it in DR. The contents of DR and AC are interchanged in the third microinstruction.

More information

MICROPROGRAMMED CONTROL

MICROPROGRAMMED CONTROL MICROPROGRAMMED CONTROL Hardwired Control Unit: When the control signals are generated by hardware using conventional logic design techniques, the control unit is said to be hardwired. Micro programmed

More information

UNIT- 5. Chapter 12 Processor Structure and Function

UNIT- 5. Chapter 12 Processor Structure and Function UNIT- 5 Chapter 12 Processor Structure and Function CPU Structure CPU must: Fetch instructions Interpret instructions Fetch data Process data Write data CPU With Systems Bus CPU Internal Structure Registers

More information

COMPUTER ORGANIZATION & ARCHITECTURE

COMPUTER ORGANIZATION & ARCHITECTURE COMPUTER ORGANIZATION & ARCHITECTURE Instructions Sets Architecture Lesson 5a 1 What are Instruction Sets The complete collection of instructions that are understood by a CPU Can be considered as a functional

More information

Animation of a VHDL model in Modelsim using Tcl/Tk

Animation of a VHDL model in Modelsim using Tcl/Tk Animation of a VHDL model in Modelsim using Tcl/Tk David Sullins and Hardy J. Pottinger Department of Electrical and Computer Engineering University of Missouri - Rolla Abstract Visualization of the operation

More information

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers Lecture (4) Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers Prof. Kasim M. Al-Aubidy Philadelphia University-Jordan DERTS-MSc, 2015 Prof. Kasim Al-Aubidy 1 Lecture Outline:

More information

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS UNIT I INTRODUCTION TO 8085 8085 Microprocessor - Architecture and its operation, Concept of instruction execution and timing diagrams, fundamentals of

More information

Chapter 3 : Control Unit

Chapter 3 : Control Unit 3.1 Control Memory Chapter 3 Control Unit The function of the control unit in a digital computer is to initiate sequences of microoperations. When the control signals are generated by hardware using conventional

More information

William Stallings Computer Organization and Architecture. Chapter 11 CPU Structure and Function

William Stallings Computer Organization and Architecture. Chapter 11 CPU Structure and Function William Stallings Computer Organization and Architecture Chapter 11 CPU Structure and Function CPU Structure CPU must: Fetch instructions Interpret instructions Fetch data Process data Write data Registers

More information

INTRODUCTION TO MICROPROCESSORS

INTRODUCTION TO MICROPROCESSORS INTRODUCTION TO MICROPROCESSORS Richa Upadhyay Prabhu NMIMS s MPSTME richa.upadhyay@nmims.edu January 7, 2016 Richa Upadhyay Prabhu (MPSTME) INTRODUCTION January 7, 2016 1 / 63 Course Design Prerequisite:

More information

The Processor: Datapath and Control. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

The Processor: Datapath and Control. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University The Processor: Datapath and Control Jin-Soo Kim (jinsookim@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu Introduction CPU performance factors Instruction count Determined

More information

Alcohol Detection using Pic Microcontroller

Alcohol Detection using Pic Microcontroller IJSTE - International Journal of Science Technology & Engineering Volume 3 Issue 09 March 2017 ISSN (online): 2349-784X Alcohol Detection using Pic Microcontroller Thakare Bhagyashri S Department of Electronics

More information

FPGA Implementation of MIPS RISC Processor

FPGA Implementation of MIPS RISC Processor FPGA Implementation of MIPS RISC Processor S. Suresh 1 and R. Ganesh 2 1 CVR College of Engineering/PG Student, Hyderabad, India 2 CVR College of Engineering/ECE Department, Hyderabad, India Abstract The

More information

Various Instruction Addressing Modes Of 8086 Microprocessor Ppt

Various Instruction Addressing Modes Of 8086 Microprocessor Ppt Various Instruction Addressing Modes Of 8086 Microprocessor Ppt This Presentation is Prepared to demonstrate the Protected mode memory However, when in the protected mode, the processor can work either

More information

B.Sc II Year Computer Science (Optional)

B.Sc II Year Computer Science (Optional) Swami Ramanand Teerth Marathwad University, Nanded B.Sc II Year Computer Science (Optional) (Semester Pattern) ( W.E.F. June 2010) Paper No VI VII Paper Title Digital Electronics & 8085 Microprocessor

More information

Honorary Professor Supercomputer Education and Research Centre Indian Institute of Science, Bangalore

Honorary Professor Supercomputer Education and Research Centre Indian Institute of Science, Bangalore COMPUTER ORGANIZATION AND ARCHITECTURE V. Rajaraman Honorary Professor Supercomputer Education and Research Centre Indian Institute of Science, Bangalore T. Radhakrishnan Professor of Computer Science

More information

Module 5 - CPU Design

Module 5 - CPU Design Module 5 - CPU Design Lecture 1 - Introduction to CPU The operation or task that must perform by CPU is: Fetch Instruction: The CPU reads an instruction from memory. Interpret Instruction: The instruction

More information

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015 Advanced Parallel Architecture Lesson 3 Annalisa Massini - 2014/2015 Von Neumann Architecture 2 Summary of the traditional computer architecture: Von Neumann architecture http://williamstallings.com/coa/coa7e.html

More information

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor 1 2 A microprocessor is a single, very-large-scale-integration (VLSI) chip that contains many digital circuits that perform arithmetic, logic, communication, and control functions. When a microprocessor

More information

Chapter 1: Basics of Microprocessor [08 M]

Chapter 1: Basics of Microprocessor [08 M] Microprocessor: Chapter 1: Basics of Microprocessor [08 M] It is a semiconductor device consisting of electronic logic circuits manufactured by using either a Large scale (LSI) or Very Large Scale (VLSI)

More information

Computer Architecture

Computer Architecture Computer Architecture Lecture 1: Digital logic circuits The digital computer is a digital system that performs various computational tasks. Digital computers use the binary number system, which has two

More information

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad Objectives To be familiar with microcontrollers, PIC18F4550 microcontroller. Tools PIC18F4550 Microcontroller, MPLAB software,

More information

Implementation of Low Power High Speed 32 bit ALU using FPGA

Implementation of Low Power High Speed 32 bit ALU using FPGA Implementation of Low Power High Speed 32 bit ALU using FPGA J.P. Verma Assistant Professor (Department of Electronics & Communication Engineering) Maaz Arif; Brij Bhushan Choudhary& Nitish Kumar Electronics

More information

Design of a Pipelined 32 Bit MIPS Processor with Floating Point Unit

Design of a Pipelined 32 Bit MIPS Processor with Floating Point Unit Design of a Pipelined 32 Bit MIPS Processor with Floating Point Unit P Ajith Kumar 1, M Vijaya Lakshmi 2 P.G. Student, Department of Electronics and Communication Engineering, St.Martin s Engineering College,

More information

1. Fundamental Concepts

1. Fundamental Concepts 1. Fundamental Concepts 1.1 What is a computer? A computer is a data processing machine which is operated automatically under the control of a list of instructions (called a program) stored in its main

More information

Design and Implementation of 5 Stages Pipelined Architecture in 32 Bit RISC Processor

Design and Implementation of 5 Stages Pipelined Architecture in 32 Bit RISC Processor Design and Implementation of 5 Stages Pipelined Architecture in 32 Bit RISC Processor Abstract The proposed work is the design of a 32 bit RISC (Reduced Instruction Set Computer) processor. The design

More information

ASSEMBLY LANGUAGE MACHINE ORGANIZATION

ASSEMBLY LANGUAGE MACHINE ORGANIZATION ASSEMBLY LANGUAGE MACHINE ORGANIZATION CHAPTER 3 1 Sub-topics The topic will cover: Microprocessor architecture CPU processing methods Pipelining Superscalar RISC Multiprocessing Instruction Cycle Instruction

More information

Microcontrollers. Microcontroller

Microcontrollers. Microcontroller Microcontrollers Microcontroller A microprocessor on a single integrated circuit intended to operate as an embedded system. As well as a CPU, a microcontroller typically includes small amounts of RAM and

More information

CS3350B Computer Architecture Winter 2015

CS3350B Computer Architecture Winter 2015 CS3350B Computer Architecture Winter 2015 Lecture 5.5: Single-Cycle CPU Datapath Design Marc Moreno Maza www.csd.uwo.ca/courses/cs3350b [Adapted from lectures on Computer Organization and Design, Patterson

More information

Blog - https://anilkumarprathipati.wordpress.com/

Blog - https://anilkumarprathipati.wordpress.com/ Control Memory 1. Introduction The function of the control unit in a digital computer is to initiate sequences of microoperations. When the control signals are generated by hardware using conventional

More information

Blog -

Blog - . Instruction Codes Every different processor type has its own design (different registers, buses, microoperations, machine instructions, etc) Modern processor is a very complex device It contains Many

More information

The von Neumann Architecture. IT 3123 Hardware and Software Concepts. The Instruction Cycle. Registers. LMC Executes a Store.

The von Neumann Architecture. IT 3123 Hardware and Software Concepts. The Instruction Cycle. Registers. LMC Executes a Store. IT 3123 Hardware and Software Concepts February 11 and Memory II Copyright 2005 by Bob Brown The von Neumann Architecture 00 01 02 03 PC IR Control Unit Command Memory ALU 96 97 98 99 Notice: This session

More information

Have difficulty identifying any products Not incorporating embedded processor FPGA or CPLD In one form or another

Have difficulty identifying any products Not incorporating embedded processor FPGA or CPLD In one form or another Introduction Embedded systems Continue pervasive expansion into Vast variety of electronic systems and products Aircraft and automobiles games and medical equipment Have difficulty identifying any products

More information

Microcontrollers and Applications. Revised Edition

Microcontrollers and Applications. Revised Edition Microcontrollers and Applications Revised Edition Microcontrollers and Applications Revised Edition Dr. Ramani Kalpathi Mr. Ganesh Raja Powerso Systems Chennai Sanguine Technical Publishers Bangalore -

More information

EC4205 Microprocessor and Microcontroller

EC4205 Microprocessor and Microcontroller EC4205 Microprocessor and Microcontroller Webcast link: https://sites.google.com/a/bitmesra.ac.in/aminulislam/home All announcement made through webpage: check back often Students are welcome outside the

More information

Visualizing Data Flow and Control Signaling Inside the Microprocessor

Visualizing Data Flow and Control Signaling Inside the Microprocessor Visualizing Data Flow and Control Signaling Inside the Microprocessor Ms. Isha Sharma 1, Mrs. Neha Sharma 2, Mr. Jitender Chhabra 3 1 M.Tech. Scholar, SGTIET, Gurgaon. 2 Asst. Professor, SGTIET, Gurgaon

More information

GOPALAN COLLEGE OF ENGINEERING AND MANAGEMENT Department of Mechanical Engineering COURSE PLAN

GOPALAN COLLEGE OF ENGINEERING AND MANAGEMENT Department of Mechanical Engineering COURSE PLAN Appendix - C GOPALAN COLLEGE OF ENGINEERING AND MANAGEMENT Department of Mechanical Engineering Academic Year: 2017 Semester: EVEN COURSE PLAN Semester: VI SubjectCode&Name:10ME65 Mechatronics & Microprocessor

More information

Microcomputer Architecture and Programming

Microcomputer Architecture and Programming IUST-EE (Chapter 1) Microcomputer Architecture and Programming 1 Outline Basic Blocks of Microcomputer Typical Microcomputer Architecture The Single-Chip Microprocessor Microprocessor vs. Microcontroller

More information

Sample Copy. Not For Distribution.

Sample Copy. Not For Distribution. Microprocessor 8085 i Publishing-in-support-of, EDUCREATION PUBLISHING RZ 94, Sector - 6, Dwarka, New Delhi - 110075 Shubham Vihar, Mangla, Bilaspur, Chhattisgarh - 495001 Website: www.educreation.in Copyright,

More information

DOWNLOAD OR READ : COMPUTER ORGANIZATION DESIGN PDF EBOOK EPUB MOBI

DOWNLOAD OR READ : COMPUTER ORGANIZATION DESIGN PDF EBOOK EPUB MOBI DOWNLOAD OR READ : COMPUTER ORGANIZATION DESIGN PDF EBOOK EPUB MOBI Page 1 Page 2 computer organization design computer organization design pdf computer organization design COMPUTER ORGANIZATION AND DESIGN

More information

Computer Organization

Computer Organization Computer Organization KR Chowdhary Professor & Head Email: kr.chowdhary@gmail.com webpage: krchowdhary.com Department of Computer Science and Engineering MBM Engineering College, Jodhpur November 14, 2013

More information

Computer Organization CS 206 T Lec# 2: Instruction Sets

Computer Organization CS 206 T Lec# 2: Instruction Sets Computer Organization CS 206 T Lec# 2: Instruction Sets Topics What is an instruction set Elements of instruction Instruction Format Instruction types Types of operations Types of operand Addressing mode

More information

Microprocessors and Microcontrollers Prof. Santanu Chattopadhyay Department of E & EC Engineering Indian Institute of Technology, Kharagpur

Microprocessors and Microcontrollers Prof. Santanu Chattopadhyay Department of E & EC Engineering Indian Institute of Technology, Kharagpur Microprocessors and Microcontrollers Prof. Santanu Chattopadhyay Department of E & EC Engineering Indian Institute of Technology, Kharagpur Lecture - 09 8085 Microprocessors (Contd.) (Refer Slide Time:

More information

Computer Logic II CCE 2010

Computer Logic II CCE 2010 Computer Logic II CCE 2010 Dr. Owen Casha Computer Logic II 1 The Processing Unit Computer Logic II 2 The Processing Unit In its simplest form, a computer has one unit that executes program instructions.

More information

CC312: Computer Organization

CC312: Computer Organization CC312: Computer Organization Dr. Ahmed Abou EL-Farag Dr. Marwa El-Shenawy 1 Chapter 4 MARIE: An Introduction to a Simple Computer Chapter 4 Objectives Learn the components common to every modern computer

More information

Basic Processing Unit: Some Fundamental Concepts, Execution of a. Complete Instruction, Multiple Bus Organization, Hard-wired Control,

Basic Processing Unit: Some Fundamental Concepts, Execution of a. Complete Instruction, Multiple Bus Organization, Hard-wired Control, UNIT - 7 Basic Processing Unit: Some Fundamental Concepts, Execution of a Complete Instruction, Multiple Bus Organization, Hard-wired Control, Microprogrammed Control Page 178 UNIT - 7 BASIC PROCESSING

More information

1DT157 Digitalteknik och datorarkitekt. Digital technology and computer architecture, 5p

1DT157 Digitalteknik och datorarkitekt. Digital technology and computer architecture, 5p 1DT157 Digitalteknik och datorarkitekt Digital technology and computer architecture, 5p This is 1DT157 Digitalteknik och datorarkitekt Instructor: Stefanos Kaxiras Few things about me: Visiting professor

More information

Control System Consideration of IR Sensors based Tricycle Drive Wheeled Mobile Robot

Control System Consideration of IR Sensors based Tricycle Drive Wheeled Mobile Robot Control System Consideration of IR Sensors based Tricycle Drive Wheeled Mobile Robot Aye Aye New, Aye Aye Zan, and Wai Phyo Aung Abstract Nowadays, Wheeled Mobile Robots (WMRs) are built and the control

More information

Chapter 4. MARIE: An Introduction to a Simple Computer

Chapter 4. MARIE: An Introduction to a Simple Computer Chapter 4 MARIE: An Introduction to a Simple Computer Chapter 4 Objectives Learn the components common to every modern computer system. Be able to explain how each component contributes to program execution.

More information

Chapter 16. Control Unit Operation. Yonsei University

Chapter 16. Control Unit Operation. Yonsei University Chapter 16 Control Unit Operation Contents Micro-Operation Control of the Processor Hardwired Implementation 16-2 Micro-Operations Micro-Operations Micro refers to the fact that each step is very simple

More information

Implementation of a pipelined MIPS CPU with single cycle

Implementation of a pipelined MIPS CPU with single cycle Implementation of a pipelined MIPS CPU with single cycle S.G.Nafreen Sultana 1, K.Sudhakar 2 K.PrasadBabu 3 S.Ahmed Basha 4 1 15G31D0610 M.Tech DSCE, Sjcet, Yerrakota, Kurnool, Andhra Pradesh India 2 HOD

More information

Chapter 4. The Processor

Chapter 4. The Processor Chapter 4 The Processor Introduction CPU performance factors Instruction count Determined by ISA and compiler CPI and Cycle time Determined by CPU hardware 4.1 Introduction We will examine two MIPS implementations

More information

Computer Architecture and Organization

Computer Architecture and Organization 6-1 Chapter 6 - Languages and the Machine Computer Architecture and Organization Miles Murdocca and Vincent Heuring Chapter 6 Languages and the Machine 6-2 Chapter 6 - Languages and the Machine Chapter

More information

Microprocessor Theory

Microprocessor Theory Microprocessor Theory and Applications with 68000/68020 and Pentium M. RAFIQUZZAMAN, Ph.D. Professor California State Polytechnic University Pomona, California and President Rafi Systems, Inc. WILEY A

More information

Microprocessors and Microcontrollers. Assignment 1:

Microprocessors and Microcontrollers. Assignment 1: Microprocessors and Microcontrollers Assignment 1: 1. List out the mass storage devices and their characteristics. 2. List the current workstations available in the market for graphics and business applications.

More information

COMPUTER ORGANIZATION AND DESIGN. 5 th Edition. The Hardware/Software Interface. Chapter 4. The Processor

COMPUTER ORGANIZATION AND DESIGN. 5 th Edition. The Hardware/Software Interface. Chapter 4. The Processor COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface 5 th Edition Chapter 4 The Processor Introduction CPU performance factors Instruction count Determined by ISA and compiler CPI and Cycle

More information

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085. (1) Draw and explain the internal architecture of 8085. The architecture of 8085 Microprocessor is shown in figure given below. The internal architecture of 8085 includes following section ALU-Arithmetic

More information

Computer Organization

Computer Organization Computer Organization (Instruction set Architecture & Assembly Language Programming) KR Chowdhary Professor & Head Email: kr.chowdhary@gmail.com webpage: krchowdhary.com Department of Computer Science

More information

Chapter 4. Instruction Execution. Introduction. CPU Overview. Multiplexers. Chapter 4 The Processor 1. The Processor.

Chapter 4. Instruction Execution. Introduction. CPU Overview. Multiplexers. Chapter 4 The Processor 1. The Processor. COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface 5 th Edition COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface 5 th Edition Chapter 4 The Processor The Processor - Introduction

More information

ECE232: Hardware Organization and Design

ECE232: Hardware Organization and Design ECE232: Hardware Organization and Design Lecture 2: Hardware/Software Interface Adapted from Computer Organization and Design, Patterson & Hennessy, UCB Overview Basic computer components How does a microprocessor

More information

COMPUTER ORGANIZATION AND DESIGN. 5 th Edition. The Hardware/Software Interface. Chapter 4. The Processor

COMPUTER ORGANIZATION AND DESIGN. 5 th Edition. The Hardware/Software Interface. Chapter 4. The Processor COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface 5 th Edition Chapter 4 The Processor COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface 5 th Edition The Processor - Introduction

More information

Computer Hardware Requirements for Real-Time Applications

Computer Hardware Requirements for Real-Time Applications Lecture (4) Computer Hardware Requirements for Real-Time Applications Prof. Kasim M. Al-Aubidy Computer Engineering Department Philadelphia University Real-Time Systems, Prof. Kasim Al-Aubidy 1 Lecture

More information

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

Figure 1.1: Some embedded device. In this course we shall learn microcontroller and FPGA based embedded system. Course Code: EEE 4846 International Islamic University Chittagong (IIUC) Department of Electrical and Electronic Engineering (EEE) Course Title: Embedded System Sessional Exp. 1: Familiarization with necessary

More information

BASIC INTERFACING CONCEPTS

BASIC INTERFACING CONCEPTS Contents i SYLLABUS UNIT - I 8085 ARCHITECTURE Introduction to Microprocessors and Microcontrollers, 8085 Processor Architecture, Internal Operations, Instructions and Timings, Programming the 8085-Introduction

More information

VLSI DESIGN OF REDUCED INSTRUCTION SET COMPUTER PROCESSOR CORE USING VHDL

VLSI DESIGN OF REDUCED INSTRUCTION SET COMPUTER PROCESSOR CORE USING VHDL International Journal of Electronics, Communication & Instrumentation Engineering Research and Development (IJECIERD) ISSN 2249-684X Vol.2, Issue 3 (Spl.) Sep 2012 42-47 TJPRC Pvt. Ltd., VLSI DESIGN OF

More information

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller of 8085 microprocessor 8085 is pronounced as "eighty-eighty-five" microprocessor. It is an 8-bit microprocessor designed by Intel in 1977 using NMOS technology. It has the following configuration 8-bit

More information

Computer Organization

Computer Organization INF 101 Fundamental Information Technology Computer Organization Assistant Prof. Dr. Turgay ĐBRĐKÇĐ Course slides are adapted from slides provided by Addison-Wesley Computing Fundamentals of Information

More information

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: 1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: A microprocessor is a programmable electronics chip that has computing and decision making capabilities similar to central processing unit

More information

Chapter 2 Lecture 1 Computer Systems Organization

Chapter 2 Lecture 1 Computer Systems Organization Chapter 2 Lecture 1 Computer Systems Organization This chapter provides an introduction to the components Processors: Primary Memory: Secondary Memory: Input/Output: Busses The Central Processing Unit

More information

CPU Structure and Function. Chapter 12, William Stallings Computer Organization and Architecture 7 th Edition

CPU Structure and Function. Chapter 12, William Stallings Computer Organization and Architecture 7 th Edition CPU Structure and Function Chapter 12, William Stallings Computer Organization and Architecture 7 th Edition CPU must: CPU Function Fetch instructions Interpret/decode instructions Fetch data Process data

More information

Microprocessor (COM 9323)

Microprocessor (COM 9323) Microprocessor (COM 9323) Lecture 1: Introduction Ahmed Elnakib, PhD Assistant Professor, Mansoura University, Egypt Feb 17 th, 2016 1 Course Syllabus* o Introduction to computer architecture o Basics

More information

CSE 141L Computer Architecture Lab Fall Lecture 3

CSE 141L Computer Architecture Lab Fall Lecture 3 CSE 141L Computer Architecture Lab Fall 2005 Lecture 3 Pramod V. Argade November 1, 2005 Fall 2005 CSE 141L Course Schedule Lecture # Date Day Lecture Topic Lab Due 1 9/27 Tuesday No Class 2 10/4 Tuesday

More information

32 bit Arithmetic Logical Unit (ALU) using VHDL

32 bit Arithmetic Logical Unit (ALU) using VHDL 32 bit Arithmetic Logical Unit (ALU) using VHDL 1, Richa Singh Rathore 2 1 M. Tech Scholar, Department of ECE, Jayoti Vidyapeeth Women s University, Rajasthan, INDIA, dishamalik26@gmail.com 2 M. Tech Scholar,

More information

COURSE STRUCTURE AND SYLLABUS APPROVED IN THE BOARD OF STUDIES MEETING HELD ON JULY TO BE EFFECTIVE FROM THE ACADEMIC YEAR

COURSE STRUCTURE AND SYLLABUS APPROVED IN THE BOARD OF STUDIES MEETING HELD ON JULY TO BE EFFECTIVE FROM THE ACADEMIC YEAR COURSE STRUCTURE AND SYLLABUS APPROVED IN THE BOARD OF STUDIES MEETING HELD ON JULY- 2000 TO BE EFFECTIVE FROM THE ACADEMIC YEAR 2000-2001 MCA SEMESTER -1 Scheme of evaluation Max. Marks Min. Marks to

More information

ELC4438: Embedded System Design Embedded Processor

ELC4438: Embedded System Design Embedded Processor ELC4438: Embedded System Design Embedded Processor Liang Dong Electrical and Computer Engineering Baylor University 1. Processor Architecture General PC Von Neumann Architecture a.k.a. Princeton Architecture

More information

CSE Introduction to Computer Architecture. Jeff Brown

CSE Introduction to Computer Architecture. Jeff Brown CSE 141-- Introduction to Computer Architecture What is Computer Architecture? Hardware Designer thinks about circuits, components, timing, functionality, ease of debugging construction engineer Computer

More information

Single cycle MIPS data path without Forwarding, Control, or Hazard Unit

Single cycle MIPS data path without Forwarding, Control, or Hazard Unit Single cycle MIPS data path without Forwarding, Control, or Hazard Unit Figure 1: an Overview of a MIPS datapath without Control and Forwarding (Patterson & Hennessy, 2014, p. 287) A MIPS 1 single cycle

More information

COURSE DESCRIPTION. CS 232 Course Title Computer Organization. Course Coordinators

COURSE DESCRIPTION. CS 232 Course Title Computer Organization. Course Coordinators COURSE DESCRIPTION Dept., Number Semester hours CS 232 Course Title Computer Organization 4 Course Coordinators Badii, Joseph, Nemes 2004-2006 Catalog Description Comparative study of the organization

More information