Computer Fundamentals ELEC 330 Digital Systems Engineering Dr. Ron Hayne.

Slides:



Advertisements
Similar presentations
Microprocessor and Microcontroller Fundamentals
Advertisements

EE1A2 Microprocessor Systems & Digital Logic Part I Digital Electronic System Design Dr. T. Collins.
SOFTWARE ARCHITECTURE OF THE 8088 AND 8086 MICROPROCESSORS
Processor System Architecture
© 2010 Kettering University, All rights reserved..
MICRO PROCESSER The micro processer is a multipurpose programmable, clock driven, register based, electronic integrated device that has computing and decision.
Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
CHAPTER 4 COMPUTER SYSTEM – Von Neumann Model
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
Microcontroller based system design
Counters and Registers
Microcontroller Architecture PIC18F Family
CS-280 Dr. Mark L. Hornick 1 Parts of a GP Computer (Microcomputer) Contains separate Microprocessor chip Memory/Memory controller MB control chips Peripheral.
Programmable Logic Controllers
CSC 101 Introduction to Computing Lecture 9 Dr. Iftikhar Azim Niaz 1.
University of Texas Pan AmDr. John P. Abraham Information Technology Computer Architecture Dr. John P. Abraham.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
Eng.Samra Essalaimeh Philadelphia University 2013/ nd Semester PIC Microcontrollers.
Basic Architecture Lecture 15. In general, if the number of bits is n, then the number of different combinations of 0s and 1s that can be made is 2 n.
Computer Systems Organization CS 1428 Foundations of Computer Science.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
CSE 241 Computer Organization Lecture # 9 Ch. 4 Computer Arithmetic Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 2.
Number Systems ELEC 311 Digital Logic and Circuits Dr. Ron Hayne Images Courtesy of Cengage Learning.
Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is.
Introduction to Computing Systems from bits & gates to C & beyond The Von Neumann Model Basic components Instruction processing.
Introduction to Computer Science 1 With Examples in Visual Basic, C, C++, and Java 1 Mata-Toledo, Ramon A. & Cushman, Pauline K. McGraw-Hill,
CPU Internal memory I/O interface circuit System bus
ECE 301 – Digital Electronics Unsigned and Signed Numbers, Binary Arithmetic of Signed Numbers, and Binary Codes (Lecture #2)
General Concepts of Computer Organization Overview of Microcomputer.
Chapter 7 Logic Circuits 1.State the advantages of digital technology compared to analog technology. 2. Understand the terminology of digital circuits.
CSNB374: Microprocessor Systems Chapter 1: Introduction to Microprocessor.
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
I/O Memory Reg File ALU Program Counter Instruction Register Control Interconnect Control 1)PC contains mem address of Instruction, 2)From memory, instr.
8085. Microcomputer Major components of the computer - the processor, the control unit, one or more memory ICs, one or more I/O ICs, and the clock Major.
Introduction to Microprocessors
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
12/13/ _01 1 Computer Organization EEC-213 Computer Organization Electrical and Computer Engineering.
MICROOCESSORS AND MICROCONTROLLER:
Computer Organization CDA 3103 Dr. Hassan Foroosh Dept. of Computer Science UCF © Copyright Hassan Foroosh 2002.
Dale & Lewis Chapter 5 Computing components
MECH1500 Chapter 3.
Introduction ELEC 330 Digital Systems Engineering Dr. Ron Hayne.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
The Computer System.
Computer Architecture Lecture 4 by Engineer A. Lecturer Aymen Hasan AlAwady 17/11/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
CHAPTER 6 ARITHMETIC, LOGIC INSTRUCTIONS, AND PROGRAMS.
ECE 2110: Introduction to Digital Systems
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
MicroProcessors Lec. 4 Dr. Tamer Samy Gaafar. Course Web Page —
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Microprocessor and Microcontroller Fundamentals
Microprocessor and Microcontroller Fundamentals
Control Unit Lecture 6.
Computing Systems Organization
ELECTRONICS AND COMMUNICATION ENGINEERING
Digital Arithmetic Wen-Hung Liao, Ph.D..
IPCOWALA INSTITUTE OF ENGINEERING & TECHNOLOGY-DHARMAJ
Homework Reading Machine Projects Labs
Chapter 2 – Computer hardware
Digital Logic Last Time … This Time … Control Path, Arithmetic Ops a
Computer Architecture
Number Representations and Basic Processor Architecture
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Digital Circuits and Logic
Arithmetic Circuits.
A Top-Level View Of Computer Function And Interconnection
Computer Architecture CST 250
Presentation transcript:

Computer Fundamentals ELEC 330 Digital Systems Engineering Dr. Ron Hayne

330_012 Review of Number Systems  Number Systems (Conversions) Binary Octal Hex  Negative Numbers Two’s Complement Sign Extension  Arithmetic Addition (Subtraction)  Codes BCD ASCII

330_013 Positional Number Systems

330_014 Binary

330_015 Number Systems

330_016 Octal and Hexadecimal

330_017 Octal and Hexadecimal

330_018 Conversions = ? R 12 3 R 02 1 R 12 0 R 1 (MSB) x 2 = x 2 = x 2 = 1.0 (LSB) =

330_019 Binary Addition (Full Adder) C IN XYC OUT S

330_ bit Addition Example X + Y S

330_0111 Negative Numbers

330_0112 Two’s Complement  MSB serves as sign bit (fixed-width) 0 => positive 1 => negative  Negation Operation Complement all bits Add 1  Alternate Negation Operation Starting from right to left Copy up to and including the first 1 Complement the rest

330_ = = Two’s Complement (4-bit) = = =

