set4 - 1 TA C162 Computer Programming I Virendra S Set #4...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1 TA C162 Computer Programming I Virendra S Set #4 Agenda s Stored Program Computer s Von Neumann Model s Computer Instruction s Instruction Processing Cycle 2 TA C162 Computer Programming I Virendra S Set #4 The Stored Program Computer: History 1943: ENIAC s Presper Eckert and John Mauchly -- First general electronic computer. (or was it John V. Atanasoff in 1939?) s Hard-wired program -- Settings of dials and switches. 1944: Beginnings of EDVAC s Among other improvements, includes program stored in memory 1945: John von Neumann s Wrote a report on the stored program concept, known as the First Draft of a Report on EDVAC 3 TA C162 Computer Programming I Virendra S Set #4 The Stored Program Computer Cont… The basic structure proposed in the draft known as the “von Neumann machine” A memory , containing instructions and data A processing unit , for performing arithmetic and logical operations A control unit , for interpreting instructions MEMORY CONTROL UNIT MAR MDR IR PROCESSING UNIT ALU TEMP PC OUTPUT Monitor Printer LED Disk INPUT Keyboard Mouse Scanner Disk 4 TA C162 Computer Programming I Virendra S Set #4 Memory To LOAD a location (A): 1. Write the address (A) into the MAR 2. Send a “read” signal to the memory 3. Required data is in MDR 4. Read the data from MDR To STORE a value (X) to a location (A) 1. Write the data (X) to the MDR. 2. Write the address (A) into the MAR. 3. Send a “write” signal to the memory. 4. Location (A) contains value (X) MEMORY CONTROL UNIT MAR MDR IR PROCESSING UNIT ALU TEMP PC OUTPUT Monitor Printer LED Disk INPUT Keyboard Mouse Scanner Disk 5 TA C162 Computer Programming I Virendra S Set #4 Processing Unit Functional Units s ALU = Arithmetic and Logic Unit s Could have many functional units. Some of them special-purpose (multiply, square root, …) Registers (Temp) s Small, temporary storage s Operands and results of functional units MEMORY CONTROL UNIT MAR MDR IR PROCESSING UNIT ALU TEMP PC OUTPUT Monitor Printer LED Disk INPUT Keyboard Mouse Scanner Disk 6 TA C162 Computer Programming I Virendra S Set #4 Input and Output Devices for getting data into and out of computer memory Each device has its own interface, usually a set of registers like the memory’s MAR and MDR MEMORY CONTROL UNIT MAR MDR IR PROCESSING UNIT ALU TEMP PC OUTPUT Monitor Printer LED Disk INPUT Keyboard Mouse Scanner Disk 7 TA C162 Computer Programming I Virendra S Set #4 Computer Instruction The instruction is the fundamental unit of work. Specifies two things: s opcode : Operation to be performed s e.g. ADD, SUB, LOAD, STORE s operands : Data/locations to be used for operation s e.g ADD dest scr1 scr2 An instruction is encoded as a sequence of bits ....
View Full Document

This note was uploaded on 05/14/2010 for the course CS SS ZG653 taught by Professor Shanta during the Spring '09 term at Birla Institute of Technology & Science.

Page1 / 106

set4 - 1 TA C162 Computer Programming I Virendra S Set #4...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online