FPGA-based the CAN controller design technology research
- Author
- GuXiaoGang
- Advisor
- ChenChangLing , YangZhanPing
- School
- University of Electronic Science and Technology
- Major
- Measuring Technology and Instruments
- Classification
- TM571 Controller
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 1,071
- Citations
- 9
Abstract
The question for discussion was about implementing technologies of CAN controller. The goal of the task was to implement CAN controller which accords with CAN 2.0A protocol based on the FPGA device.In the task, FPGA Advantage for HDL Design, Release 5.3, which was developed by Mentor Graphics Corporation was adopted to design the CAN controller. The TOP-DOWN method was adopted in designing CAN controller. according to the method, Block Diagram integrated HDL code, the Block Diagram was applied on higher layers, and the HDL codes was adopted on lowest layers. The CAN controller was verified by Modelsim SE PLUS 5.6a which was developed by Model Technology Incorporated and was embedded in FPGA Advantage. Synthesizing and implementing the CAN controller was carried on ISE6.1.03i which was developed by Xilinx, Inc.Firstly, in this paper, the characteristics of CAN bus and the technologies of designing CAN controller in the world were introduced briefly to help reader to known about the domain I researched into .Secondly, CAN 2.0A protocol was introduced briefly, and the key portion and the difficulties of the protocol were explained in detail.Thirdly, the scheme of the CAN controller was presented by the way of introducing the top block diagrams. The registers accessed by users were introduced in detail. And the design platform, the simulation platform, the chip selected and implementing tools were introduced simply.How I designed the CAN controller was introduced emphatically. The sub-block diagrams of every top block diagram were introduced detailedly, and the key VHDL codes of main sub-block diagrams were presented and analyzed.Emulating the CAN controller functionally is introduced with the emphasis of emulation strategies and methods. The emulation strategies and methods are also fit for the succedent timing simulation.Processes of synthesizing and implementing and verifying CAN controller were
Table of contents
Chapter Introduction 12-17
1.1 The research work in the national economy, the practical value and theoretical significance domestic and international developments in the research themes within 12-13
1.2 13-16
1.2.1 CAN bus and its characteristics the 13-14 1.2.2 CAN controller design implementations
14-16
1.3 to solve the problem of the Institute 16-17
CAN 2.0A protocol Introduction and Brief Analysis 17-28
2.1 CAN node hierarchical structure of 17-18
of 2.2 frame type and inter-frame space the 18-22
2.2.1 data frames 18-20
2.2.2 remote frame 20
2.2.3 error frame 20-21
2.2.4 overload frame 21-22
2.2.5 interframe, space 22
2.3 encoding (bit stream coding) 22-23
2.4 type of error, error detection and error marked the 23-25 ??the 2.4.1 error type
23
2.4.2 Error detection 23-25 ??
2.4.3 mislabeled 25
the 2.5 timing 25
2.6 CAN oscillator the tolerance improved 25-26
2.7 CAN communication system model 26-28
Chapter CAN controller design 28-41
and some of the features of the 3.1 CAN controller principle 28-31
3.1.1 CAN controller module function nbsp 28-30
3.1.2 CAN controller work process; 30
3.1.2.1 message transmission process 30
3.1.2.2 packet receiving process 30
3.1.3 Reset 30-31
3.1.4 Clock Generator 31
3.2 users can access the register set the 31-38
3.2.1 Control Register CR 31-32 < br /> 3.2.2 command register CMR 32-33
3.2.3 Status Register SR the 33-34
3.2.4 Interrupt Register IR 34-35
3.2.5 Receiving code register ACR and receive mask register AMR 35
3.2.6 bus the timing register BTR0 and bus timing register BTR1 35-37
3.2. 7 the transmit buffer TRAN_BUFFER 37
3.2.8 Receive FIFO receive window 37
the 3.2.9 clock divider register the CDR 37-38 <br / > 3.3 Design simulation platform, design language, to achieve chip and tool selection 38-40
3.3.1 design simulation platform 38-39
3.3.2 language 39
3.3.3 chip and back-end development tools to achieve 39-40
3.4 Chapter Summary 40-41
Chapter CAN controller details Design 41-65
4.1 the CAN controller design process the 41-42
4.2 CAN controller terminal signal defined 42
4.2 CAN controller top-level design 42-43
4.3 microcontroller interface unit mic_interface the 43-44
4.4 control and status register interf_manage 44-46
4.5 sync circuit the the sync 46-48
4.6 the receiving logic receive_logic 48-50
4.7 receives the FIFO the 50-52
4.8 error management logic err_manage 4.8.1 error checking bit_check 52-56
to 4.8.2 filling error checking stuff_check 52-53
53
4.8.3 CRC check crc_check0 53
the 4.8.4 format checks rec_form_check the 4.8.5 answering check ack_check 53
53-54
4.8.6 error and overload frame detection err_overload_check 54-56
4.8.7 to send the the error counter t_err_count and receive error counter r_err_count 56
4.9 CAN state machine can_state_machine 56-61
4.9.1 Bus start start_up 56-57
4.9.2 intermittent check interm_check to hang 57-58
4.9.3 sent check suspend_check 58
4.9. the 4 CAN state machine state_machine the 58-61 4.10 Transmit Buffer
tran_buffer the 61-62
4.11 the transmit logic transmit_logic 62-64
4.11.1 the CRC coding crc_encode 63
4.11.2 counter counter 63
4.11.3 the the fill logic of stuff_logic the 63-64
4.11.4 transmitter trans 64
4.12 This chapter section 64-65
Chapter V CAN controller function simulation 65-81
5.1 test program 65 - 67
5.2 test implementation 67-71
5.2.1 module test 67-68
5.2.2 single node online 68-69
5.2.3 single node spontaneous self-closing 69
5.2.4 three nodes online communication 69-70
5.2.5 Receive FIFO overflow 70
5.2.6 bus out of 70-71
5.3 Chapter Summary 71-81
Chapter VI of the CAN controller realization and timing simulation 81 - 94
6.1 test program 81
6.2 integrated 81-83
6.3 83-90
6.3.1 Translation and Translation Simulation the 83-84
6.3.2 mapping and mapping simulation the 84-87 placement and routing and layout simulation
6.4.3 87-90
6.5 This chapter section 90-94
Chapter VII of the CAN controller hardware debugging 94-98
7.1 Introduction to the main interface of a dedicated protocol test board and 94-95
7.1.1 a proprietary protocol test board 94-95
7.1.2 test the main interface 95
7.2 CAN controller hardware debugging 95-97
7.3 Chapter Summary 97-98
Chapter VIII conclusion 98-99
thank the 99-100
reference literature 100-101
Appendix A single node online part of the functional simulation waveform diagram 103 101-103
the part functional simulation waveform Appendix B spontaneous collected -109
the part functional simulation waveform nbsp Appendix C receive FIFO overflow; 109-114
Appendix D bus out of the part of the functional simulation waveform 114-117
Appendix timing simulation waveform diagram 117-136
About the papers 136
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