[go: up one dir, main page]

CN116527714A - Vehicle-mounted communication system and vehicle based on PCIe - Google Patents

Vehicle-mounted communication system and vehicle based on PCIe Download PDF

Info

Publication number
CN116527714A
CN116527714A CN202310498408.5A CN202310498408A CN116527714A CN 116527714 A CN116527714 A CN 116527714A CN 202310498408 A CN202310498408 A CN 202310498408A CN 116527714 A CN116527714 A CN 116527714A
Authority
CN
China
Prior art keywords
root complex
pcie
write
data
soc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310498408.5A
Other languages
Chinese (zh)
Inventor
朱永芸
李明
董艳栋
董宗祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SAIC General Motors Corp Ltd
Pan Asia Technical Automotive Center Co Ltd
Original Assignee
SAIC General Motors Corp Ltd
Pan Asia Technical Automotive Center Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SAIC General Motors Corp Ltd, Pan Asia Technical Automotive Center Co Ltd filed Critical SAIC General Motors Corp Ltd
Priority to CN202310498408.5A priority Critical patent/CN116527714A/en
Publication of CN116527714A publication Critical patent/CN116527714A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Information Transfer Systems (AREA)

Abstract

本申请总体上涉及通信技术领域,并且更具体地涉及一种基于PCIe的车载通信系统及车辆。按照本申请一个方面的基于PCIe的车载通信系统包括:多个系统级芯片SOC,所述多个系统级芯片SOC被划分为根复合体和多个端点设备;以及PCIe交换设备,所述PCIe交换设备耦合至所述根复合体和所述多个端点设备,以用于在所述根复合体和所述多个端点设备之间以及在所述多个端点设备之间执行通信操作。

The present application generally relates to the technical field of communication, and more specifically relates to a PCIe-based vehicle communication system and a vehicle. A PCIe-based vehicular communication system according to one aspect of the present application includes: a plurality of system-on-chip SOCs, the plurality of system-on-chip SOCs are divided into root complexes and a plurality of endpoint devices; A device is coupled to the root complex and the plurality of endpoint devices for performing communication operations between the root complex and the plurality of endpoint devices and between the plurality of endpoint devices.

Description

基于PCIe的车载通信系统及车辆Vehicle communication system and vehicle based on PCIe

技术领域technical field

本申请总体上涉及通信技术领域,并且更具体地涉及一种基于PCIe(PeripheralComponentInterconnectexpress)的车载通信系统及车辆。The present application generally relates to the technical field of communication, and more specifically relates to a PCIe (Peripheral Component Interconnect express)-based vehicle communication system and a vehicle.

背景技术Background technique

随着汽车“新四化”(电动化、智能化、网联化、共享化)尤其是智能化的高速发展,构建松耦合、高内聚、算力可扩展的智能化中央电脑算力平台已成为未来汽车发展的主要趋势。智能化中央电脑算力平台以实现算力共享、动态负载均衡、算力可扩展、同构级联等为主要目标,实现了从分立零件开发向面向客户的软件服务转变,结合算力可扩展软硬件架构与负载均衡技术,支撑“软件定义汽车”战略实施。With the rapid development of the "new four modernizations" (electrification, intelligence, networking, and sharing) of automobiles, especially intelligence, build an intelligent central computer computing platform with loose coupling, high cohesion, and scalable computing power It has become the main trend of future automobile development. The intelligent central computer computing power platform aims to realize computing power sharing, dynamic load balancing, computing power scalability, homogeneous cascading, etc., and realizes the transformation from discrete component development to customer-oriented software services, combined with computing power scalability Software and hardware architecture and load balancing technology support the implementation of the "software-defined car" strategy.

数据如何在智能化中央电脑算力平台上的多个系统级芯片SOC(SystemonChip)间高速有效的通信,已成为限制智能化中央电脑算力平台实现算力共享、动态负责均衡等核心目标的主要技术瓶颈。目前,系统级芯片SOC之间的通信方式主要有SPI(SerialPeripheral Interface)和车载以太网通信。然而,SPI由于受制于有限的传输距离和通信速率,无法满足智能化中央电脑算力平台对大数据的高速传输要求。车载以太网虽然能够达到千兆的通信速率,但是随着自动驾驶的发展,对智能化中央电脑算力平台提出了更高的计算能力和通信速率要求,使得本已满负载运行的以太网也难以解决多个系统级芯片SOC间更高速率的数据通信问题。How to communicate data efficiently and effectively between multiple system-on-chip SOCs (System on Chips) on the intelligent central computer computing power platform has become the main problem that restricts the intelligent central computer computing power platform from realizing the core goals of computing power sharing and dynamic balance. technical bottleneck. At present, the communication methods between system-on-chip SOCs mainly include SPI (Serial Peripheral Interface) and vehicle Ethernet communication. However, due to the limited transmission distance and communication rate, SPI cannot meet the high-speed transmission requirements of the intelligent central computer computing power platform for big data. Although the vehicle-mounted Ethernet can reach a gigabit communication rate, with the development of autonomous driving, higher computing power and communication rate requirements are put forward for the intelligent central computer computing power platform, so that the already fully loaded Ethernet is also It is difficult to solve the problem of higher rate data communication among multiple system-on-chip SOCs.

因此,如何实现智能化中央电脑算力平台上多个系统级芯片SOC间的高效快速的数据通信成为亟待解决的技术问题。Therefore, how to realize efficient and fast data communication between multiple system-on-chip SOCs on the intelligent central computer computing power platform has become an urgent technical problem to be solved.

发明内容Contents of the invention

为了解决或至少缓解以上问题中的一个或多个,提供了以下技术方案。In order to solve or at least alleviate one or more of the above problems, the following technical solutions are provided.

按照本申请的第一方面,提供一种基于PCIe的车载通信系统,所述车载通信系统包括:多个系统级芯片SOC,所述多个系统级芯片SOC被划分为根复合体和多个端点设备;以及PCIe交换设备,所述PCIe交换设备耦合至所述根复合体和所述多个端点设备,以用于在所述根复合体和所述多个端点设备之间以及在所述多个端点设备之间执行通信操作。According to the first aspect of the present application, a PCIe-based vehicular communication system is provided, the vehicular communication system includes: a plurality of system-on-chip SOCs, and the plurality of system-on-chip SOCs are divided into a root complex and a plurality of endpoints equipment; and a PCIe switching device coupled to the root complex and the plurality of endpoint devices for use between the root complex and the plurality of endpoint devices and between the plurality of endpoint devices Perform communication operations between endpoint devices.

根据本申请一实施例所述的基于PCIe的车载通信系统,其中所述通信操作包括读操作和写操作。According to the PCIe-based vehicle communication system according to an embodiment of the present application, the communication operation includes a read operation and a write operation.

根据本申请一实施例或以上任一实施例的所述的基于PCIe的车载通信系统,其中所述根复合体配置成:通过枚举PCIe树获得所述多个端点设备的状态;以及基于所述多个端点设备的状态分别在所述根复合体和所述多个端点设备上实现各自CPU域与PCIe域的映射,以实现CPU操作PCIe域地址的功能。According to an embodiment of the present application or the described PCIe-based vehicular communication system according to any one of the above embodiments, wherein the root complex is configured to: obtain the states of the multiple endpoint devices by enumerating the PCIe tree; and based on the The states of the multiple endpoint devices realize the mapping between the respective CPU domains and the PCIe domains on the root complex and the multiple endpoint devices respectively, so as to realize the function of the CPU to operate the PCIe domain address.

