Microcontroller Systems

Size: px
Start display at page:

Download "Microcontroller Systems"

Transcription

1 µcontroller systems 1 / 43 Microcontroller Systems Engineering Science 2nd year A2 Lectures Prof David Murray david.murray@eng.ox.ac.uk dwm/courses/2co Michaelmas 2014

2 µcontroller systems 2 / 43 Lecture 2 The, Instruction Fetch & Execute Introduction A Bog Standard Architecture The flow of information Starting the processing: Fetching an instruction A few instructions Executing an instruction

3 µcontroller systems 3 / 43 At the end of the first lecture we introduced the von Neumann architecture we suggested that special instruction data might be read from a memory into the data section, then passed to the control section change the transfer function of the data section. In this lecture we see that idea realized in the architecture for a simple central processing unit (). Rather than introduce individual components one by one, we ll dive in at the deep end and revealing our Bog Standard Architecture.

4 µcontroller systems 4 / 43 Our Bog Standard Architecture to Registers,,, etc The contains registers,,,,, an arithmetic logic unit () a control unit () internal data pathways Outside the connected to by an address bus a data bus

5 µcontroller systems 5 / 43 Registers to Registers,,, etc Outside the The Buffer Register stores information that is being sent to, or received from, the memory along data bus. The Accumulator is used to store data that is being worked on by the. The key register in the data section of the cpu.

6 µcontroller systems 6 / 43 Registers to Registers,,, etc Outside the The Address Register is used to store the address to access memory. The Program Counter holds the address in memory of the next program instruction. The is a register & counter. The Stack Pointer hold the address of part of main memory used for temporary storage

7 µcontroller systems 7 / 43 Registers to Registers,,, etc Outside the If the data read from memory is an instruction it gets moved to the Instruction Register. It has two parts: (opcode) The most significant bits of the instruction tell the cpu what to do. It is decoded by the. (address) The least significant bits are actually data. They get moved to (address). They usually form all or part of an address for later use in the.

8 µcontroller systems 8 / 43 Register types Registers,,, are just row of D-type latches sharing a common CLK input providing temporary storage on the. Because these registers output onto buses they have tri-state buffers are connected to a single input OE (Output Enable). Here they are falling edge-triggered (inverter on the CLK input). D7 D6 D0 D Q D Q D Q CLK OE O7 O6 O0 The can be incremented like a counter, or loaded like a register. If INCpc=1, the clock pulse increments, but if INCpc=0 it loads. The can be incremented, decremented, or loaded like a register.

9 µcontroller systems 9 / 43 Units in the to Registers,,, etc Outside the The Control Unit is responsible for timing the register transfers required to fetch and execute each instruction. It has a number of control lines coming out of it, which transmit CSL and C levels and pulses to the various registers,, etc

10 µcontroller systems 10 / 43 Units in the to Registers,,, etc Outside the The Arithmetic Logic Unit is responsible for bit operations on data held in the and. Contains full adders, logical AND-ers and OR-ers, etc. Collection of 1bit flags Carry C, Overflow V, negative N, and zero Z that indicate the outcome of operations that the has just carried out. The flags are monitored by the.

11 µcontroller systems 11 / 43 Data bus & data register widths : While s use 32 or 64 bits, microcontrollers have data bus widths of 4 bits, 8-bits, 16-bits and 32-bits. to Registers,,, etc Outside the Let s assume that the memory is 16 bits or 2 Bytes wide and that the data bus is also 16 bits wide. The and registers on the data side of the will therefore be 16 bits wide

12 µcontroller systems 12 / 43 Address bus & register widths : n lines can address 2 n locations. Intel 8086 (1979): n = 20 Pentium (2009): n = Microcontrollers haves smaller main memories, and n = 18 ( 256k locations) is largest. to Registers,,, etc Outside the But it is convenient here (i) to have different numbers on the address and data side, and (ii) to keep things in multiple of 8 Let s assume a 24 bit address bus The,, and in our cpu will therefore be 24 bits wide.

13 µcontroller systems 13 / 43 Width of the Instruction Register The (opcode) part should be wide enough to take the largest opcode. We will assume the opcode is a fixed 8 bits wide, allowing 256 different instructions which is plenty. to Registers,,, etc Outside the The (address) part has to have the same width as the address bus, 24 bits. So the whole is 32 bits wide. It is however fed from the internal data bus which is only 16 bits wide in our architecture. We will return to solve this conundrum later.

14 µcontroller systems 14 / 43 Brief introduction to the Main memory 24bit Address 0xFFFFFF x Contents 0x3FC9 0x01FF 0x9A76 0x0001 0x0000 0x3FC9 16 bits wide The main memory does not reside in the cpu chip but is connected to the cpu via an external data bus address bus, and control bus (not shown yet). The memory will comprise mostly random access memory (RAM) with some additional read-only memory (ROM) to help the machine start up. The address bus has been chosen to be 24 bits wide, so the address space is from 0x0 to (2 24 1) or 0xFFFFFF in hex. The data bus is here 16 bits 2 B wide, and so too are the contents.

15 µcontroller systems 15 / 43 Trivia... When calculating address space sizes, remember that 2 10 = n = 10, 20, 30 lines 1k,1M,1G locations NB! 1k locations does not mean that the memory has size 1kB. The memory size in Bytes is No. of locations with physical memory Width in Bytes. What is the maximum size of our memory? What is the largest +ve integer that can be held in it? (Use unsigned arithmetic.) Suppose all address lines are zero except A23, A22, A15, A13, A8, A1, and A0. What is the address in hex? Lines A23-A20 A19-A16 A15-A12 A11-A8 A7-A4 A3-A0 Binary x

16 µcontroller systems 16 / 43 Trivia When calculating address space sizes, remember that 2 10 = n = 10, 20, 30 lines 1k,1M,1G locations NB! 1k locations does not mean that the memory has size 1kB. The memory size in Bytes is No. of locations with physical memory Width in Bytes. What is the maximum size of our memory? 32 MB What is the largest +ve integer that can be held in it? (Use unsigned arithmetic.) = Suppose all address lines are zero except A23, A22, A15, A13, A8, A1, and A0. What is the address in hex? Lines A23-A20 A19-A16 A15-A12 A11-A8 A7-A4 A3-A0 Binary x C 0 A 1 0 3

