Dual Gigabit Ethernet Interface Design for Eight-core Floating-point DSP

Publisher:HeavenlyWonderLatest update time:2014-12-21 Source: 互联网 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

  Gigabit network interface has the advantages of fast data transmission rate, convenient connection and plug-and-play, which makes it widely used. With the development of electronic technology and processors, the data communication rate of many applications exceeds the actual transmission rate of Gigabit network port. For example, in A/D sampling, it is necessary to directly store the sampled data of A/D conversion. If the A/D conversion bit number is 16 bits and it works at 100MHz, the actual data volume is 1.6Gbps. In order to achieve high-speed transmission, an interface with a higher transmission rate must be used, such as PCIe or RapidIO interface. However, these interfaces do not have plug-and-play functions and cannot be directly connected to many existing industrial equipment, which limits their application scenarios.

  DSP (digital signal processor) has a high operating frequency, and its internal hardware network MAC interface is integrated. It can easily realize Gigabit network communication by connecting an external physical layer chip. Multi-core DSP chips can connect multiple Gigabit network ports, making them applicable to high-speed data transmission occasions. This article introduces an embedded dual Gigabit network interface based on the multi-core digital signal processor TMS320C6678, which realizes the connection of two Gigabit network ports with a single chip. These two network ports can transmit data independently or jointly, which improves the actual data transmission rate.

  1. C6678 and its structure

  TMS320C6678 is an 8-core floating-point DSP in TI's multi-core processors. Each core has a maximum operating frequency of 1.25GHz. Each core can provide 40GMAC fixed-point computing or 20GFLOP floating-point computing capabilities. A single chip can provide 320GMAC or 160GFLOP computing capabilities. The on-chip structure of TMS320C6678 is shown in Figure 1.

  Each core of TMS320C6678 has 32KB of program, 32KB of data and 512KB of 2nd level cache storage space, and a 4MB shared SRAM inside the chip. TMS320C6678 has a DDR3 controller interface, which can be connected to DDR3 externally, and the direct addressing range reaches 8GB. TMS320C6678 has RapidIO, PCIe, EMIF, SPI, I2 C bus and other interfaces inside and outside the chip. These interfaces exchange data with each processor through the high-speed interconnect bus inside the chip.

  The network-related on-chip devices are shown in the gray module in the lower right corner of Figure 1. They mainly include two external SGMII interfaces, Ethernet switching and network switching modules, as well as security accelerators and packet accelerators for data management. They can quickly detect data verification and whether the protocol complies with network standards, and directly discard erroneous data to reduce the burden on the CPU. In order to speed up the data exchange between the network and the CPU, the on-chip queue manager is used to manage the cache and distribution of network packets or network frames. These data are read and written using data packet DMA, and do not require CPU participation.

  Figure 1 TMS320C6678 internal structure

  Figure 1 TMS320C6678 internal structure

  Other on-chip devices of TMS320C6678 include PLL, emulation port, semaphore, power management and reset management modules. PLL configures the working clock of CPU and peripherals; emulation port is used to connect emulator to monitor software operation; semaphore controls the semaphore in DSP/BIOS operating system; power management controls the current and voltage of the whole chip; reset management configures the startup mode, hard reset for full startup and soft reset for partial startup.

  2. 88E1111 and its structure

  There are many network physical layer chips, which are generally compatible with one or more interface standards such as MII, RMII and SGMII. However, TMS320C6678 only provides SGMII interface, so the physical layer chip connected to TMS320C6678 must have SGMII interface. This article uses two Marvell 88E1111 physical layer chips to connect dual Gigabit networks. The internal structure of 88E1111 is shown in Figure 2.

  Figure 2 88E1111 internal structure

  Figure 2 88E1111 internal structure

  The analog signal with modulated data sent from the network RJ45 interface is converted into a digital signal through A/D conversion, and then transmitted to the MAC chip by the receiving unit after being equalized, shaped and filtered, and decoded in sequence to realize data reception. The data sent by the MAC is converted into an analog signal by D/A after being shaped and filtered and sent to the RJ45 interface. In order to reduce the bit error rate, the 88E1111 has modules such as phase-locked loop (PLL), automatic gain control (AGC), timing/phase control, and echo cancellation. These modules are all designed to improve the reliability of data transmission, and can communicate reliably and at high speed in different environments or with different external devices. The LED control module in Figure 2 realizes the light display during data transmission, the MDIO module realizes link establishment and status monitoring, and the clock module provides the working clock.

  3. Hardware Design

  The hardware design mainly includes the interface between TMS320C6678 and two 88E1111s, the interface between 88E1111 and RJ45, and the hardware configuration design of 88E1111.

  The network module structure of TMS320C6678 is shown in Figure 3. A 3-port Ethernet switch is integrated in the chip, which is responsible for exchanging data from two Gigabit Ethernet ports to the host and providing exchange interrupts to the host. The host can receive and send data in real time through interrupts. The host configures or monitors the external physical layer chip through the bus, and the configuration and monitoring data are connected to the physical layer chip through the MDIO interface.

  Figure 3 TMS320C6678 network module structure

  Figure 3 TMS320C6678 network module structure

  Figure 4 Interface between TMS320C6678 and 88E1111 The interface circuit between TMS320C6678 and two 88E1111s is shown in Figure 4. TMS320C6678 uses SGMII (Serial Gigabit Media Independent Interface) interface, which is compatible with 10/100/1000M working mode. SGMII is a serial data transceiver mode with fewer pin connections. As can be seen from Figure 4, there are actually only two pairs of differential lines for transceiver, which are connected to the corresponding 88E1111 pins respectively. The read and write clocks are implicitly transmitted in the data and are automatically recognized by the hardware without the need for software participation.

  Figure 4 Interface between TMS320C6678 and 88E1111

  Figure 4 Interface between TMS320C6678 and 88E1111

  MDIO and MDCLK are the data and clock of the MDIO module inside TMS320C6678, which are used to establish a connection between TMS320C6678 and 88E1111. TMS320C6678 can configure 88E1111 through this interface, or read the information of 88E1111. Since the MDIO module interface level of 88E1111 is 2.5V, and the MDIO module interface level of TMS320C6678 uses 1.8V voltage, a voltage conversion chip needs to be added between the two. This design uses PCA9306 to achieve voltage conversion. The interface circuit is shown in Figure 5.

  Figure 5 MDIO interface voltage conversion circuit

  Figure 5 MDIO interface voltage conversion circuit

  It should be noted that since there are two 88E111 chips, the MDIO and MDCLK pins are directly connected to the two chips. MDIO can control up to 32 physical layer chips, and the physical layer chip addresses are 1 to 32. The address configuration of 88E1111 is shown in Figure 6.

  Figure 6 88E1111 hardware configuration

  Figure 6 88E1111 hardware configuration

  Table 1 is the corresponding configuration information. According to FIG. 6 and Table 1, it can be seen that the addresses of 88E111 are 4 and 8 respectively.

  Table 1 Configuration pin settings

  Table 1 Configuration pin settings

  4. Software Design

  The system software design includes hardware initialization, network configuration, and data communication process. The workflow of TMS320C6678 after reset is shown in Figure 7. First, configure the first network port, record its status, and then configure the second network port. As long as one of the two network ports is successfully configured, the EMAC module of TMS320C6678 will be configured to set the transceiver buffer and transceiver tasks for the successfully configured network port. After these configurations are completed, network data transmission and reception can be realized. It should be noted that in the user application, the failure of network port configuration needs to be considered. For example, the user application transmits 1.2Gbps data in real time through dual network ports. If one network port configuration fails, the application should have a corresponding mechanism to reduce the real-time transmission rate to less than 0.8Gbps (the actual transmission rate of a single network port may be lower than 0.8Gbps). In the absence of other task overhead, the hardware system in this article can transmit 1.5Gbps of data (errors are not considered during transmission and retransmission is not performed).

  Figure 7 Data communication process

  Figure 7 Data communication process

  Conclusion

  Communication interfaces with a transmission rate exceeding 1Gbps generally use optical fiber, PCE, PCIe and other interface methods. This article uses a dual network port method to reduce equipment requirements and facilitate connection with existing equipment. The use of multi-core DSP improves the processor's working ability. While ensuring the large-capacity data transmission process, the processor still has the ability to calculate data. The dual network port design can make up for the insufficient transmission rate of a single network port and reduce the hardware complexity of other interfaces. It is a beneficial supplement between the two. It has certain application value in embedded devices.

