Mips 64

4,946 views
4,841 views

Published on

Published in: Business, Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,946
On SlideShare
0
From Embeds
0
Number of Embeds
45
Actions
Shares
0
Downloads
133
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Mips 64

  1. 1. IQxplorer MIPS 64-bit processors Project – MSCS 521 Computer Architecture MANAN SHAH ( Block Diagram & its detailed explanation, Instruction set) CHINTAN SHIHORA (Overview, Features, Intro to 64-bit processing , pipelining information , Pros & Cons)
  2. 2. OVERVIEW
  3. 3. Overview <ul><li>The MIPS Instruction Set Architecture has evolved over time from the original MIPS 1 ISA, through the MIPS 5 ISA, to the current MIPS32 and MIPS64 Architectures. All extensions have been backward compatible with previous versions of the Instruction Set Architecture . </li></ul><ul><li>In the MIPS 3 level of the Instruction Set Architecture, 64-bit integers and addresses were added to the instruction set., while in MIPS 4 and MIPS 5 levels of the Instruction Set Architecture added improved floating point operations, as well as a set of instructions intended to improve the efficiency of generated code and of data movement. </li></ul>
  4. 4. Overview (cont.) <ul><li>The 64 bit MIPS Architecture is based on the MIPS 5 ISA and is backward compatible with the MIPS32 Architecture. Both the MIPS32 and MIPS64 Architectures bring the privileged environment into the Architecture definition to address the needs of operating systems and other kernel software. The MIPS64 Architectures are intended to address the need for a high-performance but cost-sensitive MIPS instruction set. </li></ul><ul><li>It include facilities like adding MIPS Application Specific Extensions , User Defined Instructions, and custom coprocessors to address the specific needs. </li></ul>
  5. 5. INTRODUCTION TO 64 BIT PROCESSOR
  6. 6. <ul><li>It refers to the number of bits that can be processed or transmitted in parallel, in short a microprocessor that indicates the width of the registers; a special high-speed storage area within the CPU. </li></ul><ul><li>64-bit therefore refers to a processor with registers that store 64-bit numbers. 64-bit architecture would double the amount of data a CPU can process per clock cycle. </li></ul>What 64-bit refers to?
  7. 7. Need of 64-bit processor <ul><li>  It is needed for the applications that address large amounts of data and memory, such as high-performance servers, database management systems, CAD tools, and digital content creation tools. </li></ul><ul><li>One reason why one can need 64-bit processors is because of their enlarged address spaces. Thirty-two-bit chips are limited to a maximum of 2 GB or 4 GB of RAM access. However, a 4-GB limit can be a severe problem for server machines and machines running large databases. A 64-bit chip has none of these constraints because a 64-bit RAM address space is essentially infinite 2^64 bytes of RAM. </li></ul>
  8. 8. FEATURES OF MIPS 64-bit processors
  9. 9. Features: <ul><li>There are 64-bit virtual addresses </li></ul><ul><li>There is a 64-bit instruction pointer . </li></ul><ul><li>New RIP-relative data addressing mode. </li></ul><ul><li>Flat address space with single code, data, and stack space. </li></ul><ul><li>Dual-Issue 64-bit superscalar architecture </li></ul><ul><li>High-performance 64-bit integer unit. </li></ul><ul><li>High-throughput fully pipelined 64 bit floating point unit . </li></ul><ul><li>High performance SysAD interface. </li></ul>
  10. 10. Features: (cont.) <ul><li>32-bit or 64-bit multiplexed system address/data bus for optimum price/performance. </li></ul><ul><li>Available with 32-bit or 64-bit external bus interface. </li></ul><ul><li>Supports fractional clock ratios. </li></ul><ul><li>JTAG boundary scan. </li></ul><ul><li>Integrated primary caches: </li></ul><ul><li>32 KB instruction and data are 2-way set associative. </li></ul><ul><li>Virtually indexed & physically tagged. </li></ul>
  11. 11. <ul><li>Write-back and write-through on per-page basis. </li></ul><ul><li>Index address modes (register + register). </li></ul><ul><li>Pipeline restart on first double word for data cache misses. </li></ul><ul><li>64-bit MIPS instruction set architecture </li></ul><ul><li>Floating point multiply-add instruction increases performance in signal processing and Graphics applications. </li></ul><ul><li>Conditional moves to reduce branch frequency. </li></ul>Features: (cont.)
  12. 12. INSTRUCTION SET FOR MIPS 64-bit processors
  13. 13. MIPS 64-bit processors Instructions:
  14. 14. BLOCK DIAGRAM FOR MIPS 64-bit processors
  15. 15. Block Diagram: It supports four floating-point multiply-add/subtract instructions which allow two separate floating-point computations to be performed with one instruction. The four instructions are : 1. Multiply-add (MADD) 2. Multiply-subtract (MSUB) 3. Negative Multiply-add (NMADD) 4. Negative Multiply-Subtract (NMSUB)
  16. 16. Index : 1 ) Large On-chip Caches 2) Dual Entry TLB 3) Write Buffer 4) Pipelining 5) Dual-Issue Mechanism 6) Dedicated Integer and FP ALU’s 7) Separate FP Execution Units 8) Scaleable for Multiple Processors 9) Secondary Cache Support 10) Multiple Cache Sizes 11) Simultaneous Access 12) Flexible Clocking Mechanism 13) On-chip Clock Multiplication Circuitry Detailed Explanation (For Block Diagram)
  17. 17. <ul><li>MIPS 64 bit processor contains separate 32 kB data and instruction caches. </li></ul><ul><li>Each cache is 2-way set associative, which helps to increase the hit rate over a direct-mapped implementation </li></ul><ul><li>Cache lines may be classified as write-through or write-back on a per-page basis. </li></ul><ul><li>Both caches are virtually indexed and physically tagged. </li></ul><ul><ul><ul><li>a) A virtually indexed cache allows the cache access to begin as soon as the virtual address is generated, as opposed to waiting for the virtual to physical translation. The cache is accessed at the same time as the address translation is performed. The physical address is then compared against the corresponding instruction or data cache tag. If the compare is valid, the data which has been retrieved from the cache is used. If the compare is not valid, meaning that the address requested does not reside in the cache, the data is not used and a cache miss is generated. </li></ul></ul></ul>Large on- chip Caches: (Detailed explanation- Block diagram)
  18. 18. <ul><li> b) While in Physically tagged data cache allows for coherency between the primary and secondary caches in a system. </li></ul><ul><li>Having large primary caches allows more of the application to be executed on-chip, reducing accesses to slower secondary cache and main memory. This in turn reduces bus utilization and allows the application to run faster since fewer off-chip accesses are required. </li></ul>Large on- chip Caches: (cont.) (Detailed explanation- Block diagram)
  19. 19. <ul><li>The TLB of the MIPS 64 bit processor contains 48 dual entries. This implementation is equivalent to a 96-entry TLB </li></ul><ul><li>Each virtual page number entry equates to two physical frame numbers one even and one odd. </li></ul><ul><li>The lower bit of the Virtual Page Number is used to determine whether the even or odd PFN will be used. </li></ul><ul><li>The TLB is fully-associative. </li></ul>Dual Entry TLB: (Detailed explanation- Block diagram)
  20. 20. <ul><li>Writes to external memory </li></ul><ul><li>The write buffer holds up to four 64-bit address and data pairs, or one cache line to be written out. </li></ul><ul><li>Since data cache writebacks are typically performed on a line basis, an entire line can be written to the buffer, allowing the CPU to resume normal execution. </li></ul><ul><li>Without a write buffer, the CPU would have to write a single 64-bit doubleword, then wait until the memory operation completes, before writing another. </li></ul>Write Buffer: (Detailed explanation- Block diagram)
  21. 21. <ul><li>The write buffer allows the CPU to write data into the buffer without accessing the system bus. </li></ul><ul><li>For uncached write cycles, the write buffer can significantly increase performance by allowing the pipelining of multiple writes. </li></ul><ul><li>With cacheable write cycles, the buffer allows the CPU to write data to the buffer and immediately begin processing the next write data. </li></ul><ul><li>Without the buffer, the CPU would output the write data, then be forced to wait until the uncached write operation has completed before processing the next write. </li></ul>Write Buffer: (cont.) (Detailed explanation- Block diagram)
  22. 22. <ul><li>Write cycles can be performed back-to-back without any dead clocks between cycles. </li></ul><ul><li>In the original R4000 architecture there is a two clock delay between the generation of back-to-back addresses. This results in two dead clocks between back-to-back cycles. </li></ul><ul><li>The pipelined write protocol also uses the write buffer to allow pipelining of write cycles. </li></ul><ul><li>In the MIPS 64 bit processor , performance is significantly increased by eliminating the two null cycles between each write cycle. </li></ul>Pipelined Writes: (Detailed explanation- Block diagram)
  23. 23. <ul><li>A pipeline is divided into : </li></ul><ul><li>Fetch </li></ul><ul><li>Arithmetic operation </li></ul><ul><li>Memory access </li></ul><ul><li>Write back </li></ul>Pipelining : (Detailed explanation- Block diagram) A non-pipelined execution Pipelined execution
  24. 24. Pipelining (cont.) <ul><li>In the example shown in Figure , each stage takes one processor clock cycle to complete. </li></ul><ul><li>Thus it takes four clock cycles (ignoring delays or stalls) for the instruction to complete. In this example, the execution rate of the pipeline is one instruction every four clock cycles. </li></ul><ul><li>Conversely, because only a single execution can be fetched before completion, only one stage is active at any time. </li></ul>
  25. 25. Parallel Pipelining <ul><li>Instead of waiting for an instruction to be completed before the next instruction can be fetched , a new instruction is fetched each clock cycle. </li></ul><ul><li>There are four stages to the pipeline so the four instructions can be executed simultaneously, one at each stage of the pipeline. </li></ul><ul><li>Instructions in Figure are executed at a rate four times that of the pipeline shown in the previous figure. </li></ul>
  26. 26. SuperPipeline <ul><li>Figure below shows a superpipelined architecture. </li></ul><ul><li>Each stage is designed to take only a fraction of an external clock cycle—in this case, half a clock. </li></ul><ul><li>Therefore more than one instruction can be completed each cycle. </li></ul>
  27. 27. SuperScalar Pipeline <ul><li>A superscalar architecture also allows more than one instruction to be completed each clock cycle. </li></ul>
  28. 28. How Pipelining Works: <ul><li>  The processor fetches and decodes four instructions per cycle and then appends them to one of the three instruction queue. </li></ul><ul><li>Each queue determines the execution order based on the availability of the required FUs. </li></ul><ul><li>Though initially fetched and decoded in order, processor to have up to 32 instructions in various stages of execution. </li></ul>
  29. 29. How Pipelining Works: (cont.) <ul><li>Initially, Instructions proceed through the instruction fetch pipeline which consist of fetch, decode, and issue stages: </li></ul><ul><li>  in the fetch stage. Four instructions are fetched and aligned. </li></ul><ul><li>in the decode stage, the instructions are decoded, register renaming as performed, and branch instructions are predicted </li></ul><ul><li>in the issue stage (first half), the instructions are written to one of three 16-entry instructions queue, the availability of the operands is also determined. </li></ul><ul><li>(second half is on the next slide) </li></ul>
  30. 30. How Pipelining Works: (cont.) <ul><li>Depending on the type, the instruction proceeds to one of the five instruction pipelines. </li></ul><ul><li>There are two integer and two floating-point pipelines, and one load/store execution pipeline. </li></ul><ul><li>Each of these pipelines begins when a queue issue and instruction and continue as follows: </li></ul><ul><li>  </li></ul><ul><li>in the issue stage (second half ), the processor reads operands from the register files, </li></ul><ul><li>the execution begins and takes </li></ul><ul><li>a) one stages in the case of integer pipelines </li></ul><ul><li>b) two stages in the case of the load/store pipeline </li></ul><ul><li>c) three stages in the case of floating-point pipeline </li></ul>
  31. 31. Floating point Co-processor: <ul><li>  Performance is gained on floating-point codes by allowing the integer unit to execute the necessary loads and stores of floating-point values. As well as index register updates and branching. </li></ul><ul><li>T he issue logic allows the dual of the integer instruction and a floating-point instruction. </li></ul>
  32. 32. <ul><li>  The dual-issue mechanism implemented in 64 bit MIPS processor allows a floating-point ALU instruction to be issued simultaneously with any other instruction type. </li></ul><ul><li>Whenever a floating-point ALU instruction is fetched with any non- FP-ALU instruction, both instructions can be issued in the same cycle. </li></ul><ul><li>Load and store instructions in one pipeline usually provide enough data bandwidth to permit a new instruction to be issued every cycle for a fix period. </li></ul><ul><li>Well structured code can take full advantage of this pipeline structure. </li></ul>Dual Issue Mechanism: (Detailed explanation- Block diagram)
  33. 33. <ul><li>Separate Integer and FP ALU’s allow instructions of both types to be performed simultaneously. </li></ul><ul><li>Integer instructions are not stalled while long latency floating-point operations are being executed. </li></ul><ul><li>Use: Running CAD-type applications as both fixed-point and floating-point math calculations. </li></ul>Dedicated Integer & FP ALU: (Detailed explanation- Block diagram)
  34. 34. <ul><li>The 64 bit MIPS processor incorporates 8 external signals. </li></ul><ul><li>These signals allow for arbitration and data coherency between processors. </li></ul><ul><li>Therefore, Symmetric multiprocessing systems implementing the full Modified Exclusive Shared Invalid cache consistency protocol in both primary and secondary caches, as well as other styles of multiprocessing will be supported. </li></ul>Scalable for Multiple processor: (Detailed explanation- Block diagram)
  35. 35. <ul><li>In addition to the dual-issue mechanism, the 64 bit MIPS processor also contains separate acceleration hardware for most floating-point ALU instructions. </li></ul><ul><li>This allows long-latency operations such as divide and square-root to be performed in a dedicated unit, thereby allowing other shorter-latency operations such as MADD and subtract to be overlapped while the divide or square-root operation is in progress. </li></ul>Separate FP Execution Units: (Detailed explanation- Block diagram)
  36. 36. <ul><li>The 64 bit MIPS processor contains a dedicated secondary cache interface. </li></ul><ul><li>These signals provide an efficient interface between the processor, the secondary cache, and the secondary cache tag RAM. </li></ul><ul><li>All AM interface signals such as data and chip enables, output enable, address match, cache valid, line index, and word index are provided by the processor. </li></ul><ul><li>The secondary cache also supports multiple cache sizes and both the write-through and write-back data transfer protocols. </li></ul><ul><li>Data transfers to the secondary cache share the 64-bit system bus. </li></ul>Secondary Cache Support: (Detailed explanation- Block diagram)
  37. 37. <ul><li>The secondary cache can be configured as 512 kB, 1Mbyte, or 2 Mbyte, allowing large applications to run within the secondary cache, reducing the number of accesses to slower main memory. </li></ul><ul><li>The secondary cache is accessed through the system bus. </li></ul><ul><li>Uncached bus cycles are not evaluated by the secondary cache control logic as they travel to the external agent. </li></ul><ul><li>Uncached operations such as video screen updates can be passed directly to the system logic responsible for routing the data to the screen without any delays from the secondary cache logic. </li></ul>Multiple Cache Sizes: (Detailed explanation- Block diagram)
  38. 38. <ul><li>To maximize data throughput, the main memory accesses can be initiated while the secondary cache tag is being compared. </li></ul><ul><li>If the requested address is found to be in the secondary cache, the memory access is aborted & if the address is not found in the secondary cache, then main memory access can be initiated and the data can be retrieved more quickly. </li></ul>Simultaneous Access: (Detailed explanation- Block diagram)
  39. 39. <ul><li>The clocking mechanism in the 64 bit MIPS processor offers a number of pipeline frequencies based on the frequency of the input clock. </li></ul><ul><li>Single External Clock Signal </li></ul><ul><li>A single clock signal is used for the system interface, as opposed to three. The processor eliminates the Rclock, Tclock, and MasterOut clock signals that existed in the previous processors. </li></ul><ul><li>Having only one clock simplifies system design, as well as reducing the circuit complexity of the internal clock mechanism. </li></ul>Flexible Clocking Mechanism: (Detailed explanation- Block diagram)
  40. 40. <ul><li>The 64 bit processor includes on-chip clock frequency multiplication circuitry to support 200-MHz internal operation from an external 50-MHz clock. </li></ul><ul><li>The processor has the option of operating internally at 2, 3, or 4 times the frequency of the external clock. </li></ul><ul><li>Maximum bus speed of the system interface is 100 MHz. </li></ul>On Chip Clock Multiplication Circuitry: (Detailed explanation- Block diagram)
  41. 41. PROS & CONS
  42. 42. Advantages: <ul><li>It can handle more memory and larger files.  </li></ul><ul><li>64-bit architecture will allow systems to address up to 1 terabyte (1000GB) of memory </li></ul><ul><li>64-bit machines also offer faster I/O speeds to things like hard disk drives and video cards. These features can greatly increase system performance. </li></ul>
  43. 43. Disadvantages: <ul><li>The same data occupies more space in memory. This increases the memory requirements of a given process and can create problems for efficient processor cache utilization. </li></ul><ul><li>64-bit systems sometimes lack equivalents to software that is written for 32-bit architectures. The most severe problem is incompatible device drivers. Although most software can run in a 32-bit compatibility mode, it is usually impossible to run a driver in that mode. </li></ul>
  44. 44. References: <ul><li>http://en.wikipedia.org/wiki/MIPS_architecture </li></ul><ul><li>2) http://en.wikipedia.org/wiki/Superscalar </li></ul><ul><li>3) http://www.intel.com/cd/ids/developer/asmo-na/eng/ </li></ul><ul><li> microprocessors/ia32/pentium4/optimization/44015.htm </li></ul><ul><li>4)“MIPS Architecture.” 17 April 2004. Wikipedia, </li></ul><ul><li>The Free Encyclopedia http://en.wikipedia.org/wiki/Main_Page 23 </li></ul><ul><li>April 2004 http://en.wikipedia.org/wiki/MIPS_architecture . </li></ul><ul><li>5) http://www.google.com/search?hl=en&q=2010740_004404%5B1%5D.pdf </li></ul><ul><li>6) http://books.google.com/books?id=Nibfj2aXwLYC&pg=PA384&dq=MIPS+R5000+ </li></ul><ul><li>Microprocessor+and+pipelining+operation&sig=nYGolNlOk5S_ePkXDKiVdnfORDY </li></ul><ul><li>7) http://books.google.com/books?id=JEYKyfZ3yF0C&pg=PA195&dq= </li></ul><ul><li>MIPS+R5000+Microprocessor+and+pipelining+operation&sig= </li></ul><ul><li>qr82jZMTWo8Z0YWqMWScerbF0XQ#PPA195,M1 </li></ul>

×