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

Similar documents
The Microarchitecture Level

Topics. Computer Organization CS Exam 2 Review. Infix Notation. Reverse Polish Notation (RPN)

Topics. Computer Organization CS Mic-1 Microinstructions. Control Store (ROM) Programming Teams

Computer Arithmetic. Appendix A Fall 2003 Lec.03-58

Positional notation Ch Conversions between Decimal and Binary. /continued. Binary to Decimal

Number Systems Standard positional representation of numbers: An unsigned number with whole and fraction portions is represented as:

CS/EE1012 INTRODUCTION TO COMPUTER ENGINEERING SPRING 2013 HOMEWORK I. Solve all homework and exam problems as shown in class and sample solutions

COMP Overview of Tutorial #2

Chapter 05: Basic Processing Units Control Unit Design. Lesson 15: Microinstructions

Lecture 2: Number Systems

Computer Organisation CS303

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

Number System. Introduction. Decimal Numbers

Digital Fundamentals

Chapter 17. Microprogrammed Control. Yonsei University

Course Schedule. CS 221 Computer Architecture. Week 3: Plan. I. Hexadecimals and Character Representations. Hexadecimal Representation

Information Science 1

Topics. Block Diagram of Mic-1 Microarchitecture. Review Sheet. Microarchitecture IJVM ISA

PESIT Bangalore South Campus

CS Computer Architecture

Chapter 2. Positional number systems. 2.1 Signed number representations Signed magnitude

Introduction to Computers and Programming. Numeric Values

1010 2?= ?= CS 64 Lecture 2 Data Representation. Decimal Numbers: Base 10. Reading: FLD Digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9

Module 2: Computer Arithmetic

Chapter Three. Arithmetic

Introduction to Computer Science. Homework 1

Divide: Paper & Pencil

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

Number Systems and Conversions UNIT 1 NUMBER SYSTEMS & CONVERSIONS. Number Systems (2/2) Number Systems (1/2) Iris Hui-Ru Jiang Spring 2010

Introduction to Computer Science-103. Midterm

Chapter 4. Micro-architecture Level PART I

CHW 261: Logic Design

Chapter 1 Review of Number Systems

Department of Computer and Mathematical Sciences. Lab 4: Introduction to MARIE

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 01, SPRING 2013

ASSEMBLY LANGUAGE MACHINE ORGANIZATION

BINARY SYSTEM. Binary system is used in digital systems because it is:

Number Systems and Binary Arithmetic. Quantitative Analysis II Professor Bob Orr

Advanced Computer Architecture-CS501

Notes: The Marie Simulator

COS 140: Foundations of Computer Science

CS & IT Conversions. Magnitude 10,000 1,

EE292: Fundamentals of ECE

PART A (22 Marks) 2. a) Briefly write about r's complement and (r-1)'s complement. [8] b) Explain any two ways of adding decimal numbers.

Korea University of Technology and Education

Computer Organization II CMSC 3833 Lecture 33

Advanced Computer Architecture

Topics. Structured Computer Organization. Assembly language. IJVM instruction set. Mic-1 simulator programming

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

Lecture (01) Digital Systems and Binary Numbers By: Dr. Ahmed ElShafee

CMPE223/CMSE222 Digital Logic Design. Positional representation

Chapter 3: Arithmetic for Computers

Outcomes. Lecture 13 - Introduction to the Central Processing Unit (CPU) Central Processing UNIT (CPU) or Processor

Lecture1: introduction. Outline: History overview Central processing unite Register set Special purpose address registers Datapath Control unit

CS 265. Computer Architecture. Wei Lu, Ph.D., P.Eng.

SISTEMI EMBEDDED. Basic Concepts about Computers. Federico Baronti Last version:

Micro-programmed Control Ch 15

Chapter 1 Emad Felemban

Machine Instructions vs. Micro-instructions. Micro-programmed Control Ch 15. Machine Instructions vs. Micro-instructions (2) Hardwired Control (4)

Co-processor Math Processor. Richa Upadhyay Prabhu. NMIMS s MPSTME February 9, 2016

MACHINE LEVEL REPRESENTATION OF DATA

Micro-programmed Control Ch 15

COSC 243. Computer Architecture 1. COSC 243 (Computer Architecture) Lecture 6 - Computer Architecture 1 1

in this web service Cambridge University Press

Octal & Hexadecimal Number Systems. Digital Electronics

Number Systems. Both numbers are positive

Faculty of Engineering Systems & Biomedical Dept. First Year Cairo University Sheet 6 Computer I

Numbering systems. Dr Abu Arqoub

Floating Point Arithmetic

Summary of Course Coverage

Digital Fundamentals

Dec Hex Bin ORG ; ZERO. Introduction To Computing

World Inside a Computer is Binary

MC1601 Computer Organization

Number representations

Number Systems CHAPTER Positional Number Systems

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

±M R ±E, S M CHARACTERISTIC MANTISSA 1 k j

MARIE: An Introduction to a Simple Computer

4. MICROPROGRAMMED COMPUTERS

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

Micro-programmed Control Ch 17

Signed Binary Numbers

DLD VIDYA SAGAR P. potharajuvidyasagar.wordpress.com. Vignana Bharathi Institute of Technology UNIT 1 DLD P VIDYA SAGAR

UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering. Digital Computer Arithmetic ECE 666

Hardwired Control (4) Micro-programmed Control Ch 17. Micro-programmed Control (3) Machine Instructions vs. Micro-instructions