Reference address:Dual Gigabit Ethernet Interface Design for Eight-core Floating-point DSP

Previous article:In-depth analysis of DSP electromagnetic compatibility issues
Next article:The core DSP device of embedded system technology

Recommended ReadingLatest update time:2024-11-16 22:27

Interface Design Technology between TMS320VC5402DSP and 51 Single Chip Microcomputer
TMS320VC5402 (VC5402) is a fixed-point digital signal processor with high cost performance launched by Texas Instruments. The enhanced peripherals of VC5402 are composed of software wait state generator, phase-locked loop clock generator, 6-channel direct memory access (DMA) controller, enhanced 8-bit parallel host
[Microcontroller]
Interface Design Technology between TMS320VC5402DSP and 51 Single Chip Microcomputer
Suspension motion control design based on 32-bit DSP and motor driver chip
  With the popularity of 32-bit DSP, 32-bit processors have become the mainstream products in the control field. Compared with traditional microprocessors, they are faster, more powerful, and more resource-rich, and more in line with the pace of development. TMS320F28027 is a 32-bit DSP with the advantages of fast com
[Embedded]
Suspension motion control design based on 32-bit DSP and motor driver chip
What is DSP
DSP (digital signal processor) is a unique microprocessor that processes large amounts of information using digital signals. Its working principle is to receive analog signals, convert them into digital signals of 0 or 1, and then modify, delete, and enhance the digital signals, and interpret the digital data back to
[Embedded]
Design of real-time data acquisition system based on ADmC812 and DSP
Introduction ADmC812 is ADI's new micro-converter with 8051 (8052) core as the control core. Because ADmC812 integrates a large number of peripheral devices. It itself is a fully programmable, self-calibrating, high-precision data acquisition system that can replace the traditional MCU+A/D+ROM+RAM high-cost, large-volu
[Embedded]
DSP digital signal processing dominates the development of cameras
DSP (Digital Signal Processing) is digital signal processing, which uses digital computers or special digital signal processing equipment to collect, transform, integrate, evaluate, and identify signals with numerical calculation methods, so as to extract useful information and facilitate application. DSP chip
[Embedded]
Design of Fiber Bragg Grating Demodulation System Based on DSP
0 Introduction Fiber Bragg grating sensor (FBGS) is a functional fiber sensor using fiber Bragg grating (FBG) as a sensitive element. It can be used to directly detect temperature and strain, as well as indirect measurement of many other physical and chemical quantities related to temperature and strain. I
[Embedded]
What are the characteristics of DSP compared with MCU?
What are the characteristics of DSP compared with MCU?  1) DSP is faster than MCU and has a higher main frequency.  2) DSP is suitable for data processing and has a higher instruction efficiency for data processing.  3) DSPs are all processors with more than 16 bits and are not suitable for low-end occasions.  4)
[Embedded]
Programmable single-core DSP solution targets low-end mobile multimedia applications
CEVA, a DSP core licensee, recently launched the Mobile-Media-Lite series of platforms to meet the low-cost, low-power and short time-to-market requirements of low-end mobile multimedia devices. Its first MM2200 solution can support H.264 encoding and decoding at CIF resolution 30fps with a single-core DSP processor.
[Embedded]
Programmable single-core DSP solution targets low-end mobile multimedia applications
Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号