PCIE password card, communication method thereof and storage medium

By using the direct connection between the master PCIE chip and the slave PCIE chip in the PCIE password card, multi-cascade communication is achieved, which solves the problem of increased hardware costs, significantly reduces the cost of the encryption card, and enhances market competitiveness.

CN118659908APending Publication Date: 2024-09-17CCORE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410846841.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

In the existing technology, in order to improve the IO throughput performance of the password card, it is necessary to integrate the PCIE Switch chip, which leads to an increase in hardware costs and affects market competitiveness.

Method used

By using a direct connection between the master PCIE chip and the slave PCIE chip in the PCIE password card, multi-cascade communication is achieved using the PCIE root complex port and endpoint port, without using the PCIE Switch chip for address translation and data transmission.

Benefits of technology

It achieves a significant reduction in the cost of encryption cards without reducing IO throughput performance, and enhances the market competitiveness of the product.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118659908A
    Figure CN118659908A
Patent Text Reader

Abstract

The invention provides a PCIE (Peripheral Component Interface Express) password card, comprising: a main PCIE chip device comprising a first PCIE endpoint port and a PCIE root complex port, the first PCIE endpoint port being used for communicating with an external host; and the slave PCIE chip equipment comprises a second PCIE endpoint port, and the second PCIE endpoint port is used for being connected with the PCIE root complex port on the master PCIE chip equipment and is used for providing IO service for the external host through the first PCIE endpoint port on the master PCIE chip equipment. According to the PCIE password card provided by the invention, the master PCIE chip equipment is connected with the slave PCIE chip equipment through the PCIE root complex port, a PCIE Switch chip does not need to be adopted, the IO throughput capacity of the password card can not be reduced, the cost of the password card can also be remarkably reduced, and thus the market competitiveness of the product is enhanced. The invention further provides a communication method of the PCIE password card and a storage medium, which have the above beneficial effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of computer hardware, and in particular to a PCIE cryptographic card and a communication method and storage medium thereof. Background Art

[0002] In the current technical solution, in order to improve the IO throughput performance of the password card, a PCIE Switch chip is usually integrated into the password card to connect two password chips. However, this approach inevitably increases the hardware cost because an additional PCIE Switch chip needs to be integrated, which may significantly increase the overall cost of the password card, thereby affecting the market competitiveness of the product. Summary of the invention

[0003] The purpose of this application is to provide a PCIE cryptographic card and its communication method and storage medium, which can realize the cascading of multiple cryptographic cards without integrating a PCIE Switch chip.

[0004] In order to solve the above technical problems, the present application provides a PCIE password card, and the specific technical solution is as follows:

[0005] A main PCIE chip device, comprising a first PCIE endpoint port and a PCIE root complex port, wherein the first PCIE endpoint port is used to communicate with an external host;

[0006] The slave PCIE chip device comprises a second PCIE endpoint port, wherein the second PCIE endpoint port is used to connect to the PCIE root complex port on the master PCIE chip device and to provide IO services to the external host through the first PCIE endpoint port on the master PCIE chip device.

[0007] The present application also provides a communication method of a PCIE cryptographic card, which is applied to the PCIE cryptographic card described above, including:

[0008] The PCIE cryptographic card receives read and write operation instructions from an external host through a PCIE root complex port;

[0009] Performing address translation on the read / write operation instruction to determine the register address corresponding to the access address of the read / write operation instruction;

[0010] Read and write operations are performed according to the register address.

[0011] Wherein, performing address translation on the read and write operation instructions includes:

[0012] Utilizing a first address translation module to translate the read and write operation instructions into bus-recognizable addresses;

[0013] The read and write operation instructions are translated into endpoint-recognizable addresses using a second address translation module.

[0014] The step of using the first address translation module to translate the read / write operation instruction into a bus-recognizable address includes:

[0015] The PCIE address and bus address conversion table preset in the first address translation module is searched to translate the read and write operation instructions into bus recognizable addresses.

[0016] After the read / write operation instruction is translated into an endpoint recognizable address by using the second address translation module, the method further includes:

[0017] Encapsulating the endpoint identifiable address and the read / write operation instruction into a PICE protocol message;