17 µcontroller systems 17 / 43 Notation for reading, writing is just a large collection of registers, each with its own address which is selected by the number in the Reading and writing involves register transfers. to Registers,,, etc To read from memory the register transfer is To write to memory the rt is read from memory into write into memory means the memory location addressed by the Outside the

18 µcontroller systems 18 / 43 OK... What are we trying to do? With the structure of registers, units, memory and buses wired up and assuming our program of instructions is stored in memory we remind ourselves that the overall aim is... to work through the program by repeatedly (until we reach a halt) Fetching the next instruction from memory Decoding it that is, figuring out which instruction it is Executing that instruction These three will involve little more than moving words of data from memory to registers, and between registers, sometimes passing data through the, and then stuffing it back into the memory all in some nicely ordered sequence.

19 µcontroller systems 19 / 43 OK... What are we trying to do? A useful analogy is that we are playing trains" with words of information. The control unit issues the proper sequence of 1 Levels, to establish the route from source register to destination register 2 Pulses, to send the word to its destination

20 µcontroller systems 20 / 43 Fetching an instruction To start processing, the cpu needs to fetch the next instruction from the main memory. At any time, the holds the address of the next program instruction in memory. So the very first step is Copy the into the memory address register: Now read the memory (this leaves the unaltered) Now copy the instruction to the At the same time, we do a touch of housekeeping. The next instruction is likely to be in the next highest memory location, so Increment the program counter! +1

21 µcontroller systems 21 / 43 Summary of instruction fetch to Registers,,, etc ; Then decode opcode Outside the

22 µcontroller systems 21 / 43 Summary of instruction fetch to Registers,,, etc ; Then decode opcode Outside the

23 µcontroller systems 21 / 43 Summary of instruction fetch to Registers,,, etc ; Then decode opcode Outside the

24 µcontroller systems 21 / 43 Summary of instruction fetch to Registers,,, etc ; Then decode opcode Outside the

25 µcontroller systems 22 / 43 A small instruction set LDA, etc, are assembler language mnemonics. Inst Overall RT Opcode Meaning HALT Stop the clock LDA x x Load with contents of mem address x STA x x Store in memory at address x ADD x + x Add mem contents at x to AND x = x Logical and... JMP x x Jump to instruction at address x BZ x if Z=1 x if Z-flag is set then jump NOT Two s complement the SHR RShift() Shift the 1bit to right There is no universal architecture there is no standard set You do not have to learn any specific assembler language, but you should feel comfortable with the interpretation of any.

26 µcontroller systems 23 / 43 Instruction execution: LDA x Inst Overall RT Opcode Meaning LDA x x Load with contents of mem address x During the instruction fetch the opcode is transferred to the (opcode); and the operand x is transferred to (address). The operand is data that is bound into the instruction 6 instructions in the small set have operands. The overall effect of LDA x is x

27 µcontroller systems 24 / 43 Instruction execution: LDA x to Registers,,, etc 10. (address) ; (S fetch ) Outside the

28 µcontroller systems 24 / 43 Instruction execution: LDA x to Registers,,, etc 10. (address) ; (S fetch ) Outside the

29 µcontroller systems 24 / 43 Instruction execution: LDA x to Registers,,, etc 10. (address) ; (S fetch ) Outside the

30 µcontroller systems 25 / 43 Notes LDA x 10. (address) ; (S fetch ) 1 No computation has be been done by this instruction! Information has been moved around from memory to accumulator, but not altered. The only part of the cpu that can alter data is the. 2 For reasons that become clear later, we have given the execution phase an RTL starting step of (S fetch ) means goto the start of the next fetch. As the instruction fetch started at RTL step 1, (S fetch ) could be written as (1).

31 µcontroller systems 26 / 43 LDA x Fetch and Execute to Registers,,, etc ; Then decode opcode 10. (address) ; (S fetch ) Outside the

32 µcontroller systems 26 / 43 LDA x Fetch and Execute to Registers,,, etc ; Then decode opcode 10. (address) ; (S fetch ) Outside the

33 µcontroller systems 26 / 43 LDA x Fetch and Execute to Registers,,, etc ; Then decode opcode 10. (address) ; (S fetch ) Outside the

34 µcontroller systems 26 / 43 LDA x Fetch and Execute to Registers,,, etc ; Then decode opcode 10. (address) ; (S fetch ) Outside the

35 µcontroller systems 26 / 43 LDA x Fetch and Execute to Registers,,, etc ; Then decode opcode 10. (address) ; (S fetch ) Outside the

36 µcontroller systems 26 / 43 LDA x Fetch and Execute to Registers,,, etc ; Then decode opcode 10. (address) ; (S fetch ) Outside the

37 µcontroller systems 26 / 43 LDA x Fetch and Execute to Registers,,, etc ; Then decode opcode 10. (address) ; (S fetch ) Outside the

38 µcontroller systems 26 / 43 LDA x Fetch and Execute to Registers,,, etc ; Then decode opcode 10. (address) ; (S fetch ) Outside the

39 µcontroller systems 27 / 43 Where were we? We learned that the elemental f i in O = f i (I) are instructions We learned that instructions have 3 phases fetch, decode and execute Instructions always have an opcode and (often) an operand That a binary opcode can be referred to by an assembler language mnemonic Inst Overall RT Opcode Meaning HALT Stop the clock LDA x x Load with contents of mem address x STA x x Store in memory at address x ADD x + x Add mem contents at x to AND x = x Logical and... JMP x x Jump to instruction at address x BZ x if Z=1 x if Z-flag is set then jump NOT Two s complement the SHR RShift() Shift the 1bit to right The overall RT in the execute phase has to be broken down into a set of actual RTs.

40 µcontroller systems 28 / 43 LDA x Fetch and Execute to Registers,,, etc ; Then decode opcode 10. (address) ; (S fetch ) Outside the

41 µcontroller systems 28 / 43 LDA x Fetch and Execute to Registers,,, etc ; Then decode opcode 10. (address) ; (S fetch ) Outside the

