UNIT-I BASIC STRUCTURE OF COMPUTERS

Size: px
Start display at page:

Download "UNIT-I BASIC STRUCTURE OF COMPUTERS"

Transcription

1 UNIT-I BASIC STRUCTURE OF COMPUTERS Q) Write short note on types of computers. Computer Types: A computer is a fast electronic calculating machine that accepts digitized information from the user, processes it according to a sequence of instructions stored in the internal storage, and provides the processed information to the user. The sequence of instructions stored in the internal storage is called computer program and internal storage is called computer memory. According to size, cost, computational power and applications computers are classified as: Microcomputers Minicomputers Desktop Computers Personal Computers Portable notebook computers Workstations Mainframes or enterprise systems Servers Super Computers Microcomputers: Microcomputers are smaller computers. They contain only one CPU. One distinguishing feature of microcomputer is that the CPU is usually a single IC called microprocessor. Microcomputer is the integration of microprocessor and supporting peripherals (memory and I/O devices). The word length depends on the microprocessor used and is in the range of 8 bits to 32 bits. These types of computers are used for small industrial control and where storage and speed requirements are moderate. Minicomputers: Minicomputers are the scaled version of the microcomputers with the moderate speed and storage capacity. These are designed to process smaller data words, typically 32-bit words. These types of computers are used for scientific calculations, research, data processing applications etc. Desktop Computers: These are usually found on a home or office desk. They consist of processing unit, storage unit, visual display and audio as output units and keyboard and mouse as input units. Storage unit of such computer consists of hard disks, CD ROMs and diskettes. Personal Computers: The personal computers are the most common form of desktop computers. They found wide use in homes, schools and business offices. Portable Notebook Computers: Portable notebook computers are the compact version of personal computers. Laptops are good example of portable notebook computers. Workstations: Workstations have higher computation power than personal computers. They have high resolution graphics terminals and improved input/output capabilities. Workstations are used in engineering applications and in interactive graphics applications. Mainframes: Mainframe computers are implemented using two or more CPUs. These are designed to work at very high speeds with large data word lengths, typically 64 bits or greater. The data storage capacity of these computers is very high. These types of computers are used for scientific calculations, large data processing applications, and military defense control and for complex graphics applications. GRIET/ECE 1

2 Servers: These computers have large storage unit and faster communication links. The large storage unit allows storing sizable database and fast communication links allow faster communication of data blocks with computers connected in the network. These computers serve major role in internet communication. Super Computers: These computers are basically multiprocessor computers used for the large scale numerical calculations required in applications such as weather forecasting, robotic engineering, aircraft design and simulation. Q) Draw the block diagram of a computer and explain the function of each block. Sol: Functional units of computer: Memory unit Input unit Arithmetic and Logic unit Output unit Control unit Figure 1.1 Basic functional units of a computer The computer consists of five functionally independent units: Input, memory, arithmetic and logic, output and control units. Input unit: A computer accepts digitally coded information through input unit using input devices. The most commonly used input devices are keyboard and mouse. The keyboard is used for entering text and numeric information. On the other hand mouse is used to position the cursor and thereby to enter the information. Apart from keyboard and mouse there are many other input devices available, which include joysticks, trackball, space ball, digitizers and scanners. Memory unit: The memory unit is used to store programs and data. Usually two types of memory devices are used to form a memory unit: Primary storage memory device Secondary storage memory device The primary memory, commonly called main memory is a fast memory commonly used to store programs and active data. The main memory is a semiconductor memory. It consists of a large number of semiconductor storage cells, each capable of storing one bit of information. These cells are read or written by the CPU in a group of fixed size called words. To access data from a particular word from maim memory, each word has a distinct address. The number of bits in each word is referred to as word length of the computer, which may vary from 8 to 64 bits. The number of such words in main memory decides the size of memory. An important characteristic of a memory is an access time, which is the time required to access one word. The access time for main memory should be as small as possible, of the order of 10 to 100 nanoseconds. GRIET/ECE 2

3 The access time depends on type of memory. These memories are fast but they are small in capacities and expensive. Therefore, the computer uses the secondary storage memories such as magnetic tapes, magnetic disks for the storage of large amount of data. Arithmetic and Logic Unit: The ALU is responsible for performing arithmetic operations such as add, subtract, division and multiplication and logical operations such as AND, OR, inverting etc. To perform these operations operands from the main memory are brought into high speed storage elements called registers of the processor. The access times to registers are typically 5 to 10 times faster than access times to memory. Output Unit: The output unit sends the processed results to the user using output devices such as video monitor, printer, plotter etc. The video monitors display the output on the CRT screen whereas printers and plotters give the hardcopy output. Printers are classified according to their printing methodology: Impact printers press formed character faces against an inked printer. Non impact printers and plotters use laser techniques, inkjet sprays, xerographic processes, electrostatic methods to get images onto the paper. Control Unit: The control unit coordinates and controls the activities amongst the functional units. The basic function of control unit is to fetch the instructions stored in the main memory, identify the operations and devices involved in it and the devices involved in it and accordingly generate control signals to execute the desired operations. The control unit uses control signals or timing signals to determine when a given action is to taken place. It controls input and output operations, data transfers between the processor, memory and input/output devices using timing signals. Q) Draw the diagram for connection between the processor and the memory and explain basic operational concepts of computer. Sol: Basic Operational Concepts: The basic function of computer is to execute program (sequence of instructions) which is stored in computer memory. The instructions are executed to process data stored in memory through input unit. After processing the data, the result is stored back into computer memory for further reference or it is sent to the outside world through the output port. Therefore, all functional units of the computer contribute to execute a program. To perform execution of instruction, in addition to ALU and control unit, the processor contains a number of registers used for temporary storage of data and some special function registers as shown below. General purpose registers Processor R 1 PC R 0 ALU R IR MDR MAR Control unit Main Memory GRIET/ECE 3

4 The special function registers include program counter (PC), instruction register (IR), memory address register (MAR) and memory data register (MDR). PC: The program counter is one of the important registers in the CPU. The sequence of instruction execution is monitored by the program counter. It keeps track of which instruction is being executed and what the next instruction will be. IR: It is used to hold the instruction that is currently being executed. The contents of IR are available to control unit, which generate the timing signals. MAR: It holds the address of main memory to or from which data is to be transferred. MDR: It contains the data to be written into or read from addressed word of main memory. It is necessary that computer system should give response to devices such as keyboard, sensor etc. when they request service. When the processor is asked to communicate with devices, it is said that processor is servicing the devices. Eg. Each time when a character is typed on the keyboard, a keyboard service routine is called. The processor can service the device in one of two ways: Polling routine: Here, the processor s software simply checks each of the I/O devices every often. During this check, the processor tests to see if any device needs servicing. Interrupt method: Here, it allows the processor to be executing its main program and only stop to service I/O devices when it is told to do so by the device itself. Once this servicing is completed, the processor would resume exactly where it is left off. It may happen that more than one input devices may request for I/O service simultaneously. In such cases, the I/O device having highest priority is serviced first. Therefore, to handle multiple interrupts processors use priority logic. Main program Interrupt service routine (ISR) Main program ISR1 ISR2 Fig. Single interrupt Fig. Nested interrupt Therefore, the processor provides the requested service by executing an appropriate ISR. Saving the state of processor at the time of interrupt is also one of the functions of the computer system. Q) Write about bus structures. Sol: Bus Structures: The CPU, memory unit and I/O unit are hardware components of a computer which work together with communicating each other and have paths for connecting the modules together. The collection of paths connecting the various modules is called interconnection scheme/structure. GRIET/ECE 4