[0018] The PICE protocol message is transmitted to the slave PCIE chip device through the first PCIE endpoint port of the master PCIE chip device in the PCIE cryptographic card.

[0019] Wherein, after the PICE protocol message is transmitted to the slave PCIE chip device through the first PCIE endpoint port of the master PCIE chip device in the PCIE cryptographic card, the method further includes:

[0020] The PICE protocol message is calculated using the algorithm submodule included in the slave PCIE chip device, and is written into the memory area specified by the external host using a DMA unit.

[0021] Wherein, if the slave PCIE chip device generates an interrupt, it also includes:

[0022] Send the interrupt message to the PCIE physical link through the PCIE protocol;

[0023] The master PCIE chip device receives the interrupt message and triggers an interrupt of the master PCIE chip device to respond to the interrupt.

[0024] Wherein, if the slave PCIE chip device generates an interrupt, it also includes:

[0025] Determine whether the interrupt message needs to be forwarded to an external host;

[0026] If yes, query the MSI-X interrupt vector number and address corresponding to the interrupt message;

[0027] Perform register configuration according to the MSI-X interrupt vector number and address;

[0028] After the register configuration is completed, the configured MSI-X interrupt is triggered to notify the external host.

[0029] Wherein, the determining whether the interrupt message needs to be forwarded to an external host comprises:

[0030] Whether the interrupt message needs to be forwarded to an external host is determined according to at least one of an interrupt type, an interrupt source, and a system configuration.

[0031] The present application also provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the steps of the above-mentioned method when executed by a processor.

[0032] The present application also provides a server, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps of the above-mentioned method when calling the computer program in the memory.

[0033] The present application provides a PCIE cryptographic card, comprising: a master PCIE chip device, comprising a first PCIE endpoint port and a PCIE root complex port, wherein the first PCIE endpoint port is used to communicate with an external host; a slave PCIE chip device, comprising a second PCIE endpoint port, wherein the second PCIE endpoint port is used to connect to the PCIE root complex port on the master PCIE chip device, and is used to provide IO services to the external host through the first PCIE endpoint port on the master PCIE chip device.

[0034] The PCIE cryptographic card provided in the present application uses a PCIE root complex port to connect the master PCIE chip device to the slave PCIE chip device, without the need to use a PCIE Switch chip. This can maintain the IO throughput of the cryptographic card and significantly reduce the cost of the encryption card, thereby enhancing the market competitiveness of the product.

[0035] The present application also provides a communication method and storage medium for a PCIE cryptographic card, which have the above-mentioned beneficial effects and will not be described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0037] Figure 1 A schematic diagram of the structure of a PCIE cryptographic card provided in an embodiment of the present application;

[0038] Figure 2 A flow chart of a communication method of a PCIE cryptographic card provided in an embodiment of the present application;

[0039] Figure 3 A schematic diagram of the data path after two PCIE cryptographic chip devices are cascaded according to an embodiment of the present application;

[0040] Figure 4 A schematic diagram of the PCIE configuration space provided in an embodiment of the present application;

[0041] Figure 5 A schematic diagram of the PCIE password card interrupt structure provided in an embodiment of the present application;

[0042] Figure 6 A schematic diagram of the structure of another PCIE cryptographic card provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0044] Please refer to Figure 1 , Figure 1 A schematic diagram of the structure of a PCIE cryptographic card provided in an embodiment of the present application, the PCIE cryptographic card includes:

[0045] A main PCIE chip device, comprising a first PCIE endpoint port and a PCIE root complex port, wherein the first PCIE endpoint port is used to communicate with an external host;

[0046] The slave PCIE chip device comprises a second PCIE endpoint port, wherein the second PCIE endpoint port is used to connect to the PCIE root complex port on the master PCIE chip device and to provide IO services to the external host through the first PCIE endpoint port on the master PCIE chip device.

