CS521 CSE IITG 11/23/2012

Similar documents
Its Assembly language programming

Assembly Language Programming of 8085

INSTRUCTION SET OF 8085


8085 INSTRUCTION SET INSTRUCTION DETAILS

(2) Explain the addressing mode of OR What do you mean by addressing mode? Explain diff. addressing mode for 8085 with examples.

Assembly Language Programming of 8085

SAMPLE STUDY MATERIAL

Introduction to Assembly Language Programming (Instruction Set) 1/18/2011 1

MSMF GATE CENTRE. Sub: MICROPROCESSORS. Time: 50min Date: Marks:33

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT I THE 8085 & 8086 MICROPROCESSORS. PART A (2 Marks)

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller

م.م. ماجد عيدان. Introduction to microprocessor and microcomputer

ELECTRICAL ENGINEERING

UNIT I. Differences between: Microcomputer, Microprocessor and Microcontroller

The due date for submitting this assignment has passed. 1) How many times will the following loop be executed? Depends on the initial value of A

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

LIST OF PROGRAMS. Prg. Name of the Program. 1 Study of Pin Diagram of Study of Architecture of Study of 8085 Kit.

Subject Code: Model Answer Page No: /25

Computer Organization

1. What is Microprocessor? Give the power supply & clock frequency of 8085?

Unit 1 8 BIT MICROPROCESSOR ARCHITECTURE

ADD R Operation : ACC = ACC + R SIZE : 1 byte, 8 bit Time : 3 T Cycle Work : Read R, Read ACC, Add, Write Result to ACC

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) MODEL ANSWER

EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER

ROEVER ENGINEERING COLLEGE

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY

Microprocessor Micro Syllabus BSc. CSIT, IOST, TU. Microprocessor

The 8085 Instruction Set

EE309: Computer Organization, Architecture and MicroProcessors. sumantra/courses/up/up.html GND HIGH ORDER ADDRESS BUS

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

G. Pullaiah College of Engineering and Technology: Kurnool Department Of Electronics and Communication Engineering

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING

History and Basic Processor Architecture

Q. P. Code : b. Draw and explain the block dig of a computer with microprocessor as CPU.

COPYRIGHT IS NOT RESERVED BY AUTHORS. AUTHORS ARE NOT RESPONSIBLE FOR ANY LEGAL ISSUES ARISING OUT OF ANY COPYRIGHT DEMANDS

QUESTION BANK. EE 6502 / Microprocessor and Microcontroller. Unit I Processor. PART-A (2-Marks)

AE66/AC66/AT66/ AE108/AC108/AT108 MICROPROCESSORS & MICROCONTROLLERS

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

EKT222 Miroprocessor Systems Lab 5

UNIT 1 REFERENCE 1 PREPARED BY S.RAVINDRAKUMAR, LECT/ECE, CHETTINAD COLLEGE OF ENGG AND TECH, KARUR

Microprocessor Architecture

Chapter 1: Basics of Microprocessor [08 M]

INSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor

GATE Exercises on Microprocessors

Programming of 8085 microprocessor and 8051 micro controller Study material

The functional block diagram of 8085A is shown in fig.4.1.

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

LABORATORY MANUAL. PROGRAMME: B.Tech SEMESTER /YEAR: 3rd year 5th Semester SUBJECT CODE: CS592 SUBJECT NAME: Microprocessor & Microcontroller Lab

MICROPROCESSOR BASICS AND RELATED TERMS

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly.

Micro Processor & Micro Controllers

Practical Course File For

Instruction : A command to the microprocessor to perform a given task on specified data. Each instruction has two parts

3.0 Instruction Set. 3.1 Overview

1. What is microprocessor? It is a program controlled semi conductor device (IC), which fetches, decodes and execute instructions.

Vidyalankar T.E. Sem. V [EXTC] Microprocessors and Microcontrollers I Prelim Question Paper Solution V SS (GND)

Pin Description, Status & Control Signals of 8085 Microprocessor

1-Operand instruction types 1 INC/ DEC/ NOT/NEG R/M. 2 PUSH/ POP R16/M16/SR/F 2 x ( ) = 74 opcodes 3 MUL/ IMUL/ DIV/ DIV R/M