5 A group of wires called bus is used to provide necessary signals for communication between modules. A bus that connects major computer components (CPU, memory, I/O) is called a system bus. Usually, the system bus is separated into three functional groups: o Data bus o Address bus o Control bus Data bus: Data bus consists of 8, 16, 32, 64 or more parallel signal lines which are bidirectional. So, CPU can read data on these lines from memory or port as well as send data out on these lines to memory or port. Communication between CPU and a peripheral is activated by giving output enable pulse to the peripheral. Outputs of peripherals are floated when they are not in use. Address bus: Unidirectional Consists of 16, 20, 24 or more parallel signal lines. On these lines, CPU sends out the address of the memory location or I/O port that is to be written to or read from. Control bus: Control lines regulate the activity on the bus. CPU sends signals on the control bus to enable the outputs of addressed memory devices or port devices. Typical control bus signals include: Memory Read (MEMR ) Memory Write (MEMW ) I/O Read (IOR ) I/O Write (IOW ) Bus Request (BR) Bus Grant (BG) Interrupt Request (INTR) Interrupt Acknowledge (INTA) Clock Reset Ready Hold Hold Acknowledge (HLDA) System Fig. Bus interconnection scheme Fig. Single bus structure: Here address bus, data bus and control bus are shown by single bus called system bus. Hence, such interconnection bus structure is called single bus structure. GRIET/ECE 5

6 Fig. Single bus structure With single bus, only two units can communicate with each other at a time. The bus control lines are used to arbitrate multiple requests for use of the bus. The main advantage of single bus structure is its low cost and its flexibility for attaching peripheral devices. In most of the processors, multiplexed address and data buses are used to reduce the number of pins. During first part of the bus cycle, address is present on the bus. Afterwards, the same bus is used for data transfer purpose. So latches are required to hold the address sent by the CPU initially. Multiple bus structure: Performance of system suffers when large numbers of devices are connected to the bus. This is because of two reasons. When more devices are connected to the common bus, they need to share the bus among these devices, which requires finite time called propagation delay. This affects the performance of system. When the aggregate data transfer demand approaches the capacity of the bus, the bus may become a bottleneck. In such situations, data rate of the bus is to be increased. Thus most computer systems use multiple buses: Traditional bus configuration High speed bus configuration Traditional bus configuration: Traditional bus connection uses three buses: Local bus System bus Expanded bus Fig. Traditional bus configuration GRIET/ECE 6

7 High speed bus configuration: The high speed bus configuration uses high speed bus along with three buses used in the traditional bus configuration. Here, cache controller is connected to high speed bus. This bus supports connection to high speed LANs, such as video and graphics workstation controllers etc. Fig. High speed bus configuration Q) Define the terms 1) Editor 2) Assembler 3) Macro Assembler 4) Cross Assembler 5) Meta Assembler 6) Linker 7) Locater 8) Interpreter 9) Compiler 10) Debugger 11) Operating system Sol: Software: System software User software System software: Includes OS, editors, assemblers, linkers, loader, compiler, interpreters and debuggers. It is the collection of programs which are needed in the creation, preparation and execution of other programs. So system software in a microcomputer allows one to develop application/user programs for microprocessor based systems. 1. Editor: Editor is a source program which is used to create and modify source programs or text. The editor has commands to change, delete or insert lines or characters. 2. Assembler: Assembler translates an assembly language source file into machine language such as binary or object code. It usually reads source file more than once. It generates two files: i) Object file: contains the binary codes for the instructions and information about the addresses of the instructions. GRIET/ECE 7

8 ii) Assembler list file: contains the assembly language statements, the binary code for each instruction and the offset for each instruction. In first pass, i) Reading the source program instructions. ii) Creating a symbol table in which all symbols used in the program. iii) Replacing all mnemonic codes by their binary codes. iv) Detecting any syntax error in the program. v) Assigning relative addresses to the instructions and data. In second pass, i) Assembler extracts the symbol from operand field and searches for it in symbol table. ii) If symbol does not appear in the table, the corresponding statement is obviously erroneous. iii) If the symbol appears in the table, the symbol is replaced by its address or value. 3. Macro assembler: Macro is a sequence of instructions to which a name is assigned. Macro assembler replaces the macro call by the sequence of instructions that define the macro. Macro assembler functions similar to an assembler, with an additional task of macro expansion. 4. Cross assembler: Distinguishing feature of cross assembler is that it is not written in the same language used by the microprocessor that will execute machine code generated by the assembler. Usually written in a high level language such as C which will make them machine independent. 5. Meta assembler: It supports many different microprocessors. 6. Linker: It is used to join several object files into one large object file. Large program can be divided into modules and can be tested individually. It produces a link file which contains the binary codes for all the combined modules. It also produces a link map which contains the address information of link files. It assigns only relative addresses to the program starting from zero. This form of program is said to be relocatable as it can be put anywhere in memory for execution. 7. Locator: It is a program used to assign specific addresses, at which the object code is to be loaded into memory. Eg. Locator program for IBM PC DOS is EXE2BIN. 8. Interpreter: It processes higher level language program. It executes only one statement at a time. It reads a high level language statement of source program, translates it into machine code, if it does not need information from another instruction, executes the code for that statement immediately. It then reads the next statement, translates it and executes it. Advantage of using an interpreter is that if an error is found, source program can be corrected and immediately rerun it Disadvantage is that an interpreted program runs 5 to 25 times slower than the same program when compiled. The reason is that, with an interpreter each statement must be translated to machine code every time the program is run. GRIET/ECE 8

9 Fig. Operation of interpreter 9. Compiler: It takes the source program written in high level language and translates whole program into machine language. Compiler program reads through the entire high level language source program, translates it to relocatable machine code programs. The output file from the linker is then located to get absolute address. Finally, located program is loaded into memory, and then the entire program can be run without any further translation. Therefore, it will run faster than it would if executed by an interpreter. Disadvantage is that when an error is found, it is corrected in the source program and the entire compile-load sequence is repeated. GRIET/ECE 9

10 Fig. Operation of compiler 10. Debugger: It is a program which allows to load object code into system memory, execute the program and debug it. It allows looking at the contents of registers and memory locations after program runs. It allows changing the contents of registers and memory locations and rerun the program. It allows single step execution. It allows setting breakpoints and stopping wherever required to check the results. It helps to isolate problems in program. 11. Operating system: It serves as an interface between user and machine. It performs resource management. It is a collection of programs that tells the machine what to do under a variety of conditions. Eg. DOS, UNIX, WINDOWS etc. Q) What is the difference between Von Neumann and Harvard architectures? Sol: There are basically two types of digital computer architectures. The first one is called Von Neumann architecture and later Harvard architecture was adopted for designing digital computers. Von Neumann Architecture: GRIET/ECE 10

11 It is named after the mathematician and early computer scientist John Von Neumann. The computer has single storage system (memory) for storing data as well as program to be executed. Processor needs two clock cycles to complete an instruction. Pipelining the instructions is not possible with this architecture. In the first clock cycle the processor gets the instruction from memory and decodes it. In the next clock cycle the required data is taken from memory. For each instruction this cycle repeats and hence needs two cycles to complete an instruction. This is a relatively older architecture and was replaced by Harvard architecture. Harvard Architecture: The name is originated from "Harvard Mark I" a relay based old computer. The computer has two separate memories for storing data and program. Processor can complete an instruction in one cycle if appropriate pipelining strategies are implemented. In the first stage of pipeline the instruction to be executed can be taken from program memory. In the second stage of pipeline data is taken from the data memory using the decoded instruction or address. Most of the modern computing architectures are based on Harvard architecture. But the number of stages in the pipeline varies from system to system. These are the basic differences between the two architectures. Q) Explain about performance of computer and its basic performance equation. Sol: Performance: The faster computer runs a program in less time than other computers. Time between the start and completion of program or event = execution time/response time Throughput is the total amount of work done in a given time. GRIET/ECE 11