42 µcontroller systems 28 / 43 LDA x Fetch and Execute to Registers,,, etc ; Then decode opcode 10. (address) ; (S fetch ) Outside the

43 µcontroller systems 28 / 43 LDA x Fetch and Execute to Registers,,, etc ; Then decode opcode 10. (address) ; (S fetch ) Outside the

44 µcontroller systems 28 / 43 LDA x Fetch and Execute to Registers,,, etc ; Then decode opcode 10. (address) ; (S fetch ) Outside the

45 µcontroller systems 28 / 43 LDA x Fetch and Execute to Registers,,, etc ; Then decode opcode 10. (address) ; (S fetch ) Outside the

46 µcontroller systems 28 / 43 LDA x Fetch and Execute to Registers,,, etc ; Then decode opcode 10. (address) ; (S fetch ) Outside the

47 µcontroller systems 28 / 43 LDA x Fetch and Execute to Registers,,, etc ; Then decode opcode 10. (address) ; (S fetch ) Outside the

48 µcontroller systems 29 / 43 Example of LDA x fetch and execute In the example, the instruction is found in memory location 2, and the instruction itself is LDA 5. 2? don t care don t care don t care don t care??? LDA x So, < (address) < M<>? <

49 µcontroller systems 29 / 43 Example of LDA x fetch and execute In the example, the instruction is found in memory location 2, and the instruction itself is LDA don t care don t care don t care don t care??? LDA x So, < (address) < M<>? <

50 µcontroller systems 29 / 43 Example of LDA x fetch and execute In the example, the instruction is found in memory location 2, and the instruction itself is LDA don t care 2 3 don t care don t care 0 don t care?? LDA x So, < (address) < M<> <?

51 µcontroller systems 29 / 43 Example of LDA x fetch and execute In the example, the instruction is found in memory location 2, and the instruction itself is LDA don t care 3 3 don t care don t care 0 don t care (opcode) (address) LDA x So, < (address) < M<> <?

52 µcontroller systems 29 / 43 Example of LDA x fetch and execute In the example, the instruction is found in memory location 2, and the instruction itself is LDA don t care 3 3 don t care don t care 0 don t care (opcode) (address) LDA x So, < (address) < M<> <?

53 µcontroller systems 29 / 43 Example of LDA x fetch and execute In the example, the instruction is found in memory location 2, and the instruction itself is LDA don t care 3 3 don t care don t care 0 don t care (opcode) (address) LDA x So, < (address) < M<> <?

54 µcontroller systems 29 / 43 Example of LDA x fetch and execute In the example, the instruction is found in memory location 2, and the instruction itself is LDA don t care 3 3 don t care don t care 0 don t care (opcode) (address) LDA x So, < (address) < M<> <?

55 µcontroller systems 29 / 43 Example of LDA x fetch and execute In the example, the instruction is found in memory location 2, and the instruction itself is LDA don t care 3 3 don t care don t care 0 don t care (opcode) (address) LDA x So, < (address) < M<> < 0x020F (or 527 decimal)

56 µcontroller systems 30 / 43 STA x (Store in memory location x) Every instruction fetch is the same: reminder... to Registers,,, etc ; Then decode opcode Outside the

57 µcontroller systems 30 / 43 STA x (Store in memory location x) Every instruction fetch is the same: reminder... to Registers,,, etc ; Then decode opcode Outside the

58 µcontroller systems 30 / 43 STA x (Store in memory location x) Every instruction fetch is the same: reminder... to Registers,,, etc ; Then decode opcode Outside the

59 µcontroller systems 30 / 43 STA x (Store in memory location x) Every instruction fetch is the same: reminder... to Registers,,, etc ; Then decode opcode Outside the

60 µcontroller systems 31 / 43 Execute STA x (Store in memory location x) Overall effect is x the reverse of LDA x. to NoOP to Registers,,, etc Outside the 13. (address); 14. ; (S fetch ) (Note: Here we can do 2 transfers at the same time...)

61 µcontroller systems 31 / 43 Execute STA x (Store in memory location x) Overall effect is x the reverse of LDA x. to Registers,,, etc Outside the 13. (address); 14. ; (S fetch ) (Note: Here we can do 2 transfers at the same time...)

62 µcontroller systems 32 / 43 ADD x (Add contents of location x to the ) to Registers,,, etc This instruction involves the. 15. (address) ; (S fetch ) Outside the

63 µcontroller systems 32 / 43 ADD x (Add contents of location x to the ) to Registers,,, etc This instruction involves the. 15. (address) ; (S fetch ) Outside the

64 µcontroller systems 32 / 43 ADD x (Add contents of location x to the ) to ADD to Registers,,, etc This instruction involves the. 15. (address) ; (S fetch ) Outside the

65 µcontroller systems 33 / 43 AND x (AND contents of location x to the ) to Registers,,, etc This instruction again involves the. 18. (address) ; (S fetch ) Outside the

66 µcontroller systems 33 / 43 AND x (AND contents of location x to the ) to Registers,,, etc This instruction again involves the. 18. (address) ; (S fetch ) Outside the

67 µcontroller systems 33 / 43 AND x (AND contents of location x to the ) to AND to Registers,,, etc This instruction again involves the. 18. (address) ; (S fetch ) Outside the

68 µcontroller systems 34 / 43 JMP x (Unconditional branch) opcode operand opcode operand opcode operand x Loc+1 Loc to Registers,,, etc Outside the JMP x jumps or branches unconditionally to instruction at x 21. (address); (S fetch ) always incremented during the fetch cycle but then overwritten with x

69 µcontroller systems 35 / 43 BZ x Branch if Zero jumps if the Z flag is 1. Yes, there are BNZ, BN, BNN, BV, BNV, BC, BNC instructions too! 22. (Z)/(S fetch ) 23. (address); (S fetch ) Z flag to Registers,,, etc Outside the

70 µcontroller systems 35 / 43 BZ x Branch if Zero jumps if the Z flag is 1. Yes, there are BNZ, BN, BNN, BV, BNV, BC, BNC instructions too! 22. (Z)/(S fetch ) 23. (address); (S fetch ) to Registers,,, etc Outside the