[0047] The host is connected to the PCIE endpoint port (EP, End Point) of the master PCIE cryptographic chip device through the PCIE root complex port (RC, Root Complex), and the two chip devices are connected through the PCIE physical link. The master PCIE chip device is connected to the PCIE EP controller integrated in the slave PCIE chip device through its on-chip integrated RC. The master PCIE chip device is connected to the host uplink and to the slave PCIE chip device downlink. The slave PCIE chip device provides IO services to the host through the PCIE uplink of the master PCIE chip device. The master PCIE chip device and the slave PCIE chip device together constitute a PCIE cryptographic card, which is connected to the host through the PCIE interface. The PCIE root complex port is an interface connecting the processor, memory subsystem and PCIE bus switching structure, which can be used to initiate requests and provide interface functions. It can include multiple components such as processor interface and memory controller.

[0048] It can be seen that in the PCIE cryptographic card provided in the embodiment of the present application, the main PCIE chip device adopts the PCIE root complex port to connect with the slave PCIE chip device, and there is no need to use a PCIE Switch chip. It can not only maintain the IO throughput capacity of the cryptographic card, but also significantly reduce the cost of the encryption card, thereby enhancing the market competitiveness of the product.

[0049] In a feasible implementation manner, the first PCIE endpoint port in the master PCIE chip device may further include an EP address translation module, and the EP address translation module may be used to translate the PCIE address into a bus address.

[0050] In a feasible implementation manner, the first PCIE controller root complex port in the master PCIE chip device may further include an RC address translation module for translating a bus address into a PCIE address.

[0051] In a feasible implementation, the master PCIE chip device may further include an interrupt processing unit for responding to an interrupt request and executing an interrupt process of the master PCIE chip device. The interrupt request may originate from a slave PCIE chip device, etc.

[0052] In a feasible implementation, the main PCIE chip device may further include a SEC module for applying a security algorithm to perform data calculations.

[0053] See also Figure 2 , Figure 2 A flow chart of a communication method of a PCIE cryptographic card provided in an embodiment of the present application, the method comprising:

[0054] S201: The PCIE cryptographic card receives a read / write operation instruction from an external host through a PCIE root complex port;

[0055] S202: performing address translation on the read / write operation instruction to determine a register address corresponding to an access address of the read / write operation instruction;

[0056] S203: Execute read and write operations according to the register address.

[0057] When the PCIE cryptographic card provided in the above embodiment is used for read and write operations, the read and write operation instructions of the external host are first received through the PCIE root complex port of the main PCIE chip device. It should be noted that the read and write operation instructions refer to read instructions or write instructions, and can also include read instructions and write instructions at the same time, and the communication process of the two is the same.

[0058] After receiving the read / write operation instruction, the corresponding address translation is first performed to determine the register address corresponding to the read / write operation instruction, so as to perform the corresponding read / write operation on the register address.

[0059] When performing address translation, it can be translated into bus-recognizable addresses and endpoint-recognizable addresses, respectively. The bus-recognizable addresses are used to traverse the bus, while the endpoint-recognizable addresses are used to be transmitted to the slave PCIE chip device.

[0060] Figure 3 The schematic diagram of the data path after the two PCIE cryptographic chip devices are cascaded provided in the embodiment of the present application shows in detail the data path of the two PCIE cryptographic chip devices to expand the IO throughput through a multi-level connection method. Figure 4 The layout of six base address registers 0 to 5 in the PCIE configuration space 401 in the EP device in the PCIE protocol is specifically shown. Figure 4 The base address register 402, base address register 403, base address register 404, base address register 405, base address register 406, base address register 407 and PCIE register 408 are included. Of course, the PCIE configuration space 401 may also include a status register, a command statement storage, etc. Figure 4 The base address register is used to store the base address and base address space size of the PCIE device in the PCIE. These address spaces need to be mapped to the memory domain when the system is initialized so that the CPU and other devices can access them. The base address register is crucial for the allocation and access of resources, ensuring that the device can correctly exchange data with other parts of the system.