12 Reduction in response time increases the throughput. Ideal performance of a computer is achieved when there is a perfect match between machine capability and program behavior. Processor clock: Processor is driven by a clock with a constant cycle time called processor clock. Time period, P of the processor clock affects the processor performance. Clock rate, R = 1/P,(cycles per second, CPS) Basic performance equation: For the execution of program, processor has to execute number of machine instructions denoted by N. N actual number of instructions executed by the processor and is not necessarily equal to the number of instructions in machine language program, because some may be executed more than once and others may not be executed at all. S average number of basic steps required to execute one machine instruction. T = (N x S)/R = (N x CPI)/R Each instruction execution involves cycle of events like instruction fetch, decode, operand fetch, execution and store results. So, memory access is to be performed for instruction fetch, operand fetch and to store results. Memory cycle time needed to complete one memory reference = k times processor cycle, p (depends on speed of memory technology) T = (N x (p +m x k))/r P number of processor cycles required m = number of memory references needed k = ratio between memory cycle and processor cycle Q) Explain about MIPS, throughput rate, MFLOPS rating of a processor. How do we arrive at these values? MIPS: Another way to measure processor speed, measured in terms of million instructions per second (MIPS) MIPS rate = 1/(average time required for the execution of instruction x 10 6 ) = R/ (CPIx10 6 ) = N x R/(N x CPI x 10 6 ) = N/ (T x 10 6 ) Throughput rate: Throughput rate indicates the number of programs a system can execute per unit time. It is specified in programs/second. W s system throughput rate W p processor throughput rate Wp = number of machine instructions executed. per second /number of machine instructions per program = MIPS rate x 10 6 /N Generally, W p >W s W s = W p, if processor is kept busy in a perfect program interleaving fashion. MFLOPS: MFLOPS stands for million floating point operations/second. MFLOPS = number of floating point operations in program/execution time x 10 6 MFLOPS rating is dependent on the program. GRIET/ECE 12

13 Q) Explain about pipelining and superscalar architecture in detail. Sol: Pipelining and superscalar operation: More than one clock cycles are involved in the instruction cycle, which are required to perform various steps in the instruction execution, such as S 1 Fetch (F): Read instruction from the memory. S 2 Decode (D): Decode the Opcode and fetch the source operand if necessary. S 3 Execute (E): Perform the operation specified by the instruction. S 4 Store (S): Store the result in the destination. Usually, instruction is executed by performing above steps one after the other. When these stages for several instructions are performed simultaneously to reduce overall processing time, the processing is called instruction pipelining. In figure, instruction processing is divided into 4 stages hence it is known as four stage instruction pipeline. With this subdivision and assuming equal duration for each stage, the execution time for four instructions is reduced to 7 time units from 16 time units. This means that four distinct hardware units are needed. Clock cycle Instruction I 1 F 1 D 1 E 1 S 1 I 2 F 2 D 2 E 2 S 2 I 3 F 3 D 3 E 3 S 3 I 4 F 4 D 4 E 4 S 4 Fig. Four stage instruction line Pipelining can reduce effective number of clock cycles required for instruction execution and thus increase the rate of executing instructions significantly. Another way to improve the performance is to achieve high degree of concurrency, which can be achieved by implementing multiple instruction pipelines in the processor. To implement multiple instruction pipelines, processor has multiple functional units and they are capable of executing multiple instructions at a time creating parallel execution paths. Such a processor is known as superscalar processor and such an operation is known as superscalar execution. Q) What are benchmark programs? Write the expression for SPEC rating. Sol: Benchmark programs: Measures of instruction execution performance are based on average figures, which are usually determined experimentally by measuring the run times of representative called benchmark programs. The benchmark programs are different for checking the performance of processor for different applications. According to applications, the benchmark programs are classified as, 1. Desktop benchmark 2. Server benchmark 3. Embedded benchmark A nonprofit organization called System Performance Evaluation Corporation (SPEC) specified the benchmark programs and reference computers. GRIET/ECE 13

14 The running time of a benchmark program is compared to decide the SPEC rating of the computer under test. SPEC rating = Running time on reference computer Running time on computer under test The SPEC rating for all selected programs is individually calculated and then the geometric mean of results is computed to determine the overall SPEC rating for the computer under test and is given by 1/n SPEC rating = n number of benchmark programs used for determining SPEC rating Computers providing higher performance have higher SPEC rating. Q) Compare multiprocessors and multi computers. Sol: Multiprocessors and Multicomputers: To fulfill increasing demand for high performance in large computer system, multiple processors are used. Such systems are known as multiprocessor systems. These systems execute a number of different application tasks in parallel or they execute subtasks of a single large task in parallel. In multiprocessor systems, memory is shared between all processors i.e., all processors have the access to entire memory in the system. Such multiprocessor system is known as shared memory multiprocessor system in which multiprocessors and memory unit are interconnected with complex interconnection networks. This increases cost of the system. Hence, we get higher performance at higher cost of the system. It is possible to use multiple computers to achieve high performance. Such systems are called multicomputer systems. In these systems, group of complete computers are interconnected to achieve high total computational power. Here, computers have access only to their own memory units. When the tasks they are executing need to communicate data or to access data from other computers, they use message passing mechanism to exchange the information. Message passing mechanism exchanges the messages over a communication network. Q) Convert the decimal numbers to the bases indicated. i to octal ii to hexadecimal Sol: (7562)10 = (16612)8 (1938)10 = (792)16 Q) Perform the arithmetic operations (+42) + (-13) and (-42) (-13) in binary using signed 2'complement representation for negative numbers. Sol: + 42 = = = = (+42) ( 42) ( 13) (+ 13) (+29) ( 29) Q) Show the given decimal number 8620 in i) BCD ii) excess-3 code iii) 2421 code iv)binary number. Sol: 8620 (a) BCD (b) XS (c) (d) Binary ( ) GRIET/ECE 14

15 Q) Explain clearly the terms Computer Organization, Computer Architecture. Sol: A computer's architecture is its abstract model and is the programmer's view in terms of instructions, addressing modes and registers. A computer's organization expresses the realization of the architecture. Architecture describes what the computer does and organization describes how it does it. Architecture and organization are independent; you can change the organization of a computer without changing its architecture. For example, a 64-bit architecture can be internally organized as a true 64-bit machine or as a 16-bit machine that uses four cycles to handle 64-bit values. The difference between architecture and organization is best illustrated by a noncomputer example. Is the gear lever in a car part of its architecture or organization? The architecture of a car is simple; it transports you from A to B. The gear lever belongs to the car's organization because it implements the function of a car but is not part of that function (a car does not intrinsically need a gear lever). Q) Explain about the sign magnitude and 2 s complement representations used for the fixed point numbers. Which among the above is most preferred and why? Sol: When an integer binary number is positive, the sign is represented by 0 and the magnitude by a positive binary number. When the number is negative, the sign is represented by 1 but the rest of the number may be represented in one of three possible ways: 1. Signed-magnitude representation 2. Signed l's complement representation 3. Signed 2's complement representation The signed-magnitude representation of a negative number consists of the magnitude and a negative sign. In the other two representations, the negative number is represented in either the l's or 2's complement of its positive value. Complements are used in digital computers for simplifying the subtraction operation and for logical manipulation. There are two types of complements for each base r system: the r's complement and the (r - l)'s complement. Although there is only one way to represent +14, there are three different ways to represent 14 with eight bits. In signed-magnitude representation In signed-l's complement representation In signed-2's complement representation The signed-magnitude representation of 14 is obtained from +14 by complementing only the sign bit. The signed-l's complement representation of -14 is obtained by complementing all the bits of +14, including the sign bit. The signed-2's complement representation is obtained by taking the 2's complement of the positive number, including its sign bit. Q) Obtain the 1 s and 2 s complement of the following. i ii iii iv Sol: S. no Given no. 1 s complement 2 s complement i ii iii iv Q) Derive the circuit for a 3 bit parity generator and 4 bit parity checker using an odd parity bit. Sol: Binary information transmitted through some form of communication medium is subject to external noise that could change bits from 1 to 0, and vice versa. In most practical systems, there is always a finite probability of the occurrence of a single error. Two types of codes that are used for single error detection and correction are error detection codes and error correction codes. An error detection code is a binary code that detects digital errors during transmission. The detected errors cannot be corrected but their presence is indicated. The most common error detection code used is the parity bit. A parity bit is an extra bit included with a binary message GRIET/ECE 15