根据本申请一实施例或以上任一实施例的所述的基于PCIe的车载通信系统,其中所述PCIe交换设备配置成通过下列方式执行所述根复合体对所述多个端点设备中的一个端点设备的读操作:从所述根复合体接收读操作请求并将所述读操作请求发送至所述多个端点设备中的一个端点设备,使得所述端点设备响应于所述读操作请求而从用户空间读取相应的数据并将所述数据写入PCIe域,并触发写完成中断;以及从所述端点设备接收所述写完成中断并将所述写完成中断发送至所述根复合体,使得所述根复合体响应于所述写完成中断而将所述PCIe域中的所述数据传回到用户空间进行保存。According to an embodiment of the present application or the described PCIe-based vehicular communication system according to any of the above embodiments, wherein the PCIe switching device is configured to execute the root complex to one of the plurality of endpoint devices in the following manner A read operation for an endpoint device: receiving a read operation request from the root complex and sending the read operation request to an endpoint device of the plurality of endpoint devices, such that the endpoint device responds to the read operation request reading corresponding data from user space and writing the data to the PCIe domain and triggering a write complete interrupt; and receiving the write complete interrupt from the endpoint device and sending the write complete interrupt to the root complex , causing the root complex to transfer the data in the PCIe domain back to user space for saving in response to the write completion interrupt.

根据本申请一实施例或以上任一实施例的所述的基于PCIe的车载通信系统,其中所述PCIe交换设备配置成通过下列方式执行所述根复合体对所述多个端点设备中的一个端点设备的写操作:从所述根复合体接收写操作请求并将所述写操作请求发送至所述多个端点设备中的一个端点设备,使得所述端点设备响应于所述写操作请求而获取PCIe域的相应数据以触发写完成中断,并将所述数据传回到用户空间进行保存。According to an embodiment of the present application or the described PCIe-based vehicular communication system according to any of the above embodiments, wherein the PCIe switching device is configured to execute the root complex to one of the plurality of endpoint devices in the following manner a write operation for an endpoint device: receiving a write operation request from the root complex and sending the write operation request to an endpoint device of the plurality of endpoint devices, such that the endpoint device responds to the write operation request Obtain the corresponding data of the PCIe domain to trigger a write completion interrupt, and transfer the data back to the user space for saving.

根据本申请一实施例或以上任一实施例的所述的基于PCIe的车载通信系统,其中所述PCIe交换设备配置成通过下列方式执行所述多个端点设备中的一个端点设备对所述根复合体的写操作:从所述多个端点设备中的一个端点设备接收写操作请求和写完成中断并将所述写操作请求和写完成中断发送至所述根复合体,使得所述根复合体响应于所述写完成中断而获取PCIe域的相应数据并将所述数据传回到用户空间进行保存。According to the described PCIe-based vehicular communication system according to an embodiment of the present application or any one of the above embodiments, wherein the PCIe switching device is configured to execute one of the multiple end-point devices to the root in the following manner write operation of a complex: receiving a write operation request and a write completion interrupt from one of the plurality of endpoint devices and sending the write operation request and a write completion interrupt to the root complex such that the root complex The body obtains corresponding data of the PCIe domain in response to the write completion interrupt and transfers the data back to the user space for saving.

根据本申请一实施例或以上任一实施例的所述的基于PCIe的车载通信系统,其中所述PCIe交换设备配置成通过下列方式执行所述多个端点设备中的一个端点设备对所述根复合体的读操作:从所述多个端点设备中的一个端点设备接收读操作请求和读中断并将所述读操作请求和读中断发送至所述根复合体,使得所述根复合体响应于所述读中断而从用户空间获取相应的数据并将所述数据写入PCIe域,并设置根复合体数据处理完成标识;以及从所述根复合体接收所述根复合体数据处理完成标识并将所述根复合体数据处理完成标识发送至所述多个端点设备中的一个端点设备,使得所述端点设备响应于所述根复合体数据处理完成标识而将所述PCIe域中的所述数据传回到用户空间进行保存。According to the described PCIe-based vehicular communication system according to an embodiment of the present application or any one of the above embodiments, wherein the PCIe switching device is configured to execute one of the multiple end-point devices to the root in the following manner read operation of a complex: receiving a read operation request and a read interrupt from one of the plurality of endpoint devices and sending the read operation request and read interrupt to the root complex, causing the root complex to respond Obtain corresponding data from user space and write the data into the PCIe domain due to the read interruption, and set the root complex data processing completion flag; and receive the root complex data processing completion flag from the root complex and sending the root complex data processing completion identifier to one of the multiple endpoint devices, so that the endpoint device responds to the root complex data processing completion identifier and sends all The above data is transferred back to the user space for saving.

根据本申请一实施例或以上任一实施例的所述的基于PCIe的车载通信系统,其中所述PCIe交换设备配置成通过下列方式执行所述多个端点设备之间的写操作:从所述多个端点设备中的一个端点设备接收写操作请求和写完成中断并将所述写操作请求和写完成中断发送至所述根复合体,使得所述根复合体响应于所述写完成中断而获取PCIe域的相应数据并将所述数据传回到用户空间;从所述根复合体接收写操作请求并将所述写操作请求发送至所述多个端点设备中的另一个端点设备,使得所述端点设备响应于所述写操作请求而获取PCIe域的相应数据,并将所述数据传回到用户空间进行保存。According to an embodiment of the present application or the described PCIe-based vehicular communication system according to any one of the above embodiments, wherein the PCIe switching device is configured to perform write operations between the multiple end-point devices in the following manner: from the an endpoint device of the plurality of endpoint devices receives a write operation request and a write completion interrupt and sends the write operation request and the write completion interrupt to the root complex such that the root complex responds to the write completion interrupt obtaining corresponding data of the PCIe domain and passing the data back to user space; receiving a write operation request from the root complex and sending the write operation request to another endpoint device in the plurality of endpoint devices, such that The endpoint device obtains corresponding data of the PCIe domain in response to the write operation request, and returns the data to user space for storage.

根据本申请一实施例或以上任一实施例的所述的基于PCIe的车载通信系统,其中所述PCIe交换设备配置成通过下列方式执行所述多个端点设备之间的读操作:从所述多个端点设备中的一个端点设备接收读操作请求和读中断并将所述读操作请求和读中断发送至所述根复合体,使得所述根复合体响应于所述读中断而获取所述多个端点设备中的另一个端点设备的相应的数据并将所述数据写入所述多个端点设备中的一个端点设备的PCIe域,并设置根复合体数据处理完成标识;以及从所述根复合体接收所述根复合体数据处理完成标识并将所述根复合体数据处理完成标识发送至所述多个端点设备中的一个端点设备,使得所述端点设备响应于所述根复合体数据处理完成标识而将所述PCIe域中的所述数据传回到用户空间进行保存。According to an embodiment of the present application or the described PCIe-based vehicular communication system according to any of the above embodiments, wherein the PCIe switching device is configured to perform the read operation between the multiple end-point devices in the following manner: from the An endpoint device of the plurality of endpoint devices receives a read request and a read interrupt and sends the read request and read interrupt to the root complex, such that the root complex obtains the read interrupt in response to the read interrupt corresponding data of another endpoint device in the plurality of endpoint devices and writing the data into the PCIe domain of one endpoint device in the plurality of endpoint devices, and setting the root complex data processing completion flag; and from the the root complex receiving the root complex data processing completion indication and sending the root complex data processing completion indication to one of the plurality of endpoint devices such that the endpoint device responds to the root complex The data processing is completed and the data in the PCIe domain is returned to the user space for storage.

按照本申请的第二方面,提供一种车辆,所述车辆包括根据本申请第一方面所述的基于PCIe的车载通信系统。According to a second aspect of the present application, a vehicle is provided, the vehicle comprising the PCIe-based vehicle communication system according to the first aspect of the present application.

根据本申请的一个或多个实施例的基于PCIe的车载通信系统能够以PCIe通信为基础,多个系统级芯片SOC通过更高效的PCIe进行通信,有助于解决或缓解汽车中央电脑平台以太网负载率过高的问题,从而实现多个系统级芯片SOC间更高效的大数据通信。The PCIe-based in-vehicle communication system according to one or more embodiments of the present application can be based on PCIe communication, and multiple system-on-chip SOCs communicate through more efficient PCIe, which helps to solve or alleviate the problem of the central computer platform Ethernet in the car. The problem of high load rate is solved, so as to realize more efficient big data communication between multiple system-on-chip SOCs.

附图说明Description of drawings

本申请的上述和/或其它方面和优点将通过以下结合附图的各个方面的描述变得更加清晰和更容易理解,附图中相同或相似的单元采用相同的标号表示。在所述附图中:The above and/or other aspects and advantages of the present application will become clearer and easier to understand through the following description of various aspects in conjunction with the accompanying drawings, in which the same or similar elements are represented by the same reference numerals. In said attached drawings:

图1示出了按照本申请的一个或多个实施例的基于PCIe的车载通信系统的框图。FIG. 1 shows a block diagram of a PCIe-based vehicular communication system according to one or more embodiments of the present application.

图2示出了按照本申请的一个或多个实施例的基于PCIe的车载通信系统的框图。FIG. 2 shows a block diagram of a PCIe-based vehicular communication system according to one or more embodiments of the present application.

图3示出了按照本申请的一个或多个实施例的基于PCIe的车载通信系统的框图。FIG. 3 shows a block diagram of a PCIe-based vehicular communication system according to one or more embodiments of the present application.

图4示出了按照本申请的一个或多个实施例的基于PCIe的车载通信系统的框图。FIG. 4 shows a block diagram of a PCIe-based vehicular communication system according to one or more embodiments of the present application.

图5示出了按照本申请的一个或多个实施例的基于PCIe的车载通信系统的框图。FIG. 5 shows a block diagram of a PCIe-based vehicular communication system according to one or more embodiments of the present application.

图6示出了按照本申请的一个或多个实施例的基于PCIe的车载通信系统的框图。FIG. 6 shows a block diagram of a PCIe-based vehicular communication system according to one or more embodiments of the present application.

图7示出了按照本申请的一个或多个实施例的基于PCIe的车载通信系统的框图。FIG. 7 shows a block diagram of a PCIe-based vehicular communication system according to one or more embodiments of the present application.

具体实施方式Detailed ways

下文详细描述了本申请的示例实施例,附图中图示了这些实施例的示例。应注意的是,下文的描述是为了解释和说明,因此不应视为对本申请的限制。在不背离本申请的原理的前提下,本领域技术人员可以根据实际需要对这些实施例进行电、机械、逻辑和结构方面的更改,而不脱离本申请的范围。此外,本领域技术人员可以理解,针对任何具体的应用场景或实际需要,可以将下文描述的不同实施例的一个或多个特征进行组合。Exemplary embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings. It should be noted that the following description is for the purpose of illustration and illustration, and therefore should not be considered as limiting the application. Without departing from the principles of the present application, those skilled in the art may make electrical, mechanical, logical and structural changes to these embodiments according to actual needs, without departing from the scope of the present application. In addition, those skilled in the art can understand that, for any specific application scenario or actual needs, one or more features of the different embodiments described below can be combined.

诸如“包含”和“包括”之类的用语表示除了具有在说明书中有直接和明确表述的单元和步骤以外,本申请的技术方案也不排除具有未被直接或明确表述的其它单元和步骤的情形。诸如“第一”和“第二”之类的用语并不表示单元在时间、空间、大小等方面的顺序而仅仅是作区分各单元之用。Words such as "comprising" and "comprising" mean that in addition to the units and steps that are directly and explicitly stated in the specification, the technical solution of the present application does not exclude other units and steps that are not directly or explicitly stated. situation. Words such as "first" and "second" do not denote the order of elements in terms of time, space, size, etc. but are merely used to distinguish elements.

在以下描述中,阐述了许多具体细节,诸如具体部件、电路和过程的示例,以提供对本申请的透彻理解。如本文中所使用的术语“耦合”意指直接连接到或通过一个或多个中间部件或电路连接。此外,在以下描述中并且出于解释的目的,阐述了具体命名法以提供对本申请的各个方面的透彻理解。然而,对于本领域技术人员将显而易见的是,可以不需要这些具体细节来实践示例实现方式。在其他实例中,以框图形式示出了公知的电路和设备,以避免使本申请不清楚。In the following description, numerous specific details are set forth, such as examples of specific components, circuits, and processes, in order to provide a thorough understanding of the present application. The term "coupled" as used herein means connected directly to or connected through one or more intermediate components or circuits. Furthermore, in the following description, and for purposes of explanation, specific nomenclature is set forth in order to provide a thorough understanding of the various aspects of the application. It will be apparent, however, to one skilled in the art that example implementations may be practiced without these specific details. In other instances, well-known circuits and devices are shown in block diagram form in order to avoid obscuring the application.

图1示出了按照本申请的一个或多个实施例的基于PCIe的车载通信系统的框图。FIG. 1 shows a block diagram of a PCIe-based vehicular communication system according to one or more embodiments of the present application.

如图1中所示,基于PCIe的车载通信系统100包括多个系统级芯片SOC-1110、SOC-2110、SOC-3110、SOC-4110和PCIe交换设备120,其中多个系统级芯片SOC-1110、SOC-2110、SOC-3110、SOC-4110可以被划分为根复合体(例如,图1中所示的系统级芯片SOC-1110,也可以称为RC(RootComplex))和多个端点设备(例如,图1中所示的系统级芯片SOC-2110、SOC-3110、SOC-4110,也可以称为EP(EndPoint))。PCIe交换设备120耦合至根复合体SOC-1110和多个端点设备SOC-2110、SOC-3110、SOC-4110,以用于在根复合体SOC-1110与多个端点设备SOC-2110、SOC-3110、SOC-4110之间以及在多个端点设备SOC-2110、SOC-3110、SOC-4110之间执行通信操作。可选地,通信操作可以包括读操作和写操作。As shown in Figure 1, the vehicle communication system 100 based on PCIe includes a plurality of system-on-chip SOC-1110, SOC-2110, SOC-3110, SOC-4110 and PCIe switching device 120, wherein a plurality of system-on-chip SOC-1110 , SOC-2110, SOC-3110, and SOC-4110 can be divided into root complexes (for example, the system-on-chip SOC-1110 shown in Figure 1, which can also be called RC (RootComplex)) and multiple endpoint devices ( For example, the system-on-chip SOC-2110, SOC-3110, and SOC-4110 shown in FIG. 1 may also be called EP (EndPoint)). The PCIe switching device 120 is coupled to the root complex SOC-1110 and a plurality of end point devices SOC-2110, SOC-3110, SOC-4110, for connecting the root complex SOC-1110 with a plurality of end point devices SOC-2110, SOC- 3110, SOC-4110 and between multiple endpoint devices SOC-2110, SOC-3110, SOC-4110 to perform communication operations. Optionally, the communication operation may include a read operation and a write operation.

可选地,可以采用中断触发、轮询和系统调用等策略实现用户态上层应用与内核态驱动程序的数据交互功能,以实现在根复合体SOC-1110与多个端点设备SOC-2110、SOC-3110、SOC-4110之间以及在多个端点设备SOC-2110、SOC-3110、SOC-4110之间通过PCIe进行高速数据通信。Optionally, strategies such as interrupt triggering, polling, and system calls can be used to realize the data interaction function between the upper layer application in the user state and the driver in the kernel state, so as to realize the interaction between the root complex SOC-1110 and multiple endpoint devices SOC-2110, SOC High-speed data communication between -3110, SOC-4110 and multiple endpoint devices SOC-2110, SOC-3110, SOC-4110 through PCIe.

可选地,根复合体与多个端点设备之间的通信策略以及多个端点设备之间的通信策略可以包括:(1)多个端点设备端在用户空间实现请求发送、数据处理和轮询功能,调用系统函数与内核态进行数据交互;(2)多个端点设备端内核态,实现读写命令的响应、数据的复制和触发中断,通知根复合体进行数据的处理;(3)根复合体端的内核态中断轮询模块检测到中断被置位后,处理数据并通过系统调用与根复合体的用户态进行数据交互;(4)根复合体的用户态同样实现请求发送、数据处理和轮询功能,用以实现主动发起请求和响应多个端点设备的数据请求的功能。Optionally, the communication strategy between the root complex and multiple endpoint devices and the communication strategy between multiple endpoint devices may include: (1) Multiple endpoint devices implement request sending, data processing and polling in user space function, calling system functions to interact with the kernel state; (2) multiple endpoint device-side kernel states, realizing the response of read and write commands, copying data and triggering interrupts, and notifying the root complex to process data; (3) the root After the kernel state interrupt polling module at the complex end detects that the interrupt is set, it processes the data and interacts with the user state of the root complex through system calls; (4) The user state of the root complex also implements request sending and data processing And polling function, to realize the function of actively initiating requests and responding to data requests of multiple endpoint devices.