330_0114 Two’s Complement Arithmetic  Examples (4-bit) = = ?

330_0115 Overflow  Operation produces a result that exceeds the number system  Example (4-bits) Range -8 to +7  Detection Rule Overflow occurs if the addends’ signs are the same, but the sum’s sign is different from the addends’

330_0116 Sign Extension  Converting a Two’s Complement Number to an Equivalent with More Bits 4-bit to 8-bit 8-bit to 16-bit  Reproduce the Sign Bit +6 = bit = bit -6 = bit = bit

330_0117 Binary-Coded Decimal (BCD)  Encodes digits 0 thru 9  4-bit unsigned binary 0000 thru 1001  6 unused code words 1010 thru 1111  Packed BCD 8-bit byte 2 BCD digits

330_0118 BCD Arithmetic  Correction made if result exceeds 1001 Add 6 Produces carry

330_0119 Character Codes  ASCII (7-bits) American Standard Code for Information Interchange

330_0120 Summary  Number Systems (Conversions) Binary Octal Hex  Negative Numbers Two’s Complement Sign Extension  Arithmetic Addition (Subtraction)  Codes BCD ASCII

330_0121 Digital Systems  Logic Gates  Building Blocks Combinational Sequential Memory  Examples Synchronous Serial Communications Instruction-controlled Information Processor

330_0122 Logic Gates X  Y X  Y X _

330_0123 More Logic Gates X  Y _____ X  Y _____

330_0124 Binary Decoder (n-to-2 n )  Activates exactly one of 2 n outputs based on an n-bit input value

330_0125 Multiplexer  Digital Switch Selects 1 of n sources Based on s control lines n = 2 s Sources b bits wide

330_0126 Arithmetic Logic Unit (ALU)

330_0127 Edge-Triggered D Flip-Flop

330_ bit Binary Counter  Synchronous Active-low Load Active-low Clear  Two Enables ENP (parallel) ENT  Ripple Carry Out RCO (ENT) Cascading

330_0129 Universal Shift Register

330_0130 Register Notation  Serial Transfer  Parallel Transfer  Register Contents RC Logical Shift Left0 R B 5

330_0131 Buses and Transfer Gates Transfer 8 8

330_0132 Memory Organization  Dimensions n-bit words k-bit address  Operations Read, Load, Fetch Write, Store Memory first word next word last word n bits Address k

330_0133 Memory  Memory Signals  Memory Model Mem Address Data Read/Write Clock 0000    C329B6 C23AC1 C23B33    FFFF22

330_0134 Example Digital System  Synchronous Serial Communications Parallel Register Shift Register Control Unit CountF Slave Device Master Device Transmit Receive Clock

330_0135 Example Digital System  Instruction-controlled Information Processor Arithmetic Logic Unit Registers Transfer Gates Input Port Output Port Control Unit

ALU AB OUT Processor XIN LALB XAXB LOUT C0 C1 Control Unit C0 C1 XA XB LA LB XIN LOUT Clock OUT IN C0 C1Operation 00 IN1 + IN2  OUT 01 IN1 + IN2 + 1  OUT 10 IN1 + IN2  OUT 11 IN1 + IN2 + 1  OUT

330_0137 System Operation  IN - B  OUT Control Signals StepRTLXINLALBXAXBC0C1LOUT 1 IN  A A - B  A A  OUT X00XXXX1

330_0138 Summary  Logic Gates  Building Blocks Combinational Sequential Memory  Examples Synchronous Serial Communications Instruction-controlled Information Processor

330_0139 Processors  Stored Program Processors  General-Purpose Computers  Microprocessors  Microcomputers  Microcontrollers

330_0140 Building Blocks  Clock  Processor ALU Registers  Control Unit  Memory  Input/Output

330_0141 Stored Program Processor Input/ Output Processor Control Unit In Out Data Memory Data Control Instruction Control/Status Clock

330_0142 Memory  Instructions Program Software  Data Load Store  Memory Model 0000    C329B6 C23AC1 C23B33    FFFF22

330_0143 Instruction Operation  Fetch Phase PC Program Counter IR Instruction Register M[PC]  IR PC + 1  PC  Execute Phase Instruction dependent Example: Load Accumulator A LDAA $34 M[34]  A

330_0144 General-Purpose Computer  Arithmetic Operations  Logical Operations  Load and Store Operations  Testing and Branching  Input and Output

330_0145 Computer Architecture  Princeton  von Neumann Memory holds both instructions and data Input/ Output Processor Control Unit In Out Data Memory Data Control Instruction Control/Status Clock

330_0146 Computer Architecture  Harvard Separate instruction and data memories Input/ Output Processor Control Unit In Out Data Memory Data Control Instruction Control/Status Clock Instruction Memory

330_0147 Microprocessor/Microcomputer  Microprocessor Single Integrated Circuit (IC) Processor and Control Unit  Microcomputer Single Printed Circuit Board Interconnection of multiple ICs Microprocessor, Memory, I/O, Clock  Microcontroller Single-Chip Microcomputer

330_0148 Microcomputer/Microcontroller Input/ Output Processor Control Unit Memory Clock Microcomputer/Microcontroller Microprocessor

330_0149 Embedded Control Systems  Microcomputer inside a device that is not called a computer Satellite TV Receivers Microwave Ovens Programmable Thermostats Automobiles Robotics

330_0150 Personal Computers  PC Collection of components that contain many microcomputers Central Microcomputer (CPU) Keyboard Controller Disk Drive Interface Display Monitor Interface Printer

330_0151 Summary  Stored Program Processors  General-Purpose Computers  Microprocessors  Microcomputers  Microcontrollers