16 to make the total number of l's either odd or even. A message of three bits and two possible parity bits is shown in Table. Message P (odd) P (even) xyz Table: Parity bit generation The P (odd) bit is chosen in such a way as to make the sum of l's (in all four bits) odd. The P (even) bit is chosen to make the sum of all l's even. In either case, the sum is taken over the message and the Pbit. The even-parity scheme has the disadvantage of having a bit combination of all 0's, while in the odd parity there is always one bit (of the four bits that constitute the message and P) that is 1. Note that the P (odd) is the complement of the P (even). During transfer of information from one location to another, the parity bit is handled as follows. At the sending end, the message (in this case three bits) is applied to a parity generator, where the required parity bit is generated. The message, including the parity bit, is transmitted to its destination. At the receiving end, all the incoming bits (in this case, four) are applied to a parity checker that checks the proper parity adopted (odd or even). An error is detected if the checked parity does not conform to the adopted parity. The parity method detects the presence of one, three, or any odd number of errors. An even number of errors is not detected. Parity generator and checker networks are logic circuits constructed with exclusive-or functions. An odd function is a logic function whose value is binary 1 if, and only if, an odd number of variables are equal to 1. According to this definition, the P (even) function is the exclusive-or of x, y, and z because it is equal to 1 when either one or all three of the variables are equal to 1. The P (odd) function is the complement of the P (even) function. Example: Consider a 3-bit message to be transmitted with an odd parity bit. At the sending end, the oddparity bit is generated by a parity generator circuit. As shown in Fig. a, this circuit consists of one exclusive-or and one exclusive-nor gate. Since P (even) is the exclusive-or of x, y, z, and P (odd) is the complement of P (even), it is necessary to employ an exclusive-nor gate for the needed complementation. The message and the odd parity bit are transmitted to their destination where they are applied to a parity checker. An error has occurred during transmission if the parity of the four bits received is even, since the binary information transmitted was originally odd. The output of the parity checker would be 1 when an error occurs, that is, when the number of l's in the four inputs is even. Since the exclusive-or function of the four inputs is an odd function, we again need to complement the output by using an exclusive-nor gate. GRIET/ECE 16

17 C Q) How to detect overflow in 2 s complement additional subtraction? Explain with examples. Sol: When two numbers of n digits each are added and the sum occupies n + 1digits, we say that an overflow occurred. An overflow is a problem in digital computers because the width of registers is finite. A result that contains n + 1 bits cannot be accommodated in a register with a standard length of n bits. For this reason, many computers detect the occurrence of an overflow, and when it occurs, a corresponding flip-flop is set which can then be checked by the user. The detection of an overflow after the addition of two binary numbers depends on whether the numbers are considered to be signed or_ unsigned. When two unsigned numbers are added, an overflow is detected from the end carry out of the most significant position. In the case of signed numbers, the leftmost bit always represents the sign, and negative numbers are in 2's complement form. When two signed numbers are added, the sign bit is treated as part of the number and the end carry does not indicate an overflow. An overflow cannot occur after an addition if one number is positive and the other is negative, since adding a positive number to a negative number produces a result that is smaller than the larger of the two original numbers. An overflow may occur if the two numbers added are both positive or both negative. Example: Two signed binary numbers, +70 and +80, are stored in two 8-bit registers. The range of numbers that each register can accommodate is from binary +127 to binary Since the sum of the two numbers is +150, it exceeds the capacity of the 8-bit register. This is true if the numbers are either both positive or both negative. The two additions in binary are shown below together with the last two carries. Carries: 0 1 carries: Note that the 8-bit result that should have been positive has a negative sign bit and the 8-bit result that should have been negative has a positive sign bit. If, however, the carry out of the sign bit position is taken as the sign bit of the result, the 9-bit answer so obtained will be correct. Since the answer cannot be accommodated within 8 bits, we say that an overflow occurred. Overflow detection: An overflow condition can be detected by observing the carry into the sign bit position and the carry out of the sign bit position. If these two carries are not equal, an overflow condition is produced. This is indicated in the examples where the two carries are explicitly shown. GRIET/ECE 17

18 If the two carries are applied to an exclusive-or gate, an overflow will be detected when the output of the gate is equal to 1. Q) Explain floating-point representation with example. What is meant by Normalization of floating point numbers? Sol: The floating-point representation of a number has two parts. The first part represents a signed, fixed-point number called the mantissa. The second part mantissa designates the position of the decimal (or binary) point and is called the exponent exponent. The fixed-point mantissa may be a fraction or an integer. For example, the decimal number is represented in floating-point with a fraction and an exponent as follows: Fraction Exponent The value of the exponent indicates that the actual position of the decimal point is four positions to the right of the indicated decimal point in the fraction. This representation is equivalent to the scientific notation X Floating-point is always interpreted to represent a number in the following form: m x r e A floating-point binary number is represented in a similar manner except that it uses base 2 for the exponent. For example, the binary number is represented with an 8-bit fraction and 6-bit exponent as follows: Fraction Exponent The fraction has a 0 in the leftmost position to denote positive The exponent has the equivalent binary number +4. The floating-point number is equivalent to mx2 e = +( ) 2 x 2 +4 A floating-point number is said to be normalized if the most significant digit of mantissa is nonzero. For example the decimal number_350 is normalized but is not. Regardless of where the position of the radix point is assumed to be in the mantissa, the number is normalized only if its leftmost digit is nonzero. For example, the 8-bit binary number is not normalized because of the three leading 0's. The number can be normalized by shifting it three positions to the left and discarding the leading 0's to obtain Normalized numbers provide the maximum possible precision for the floating-point number. A zero cannot be normalized because it does not have a nonzero digit. It is usually represented in floating-point by all 0's in the mantissa and exponent. Two main standard forms of floating-point numbers are from the following organizations that decide standards: ANSI (American National Standards Institute) and IEEE (Institute of Electrical and Electronic Engineers). Arithmetic operations with floating-point numbers are more complicated than arithmetic operations with fixed-point numbers and their execution takes longer and requires more complex hardware. However, floating-point representation is a must for scientific computations because of the scaling problems involved with fixed-point computations. Q) GRIET/ECE 18

Computer Organization

Computer Organization Computer Organization It describes the function and design of the various units of digital computers that store and process information. It also deals with the units of computer that receive information

More information

COMPUTER ORGANISATION CHAPTER 1 BASIC STRUCTURE OF COMPUTERS

COMPUTER ORGANISATION CHAPTER 1 BASIC STRUCTURE OF COMPUTERS Computer types: - COMPUTER ORGANISATION CHAPTER 1 BASIC STRUCTURE OF COMPUTERS A computer can be defined as a fast electronic calculating machine that accepts the (data) digitized input information process

More information

STRUCTURE OF DESKTOP COMPUTERS

STRUCTURE OF DESKTOP COMPUTERS Page no: 1 UNIT 1 STRUCTURE OF DESKTOP COMPUTERS The desktop computers are the computers which are usually found on a home or office desk. They consist of processing unit, storage unit, visual display

More information

UNIT I STRUCTURE OF COMPUTERS

UNIT I STRUCTURE OF COMPUTERS Unit I UNIT I STRUCTURE OF COMPUTERS 1.1 Digital Computer The digital computer is a digital system that performs various computational tasks. The word digital implies that the information in the computer

More information

CHAPTER TWO. Data Representation ( M.MORRIS MANO COMPUTER SYSTEM ARCHITECTURE THIRD EDITION ) IN THIS CHAPTER

CHAPTER TWO. Data Representation ( M.MORRIS MANO COMPUTER SYSTEM ARCHITECTURE THIRD EDITION ) IN THIS CHAPTER 1 CHAPTER TWO Data Representation ( M.MORRIS MANO COMPUTER SYSTEM ARCHITECTURE THIRD EDITION ) IN THIS CHAPTER 2-1 Data Types 2-2 Complements 2-3 Fixed-Point Representation 2-4 Floating-Point Representation

More information

