Docsity

Advanced Computer Architecture, Lecture notes, Newar, Study notes of Advanced Computer Architecture

Toggle sidebar
bg1
Advanced Computer Architecture
(B.C.A. Part-III)
Nitika Newar, MCA
Deptt. of I.T.
Biyani Girls College, Jaipur
Hastlipi, Jaipur
Syllabus
B.C.A. Part-III
Advanced Computer Architecture
Parallel Computer Models : The state of computing, multiprecessors and
multicomputers, multivector and SIMD computers, architectural development tracks.
Program and Network Properties : Conditions of parallelism, program partitioning
and scheduling, program flow mechanisms.
System Interconnect Architectures : Network properties and routing, Static
interconnection network and dynamic intercommection networks.
Processors and Memory Hierachy : Advanced processor technology—CISC, RISC,
Superscalar, Vector VLIW and symbolic processors, memory technology.
Bus, Cache and Shared Memory.
Linerer Pipeline Processors, Nonlinear Pipeline, processors Instruction pipeline
Design Multiprocessors System Interconnets Vector Processing Principles, Multivector
Multiprocessors.
Content
S. No. Name of Topic Page No.
1. Parallel Computer Models 9-29
1.1 Multiprocesors
1.2 Parallel processing
1.3 State of computing
1.4 History of computer Architecture
1.5 Parallelism
1.6 Levels of Paralleism
1.7 Vector super computers
1.8 Shared memory multiprocessor
1.9 Distributed memory multicomputers
1.10 SIMD computers
1.11 Architectural Development Tracks
1.12 SIMD array processor
2. Program partitioning or scheduling 30-33
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e

Partial preview of the text

Download Advanced Computer Architecture, Lecture notes, Newar and more Study notes Advanced Computer Architecture in PDF only on Docsity!

Advanced Computer Architecture

(B.C.A. Part-III)

Nitika Newar, MCA

Deptt. of I.T.

Biyani Girls College, Jaipur

Hastlipi, Jaipur

Syllabus

B.C.A. Part-III

Advanced Computer Architecture

Parallel Computer Models : The state of computing, multiprecessors and multicomputers, multivector and SIMD computers, architectural development tracks. Program and Network Properties : Conditions of parallelism, program partitioning and scheduling, program flow mechanisms. System Interconnect Architectures : Network properties and routing, Static interconnection network and dynamic intercommection networks. Processors and Memory Hierachy : Advanced processor technology—CISC, RISC, Superscalar, Vector VLIW and symbolic processors, memory technology. Bus, Cache and Shared Memory. Linerer Pipeline Processors, Nonlinear Pipeline, processors Instruction pipeline Design Multiprocessors System Interconnets Vector Processing Principles, Multivector Multiprocessors.

Content

S. No. Name of Topic Page No.

1. Parallel Computer Models 9- 29 1.1 Multiprocesors 1.2 Parallel processing 1.3 State of computing 1.4 History of computer Architecture 1.5 Parallelism 1.6 Levels of Paralleism 1.7 Vector super computers 1.8 Shared memory multiprocessor 1.9 Distributed memory multicomputers 1.10 SIMD computers 1.11 Architectural Development Tracks 1.12 SIMD array processor 2. Program partitioning or scheduling 30- 33

2.1 Program Flow Mechanisms 2.2 Data flow Architecture 2.3 Grain Sizes & Latency 2.4 Scheduling procedure

3. System Interconnect Architecture 34- 42 3.1 Network properties 3.2 Bisection width 3.3 Data routing functions

Chapter 1

Parallel Computer Models

