The Research and Implementation of Key Technology on C-to-VHDL Language Transformation
- Author
- LiuLiPing
- Advisor
- GuGuoChang
- School
- Harbin Engineering University
- Major
- Applied Computer Technology
- Classification
- TP332 Arithmetic unit and the controller (CPU)
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 39
- Citations
- 0
Abstract
How to improve the CPU speed is currently a hot topic. Currently one way to accelerate is the CPU configured FPGA, which selects the programs which can speed up run on FPGA to reduce calculation of the CPU, then, improves the whole operation speed. In order to reduce the difficulty of exploiting accelerated application, the research of C-to-VHDL compiler has become a hot spot of the academic research.This thesis chooses LLVM, which is a powerful, good performance and convenient development framework, to design and implement C-to-VHDL compiler. First, detailed introduces LLVM compilation system, and analyzes the middle code, integration libraries, tools and compile process, designs a back-end code generator. This thesis analyzes the difference between VHDL and C, gives one design of IF structure to VHDL, realizes the automatic conversion of IF to VHDL, and establishes a foundation for the extension project. Then, the thesis studies the pipelining technology of FPGA, and has leading significance to the further accelerating design of FPGA. The thesis analyses the characteristics and realization methods of data pipelining, and presents three implement schemes, and compares, and emphatically introduces the realization of a division based time. This thesis also has studied the problem, how to select the optimal clock beats under the interactions between the optimization functions of ISE and pipelining. At the same time, makes the research on the optimal clock under the restriction of pipelining. Finally, makes the C code as input data, using the method of language transformation and pipelining technology introduced in this thesis to realize C code to VHDL code conversion and two pipelining ways (the pipelining based instruction number and the pipelining based time). Experiments have proved that this method can effectively achieve the automatic conversion of IF structure to VHDL code, and ensure the correctness of the design of pipelining.
Table of contents
Summary 5-6
Abstract 6-9
Chapter 1 Introduction the 9-16
1.1 of the topics of research significance -11
1.2 course of development and research status 11-14
1.3 main content 14
1.4 In this thesis, the organizational structure 14 - 16
Chapter 2 Background Information 16-24
2.1 LLVM compiler system 16-21
2.1.1 Introduction 16
2.1.2 Intermediate Code the 16-19 2.1.3 integrated library
19-20
2.1.4 toolset 20-21
2.1. 5 compiler processes 21
2.2 VHDL and C language difference the 21-22 2.3 FPGA About
22-23
2.4 Chapter Summary 23-24
Chapter 3 IF structure to VHDL design 24-36
3.1 the LLVM intermediate code program 24-25
3.2 IF structure judgment 25-27 3.3 IF structure conversion design
27-32
3.4 IF structure specific 32-35
3.5 Chapter Summary 35-36
Chapter 4 data stream pipeline and technology research 36-51
4.1 pipelining technology basic principle 36-40
4.2 data flow pipeline to achieve 40-45
4.2.1 data flow pipeline three strategies 40-42
4.2.2 specific method based on time division 42-45
4.3 water mapping optimization technology 45-50
4.3.1 Statistics optimal time limit 45-48
4.3. 2 clock constraints optimal water treatment 48-50
4.4 Chapter Summary 50-51
Chapter 5 simulation 51-61
5.1 pipelining scheme to achieve the 51-56
5.1.1 in accordance with the serial number of instructions flowing 5.1.2 in accordance with the running time of 53-55
water 55 5.2 IF structure pipeline to achieve -56
the 56-60 5.3 Chapter Summary
60-61
conclusion 61-63
reference literature 63-66
studying papers and obtained a master's degree during the research results 66-67
Acknowledgements 67
Related dissertations
- The research and design of CAN bus controller based on FPGA
- Chaotic Encryption System Research Based on FPGA
- Design of Environment Monitoring System for Power Supply in Mobile Communication Base Station of Hunan Telecom
- Optical Fiber Perimeter Alarm System Based on DSP and FPGA
- Design and Implementation of the Engineering Machinery Color Monitor System Based on FPGA+MCU
- Digital Electrical Impedance Tomography Hardware System Design Based on FPGA
- Study on Magnetic Flux Leakage Testing System of Rail Based on FPGA
- Digital Cross Section Data Acquisition System Based on Industrial Standard System Bus
- Research of Dual Chanel High Speed Data Acquisition Card
- Design and Implementation of FPGA-Based Six-Channel Non-Crosstalk Sonar System
- The Realization of Quality Detection System of Cataplasm Coating Based on FPGA
- Design of Remote Strain Measurement System Based on FGPA
- The Design of Digital Ultrasonic Nondestructive Testing System
- Design and Implementation of High Speed Data Recorder Based on FPGA
- Design of the High-speed Data Acquisition System Based on USB Interface
- Design and Implementation of Four Channels High Speed Synchronous Sampling in Sound Source Localization System
- Design and Application of Linear Array Image Acquisition System Based on Compressed Sensing
- The Design and Research of PCI Data Acquisition Card Based on FPGA
- Usb Without Invasive Data Collection Technology Research
- Research on On-line Diameter Measurement System Based on FPGA