Académique Documents
Professionnel Documents
Culture Documents
• Course Introduction
• Class Policy
Computer Structure &
• Course Syllabus & Objective
Language • Introduction to Computer Organization
Hossein Asadi
Department of Computer Engineering
• Computer History
Sharif University of Technology
asadi@sharif.edu
• Von Neumann Model
• Moore’s Law
Lecture 1 1
Lecture 2 Sharif University of Technology, Spring 2011 2
1
Teaching Assistants Textbook
• Computer Organization, ISA, • Computer Organization & Design, The
Linker/Loader, Addressing Modes, Hardware/Software Interface, 3rd
Number Representation, Arithmetic, Edition, by D. Patterson and J.
Floating-Point, IO/Busses, Memory Hennessey, MK publishing, 2005.
– Davood Salehabadi
– You can keep textbook for “Computer
– Nazanin Makinejad
Architecture” course, too!
• MIPS Assembly Programming
– Mojtaba Varmazyar
– Mahla Rahminezad
Lecture 1 Sharif University of Technology, Spring 2011 5 Lecture 1 Sharif University of Technology, Spring 2011 6
2
Class Policy Class Policy (cont.)
• Ask questions anytime • Assignments
– Don’t hesitate to ask even stupid – Two late assignments will be accepted!
questions!!! • Only two days late!
• Cell phones off or on silent • Third late assignment (two-day late)
– HW will be graded out of 50%
• Absence • Forth and next late assignments will not be
– Three sessions allowed accepted!
• Food No, Drink yes! – Discussions encouraged!
– But do your own handwriting!
• Feel free to pass me your feedbacks
– Zero score for copied assignments!
– Anything related to this course
• Second time zero score for 30% share!
Lecture 1 Sharif University of Technology, Spring 2011 9 Lecture 1 Sharif University of Technology, Spring 2011 10
3
Objective (cont.) Objective (cont.)
• By the end of semester, you should be able • By the end of semester, you should be able
to answer these questions: to answer these questions:
– What is difference in representations of – Why opcode of MIPS ISA is not 4- or 8-bit?
integers, fixed-point & floating-point numbers? – How a simple assembly instruction is encoded in
– What is difference between MIPS and Intel machine code (e.g., “add $s0, $s1, $s2”)?
IA32 instruction sets? – How much stack will be used when calling
– How recursive procedures like “factorial” or fact(20)?
“Towers of Hanoi” are implemented in MIPS – Difference between Dynamically Linked
assembly language? Libraries (DLL) and Statically Linked Libraries?
– What is best application of different addressing – Difference between IO-mapped-IO and
modes? memory-mapped-IO?
– What is difference between load/store – How 1010 and (1010 +1) represented in FP?
architecture and CISC architectures?
Lecture 1 Sharif University of Technology, Spring 2011 13 Lecture 1 Sharif University of Technology, Spring 2011 14
4
Copyright Notice Introduction
• Parts (text & figures) of lectures adopted • What Is a Computer?
from: – An electronic device capable of storing and
– Computer Organization & Design, The processing information in accordance with a
Hardware/Software Interface, 3rd Edition, by predetermined set of instructions
D. Patterson and J. Hennessey, Morgan • Oxford English Dictionary
Kaufmann publishing, 2005. – A machine that manipulates data according to a
– “Intro to Computer Architecture” handouts, set of instructions
Dept of ECE, CMU, by James Hoe, 2009. • Wiki
– “Computer Organization I” handouts, Dept of
Computer Science, FSU, by X. Liu, Fall 2007.
Lecture 1 Sharif University of Technology, Spring 2011 17 Lecture 1 Sharif University of Technology, Spring 2011 18
5
Computer System Computer System (cont.)
• A computer system consists of hardware • The most complicated machines ever
and software that are combined to provide
a tool to solve problems (with best
built on the earth
performance) – For example, each dual-core Intel
– Hardware may include: Itanium-2 9000 processor contains 1.72
• CPU, memory, disks, printers, screen, keyboard, mouse billion transistors
• Other peripherals
• In comparison, a Boeing airplane has about 4
– Software may include: million parts
• System software
– A general environment to create specific applications – How can we comprehend these computer
• Application software systems?
– A tool to solve a specific problem
• Using hierarchical abstraction levels
Lecture 1 Sharif University of Technology, Spring 2011 21 Lecture 1 Sharif University of Technology, Spring 2011 22
Instruction Set
Computer System (cont.) Architecture
• Hierarchical Abstractions • Our Focus in this Course:
– Applications/systems software – SW/HW Interface
– Assembly/machine language – Known as Instruction Set Architectures (ISA)
– Architectural issues • ISA
• i.e., caches, virtual memory, pipelining – A very important abstraction
– Boolean logic, 1s and 0s – Interface between hardware and low-level
• Sequential logic, finite state machines
• Combinational logic, arithmetic circuits
software
– Transistors used to build logic gates (CMOS) – Advantage: different implementations of the
– Semiconductors/silicon used to build transistors same architecture
– Properties of atoms, electrons, and quantum • Modern instruction set architectures
dynamics – IA-32, PowerPC, MIPS, SPARC, ARM, …
Lecture 1 Sharif University of Technology, Spring 2011 23 Lecture 1 Sharif University of Technology, Spring 2011 24
6
Types of Computer
Computer Organization Systems
• Computer Components • Desktops
– Input, output, memory, control unit, & • Servers
datapath • Embedded Systems
Computer
Control Input
Memory
Datapath Output
Lecture 1 Sharif University of Technology, Spring 2011 25 Lecture 1 Sharif University of Technology, Spring 2011 26
Lecture 1 Sharif University of Technology, Spring 2011 27 Lecture 1 Sharif University of Technology, Spring 2011 28