1 = Enable SOD 0 = Disable SOD. Serial Output Data. Fig.12.9 SIM Instruction Format

(2½ Hours) [Total Marks: 75]

MICROPROCESSOR MICROPROCESSOR. From the above description, we can draw the following block diagram to represent a microprocessor based system: Output

1. Internal Architecture of 8085 Microprocessor

4 Categories Of 8085 Instructions That Manipulate Data

Matrix Multiplication in 8085

8085 Microprocessor Architecture and Memory Interfacing. Microprocessor and Microcontroller Interfacing

Microcomputer Architecture and Programming

Four Categories Of 8085 Instructions That >>>CLICK HERE<<<

8/26/2010. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to Three Units of 8085

Instruction set of 8085

The advantages of registers over memory locations are as follows:

SIR.C.R.R.COLLEGE OF ENGINEERING DEPT. OF ELECTRONICS AND INSTRUMENTATION ENGG. EIE-328: MICROPROCESSOR LABORATORY 3/4 B.E. EIE: SECOND SEMESTER

MICROPROCESSOR AND MICROCONTROLLER

PERIPHERAL INTERFACING Rev. 1.0

Computer Organization CS 206 T Lec# 2: Instruction Sets

DE60/DC68 MICROPROCESSORS & MICROCONTROLLERS JUN 2015

Parallel Programming. Michael Gerndt Technische Universität München

Basics of Microprocessor

1. Internal Architecture of 8085 Microprocessor

Lecture Note On Microprocessor and Microcontroller Theory and Applications

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

Counters & Time Delays. Microprocessors & Interfacing 1

2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5.

B.C.A 2017 MICROPROCESSOR AND ASSEMBLY LANGUAGE MODULE SPECIFICATION SHEET. Course Outline

EXAMPLE PROGRAMS 8085

EEE310 MICROPROCESSORS M. Fatih Tüysüz CHAPTER 7

In this tutorial, we will discuss the architecture, pin diagram and other key concepts of microprocessors.

Systems Architecture I

12-Dec-11. Gursharan Singh Maninder Kaur. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to 8085

ISA and RISCV. CASS 2018 Lavanya Ramapantulu

Valliammai Engineering College

PERIPHERAL INTERFACING Rev. 1.0

LABORATORY 1 INTRODUCTION TO 8085 MICROPROCESSOR DEVELOPMENT SYSTEM BOARD

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL ELECTRONICS & MICROPROCESSOR LAB MANUAL 2/4 CSE: II- SEMESTER

omputer Design Concept adao Nakamura

MACHINE CONTROL INSTRUCTIONS: 1. EI

Transcription:

CS521 CSE IITG 11/23/212 http://jatinga.iitg.ernet.in/~asahu/cs523/ Course Contents Text and Reference Books All lecture slides Summery of each class with references Other information Simulators, Benchmarks, Source Code, Referred Papers, EBooks A Sahu 1 A Sahu slide 2 Patterson, D.A., and Hennessy, J.L., Computer Architecture : A Quantitative Approach, Morgan Kaufmann Publishers, 5th Edition, Inc.211 Dezso Sima, Peter Kacsuk, Terence Fountain, " Advanced Computer Architectures : A Design Space Approach", Pearson Education India, 1997 Michael J Flynn, "Computer Architecture: Pipelined and Parallel Processor Design ", Narosa Publishing India, 23 Some Recent Papers A Sahu slide 3 Patterson, D.A., and Hennessy, J.L., Computer Organization and Design: The Hardware/Software Interface, Morgan Kaufmann Publishers, 4th Edition, Inc.25, Ebook 3rd Ed Kai Hwang, " Advanced Computer Architecture: Parallelism, Scalability, Programmability", McGraw Hill, first edition, 1992. Ramachandran Vaidtyanathan and J L Trahan, " Dynamic Reconfiguration: Architectures and Algorithms ", Kluwer Academic Publisher, New York, 23 David Kirk and Wen mei Hwu " Programming Massively Parallel Processors: A Hands on Approach", Morgan Kaufmann Publishers, 21 P Pacheco " An Introduction to Parallel Programming", Morgan Kaufmann Publishers, 211 David Culler, J.P. Singh and Anoop Gupta, "Parallel Computer Architecture: A Hardware/Software Approach", Morgan Kaufmann, first edition, 1998. Harvey G Cragon, " Memory Systems and Pipelined Processors", Narosa Book Distributors, India, 1998 Introduction to Parallel Programming", Morgan Kaufmann Publishers, 211 A Sahu slide 4 SIMD Processors Multiple processing elements driven by a single instruction stream Vector Processors Uni processors with vector instructions ti Associative Processors SIMD like processors with associative memory Systolic Arrays Application specific VLSI structures Mix of Data Parallel and Function Parallel Only limited functions can be run (Kepler Architecture) Other wise it is data parallel How to execute a Program Load data and function to GPU Triggers GPU Get back result GIGA thread scheduler Nvidia GTX 372 cuda core, 8 thread/core Many shared data/global object/pc data A Sahu slide 5 A Sahu 6 A Sahu 1