71 µcontroller systems 36 / 43 NOT NOT complements (inverts) the contents of the. An operation, so we need a level to configure the. 24. ; (S fetch ) to CoMPlement to Registers,,, etc Outside the

72 µcontroller systems 37 / 43 SHR SHR RightShifts the contents of the. An operation, so we need a level to configure the. 25. RightShift; (S fetch ) to RightSHift to Registers,,, etc Outside the

73 µcontroller systems 38 / 43 Decoding the opcode Earlier on, when discussing the Instruction Fetch, we wrote 4. Then decode opcode (opcode) 8 Suppose we have hardware see the picture that outputs LDA=1 and STA=0, ADD=0, etc, when the opcode is LDA, and similarly for other opcodes. What s this? We could write the the decoding phase using RTL s conditional goto: AND ADD STA LDA Decoding (this is RTL) 4. (LDA,STA,ADD,AND,..., SHR,HALT)/(10,13,15,18,...,25,99) HALT We ll see all the hardware to do this soon. But now let s use decoding to solve a problem we had with the...

74 µcontroller systems 39 / 43 Using decoding to solve a conundrum In our standard architecture, the and data bus are 16 bits wide. Hence, can only supply the 8 bit opcode with an 8 bit operand, like this Loc+1 Loc bits (23 16) bits (15 8) bits (7 0) (opcode) (address) If operands were only 8 bits long, we could only access 256 of our 2 24 addresses, which is useless! How can we fill the operand up to its full 24 bits?

75 µcontroller systems 40 / 43 Make an additional read of memory... Those opcodes that require a full length operand can make an additional read of memory Loc+1 Loc bits (23 16) bits (15 8) bits (7 0) (opcode) (address) This comes after the opcode is decoded (obviously!) but before the execution. It would pull in an extra 2 Bytes.

76 µcontroller systems 41 / 43 The RTL to make this work In our set of opcodes, LDA, STA, ADD, AND, JMP, and BZ require an extra read to obtain their 3 Byte operands. The Fetch and Decoding phases become... Instruction fetch with extra memory read after first decode (opcode) and (bits of address) ; (NOT,SHR,...)/(24,25,...) //Ie, all that don t need extra [23:8] ; (LDA,STA,...)/(10,13,...) //Ie, all that do need extra

77 µcontroller systems 42 / 43 Having sorted that out... The detail of this step is often missed out in text books, and it is assumed that the fetch (lines 1-3) provides an operand of full length. We too will neglect the problem unless explicitly asked to worry about it!

78 µcontroller systems 43 / 43 Summary: In lecture 2 we have described the in terms of its data registers and control unit, the alu and memory.... learned how an instruction is fetched from memory, and how its opcode reaches the control unit... seen the execute phases of number of different instructions... seen how the fetch and executes are defined (for the most part) by a succession of register transfers

A3 Computer Architecture

A3 Computer Architecture A3 Computer Architecture Engineering Science 3rd year A3 Lectures Prof David Murray david.murray@eng.ox.ac.uk www.robots.ox.ac.uk/ dwm/courses/3co Michaelmas 2000 1 / 1 2: Introduction to the CPU 3A3 Michaelmas

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

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

COSC 243. Computer Architecture 1. COSC 243 (Computer Architecture) Lecture 6 - Computer Architecture 1 1 COSC 243 Computer Architecture 1 COSC 243 (Computer Architecture) Lecture 6 - Computer Architecture 1 1 Overview Last Lecture Flip flops This Lecture Computers Next Lecture Instruction sets and addressing

More information

The MARIE Architecture

The MARIE Architecture The MARIE Machine Architecture that is Really Intuitive and Easy. We now define the ISA (Instruction Set Architecture) of the MARIE. This forms the functional specifications for the CPU. Basic specifications

More information

CS 101, Mock Computer Architecture

CS 101, Mock Computer Architecture CS 101, Mock Computer Architecture Computer organization and architecture refers to the actual hardware used to construct the computer, and the way that the hardware operates both physically and logically

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

Copyright 2000 N. AYDIN. All rights reserved. 1

Copyright 2000 N. AYDIN. All rights reserved. 1 Computer Architecture Prof. Dr. Nizamettin AYDIN naydin@yildiz.edu.tr http://www.yildiz.edu.tr/~naydin A virtual processor for understanding instruction cycle The Visible Virtual Machine (VVM) 1 2 The

More information

Chapter 1 Microprocessor architecture ECE 3120 Dr. Mohamed Mahmoud http://iweb.tntech.edu/mmahmoud/ mmahmoud@tntech.edu Outline 1.1 Computer hardware organization 1.1.1 Number System 1.1.2 Computer hardware

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

Microcontroller Systems

Microcontroller Systems µcontroller systems 1 / 38 Microcontroller Systems Engineering Science 2nd year A2 Lectures Prof David Murray david.murray@eng.ox.ac.uk www.robots.ox.ac.uk/ dwm/courses/2co Michaelmas 2014 µcontroller

More information

10-1 C D Pearson Education, Inc. M. Morris Mano & Charles R. Kime LOGIC AND COMPUTER DESIGN FUNDAMENTALS, 4e

10-1 C D Pearson Education, Inc. M. Morris Mano & Charles R. Kime LOGIC AND COMPUTER DESIGN FUNDAMENTALS, 4e 10-1 C D E A B 10-2 A B A B C (A B) C D A A B (A B) C E D (A B) C D E (A B) C + D E (A B) C 10-3 Opcode Mode Address or operand 10-4 Memory 250 Opcode Mode PC = 250 251 ADRS 252 Next instruction ACC Opcode:

More information

Wednesday, September 13, Chapter 4

Wednesday, September 13, Chapter 4 Wednesday, September 13, 2017 Topics for today Introduction to Computer Systems Static overview Operation Cycle Introduction to Pep/9 Features of the system Operational cycle Program trace Categories of

More information

1. Internal Architecture of 8085 Microprocessor

