Systems Programming. Lecture 2 Review of Computer Architecture I

Similar documents
ELCT 501: Digital System Design

Microcomputers. Outline. Number Systems and Digital Logic Review

3. The high voltage level of a digital signal in positive logic is : a) 1 b) 0 c) either 1 or 0

ECE 331: N0. Professor Andrew Mason Michigan State University. Opening Remarks

1. Mark the correct statement(s)

LECTURE 4. Logic Design

R10. II B. Tech I Semester, Supplementary Examinations, May

Scheme G. Sample Test Paper-I

Digital Logic Design Exercises. Assignment 1

Principles of Digital Techniques PDT (17320) Assignment No State advantages of digital system over analog system.

CONTENTS CHAPTER 1: NUMBER SYSTEM. Foreword...(vii) Preface... (ix) Acknowledgement... (xi) About the Author...(xxiii)

HANSABA COLLEGE OF ENGINEERING & TECHNOLOGY (098) SUBJECT: DIGITAL ELECTRONICS ( ) Assignment

1. Draw general diagram of computer showing different logical components (3)

BUILDING BLOCKS OF A BASIC MICROPROCESSOR. Part 1 PowerPoint Format of Lecture 3 of Book

DIGITAL ELECTRONICS. P41l 3 HOURS

ECE 2030B 1:00pm Computer Engineering Spring problems, 5 pages Exam Two 10 March 2010

Code No: R Set No. 1

DIGITAL ELECTRONICS. Vayu Education of India

1. Prove that if you have tri-state buffers and inverters, you can build any combinational logic circuit. [4]

MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR

SIR C.R.REDDY COLLEGE OF ENGINEERING, ELURU DEPARTMENT OF INFORMATION TECHNOLOGY LESSON PLAN

This tutorial gives a complete understanding on Computer Logical Organization starting from basic computer overview till its advanced architecture.

B.Tech II Year I Semester (R13) Regular Examinations December 2014 DIGITAL LOGIC DESIGN

Digital Circuit Design and Language. Datapath Design. Chang, Ik Joon Kyunghee University

Code No: R Set No. 1

QUESTION BANK FOR TEST

Hours / 100 Marks Seat No.

Logic design Ibn Al Haitham collage /Computer science Eng. Sameer

Code No: 07A3EC03 Set No. 1

Code No: R Set No. 1

R a) Simplify the logic functions from binary to seven segment display code converter (8M) b) Simplify the following using Tabular method

Ripple Counters. Lecture 30 1

END-TERM EXAMINATION

IT 201 Digital System Design Module II Notes

Injntu.com Injntu.com Injntu.com R16

Philadelphia University Student Name: Student Number:

Federal Urdu University of Arts, Science and Technology, Islamabad VLSI SYSTEM DESIGN. Prepared By: Engr. Yousaf Hameed.

II/IV B.Tech (Regular/Supplementary) DEGREE EXAMINATION. Answer ONE question from each unit.

CS8803: Advanced Digital Design for Embedded Hardware

that system. weighted value associated with it. numbers. a number. the absence of a signal. MECH 1500 Quiz 2 Review Name: Class: Date:

Dec Hex Bin ORG ; ZERO. Introduction To Computing

Chapter 2 Basic Logic Circuits and VHDL Description

(ii) Simplify and implement the following SOP function using NOR gates:

EE292: Fundamentals of ECE

CS 261 Fall Mike Lam, Professor. Combinational Circuits

Lecture Topics. Announcements. Today: Integer Arithmetic (P&H ) Next: continued. Consulting hours. Introduction to Sim. Milestone #1 (due 1/26)

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING EC6302 DIGITAL ELECTRONICS

Digital Logic Lecture 4 Binary Codes

Read this before starting!

CS 261 Fall Mike Lam, Professor. Logic Gates

Basic Arithmetic (adding and subtracting)

ELCT201: DIGITAL LOGIC DESIGN

Computer Logical Organization Tutorial

Binary. Hexadecimal BINARY CODED DECIMAL

UNIVERSITY POLYTECHNIC B.I.T., MESRA, RANCHI. COURSE STRUCTURE (W.E.F Batch Students) (Total Unit 7.5) Sessional Unit Code. Theory Unit Course

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

LABORATORY MANUAL VLSI DESIGN LAB EE-330-F

DIGITAL CIRCUIT LOGIC UNIT 7: MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES

Digital Fundamentals. Lab 6 2 s Complement / Digital Calculator

DE Solution Set QP Code : 00904

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Introduction to Computing Module No: CS/ES/1 Quadrant 1 e-text

SHRI ANGALAMMAN COLLEGE OF ENGINEERING. (An ISO 9001:2008 Certified Institution) SIRUGANOOR, TIRUCHIRAPPALLI

ECE 341 Midterm Exam

History of Computing. Ahmed Sallam 11/28/2014 1

Final Exam Solution Sunday, December 15, 10:05-12:05 PM

ECE 2030D Computer Engineering Spring problems, 5 pages Exam Two 8 March 2012

CS/COE 0447 Example Problems for Exam 2 Spring 2011

Question Total Possible Test Score Total 100

Midterm Exam Review. CS 2420 :: Fall 2016 Molly O'Neil

SIDDHARTH GROUP OF INSTITUTIONS :: PUTTUR Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE)

R07. Code No: V0423. II B. Tech II Semester, Supplementary Examinations, April

One and a half hours. Section A is COMPULSORY UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE

ELCT201: DIGITAL LOGIC DESIGN

UPY14602-DIGITAL ELECTRONICS AND MICROPROCESSORS Lesson Plan

Boolean Algebra and Logic Gates

Read this before starting!

Henry Lin, Department of Electrical and Computer Engineering, California State University, Bakersfield Lecture 7 (Digital Logic) July 24 th, 2012

SUBJECT CODE: IT T35 DIGITAL SYSTEM DESIGN YEAR / SEM : 2 / 3

2008 The McGraw-Hill Companies, Inc. All rights reserved.

CO Computer Architecture and Programming Languages CAPL. Lecture 9

CPE 335 Computer Organization. MIPS Arithmetic Part I. Content from Chapter 3 and Appendix B

An Introduction to the Logic. Silicon Chips

Inf2C - Computer Systems Lecture 2 Data Representation

KING FAHD UNIVERSITY OF PETROLEUM & MINERALS COMPUTER ENGINEERING DEPARTMENT

D I G I T A L C I R C U I T S E E

COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING QUESTION BANK SUBJECT CODE & NAME: EC 1312 DIGITAL LOGIC CIRCUITS UNIT I

SWITCHING THEORY AND LOGIC CIRCUITS

VALLIAMMAI ENGINEERING COLLEGE

Department of Electrical and Computer Engineering University of Wisconsin - Madison. ECE/CS 352 Digital System Fundamentals.

Lecture 21: Combinational Circuits. Integrated Circuits. Integrated Circuits, cont. Integrated Circuits Combinational Circuits

FPGA Design Challenge :Techkriti 14 Digital Design using Verilog Part 1

Chapter Three. Digital Components

Assembly Language for Intel-Based Computers, 4 th Edition. Chapter 1: Basic Concepts. Chapter Overview. Welcome to Assembly Language

Topics. Midterm Finish Chapter 7

MGU-BCA-205- Second Sem- Core VI- Fundamentals of Digital Systems- MCQ s. 2. Why the decimal number system is also called as positional number system?

Assignment (3-6) Boolean Algebra and Logic Simplification - General Questions

SECTION-A

Digital Fundamentals

CHAPTER 4: Register Transfer Language and Microoperations

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two 26 February 2014

Transcription:

Systems Programming www.atomicrhubarb.com/systems Lecture 2 Review of Computer Architecture I

In The Book Patt & Patel Chapter 1,2,3 (review)

Outline Binary Bit Numbering Logical operations 2's complement Binary -> Decimal BCD Ascii Code Binary -> Hex Switches as gates Transistors as swithes CMOS Logic with Transistors Transistors -> Gates DeMorgans Law Larger Gates Combinational Logic Decoder 2-bit Adder, 8-bit adder R-S latch Gated D latch A Register 8-bit register Memory Sequential Logic Shift Register Counter

Binary Base 2 numbering system. 1 decimal 00000001 binary 2 00000010 3 00000011 4 00000100 5 00000101 6 00000110 7 00000111 8 00001000 16 00010000

Bit Numbering Least significant bit - Bit with the lowest value LSB 0 - Least Significant Bit is Bit #0 MSB 0 - Most Significant Bit is Bit #0 We will use LSB 0

Internet RFC Convention is MSB0 See! MSB0