CS521 CSE IITG 11/23/212 T= A 23 B 31 Simplicity, Regularity, Concurrency, Communication Example : Band matrix multiplication A 22 A 12 B 21 A11 A12 B11 B12 A21A22A23 B21B22B23 A 31A32A33A34 B31B32B33B34 [ C] = A42 A43A44A45 B42B43B44B45 A 53A54A55A56 B53B54B55B56 A64 A65A66 B64B65B66 A 31 A 21 A 11 B 11 B 12 A Sahu slide 7 A Sahu 8 Data-parallel architectures Instruction level PAs Built using general purpose processors Function-parallel architectures Thread level PAs Distributed Memory MIMD Process level PAs (MIMDs) Shared Memory MIMD Design Space Extent of address space sharing Location of memory modules Uniformity of memory access UMA, NUMA A Sahu slide 9 A Sahu slide 1 Specification / Program design explicit parallelism or implicit parallelism + parallelizing compiler Partitioning i / mapping to processors Scheduling / mapping to time instants static or dynamic Communication and Synchronization CUDA Pthread MPI Cilk Concurrent Functional or logic Vector/array control flow program operations Concurrent tasks/processes/threads/objects With shared variables or message passing Relationship between programming model and architecture? A Sahu slide 11 A Sahu slide 12 A Sahu 2

CS521 CSE IITG 11/23/212 Coherence problem in shared memory with caches Software Coherence : Synchronization and Lock Lock: One personshouldshould access Critical Section, Amdhal s Law, Modified Law Efficient interconnection networks Multiple copies of data may exist Problem of cache coherence Options for coherence protocols What action is taken? Invalidate or Update Lazy protocol Which processors/caches communicate? Snoopy (broadcast) or directory based Status of each block? Memory Consistency Problem: Pthread Level A Sahu slide 13 A Sahu slide 14 Architectural Variations: Topology Direct or Indirect (through switches) Static (fixed connections) or Dynamic (connections established as required) Routing type store and forward/worm hole) Efficiency: Delay Bandwidth Cost Microprocessor Vs Processor Fetch, Decode, Register Access, Execute, Write Back Single Cycle Design : All state in one cycle Multi Cycle Design: Each state in one cycle Multiple T State, t 885 Microprocessor 885 Microprocessor RISC Processor Simple MIPS Processor with 9 Instructions One Instruction Set Computer A Sahu slide 15 A Sahu 16 A Sahu 3

