Design and Implementation of a VLIW DSP Assembler and Code Generator
- Author
- ChenHuiBin
- Advisor
- LiuChunLin
- School
- National University of Defense Science and Technology
- Major
- Computer Science and Technology
- Classification
- TP332 Arithmetic unit and the controller (CPU)
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 167
- Citations
- 0
Abstract
Compared with traditional DSPs modern DSPs uses the more ILP techniques to improve the performance of the machine . The other hand, they exhibit a regular, and can be compiled into the system structure , and makes it possible for them to construct efficient optimizing compiler . This paper discusses such a DSP, VLIW architecture, clustering , and be able to perform multiple operations in a single clock cycle . We described this VLIW DSP assembler and the structure of the code generator . In order to facilitate handling of forward references , VLIW DSP assembler organized into twice structures . First pass only records in the source file symbol ( label ) information , the second time to rescan the source file , the use of previously collected information to generate the target file . VLIW DSP assembler features include : using lex and yacc generated lexical and syntax analyzer ; assembler statements in assembler form of internal representation ; instruction encoding information stored in the data table , the coded instructions when using a common process queries these table to determine the encoding format of the instruction opcode, and then call the appropriate encoding function to generate machine code . The VLIW DSP code generator based on the framework of the IMPACT C compiler . For VLIW DSP custom machine specifications and machine description , and the use of a the IMPACT template construct its code generator . A notable feature of the VLIW DSP architecture is divided into clusters , i.e. large concentration of the register file is divided into a plurality of blocks , each block with several functional units associated cluster . Correspondingly, with this feature , the code generation is an important step is the cluster allocation, is the mapping of each operation and its operand to the appropriate clusters . Cluster allocation should be fully utilized so that each functional unit clusters , and seek to reduce the data transfer between the clusters . We give a unified cluster allocation and scheduling algorithm (UAS) for VLIW DSP implementation , the characteristics of the algorithm is to cluster allocation and scheduling together when scheduling an operation , as well as the operation and its operands to allocate appropriate cluster .
Table of contents
Abstract 11-12
ABSTRACT 12-13
Chapter Introduction 13-15
1.1 subject background and research 13-14
1.2 contributions of this paper 14
1.3 thesis structure 14-15
second chapter VLIW DSP architecture 15-19
2.1 CPU data path 15-16
2.1.1 general-purpose register file 15-16
2.1.2 functional unit 16
2.1.3 cross path 16
2.1.4 storage access path 16
2.1.5 Summary of resource constraints 16
2.2 pipelining and instruction delay 16-18
2.2.1 Interrupt impact 18
2.3 fetch packets and execute package 18
2.4 conditions perform 18-19
Chapter VLIW DSP assembler 19-38
3.1 COFF object file 19-20
3.1.1 paragraph 19
3.1.2 paragraph processing 19-20
3.1.3 relocation 20
3.1.4 external symbol 20
3.2 assembler language introduced 20-21
3.2.1 compilation command 20-21
3.3 compilation Structure Design 21-22
3.3.1 VLIWDSP assembler structure 21-22
3.4 statement of internal representation 22-25
3.4.1 statement 23
3.4.2 compilation command 23
3.4.3 implementation of the package and the instructions 23-24
3.4.4 operands and expressions 24-25
3.5 lexical and syntax analyzer 25-27
3.5.1 lexical analyzer 25-26
3.5.2 parser 26-27
3.6 segment table and symbol table 27-28
3.7 instruction compilation 28-36
3.7.1 machine instruction format 28-30
3.7.2 register and functional unit said 30-31
3.7.3 operand type representation 31-32
3.7.4 Directive format of said 32-35
3.7.5 encoding function to achieve 35-36
3.8 fetch packages synthesis 36
the 3.9 relocation of said 36
3.10 COFF target file 36-38
the fourth chapter IMPACTC compiler 38-45
4.1 front-end 38-40
4.1.1 Pcode generated 38-40
4.1.2 Pcode profiling (profiling) 40
4.1.3 embedded extension (inline expansion) 40
the
interprocedural 4.1.4 Analysis (interprocedural analysis) 40
4.1.5 the Pcode through Lcode conversion 40
4.2 backend 40-42
4.2.1 Lcode the structure 41
of 4.2.2 Lcede the traditional optimization 41-42
4.2.3 Hyperblock and superblock formation 42
4.2.4 Superscalar optimization 42
4.2.5 code generated 42
4.3 the IMPACT of custom 42-45
4.3.1 Specifications of machine instructions 42-43
4.3.2 machine description 43-45
the
VLIW DSP machine specifications and machine described 45-50
5.1 Specifications of machine instructions 45-47
1.1 function parameter passing 45-46
1.2 run-time stack organization 46-47
5.2 machine description 47-50
5.2.1 format information 47-48
5.2.2 Resource use 48
5.2.3 Delay 48
5.2.4 operating information 48-50
Chapter VLIW DSP code generator 50-55
6.1 Overview 50-51
6.2 code comments 51-53
6.2.1 annotation strategy 51-52
6.2.2 JSR comment 52-53
6.3 scheduling several 53-55
6.3.1 reliance delay calculation 53-54
6.3.2 Nops operating join 54-55
Chapter VII of the cluster allocation and scheduling 55-81
7.1 Overview 55-56
7.2 Related Research 56-62
7.2.1 DAG-based cluster allocation algorithm 56-60
7.2.2 cluster allocation algorithm based on RCG 60-62
7.3 UAS algorithm 62-63
7.4 the IMPACT scheduler 63-66
7.4.1 register activity table 64
7.4.2 List scheduling algorithm 64-66
7.4.3 clustering machine considerations 66
7.5 VLIW DSP cluster allocation and scheduling to achieve 66-73
7.5.1 UAS algorithm with VLIW DSP code generator 66-67
7.5.2 cluster allocation and scheduling algorithm implemented 67-72
7.5.3 load, store operations special treatment 72
7.5.4 Jump the operation latency hide 72-73
7.6 Experimental Analysis 73-81
7.6.1 Experimental Method 73-76
7.6.2 Experimental results 76-81
Chapter VIII Conclusion 81-82
Acknowledgements 82-83
the
Appendix studied papers published by the Master of the period 83-84
the
References 84-87
Related dissertations
- Design and Implementation of the Instruction Dispatch Unit with Emulation/Test Support
- The Design and Optimization of Instruction Control Unit on High Performance DSP
- Research and Development of Froth Flotation Video Surveillance Hardware Platform Based on DSP
- Intelligent Video Surveillance System Based on DSP
- Optical Fiber Perimeter Alarm System Based on DSP and FPGA
- The Design of Monitoring System for the Photovoltaic Plant Based on DSP
- Design and Implementation of Multi-channel Data Acquisition System
- Research on Measuring System of Mid-Infrared Photoelectric Autocollimator
- Wire Rope On-line Detection System Design Based on DSP
- IMU Data Acquisition and Processing System Design and Realization Based on DSP
- Design of Marine Toxin Analvsis System Based on ECIS and Image Detection
- The Design of Multi-channel Optic-electronic Signal Acquisition and Processing System
- The Study Oh Fuzzy Controlin TIG Welding Prossess
- Control Method Research and Controller Development of AGV Based on DSP
- Research on Tension Control System of Fiber Placement Machine
- Research on Drive and Control Technology of Electromagnetic Traveling-wave for Automated Conveying System
- Research on the Slave Station for AC Servo Driver Based on DeviceNet Fieldbus
- Modeling and Implementation of Motor Function Module Based on PLCopen
- The Design and Research of Embedded Multi-axis Control System
- Design of the Measure and Control Terminal Based on EtherCAT Fieldbus