Q.1. What is multiprocessors? What are the types of multi-processors? Ans. A multiprocessor system is an inter connection of two or more CPUs with memory as input-output equipment. A multiprocessors are classified as multiple instruction stream, multiple data stream (MIMD) systems. There are some similarties between multiprocessor & multicomputer systems since both support concurrent operations. However there exists an important distinction between a system with multiple computers & a system with multiple processors. Computers are interconnected with each other by means of communication lines to form a computer network. The network consists of several autonomous computers that may or may not communicate with each other. A multiprocessor system is controlled by one operating system that provides inter-connection between processors& all the components of the system cooperate in the solution of a problem very large scale integrated circuit technology has reduced the cost of computer components to such a low level that the concept of applying multiple processors to meet system performance requirements has become an attractive design possibility. Multiprocessing improves the reliability of system so that a failure or error in one part has limited effect on rest of system. If a fault causes one processor to fail, a second processor can be assigned to perform the functions of disabled processor. The system as whole can continue to function correctly with perhaps some loss in efficiency. The benefits derived from a multiprocessor organisation is an improved system performance. The system derives its high performance from the fact that computations can proceed in parallel in one of two ways:

  1. Multiple independent jobs can be made to operate in parallel.
  2. A single job can be partitioned into multiple parallel tasks. An example is a computer system where are processor performs the computations for an industrial process control while others monitors control various parameter such as temperature and flow rate. Another example is a computer where are processor performs high speed floating point mathematical computations and another take care of routine data processing tasks. Multiprocessing can improve performance by decomposing a program into parallel executable tasks. This can be achieved in one of two ways:

and the operands diverted to each unit under the supervision of control unit. Singe Instruction stream – Single Data Stream (SISD) Single Instruction Multiple Data Stream (SIMD) CU: Control Unit PU: Processing Unit MM: Memory Module These are variety of ways that parallel processing can be classified. One classification introduced by M.J. Flynn considers the organization of computer system by number of instructions and data items that are manipulated simultaneously. The normal operation of a computer is to fetch instructions from memory and execute them in the processor. The sequence of instructions read from memory constitutes an instruction stream. The operations performed on the data is processor constitutes a data stream parallel processing may be occur in the instruction stream, in data stream or both. IS CU IS PU DS MM       PU 1 DS 1 MM 1 PU 2 DS 2 MM 2 CU PUn DSn MMn IS Single instruction stream, single Data stream (SISD) Single instruction stream, multiple data stream (SIMD) Multiple instruction stream, single data stream (MISD) Multiple instruction stream, multiple data stream (MIMD) Multiple Instruction Stream Single Data Stream (MISD) Multiple Instream stream Multiple Data Stream (MIMD) Q.3. Explain the state of computing? Ans. Modern computers are equipped with powerful hardware facilitates driven by extensive software packages. To asses the state of computing we first review historical milestones in the development of computers.      

CU 1 IS 1 PU 1 CU 2 PU 2 CUn ISn MMn IS 2 MM 1 MM 2  IS 1 IS 2 IS 3 PUn DS ISn IS 1 IS 2       CU 1 PU 1 IS 1 DS 1 MM 1 MM 2 MMn DSn CU 2 PU 2 DS 2    CUn ISn PUn ISn IS 2 IS 1 Computer Generations Over the past five decades, electronic computers have gone through fine generations of development. Each of first three generations lasted about 10 years. The fourth generations covered a time span of 15 years. We have just entered the fifth generations with the use of processors & memory devices with more than 1 million transistors on single silicon chip. The table indicates the new hardware and software features introduced with each generation. Most features introduced in earlier generations have been passed to later generations. In other words, the Five Generations of Electronic Computers Generation Technology & Architecture Software & Application Representative System First (1 945 - 54) Second (1955-64) Third (1965-74) Fourth (1975-90)

TC 2000 Fujitsu VPP 500, Gay/MPP, TMC/CM-5, Intel paragon. latest generation computers have inherited all the bad ones found in previous generations. Q.4. How is computer Architecture developed? Ans. Over the past four decades, computer architecture has gone through evolutional rather than revolutional changes sustaining features are those that were proven performance delivers. According to the figure we started with the Von Neumann architecture built as a sequential machine executing scalar data. Sequential computers improved from bit serial to word-parallel operations & from fixed point to floating point operations. The Von Neumann architecture is slow due to sequential execution of instructions in programme. Lookahead, Paralleism and Pipelining : Lookahead techniques were introduced to prefetch instructions in order to overlap I/E (instruction fetch/decode and execution) operations and to enable functional parallelism. Functional parallelism was supported by two approaches: One is to use multiple functional units simultaneously and the other is to practice pipelining at various processing levels. The latter includes pipelined instruction execution, pipelined arithmetic computations and memory access operations. Pipelining has proven especially attractive in performing identical operations repeatedly over vector data strings. Vectors operations were originally carried out implicitly by software controlled looping using scalar pipeline processors. Flynn’s Classification: Michael Flynn (1972) introduced a classification of various computer architectures based on notions of instruction and data streams. Conventional sequential machines are SISD (single instruction stream over a single data stream). Vector computers are equipped with scalar and vector hardware or appear as SIMD (single instruction stream over multiple data streams). Parallel computers are reserved as MIMD (multiple instruction streams over multiple data streams) machines. Q.5. What is Parallelism? What are the various conditions of parallelism Ans. Parallelism is the major concept used in today computer use of multiple functional units is a form of parallelism within the CPU. In early computer only one arithmetic & functional units are there so it cause only one operation to execute at a time. So ALU function can be distributed to multiple functional units, which are operating in paralle. H.T. Kung has identified that there is a need to move in three areas namely computation model for parallel computing, inter process communication in parallel architecture & system integration for incorporating parallel systems into general computing environment. Conditions of Parallelism :