可选地,根复合体SOC-1110可以配置成通过枚举PCIe树获得多个端点设备SOC-2110、SOC-3110、SOC-4110的状态,以及基于多个端点设备SOC-2110、SOC-3110、SOC-4110的状态分别在根复合体SOC-1110和所述多个端点设备SOC-2110、SOC-3110、SOC-4110上实现各自CPU域与PCIe域的映射,以实现CPU操作PCIe域地址的功能。Optionally, the root complex SOC-1110 can be configured to obtain the status of multiple endpoint devices SOC-2110, SOC-3110, SOC-4110 by enumerating the PCIe tree, and based on the status of multiple endpoint devices SOC-2110, SOC-3110 , the state of SOC-4110 realizes the mapping of respective CPU domains and PCIe domains on the root complex SOC-1110 and the multiple endpoint devices SOC-2110, SOC-3110, SOC-4110 respectively, to realize CPU operation PCIe domain address function.

根据本申请的一个或多个实施例的基于PCIe的车载通信系统能够以PCIe通信为基础,多个系统级芯片SOC通过更高效的PCIe进行通信,有助于解决或缓解汽车中央电脑平台以太网负载率过高的问题,从而实现多个系统级芯片SOC间更高效的大数据通信。The PCIe-based in-vehicle communication system according to one or more embodiments of the present application can be based on PCIe communication, and multiple system-on-chip SOCs communicate through more efficient PCIe, which helps to solve or alleviate the problem of the central computer platform Ethernet in the car. The problem of high load rate is solved, so as to realize more efficient big data communication between multiple system-on-chip SOCs.

以下将结合图2-7详细阐述照本申请的一个或多个实施例的根复合体与多个端点设备之间的通信策略以及多个端点设备之间的通信策略。The communication strategy between the root complex and multiple endpoint devices and the communication strategy between multiple endpoint devices according to one or more embodiments of the present application will be described in detail below with reference to FIGS. 2-7 .

图2示出了按照本申请的一个或多个实施例的基于PCIe的车载通信系统的框图。FIG. 2 shows a block diagram of a PCIe-based vehicular communication system according to one or more embodiments of the present application.

如图2中所示,基于PCIe的车载通信系统200包括系统级芯片SOC-1210、SOC-2210和PCIe交换设备220,其中系统级芯片SOC-1210实现为根复合体以及系统级芯片SOC-2210实现为端点设备,PCIe交换设备220耦合至根复合体SOC-1210和端点设备SOC-2210,以用于实现根复合体SOC-1210对端点设备SOC-2210的读操作。As shown in FIG. 2 , the PCIe-based vehicular communication system 200 includes a system-on-chip SOC-1210, a SOC-2210, and a PCIe switching device 220, wherein the system-on-chip SOC-1210 is implemented as a root complex and the system-on-chip SOC-2210 Implemented as an endpoint device, the PCIe switch device 220 is coupled to the root complex SOC-1 210 and the endpoint device SOC-2 210 for realizing the read operation of the root complex SOC-1 210 on the endpoint device SOC-2 210 .

可选地,PCIe交换设备220可以配置成从根复合体SOC-1210接收读操作请求并将所述读操作请求发送至端点设备SOC-2210,使得所述端点设备SOC-2210响应于所述读操作请求而从用户空间读取相应的数据并将所述数据写入PCIe域,并触发写完成中断;以及从所述端点设备SOC-2210接收所述写完成中断并将所述写完成中断发送至根复合体SOC-1210,使得所述根复合体SOC-1210响应于所述写完成中断而将PCIe域中的数据传回到用户空间进行保存。Optionally, the PCIe switching device 220 may be configured to receive a read operation request from the root complex SOC-1 210 and send the read operation request to the end point device SOC-2 210, so that the end point device SOC-2 210 responds to the read operation Read the corresponding data from the user space and write the data into the PCIe domain according to the operation request, and trigger a write completion interrupt; and receive the write completion interrupt from the endpoint device SOC-2210 and send the write completion interrupt to the root complex SOC-1210, so that the root complex SOC-1210 responds to the write completion interrupt and transfers the data in the PCIe domain back to the user space for saving.

如图2中所示,首先,根复合体SOC-1210的用户空间的读app模块发起读操作请求,然后通过系统调用到内核的读处理函数,进行PCIe域与CPU域映射后,置相应的寄存器(例如,读的基地址,数据大小等),经由PCIe交换设备220发送读操作请求至端点设备SOC-2210,等待端点设备SOC-2210写完成的中断触发。As shown in Figure 2, firstly, the read app module of the user space of the root complex SOC-1210 initiates a read operation request, and then calls the read processing function of the kernel through the system, after mapping the PCIe domain and the CPU domain, set the corresponding Registers (for example, read base address, data size, etc.), send a read operation request to the endpoint device SOC-2210 via the PCIe switch device 220, and wait for the interrupt trigger that the endpoint device SOC-2210 writes to complete.

接着,端点设备SOC-2210侧的写轮询模块收到来自根复合体SOC-1210的读操作请求后,写app模块从用户空间读取相应的数据,然后通过系统调用写数据到PCIe域,并触发写完成中断。根复合体SOC-1210经由PCIe交换设备220收到来自端点设备SOC-2210的写完成中断后,读取PCIe域的数据到dma(directmemoryaccess)后,通过系统调用传回用户空间,通过用户空间的保存数据模块来保存数据。Next, after the write polling module of the endpoint device SOC-2210 receives the read operation request from the root complex SOC-1210, the write app module reads the corresponding data from the user space, and then writes the data to the PCIe domain through the system call, And trigger the write complete interrupt. After the root complex SOC-1210 receives the write completion interrupt from the endpoint device SOC-2210 via the PCIe switching device 220, it reads the data in the PCIe domain to the dma (directmemoryaccess), and sends it back to the user space through the system call, and through the user space Save data module to save data.

图3示出了按照本申请的一个或多个实施例的基于PCIe的车载通信系统的框图。FIG. 3 shows a block diagram of a PCIe-based vehicular communication system according to one or more embodiments of the present application.

如图3中所示,基于PCIe的车载通信系统300包括系统级芯片SOC-1310、SOC-2310和PCIe交换设备320,其中系统级芯片SOC-1310实现为根复合体以及系统级芯片SOC-2310实现为端点设备,PCIe交换设备320耦合至根复合体SOC-1310和端点设备SOC-2310,以用于实现根复合体SOC-1310对端点设备SOC-2310的写操作。As shown in FIG. 3 , the PCIe-based vehicular communication system 300 includes a system-on-chip SOC-1310, a SOC-2310, and a PCIe switching device 320, wherein the system-on-chip SOC-1310 is implemented as a root complex and the system-on-chip SOC-2310 Implemented as an endpoint device, the PCIe switch device 320 is coupled to the root complex SOC-1 310 and the endpoint device SOC-2 310 for implementing the write operation of the root complex SOC-1310 to the endpoint device SOC-2 310 .

可选地,PCIe交换设备220可以配置成从根复合体SOC-1310接收写操作请求并将所述写操作请求发送至端点设备SOC-2310,使得所述端点设备SOC-2310响应于所述写操作请求而获取PCIe域的相应数据以触发写完成中断,并将所述数据传回到用户空间进行保存。Optionally, the PCIe switching device 220 may be configured to receive a write operation request from the root complex SOC-1310 and send the write operation request to the end point device SOC-2310, so that the end point device SOC-2310 responds to the write operation The corresponding data of the PCIe domain is obtained by operating the request to trigger a write completion interrupt, and the data is returned to the user space for storage.