2.2 THE MARIE Instruction Set Architecture

IT 1204 Section 2.0. Data Representation and Arithmetic. 2009, University of Colombo School of Computing 1

The Institution of Engineers - Sri Lanka

Digital Systems and Binary Numbers

Chapter 4. MARIE: An Introduction to a Simple Computer

THE MICROPROCESSOR Von Neumann s Architecture Model

Electronic Data and Instructions

Lecture (01) Introduction Number Systems and Conversion (1)

1. Fundamental Concepts

Introduction to CPU Design

CS 265. Computer Architecture. Wei Lu, Ph.D., P.Eng.

Computer Logic II CCE 2010

Objectives. Connecting with Computer Science 2

UNIT - I: COMPUTER ARITHMETIC, REGISTER TRANSFER LANGUAGE & MICROOPERATIONS

Transcription:

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

Homework #1 Tanenbaum Chapter 3 Problems 6,7,11,19,23 Submit electronically to the TAs:

Binary Numbers Appendix A

Finite Precision Numbers Numbers larger than 999 Negative numbers Fractions Irrational numbers Complex numbers

Radix Number Systems (1) The general form of a decimal number.

Radix Number Systems (2) The number 2001 in binary, octal, and hexadecimal.

Conversion from One Radix to Another(1) Decimal numbers and their binary, octal, and hexadecimal equivalents.

Conversion from One Radix to Another(2) Decimal numbers and their binary, octal, and hexadecimal equivalents.

Conversion from One Radix to Another(3) Examples of octal-to-binary and hexadecimal-to-binary conversion.

Conversion from One Radix to Another(4) Examples of octal-to-binary and hexadecimal-to-binary conversion.

Conversion from One Radix to Another(5) Conversion of the decimal number 1492 to binary by successive halving, starting at the top and working downward. For example, 93 divided by 2 yields a quotient of 46 and a remainder of 1, written on the line below

Conversion from One Radix to Another(6) Conversion of the binary number 101110110111 to decimal by successive doubling, starting at the bottom. Each line is formed by doubling the one below it and adding the corresponding bit. For example, 749 is twice 374 plus the 1 bit on the same line as 749.

Representing Negative Numbers Signed magnitude One s complement Two s complement Excess 2 m - 1

Negative Binary Numbers (1) Negative 8-bit numbers in four systems.

Negative Binary Numbers (2) Negative 8-bit numbers in four systems.

Binary Arithmetic (1) The addition table in binary.

Binary Arithmetic (2) Addition in one s complement and two s complement.

Overflow Overflow means that a number cannot be represented In Two s complement addition: If numbers are of opposite signs overflow cannot occur If numbers are of the same sign and the result is of different sign the overflow! Rule: carry in to sign bits!= carry out of sign bits

The Microarchitecture Level Chapter 4

The Data Path The data path of the example microarchitecture used in this chapter. Composed of an ALU, a shifter, a register file (incl. a decoder), two busses, memory interface, and logic control Can have arbitrary registers Ones presented here are for the book ISA (IJVM)

Memory Organization Logic diagram for a 4 x 3 memory. Each row is one of the four 3-bit words.

Memory Organization (2) (a) A noninverting buffer. (b) Effect of (a) when control is high. (c) Effect of (a) when control is low. (d) An inverting buffer.

Arithmetic Logic Unit Inputs: A, B Output: O Control Input: F0,F1, INC, ENA, ENB, INVA Control Output: Z, N, (V = XOR of the last 2 carries) Shift Unit: 2 control signals: SLL8, SAR1

ALU operations Useful combinations of ALU signals and the function performed.

Data Path Timing Timing diagram of one data path cycle.

Memory Operation MAR: memory address register MDR: data address register Read: Load MAR Signal read from memory Result arrives in MDR, next cycle Result cannot be used until cycle after Write Load MAR Load MDR Signal write to memory; done

Memory Operation Mapping of the bits in MAR to the address bus.

Program Fetch PC: program counter MBR: program instruction (byte because IJVM in book --- normally it would be 32 bits) Fetch cycle (read only) PC = PC +1 Signal Read to memory (fetch) Instruction comes in MBR next cycle Execute current MBR

Microinstructions The microinstruction format for the Mic-1. Describes completely ALL signals for 1 cycle

Microinstruction Control: The Mic-1 (1) The complete block diagram of our example microarchitecture, the Mic-1.

Microcode Microcode implements all instructions as a sequence of cycles: a microroutine The instruction points to the entry point of the microroutine: MBR is a jump to the starting point of the microroutine that implements this instruction The microcode needs sequencing: MBR jump Explicit address of next microinstruction is given Can modify the explicit next address depending on ALU output control Can change the opcode (MBR) jump by ORing it with the explicit address Microcode sequencing is extremely simple (no MPC addition!)

Microinstruction Control: The Mic-1 (2) A microinstruction with JAMZ set to 1 has two potential successors.

Microinstructions and Notation All permitted operations. Any of the above operations may be extended by adding << 8 to them to shift the result left by 1 byte. For example, a common operation is H = MBR << 8.

Implementation of IJVM Using the Mic-1 (1) The microprogram for the Mic-1.

Implementation of IJVM Using the Mic-1 (2) The microprogram for the Mic-1.

Implementation of IJVM Using the Mic-1 (3) The microprogram for the Mic-1.

Implementation of IJVM Using the Mic-1 (4) The microprogram for the Mic-1.

Implementation of IJVM Using the Mic-1 (5) The microprogram for the Mic-1.