1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.
-
Upload
tyrone-sutton -
Category
Documents
-
view
222 -
download
0
Transcript of 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.
![Page 1: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/1.jpg)
1
CS/COE0447
Computer Organization & Assembly Language
Course Introand
CHAPTER 1
![Page 2: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/2.jpg)
2
Course Information
• Welcome to CS/COE0447!• Professor
– Dr. Jan Wiebe
• Teaching Assistant– Graduate: Kiyeon Lee– Undergraduate:
• Toby Horn, Mike Maksymowych, Jesse Szwedko
• Course web page, including syllabus, lectures notes, assignments, labs, schedule, …– http://www.cs.pitt.edu/~wiebe/courses/CS447/Fall07
![Page 3: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/3.jpg)
3
Computer Systems
• “Desktop computers”– E.g. PCs, MACs, …– Includes Notebooks
• “Servers”– Web servers– File and compute servers– Supercomputers
• “Embedded computers”– Usually NOT directly observable– Very wide range of applications
![Page 4: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/4.jpg)
4
Desktop Computers
![Page 5: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/5.jpg)
5
Servers
![Page 6: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/6.jpg)
6
Embedded Computers
![Page 7: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/7.jpg)
7
A Cell Phone System
![Page 8: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/8.jpg)
8
Computer Organization
We study this part in this course!
Study this part in CS1541!
![Page 9: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/9.jpg)
9
In CS/COE 447• We will study
– Computer architecture• MIPS architecture
– Concepts of assembler, linker, compiler– Computer arithmetic
• Signed and unsigned binary numbers• Floating point format• Operations (add/div/…)
– Logic design– Basic processor performance analysis– Processor organization
• Datapath• Control
• We will do– Assembly language programming (in MIPS)
![Page 10: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/10.jpg)
10
Computer Architecture?
• Computer systems– Underlying hardware– Software running on it
• Computer architecture– The hardware/software interface seen by the user – Instruction set architecture (ISA)
• Processor microarchitecture– Implementation of a given architecture– May or may not be visible to the user
![Page 11: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/11.jpg)
11
Transistors
Layered Approach in Computer Design
Computer Architecture orInstruction Set Architecture
Logic gates
Microarchitecture
Architecture
![Page 12: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/12.jpg)
12
Machine Code Example
swap:muli $t0, $a0, 4add $t0, $a1, $t0lw $t1, 0($t0)lw $t2, 4($t0)sw $t2, 0($t0)sw $t1, 4($t0)jr $ra
void swap(int v[], int k){
int temp;temp = v[k];v[k] = v[k+1];v[k+1] = temp;
}
00000000101000010…00000000000110000…10001100011000100…10001100111100100…10101100111100100…10101100011000100…00000011111000000…
com
piler
assemble
r
![Page 13: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/13.jpg)
13
Components of ISA
• In most cases, a “programmer’s reference manual” (PRM) will disclose the ISA of a processor
• To understand an ISA, find in PRM– Data types the processor supports– Supported instructions and their definitions– Registers (general-purpose & special
purpose)– Processor modes– Exception mechanism
![Page 14: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/14.jpg)
14
Inside a PC
• Integrated Circuits (ICs)– CPU (Central Processing Unit), companion chipset, memory,
peripheral I/O chip (e.g., USB, IDE, IEEE1394, …)• Printed Circuit (PC) boards (next slide)
– Substrate for ICs and interconnection– Distribution of clock, power supply– Heat dissipation
• Hard disk, CD-RW DVD-RW, (floppy disk)• Power supply• Chassis
– Holds boards, power supply, and provides physical interface for user and other systems
• Connectors and cables
![Page 15: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/15.jpg)
15Closeup photo of one side of a motherboard PCB, showing conductive traces and solder points for through-hole components on the opposite side.
![Page 16: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/16.jpg)
16
Integrated Circuits
• 1mm~25mm on a side• 100 ~ 1000M
transistors• 25 ~ 250M “logic gates”
![Page 17: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/17.jpg)
17
Technology Trend (Processor Complexity)
2x transistors/chip every 1.5 years!
![Page 18: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/18.jpg)
18
Moore’s Law• The term Moore's Law has been coined by Carver Mead around
1970.[4] Moore's original statement can be found in his publication "Cramming more components onto integrated circuits", Electronics Magazine 19 April 1965:
• “The complexity for minimum component costs has increased at a rate of roughly a factor of two per year ... Certainly over the short term this rate can be expected to continue, if not to increase. Over the longer term, the rate of increase is a bit more uncertain, although there is no reason to believe it will not remain nearly constant for at least 10 years. That means by 1975, the number of components per integrated circuit for minimum cost will be 65,000. I believe that such a large circuit can be built on a single wafer.[1]
• Astounding that it has held for so long!!!
![Page 19: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/19.jpg)
19
Memory Capacity Trend (DRAM)
1.4x/year or 2x every 2 years8000x since 1980!
size
Year
Bit
s
1000
10000
100000
1000000
10000000
100000000
1000000000
1970 1975 1980 1985 1990 1995 2000
![Page 20: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/20.jpg)
20
Technology Advances (!)
• Memory– DRAM capacity: 2x / 2 years (since ’96)– 64x size improvement in last decade
• Processor– Speed (in terms of clock frequency): 2x / 1.5 years (since
’85)– 100x performance improvement in last decade
• Disk– Capacity: 2x / 1 year (since ’97)– 250x size improvement in last decade
![Page 21: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/21.jpg)
21
Main memory
• PC/servers use “DRAM” (Dynamic RAM)– SDRAM– DDR SDRAM– RDRAM (RAMBUS DRAM)
A typical SDRAM “module”
![Page 22: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/22.jpg)
22
Main memory, cont’d
• Embedded computers use DRAM or SRAM (or both) depending on applications
SRAM, SDRAM, FLASH allin a same chip!
![Page 23: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/23.jpg)
23
Storage
• Secondary storage
• Non-volatile
• Stores programs, user-saved data, etc.
• In PC/server domain, magnetic disk (hard-disk) is usually used
• In embedded computers, “flash” memory or “ROM” is usually employed
![Page 24: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/24.jpg)
24
Storage, cont’d
5.25-inch floppy disk1.2MB
3.5-inch floppy disk1.44MB
USB Flash card256MB
![Page 25: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/25.jpg)
25
Storage, cont’d
![Page 26: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/26.jpg)
26
Computer Networks
• Local Area Network (LAN)– Within limited distance (e.g., in a building)– Mostly based on Ethernet– 10Mbps, 100Mbps, 1Gbps, 10Gbps, …
• Wide Area Network– Connecting networks far apart
• Proliferation of wireless LAN (IEEE802.11)– 1 ~ 100Mbps
![Page 27: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/27.jpg)
27
(Simple) IC Process Overview
• Silicon ingot (silicon cylinder)• (Blank) Wafers• Various steps to build circuits on wafers
– Patterns of chemicals placed wafer• “Wafer test” to sort out bad parts• Tested “die” (diced into components – dies, chips)• “Packaging” steps
– Wire bonding (connected to the I/O pins of a package)• “Chip test” to sort out bad parts (mistakes happen during
packaging)• Products
![Page 28: 1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CHAPTER 1.](https://reader035.fdocuments.in/reader035/viewer/2022062518/56649e525503460f94b47852/html5/thumbnails/28.jpg)
28