1. Internal Architecture of 8085 Microprocessor 1. Internal Architecture of 8085 Microprocessor Control Unit Generates signals within up to carry out the instruction, which has been decoded. In reality causes certain connections between blocks of the

More information

von Neumann Architecture Basic Computer System Early Computers Microprocessor Reading Assignment An Introduction to Computer Architecture

von Neumann Architecture Basic Computer System Early Computers Microprocessor Reading Assignment An Introduction to Computer Architecture Reading Assignment EEL 4744C: Microprocessor Applications Lecture 1 Part 1 An Introduction to Computer Architecture Microcontrollers and Microcomputers: Chapter 1, Appendix A, Chapter 2 Software and Hardware

More information

Basic Computer System. von Neumann Architecture. Reading Assignment. An Introduction to Computer Architecture. EEL 4744C: Microprocessor Applications

Basic Computer System. von Neumann Architecture. Reading Assignment. An Introduction to Computer Architecture. EEL 4744C: Microprocessor Applications Reading Assignment EEL 4744C: Microprocessor Applications Lecture 1 Part 1 An Introduction to Computer Architecture Microcontrollers and Microcomputers: Chapter 1, Appendix A, Chapter 2 Software and Hardware

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

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

EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER

EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER OBJECT: EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER To understand the structure and operating instruction of the microprocessor trainer. INTRODUCTION: The MKT 8085 is a single-board microcomputer,

More information

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: MIPS Instruction Set Architecture

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: MIPS Instruction Set Architecture Computer Science 324 Computer Architecture Mount Holyoke College Fall 2009 Topic Notes: MIPS Instruction Set Architecture vonneumann Architecture Modern computers use the vonneumann architecture. Idea:

More information

COSC 243. Instruction Sets And Addressing Modes. Lecture 7&8 Instruction Sets and Addressing Modes. COSC 243 (Computer Architecture)

COSC 243. Instruction Sets And Addressing Modes. Lecture 7&8 Instruction Sets and Addressing Modes. COSC 243 (Computer Architecture) COSC 243 Instruction Sets And Addressing Modes 1 Overview This Lecture Source Chapters 12 & 13 (10 th editition) Textbook uses x86 and ARM (we use 6502) Next 2 Lectures Assembly language programming 2

More information

Wednesday, February 4, Chapter 4

Wednesday, February 4, Chapter 4 Wednesday, February 4, 2015 Topics for today Introduction to Computer Systems Static overview Operation Cycle Introduction to Pep/8 Features of the system Operational cycle Program trace Categories of

More information

A3 Computer Architecture

A3 Computer Architecture Computer Architecture MT 2 A3 Computer Architecture Engineering Science 3rd year A3 Lectures Prof David Murray david.murray@eng.ox.ac.uk www.robots.ox.ac.uk/ dwm/courses/3co Michaelmas 2 / Computer Architecture

More information

CHAPTER SIX BASIC COMPUTER ORGANIZATION AND DESIGN

CHAPTER SIX BASIC COMPUTER ORGANIZATION AND DESIGN CHAPTER SIX BASIC COMPUTER ORGANIZATION AND DESIGN 6.1. Instruction Codes The organization of a digital computer defined by: 1. The set of registers it contains and their function. 2. The set of instructions

More information

THE MICROPROCESSOR Von Neumann s Architecture Model

THE MICROPROCESSOR Von Neumann s Architecture Model THE ICROPROCESSOR Von Neumann s Architecture odel Input/Output unit Provides instructions and data emory unit Stores both instructions and data Arithmetic and logic unit Processes everything Control unit

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

COMPUTER ARCHITECTURE AND ORGANIZATION Register Transfer and Micro-operations 1. Introduction A digital system is an interconnection of digital

COMPUTER ARCHITECTURE AND ORGANIZATION Register Transfer and Micro-operations 1. Introduction A digital system is an interconnection of digital Register Transfer and Micro-operations 1. Introduction A digital system is an interconnection of digital hardware modules that accomplish a specific information-processing task. Digital systems vary in

More information

Problem Set 1 Solutions

Problem Set 1 Solutions CSE 260 Digital Computers: Organization and Logical Design Jon Turner Problem Set 1 Solutions 1. Give a brief definition of each of the following parts of a computer system: CPU, main memory, floating

More information

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

The functional block diagram of 8085A is shown in fig.4.1. Lecture-13 Internal Architecture of Intel 05A The functional block diagram of 05A is shown in fig.4.1. INTA INTR RST7.5 RST5.5 RST6.5 TRAP SOD SID INTERRUPT SERIAL I/O (Internal Bus) FR(S) IR() B() C()

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

Assembly Language Programming of 8085

Assembly Language Programming of 8085 Assembly Language Programming of 8085 Topics 1. Introduction 2. Programming model of 8085 3. Instruction set of 8085 4. Example Programs 5. Addressing modes of 8085 6. Instruction & Data Formats of 8085

More information

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

2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5. DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EE6502- MICROPROCESSORS AND MICROCONTROLLERS UNIT I: 8085 PROCESSOR PART A 1. What is the need for ALE signal in

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

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

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: MIPS Instruction Set Architecture

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: MIPS Instruction Set Architecture Computer Science 324 Computer Architecture Mount Holyoke College Fall 2007 Topic Notes: MIPS Instruction Set Architecture vonneumann Architecture Modern computers use the vonneumann architecture. Idea:

More information

Real instruction set architectures. Part 2: a representative sample

Real instruction set architectures. Part 2: a representative sample Real instruction set architectures Part 2: a representative sample Some historical architectures VAX: Digital s line of midsize computers, dominant in academia in the 70s and 80s Characteristics: Variable-length

More information

Chapter 4. MARIE: An Introduction to a Simple Computer. Chapter 4 Objectives. 4.1 Introduction. 4.2 CPU Basics

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

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

Universiteit Leiden Opleiding Informatica

Universiteit Leiden Opleiding Informatica Universiteit Leiden Opleiding Informatica Design, Analysis, and Optimization of an Embedded Processor Name: Ruben Meerkerk Studentnr: s1219677 Date: 31/08/2016 1st supervisor: Dr. T.P. Stefanov 2nd supervisor:

More information