CS521 CSE IITG 11/23/212 8 Bit CPU 3 6Mhz Simpler design: Single Cycle CPU ISA = Pre x86 design (Semi CISC) 4 Pin Dual line Package 16 bit address 6 registers: B, C, D, E, H,L Accumulator 8 bit Control Path Start/Activate Status Data Path ALU, REG, MEM, BUS, DECODER INTR INTA ReSeT6.5 RST5.5 RST7.5 TRAP SID SOD Interrupt Control Serial I/O Control A 15 A Address Bus (16bit) Bus 8 Bit ACC tmp R Flag ALU IR I Decode & M/C Encoding W B D H MUX Z SP C E L PC Inc/Dec. ter Add latch 885 MPU D7 D Memory I/P Data Bus (8bit) Control Bus (8bit) O/P Timing and Control Add Buff Data/Add Buff 885 Bus Structure Address Bus : Consists of 16 address lines: A A 15 Address locations: (hex) FFFF (hex) Can access 64K ( = 2 16 ) bytes of memory, each byte has 8 bits Can access 64K 8 bits of memory Use memory to map I/O, Same instructions to use for accessing I/O devices and memory Data Bus : Consists of 8 data lines: D D 7 Operates in bidirectional mode The data bits are sent from the MPU to I/O & vice versa Data range: (hex) FF(hex) Control Bus: Consists of various lines carrying the control signals such as read / write enable, flag bits 885 Registers Registers: Six general purpose 8 bit registers: B, C, D, E, H,L Combined as register pairs to perform 16 bit operations: BC, DE, HL Registers are programmable (load, move, etc.) B Stack Pointer (SP) D Accumulator & Flag Register H SP (Zero, Sign, Carry, Parity, AuxCarry) PC Program Counter (PC) Contains the memory address (16 bits) of the instruction that will be executed in the next step. C E L A Sahu 4

CS521 CSE IITG 11/23/212 How instruction executed All instructions (of a program) are stored in memory. To run a program, the individual instructions must be read from the memory in sequence, and executed. Program counter puts the 16 bit memory address of the instruction on the address bus Control unit sends the Memory Read Enable signal to access the memory The 8 bit instruction stored in memory is placed on the data bus and transferred to the instruction decoder Instruction is decoded and executed Instruction Set of 885 Arithmetic Operations add, sub, inr/dcr Logical operation and, or, xor, rotate, compare, complement Branch operation Jump, call, return Data transfer/copy/memory operation/io MOV, MVI, LD, ST, OUT Copy/Mem/IO operation MVI R, 8 bit // load immediate data MOV R1, R2 // Example MOV B, A MOV R M // Copy to R from (HL Reg) Mem MOV M R // Copy from R to (HL Reg) Mem LDA 16 bit // load A from (16bit) STA 16 bit // Store A to (16bit) LDAX Rp // load A from (Rp), Rp=RegPair STAX Rp // Store A to (Rp) LXI Rp 16bit // load immediate to Rp IN 8bit OUT 8 bit // Accept data to A from port (8bit) // Send data of A to port (8bit) ADD R ADI 8bit ADD M SUB R SUI 8bit SUB M Arithmetic Operation // Add A = A + B.reg // Add A= A + 8bit // Add A=A + (HL) // Sub A = A B.reg // Sub A= A 8bit // Sub A=A (HL) INR R // R = R+1 INR M // (HL)=(HL)+1 DCR R // R = R 1 DCR M // (HL)=(HL) 1 INX Rp // Rp=Rp+1 DCX Rp // Rp=Rp 1 Other Operations Logic operations ANA R ANI 8bit ANA M ORA, ORI, XRA, XRI CMP R // compare with R with ACC CPI 8bit // compare 8 bit with ACC Branch operations JMP 16bit, CALL 16 bit JZ 16bit, JNZ 16bit, JC 16bit, JNC 16 bit RET Machine Control operations HLT, NOP, POP, PUSH ADD B // ACC = ACC + B Things need to do to execute this Fetch Instruction from Memory and put into IR Put Higher address to A8 15 Put Lower Address to A A7 Get back data/instruction from memory to BUS Activate BUS to IR gate to store date in IR Addition need to be done in ALU Operands should be in TempR and ACC, Result will put to BUS Execute Activate MUX to select Register B Put value to B to BUS Activate Gate of Temp Reg, so that data from BUS will go to TempR Do the Operation ADD Again result from BUS put to ACC Activate Gate for ALU, so that data from ALU come to BUS Activate Gate for ACC, so that data from BUS go to ACC A Sahu 3 A Sahu 5

CS521 CSE IITG 11/23/212 A Sahu 6