1. Data and resource dependencies : A program is consist of several segments,

so the ability of executing several program segment in parallel requires that each segment should be independent other segment. Dependencies in various segment of a program may be in various form like resource dependency, control depending & data depending. Dependence graph is used to describe the relation. Program statements are represented by nodes and the directed edge with different labels shows the ordered relation among the statements. After analyzing dependence graph, it can be shown that where opportunity exist for parallelization & vectorization. Data Dependencies: Relation between statements is represented by data dependences. There are 5 types of data dependencies given below: (a) Antidependency: A statement S 2 is antidependent on statement S 1 if S 2 follows S 1 in program order and if the output of S 2 overlap the input to S 1. (b) Input dependence: Read & write are input statement input dependence occur not because of same variables involved put because of same file is referenced by both input statements. (c) Unknown dependence: The dependence relation between two statement cannot be determined in following situation The subscript of variable is itself subscribed. The subscript does not contain the loop index variable. Subscript is non linear in the loop index variable. (d) Output dependence: Two statements are output dependence if they produce the same output variable. (e) Flow dependence: The statement S 2 is flow dependent if an statement S 1 , if an expression path exists from S 1 to S 2 and at least are output of S, feeds in an input to S 2.

2. Bernstein’s condition : Bernstein revealed a set of conditions depending on which two process can execute in parallel. A process is a program that is in execution. Process is an active entity. Actually it is an obstraction of a program fragment defined at various processing levels. Ii is the inputset of process Pi which is set of all input variables needed to execute the process similarly the output set of consist of all output variable generated after execution of all process Pi. Input variables are actually the operands which are fetched from the memory or registers. Output variables are the result to be stored in working registers or memory locations. Let there are 2 processes P 1 & P 2 Input sets are I 1 & I 2 Output sets are O 1 & O 2 The two processes P 1 & P 2 can execute in parallel & are directed by P 1 /P 2 if & only if they are independent and do not create confusing results. 3. Software Parallelism : Software dependency is defined by control and data dependency of programs. Degree of parallelism is revealed in the program profile or in program flow graph. Software parallelism is a function of algorithm, programming style and compiler optimization. Program flow graphs shows the pattern of simultaneously executable operation. Parallelism in a program varies

vector processor. Computers with vector processing capabilities are in demand in specialized applications. The following are representative application areas where vector processing is of utmost importance. Long Range weather forecasting Petroleum explorations Medical diagnosis Space flight simulations Vector Processor Models The Architecture of vector super computer Q.8. What are the different shared memory multiprocessor models? Ans. The most popular parallel computers are those that execute programs in MIMD mode. There are two major classes of parallel computers: shared memory multiprocessor & message – passing multi computers. The major distinction Scalar Processor Scalar Functional Pipelines Scalar Instructions Scalar control unit Instructions Main menory Scalar data Mass storage Host computer Vector registers Vector func. pipe Vector function pipe Control Vector control unit Vector processor between multiprocessors & multicomputers lies in memory sharing and the mechanisms used for interprocessor communication. The processor in multiprocessor system communicate with each other through shared variable in a common memory. Each computer node in a multicomputer system has a local memory, unshared with other nodes. Inter process communication is done through message passing among nodes. There are three shared memory multiprocessor models:-

  1. Uniform memory access (UMA) model
  2. Non-uniform memory access (NUMA) model
  3. Cache only memory Architecture (COMA) model These models are differ in how the memory & peripheral resources are shared or distributed. 1. UMA Model: The UMA multiprocessor model In this model the physical memory is uniformly shared by all the processors. All