Logical Operations We don't need to review AND, OR, XOR, NOT do we? 10101111 OR 01010011 11111111 10101111 AND 01010011 00000011

Logical Operations NOT = One's Complement NOT 01010011 10101100 NOT 10101111 01010000

Two's Complement Represents signed binary numbers 1s complement and adding one 0 0000 0000 1111 1111 0000 0000-1 0000 0001 1111 1110 1111 1111-5 0000 0101 1111 1010 1111 1011-16 0001 0000 1110 1111 1111 0000-128 1000 0000 0111 1111 1000 0000 I may frequently show binary as 2 nibbles.

Binary to Decimal Add up the decimal values of each binary bit position 128 064 032 016 008 004 002 001 00100101 + 001 004 032 ----037 decimal

Anyone recall what Binary Coded Decimal (BCD) is?

Binary Coded Decimal BCD is Decimal Numbers represented in binary using 4-bits for each digit of decimal. Makes it easy to store digits. 8423 decimal = 1000 0100 0010 0011 BCD 8 4 2 3

Ascii Code

Is ASCII the only way to represent characters?

Not ASCII Character Sets PETSCII ISO/IEC 646 DEC MCS ISO/IEC 8859 EBCDIC plenty of others that no one uses anymore. Unicode

Binary to Hex Since 1 nibble can represent the full HEX number range (0,1,2,3,4,5,6,7,8,9,A,B,C, D,E,F) its super easy to convert from binary to hex Also why I frequently show my binary bytes as 2 nibble). 231 decimal = 1110 0111 = 0xE7 E 7

Enough about number systems. Let move on to digital logic.

Switches as Inverter We will talk about voltage and current and what makes these thing work next week.

NAND and NOR

CMOS Metal-Oxide Semiconductor Field Effect Transistors (MOSFET) more suitable for digital electronics. Composed of N type and P type MOSFETs

Transistors as Switches n-type MOSFET p-type MOSFET

Logic with Transistors NOT NAND

Transistors to Gates

Gates NAND NOT = AND NOR NOT = OR

Gates AND OR OR NOT

DeMorgan's Theorem To simplify Circuits: A and B = A or B A or B = A and B

Bubble Pushing A shortcut based on DeMorgan's Theorem. 1 - Change AND to OR, OR to AND 2 - Invert all "bubbles" = = =

Universal Compatibility NOR or NAND gates can be combined with itself to form any other logic gate = =

Combinational Logic Combinational Logic = Digital logic where the output is a function of the input only. Sequential logic = Digital logic where the output depends on the input and the history of the input. In other words, sequential logic has memory while combinational logic does not.

Decoder 2 Input Decoder (or a 2 to 4 decoder) AB 1 if AB = 00 1 if AB = 01 1 if AB = 10 1 if AB = 11

2-bit Adder Or a Half Adder A0 Carryout Sumout B0 A C HA B S

Full Adder A B A C Carryout HA B S A C HA Carryin B S A Cout B FA S Cin Sumout

4-Bit Adder MSB LSB A3 B3 A2 B2 A1 B1 A B Cin A B Cin A B Cin FA FA FA Cout S S4 S3 Cout S S2 Cout A0 B0 A B HA S S1 Cout S S0

Sequential Logic Combinational Logic = Digital logic where the output is a function of the input only. Sequential logic = Digital logic where the output depends on the input and the history of the input. In other words, sequential logic has memory while combinational logic does not.

R-S Latch Store 1 bit of data S R Q Q S R /Q Q 0 0 1 1 not valid 0 1 1 0 set 1 0 0 1 reset 1 1 Q /Q hold

Gated D Latch Prevent invalid state of R-S Latch D Q WE Q WE D D Latch /Q Q

1-bit Register WE D D Latch Q

What can we do with several of these?

4-bit Register D3 WE D D2 WE D D1 WE D D0 WE D D Latch D Latch D Latch D Latch Q Q Q Q Q3 Q2 Q1 Q0

Clock D D WE D WE D WE /Q Q Q1 D Latch Q /Q Q0 D Latch Q /Q D Latch Q /Q D Latch WE Shift Register Q2 Q3 D

JK Flip Flop

What do you suppose we can make with these?

Counter

Need to easily think in binary and hex Bit numbering is LSB0 You can combine simple logic gate to make anything. Combinatorial Logic = Pure function Sequential Logic = Time ZNEO