TABLE 9-1. Symbolic Convention for Addressing Modes. Register indirect LDA (R1) ACC M[ R1] Refers to Figure 9-4. Addressing mode. Symbolic convention

TABLE 9-1. Symbolic Convention for Addressing Modes. Register indirect LDA (R1) ACC M[ R1] Refers to Figure 9-4. Addressing mode. Symbolic convention T-236 Symbolic Convention for Addressing Modes TABLE 9-1 Symbolic Convention for Addressing Modes Refers to Figure 9-4 Addressing mode Symbolic convention Register transfer Effective address Contents of

More information

address ALU the operation opcode ACC Acc memory address

address ALU the operation opcode ACC Acc memory address In this lecture, we will look at how storage (or memory) works with processor in a computer system. This is in preparation for the next lecture, in which we will examine how a microprocessor actually works

More information

William Stallings Computer Organization and Architecture 8 th Edition. Chapter 11 Instruction Sets: Addressing Modes and Formats

William Stallings Computer Organization and Architecture 8 th Edition. Chapter 11 Instruction Sets: Addressing Modes and Formats William Stallings Computer Organization and Architecture 8 th Edition Chapter 11 Instruction Sets: Addressing Modes and Formats Addressing Modes Immediate Direct Indirect Register Register Indirect Displacement

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

Dec Hex Bin ORG ; ZERO. Introduction To Computing

Dec Hex Bin ORG ; ZERO. Introduction To Computing Dec Hex Bin 0 0 00000000 ORG ; ZERO Introduction To Computing OBJECTIVES this chapter enables the student to: Convert any number from base 2, base 10, or base 16 to any of the other two bases. Add and

More information

Processor design - MIPS

Processor design - MIPS EASY Processor design - MIPS Q.1 What happens when a register is loaded? 1. The bits of the register are set to all ones. 2. The bit pattern in the register is copied to a location in memory. 3. A bit

More information

Chapter 1. Microprocessor architecture ECE Dr. Mohamed Mahmoud.

Chapter 1. Microprocessor architecture ECE Dr. Mohamed Mahmoud. Chapter 1 Microprocessor architecture ECE 3130 Dr. Mohamed Mahmoud The slides are copyright protected. It is not permissible to use them without a permission from Dr Mahmoud http://www.cae.tntech.edu/~mmahmoud/

More information

Chapter. Computer Architecture

Chapter. Computer Architecture Chapter 4 Computer Architecture Figure 4.1 Input device Central processing unit Main memory Output device Bus Data flow Control Figure 4.2 Central processing unit () Status bits ( ) Accumulator ( ) Index

More information

Topic Notes: MIPS Instruction Set Architecture

Topic Notes: MIPS Instruction Set Architecture Computer Science 220 Assembly Language & Comp. Architecture Siena College Fall 2011 Topic Notes: MIPS Instruction Set Architecture vonneumann Architecture Modern computers use the vonneumann architecture.

More information

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

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY CHAPTER 5 : Introduction to Intel 8085 Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY The 8085A(commonly known as the 8085) : Was first introduced in March 1976 is an 8-bit microprocessor with 16-bit address

More information

The Itanium Bit Microprocessor Report

The Itanium Bit Microprocessor Report The Itanium - 1986 8 Bit Microprocessor Report By PRIYANK JAIN (02010123) Group # 11 Under guidance of Dr. J. K. Deka & Dr. S. B. Nair Department of Computer Science & Engineering Indian Institute of Technology,

More information

In this lecture, we will look at how storage (or memory) works with processor in a computer system. This is in preparation for the next lecture, in

In this lecture, we will look at how storage (or memory) works with processor in a computer system. This is in preparation for the next lecture, in In this lecture, we will look at how storage (or memory) works with processor in a computer system. This is in preparation for the next lecture, in which we will examine how a microprocessor actually works

More information

csitnepal Unit 3 Basic Computer Organization and Design

csitnepal Unit 3 Basic Computer Organization and Design Unit 3 Basic Computer Organization and Design Introduction We introduce here a basic computer whose operation can be specified by the resister transfer statements. Internal organization of the computer

More information

SCRAM Introduction. Philipp Koehn. 19 February 2018

SCRAM Introduction. Philipp Koehn. 19 February 2018 SCRAM Introduction Philipp Koehn 19 February 2018 This eek 1 Fully work through a computer circuit assembly code Simple but Complete Random Access Machine (SCRAM) every instruction is 8 bit 4 bit for op-code:

More information

CHAPTER ASSEMBLY LANGUAGE PROGRAMMING

CHAPTER ASSEMBLY LANGUAGE PROGRAMMING CHAPTER 2 8051 ASSEMBLY LANGUAGE PROGRAMMING Registers Register are used to store information temporarily: A byte of data to be processed An address pointing to the data to be fetched The vast majority

More information

COSC121: Computer Systems: Review

COSC121: Computer Systems: Review COSC121: Computer Systems: Review Jeremy Bolton, PhD Assistant Teaching Professor Constructed using materials: - Patt and Patel Introduction to Computing Systems (2nd) - Patterson and Hennessy Computer

More information

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

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly. Unit I 8085 and 8086 PROCESSOR Introduction to microprocessor A microprocessor is a clock-driven semiconductor device consisting of electronic logic circuits manufactured by using either a large-scale

More information

Architecture of 8085 microprocessor

Architecture of 8085 microprocessor Architecture of 8085 microprocessor 8085 consists of various units and each unit performs its own functions. The various units of a microprocessor are listed below Accumulator Arithmetic and logic Unit

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

Faculty of Science FINAL EXAMINATION

Faculty of Science FINAL EXAMINATION Faculty of Science FINAL EXAMINATION COMPUTER SCIENCE COMP 273 INTRODUCTION TO COMPUTER SYSTEMS Examiner: Prof. Michael Langer April 18, 2012 Associate Examiner: Mr. Joseph Vybihal 2 P.M. 5 P.M. STUDENT

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

Lecture 5: Computer Organization Instruction Execution. Computer Organization Block Diagram. Components. General Purpose Registers.