如图3中所示,首先,根复合体SOC-1310的用户空间的写app模块发起写操作请求,然后通过系统调用到内核的写处理函数,进行PCIe域与CPU域映射后,置相应的寄存器(例如,读的基地址,数据大小等),经由PCIe交换设备320发送写操作请求至端点设备SOC-2310,等待端点设备SOC-2310读完成的中断触发。As shown in Figure 3, first, the write app module of the user space of the root complex SOC-1310 initiates a write operation request, and then calls the write processing function of the kernel through the system, after mapping the PCIe domain and the CPU domain, set the corresponding Registers (for example, read base address, data size, etc.), send a write operation request to the endpoint device SOC-2310 via the PCIe switch device 320, and wait for the interrupt trigger of the endpoint device SOC-2310 read completion.

接着,端点设备SOC-2310侧的读轮询模块收到来自根复合体SOC-1310的写操作请求后,读取PCIe域的相应的数据后,触发写完成中断,且通过系统调用将数据传到用户空间,用户空间的保存数据模块来保存数据。Next, after receiving the write operation request from the root complex SOC-1310, the read polling module of the endpoint device SOC-2310 reads the corresponding data in the PCIe domain, triggers the write completion interrupt, and transmits the data to To the user space, the user space save data module to save the data.

图4示出了按照本申请的一个或多个实施例的基于PCIe的车载通信系统的框图。FIG. 4 shows a block diagram of a PCIe-based vehicular communication system according to one or more embodiments of the present application.

如图4中所示,基于PCIe的车载通信系统400包括系统级芯片SOC-1410、SOC-2410和PCIe交换设备420,其中系统级芯片SOC-1410实现为根复合体以及系统级芯片SOC-2410实现为端点设备,PCIe交换设备420耦合至根复合体SOC-1410和端点设备SOC-2410,以用于实现端点设备SOC-2410对根复合体SOC-1410的写操作。As shown in FIG. 4 , the PCIe-based vehicular communication system 400 includes a system-on-chip SOC-1410, a SOC-2410, and a PCIe switching device 420, wherein the system-on-chip SOC-1410 is implemented as a root complex and the system-on-chip SOC-2410 Implemented as an endpoint device, the PCIe switch device 420 is coupled to the root complex SOC-1 410 and the endpoint device SOC-2 410 for implementing the write operation of the root complex SOC-1 410 by the endpoint device SOC-2 410 .

可选地,PCIe交换设备420可以配置成从端点设备SOC-2410接收写操作请求和写完成中断并将所述写操作请求和写完成中断发送至根复合体SOC-1410,使得所述根复合体SOC-1410响应于所述写完成中断而获取PCIe域的相应数据并将所述数据传回到用户空间进行保存。Optionally, the PCIe switching device 420 may be configured to receive a write operation request and a write completion interrupt from the endpoint device SOC-2410 and send the write operation request and the write completion interrupt to the root complex SOC-1410, so that the root complex The body SOC-1410 obtains the corresponding data of the PCIe domain in response to the write completion interrupt and transfers the data back to the user space for saving.

如图4中所示,首先,端点设备SOC-2410的用户空间的写app模块发起写操作请求,然后通过系统调用到内核的写处理接口,进行CPU域与PCIe域映射后,置相应的寄存器(例如,写的基地址,数据大小等),触发写完成中断。As shown in Figure 4, first, the write app module of the user space of the endpoint device SOC-2410 initiates a write operation request, and then uses the system call to the write processing interface of the kernel to map the CPU domain and the PCIe domain, and set the corresponding register (for example, the base address of the write, the data size, etc.), trigger the write completion interrupt.

接着,根复合体SOC-1410侧的轮询app模块经由PCIe交换设备420收到来自端点设备SOC-2410的写完成中断后,从PCIe域复制数据后,传到用户空间,用户空间的保存数据模块来保存数据。Next, after the polling app module on the root complex SOC-1410 side receives the write completion interrupt from the endpoint device SOC-2410 via the PCIe switching device 420, the data is copied from the PCIe domain and transmitted to the user space, and the user space saves the data module to store data.

图5示出了按照本申请的一个或多个实施例的基于PCIe的车载通信系统的框图。FIG. 5 shows a block diagram of a PCIe-based vehicular communication system according to one or more embodiments of the present application.

如图5中所示,基于PCIe的车载通信系统500包括系统级芯片SOC-1510、SOC-2510和PCIe交换设备520,其中系统级芯片SOC-1510实现为根复合体以及系统级芯片SOC-2510实现为端点设备,PCIe交换设备520耦合至根复合体SOC-1510和端点设备SOC-2510,以用于实现端点设备SOC-2510对根复合体SOC-1510的读操作。As shown in FIG. 5, a PCIe-based vehicle communication system 500 includes a system-on-chip SOC-1510, a SOC-2510, and a PCIe switching device 520, wherein the system-on-chip SOC-1510 is implemented as a root complex and the system-on-chip SOC-2510 Implemented as an end point device, the PCIe switch device 520 is coupled to the root complex SOC-1510 and the end point device SOC-2 510 for realizing the read operation of the root complex SOC-1510 by the end point device SOC-2510.

可选地,PCIe交换设备520可以配置成从端点设备SOC-2510接收读操作请求和读中断并将所述读操作请求和读中断发送至根复合体SOC-1510,使得所述根复合体SOC-1510响应于所述读中断而从用户空间获取相应的数据并将所述数据写入PCIe域,并设置根复合体数据处理完成标识;以及从所述根复合体SOC-1510接收所述根复合体数据处理完成标识并将所述根复合体数据处理完成标识发送至端点设备SOC-2510,使得所述端点设备SOC-2510响应于所述根复合体数据处理完成标识而将所述PCIe域中的所述数据传回到用户空间进行保存。Optionally, the PCIe switching device 520 may be configured to receive a read operation request and a read interrupt from the endpoint device SOC-2510 and send the read operation request and the read interrupt to the root complex SOC-1510, so that the root complex SOC -1510 obtains corresponding data from user space in response to the read interrupt and writes the data into the PCIe domain, and sets the root complex data processing completion flag; and receives the root from the root complex SOC-1510 The complex data processing completes the identification and sends the root complex data processing completion identification to the endpoint device SOC-2510, so that the endpoint device SOC-2510 responds to the root complex data processing completion identification and sends the PCIe domain The data in is passed back to user space for saving.

如图5中所示,首先,端点设备SOC-2510的用户空间的读app模块发起读操作请求,通过系统调用到内核的读处理接口,进行CPU域与PCIe域映射后,置相应的寄存器(例如,读的基地址,数据大小等),触发读中断,并等待根复合体数据处理完成标识。As shown in Figure 5, firstly, the read app module of the user space of the endpoint device SOC-2510 initiates a read operation request, calls the read processing interface of the kernel through a system call, performs mapping between the CPU domain and the PCIe domain, and sets the corresponding register ( For example, read base address, data size, etc.), trigger a read interrupt, and wait for the root complex data processing completion flag.

接着,根复合体SOC-1510侧的用户空间的轮询app模块经由PCIe交换设备520接收到来自端点设备SOC-2510的读中断后,从用户空间读取数据,将数据写到相应的PCIe域中,并设置根复合体数据处理完成标识。端点设备SOC-2510经由PCIe交换设备520接收到根复合体数据处理完成标识后,提取相应PCIe域中的数据,传到用户空间,用户空间的保存数据模块来保存数据。Next, after the polling app module of the user space on the root complex SOC-1510 side receives the read interrupt from the endpoint device SOC-2510 via the PCIe switching device 520, it reads data from the user space and writes the data to the corresponding PCIe domain , and set the root complex data processing complete flag. After the endpoint device SOC-2510 receives the identification of the root complex data processing completion through the PCIe switching device 520, it extracts the data in the corresponding PCIe domain and transmits it to the user space, and the data saving module in the user space saves the data.

图6示出了按照本申请的一个或多个实施例的基于PCIe的车载通信系统的框图。FIG. 6 shows a block diagram of a PCIe-based vehicular communication system according to one or more embodiments of the present application.

