3.2 Hardware Programming Based on Verilog HDL Language
This design uses Verilog HDL language to program the protocol chip. Verilog HDL language is a hardware description language. When designing digital chips, it can be described in layers and can perform timing modeling. This design uses a mixed design mode. The main design modules include state machine, protocol frame detection, FIFO controller design, etc.
1) State machine design.
The top module of the protocol chip is the state controller part. The protocol chip has four states, which are respectively processed by the state machine description pseudo code based on the Verilog HDL programming language as follows:
2) Protocol frame detection.
The frame checksum of this protocol chip is performed in a simple addition form. On the receiving side, if the sum of the useful data in the data frame is the same as the subsequent checksum byte, the protocol is correct, otherwise the frame is discarded. The code for calculating the protocol frame checksum is as follows:
3)FIFO design.
FIFO utilizes the resources of the embedded SRAM block of the MachXO series CPLD. Lattice's ispLEVER 7.0 software provides a configurable IP soft core, which can be implemented based on the embedded SRAM block or using a lookup table. The block diagram of the FIFO IP core is shown in Figure 4. The configurable parameters of the FIFO include FIFO byte depth, EmptyFull, Almostempty and AlmostFull trigger byte depth, data width, big-endian and little-endian modes, etc.
Figure 4 Configurable FIFO Controller IP Soft Core Block Diagram
3.3 Protocol Chip Synthesis
The Verilog HDL program was compiled and synthesized by Lattice's CPLD development software ispLEVER 7.0. After many attempts, the MachXO2280 chip in Lattice's MachXO series CPLD was finally selected. The synthesized host protocol chip occupies about 60% of the CPLD resources, and the slave protocol chip occupies about 45% of the CPLD resources. The FIFO controller makes full use of the embedded RAM block inside the MachXO2280 chip, and uses the phase-locked loop to achieve high-frequency clock operation. Finally, the LSC ispVM(R)System burning software was downloaded to the CPLD chip through the JTAG port to perform protocol chip function verification tests.
4 Conclusion
The backplane bus protocol chip designed in this paper works stably and passes the group pulse test when the backplane serial bus clock frequency is 25MHz, the signal level is LVTTL, the bottom plate lead length is 40cm, and 1 host is connected to 3 expansion modules, which verifies that the design of this set of protocol chips is successful. Since this set of protocol chips is specially designed for the periodic and non-periodic data transmission of PLC, the hardware-implemented protocol frame controller supports high-speed communication and data frame verification functions, avoiding data transmission errors, greatly reducing the software overhead of the peripheral microcontroller, and enhancing reliability. It is a set of protocol chips that are very suitable for PLC backplane buses or backplane bus system protocol chips that require multi-module collaboration.
Previous article:Design of PLC backplane bus protocol interface chip based on single chip microcomputer and CPLD (Part 1)
Next article:Qualcomm, a rising star, is catching up - mobile phone processor series (Part 2)
Recommended ReadingLatest update time:2024-11-16 21:47
- Popular Resources
- Popular amplifiers
- Wireless Sensor Network Technology and Applications (Edited by Mou Si, Yin Hong, and Su Xing)
- Siemens PLC Programming Technology and Application Cases (Edited by Liu Zhenquan, Wang Hanzhi, Yang Kun, etc.)
- Siemens PLC from Beginner to Mastery with Color Illustrations (Yang Rui)
- Siemens PLC Project Tutorial
- High signal-to-noise ratio MEMS microphone drives artificial intelligence interaction
- Advantages of using a differential-to-single-ended RF amplifier in a transmit signal chain design
- ON Semiconductor CEO Appears at Munich Electronica Show and Launches Treo Platform
- ON Semiconductor Launches Industry-Leading Analog and Mixed-Signal Platform
- Analog Devices ADAQ7767-1 μModule DAQ Solution for Rapid Development of Precision Data Acquisition Systems Now Available at Mouser
- Domestic high-precision, high-speed ADC chips are on the rise
- Microcontrollers that combine Hi-Fi, intelligence and USB multi-channel features – ushering in a new era of digital audio
- Using capacitive PGA, Naxin Micro launches high-precision multi-channel 24/16-bit Δ-Σ ADC
- Fully Differential Amplifier Provides High Voltage, Low Noise Signals for Precision Data Acquisition Signal Chain
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Naked, ready to go out and play~
- MSP430AFE2X3
- [AD21] The PCB is yellow when previewing in 3D, and the color cannot be changed
- Free application: DIY tool ART-Pi STM32H750 development board, return 1 piece
- [Evaluation of domestic FPGA Gaoyun GW1N-4 series development board] Development environment construction and new project
- [RVB2601 Creative Application Development] 1. Unboxing, Hardware Appreciation and Data Download
- Some questions about the secondary radar code~~Seek answers from the experts
- Python transplant
- Selection and Differences of Isolated Oscilloscopes and Differential Probes
- Recommend domestic low power LDO