processors have equal access time to all memory words, which is why it is called uniform memory access. Each processor may use a private cache. Peripherals are alos shared. Multi processors are called tightly coupled systems due to high degree of resource sharing. UMA model is suitable for time sharing applications by multiple users. It can be used to speed up the execution of single large program in time critical application.When all processors have equal access to all peripheral devices, the system is called a symmetric multiprocessor. In this case, all the processors are equally capable of running executive programme, such as kernel. In an asymmetric multiprocessor, only one or subset of processors are executive capable. An executive or master processor can execute the operating system and   P 1 P 2 Pn System Interconnect (Bus, Crossbar, Multistage network) I/O SM 1 SMm Shard manery Processor handle I/O. The remaining processors called attached processors (AP) executes user code under the supervision of master processor.

2. NUMA model: A NUMA multiprocessor is a shared memory system in which the access time varies with the location of memory word. Two NUMA machine models are depicted. The shared memory is physically distributed to all processors, called local memories. The collection of all local memories forms a global address space accessible by all processors. It is faster to access a local memory with a local processor. The access of remote memory attached to other processors takes longer due to the added delay through the interconnection network. Shared Local Memories In the hierarchial cluster Model processors are divided into several clusters. Each cluster may be UMA or NUMA Each cluster is connected to shared memory modules. All processors of a single cluster uniformally access the cluster shared memory modules. All cluster equally access to global memory access time to cluster memory is shorter then that of global memory. A hierarchical cluster models LM 1 LM 2 LMn P 1 P 2 Pn Inter Connection Network   GSM GSM GSM Global Interconnect Network P 1 P 2

Q.10. Explain SIMD Computers? Ans. SIMD means single instruction stream and multiple data stream. These computers are array processors. There are multiple processing elements which are supervised under same control unit. Each processing element receives same instruction but operate on different data from distinct module, SIMD Machine Model An operational model of an SIMD computer is specified by 5- Triple. M = [ N, C, I, M, R] Where (1) N is the number of processing elements (PEs) in the machine. (2) C is the set of instructions directly executed by control unit including scalar and program flow control instructions. (3) I is set of instructions broadcast by CPU to all PEs for parallel execution. These include arithmetic, logic, data routing, masking and other local operations executed by each active PE over data within that PE. (4) M is the set of masking schemes, where each mask partitions the set of PEs into enabled & disabled subsets. (5) R is the set of data routing functions, specifying various patterns to be set up in the inter connection network for inter PE communications. Q.11. What are the Architectural development tracks? Ans. Architecture of todays computers follows development tracks. There are mainly 3 tracks. These tracks are distinguished by similarity in computational model & technological bases.

1. Multiple Processor tracks: As we know multiple processor system can be shared memory or distributed memory. (a) Shared Memory track: Fig. Shared Memory track Standard/Dash Fujitsu VPP 500 CMU/ KSR 1 C.mmP Itlinosis cedar NYU/ Ultra Computer IBM RP 3 BBN Butterfly It shows track of multiprocessor development employing a single address space in the entire system c. mmp was a UMA multiprocessor. The c.mmp project poincered shared memory multiprocessor development not only in the cross architecture but in multiprocessor operating system development. Illinois Codar project and NYO ultra computer project both were developed with a single address space. Both use multi stage network as system inter connect. Standard Dash is a NUMA multiprocessor with distributed memory forming a global address space cache coherence is there with distributed directories. KSR-1 is a COMA model. Fujitsu UPP 500 is processor system with a cross bar inter connected shared memories are distributed to all processor nodes.

(b) Message Passing track: (2) Multivector & SIMD tracks Multivector track The CDC 7600 was first vector dual processor system. There are 2 subtracks derived from CDC-7600. The latest cray/mpp is a massively parallel system with distributed shared memory. (b) SIMD track