如图6中所示,基于PCIe的车载通信系统600包括系统级芯片SOC-1610、SOC-2610、SOC-3610和PCIe交换设备620,其中系统级芯片SOC-1610实现为根复合体以及系统级芯片SOC-2610、SOC-3610实现为端点设备,PCIe交换设备620耦合至根复合体SOC-1610和端点设备SOC-2610、SOC-3610,以用于实现端点设备SOC-2610与SOC-3610之间的写操作。As shown in Figure 6, the PCIe-based vehicle communication system 600 includes a system-on-chip SOC-1610, SOC-2610, SOC-3610, and a PCIe switching device 620, wherein the system-on-chip SOC-1610 is implemented as a root complex and a system-level The chips SOC-2610 and SOC-3610 are implemented as endpoint devices, and the PCIe switching device 620 is coupled to the root complex SOC-1610 and the endpoint devices SOC-2610 and SOC-3610 to realize the connection between the endpoint devices SOC-2610 and SOC-3610. between write operations.

可选地,PCIe交换设备620可以配置成从端点设备SOC-2610接收写操作请求和写完成中断并将所述写操作请求和写完成中断发送至根复合体SOC-1610,使得所述根复合体SOC-1610响应于所述写完成中断而获取PCIe域的相应数据并将所述数据传回到用户空间;从根复合体SOC-1610接收写操作请求并将所述写操作请求发送至端点设备SOC-3610,使得所述端点设备SOC-3610响应于所述写操作请求而获取PCIe域的相应数据,并将所述数据传回到用户空间进行保存。Optionally, the PCIe switching device 620 may be configured to receive a write operation request and a write completion interrupt from the endpoint device SOC-2610 and send the write operation request and the write completion interrupt to the root complex SOC-1610, so that the root complex The body SOC-1610 obtains the corresponding data of the PCIe domain in response to the write complete interrupt and transfers the data back to user space; receives a write operation request from the root complex SOC-1610 and sends the write operation request to the endpoint The device SOC-3610 enables the end point device SOC-3610 to obtain the corresponding data of the PCIe domain in response to the write operation request, and transfer the data back to the user space for storage.

图6示例性地示出了从端点设备SOC-2610向端点设备SOC-3610的写操作。首先,端点设备SOC-2610的用户空间的写app模块发起写操作请求,通过系统调用,发送数据到内核的写处理接口,进行CPU域与PCIe域映射后,置相应的寄存器(例如,写的基地址,数据大小等),触发写完成中断。FIG. 6 exemplarily shows a write operation from an endpoint device SOC-2 610 to an endpoint device SOC-3 610 . First, the write app module of the user space of the endpoint device SOC-2610 initiates a write operation request, sends data to the write processing interface of the kernel through a system call, and after mapping the CPU domain and the PCIe domain, sets the corresponding register (for example, the write base address, data size, etc.), triggering a write complete interrupt.

接着,根复合体SOC-1610经由PCIe交换设备620接收到写完成中断后,从相应PCIe域复制数据后,传到用户空间,根复合体SOC-1610的用户空间的数据转发模块检测到此数据为发送到端点设备SOC-3610的,于是转发到端点设备SOC-3610相应的驱动处理接口中,后续写操作可以参见根复合体SOC-1310对端点设备SOC-2310的写操作过程,在此不再赘述。Next, after the root complex SOC-1610 receives the write completion interrupt via the PCIe switching device 620, it copies the data from the corresponding PCIe domain and transmits it to the user space, and the data forwarding module of the user space of the root complex SOC-1610 detects this data In order to send to the endpoint device SOC-3610, it is forwarded to the corresponding driver processing interface of the endpoint device SOC-3610. For subsequent write operations, please refer to the write operation process of the root complex SOC-1310 to the endpoint device SOC-2310. Let me repeat.

图7示出了按照本申请的一个或多个实施例的基于PCIe的车载通信系统的框图。FIG. 7 shows a block diagram of a PCIe-based vehicular communication system according to one or more embodiments of the present application.

如图7中所示,基于PCIe的车载通信系统700包括系统级芯片SOC-1710、SOC-2710、SOC-3710和PCIe交换设备720,其中系统级芯片SOC-1710实现为根复合体以及系统级芯片SOC-2710、SOC-3710实现为端点设备,PCIe交换设备720耦合至根复合体SOC-1710和端点设备SOC-2710、SOC-3710,以用于实现端点设备SOC-2710与SOC-3710之间的读操作。As shown in FIG. 7 , a PCIe-based vehicular communication system 700 includes a system-on-chip SOC-1710, SOC-2710, SOC-3710, and a PCIe switching device 720, wherein the system-on-chip SOC-1710 is implemented as a root complex and a system-level The chips SOC-2710 and SOC-3710 are implemented as endpoint devices, and the PCIe switching device 720 is coupled to the root complex SOC-1710 and the endpoint devices SOC-2710 and SOC-3710 to realize the connection between the endpoint devices SOC-2710 and SOC-3710. between read operations.

可选地,PCIe交换设备720可以配置成从端点设备SOC-2710接收读操作请求和读中断并将所述读操作请求和读中断发送至根复合体SOC-1710,使得所述根复合体SOC-1710响应于所述读中断而获取端点设备SOC-3710的相应的数据并将所述数据写入端点设备SOC-2710的PCIe域,并设置根复合体数据处理完成标识;以及从根复合体SOC-1710接收所述根复合体数据处理完成标识并将所述根复合体数据处理完成标识发送至端点设备SOC-2710,使得所述端点设备SOC-2710响应于所述根复合体数据处理完成标识而将所述PCIe域中的所述数据传回到用户空间进行保存。Optionally, the PCIe switching device 720 may be configured to receive a read operation request and a read interrupt from the endpoint device SOC-2710 and send the read operation request and the read interrupt to the root complex SOC-1710, so that the root complex SOC - 1710 obtain the corresponding data of the endpoint device SOC-3710 in response to the read interrupt and write the data into the PCIe domain of the endpoint device SOC-2710, and set the root complex data processing completion flag; and from the root complex SOC-1710 receives said root complex data processing completion indication and sends said root complex data processing completion indication to endpoint device SOC-2710, so that said endpoint device SOC-2710 responds to said root complex data processing completion identify and transfer the data in the PCIe domain back to the user space for storage.

图7示例性地示出了端点设备SOC-2710从端点设备SOC-3710的读数据操作。首先,端点设备SOC-2710的用户空间的读app模块发起读操作请求,通过系统调用,到内核的读处理接口,进行CPU域与PCIe域映射后,置相应的寄存器(例如,读的基地址,数据大小等),触发读中断,并等待根复合体数据处理完成标识。FIG. 7 exemplarily shows the data read operation of the endpoint device SOC-2710 from the endpoint device SOC-3710. First, the read app module of the user space of the endpoint device SOC-2710 initiates a read operation request, through the system call, to the read processing interface of the kernel, after mapping the CPU domain and the PCIe domain, set the corresponding register (for example, the base address of the read , data size, etc.), trigger a read interrupt, and wait for the root complex data processing completion flag.

接着,根复合体SOC-1710侧的轮询app模块经由PCIe交换设备720收到来自端点设备SOC-2710的读中断后,用户空间检测到读操作请求为从端点设备SOC-3710读取数据的请求,于是调用到端点设备SOC-3710相应的驱动处理接口中。后续读操作可以参见根复合体SOC-1210对端点设备SOC-2210的读操作过程,在此不再赘述。根复合体SOC-1710读取到端点设备SOC-3710的数据后,写入与端点设备SOC-2710相应的PCIe域中,并设置根复合体数据处理完成标识。最后,端点设备SOC-2710经由PCIe交换设备720接收到根复合体数据处理完成标识后,提取相应PCIe域中的数据,传到用户空间,用户空间的保存数据模块来保存数据。Next, after the polling app module on the root complex SOC-1710 side receives the read interrupt from the endpoint device SOC-2710 via the PCIe switch device 720, the user space detects that the read operation request is to read data from the endpoint device SOC-3710 The request is then called to the corresponding driver processing interface of the endpoint device SOC-3710. For subsequent read operations, reference may be made to the read operation process of the root complex SOC-1210 to the endpoint device SOC-2210, which will not be repeated here. After the root complex SOC-1710 reads the data of the endpoint device SOC-3710, it writes it into the PCIe domain corresponding to the endpoint device SOC-2710, and sets the root complex data processing completion flag. Finally, after the endpoint device SOC-2710 receives the root complex data processing completion flag via the PCIe switching device 720, it extracts the data in the corresponding PCIe domain and transmits it to the user space, and the data saving module in the user space saves the data.

