Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computer Systems. Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false,

Similar presentations


Presentation on theme: "Computer Systems. Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false,"— Presentation transcript:

1 Computer Systems

2 Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false, on and off, open and closed Storing a bit within a machine requires a binary device Binary devices can be in one of two possible states –a light switch is a binary device holds one bit of information: on or off –A light dimmer is not a binary device can be on, off, or some state in-between

3 Boolean operations Bits are manipulated using Boolean operations –AND, OR, XOR, NOT AND 01 000 101 XOR 01 001 110 OR 01 001 111 NOT 01 10

4 Gates A gate is a binary device that produces the output of a Boolean operation given the operation’s input values input output input output inputoutput input output AND NOT XOR OR

5 Circuits AND 01 000 101 OR 01 001 111 0 0 1 10 1 0 1 0 0

6 Circuits AND 01 000 101 OR 01 001 111 0 1 1 01 1 1 0 0 1

7 Circuits 1 1 0 0 01 0 1 1 1 AND 01 000 101 XOR 01 001 110 OR 01 001 111 1 1 0 0 1

8 Circuits 0 0 ? AND 01 000 101 XOR 01 001 110 OR 01 001 111 1

9 Bits and bytes A bit is a single binary or 0/1 value One bit of information is so little that memory is usually organized into groups of eight bits, called a byte Larger measures –kilobyte (KB): 2 10 = 1024 bytes –megabyte (MB): 2 20 = 1,048,576 bytes 1MB = 2 10 KB –gigabyte (GB): 2 30 = 1,073,741,824 bytes 1GB = 2 10 MB

10 Computer systems A computer is a system made up of components –hardware electronic and mechanical parts –software programs and data Main hardware components of a computer system –processor –memory –input/output devices

11 Processor Central processing unit (CPU) “Brain” of the computer Contains the circuitry controlling the interpretation and execution of machine instructions –arithmetic/logic unit data manipulation –control unit coordinates computers activities Machine instructions –electronic operations encoded as bit patterns

12 Machine instructions Data transfer instructions –request the movement or copying of data from one location to another CPU  main memory CPU  input/output devices Arithmetic/logic instructions –basic arithmetic operations, Boolean operations Control instructions –direct the execution of a program rather than the manipulation of data

13 Memory Disk Main memory L2 cache L1 cache capacity size speed, cost Registers

14 Registers Small amount of memory located directly on the CPU Fastest way for the system to manipulate data Speed execution of computer programs by providing quick access to data when performing operations Temporary holding place for values immediately needed by CPU for computation –input for an arithmetic/logic operation is loaded into registers from main memory –arithmetic/logic unit in the CPU executes operation –output is stored in registers Results of computation are written from the registers to main memory upon completion

15 Cache Stores contents of frequently accessed RAM locations and the addresses where these data items are stored –faster to access than main memory since it is usually located on the CPU itself Data in cache is likely to be needed soon by CPU L1 (level 1) cache –closest to the processor, not very large L2 (level 2) cache –bigger than level 1 cache, buffer between L1 and main memory

16 Main memory Primarily RAM (random access memory) –temporarily stores programs and data when the processor is actively using them –interfaces almost directly with the CPU –extremely fast (nanoseconds) on modern computers –volatile Organized into individual units called cells which store data electronically –each cell has a unique address –data can be accessed in random order –cells are typically “byte-sized”

17 Memory operations and ROM Read operations –get data from memory by requesting the contents of a cell at a particular address Write operations –store data in memory by requesting information be placed in a cell at a particular address ROM (read only memory) –nonvolatile main memory –optimized for performing read operations –usually holds the BIOS (program used to boot computer and load the operating system)

18 Secondary memory Permanent memory, mass storage –saves programs and data on a long-term basis operating system software required by the user other non-executable data –hard disk, floppy disk, CD, DVD Disks require physical motion for their operation Read and write operations are slow (milliseconds) compared to main memory Inexpensive compared to main memory

19 Input/output devices Interact primarily with the CPU Most systems have a keyboard, mouse (input devices) and monitor (output device) May consist of any number of additional devices –printer –speakers –modem or Ethernet card –sound and graphics cards –digital camera –secondary monitor –game controllers

20 High-level programming languages Most programs are created using a high level programming language –closer to human language than machine language (low-level) –Java, C, C++, Pascal, FORTRAN –easier to read, write, and maintain Source programs are translated to executable (machine language) programs by a compiler Different programming languages require different compilers One programming language can have many compilers –computer architecture, software package

21 Source program  executable program Create source program using a text editor –written (typed) instructions in a high-level language Save source program on disk Compile source program –compiler translates source program to executable program –source program remains unchanged –a new executable program is created –executable program is saved on disk Run executable program –copied into main memory and run by processor


Download ppt "Computer Systems. Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false,"

Similar presentations


Ads by Google