上游充通大学 ParisTech Computer SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES Architecture PARIS INSTITUTE OF TECHNOLOGY CPU Basics ● Central Processing Unit 。 Microprocessors CPU and main memory CPU Main Memory Register Unit Arithmetic/Logic Address Cell unit Bus Control unit
CPU Basics • Central Processing Unit • Microprocessors • CPU and main memory Computer Architecture Arithmetic/Logic unit Control unit Register Unit … Address Cell CPU Main Memory Bus 7
上游通大学 ParisTech Computer SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES Architecture PARIS INSTITUTE OF TECHNOLOGY Register unit Register unit contains register (data storage cells) General-purpose registers hold the inputs to the arithmeticllogic unit and space for results CPU Main Memory Register Unit Arithmetic/Logic Address Cell unit Bus Control unit 8
Register unit • Register unit contains register (data storage cells) • General-purpose registers hold the inputs to the arithmetic/logic unit and space for results Arithmetic/Logic unit Control unit Register Unit … Address Cell CPU Main Memory + Bus Computer Architecture 8
上游充通大 ParisTech Computer SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES Architecture PARIS INSTITUTE OF TECHNOLOGY Cache Memory Do you ever hear L1/L2/L3 Cache? Registers,Cache memory and Main memory Register is for immediately applicable data to the operation; Main memory is to hold data for near future; Cache Memory is a portion of high-speed memory located within the CPU itself,keeping a copy of main memory of current interest. Cache memory register Main memory register (on time) 9
Cache Memory • Do you ever hear L1/L2/L3 Cache? • Registers, Cache memory and Main memory – Register is for immediately applicable data to the operation; – Main memory is to hold data for near future; – Cache Memory is a portion of high-speed memory located within the CPU itself, keeping a copy of main memory of current interest. • Cache memory register < Main memory register (on time) Computer Architecture 9
上游充通大 ParisTech Machine SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY Language Stored-program concept A program,just like data,can be encoded and stored in main memory and then be extracted, decoded and execute by control unit. Fundamental approach used today. The set of instructions encoded as bit patterns along with encoding system is called Machine Language. 10
Stored-program concept • A program, just like data, can be encoded and stored in main memory and then be extracted, decoded and execute by control unit. • Fundamental approach used today. • The set of instructions encoded as bit patterns along with encoding system is called Machine Language. Machine Language 10