A Verilog to C Translate Tool for Godson RTL
- Author
- DaiDi
- Advisor
- HuWeiWu
- School
- Institute of Computing Technology
- Major
- Computer System Architecture
- Classification
- TN402 Design
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 323
- Citations
- 0
Abstract
Verilog HDL is a formal notation intended for use in all phases of the creation of electronic systems. In IC design, it is a common method to set up behavior models for target systems by RTL(Register Transfer Level) Verilog codes. People can find the potential logic bugs and primarily evaluate the performance of target systems by deploying software simulation for RTL codes.Currently, many IC design engineers choose commercial simulation software. But the commercial simulation tools are not fit for the general application, such as performance analysis and system evaluation, because of their high costs and complex environment. For general application, developing proprietary simulation tools for special target systems can reduce the costs, simplify simulation environment and accelerate simulation procedure.The research work in this thesis is to design and implement a translator from RTL Verilog codes to C codes, aiming at special lexical and semantic characteristic. We also performance the high level programming language building simulation based on this translator. In the first part of this thesis, we introduce the analysis flow in the front end of the translator. The important data structure and algorithm in each step are discussed. The second part of this thesis is to descript the code generating flow in the back end of the translator. The simplified simulation model and its implementation method are given in this part. Then, we propose the operation optimization method and optimization principles of memory accessing for generating codes. Finally, the generated codes are tested, and the experimental results are provided in this thesis.As a part of the research work of Godson CPU group in Institute of Computing Technology, Chinese Academy of Sciences, the results of this thesis is applied to performance analysis and system evaluation in early design of the Godson CPU.
Table of contents
Statement the
thesis Copyright power of attorney 2-3
Summary 3-4
ABSTRACT 4-8
List of Figures 8-9
Table catalog 9-10
Chapter Introduction 10-14
1.1 Background are found; < br /> 1.2 software emulation type 10-11
1.2.1 explain executive- 10
the 1.2.2 compiler Executive- 10-11
1.2.3 Advanced Language generative 11
1.3 status quo at home and abroad 11-12
1.4 contribution of this article 12-13
1.5 paper is organized 13-14
second chapter value data 14-18
2.1 value indicates 14
the 2.2 data indicates 14 -18
2.2.1 member variables, predefined types and macros 15
2.2.2 interface member functions 15
2.2.3 static member function 15
2.2.4 choice function and times expand function 15-16
2.2.5 operator overloading 16-18
Chapter translator front end 18-26
3.1 pretreatment 18-19
3.1.1 `include 18
3.1.2` define and `undef 18-19
3.1.3 `ifdef /` ifndef, `elsif,` else and `endif 19
3.2 lexical analysis 19-21
3.2.1 Keyword 20
3.2.2 Operators 20
3.2.3 numeric constants 20-21
3.2.4 identifier 21
3.3 syntax analysis and semantic checks 21-25
3.3.1 module 21-22
3.3.2 Expression Table nbsp to; 22 - 24
3.3.3 symbol table 24-25
3.3.4 parameters and interface 25
3.3.5 sub-module 25 <br / > 3.3.6 event block collection 25
3.4 intermediate file storage 25-26
Chapter translator backend 26-42
4.1 commonly used method of generating 26-28
4.1.1 macro replacement method 26
4.1.2 Procedural generation method 26-28
4.1. 3 chain of events constructed law 28
4.2 sub-modules expand 28-30
4.3 the same event block the merger 30-33
4.4 static event analysis 33-34
4.5 optimization 34-37
4.5.1 non-blocking assignment optimization the 34-36
4.5.2 memory access optimization 36-37
4.6 code generation 37-42
4.6.1 expression 38
4.6.2 line 38-39
4.6.3 integer 39
4.6.4 register 39
4.6.5 statement 39
4.6.6 event block 39
4.6.7 parameters 39
4.6.8 use 39-42
Chapter generate code test 42-46
5.1 test methods for software engineering 42-43
5.2 generation code test 43-46
5.2.1 behavior test method 43-44
5.2.2 RTL validation test method 44-45
5.2.3 Verilog simulation embedded test 45-46
Chapter preliminary experiments 46 - 50
6.1 Experimental results 46-47
6.2 Analysis of experimental results 47-49
6.3 experimental conclusions nbsp a; 49-50
seventh Chapter Conclusion 50-52
7.1 summarizes 7.2 for further work 50
50-52
Ref. 52-53 <br / > Acknowledgements 53-54
of resume 54
Related dissertations
- The design of the Loongson platform upgrade reduction system based on
- Soil Carbon/Nitrogen Dynamics, Carbon Fractions and Nutrient Distribution under Long Term Tillage and Residue Management Systems in North China Plain
- Development of Laser Coal Stocktaking System
- Research on Merge Unit of the Electronic Transformer
- Research4000kN·m Level of Compaction Soil Slope Dynamic Response Rule
- Finite Element Analysis of Pile-Soil-Structure Interaction Bridge Pile Foundation under Earthquake
- Migration and Transformation Law of Nitrate in Unsaturated Zone and Saturated Zone
- Research on Validation Techniques of Flight Control Software of Air-to-air Missile
- Design and Implementation of Gene Mutation Simulator
- Research and Implement of Baseband Vector Signal Software Simulation Technology
- L Band Dielectric Filter Simulation Design and Research
- Key Technologies for Strained Si/Ge MOSFETs with Source/Drain Stressors
- Proapoptotic Effects of TLR9Agnoists on Human Hepatoma Cells and Its Cross-talk with TLR3Agnois
- The Correlation Analysis of Clinical Significance of C/EBPα Expression and Microvessel Density in Non-small-cell Lung Carcinoma Specimens
- Study on the Mechanism of TLR3 in HBV Intrauterine Infection of Babies Whose Mother are HBsAg Positive
- Research on the Quality of Life and TCM Syndrome of Chronic Hepatitis C
- The Reponse of Plant Communities and Its Ecological Stoichiometry of Alpine Meadow to Freeze-thaw Degradation in Qinghai-Tibetan Plateau
- Study on the Applying Strategy of Green Building Technology for Yunnan Metallurgical Research Center
- Research on Method of On-Site Measurement of Heat Resistance of Building Wall
- Study on Integrated Drainage System in Road Reconstruction and Extension Widening