Académique Documents
Professionnel Documents
Culture Documents
INTRODUCTION
1.1 Emergence of Crusoe processors Mobile computing has been the buzzword for quite a long time. Mobile computing devices like laptops, webslates & notebook PCs are becoming common nowadays. The heart of every PC whether a desktop or mobile PC is the microprocessor. Several microprocessors are available in the market for desktop PCs from companies like Intel, AMD, Cyrix etc. The mobile computing market has never had a microprocessor specifically designed for it. The microprocessors used in mobile PCs are optimized versions of the desktop PC microprocessor. Mobile computing makes very different demands on processors than desktop computing, yet up until now, mobile x86 platforms have simply made do with the same old processors originally designed for desktops. Those processors consume lots of power, and they get very hot. When you're on the go, a power-hungry processor means you have to pay a price: run out of power before you've finished, run more slowly and lose application performance, or run through the airport with pounds of extra batteries. A hot processor also needs fans to cool it; making the resulting mobile computer bigger, chunkier and noisier. A newly designed microprocessor with low power consumption will still be rejected by the market if the performance is poor. So any attempt in this regard must have a proper 'performance-power' balance to ensure commercial success. A newly designed microprocessor must be fully x86 compatible that is they should run x86 applications just like conventional x86 microprocessors since most of the presently available software's have been designed to work on x86 platform. Crusoe is the new microprocessor which has been designed specially for the mobile computing market. It has been designed after considering the above mentioned constraints. This microprocessor was developed by a small Silicon Valley startup company called Transmeta Corp. after five years of secret toil at an expenditure of $100 million. The concept of Crusoe is well understood from the simple sketch of the processor architecture, called 'amoeba'. In this concept, the x86-architecture is an ill-defined amoeba containing features like segmentation, ASCII arithmetic, variable-length instructions etc. The amoeba explained how a traditional microprocessor was, in their design, to be divided up into hardware and software. Thus Crusoe was conceptualized as a hybrid microprocessor that is it has a software part and a hardware part with the software layer surrounding the hardware unit. The role of software is to act as an emulator to translate x86 binaries into native code at run time. Crusoe is a 128-bit microprocessor fabricated using the CMOS process. The chip's design is based on a technique called VLIW to ensure design simplicity and high performance. Besides this it also
1
uses Transmeta's two patented technologies, namely, Code Morphing Software and Long run Power Management. It is a highly integrated processor available in different versions for different market segments. In electronics, Crusoe is a family of microprocessors from Transmeta. They use a VLIW hardware "core", upon which runs a software abstraction layer, or virtual machine, known as the Code Morphing Software (CMS). The CMS translates machine code instructions received from programs running on the chip into native instructions for the core. In this way, the chips can emulate the instruction set of other computer architectures. Currently, this is used to allow the chips to emulate the Intel x86 instruction set. In theory, it is possible for the CMS to be modified to handle other instruction streams (i.e. to emulate other microprocessors). The addition of an abstraction layer between the x86 instruction stream and the hardware means that the hardware architecture can change without breaking compatibility, just by modifying the CMS. For example Efficeon, the second-generation Crusoe, has a 256-bit-wide VLIW core versus 128-bit in the first generation. Crusoe performs in software some of the functionality traditionally implemented in hardware (e.g. instruction re-ordering), resulting in simpler hardware with fewer transistors. The relative simplicity of the hardware means that Crusoe consumes less power (and therefore generates less heat) than other x86-compatible microprocessors running at the same frequency. The name is taken from the novel Robinson Crusoe.
2 ARCHITECTURE
The Crusoe processor incorporates integer and floating point execution units, separate instruction and data caches, a level-2 write-back cache, memory management unit, and multimedia instructions. In addition to these traditional processor features, the device integrates a DDR SDRAM memory controller, SDR SDRAM memory controller, PCI bus controller and serial ROM interface controller. These additional units are usually part of the core system logic that surrounds the microprocessor. The VLIW processor, in combination with Code Morphing software and the additional system core logic units, allow the Crusoe processor to provide a highly integrated, ultra-low power, high performance platform solution for the x86 mobile market. The Crusoe processor block diagram is shown in Figure 1.
2.1 Crusoe Processor Model TM5800(Various units) CPU Core Integer unit Floating point unit MMU L1 Instruction Cache L1 Data Cache 64K 8-way set associative 64K 16-way set associative Unified TLB 256 entries 4-way set associative DDR SDRAM Controller SDR SDRAM Controller PCI Controller & Southbridge Interface DMA Multimedia Instructions Serial ROM Interface 4-way set associative Bus Interface
The Crusoe processor core architecture is relatively simple by conventional standards. It is based on a Very Long Instruction Word (VLIW) 128-bit instruction set. Within this VLIW architecture, the control logic of the processor is kept very simple and software is used to control the scheduling of instructions. This allows a simplified and very straightforward hardware implementation with an in-order 7-stage integer pipeline and a 10-stage floating point pipeline. By streamlining the processor hardware and reducing the control logic transistor count, the performance-to-power consumption ratio can be greatly improved over traditional x86 architectures. The Crusoe processor includes a 64K-byte 8-way set-associative Level 1 (L1) instruction cache, and a 64K-byte 16-way set associative L1 data cache. The TM5800 model also includes an integrated 512K-byte Level 2 (L2) write-back cache for improved effective memory bandwidth and enhanced performance. This cache architecture assures maximum internal memory bandwidth for performance intensive mobile applications, while maintaining the same low-power implementation that provides a superior performance-to-power consumption ratio relative to previous x86 implementations. Other than having execution hardware for logical, arithmetic, shift, and floating point instructions, as in conventional processors, the Crusoe processor has very distinctive features from traditional x86 designs.
To ease the translation process from x86 to the core VLIW instruction set, the hardware generates the same condition codes as conventional x86 processors and operates on the same 80-bit floating point numbers. Also, the Translation Look-aside Buffer (TLB) has the same protection bits and address mapping as x86 processors. The software component of this solution is used to emulate all other features of the x86 architecture. The software that converts x86 programs into the core VLIW instructions is called Code Morphing software. The combination of Code Morphing software and the VLIW core together act as an x86compatible solution.
VLIW has been described as a natural successor to RISC, because it moves complexity from the hardware to the compiler, allowing simpler, faster processors. The objective of VLIW is to eliminate the complicated instruction scheduling and parallel dispatch that occurs in most modern microprocessors. In theory, a VLIW processor should be faster and less expensive than a comparable RISC chip. The instruction set for a VLIW architecture tends to consist of simple instructions RISC like). The compiler must assemble many primitive operations into a single "instruction word" such that the multiple functional units are kept busy, which requires enough instruction-level
7
parallelism (ILP) in a code sequence to fill the available operation slots. Such parallelism is uncovered by the compiler through scheduling code speculatively across basic blocks, performing software pipelining, reducing the number of operations executed, among others.
Fig. 2 A molecule that can contain up to four atoms, which are executed in parallel.
The integer register file has 64 registers, %r0 through %r63. By convention, the Code Morphing software allocates some of these to hold x86 state while others contain state internal to the system, or can be used as temporary registers, e.g., for register renaming in software. In the assembly code examples in this paper, we write one molecule per line, with atoms separated by semicolons. The destination register of an atom is specified first; a .c opcode suffix designates an operation that sets the condition codes. Where a register holds x86 state, we use the x86 name for that register (e.g., %eax instead of the less descriptive %r0). Superscalar out-of-order x86 processors, such as the Pentium II and Pentium III processors, also have multiple functional units that can execute RISC-like operations (microops) in parallel. Figure 3 depicts the hardware these designs use to translate x86 instructions into micro-ops and schedule (dispatch) the micro-ops to make best use of the functional units. Since the dispatch unit reorders the micro-ops as required to keep the functional units busy, a separate piece of hardware, the inorder retire unit, is needed to effectively reconstruct the order of the original x86 instructions, and ensure that they take
effect in proper order. Clearly, this type of processor hardware is much more complex than the Crusoe processors simple VLIW engine.
Fig. 3 Conventional superscalar out-of-order CPUs use hardware to create and dispatch micro-ops that can execute in parallel.
Because the x86 instruction set is quite complex, the decoding and dispatching hardware requires large quantities of power-hungry logic transistors; the chip dissipates heat in rough proportion to their numbers.
10
3 HIERARCHY MODEL
11
4 INSTRUCTION SET
4.1 Registers
The processor has 64 GPRs, with the following specialized semantics: %r63 (%zero) always reads 0 when used as a source operand %r62 (%sink) is a discarded destination (e.g., for compares); it is never read %r59 (%from) saved return address %r58 (%link) return address %r47 (%sp) is the current stack pointer %r0 (%eax) for current x86 machine state %r1 (%ecx) for current x86 machine state %r2 (%edx) for current x86 machine state %r3 (%ebx) for current x86 machine state
The lower 48 of these GPRs are backed by shadowed GPRs: whenever a bundle has its commit bit set, the Commit stage latches the current values of the GPRs into the 'known good' shadow GPRs. The processor also includes 32 80-bit floating point registers and 16 FP shadow registers. There are also a wide variety of special purpose registers (SPRs), including the condition codes, profiling registers, power control settings and so on.
12
13
14
Fig. 5 x86 cpu vs crusoe processor From fig 5 in crusoe processor we can see that: Purple portions implemented in hardware. Much smaller than traditional microprocessors. Orange portions implemented in software x86 to native VLIW translation, branch prediction, and out-of-order execution (OOO) logic
15
16
17
7 Drawbacks
1. Code optimization does not start until a block of code has been executed more the a few times. 2. Code translation requires clock cycles which could otherwise be used in performing application computation.
18
8 Target Applications
Suitable for portable and embedded systems. No need for active cooling and external CPU fans. Provides embedded devices with a performance per watt ratio that is unmatched by any other x86-based processor in its class. Runs a mobile Linux kernel. Capable of running Internet applications. Web browsers. Email applications. Streaming video. Used in Notebooks and Tablet PCs. Offers advantages over standard hardware-only processors for making ultra light and thin Notebooks with less power consumption. Only microprocessor that is able to provide software upgrades to the processor that offer additional performance and power savings. Thin client for server based computing Low power and high density Crusoe based servers have a high profitability matrix value (Performance/Per Watt/Per Cubic Foot). UPC(ultra personal computers)
19
9. Conclusion
1. Transmeta has build an X-86 processor based on VLIW(very long instruction word) technology.
2. Code Morphing offers a new approach to the implementation of an instruction set architecture. 3. Crusoe offers the power of a high performance Intel processor consuming a fraction of power.
20
9 References
JOURNALS Alexander Klaiber, The Technology Behind CrusoeProcessors, January 2000, Transmetawhite paper. Jon Stokes, Crusoe Explored, ArsTechnica, January 2000, http://arstechnica.com/articles/paedia/cpu/crusoe.ars/ Rob Hughes, TransmetasCrusoe Microprocessor, January 2000, Chipgeek.com, http://www.geek.com/procspec/features/ transmeta/crusoe.htm James C. Dehnertet. al., The TransmetaCode Morphing Software: Using Speculation, Recovery, and Adaptive Retranslation to Address Real-Life Challenges, First Annual IEEE/ACM International Symposium on Code Generation and Optimization, March 2003. Daniel McKenna, Mobile Platform Benchmarks, Transmeta Corporation White Paper, January 2000. Alexander Wolfe, The Software Side of Crusoe, Embedded Systems ProgrammingSite, 2000, (www.embedded.com/internet/0004/0004ia3.htm) Sander Sassen, "Transmeta's Crusoe, HotRod or Performance Hog?, May 11, 2001, http://www.hardwareanalysis.com/content/editorials/ WEBSITES http://www.transmeta.com http://www.mdronline.com http://www.techextreme.com http://www.ibm.com http://www.ieee.org http://www.mit.edu http://www.eetimes.com http://www.zdnet.com
21