Method and device for caching message data
A message data and caching technology, applied in the field of data communication, can solve the problems of time-consuming, slow storage, and low bandwidth utilization of storage address allocation, so as to improve cache speed, reduce preparation time, and improve bandwidth utilization. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0039] see figure 1 , figure 1 It is a schematic flowchart of a message data caching method provided in Embodiment 1 of the present invention. Among them, such as figure 1 As shown, the message data caching method may include the following steps:
[0040] S101. When a burst write instruction is received, identify the message type of the received message data. The message data caching method provided by the present invention is applied to the data storage of the FPGA board. Wherein, the external storage block is an external storage block of the FPGA board, and the built-in storage block is a storage block inside the FPGA board.
[0041] In the embodiment of the present invention, the external storage block can be further divided into a message storage area and a descriptor storage area. Wherein, the message storage area can be further divided into multiple storage areas according to different message types, and each message type corresponds to a storage area. The message ...
Embodiment 2
[0071] see figure 2 , figure 2 It is a schematic flowchart of a message data caching method provided in Embodiment 2 of the present invention. Among them, such as figure 2 As shown, the message data caching method may include the following steps:
[0072] S201. When a burst write instruction is received, identify the message type of the received message data.
[0073] S202. Determine whether the current usage of the buffer space corresponding to the message type meets the preset capacity, if not, perform steps S204 to S206; if yes, perform step S203.
[0074] S203. Discard the packet data, and prompt that the storage is full.
[0075] In the embodiment of the present invention, the user can set the preset capacity of the cache space corresponding to each message type, and when it is judged that the current usage of the cache space corresponding to the message type does not meet the preset capacity, the message is automatically discarded. text data.
[0076] In the emb...
Embodiment 3
[0092] see image 3 , image 3 It is a schematic structural diagram of a device for buffering message data provided by Embodiment 3 of the present invention. Among them, such as image 3 As shown, the message data cache device includes:
[0093] The identification and judgment module 301 is configured to identify the message type of the received message data when a burst write instruction is received, and determine whether the current usage of the buffer space corresponding to the message type meets the preset capacity.
[0094] The descriptor generation module 302 is used to determine that the current usage of the cache space meets the preset capacity in the identification judgment module 301, and generate a message descriptor that matches the message data. The message descriptor includes a cache physical first address and a message descriptor. The packet length of the text data.
[0095] The storage module 303 is configured to store the message descriptor in the built-in...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


