Compiler Design for VLIW DSP with Performance and Power Consumption Optimizations
- Author
- HuDingLei
- Advisor
- ChenShuMing
- School
- National University of Defense Science and Technology
- Major
- Computer Science and Technology
- Classification
- TP368.12 Microprocessor
- Degree
- Doctoral dissertation
- Year
- 2006
- Downloads
- 273
- Citations
- 0
- VLIW
- Compiler
- Complementary Predication
- Modulo scheduling
- Low Power compilation
- automatic vectorization
- loop buffering
Abstract
At present, Very Long Instruction Word (VLIW) architecture has been adopted popularly by most high-end Digital Signal Processors (DSPs). VLIW machines tend to use static scheduling which allowing the compiler to directly schedule machine resource usage, so the hardware’s behavior is heavily dependent on the compiler arrangements to code. VLIW architecture challenges the compiler in the following two aspects: i) Without sophisticated compiling techniques, most VLIW DSPs fall far short of their performance goals. ii) Since compiler can control hardware’s behavior effectively, besides exploiting Instruction Level Parallelism (ILP), the compiler can change the behavior of software running on the hardware by optimized scheduling such that the power/energy consumption of certain program decreases. From here we see that it is very valuable in theory and practice to research compiling techniques for high performance & low power/energy consumption.Based on national 863 project "32-Bit High Performance Embedded Digital Processing Processor (DSP) Chip Technology Research", this dissertation is involved with development of VLIW DSP compiler as well as compiling techniques for high performance & low power/energy consumption. Our works mainly consist of three parts: i) Design and implementation of VLIW DSP compiler Based on retargetable compiler infrastructure IMPACT. ii) The study on compiling techniques for high performance, i.e. complementary predication and software pipelining, by virtue of VLIW DSP architecture features. iii) The study on compiling techniques for low power/energy, i.e. SIMD (Single Instruction Multiple Data) instructions automatic vectorization and loop buffering. The main contributions are as follows:(1) An optimization method for performance based on complementary predication is proposed. The method optimize performance from three perspectives: i) Based on binary decision diagram (BDD) predicate analysis system, an algorithm to optimize control structures in programs utilizing complementary predicate is presented. ii) Based on traditional graph coloring register allocation, a new algorithm to construct unified and simplified interference graph utilizing complementary predicate is presented, which can reduce spill code. iii) Complementary predicate-aware scheduling is presented to reduce the superfluous commitment of resources to operations whose predicates evaluate to false at run-time, and the architecture is modified to support such scheduling. By this way, recourses can be more efficiently used, higher ILP can be achieved.(2) Hyperblock-based unified cluster assignment and modulo scheduling is proposed. Comparing to basic block, Hyperblock can provide larger schedule region for exploiting ILP and enable modulo scheduling to deal with loops with control flow. The clustered structure in VLIW DSP needs compiler to assign every operation and operand to a specific cluster and coordinate data movement between clusters to achieve fine ILP. The proposal method, first forms hyperblocks from immediate code utilizing complementary predication, then performs modulo scheduling; meanwhile cluster assignment for operations and operands is done. Experiments show that the proposal method is effective in improving performance.(3) After a comprehensive survey on low power/energy compilation technology, especially on instruction-level and function-level power model, is presented, a low energy compilation method based on SIMD automatic vectorization is proposed. Comparing general instructions, SIMD instructions are energy-efficient. Previous methods are not general for they either only generate common SIMD instructions or be domain-specific. In order to generate more SIMD instructions for energy reduction, we present a low energy compilation method based on SIMD automatic vectorization. The proposal method decompose the task of automatic vectorization into two phases: first, complex SIMD alternatives are recognized from high level immediate code; then after loop unrolling low level immediate code, real SIMD instructions are generated by means of energy-cost based tree-pattern matching. The method is more intuitive than those proposed previously. Experiments show that the proposal method is effective in optimizing performance and energy.(5) A method to reduce power consumption of instruction memory by loop buffering is proposed. In VLIW DSPs, a significant amount of power is consumed in instruction memories. According to the characteristics of digital processing applications whose most execution time is consumed by loops, loop buffering can be used to reduce power consumption of instruction memories while fetching instructions. We presents a low power compilation method based on compiler-controlled loop buffer where the compiler is responsible of selecting appreciate loops to be put into buffer by power analysis and determining the time to switch loop buffer. The proposal method can reduce power consumption, not degrading performance.(6) Design and realization of optimized VLIW DSP compiler. Based on retargetable compiler infrastructure IMPACT, we design and realize a VLIW DSP compiler, moreover the compiler is optimized for high performance and low power/energy consumption using above researches.
Table of contents
Abstract 13-15
ABSTRACT 15-17
first chapter 17-35
1.1 Introduction 17-20
1.1.1 compiler optimization goal of diversity: the performance and power 17-18
1.1.2 performance optimization and power optimization of the relationship between 18-20
1.2 of VLIW DSP compiled key technology 20-27
1.2.1 of VLIW DSP development of its architectural features 20-21
the importance of the
1.2.2 compiler for VLIW DSP 21-22
1.2.3 of VLIW DSP compiler technology 22-27
1.3 Background 27-32
1.3.1 The subject source 27-28
1.3.2 YHFT-D4 of architecture 28-32
1.4 of this article the main work and contribution 32-34
1.5 paper structure 34-35
VLIW DSP compiler design and 35-66
2.1 Introduction 35-37
2.2 work 37
2.3 IMPACT compiler infrastructure 37-42
2.3.1 front-end 38-39
2.3.2 backend 39-40
2.3.3 the IMPACT of custom 40-42
2.4 of VLIW DSP machine specifications and machine description 42-47
2.4.1 machine specifications 42-45
2.4.2 machine description 45-47
2.5 of VLIW DSP compiler code generator design and 47-58
2.5.1 the overall framework 47-48
2.5.2 code comments 48-49
2.5.3 register allocation 49-53
2.5.4 instruction-level parallel development and resource conflict resolution 53-58
2.6 inline function support 58-59
2.7 strange data types, compiler support 59-63
singular 2.7.1 of VLIW DSP data types 60-61
the
2.7.2 singularity data type is code comments 61-62
2.7.3 data flow and processing dependencies 62
2.7.4 register allocation in life-cycle calculation 62-63
2.8 Experimental results and evaluation 63-65
2.8.1 benchmark 63-64
2.8.2 Experimental results 64-65
2.9 Summary 65-66
compiler optimization based on the complementary predicate 66-80
3.1 Introduction 66-67
3.2 work 67-68
3.3 complementary predicate mechanism 68-69
3.4 complementary predicate analysis and optimization 69-75
3.4.1 predicate code generation 69-70
3.4.2 Predicate Analysis System 70-73
3.4.3 predicate optimization 73-75
3.5 unified predicate register allocation 75-76
3.6 instruction scheduling and architecture predicate optimization 76-78
3.7 Experimental results 78-79
3.8 Summary 79-80
Chapter cluster based on the unity of the super block points with modulo scheduling 80-95
4.1 Introduction 80-81
4.2 work 81-83
4.3 based on the unity of the super-block clustering and modulo scheduling 83-92
4.3.1 sub-cluster VLIW architecture 83
4.3.2 Algorithm overall framework 83
4.3.3 choose the appropriate cycle and the formation of super-block 83-84
4.3.4 construct dependence graph 84-86
4.3.5 to calculate the minimum iteration interval MII 86-87
4.3.6 unified clustering and modulo scheduling 87-90
4.3.7-mode variable expansion MVE 90-91
4.3.8-mode scheduling of filling and emptying of the generated 91
4.3.9 the mutual relations with other compiler modules 91-92
4.4 Experimental results 92-94
4.5 Summary 94-95
Chapter V low-power compiler technology Summary 95-107
5.1 Introduction 95-96
5.2 low-power compiler need to be resolved 96-100
5.2.1 software power analysis 96-100
5.3 low-power compiler to achieve 100-105
5.3.1 dynamic power compiler optimization 101-105
5.3.2 static power compiler optimization 105
5.4 current problems and development direction 105-106
5.5 Summary 106-107
Chapter VI based on the SIMD instructions automatically compile a method to quantify low-power 107-123
6.1 Introduction 107-108
6.2 work 108-109
6.3 SIMD instruction set power characteristics of the compiler environment 109-112
6.4 best value for candidate instruction identification 112-114
6.5 based on tree pattern matching, data flow tree SIMD rewriting 114-116
6.6 loop checking and loop unrolling, 116-117
6.7 expandable tree pattern matching 117-121
6.7.1 target machine instruction template description 117-119
6.7.2 Linear programming of SIMD instructions to select 119-120
6.7.3 rule semantic action to achieve 120-121
6.8 Experimental results 121-122
6.9 Summary 122-123
Chapter VII is an effective method to reduce the instruction memory power consumption: circular buffer 123-133
7.1 Introduction 123-124
7.2 work 124-125
7.3 circular buffer architecture design and power analysis 125-128
7.3.1 circular buffer architecture design 125-127
7.3.2 circular buffering power analysis 127-128
7.4 circular buffer compiler support 128-130
7.4.1 Alternative cycle selection 128-129
7.4.2 lbon instructions insertion point 129
7.4.3 lbon command parameter values ??to determine 129-130
7.5 Experimental results 130-131
7.6 Summary 131-133
Chapter VIII of the performance and power optimization in VLIW DSP compiler integration 133-137
8.1 optimization method the overall framework of integrated 133-134
8.2 of VLIW DSP optimizing compiler overall evaluation 134-136
8.3 Summary 136-137
Chapter Conclusion 137-139
9.1 The summary of the work 137-138
9.2 future research directions 138-139
thank 139-140
References 140-150
author academic achievements obtained during the study period, 150-151
participation during the PhD research projects 151
Related dissertations
- Porting GCC Compiler for YHFT-DSP
- Research and Implementation of Key Technologies for YHFT-Matrix Compiler Based on GCC
- The Design and Implementation of a Complier for SCADA Based on C
- Backend Porting for CSKY Based on LLVM Compiler Infrastructure
- Establishment and Verification of the Timing and Power Consumption Model for the Embedded SRAM Compiler
- The Embedded SRAM Compiler Design and IP Verification
- Design and Implementation of the Instruction Dispatch Unit with Emulation/Test Support
- Research on Benefit Evaluation Techniques in Automatic Vectorization
- Design and Implementation of SQL Compiler on Column-Oriented Database
- Design and Implementation of Configurable Compiling Tools
- The Optimized Frontend Compiling System Design for Remus Ⅱ Reconfigurable Processor
- A Self-Adapted Prolog Compiler
- The Design and Realization of Programming Device Based on the Type of STM8S208Single Chip Microcomputer as the Controller
- Design and Optimization of Low-power Application Specific Instruction Set Processor
- Research and Design of Digital Broadcast Platforms
- Automatic Platform for Parameterized Design of ASIP
- The design of embedded SRAM compiler
- Design and Implementation of Memory Compiler for Embedded SOC
- A Study on Preface of Selections of Novels in the Great Series of the New Literature 1917-1927
- Study on Virtual Instrumentation Development Environment Based on Dataflow Visual Programming Language