Chapter 3 - Top Level View of Computer Function

Chapter 3 - Top Level View of Computer Function Chapter 3 - Top Level View of Computer Function Luis Tarrataca luis.tarrataca@gmail.com CEFET-RJ L. Tarrataca Chapter 3 - Top Level View 1 / 127 Table of Contents I 1 Introduction 2 Computer Components

More information

COMPUTER ORGANIZATION AND ARCHITECTURE

COMPUTER ORGANIZATION AND ARCHITECTURE COMPUTER ORGANIZATION AND ARCHITECTURE For COMPUTER SCIENCE COMPUTER ORGANIZATION. SYLLABUS AND ARCHITECTURE Machine instructions and addressing modes, ALU and data-path, CPU control design, Memory interface,

More information

Chapter 3. Top Level View of Computer Function and Interconnection. Yonsei University

Chapter 3. Top Level View of Computer Function and Interconnection. Yonsei University Chapter 3 Top Level View of Computer Function and Interconnection Contents Computer Components Computer Function Interconnection Structures Bus Interconnection PCI 3-2 Program Concept Computer components

More information

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY COMPUTER ARCHITECURE- III YEAR EEE-6 TH SEMESTER 16 MARKS QUESTION BANK UNIT-1

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY COMPUTER ARCHITECURE- III YEAR EEE-6 TH SEMESTER 16 MARKS QUESTION BANK UNIT-1 CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY COMPUTER ARCHITECURE- III YEAR EEE-6 TH SEMESTER 16 MARKS QUESTION BANK UNIT-1 Data representation: (CHAPTER-3) 1. Discuss in brief about Data types, (8marks)

More information

Computer Organization and Assembly Language

Computer Organization and Assembly Language Computer Organization and Assembly Language Week 01 Nouman M Durrani COMPUTER ORGANISATION AND ARCHITECTURE Computer Organization describes the function and design of the various units of digital computers

More information

CPE300: Digital System Architecture and Design

CPE300: Digital System Architecture and Design CPE300: Digital System Architecture and Design Fall 2011 MW 17:30-18:45 CBC C316 Number Representation 09212011 http://www.egr.unlv.edu/~b1morris/cpe300/ 2 Outline Recap Logic Circuits for Register Transfer

More information

Top-Level View of Computer Organization

Top-Level View of Computer Organization Top-Level View of Computer Organization Bởi: Hoang Lan Nguyen Computer Component Contemporary computer designs are based on concepts developed by John von Neumann at the Institute for Advanced Studies

More information

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: 1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: A microprocessor is a programmable electronics chip that has computing and decision making capabilities similar to central processing unit

More information

UNIT - I: COMPUTER ARITHMETIC, REGISTER TRANSFER LANGUAGE & MICROOPERATIONS

UNIT - I: COMPUTER ARITHMETIC, REGISTER TRANSFER LANGUAGE & MICROOPERATIONS UNIT - I: COMPUTER ARITHMETIC, REGISTER TRANSFER LANGUAGE & MICROOPERATIONS (09 periods) Computer Arithmetic: Data Representation, Fixed Point Representation, Floating Point Representation, Addition and

More information

Dec Hex Bin ORG ; ZERO. Introduction To Computing

Dec Hex Bin ORG ; ZERO. Introduction To Computing Dec Hex Bin 0 0 00000000 ORG ; ZERO Introduction To Computing OBJECTIVES this chapter enables the student to: Convert any number from base 2, base 10, or base 16 to any of the other two bases. Add and

More information

CPU ARCHITECTURE. QUESTION 1 Explain how the width of the data bus and system clock speed affect the performance of a computer system.

CPU ARCHITECTURE. QUESTION 1 Explain how the width of the data bus and system clock speed affect the performance of a computer system. CPU ARCHITECTURE QUESTION 1 Explain how the width of the data bus and system clock speed affect the performance of a computer system. ANSWER 1 Data Bus Width the width of the data bus determines the number

More information

1 Digital tools. 1.1 Introduction

1 Digital tools. 1.1 Introduction 1 Digital tools 1.1 Introduction In the past few years, enormous advances have been made in the cost, power, and ease of use of microcomputers and associated analog and digital circuits. It is now possible,

More information

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015 Advanced Parallel Architecture Lesson 3 Annalisa Massini - 2014/2015 Von Neumann Architecture 2 Summary of the traditional computer architecture: Von Neumann architecture http://williamstallings.com/coa/coa7e.html

More information

Module 5 - CPU Design

Module 5 - CPU Design Module 5 - CPU Design Lecture 1 - Introduction to CPU The operation or task that must perform by CPU is: Fetch Instruction: The CPU reads an instruction from memory. Interpret Instruction: The instruction

More information

Unit objective. Unit Introduction UNIT - I. In this unit you will be introduced to :

Unit objective. Unit Introduction UNIT - I. In this unit you will be introduced to : Unit objective In this unit you will be introduced to : UNIT - I The basic structure of a computer, Machine instructions and their execution, System software that enables the preparation and execution

More information

Chapter 4. MARIE: An Introduction to a Simple Computer. Chapter 4 Objectives. 4.1 Introduction. 4.2 CPU Basics

Chapter 4. MARIE: An Introduction to a Simple Computer. Chapter 4 Objectives. 4.1 Introduction. 4.2 CPU Basics Chapter 4 Objectives Learn the components common to every modern computer system. Chapter 4 MARIE: An Introduction to a Simple Computer Be able to explain how each component contributes to program execution.

More information

COMPUTER ARCHITECTURE AND ORGANIZATION Register Transfer and Micro-operations 1. Introduction A digital system is an interconnection of digital

COMPUTER ARCHITECTURE AND ORGANIZATION Register Transfer and Micro-operations 1. Introduction A digital system is an interconnection of digital Register Transfer and Micro-operations 1. Introduction A digital system is an interconnection of digital hardware modules that accomplish a specific information-processing task. Digital systems vary in

More information

Id Question Microprocessor is the example of architecture. A Princeton B Von Neumann C Rockwell D Harvard Answer A Marks 1 Unit 1

Id Question Microprocessor is the example of architecture. A Princeton B Von Neumann C Rockwell D Harvard Answer A Marks 1 Unit 1 Question Microprocessor is the example of architecture. Princeton Von Neumann Rockwell Harvard nswer Question bus is unidirectional. ata ddress ontrol None of these nswer Question Use of isolates PU form

More information

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

CREATED BY M BILAL & Arslan Ahmad Shaad Visit: CREATED BY M BILAL & Arslan Ahmad Shaad Visit: www.techo786.wordpress.com Q1: Define microprocessor? Short Questions Chapter No 01 Fundamental Concepts Microprocessor is a program-controlled and semiconductor

More information

D I G I T A L C I R C U I T S E E

D I G I T A L C I R C U I T S E E D I G I T A L C I R C U I T S E E Digital Circuits Basic Scope and Introduction This book covers theory solved examples and previous year gate question for following topics: Number system, Boolean algebra,

More information

2. (a) Compare the characteristics of a floppy disk and a hard disk. (b) Discuss in detail memory interleaving. [8+7]

2. (a) Compare the characteristics of a floppy disk and a hard disk. (b) Discuss in detail memory interleaving. [8+7] Code No: A109211202 R09 Set No. 2 1. (a) Explain the purpose of the following registers: i. IR ii. PC iii. MDR iv. MAR. (b) Explain with an example the steps in subtraction of two n-digit unsigned numbers.

More information

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers 1. Define microprocessors? UNIT-I A semiconductor device(integrated circuit) manufactured by using the LSI technique. It includes

More information

Review of Number Systems

Review of Number Systems Review of Number Systems The study of number systems is important from the viewpoint of understanding how data are represented before they can be processed by any digital system including a digital computer.

More information

The functional block diagram of 8085A is shown in fig.4.1.

The functional block diagram of 8085A is shown in fig.4.1. Lecture-13 Internal Architecture of Intel 05A The functional block diagram of 05A is shown in fig.4.1. INTA INTR RST7.5 RST5.5 RST6.5 TRAP SOD SID INTERRUPT SERIAL I/O (Internal Bus) FR(S) IR() B() C()