3. Multi threaded and Dataflow tracks: In case of multi threaded system, each processor can execute multiple context at the same time. So multiple threading means there are multiple threads of control Cosmic Cuben CUBE – 2/ Inter iPsc’s Intel paragon Mosaic MIT/J Machine CDC Cyber 205- ETA 10 Cray 1 CDC 7600 Cray Y- mp Cray/m PP Fujitru, NEC, Hitachi Mode Illiac IV Goodyear MPP DAP 610 BSP CM Mas Par MP IBM GF/ in each processor. So multi threading hides long latency in building large scale multiprocessors. This track has been experimented in laboratories. Multi threaded track Data Flow Track Q.12. What are the two configurations of SIMD array processor. Ans. Synchronous array of parallel processors is called array processor, which consist of multiple processing element (PES). SIMD array processor have 2 configurations Configuration I Configuration I (Illiac IV) First – SIMD array configuration which are introduced in Illiac – IV computer. This is having N synchronized PEs, all are under the control of one CU. Each PE is an arithmetic logic unit (ALU) with attached working register and local memory PEM for storage. Control unit has its own memory for storage of programs. First user programs are loaded into CU memory and then CU decode all the instructions and determine where the decade instructions should be executed. Scalar and control instructions are executed inside CU and vector instructions are broadcast to the PE for the distributed execution. CDC 600 HFP Tera MIT/Alenrife Static Data flow MIT tagged token Mamchester

available. The instructions in data driven program are not ordered in any way. Instead of being stored in shared memory, data are directly held inside instructions. Computational results are passed directly between instructions. The data generated by instruction will be duplicated into many copies and forwarded directly to all needy instructions. This data driven scheme requires no shared memory, no program counter and no control sequencer. However it requires special mechanism to detect data availability, to match data tokens with needy instructions and to enable the chain reaction of asynchronous instructions execution. Q.2. Explain data flow architecture? Ans. There are quite a few experimental data flow computer projects. Arvind and his associates at MIT have developed a tagged token architecture for building data flow computers. The global architecture consists of n processing elements (PEs) inter connected by an n x n routing network. The entire system supports pipelined data flow operations in all n PEs. Inter PE communications are done through the pipelined routing network. Within each PE, the machine provides a low level token matching mechanism which dispatches only those instructions whose input data are already available. Each datum is tagged with the address of instruction to which it belongs and context in which the instruction is being executed. Instructions are stored in program memory. Tagged tokens enter the PE through a local path. The tokens can also be passed to the other PE through the routing network. All internal circulation operations are pipelined without blocking. Interior Design of a Processing Element One can think of instruction address in a dataflow computer as replacing the program counter & the context identifier replacing the frame base register in Global path nxn Routing Network PE' PE 2 PEn the global architecture From Routing Network Local Path Token Match Program memory Compute Tag ALU Form Token 1 - Structure X x control flow computer. It is the machine job to match up data with same tag to needy instructions. In so doing, new data will be produced with a new tag indicating the successor instructions. Thus each instruction represents a synchronization operation. New tokens are formed and circulated along the PE pipeline for sense or to other PEs through global path, which is also pipelined. Q.3. Explain Grain Sizes and Latency. Ans. Grain Size or granularity is a measure or the amount of computation involved in

a software process. The simplest measure is to count the number of instructions in a given (program segment). Grain size determines the basic program segment chosen for parallel processing. Grain sizes are commonly described as fine, medium or coarse, depending on the processing levels involved. Latency is a time measure of the communication overhead incurred between machine subsystems for example the memory latency is the tune required by processor to access the memory. The time required for two processes to synchronize with each other is called synchronization latency, computational granularity and communication latency are closely related. Q.4. How can we partition a program into parallel branches, program modules, microtasks or grains to yield the shortest possible execution time? Ans. There exists a tradeoff between parallelism and scheduling overhead. The time complexity involves both computation and communication overheads. The program partitioning involves the algorithm designer, programmer, compiler, operating system support etc. The idea of grain packing is to apply five grain first in order to achieve a higher degree of parallelism. Then one combines multiple fine grain nodes into a coarse grain node if it can eliminate unnecessary communications delays or reduces the overall scheduling overhead. Usually, all five grain operations within a single coarse, grain node are assigned to some processor for execution. Fine grain partition of a program often demands more inter processor communication than that required in a course grain partition. Thus grain packings offers a tradeoff between parallelism and scheduling. Internal delays among fine grain operations within the same coarse grain node are negligible because the communication delay is contributed mainly by inter processor delays rather than by delays within the same processor. The choice of optimal grain size is meant to achieve the shortest schedule for the nodes on a parallel computer system.