Lecture 5: Computer Organization Instruction Execution. Computer Organization Block Diagram. Components. General Purpose Registers. Lecture 5: Computer Organization Instruction Execution Computer Organization Addressing Buses Fetch-Execute Cycle Computer Organization CPU Control Unit U Input Output Memory Components Control Unit fetches

More information

1. Internal Architecture of 8085 Microprocessor

1. Internal Architecture of 8085 Microprocessor Practical 1 Date : AIM : Introduction Of Microprocessor 8085. 1. Internal Architecture of 8085 Microprocessor Control Unit Generates signals within µp to carry out the instruction, which has been decoded.

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

General purpose registers These are memory units within the CPU designed to hold temporary data.

General purpose registers These are memory units within the CPU designed to hold temporary data. Von Neumann Architecture Single processor is used Each instruction in a program follows a linear sequence of fetch decode execute cycle Program and data are held in same main memory Stored program Concept

More information

Practical Malware Analysis

Practical Malware Analysis Practical Malware Analysis Ch 4: A Crash Course in x86 Disassembly Revised 1-16-7 Basic Techniques Basic static analysis Looks at malware from the outside Basic dynamic analysis Only shows you how the

More information

17. Instruction Sets: Characteristics and Functions

17. Instruction Sets: Characteristics and Functions 17. Instruction Sets: Characteristics and Functions Chapter 12 Spring 2016 CS430 - Computer Architecture 1 Introduction Section 12.1, 12.2, and 12.3 pp. 406-418 Computer Designer: Machine instruction set

More information

CSC 220: Computer Organization Unit 12 CPU programming

CSC 220: Computer Organization Unit 12 CPU programming College of Computer and Information Sciences Department of Computer Science CSC 220: Computer Organization Unit 12 CPU programming 1 Instruction set architectures Last time we built a simple, but complete,

More information

EEL 5722C Field-Programmable Gate Array Design

EEL 5722C Field-Programmable Gate Array Design EEL 5722C Field-Programmable Gate Array Design Lecture 12: Pipelined Processor Design and Implementation Prof. Mingjie Lin Patt and Patel: Intro. to Computing System * Stanford EE271 notes 1 Instruction

More information

Computer Architecture 2/26/01 Lecture #

Computer Architecture 2/26/01 Lecture # Computer Architecture 2/26/01 Lecture #9 16.070 On a previous lecture, we discussed the software development process and in particular, the development of a software architecture Recall the output of the

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

Introduction to Computer Engineering. CS/ECE 252, Fall 2016 Prof. Guri Sohi Computer Sciences Department University of Wisconsin Madison

Introduction to Computer Engineering. CS/ECE 252, Fall 2016 Prof. Guri Sohi Computer Sciences Department University of Wisconsin Madison Introduction to Computer Engineering CS/ECE 252, Fall 2016 Prof. Guri Sohi Computer Sciences Department University of Wisconsin Madison Chapter 5 The LC-3 Instruction Set Architecture ISA = All of the

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

Introduction to Computer Engineering. Chapter 5 The LC-3. Instruction Set Architecture

Introduction to Computer Engineering. Chapter 5 The LC-3. Instruction Set Architecture Introduction to Computer Engineering CS/ECE 252, Spring 200 Prof. David A. Wood Computer Sciences Department University of Wisconsin Madison Chapter 5 The LC-3 Adapted from Prof. Mark Hill s slides Instruction

More information

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Data Paths and Microprogramming

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Data Paths and Microprogramming Computer Science 324 Computer Architecture Mount Holyoke College Fall 2007 Topic Notes: Data Paths and Microprogramming We have spent time looking at the MIPS instruction set architecture and building

More information

MARIE: An Introduction to a Simple Computer

MARIE: An Introduction to a Simple Computer MARIE: An Introduction to a Simple Computer 4.2 CPU Basics The computer s CPU fetches, decodes, and executes program instructions. The two principal parts of the CPU are the datapath and the control unit.

More information

CPU ARCHITECTURE. QUESTION 1 Explain how the width of the data bus and system clock speed affect the performance of a computer system.

CPU ARCHITECTURE. QUESTION 1 Explain how the width of the data bus and system clock speed affect the performance of a computer system. CPU ARCHITECTURE QUESTION 1 Explain how the width of the data bus and system clock speed affect the performance of a computer system. ANSWER 1 Data Bus Width the width of the data bus determines the number

More information

2.2 THE MARIE Instruction Set Architecture

2.2 THE MARIE Instruction Set Architecture 2.2 THE MARIE Instruction Set Architecture MARIE has a very simple, yet powerful, instruction set. The instruction set architecture (ISA) of a machine specifies the instructions that the computer can perform

More information

Computer Organization (Autonomous)

Computer Organization (Autonomous) Computer Organization (Autonomous) UNIT II Sections - A & D Prepared by Anil Kumar Prathipati, Asst. Prof., Dept. of CSE. SYLLABUS Basic Computer Organization and Design: Instruction codes Stored Program

More information

Where Does The Cpu Store The Address Of The

Where Does The Cpu Store The Address Of The Where Does The Cpu Store The Address Of The Next Instruction To Be Fetched The three most important buses are the address, the data, and the control buses. The CPU always knows where to find the next instruction

More information

Chapter 5 The LC-3. ACKNOWLEDGEMENT: This lecture uses slides prepared by Gregory T. Byrd, North Carolina State University 5-2

Chapter 5 The LC-3. ACKNOWLEDGEMENT: This lecture uses slides prepared by Gregory T. Byrd, North Carolina State University 5-2 Chapter 5 The LC-3 ACKNOWLEDGEMENT: This lecture uses slides prepared by Gregory T. Byrd, North Carolina State University 5-2 Instruction Set Architecture ISA = All of the programmer-visible components

More information

Grundlagen Microcontroller Processor Core. Günther Gridling Bettina Weiss