根据本申请的一个方面的基于PCIe的车载通信系统能够运用PCIe通信技术实现汽车中央电脑平台上多个系统级芯片SOC间的高速数据通信,有效解决汽车中央电脑平台上传统通信方式无法满足算力SOC因实现算力共享、动态负载均衡、算力可扩展、同构级联等任务所带来的高速通信需求问题,为汽车智能化的高速发展提供重要技术支撑。此外,通过PCIe实现汽车中央电脑平台多个系统级芯片SOC间的通信,降低了中央电脑平台车载以太网目前的高负载率,有效缓解汽车中央电脑平台多个系统级芯片SOC间通信对车载以太网和SPI的高度依赖。同时,充分利用了Linux系统驱动开发架构以及系统调用接口函数,开发量少、可移植性强,可以传输各种数据,例如包括图像、视频流等。According to one aspect of the present application, the PCIe-based in-vehicle communication system can use PCIe communication technology to realize high-speed data communication between multiple system-level chip SOCs on the automobile central computer platform, effectively solving the problem that traditional communication methods on the automobile central computer platform cannot meet the computing power SOC provides important technical support for the rapid development of automobile intelligence due to the high-speed communication requirements brought about by tasks such as computing power sharing, dynamic load balancing, computing power scalability, and homogeneous cascading. In addition, the communication between multiple system-level chip SOCs of the automobile central computer platform is realized through PCIe, which reduces the current high load rate of the vehicle-mounted Ethernet of the central computer platform, and effectively alleviates the communication between multiple system-level chip SOCs of the vehicle central computer platform. Net and SPI are highly dependent. At the same time, it makes full use of the Linux system driver development framework and system call interface functions, with less development and strong portability, and can transmit various data, such as images and video streams.

另外,本申请也可以被实施为一种车辆,该车辆包括按照本申请的一个方面的基于PCIe的车载通信系统。In addition, the present application may also be implemented as a vehicle including the PCIe-based in-vehicle communication system according to one aspect of the present application.

提供本文中提出的实施例和示例,以便最好地说明按照本申请及其特定应用的实施例,并且由此使本领域的技术人员能够实施和使用本申请。但是,本领域的技术人员将会知道,仅为了便于说明和举例而提供以上描述和示例。所提出的描述不是意在涵盖本申请的各个方面或者将本申请局限于所公开的精确形式。The embodiments and examples presented herein are provided in order to best explain the embodiments of the application and its particular application in accordance with, and thereby enable those skilled in the art to make and use the application. However, those skilled in the art will appreciate that the foregoing description and examples are provided for purposes of illustration and example only. The presented description is not intended to cover every aspect of the application or to limit the application to the precise form disclosed.

Claims (10)

1.一种基于PCIe的车载通信系统,其特征在于,所述车载通信系统包括:1. a kind of vehicle-mounted communication system based on PCIe, it is characterized in that, described vehicle-mounted communication system comprises: 多个系统级芯片SOC,所述多个系统级芯片SOC被划分为根复合体和多个端点设备;以及a plurality of system-on-chip SOCs partitioned into a root complex and a plurality of endpoint devices; and PCIe交换设备,所述PCIe交换设备耦合至所述根复合体和所述多个端点设备,以用于在所述根复合体和所述多个端点设备之间以及在所述多个端点设备之间执行通信操作。a PCIe switching device coupled to the root complex and the plurality of end point devices for use between the root complex and the plurality of end point devices and between the plurality of end point devices Perform communication operations between them. 2.根据权利要求1所述的车载通信系统,其中所述通信操作包括读操作和写操作。2. The in-vehicle communication system according to claim 1, wherein the communication operation includes a read operation and a write operation. 3.根据权利要求1所述的车载通信系统,其中所述根复合体配置成:3. The vehicular communication system of claim 1, wherein the root complex is configured to: 通过枚举PCIe树获得所述多个端点设备的状态;以及Obtaining the states of the plurality of endpoint devices by enumerating the PCIe tree; and 基于所述多个端点设备的状态分别在所述根复合体和所述多个端点设备上实现各自CPU域与PCIe域的映射,以实现CPU操作PCIe域地址的功能。Based on the states of the multiple endpoint devices, respectively implement the mapping between the CPU domain and the PCIe domain on the root complex and the multiple endpoint devices, so as to realize the function of the CPU operating the PCIe domain address. 4.根据权利要求1所述的车载通信系统,其中所述PCIe交换设备配置成通过下列方式执行所述根复合体对所述多个端点设备中的一个端点设备的读操作:4. The vehicular communication system according to claim 1, wherein the PCIe switching device is configured to perform a read operation of the root complex to one of the plurality of endpoint devices by: 从所述根复合体接收读操作请求并将所述读操作请求发送至所述多个端点设备中的一个端点设备,使得所述端点设备响应于所述读操作请求而从用户空间读取相应的数据并将所述数据写入PCIe域,并触发写完成中断;以及Receiving a read request from the root complex and sending the read request to one of the plurality of endpoint devices, such that the endpoint device reads the corresponding and writing the data to the PCIe domain and triggering a write complete interrupt; and 从所述端点设备接收所述写完成中断并将所述写完成中断发送至所述根复合体,使得所述根复合体响应于所述写完成中断而将所述PCIe域中的所述数据传回到用户空间进行保存。receiving the write complete interrupt from the endpoint device and sending the write complete interrupt to the root complex, such that the root complex sends the data in the PCIe domain in response to the write complete interrupt Pass back to user space for saving. 5.根据权利要求1所述的车载通信系统,其中所述PCIe交换设备配置成通过下列方式执行所述根复合体对所述多个端点设备中的一个端点设备的写操作:5. The vehicular communication system according to claim 1, wherein the PCIe switching device is configured to perform the write operation of the root complex to one of the plurality of endpoint devices in the following manner: 从所述根复合体接收写操作请求并将所述写操作请求发送至所述多个端点设备中的一个端点设备,使得所述端点设备响应于所述写操作请求而获取PCIe域的相应数据以触发写完成中断,并将所述数据传回到用户空间进行保存。receiving a write operation request from the root complex and sending the write operation request to one of the plurality of end point devices, such that the end point device obtains corresponding data of the PCIe domain in response to the write operation request To trigger the write completion interrupt, and transfer the data back to the user space for saving. 6.根据权利要求1所述的车载通信系统,其中所述PCIe交换设备配置成通过下列方式执行所述多个端点设备中的一个端点设备对所述根复合体的写操作:6. The vehicular communication system according to claim 1, wherein the PCIe switching device is configured to perform a write operation of an endpoint device in the plurality of endpoint devices to the root complex in the following manner: 从所述多个端点设备中的一个端点设备接收写操作请求和写完成中断并将所述写操作请求和写完成中断发送至所述根复合体,使得所述根复合体响应于所述写完成中断而获取PCIe域的相应数据并将所述数据传回到用户空间进行保存。receiving a write request and a write completion interrupt from one of the plurality of endpoint devices and sending the write request and a write completion interrupt to the root complex such that the root complex responds to the write The interrupt is completed to obtain the corresponding data of the PCIe domain and transfer the data back to the user space for saving. 7.根据权利要求1所述的车载通信系统,其中所述PCIe交换设备配置成通过下列方式执行所述多个端点设备中的一个端点设备对所述根复合体的读操作:7. The vehicular communication system according to claim 1, wherein the PCIe switching device is configured to perform a read operation of an endpoint device in the plurality of endpoint devices to the root complex in the following manner: 从所述多个端点设备中的一个端点设备接收读操作请求和读中断并将所述读操作请求和读中断发送至所述根复合体,使得所述根复合体响应于所述读中断而从用户空间获取相应的数据并将所述数据写入PCIe域,并设置根复合体数据处理完成标识;以及receiving a read request and a read interrupt from one of the plurality of endpoint devices and sending the read request and the read interrupt to the root complex such that the root complex responds to the read interrupt Obtain corresponding data from the user space and write the data into the PCIe domain, and set the root complex data processing completion flag; and 从所述根复合体接收所述根复合体数据处理完成标识并将所述根复合体数据处理完成标识发送至所述多个端点设备中的一个端点设备,使得所述端点设备响应于所述根复合体数据处理完成标识而将所述PCIe域中的所述数据传回到用户空间进行保存。receiving the root complex data processing completion indication from the root complex and sending the root complex data processing completion indication to one of the plurality of endpoint devices such that the endpoint device responds to the The identification of root complex data processing is completed, and the data in the PCIe domain is returned to the user space for storage. 8.根据权利要求1所述的车载通信系统,其中所述PCIe交换设备配置成通过下列方式执行所述多个端点设备之间的写操作:8. The vehicular communication system according to claim 1, wherein the PCIe switching device is configured to perform write operations between the plurality of endpoint devices in the following manner: 从所述多个端点设备中的一个端点设备接收写操作请求和写完成中断并将所述写操作请求和写完成中断发送至所述根复合体,使得所述根复合体响应于所述写完成中断而获取PCIe域的相应数据并将所述数据传回到用户空间;receiving a write request and a write completion interrupt from one of the plurality of endpoint devices and sending the write request and a write completion interrupt to the root complex such that the root complex responds to the write Complete the interrupt to obtain the corresponding data of the PCIe domain and transfer the data back to the user space; 从所述根复合体接收写操作请求并将所述写操作请求发送至所述多个端点设备中的另一个端点设备,使得所述端点设备响应于所述写操作请求而获取PCIe域的相应数据,并将所述数据传回到用户空间进行保存。receiving a write operation request from the root complex and sending the write operation request to another of the plurality of end point devices, such that the end point device obtains a corresponding PCIe domain in response to the write operation request data, and pass said data back to user space for saving. 9.根据权利要求1所述的车载通信系统,其中所述PCIe交换设备配置成通过下列方式执行所述多个端点设备之间的读操作:9. The vehicular communication system according to claim 1, wherein the PCIe switching device is configured to perform a read operation between the plurality of endpoint devices in the following manner: 从所述多个端点设备中的一个端点设备接收读操作请求和读中断并将所述读操作请求和读中断发送至所述根复合体,使得所述根复合体响应于所述读中断而获取所述多个端点设备中的另一个端点设备的相应的数据并将所述数据写入所述多个端点设备中的一个端点设备的PCIe域,并设置根复合体数据处理完成标识;以及receiving a read request and a read interrupt from one of the plurality of endpoint devices and sending the read request and the read interrupt to the root complex such that the root complex responds to the read interrupt Obtain corresponding data of another endpoint device in the plurality of endpoint devices and write the data into the PCIe domain of one endpoint device in the plurality of endpoint devices, and set the root complex data processing completion flag; and 从所述根复合体接收所述根复合体数据处理完成标识并将所述根复合体数据处理完成标识发送至所述多个端点设备中的一个端点设备,使得所述端点设备响应于所述根复合体数据处理完成标识而将所述PCIe域中的所述数据传回到用户空间进行保存。receiving the root complex data processing completion indication from the root complex and sending the root complex data processing completion indication to one of the plurality of endpoint devices such that the endpoint device responds to the The identification of root complex data processing is completed, and the data in the PCIe domain is returned to the user space for storage. 10.一种车辆,其特征在于,所述车辆包括:10. A vehicle, characterized in that the vehicle comprises: 根据权利要求1-9中任一项所述的基于PCIe的车载通信系统。The vehicle communication system based on PCIe according to any one of claims 1-9.
CN202310498408.5A 2023-05-05 2023-05-05 Vehicle-mounted communication system and vehicle based on PCIe Pending CN116527714A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310498408.5A CN116527714A (en) 2023-05-05 2023-05-05 Vehicle-mounted communication system and vehicle based on PCIe

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310498408.5A CN116527714A (en) 2023-05-05 2023-05-05 Vehicle-mounted communication system and vehicle based on PCIe