More information

COMPUTER ARCHITECTURE AND ORGANIZATION. Operation Add Magnitudes Subtract Magnitudes (+A) + ( B) + (A B) (B A) + (A B)

COMPUTER ARCHITECTURE AND ORGANIZATION. Operation Add Magnitudes Subtract Magnitudes (+A) + ( B) + (A B) (B A) + (A B) Computer Arithmetic Data is manipulated by using the arithmetic instructions in digital computers. Data is manipulated to produce results necessary to give solution for the computation problems. The Addition,

More information

MICROPROCESSOR MICROPROCESSOR. From the above description, we can draw the following block diagram to represent a microprocessor based system: Output

MICROPROCESSOR MICROPROCESSOR. From the above description, we can draw the following block diagram to represent a microprocessor based system: Output 8085 SATISH CHANDRA What is a Microprocessor? The word comes from the combination micro and processor. Processor means a device that processes whatever. In this context, processor means a device that processes

More information

Chapter 2 Logic Gates and Introduction to Computer Architecture

Chapter 2 Logic Gates and Introduction to Computer Architecture Chapter 2 Logic Gates and Introduction to Computer Architecture 2.1 Introduction The basic components of an Integrated Circuit (IC) is logic gates which made of transistors, in digital system there are

More information

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085. (1) Draw and explain the internal architecture of 8085. The architecture of 8085 Microprocessor is shown in figure given below. The internal architecture of 8085 includes following section ALU-Arithmetic

More information

Digital System Design Using Verilog. - Processing Unit Design

Digital System Design Using Verilog. - Processing Unit Design Digital System Design Using Verilog - Processing Unit Design 1.1 CPU BASICS A typical CPU has three major components: (1) Register set, (2) Arithmetic logic unit (ALU), and (3) Control unit (CU) The register

More information

Number Systems CHAPTER Positional Number Systems

Number Systems CHAPTER Positional Number Systems CHAPTER 2 Number Systems Inside computers, information is encoded as patterns of bits because it is easy to construct electronic circuits that exhibit the two alternative states, 0 and 1. The meaning of

More information

1. Draw general diagram of computer showing different logical components (3)

1. Draw general diagram of computer showing different logical components (3) Tutorial 1 1. Draw general diagram of computer showing different logical components (3) 2. List at least three input devices (1.5) 3. List any three output devices (1.5) 4. Fill the blank cells of the

More information

PART A (22 Marks) 2. a) Briefly write about r's complement and (r-1)'s complement. [8] b) Explain any two ways of adding decimal numbers.

PART A (22 Marks) 2. a) Briefly write about r's complement and (r-1)'s complement. [8] b) Explain any two ways of adding decimal numbers. Set No. 1 IV B.Tech I Semester Supplementary Examinations, March - 2017 COMPUTER ARCHITECTURE & ORGANIZATION (Common to Electronics & Communication Engineering and Electronics & Time: 3 hours Max. Marks:

More information

PESIT Bangalore South Campus

PESIT Bangalore South Campus Fourth Semester B.E. IA Test-1, 2015 USN 1 P E I S PESIT Bangalore South Campus (Hosur Road, 1KM before Electronic City, Bangalore-560 100) Department of Information Science & Engineering Section: 4 th

More information

DC57 COMPUTER ORGANIZATION JUNE 2013

DC57 COMPUTER ORGANIZATION JUNE 2013 Q2 (a) How do various factors like Hardware design, Instruction set, Compiler related to the performance of a computer? The most important measure of a computer is how quickly it can execute programs.

More information

9/3/2015. Data Representation II. 2.4 Signed Integer Representation. 2.4 Signed Integer Representation

9/3/2015. Data Representation II. 2.4 Signed Integer Representation. 2.4 Signed Integer Representation Data Representation II CMSC 313 Sections 01, 02 The conversions we have so far presented have involved only unsigned numbers. To represent signed integers, computer systems allocate the high-order bit

More information

Computer Organization

Computer Organization INF 101 Fundamental Information Technology Computer Organization Assistant Prof. Dr. Turgay ĐBRĐKÇĐ Course slides are adapted from slides provided by Addison-Wesley Computing Fundamentals of Information

More information

Chapter 1: Basics of Microprocessor [08 M]

Chapter 1: Basics of Microprocessor [08 M] Microprocessor: Chapter 1: Basics of Microprocessor [08 M] It is a semiconductor device consisting of electronic logic circuits manufactured by using either a Large scale (LSI) or Very Large Scale (VLSI)

More information

Chapter 1 Microprocessor architecture ECE 3120 Dr. Mohamed Mahmoud http://iweb.tntech.edu/mmahmoud/ mmahmoud@tntech.edu Outline 1.1 Computer hardware organization 1.1.1 Number System 1.1.2 Computer hardware

More information

Basic Processing Unit: Some Fundamental Concepts, Execution of a. Complete Instruction, Multiple Bus Organization, Hard-wired Control,

Basic Processing Unit: Some Fundamental Concepts, Execution of a. Complete Instruction, Multiple Bus Organization, Hard-wired Control, UNIT - 7 Basic Processing Unit: Some Fundamental Concepts, Execution of a Complete Instruction, Multiple Bus Organization, Hard-wired Control, Microprogrammed Control Page 178 UNIT - 7 BASIC PROCESSING

More information

QUESTION BANK. EE 6502 / Microprocessor and Microcontroller. Unit I Processor. PART-A (2-Marks)

QUESTION BANK. EE 6502 / Microprocessor and Microcontroller. Unit I Processor. PART-A (2-Marks) QUESTION BANK EE 6502 / Microprocessor and Microcontroller Unit I- 8085 Processor PART-A (2-Marks) YEAR/SEM : III/V 1. What is meant by Level triggered interrupt? Which are the interrupts in 8085 level

More information

THE MICROCOMPUTER SYSTEM CHAPTER - 2

THE MICROCOMPUTER SYSTEM CHAPTER - 2 THE MICROCOMPUTER SYSTEM CHAPTER - 2 20 2.1 GENERAL ASPECTS The first computer was developed using vacuum tubes. The computers thus developed were clumsy and dissipating more power. After the invention

More information

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015 Advanced Parallel Architecture Lesson 3 Annalisa Massini - Von Neumann Architecture 2 Two lessons Summary of the traditional computer architecture Von Neumann architecture http://williamstallings.com/coa/coa7e.html

More information

UNIT-II. Part-2: CENTRAL PROCESSING UNIT

UNIT-II. Part-2: CENTRAL PROCESSING UNIT Page1 UNIT-II Part-2: CENTRAL PROCESSING UNIT Stack Organization Instruction Formats Addressing Modes Data Transfer And Manipulation Program Control Reduced Instruction Set Computer (RISC) Introduction:

More information

Chapter 1. Digital Systems and Binary Numbers

Chapter 1. Digital Systems and Binary Numbers Chapter 1. Digital Systems and Binary Numbers Tong In Oh 1 1.1 Digital Systems Digital age Characteristic of digital system Generality and flexibility Represent and manipulate discrete elements of information

More information

Behind the Curtain. Introduce TA Friday 1 st lab! (1:30-3:30) (Do Prelab before) 1 st Problem set on Thurs. Comp 411 Fall /16/13

Behind the Curtain. Introduce TA Friday 1 st lab! (1:30-3:30) (Do Prelab before) 1 st Problem set on Thurs. Comp 411 Fall /16/13 Behind the Curtain 1. Number representations 2. Computer organization 2. Computer Instructions 3. Memory concepts 4. Where should code go? 5. Computers as systems Introduce TA Friday 1 st lab! (1:30-3:30)

More information

Chapter 2: Computers: The Machines Behind Computing.

Chapter 2: Computers: The Machines Behind Computing. Chapter 2: Computers: The Machines Behind Computing. TRUEFALSE 1. Computers perform all tasks using a combination of arithmetic and logical operations. 2. Fourth-generation languages (4GLs) are also called

More information

CHW 261: Logic Design

CHW 261: Logic Design CHW 261: Logic Design Instructors: Prof. Hala Zayed Dr. Ahmed Shalaby http://www.bu.edu.eg/staff/halazayed14 http://bu.edu.eg/staff/ahmedshalaby14# Slide 1 Slide 2 Slide 3 Digital Fundamentals CHAPTER

More information

Chapter 4. MARIE: An Introduction to a Simple Computer

Chapter 4. MARIE: An Introduction to a Simple Computer Chapter 4 MARIE: An Introduction to a Simple Computer Chapter 4 Objectives Learn the components common to every modern computer system. Be able to explain how each component contributes to program execution.

More information

UNIT I DATA REPRESENTATION, MICRO-OPERATIONS, ORGANIZATION AND DESIGN

UNIT I DATA REPRESENTATION, MICRO-OPERATIONS, ORGANIZATION AND DESIGN UNIT I DATA REPRESENTATION, MICRO-OPERATIONS, ORGANIZATION AND DESIGN Data representation: Data types, complements, fixed point representation, floating-point representation, other binary codes, error

More information

Instruction Register. Instruction Decoder. Control Unit (Combinational Circuit) Control Signals (These signals go to register) The bus and the ALU

Instruction Register. Instruction Decoder. Control Unit (Combinational Circuit) Control Signals (These signals go to register) The bus and the ALU Hardwired and Microprogrammed Control For each instruction, the control unit causes the CPU to execute a sequence of steps correctly. In reality, there must be control signals to assert lines on various

More information

Digital Fundamentals

Digital Fundamentals Digital Fundamentals Tenth Edition Floyd Chapter 2 2009 Pearson Education, Upper 2008 Pearson Saddle River, Education NJ 07458. All Rights Reserved Decimal Numbers The position of each digit in a weighted

More information

Chapter 13. The ISA of a simplified DLX Why use abstractions?

Chapter 13. The ISA of a simplified DLX Why use abstractions? Chapter 13 The ISA of a simplified DLX In this chapter we describe a specification of a simple microprocessor called the simplified DLX. The specification is called an instruction set architecture (ISA).

More information

MARIE: An Introduction to a Simple Computer

MARIE: An Introduction to a Simple Computer MARIE: An Introduction to a Simple Computer 4.2 CPU Basics The computer s CPU fetches, decodes, and executes program instructions. The two principal parts of the CPU are the datapath and the control unit.

More information

EE 3170 Microcontroller Applications

EE 3170 Microcontroller Applications EE 3170 Microcontroller Applications Lecture 4 : Processors, Computers, and Controllers - 1.2 (reading assignment), 1.3-1.5 Based on slides for ECE3170 by Profs. Kieckhafer, Davis, Tan, and Cischke Outline

More information

Vtusolution.in COMPUTER ORGANIZATION. Subject Code: 10CS46 PART A

Vtusolution.in COMPUTER ORGANIZATION. Subject Code: 10CS46 PART A COMPUTER ORGANIZATION Subject Code: UNIT-1 PART A 6 Hours Basic Structure of Computers: Computer Types, Functional Units, Basic Operational Concepts, Bus Structures, Performance Processor Clock, Basic

More information

Microprocessors and Microcontrollers Prof. Santanu Chattopadhyay Department of E & EC Engineering Indian Institute of Technology, Kharagpur

Microprocessors and Microcontrollers Prof. Santanu Chattopadhyay Department of E & EC Engineering Indian Institute of Technology, Kharagpur Microprocessors and Microcontrollers Prof. Santanu Chattopadhyay Department of E & EC Engineering Indian Institute of Technology, Kharagpur Lecture - 09 8085 Microprocessors (Contd.) (Refer Slide Time:

More information

2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5.

2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5. DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EE6502- MICROPROCESSORS AND MICROCONTROLLERS UNIT I: 8085 PROCESSOR PART A 1. What is the need for ALE signal in

More information

User. Application program. Interfaces. Operating system. Hardware

User. Application program. Interfaces. Operating system. Hardware Operating Systems Introduction to Operating Systems and Computer Hardware Introduction and Overview The operating system is a set of system software routines that interface between an application program

More information

The Institution of Engineers - Sri Lanka

The Institution of Engineers - Sri Lanka / The Institution of Engineers - Sri Lanka PART III- EXAMINATION 2012 311- COMPUTER SYSTEMS ENGINEERING Time Allowed: 3 hours INSTRUCTIONS TO CANDIDATES 1. This paper contains 8 questions in 5 pages 2.

More information

5 Computer Organization

5 Computer Organization 5 Computer Organization 5.1 Foundations of Computer Science Cengage Learning Objectives After studying this chapter, the student should be able to: List the three subsystems of a computer. Describe the

More information

The Central Processing Unit

The Central Processing Unit The Central Processing Unit All computers derive from the same basic design, usually referred to as the von Neumann architecture. This concept involves solving a problem by defining a sequence of commands

More information

b) Write basic performance equation.

b) Write basic performance equation. 1. a) What is use of buffers? Ans: The Buffer Register prevents the high speed processor from being locked to a slow I/O device during a sequence of data transfer or reduces speed mismatch between faster