Grundlagen Microcontroller Processor Core. Günther Gridling Bettina Weiss Grundlagen Microcontroller Processor Core Günther Gridling Bettina Weiss 1 Processor Core Architecture Instruction Set Lecture Overview 2 Processor Core Architecture Computes things > ALU (Arithmetic Logic

More information

Assembly Language Programming of 8085

Assembly Language Programming of 8085 Assembly Language Programming of 8085 1. Introduction A microprocessor executes instructions given by the user Instructions should be in a language known to the microprocessor Microprocessor understands

More information

Chapter 3. Z80 Instructions & Assembly Language. Von Neumann Architecture. Memory. instructions. program. data

Chapter 3. Z80 Instructions & Assembly Language. Von Neumann Architecture. Memory. instructions. program. data Von Neumann Architecture The von Neumann architecture is a computer design model that uses a processing unit and a separate storage to hold both instructions and data To run a machine, program and data

More information

CPU: SOFTWARE ARCHITECTURE INSTRUCTION SET (PART

CPU: SOFTWARE ARCHITECTURE INSTRUCTION SET (PART General Introduction CPU: SOFTWARE ARCHITECTURE INSTRUCTION SET (PART 1) General Introduction (1/5): On Instructions Instruction operate with data or with the flow of the program The following information

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

CPU. Fall 2003 CSE 207 Digital Design Project #4 R0 R1 R2 R3 R4 R5 R6 R7 PC STATUS IR. Control Logic RAM MAR MDR. Internal Processor Bus

CPU. Fall 2003 CSE 207 Digital Design Project #4 R0 R1 R2 R3 R4 R5 R6 R7 PC STATUS IR. Control Logic RAM MAR MDR. Internal Processor Bus http://www.engr.uconn.edu/~barry/cse207/fa03/project4.pdf Page 1 of 16 Fall 2003 CSE 207 Digital Design Project #4 Background Microprocessors are increasingly common in every day devices. Desktop computers

More information

Computer Organisation CS303

Computer Organisation CS303 Computer Organisation CS303 Module Period Assignments 1 Day 1 to Day 6 1. Write a program to evaluate the arithmetic statement: X=(A-B + C * (D * E-F))/G + H*K a. Using a general register computer with

More information

the SAP-2 I. Intro cmpt-150-arc Sections 8-8, 8-9, 9-4, 9-5, 9.6, We ll do this in bits and pieces, doing the beginning of each section first.

the SAP-2 I. Intro cmpt-150-arc Sections 8-8, 8-9, 9-4, 9-5, 9.6, We ll do this in bits and pieces, doing the beginning of each section first. I. Intro the SAP-2 cmpt-150-arc Sections 8-8, 8-9, 9-4, 9-5, 9.6, 9.8 1. We ll do this in bits and pieces, doing the beginning of each section first. 1. The SAP-2 adds a lot of functionality to the SAP-1

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

1. Internal Architecture of 8085 Microprocessor

1. Internal Architecture of 8085 Microprocessor Practical 1 Date : AIM : Introduction Of Microprocessor 8085. 1. Internal Architecture of 8085 Microprocessor Control Unit Generates signals within µp to carry out the instruction, which has been decoded.

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

Chapter 2 Instruction Set Architecture

Chapter 2 Instruction Set Architecture Chapter 2 Instruction Set Architecture Course Outcome (CO) - CO2 Describe the architecture and organization of computer systems Program Outcome (PO) PO1 Apply knowledge of mathematics, science and engineering

More information

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

Lecture1: introduction. Outline: History overview Central processing unite Register set Special purpose address registers Datapath Control unit Lecture1: introduction Outline: History overview Central processing unite Register set Special purpose address registers Datapath Control unit 1 1. History overview Computer systems have conventionally

More information

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

QUESTION BANK. EE 6502 / Microprocessor and Microcontroller. Unit I Processor. PART-A (2-Marks) QUESTION BANK EE 6502 / Microprocessor and Microcontroller Unit I- 8085 Processor PART-A (2-Marks) YEAR/SEM : III/V 1. What is meant by Level triggered interrupt? Which are the interrupts in 8085 level

More information

C.P.U Organization. Memory Unit. Central Processing Unit (C.P.U) Input-Output Processor (IOP) Figure (1) Digital Computer Block Diagram

C.P.U Organization. Memory Unit. Central Processing Unit (C.P.U) Input-Output Processor (IOP) Figure (1) Digital Computer Block Diagram C.P.U Organization 1.1 Introduction A computer system is sometimes subdivided into two functional entities "Hardware" and "Software". The H/W of the computer consists of all the electronic components and

More information

COMP2121: Microprocessors and Interfacing. Instruction Set Architecture (ISA)

COMP2121: Microprocessors and Interfacing. Instruction Set Architecture (ISA) COMP2121: Microprocessors and Interfacing Instruction Set Architecture (ISA) http://www.cse.unsw.edu.au/~cs2121 Lecturer: Hui Wu Session 2, 2017 1 Contents Memory models Registers Data types Instructions

More information

Computer Organization II CMSC 3833 Lecture 33

Computer Organization II CMSC 3833 Lecture 33 Term MARIE Definition Machine Architecture that is Really Intuitive and Easy 4.8.1 The Architecture Figure s Architecture Characteristics: Binary, two s complement Stored program, fixed word length Word

More information

Micro computer Organization

Micro computer Organization Micro computer Organization I Base Basic Components CPU SYSTEM BUSES VDD CLK RESET 1 MPU vs MCU Microprocessor Unit (MPU) CPU (called Microprocessor) is a die All components external to die Basically on

More information

CC411: Introduction To Microprocessors

CC411: Introduction To Microprocessors CC411: Introduction To Microprocessors OBJECTIVES this chapter enables the student to: Describe the Intel family of microprocessors from 8085 to Pentium. In terms of bus size, physical memory & special

More information

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

Instruction : A command to the microprocessor to perform a given task on specified data. Each instruction has two parts Lecture 4 Instruction : A command to the microprocessor to perform a given task on specified data. Each instruction has two parts One part is the task to be performed, called operation code or opcode in

More information

Segment 1A. Introduction to Microcomputer and Microprocessor

Segment 1A. Introduction to Microcomputer and Microprocessor Segment 1A Introduction to Microcomputer and Microprocessor 1.1 General Architecture of a Microcomputer System: The term microcomputer is generally synonymous with personal computer, or a computer that

More information