[0061] Figure 3In the embodiment, a host 101 and a PCIE controller root complex port 102 located in the host 101 are included, and the PCIE controller root complex port 102 is used to communicate with the PCIE root complex port in the main PCIE chip. In addition, the main PCIE device also includes an interrupt processing unit 205 and a SEC module 206, and the SEC module 206 may further include a DMA submodule 207 and an algorithm submodule 208. The DMA submodule 207 is used to directly transfer data between the memory and the peripheral device, and can directly encrypt and decrypt data, and write data directly to the host-side memory through the PCIE bus without being processed by the host-side CPU. The algorithm submodule 208 includes some algorithms involved in the read and write operations, which are not specifically limited here. Correspondingly, the slave PCIE chip device 301 may also include an interconnect bus 304 and a SEC module 306, and the SEC module 306 is provided with an algorithm submodule 308 and a DMA submodule 307.

[0062] When performing read and write operations, the configuration register address space windows of the submodule SEC module 206 in the master PCIE chip device 201 and the submodule SEC module 306 in the slave PCIE chip device 301 are respectively mapped through the two base address registers in the PCIE configuration space 401. To simplify the description, it is assumed that the configuration register address space window of the SEC module 206 is mapped to Figure 4 406 base address register 4 in the SEC module 306, and at the same time, the configuration register address space window of the SEC module 306 is mapped to the SEC module 306 base address register 5. Finally, the host 101 performs operations by reading the addresses in the SEC module 306 base address register 4 and the SEC module 306 base address register 5.

[0063] For ease of understanding, assume that the read addresses are 0x7000_0000 and 0x7008_0000 respectively. The host 101's read and write operations on the address 0x7000_0000 are actually mapping operations on the registers of the SEC module 206, which means that all accesses to the address 0x7000_0000 will be directly converted into corresponding read and write operations on the registers of the SEC module 206. Similarly, the host 101's read and write operations on the address 0x7008_0000 are actually mapping operations on the registers of the SEC module 306, which means that all accesses to the address 0x7008_0000 will be directly converted into corresponding read and write operations on the registers of the SEC module 306.

[0064] When the host 101 accesses the address 0x7008_0000, the access operation will be directly converted into the corresponding read and write operation of the SEC module register 306. The following takes the host 101 performing a write operation on the register R0 with an address offset of 0 in the SEC module 306 register and configuring R0=0xA8 as an example to explain the address translation process in detail.

[0065] First, the host 101 writes the value 0xA8 to the address 0x7008_0000. At this time, the PCIE controller RC module 102 of the host 101 encapsulates the address and content into a PCIE protocol message. Subsequently, the PCIE message is sent to the PCIE controller EP module 202 of the main PCIE chip device 201 through the PCIE physical link. In the PCIE EP address translation module 203, by looking up the pre-configured PCIE address and bus address conversion table, it can be learned that the bus address corresponding to 0x7008_0000 is 0x1008_0000.

[0066] Next, the PCIE controller EP module 202 writes the data 0xA8 to the interconnect bus 204, and the address is 0x1008_0000. The interconnect bus 204 sends the bus write request of the address to the PCIE controller root complex port RC module 209. In the submodule RC address translation module 210 of the PCIE RC module 209, by searching the pre-configured bus and PCIE address conversion table, it can be known that the PCIE address corresponding to the bus address 0x1008_0000 is 0x2008_0000. Therefore, the PCIE controller root complex port 209 encapsulates the PCIE address 0x2008_0000 and the data 0xA8 into a PCIE protocol message, and sends it to the PCIE controller endpoint port EP module 302 of the PCIE chip device 301 via the PCIE physical link.

[0067] The PCIE message is sent to the PCIE controller endpoint port EP module 302 of the PCIE chip device 301 through the PCIE physical link. In the PCIE EP address translation module 303, by searching the pre-configured PCIE address and bus address conversion table, it can be known that the bus address corresponding to 0x2008_0000 is 0x3000_0000.

[0068] Finally, the PCIE controller EP module 302 writes the data 0xA8 to the interconnect bus 304 at the address 0x3000_0000. The interconnect bus 304 sends the bus write request of the address to the SEC module 306, and the data 0xA8 is finally written into the register R0 with the register address offset of 0 in the SEC module, completing the write operation.

[0069] Through the address translation process described above, the host 101 can not only implement the write operation to the SEC module 306 in the slave PCIE chip device 301, but also the read operation to the module, and the read and write operation to the SEC module 206 in the master PCIE chip device 201. In addition, in the SEC module 306, the data calculated by the algorithm module 308 can be written to the memory area specified by the host 101 through the DMA submodule 307.

