The research and design of CAN bus controller based on FPGA
- Author
- ZhaoCheng
- Advisor
- ZhangKai
- School
- Yangzhou University
- Major
- Microelectronics and Solid State Electronics
- Classification
- TP273 Automatic control,automatic control system
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 58
- Citations
- 0
Abstract
CAN (Controller Area Network) is one kind of field buses, which are widely used in current automatic control field. It is a type of fully digital, multi-master and asynchronous serial buses and only defines physical layer and data link layer in OSI seven-layer model. Since it has the features of efficient message filtering mechanism, error detecting and communication recovering mechanism, communication distance adjustable with baud rate, convenient application layer interface and so on, presently CAN bus has a rapid development towards more fields besides of automotive industry, industrial control, intelligent community.CAN bus controllers available in the market are not easily integrated in embedded system because they are customized with all kinds of standards and their interfaces are fixed. FPGA, which now plays a more and more important role in embedded design field, puts forward the requirement of both soft and hard programmable. Soft cores embedded into FPGA become the need of embedded systems. So making CAN bus controller function standardized into soft core and putting it into IP library will meet the requirement well. In order to satisfy different embedded need, interface can be designed flexibly at the same time.The purpose of this paper is to complete the front-end design of CAN bus controller and RTL level design of data link layer in CAN2.0A protocol by using VHDL. Design of controller uses top-down method. Firstly, we split the controller into several modules which are independent but associated with each other. Secondly, design ideas and steps are further elaborated. Controller is split into three main functional modules, including registers control module, bit timing logical module and bit stream processor module. In order to improve the functional integration of FPGA, the controller applies interface of PicoBlaze which is eight-bit embedded soft core of Xilinx instead of that of traditional51. Design of registers refers to PHILIPS’ SJA1000. Bit timing logic is made of bit timing and synchronization. Bit stream processor is made of CRC checking part, acceptance filter part, RXFIFO part and communication fault processing part. Design method of each functional module is designing with functional simulating using Modelsim software simultaneously. Finally, we compile the entire codes which have passed functional simulation into bit stream file and download it to Spartan3E of Nexys2development board. Test results show that the controller has achieved the design requirement.There are a lot of system resources in FPGA. Incorporating more functions with CAN bus controller in the future lays the foundation for SOPC in FPGA.
Table of contents
Abstract 2-3
Abstract 3-7
first chapter 7-15
1.1 CAN bus Introduction 7-9 Features
1.1.1 CAN bus research status 7-8
1.1.2 CAN bus 8-9
1.2 FPGA -based CAN bus Controller soft Research Status nuclear 9
1.3 FPGA technology Overview 9-12
1.3.1 FPGA Profile 9-10
1.3.2 design language 10-11
1.3.3 design software 11-12
1.3.4 design process 12
1.4 CAN bus controller based on FPGA significance research 12-13
1.5 article 13-15
chapter CAN2.0A protocol analysis 15-25
2.1 basic concepts 15-16
2.2 frame type 16-20
2.2.1 data Frame 16-18
2.2.2 remote Frame 18
2.2.3 error frame 18-19
2.2.4 overload frame 19
2.2.5 interframe space 19-20
2.3 coding 20
2.4 error handling 20-22
2.5 failure to define 22-23
2.6 bit timing 23- 24
2.6.1 median time 23
2.6.2 synchronization 23-24
2.7 chapter Summary 24-25
third design and Simulation chapter controller 25-58
3.1 CAN controller structure 25-28
3.1.1 SJA1000 module structure and function 25-26
module 3.1.2 the design of the structure and function of 26-28
3.2 registers control module design 28-31
3.3 bit timing logic design 31 -36
3.3.1 bit timing design 31-32
3.3.2 sampling point and send dot design 32-33
3.3.3 synchronous design 33-36
3.4 Bit Stream Processor design 36-57
3.4.1 CRC checksum 37-38
3.4.2 send design 38-42
3.4.3 receive design 42-43
3.4.4 acceptance filter design 43-44
3.4.5 RXFIFO design 44-48
3.4.6 communications Troubleshooting 48-57
3.5 Summary 57-58
Chapter IV controller test 58-68
4.1 controller test steps 58
4.2 development board introduced 58-59
4.3 FPGA internal function modules 59-60
4.4 board-level testing 60-67
4.4.1 controller initialization 61-62
4.4.2 controller sends packets 62- receive 64
4.4.3 controller messages 64-65
test waveforms 4.4.4 controller 65-67
4.5 chapter Summary 67-68
Chapter summary and Outlook 68-69
5.1 thesis summarizes 68
5.2 future Work Prospects 68-69
References 69-71
Thanks 71-72
study authors published during Masters thesis 72-73
Related dissertations
- Design of Distributed Concurrent State-aware System for the Quadruped Bionic Robot
- Chaotic Encryption System Research Based on FPGA
- Research of3D Laser Radar for Vehicle Initiative Safety
- The Design of Small Coal Mine Remote Monitoring System Based on ARM
- Design of Environment Monitoring System for Power Supply in Mobile Communication Base Station of Hunan Telecom
- The Design and Realization of Extended System in Distributed Firealarm System Based on Microcontroller
- Optical Fiber Perimeter Alarm System Based on DSP and FPGA
- Design and Implementation of the Engineering Machinery Color Monitor System Based on FPGA+MCU
- The Design of Monitoring System for the Photovoltaic Plant Based on DSP
- Design and Application of the Distributed Monitoring System Based on Embedded Web
- 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
- The Design of Hybrid Electric Bus Data Acquisition and Test System
- 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
- Industrial Field Data Acquisition System Design Based on CAN Bus