Publications (1)

Publication Number Publication Date
CN116527714A true CN116527714A (en) 2023-08-01

Family

ID=87393717

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310498408.5A Pending CN116527714A (en) 2023-05-05 2023-05-05 Vehicle-mounted communication system and vehicle based on PCIe

Country Status (1)

Country Link
CN (1) CN116527714A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582998A (en) * 2017-09-28 2019-04-05 英特尔公司 The root complex of small and exquisite PCIe endpoint 1590 integrate endpoint emulation
US20190251049A1 (en) * 2016-11-30 2019-08-15 Socionext Inc. Information processing system, semiconductor integrated circuit, and information processing method
CN110941576A (en) * 2018-09-21 2020-03-31 苏州库瀚信息科技有限公司 System, method and apparatus for multimode PCIE capable storage controller
CN112306913A (en) * 2019-07-30 2021-02-02 华为技术有限公司 A management method, device and system for an endpoint device
US20220318170A1 (en) * 2021-03-24 2022-10-06 Infineon Technologies Ag DEVICES, SYSTEMS, AND METHODS FOR PCIe ENDPOINT INTERRUPT
CN115756883A (en) * 2022-10-28 2023-03-07 杭州海康威视数字技术股份有限公司 Inter-chip interaction processing method and system, electronic device and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190251049A1 (en) * 2016-11-30 2019-08-15 Socionext Inc. Information processing system, semiconductor integrated circuit, and information processing method
CN109582998A (en) * 2017-09-28 2019-04-05 英特尔公司 The root complex of small and exquisite PCIe endpoint 1590 integrate endpoint emulation
CN110941576A (en) * 2018-09-21 2020-03-31 苏州库瀚信息科技有限公司 System, method and apparatus for multimode PCIE capable storage controller
CN112306913A (en) * 2019-07-30 2021-02-02 华为技术有限公司 A management method, device and system for an endpoint device
US20220318170A1 (en) * 2021-03-24 2022-10-06 Infineon Technologies Ag DEVICES, SYSTEMS, AND METHODS FOR PCIe ENDPOINT INTERRUPT
CN115756883A (en) * 2022-10-28 2023-03-07 杭州海康威视数字技术股份有限公司 Inter-chip interaction processing method and system, electronic device and readable storage medium

Similar Documents

Publication Publication Date Title
CN1647054B (en) Dual-mode network device driver device, system and method
CN103559156B (en) Communication system between a kind of FPGA and computing machine
CN112099941A (en) Method, equipment and system for realizing hardware acceleration processing
CN106170745A (en) Mobile device connectivity flexibly to the automotive system with usb hub
WO2025051149A1 (en) High-speed communication method and apparatus for heterogeneous device, and heterogeneous communication system
CN102207920B (en) Conversion bridge for conversion from BVCI (basic virtual component interface) bus to AHB (advanced high performance bus)
CN106662895B (en) Computer equipment and method for reading and writing computer equipment data
CN116594951B (en) FPGA-based data transmission system and method
WO2017173618A1 (en) Method, apparatus and device for compressing data
WO2022247198A1 (en) Interrupt distributor, data processing chip, interrupt distribution method and data processing method
CN118606079B (en) A communication method and system based on socket interface
CN114201268A (en) A data processing method, apparatus, device and readable storage medium
CN118860952A (en) A RDMA cross-host interconnection communication system based on PCIe NTB
CN106844263A (en) It is a kind of based on configurable multiprocessor computer system and implementation method
US20250123980A1 (en) Interrupt emulation on network devices
CN119226193A (en) Communication method, device, storage medium and program product
CN116527714A (en) Vehicle-mounted communication system and vehicle based on PCIe
US7970976B2 (en) Remote memory access using reversible host/client interface
CN117749739B (en) Data sending method, data receiving method, device, equipment and storage medium
US20140075063A1 (en) Smart device with no AP
CN115114042A (en) Storage data access method and device, electronic equipment and storage medium
CN115114192A (en) Memory interface, functional core, many-core system and storage data access method
US20240289297A1 (en) Hot transition of i2c to i3c
CN117009266A (en) Handshake protocol bus arbitration module and system on chip
CN117076381A (en) A data transmission system, method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination