What is a Computer?A computer is a programmable The two principal characteristics of a computer are: it responds to a specific set of instructions in a well-defined manner and it can execute a prerecorded list of instructions (a program)Modern Computers DefinedModern computers are electronic and The actual machinery -- wires, transistors, and circuits -- is called hardware; the instructions and data are called All general-purpose computers require the following hardware components:memory: enables a computer to store, at least temporarily, data and ass storage device: allows a computer to permanently retain large amounts of Common mass storage devices include disk drives and tape input device: usually a keyboard and mouse, the input device is the conduit through which data and instructions enter a utput device: a display screen, printer, or other device that lets you see what the computer has al processing unit (CPU): the heart of the computer, this is the component that actually executes In addition to these components, many others make it possible for the basic components to work together For example, every computer requires a bus that transmits data from one part of the computer to Computer Classification, By Size and PowerComputers can be generally classified by size and power as follows, though there is considerable overlap:personal computer: a small, single-user computer based on a In addition to the microprocessor, a personal computer has a keyboard for entering data, a monitor for displaying information, and a storage device for saving workstation: a powerful, single-user A workstation is like a personal computer, but it has a more powerful microprocessor and a higher-quality inicomputer: a multi-user computer capable of supporting from 10 to hundreds of users ainframe: a powerful multi-user computer capable of supporting many hundreds or thousands of users supercomputer: an extremely fast computer that can perform hundreds of millions of instructions per Computer Related Q What is computer history? What is computer hardware? What is computer software? What is computer science? What is computer interface? What is computer history?The history of computer development is often referred to in reference to the different generations of computing Each of the five generations of computers is characterized by a major technological development that fundamentally changed the way computers The history of computer development is often referred to in reference to the different generations of computing Each of the five generations of computers is characterized by a major technological development that fundamentally changed the way computers operate, resulting in increasingly smaller, cheaper, more powerful and more efficient and reliable computing In this Webopedia reference article you'll learn about each of the five generations of computers and the technology developments that have led to the current devices that we use Our journey starts in 1940 with vacuum tube circuitry and goes to the present day -- and beyond -- with artificial Related Webopedia Definitions: computer, magnetic drums, binary, integrated circuit, semiconductor, nanotechnologyFirst Generation (1940-1956) Vacuum TubesThe first computers used vacuum tubes for circuitry and magnetic drums for memory, and were often enormous, taking up entire They were very expensive to operate and in addition to using a great deal of electricity, generated a lot of heat, which was often the cause of First generation computers relied on machine language, the lowest-level programming language understood by computers, to perform operations, and they could only solve one problem at a Input was based on punched cards and paper tape, and output was displayed on The UNIVAC and ENIAC computers are examples of first-generation computing The UNIVAC was the first commercial computer delivered to a business client, the US Census Bureau in A UNIVAC computer at the Census BureauA UNIVAC computer at the Census BImage Source: United States Census BureauSecond Generation (1956-1963) TransistorsTransistors replaced vacuum tubes and ushered in the second generation of The transistor was invented in 1947 but did not see widespread use in computers until the late The transistor was far superior to the vacuum tube, allowing computers to become smaller, faster, cheaper, more energy-efficient and more reliable than their first-generation Though the transistor still generated a great deal of heat that subjected the computer to damage, it was a vast improvement over the vacuum Second-generation computers still relied on punched cards for input and printouts for Second-generation computers moved from cryptic binary machine language to symbolic, or assembly, languages, which allowed programmers to specify instructions in High-level programming languages were also being developed at this time, such as early versions of COBOL and FORTRAN These were also the first computers that stored their instructions in their memory, which moved from a magnetic drum to magnetic core The first computers of this generation were developed for the atomic energy Third Generation (1964-1971) Integrated CircuitsThe development of the integrated circuit was the hallmark of the third generation of Transistors were miniaturized and placed on silicon chips, called semiconductors, which drastically increased the speed and efficiency of Instead of punched cards and printouts, users interacted with third generation computers through keyboards and monitors and interfaced with an operating system, which allowed the device to run many different applications at one time with a central program that monitored the Computers for the first time became accessible to a mass audience because they were smaller and cheaper than their Fourth Generation (1971-Present) MicroprocessorsThe microprocessor brought the fourth generation of computers, as thousands of integrated circuits were built onto a single silicon What in the first generation filled an entire room could now fit in the palm of the The Intel 4004 chip, developed in 1971, located all the components of the computer—from the central processing unit and memory to input/output controls—on a single In 1981 IBM introduced its first computer for the home user, and in 1984 Apple introduced the M Microprocessors also moved out of the realm of desktop computers and into many areas of life as more and more everyday products began to use As these small computers became more powerful, they could be linked together to form networks, which eventually led to the development of the I Fourth generation computers also saw the development of GUIs, the mouse and handheld Fifth Generation (Present and Beyond) Artificial IntelligenceFifth generation computing devices, based on artificial intelligence, are still in development, though there are some applications, such as voice recognition, that are being used The use of parallel processing and superconductors is helping to make artificial intelligence a Quantum computation and molecular and nanotechnology will radically change the face of computers in years to The goal of fifth-generation computing is to develop devices that respond to natural language input and are capable of learning and self- What is computer hardware?Hardware refers to objects that you can actually touch, like disks, disk drives, display screens, keyboards, printers, boards, and In contrast, software is Software exists as ideas, concepts, and symbols, but it has no Books provide a useful The pages and the ink are the hardware, while the words, sentences, paragraphs, and the overall meaning are the A computer without software is like a book full of blank pages -- you need software to make the computer useful just as you need words to make a book What is computer software?Software means computer instructions or Anything that can be stored electronically is software, in contrast to storage devices and display devices which are called The terms software and hardware are used as both nouns and For example, you can say: "The problem lies in the software," meaning that there is a problem with the program or data, not with the computer You can also say: "It's a software "The distinction between software and hardware is sometimes confusing because they are so integrally Clearly, when you purchase a program, you are buying But to buy the software, you need to buy the disk (hardware) on which the software is Categories of SoftwareSoftware is often divided into two Systems software includes the operating system and all the utilities that enable the computer to Applications software includes programs that do real work for For example, word processors, spreadsheets, and database management systems fall under the category of applications What is computer science?Computer science is the study of computers, including both hardware and software Computer science is composed of many broad disciplines, including artificial intelligence and software Most universities now offer bachelor, master, and doctorate degrees in computer What is computer interface?Interface is a boundary across which two independent systems meet and act on or communicate with each In computer technology, there are several types of user interface - the keyboard, mouse, menus of a computer The user interface allows the user to communicate with the operating Also see GUIsoftware interface - the languages and codes that the applications use to communicate with each other and with the hardware interface - the wires, plugs and sockets that hardware devices use to communicate with each
REDUCED INSTRUCTION SET COMPUTERS Studies of the execution behavior of high-level language programs have provided guidance in designing a new type of processor architecture:the reduced instruction set computer(RISC).Assignment statements predominate,suggesting that the simple movement of data should be optimized.There are also many IF and LOOP instructions,which suggest that the underlying sequence control mechanism needs to be optimized to permit efficient pipelining.Studies of operand reference patterns suggest that it should be possible to enhance performance by keeping a moderate number of operands in registers. These studies have motivated the key characteristics of RISC machines:(1)a limited instruction set with a fixed format.(2)a large number of registers or the use of a compiler that optimizes register usage,and(3)an emphasis on optimizing the instruction pipeline. The simple instruction set of a RISC lends itself to efficient pipelining because there are fewer and more predictable operations performed per instruction.[1] A RISC instruction set architecture also lends itself to the delayed branch technique,in which branch instructions are rearranged with other instructions to improve pipeline efficiency. Although RISC systems have been defined and designed in a variety of ways by different groups,the key elements shared by most designs are these: .A large number of general-purpose registers,or the use of compiler technology to optimize register usage .A limited and simple instruction set .An emphasis on optimizing the instruction pipeline Table 2-1 compares several RISC and non-RISC 1.Instruction Execution Characteristics To understand the line of reasoning of the RISC advocates,we begin with a brief review of instruction execution characteristics.The aspects of computation of interest are as follows: • Operations performed:These determine the functions to be performed by the processor and its interaction with memory. • Operands used:The types of operands and the frequency of their use determine the memory organization for storing them and the addressing modes for accessing them. • Execution sequencing:This determines the control and pipeline organization. 2.The Use of A Large Register File [2] The reason that register storage is indicated is that it is the fastest available storage device,faster than both main memory and cache.The register file is physically small,generally on the same chip as the ALU and control unit,and employs much shorter addresses than addresses for cache and memory.Thus,a strategy is needed that will allow the most frequently accessed operands to be kept in registers and to minimize register-memory operations. Two basic approaches are possible,one based on software and the other on hardware.The software approach is to rely on the compiler to maximize register usage.The compiler will attempt to allocate registers to those variables that will be used the most in a given time period.This approach requires the use of sophisticated programanalysis algorithms.The hardware approach is simply to use more registers so that more variables can be held in registers for longer periods of time. 3.Characteristics of Reduced Instruction Set Architectures Although a variety of different approaches to reduced instruction set architecture have been taken,certain characteristics are common to all of them.These characteristics are listed in Table 2.1 and described here. The first characteristic listed in Table 2.1 is that there is one machine instruction per machine cycle.A machine cycle is defined to be the time it takes to fetch two operands from registers,perform an ALU operation,and store the result in a register.Thus,RISC machine instructions should be no more complicated than,and execute about as fast as,microinxtructions on CISC machines.[3] With simple,one –cycle instructions,there is little or no need for microcode;the machine instructions can be hardwired[4].Such instructions should execute faster than comparable machine instructions on other machines,since it is not necessary to access a microprogram control store during instruction execution. A second characteristic is that most operations should be register-to-register,with only simple LOAD and STORE operations accessing memory.This design feature simplifies the instruction set and therefore the control unit.For example,a RISC instruction set may include only one or two ADD instructions( ,integer add,add with carry);the VAX has 25 different ADD instructions.Another benefit is that such an architecture encourages the optimization of register use,so that frequently accessed operands remain in high-speed storage. Returning to Table 2-1,a third characteristic is the use of simple addressing modes.Almost all instructions use simple register addressing.Several additional modes,such as displacement and PC-relative,may be included.Other,more complex modes can be synthesized in software from the simple ones.Again,this design feature simplifies the instruction set and the control unit. A final common characteristic is the use of simple instruction formats.Generally,only one or a few formats are used.Instruction length is fixed and aligned on word boundaries.Field locations,especially the opcode,are fixed.This design feature has a number of benefits.With fixed fields,opcode decoding and register operand accessing can occur simultaneously.Simplified formats simplify the control unit.Instruction fetching is optimized since word-length units are fetched.This also means that a single instruction does not cross page boundaries. NOTES [1] lend itself to适合于… [2] register file寄存器组,作为数据或指令的临时存放处的一种多位寄存器组,有时称作栈。 [3] 此句为比较结构no than…,中间插入并列句将被比较对象隔开了。 [4] hardwired硬连线的,即机器指令是固化在硬件(芯片)上的。 KEYWORDS instruction set 指令系统,指令集 reduced instruction set computer(RISC) 精简指令系统计算机 pipeline 流水线 operand 操作数 register 寄存器 compiler 编译器,编译程序 branch instruction 转移指令,分支指令 Complex Instruction Set Computer(CISC) 复杂指令系统计算机 superscalar 超级标量 register file 寄存器组,栈 machine cycle 机器周期 microinstruction 微指令 microcode 微代码,微指令 nncroprogram 微程序 addressing 编址,寻址 精简指令系统计算机(RISC) 对高级语言程序执行性能的研究已经为设计新型处理器体系结构-一精简指令系统计算机提供了指南。赋值语句占据的优势表明应对单纯的数据传送进行优化。还有很多IF和LOOP指令存在,需要优化基本的顺序控制机构,以使流水线作业高效率。操作数引用模式的研究表明,在多个寄存器中保存适当数量的操作数,可以提高性能。 这些研究已经形成了RISC机的一些关键特性:(1)有限的固定格式的指令集;(2)使用大量的寄存器或使用编译器优化寄存器应用;(3)重点优化指令流水线。 因为每条指令完成少数的且多为可预测的操作,RISC的简单指令系统适合高效流水线作业。RISC指令系统体系结构也适合于延迟转移技术,在这种技术中,随同其他指令重新安排转移指令以提高流水线效率。 虽然RISC系统已经由不同的(企业)集团以各种方式进行了定义和设计,但大多数设计所提出的关键元素还是共同的。 用大量的通用寄存器(或使用编译器技术)来优化寄存器的使用; 有限的简单指令系统; 重点优化指令流水线作业。 表2-1比较了几种RISC和非RISC系统。 1.指令执行特性 为了解RISC倡导者们的推理思路,首先观察一下指令执行的一些特性。所要关心的计算特性如下所述。 所完成的操作:这些操作决定了处理器要完成的功能和处理器与存储器的交互 所用的操作数:操作数的类型和使用频度决定了存储操作数的存储机制和访问这些操作数的编址方式。 执行顺序:决定了控制和流水线的机制 2.大寄存器组的应用 使用寄存器存储的理由在于它是可用的最快的存储器件,比主存储器和高速缓存都快。寄存器组实际很小,通常与算术逻辑部件和控制器放在同一芯片上,而且使用比高速缓存和内存储器短很多的地址。因而需要一种允许最频繁访问的操作数保存在寄存器中并使寄存器-存储器操作降至最少的策略。 有两种可以采用的基本方法,一种基于软件,一种基于硬件。软件方法靠编译程序最大限度使用寄存器,编译程序力图将给定时间周期内最常用的那些变量分配到这些寄存器中。这一方法要求使用复杂的程序分析算法。硬件方法就是简单地使用更多的寄存器,使更多的变量保存在寄存器中供长时间使用。 3.精简指令系统体系结构的特性 尽管精简指令系统结构的可用方法有多种,但对它们而言有一些特性是共同的。这些特性列在表2-1中,下面进行解释。 表2-1中列出的第一个特性是每个机器周期有一条机器指令。一个机器周期定义为,机器从寄存器组中取出两个操作数,完成一种算术逻辑部件运算并将结果存入一个寄存器中所用的时间。RISC机器指令应该不比CISC机上的微指令复杂,并且执行起来也很快。因为简单,单周期指令仅需少量或不需要微代码;机器指令可以是硬连线的。这样指令执行起来比其他机器的类似机器指令要快,因为在指令执行期间它不必访问微程序控制存储器。 第二个特性是,大多数操作应该是寄存器对寄存器的,仅有简单的取(LOAD)和存(STORE)操作访问存储器。这种设计特点简化了指令系统,因而也简化了控制器。例如,一个RISC指令系统可以只包括一两种加法(ADD)指令〔例如整数加,进位加〕;VAX机则有25种不同的加法指令。另一好处是这种体系结构促进了对寄存器使用的优化,使得频繁访问的操作数保存在高速存储器中。 从表2-1还可看出第三个特性是采用简单的编址方式。几乎所有指令都采用简单的寄存器编址。几种附加的方式,如移位和与PC有关的方式可以包括进去。另外,更为复杂的方式可以用简单的方式在软件中合成。再次强调,这种设计特点简化了指令系统和控制器。 最后一个共同特性是采用简单的指令格式。一般来讲,只使用了一种或少数几种格式。指令长度是固定的并按字的边界调整。字段的位置,特别是操作码的位置是固定的。这种设计有很多优点,使用固定字段,操作码译码和寄存器操作数访问可同时进行。简化的格式简化了控制器;因为是按字长单位来读取的,所以,取指令也得到优化。这也表明一条指令不会跨页。
Information literacy Knowing how to find data from several sources, select relevant material, analyse and organise it into a form that can be used to make Computers have become the tools people use to access and manage Information technologists are people who analyse and design the What is a computer? Tradition definitions of computers include • A machine that accepts data and processes it into use • A computer is a binary, digital, electronic, stored program • While a computer is commonly a digital machine, analogue machine do An electronic device, operating under the control of instructions stored in its own memory unit, that can accept data (input), process data arithmetically and logically, produce results (output) from the processing and stores results for future Many computers receive and send data (communicate) across networks LAN and W A computer system consists of hardware and What is hardware? Hardware Hardware is physical devices or components that can be physically handled – you can thou Input Devices Input devices convert data that humans collect into coded electrical signals that a computer can The central processing unit The electronic processing takes place in the CPU The CPU consists of • A control unit that controls all of the computer’s functions and an • Arithmetic and logical unit (ALU) that performs any calculation Memory Memory holds all programs and What is RAM currently open? Data (notes) Word processor OS Output devices Output devices convert the computer’s electronic signals back into information Secondary storage devices These devices store programs and data The programs and data are not necessarily (or likely to be) in current E DVD CD Communication devices These devices enable a computer to connect to another List the six different type of hardware? Secondary storage(external), input, processor, output , memory, C Name eight pieces of hardware USB, keyboard, monitor, screen, RAM, ROM, VDU, M The system unit and peripheral devices The system unit is the computer Peripheral devices are any devices around the outside, or in other words, plugged into the (back of) the Peripheral devices include the key board, mouse, printer, joy stick and Peripheral devices are any devices around the outside, or in other words, plugged into the (back of) the Peripheral devices include the keyboard, mouse, printer, joy stick and What else does a computer have? Software Software is a computer program ,which is a detailed set of instructions that directs a computer to perform the tasks necessary to process data into These instructions are written in languages that computer can Software includes computer games, a word processing packing, an accounting package, amongst Definition of a computer system • A computer system is the configuration of hardware and software, functioning together, to process data into useful information, in order to achieve a purpose for a human What is data? • Data is raw facts, be they numbers, words, images and sounds, that can be input into a Mary a name is a piece of data What is information? • Information is processed data, that has meaning and is John is a list of names who scored an A grade on an exam John A Chai A Pam A Commodore $23 500 Magna $21 500 Falcon $19 800 The system unit contains the • Motherboard • CPU • Memory • Other electronics It is where the computer program instructions are executed and the data is manipulatedThe Processor CPU The CPU interprets and carries out basic instructions that operate the computer, the CPU contain the • Control unit and the • Arithmetic logic unit Control unit The control unit directs and coordinates the computer’s For every single instruction, the control unit repeats four basic operations, • Fetching • Decoding • Executing • Storing CPU speed The CPU’s speed may be measured in MIPS The number of millions of instructions per second Arithmetic/logic unit The ALU performs all calculations, which involve • Arithmetic operations 2+3 • Comparison operations age>=17 • Logical operations pass Processing instructions A CPU may begin executing a second machine cycle before completing the first-referred to as Current CPU’s can pipeline up to 4 Storage within the CPU Registers temporarily hold data and The computer’s clock A System clock is necessary to control the timing of all computer Each tick of the clock is referred to as a clock Clock speed is the speed at which a processor executes A hertz is one cycle per second and a megahertz is 1024 by1024 and a gigahertz is 1024 by 1024 Memory Memory is the temporary storage place for data and (program) Memory is measured in • Kilobytes 1024 bytes 2^10 • Megabytes 1024* 1024 bytes 2^20 • Gigabytes 1024*1024*1024 bytes 2^30 Representation of data Digital computers are built from many small electronic Each circuit, at any point of time can be turned OFF or ON Hence these devices are called two state Binary Digit 0and 1 Each off or on digital value is called a bit, short for binary A 1 bit computer would be able to distinguish between two values-characters, symbols or Hardly sufficient for the characters on the keyboard Bits Characters 1 2 2 4 3 8 4 16 5 32 6 64 7 128 8 256