[0070] The following describes the interrupt notification process involved in the cascade technical solution used in this application:

[0071] If an interrupt is generated from the PCIE chip device, an interrupt message can be sent to the PCIE physical link through the PCIE protocol;

[0072] The main PCIE chip device receives the interrupt message through the PCIE link, and triggers an interrupt of the main PCIE chip device to respond to the interrupt.

[0073] In addition, when an interrupt is generated, it can also be determined whether the interrupt message needs to be forwarded to an external host. If necessary, the MSI-X interrupt vector number and address corresponding to the interrupt message are queried; register configuration is performed according to the MSI-X interrupt vector number and address, and after the register configuration is completed, the configured MSI-X interrupt is triggered to notify the external host.

[0074] Here, there is no limitation on how to judge whether the interrupt message needs to be forwarded. It can be judged whether the interrupt message needs to be forwarded to the external host according to at least one of the interrupt type, interrupt source and system configuration. For example, in the process of judging according to the interrupt type, since the PCIE interrupt is divided into legacy PIN (traditional pin interrupt), MSI (message signal interrupt) and other methods. In the MSI method, the interrupt information is packaged into the PCIE protocol packet, and the physical PIN pin does not need to be connected to the motherboard. At this time, the interrupt message does not need to be forwarded to the host. When judging according to the interrupt source, it can be determined which PCIE chip device generated the interrupt. If the peer application is interrupted or crashed, the FIN message may have been sent. At this time, it is necessary to judge whether it needs to be sent to the host according to the TCP protocol. The interrupt configuration of the system will also affect whether the interrupt needs to be sent to the host. For example, it is necessary to generate a start bit and configure the interrupt packet first.

[0075] Specifically, taking the MSI-X interrupt as an example, MSI-X (Extended Message Signaled Interrupts) is an interrupt mechanism that is extended on the basis of MSI. The MSI-X interrupt mechanism allows devices to use multiple independent interrupt signals, which can improve the efficiency of interrupt processing. Compared with traditional pin-based interrupts (INTx), MSI-X interrupts do not need to go through the I / O APIC to forward interrupts: the device can directly send interrupts to the CPU through PCI / PCIe Memory Write Transaction, which is more efficient. And MSI-X interrupts support multiple interrupt vectors: each PCI Function can support the allocation of multiple interrupt vectors to meet the needs of the same device having multiple different interrupt requests. The process of generating a PCIE MSI-X interrupt from the PCIE chip device 301 to notify the host 101 can be as follows Figure 5 As shown, Figure 5 A schematic diagram of the PCIE password card interrupt structure provided in the embodiment of the present application:

[0076] In the first step, when a PCIE interrupt is generated from the PCIE chip device 301, the interrupt is sent to the PCIE physical link 220 through the PCIE protocol. Subsequently, the PCIE RC module 209 in the master PCIE chip device 201 receives the PCIE protocol interrupt message and parses the message to trigger the interrupt of the master PCIE chip device 201. At this time, the CPU of the master PCIE chip device 201 executes the interrupt handler to respond to the interrupt.

[0077] Step 2: In the interrupt processing program, the software module of the PCIE interrupt conversion logic processing unit 221 will be called. This module determines whether the interrupt needs to be forwarded to the host 101 through the slave device response module 222 according to the pre-configured information. If the interrupt needs to be forwarded, the slave device response module will query and obtain the MSI-X interrupt vector number and address corresponding to the interrupt sent to the host 101. Then, the PCIE interrupt conversion module 223 performs necessary register configuration according to the MSI-X interrupt vector number and address. After the configuration is completed, the PCIE master device interrupt response software module 224 will trigger the configured MSI-X interrupt to notify the host 101.

[0078] Step 3: The MSI-X interrupt is encapsulated into a PCIE MSI-X interrupt message by the PCIE controller EP module 202, and sent to the host 101 through the PCIE bus 225. After receiving the MSI-X interrupt message, the host 101 executes the corresponding interrupt processing action to complete the interrupt processing flow.