More information

Chapter 1 : Introduction

Chapter 1 : Introduction Chapter 1 Introduction 1.1 Introduction A Microprocessor is a multipurpose programmable, clock driven, register based electronic device that reads binary instructions from a storage device called memory,

More information

Basics of Microprocessor

Basics of Microprocessor Unit 1 Basics of Microprocessor 1. Microprocessor Microprocessor is a multipurpose programmable integrated device that has computing and decision making capability. This semiconductor IC is manufactured

More information

COMPUTER SYSTEM. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U

COMPUTER SYSTEM. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U C A N A D I A N I N T E R N A T I O N A L S C H O O L O F H O N G K O N G 5.1 Introduction 5.2 Components of a Computer System Algorithm The Von Neumann architecture is based on the following three characteristics:

More information

5 Computer Organization

5 Computer Organization 5 Computer Organization 5.1 Foundations of Computer Science ã Cengage Learning Objectives After studying this chapter, the student should be able to: q List the three subsystems of a computer. q Describe

More information

WYSE Academic Challenge Computer Fundamentals Test (State Finals)

WYSE Academic Challenge Computer Fundamentals Test (State Finals) WYSE Academic Challenge Computer Fundamentals Test (State Finals) - 1998 1. What is the decimal value for the result of the addition of the binary values: 1111 + 0101? (Assume a 4 bit, 2's complement representation.)

More information

Unit 9 : Fundamentals of Parallel Processing

Unit 9 : Fundamentals of Parallel Processing Unit 9 : Fundamentals of Parallel Processing Lesson 1 : Types of Parallel Processing 1.1. Learning Objectives On completion of this lesson you will be able to : classify different types of parallel processing

More information

CC411: Introduction To Microprocessors

CC411: Introduction To Microprocessors CC411: Introduction To Microprocessors OBJECTIVES this chapter enables the student to: Use number { base 2, base 10, or base 16 }. Add and subtract binary/hex numbers. Represent any binary number in 2

More information

Microprocessor, Microcomputer and Associated Languages

Microprocessor, Microcomputer and Associated Languages 1 Microprocessor, Microcomputer and Associated Languages 1. On which model is based the basic architecture of a digital computer? Ans. The basic architecture of a digital computer is based on Von Neumann

More information

(+A) + ( B) + (A B) (B A) + (A B) ( A) + (+ B) (A B) + (B A) + (A B) (+ A) (+ B) + (A - B) (B A) + (A B) ( A) ( B) (A B) + (B A) + (A B)

(+A) + ( B) + (A B) (B A) + (A B) ( A) + (+ B) (A B) + (B A) + (A B) (+ A) (+ B) + (A - B) (B A) + (A B) ( A) ( B) (A B) + (B A) + (A B) COMPUTER ARITHMETIC 1. Addition and Subtraction of Unsigned Numbers The direct method of subtraction taught in elementary schools uses the borrowconcept. In this method we borrow a 1 from a higher significant

More information

Topics. Hardware and Software. Introduction. Main Memory. The CPU 9/21/2014. Introduction to Computers and Programming

Topics. Hardware and Software. Introduction. Main Memory. The CPU 9/21/2014. Introduction to Computers and Programming Topics C H A P T E R 1 Introduction to Computers and Programming Introduction Hardware and Software How Computers Store Data Using Python Introduction Computers can be programmed Designed to do any job

More information

2 MARKS Q&A 1 KNREDDY UNIT-I

2 MARKS Q&A 1 KNREDDY UNIT-I 2 MARKS Q&A 1 KNREDDY UNIT-I 1. What is bus; list the different types of buses with its function. A group of lines that serves as a connecting path for several devices is called a bus; TYPES: ADDRESS BUS,

More information

Modes of Transfer. Interface. Data Register. Status Register. F= Flag Bit. Fig. (1) Data transfer from I/O to CPU

Modes of Transfer. Interface. Data Register. Status Register. F= Flag Bit. Fig. (1) Data transfer from I/O to CPU Modes of Transfer Data transfer to and from peripherals may be handled in one of three possible modes: A. Programmed I/O B. Interrupt-initiated I/O C. Direct memory access (DMA) A) Programmed I/O Programmed

