Docsity

Understanding Computing Systems: Abstraction, Hardware, and Software, Study notes of Engineering

Toggle sidebar
bg1
1.3 Two Recurring Themes (pp 5-7)
1. Notion of abstraction
Operating at the highest level of abstraction allows us to be more efficient.
However, we should understand components below the level of their abstractions, so
that we know what’s going on when combining multiple components into a larger
system (and can troubleshoot).
2. Hardware vs software
Most computing problems yield better solutions when the problem solver takes into
account capabilities/limitations of hardware/software. Good to know about both!
1.4 A Computer System (pp 7-11)
Computer = system consisting of software and hardware.
oSoftware directs and specifies the processing of information
oHardware performs the actual processing of information in response to what the
software asks the hardware to do (additions, multiplications)
oHardware = central processing unit (CPU) = processor / microprocessor
When people use the word computer, they usually mean a collection of parts – a computer
system
oComputer system = CPU/processor + keyboard + mouse + disks/USB + software …
1.5 Two Very Important Ideas (pp 11-12)
1. All computers are capable of computing exactly the same things if they are given enough time
and enough memory.
Anything a fast/expensive computer can do, a slow/cheap computer can do, as long as
the cheaper computer can access enough memory
2. Problems in computers are solved by electrons running around inside the computer.
Remember that very complicated tasks are actually simple and straightforward.
pf3
pf4
pf5

Partial preview of the text

Download Understanding Computing Systems: Abstraction, Hardware, and Software and more Study notes Engineering in PDF only on Docsity!

1.3 Two Recurring Themes (pp 5-7)

1. Notion of abstraction  Operating at the highest level of abstraction allows us to be more efficient.  However, we should understand components below the level of their abstractions, so that we know what’s going on when combining multiple components into a larger system (and can troubleshoot). 2. Hardware vs software  Most computing problems yield better solutions when the problem solver takes into account capabilities/limitations of hardware/software. Good to know about both! 1.4 A Computer System (pp 7-11)  Computer = system consisting of software and hardware. o Software directs and specifies the processing of information o Hardware performs the actual processing of information in response to what the software asks the hardware to do (additions, multiplications) o Hardware = central processing unit (CPU) = processor / microprocessor  When people use the word computer, they usually mean a collection of parts – a computer system o Computer system = CPU/processor + keyboard + mouse + disks/USB + software … **1.5 Two Very Important Ideas (pp 11-12)

  1. All computers are capable of computing exactly the same things if they are given enough time and enough memory.**  Anything a fast/expensive computer can do, a slow/cheap computer can do, as long as the cheaper computer can access enough memory 2. Problems in computers are solved by electrons running around inside the computer.  Remember that very complicated tasks are actually simple and straightforward.

1.6 Computers as Universal Computational Devices (12-14) Calculating machines over the years… Computers are universal computational devices. Computers are also universal Turing machines. Turing machine = a mathematical model of a machine, developed by Alan Turing, that performs an operation (addition, subtraction) using a set of predetermined rules. Turing’s Thesis: every computation can be performed by some Turing machine. Informal proof: make a machine U that can simulate all Turing machines. This machine receives descriptions of Turing machines to simulate as well as input data, and subsequently computes the appropriate output. U, and, in effect, modern computers, can compute anything that can be computed, because they are programmable. Analog Machines produce an answer by measuring a physical quantity (distance, voltage) hard to increase accuracy Digital Machines produce an answer by manipulating a fixed finite set of digits/numbers easy to increase accuracy, just add more digits Digital Adding Machines Perform only one computation: adding integers Modern Computers Programmable, so perform myriad computations

  1. Translate program into instruction set of the computer.  Instruction set architecture (ISA) is comprised of the following components: o The Set of Instructions supported o The Number of Registers both General-purpose and special o The memory-layout: address space and addressability of the machine o The addressing modes ( = mechanisms computer uses to figure out where operands are located) supported o The data types ( = acceptable representation for operands or ind. data values) supported  The ISA is a specification that is akin to a standards document that describes in detail the what a machine does.  Translation from a high-level language (e.g. C) to the ISA of a computer is done by a translating program called a compiler.  Translation from the unique assembly language of a computer to its ISA is done by an assembler.
  2. Implement the ISA. Implementation = microarchitecture. a. Many design variations with different tradeoffs between: i. Cost ii. Performance iii. Energy required to power the microprocessor
  3. Implement each element of the microarchitecture out of simple logic circuits. Again, tradeoffs between cost and performance (speed)
  4. Implement each basic logic circuit using particular device technology of choice. Fun fact: ISA’s don’t change much between successive generations, because of the need for backward compatibility. You’d like your new computer to still run all your old software.

A useful analogy… microprocessor hardware = car computer program = driver ISA = specification of (a) what the driver has to do to tell the automobile what he/she wants done (e.g. step on the brakes) and (b) correspondingly, what the automobile will interpret those actions to mean so it can carry out the specified tasks (e.g. feels pressure from human on pedal, must activate hardware to stop the car) Microarchitecture = what goes on underneath the hood. ISA vs microarchitecture: An ISA describes the interface to the computer from the perspective of the 0s and 1s of the program. For example, it describes the operations, data types, and addressing modes a programmer can use on that particular computer. It doesn’t specify the actual physical implementation. The microarchitecture does that. Using the car analogy, the ISA is what the driver sees, and the microarchitecture is what goes on under the hood.