Chapter 3

System Interconnect Architecture

Q.1. Explain different network properties? Ans. The topology of an interconnection network can be either static or dynamic. Static networks are formed of point-to-point direct connections which will not change during program execution. Dynamic networks are implemented with switched channels, which are dynamically configured to match the communication demand in user programs. Static networks are used for fixed connections among sub systems of a centralized system or multiple computing nodes of a distributed system. Dynamic networks include buses, crossbar switches, multistage networks, which are often used in shared memory multi processors. Both types of network have also been implemented for inter PE data routing in SIMD computers. In general, a network is represented by graph of finite number of nodes linked by directed or undirected edges. The number of nodes in the graph is called the network size.

Similarly routing pattern by using bit C 1 & C 2 is shown below: Routing by middle bit, C 1 000 001 010 011 100 101 110 111 000 001 010 011 100 101 110 111 Routing by most significant bit, C 2 General pattern tells that n-dimensional, cube has n-routing functions, which are defined by each bit of the n-bit address. These data routing functions are used in routing messages in a hypercube multi computer. (c) Broad cast & Multicast: Broad cast is one to all mapping. This is achieved by SIMD computers using a broadcast bus extending from array controller to all PEs. A mechanism is used to broadcast a message in message passing multi computer. Multicast means mapping from one subset to another. There is a variation of broadcast called personalized broadcast. Personalized broadcast sends messages to only selected receivers. Broadcast is a global operation in multi computer. Personalized broadcast may have to be implemented with matching of destination codes in the network. Q.4. What are static interconnection networks? Ans. Static interconnection networks has many topologies. These topologies are classified according to the dimensions required for layout. Example– one dimensions, 2 dimensional, 3- dimensional. One dimensional included linear array which is used for some pipelined architecture 2-dimensional includes topology: ring, star, mesh and systolic array. 3 dimensional includes – completely connected chordal ring, 3-cube and 3- cube connected cycle network. One dimensional topology Linear Array: In this N-nodes are connected by N-1 links in the line. In linear array, each internal node has degree equal to 2. Each external node or terminal node have degree equal to 1. Diameter is N - 1, which is long for large value of N. The bisection width is b = 1. Linear arrays are actually simplest connection topology. Structure of linear assays are not symmetric. So when N is large, then communication inefficiency is there. 000 001 010 011 100 101 110 111 For small N, say N = 2, it is economic to implement a linear array. As diameter increases linearly with respect to N, it should not be used for large N. Linear array is different from bus which is time shared through switching among many nodes attached to it. Concurrent use of different sections of the structure of different source and destination pairs is allowed in linear arrays. Two Dimensional topology Star: Star is a two level tree with a high node degree of = N-1 and a small constant diameter of 2. Star topology is used in systems with a centralized supervisor node. Systolic array: For implementing fixed algorithm this type of pipelined array architecture is used. Figure of systolic array topology is shown:

0 1 2 3 0 0 0 0 7 6 5 4 8 9 10 11 15 14 13 12 0 0 0 0 0 0 0 0 0 0 0 0 O O O O O O O O O O O O O O O O O O O O O 12 0 1 2 3 4 5 6 7 8 9 10 O 11 Star topology Ring topology O O O O O O O O O It is designed for matrix multiplication. Degree of interior nodes are equal to 6. Syntolic array are pipelined which multi dimensional flow of data streams. Systolic array matches the communication structure of the algorithm. It is similar to the fixed inter connection and synchronous ratio over special applications like signal/image processing. It is difficult to program and thus having limited applications. Three Dimensional Topology 3 - Cube A 3- cube having B-nodes is shown below A A 4- cube is made by interconnecting the corresponding nodes of two 3-cubes. Node degree of n-cube is equal to n and so does the network diameter. Nodes degree increases linearly with respect to the dimensions, thus making hypercube difficult to use as a scalable architecture. Cube-Connected Cycles