[0079] Figure 5In the embodiment, the PCIE bus 225 is a PCIE bus connecting the master PCIE chip device with the external host 101, and the PCIE bus 220 is a PCIE bus connecting the master PCIE chip device 201 with the slave PCIE chip device.

[0080] See also Figure 6 , Figure 6 A schematic diagram of the structure of another PCIE cryptographic card provided in an embodiment of the present application, comprising Figure 6 It can be seen that the master PCIE chip device can be connected to multiple slave PCIE chip devices by configuring multiple PCIE controller root complex ports, that is, the number of PCIE controller root complex ports owned by the master PCIE chip device and the number of slave PCIE chip devices are in a one-to-one correspondence. The number of slave PCIE chip devices included in the PCIE cryptographic card is not limited here, and can be specifically set by those skilled in the art according to application needs.

[0081] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed, the steps provided in the above embodiment can be implemented. The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0082] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the system provided in the embodiment, since it corresponds to the method provided in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0083] Specific examples are used herein to illustrate the principles and implementation methods of the present application, and the description of the above embodiments is only used to help understand the method and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

[0084] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A PCIE password card, characterized in that: include: A main PCIE chip device, comprising a first PCIE endpoint port and a PCIE root complex port, wherein the first PCIE endpoint port is used to communicate with an external host; The slave PCIE chip device comprises a second PCIE endpoint port, wherein the second PCIE endpoint port is used to connect to the PCIE root complex port on the master PCIE chip device and to provide IO services to the external host through the first PCIE endpoint port on the master PCIE chip device.

2. A communication method for a PCIE cryptographic card, applied to the PCIE cryptographic card of claim 1, characterized in that: include: The PCIE cryptographic card receives read and write operation instructions from an external host through a PCIE root complex port; Performing address translation on the read / write operation instruction to determine the register address corresponding to the access address of the read / write operation instruction; Read and write operations are performed according to the register address.

3. The communication method according to claim 2, characterized in that: Performing address translation on the read and write operation instructions includes: Utilizing a first address translation module to translate the read and write operation instructions into bus-recognizable addresses; The read and write operation instructions are translated into endpoint-recognizable addresses using a second address translation module.

4. The communication method according to claim 3, characterized in that: Using the first address translation module to translate the read and write operation instructions into bus-recognizable addresses includes: The PCIE address and bus address conversion table preset in the first address translation module is searched to translate the read and write operation instructions into bus recognizable addresses.

5. The communication method according to claim 3, characterized in that: After translating the read and write operation instructions into endpoint-recognizable addresses using the second address translation module, the method further includes: Encapsulating the endpoint identifiable address and the read / write operation instruction into a PICE protocol message; The PICE protocol message is transmitted to the slave PCIE chip device through the first PCIE endpoint port of the master PCIE chip device in the PCIE cryptographic card.

6. The communication method according to claim 5, characterized in that: After the PICE protocol message is transmitted to the slave PCIE chip device through the first PCIE endpoint port of the master PCIE chip device in the PCIE cryptographic card, the method further includes: The PICE protocol message is calculated using the algorithm submodule included in the slave PCIE chip device, and is written into the memory area specified by the external host using a DMA unit.

7. The communication method according to claim 5, characterized in that: If the slave PCIE chip device generates an interrupt, the method further includes: Send the interrupt message to the PCIE physical link through the PCIE protocol; The master PCIE chip device receives the interrupt message and triggers an interrupt of the master PCIE chip device to respond to the interrupt.

8. The communication method according to claim 7, characterized in that: If the slave PCIE chip device generates an interrupt, the method further includes: Determine whether the interrupt message needs to be forwarded to an external host; If yes, query the MSI-X interrupt vector number and address corresponding to the interrupt message; Perform register configuration according to the MSI-X interrupt vector number and address; After the register configuration is completed, the configured MSI-X interrupt is triggered to notify the external host.

9. The communication method according to claim 8, characterized in that: The determining whether the interrupt message needs to be forwarded to an external host comprises: Whether the interrupt message needs to be forwarded to an external host is determined according to at least one of an interrupt type, an interrupt source, and a system configuration.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 2 to 9 are implemented.