More information

History and Basic Processor Architecture

History and Basic Processor Architecture History and Basic Processor Architecture History of Computers Module 1 Section 1 What Is a Computer? An electronic machine, operating under the control of instructions stored in its own memory, that can

More information

Computer Systems. Binary Representation. Binary Representation. Logical Computation: Boolean Algebra

Computer Systems. Binary Representation. Binary Representation. Logical Computation: Boolean Algebra Binary Representation Computer Systems Information is represented as a sequence of binary digits: Bits What the actual bits represent depends on the context: Seminar 3 Numerical value (integer, floating

More information

ADVANCED COMPUTER ARCHITECTURE TWO MARKS WITH ANSWERS

ADVANCED COMPUTER ARCHITECTURE TWO MARKS WITH ANSWERS ADVANCED COMPUTER ARCHITECTURE TWO MARKS WITH ANSWERS 1.Define Computer Architecture Computer Architecture Is Defined As The Functional Operation Of The Individual H/W Unit In A Computer System And The

More information

PESIT Bangalore South Campus

PESIT Bangalore South Campus INTERNAL ASSESSMENT TEST I Date: 30/08/2017 Max Marks: 40 Subject & Code: Computer Organization 15CS34 Semester: III (A & B) Name of the faculty: Mrs.Sharmila Banu.A Time: 8.30 am 10.00 am Answer any FIVE

More information

CHAPTER 4 MARIE: An Introduction to a Simple Computer

CHAPTER 4 MARIE: An Introduction to a Simple Computer CHAPTER 4 MARIE: An Introduction to a Simple Computer 4.1 Introduction 177 4.2 CPU Basics and Organization 177 4.2.1 The Registers 178 4.2.2 The ALU 179 4.2.3 The Control Unit 179 4.3 The Bus 179 4.4 Clocks

More information

Introduction to Computer Science-103. Midterm

Introduction to Computer Science-103. Midterm Introduction to Computer Science-103 Midterm 1. Convert the following hexadecimal and octal numbers to decimal without using a calculator, showing your work. (6%) a. (ABC.D) 16 2748.8125 b. (411) 8 265

More information

N.B. These pastpapers may rely on the knowledge gained from the previous chapters.

N.B. These pastpapers may rely on the knowledge gained from the previous chapters. N.B. These pastpapers may rely on the knowledge gained from the previous chapters. 1 SEC 94-PAPER 1-Q3B Briefly explain the purpose of the PROGRAM COUNTER 2 SEC 94-PAPER 2A-Q4 (a) Why is a 16-bit 60 MHz

More information

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY CHAPTER 5 : Introduction to Intel 8085 Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY The 8085A(commonly known as the 8085) : Was first introduced in March 1976 is an 8-bit microprocessor with 16-bit address

More information

AC58/AT58 COMPUTER ORGANIZATION DECEMBER Q2 (a) With the help of diagram explain the different functional units of a Computer?

AC58/AT58 COMPUTER ORGANIZATION DECEMBER Q2 (a) With the help of diagram explain the different functional units of a Computer? Q2 (a) With the help of diagram explain the different functional units of a Computer? Answer: A computer consists of five functionally independent units, namely: input, memory, arithmetic and logic (ALU)

More information

Segment 1A. Introduction to Microcomputer and Microprocessor

Segment 1A. Introduction to Microcomputer and Microprocessor Segment 1A Introduction to Microcomputer and Microprocessor 1.1 General Architecture of a Microcomputer System: The term microcomputer is generally synonymous with personal computer, or a computer that

More information

CS6303 COMPUTER ARCHITECTURE LESSION NOTES UNIT II ARITHMETIC OPERATIONS ALU In computing an arithmetic logic unit (ALU) is a digital circuit that performs arithmetic and logical operations. The ALU is

More information

Number System. Introduction. Decimal Numbers

Number System. Introduction. Decimal Numbers Number System Introduction Number systems provide the basis for all operations in information processing systems. In a number system the information is divided into a group of symbols; for example, 26

More information

Components of a personal computer

Components of a personal computer Components of a personal computer Computer systems ranging from a controller in a microwave oven to a large supercomputer contain components providing five functions. A typical personal computer has hard,

More information

Computer Systems Organization

Computer Systems Organization The IAS (von Neumann) Machine Computer Systems Organization Input Output Equipment Stored Program concept Main memory storing programs and data ALU operating on binary data Control unit interpreting instructions

More information

COMPUTER ORGANIZATION AND ARCHITECTURE

COMPUTER ORGANIZATION AND ARCHITECTURE Page 1 1. Which register store the address of next instruction to be executed? A) PC B) AC C) SP D) NONE 2. How many bits are required to address the 128 words of memory? A) 7 B) 8 C) 9 D) NONE 3. is the

More information

Computer Architecture

Computer Architecture Computer Architecture Lecture 1: Digital logic circuits The digital computer is a digital system that performs various computational tasks. Digital computers use the binary number system, which has two

More information

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly.

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly. Unit I 8085 and 8086 PROCESSOR Introduction to microprocessor A microprocessor is a clock-driven semiconductor device consisting of electronic logic circuits manufactured by using either a large-scale

More information

SRI VENKATESWARA COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF ECE EC6504 MICROPROCESSOR AND MICROCONTROLLER (REGULATION 2013)

SRI VENKATESWARA COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF ECE EC6504 MICROPROCESSOR AND MICROCONTROLLER (REGULATION 2013) SRI VENKATESWARA COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF ECE EC6504 MICROPROCESSOR AND MICROCONTROLLER (REGULATION 2013) UNIT I THE 8086 MICROPROCESSOR PART A (2 MARKS) 1. What are the functional

More information

Get Free notes at Module-I One s Complement: Complement all the bits.i.e. makes all 1s as 0s and all 0s as 1s Two s Complement: One s complement+1 SIGNED BINARY NUMBERS Positive integers (including zero)

More information

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Introduction to Computing Module No: CS/ES/1 Quadrant 1 e-text

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Introduction to Computing Module No: CS/ES/1 Quadrant 1 e-text e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Introduction to Computing Module No: CS/ES/1 Quadrant 1 e-text About the course : In this digital world, embedded systems are more

More information

CS 31: Intro to Systems Digital Logic. Kevin Webb Swarthmore College February 2, 2016

CS 31: Intro to Systems Digital Logic. Kevin Webb Swarthmore College February 2, 2016 CS 31: Intro to Systems Digital Logic Kevin Webb Swarthmore College February 2, 2016 Reading Quiz Today Hardware basics Machine memory models Digital signals Logic gates Circuits: Borrow some paper if

More information