Command information processing method and device, storage medium and electronic device
By determining the target variable-length command format for command information in the HBDIMM system and dynamically adjusting the command format length, the problem that the fixed-length command format in the prior art cannot handle complex command information, and the command information processing efficiency of the memory interface is improved.
Patent Information
- Application Number
- CN202311101657.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-29
- Publication Date
- 2025-03-07
AI Technical Summary
In the prior art, the command information between the register clock buffer and the data buffer in the HBDIMM system cannot be effectively processed through a fixed-length command format, especially the command information such as pseudo-channel, pseudo-channel/channel/sub-channel ID, rank ID and burst length.
By determining the command type of command information to be executed, determining the target variable-length command format that matches it from the preset command format, converting the command information to be executed, and obtaining a target command that allows dynamic adjustment of the length.
It realizes dynamically adjusting the length of the command format when the command information is interacted between different interfaces, improving the efficiency of command information processing in the memory interface, and solving the problem that the fixed-length command format cannot handle complex command information.
Smart Images

Figure CN119576408A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of memory, and more specifically, to a method and device for processing command information, a storage medium, and an electronic device. Background Art
[0002] In the related art, the current interface between the register clock buffer (RCD) and the data buffer (DB) is the data buffer control bus, which has a fixed-length command format and is suitable for communication between the RCD and the DB without the concept of pseudo-channel / sub-channel.
[0003] In an HBDIMM system, the host CPU can send consecutive (back-to-back) commands to two PCs, and the RDCD receives the second command during the process of the previous command. A fixed long command format cannot handle it efficiently because the RDCD must decide the command content when receiving the first command and cannot change it later. In addition, the commands to the two pseudo-channels in the same channel can be independent, which means they can be back-to-back, merged, or interleaved. This poses a challenge to the interface between the RDCD and the CDB, which needs to handle command information such as pseudo-channels, pseudo-channel / channel / sub-channel IDs, rank IDs, and burst lengths. But the above command information cannot be effectively processed using the current fixed-length command format.
[0004] In view of the problem in the related art that command information cannot be processed through a fixed-length command format, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present application provide a method and device for processing command information, a storage medium, and an electronic device, so as to at least solve the problem that the command information cannot be processed through a fixed-length command format in the related art.
[0006] According to one embodiment of the present application, a method for processing command information is provided, including: determining a command type of command information to be executed; determining a target variable-length command format that matches the command type from a preset command format; and converting the command information to be executed using the target variable-length command format to obtain a target command that allows dynamic length adjustment.
[0007] In an embodiment of the present application, after determining a target variable-length command format that matches the command type from a preset command format, the method further includes: determining a flag bit in the target variable-length command format, wherein the flag bit is used to indicate whether the next command information associated with the command information to be executed allows dynamic length adjustment; and determining the descriptive information to be added after the flag bit based on the byte content corresponding to the command information to be executed.
[0008] In an embodiment of the present application, the descriptive information to be added after the flag bit is determined based on the byte content corresponding to the command information to be executed, including: when it is determined that the command information to be executed is a read command in the data buffer control bus protocol, determining to set the flag bit in the last command cycle corresponding to the target command obtained by converting the command information to be executed; when it is determined that the flag bit exists in the target command, identifying the data processing operation corresponding to the byte content, and adding the descriptive information corresponding to the target processing operation that cannot be carried in the target command to the end of the target command.
[0009] In an embodiment of the present application, it is determined that the flag bit is set after the last command cycle corresponding to the target command obtained by converting the command information to be executed, and the above method also includes: identifying the character value corresponding to the short bit in the target command, wherein the character value is used to indicate the command length of the current target command; when the current target command is a short command type, allowing the decoder in the combined data buffer to continue decoding other commands transmitted after the target command; when the current target command is a long command type, determining that the decoder in the combined data buffer stops decoding other commands transmitted after the target command, and re-detecting the target command information to be executed whose command type is a header command.
[0010] In an embodiment of the present application, the descriptive information added after the flag bit is determined based on the byte content corresponding to the command information to be executed, including: when it is determined that the command information to be executed is a continuous command of the interface between the register division clock driver and the combined data buffer, it is determined that the flag bit is set in the first command cycle corresponding to the target command converted from the command information to be executed; when it is determined that the register division clock driver sends a second command to the data buffer, it is allowed to adjust the bit value corresponding to the flag bit, wherein the bit value is used to indicate the read format of the current target command of the combined data buffer.
[0011] In an embodiment of the present application, the above-mentioned continuous command includes at least one of the following command information: pseudo-channel coding corresponding to the interface between the register-divided clock driver and the combined data buffer, rank coding corresponding to the interface between the register-divided clock driver and the combined data buffer, and burst length corresponding to the transmission command in the interface between the register-divided clock driver and the combined data buffer.
[0012] In an embodiment of the present application, after the target variable-length command format is used to convert the command information to be executed to obtain a target command that allows dynamic length adjustment, the method further includes: determining a command length corresponding to the target command, wherein the command length is used to indicate a command field corresponding to a completed read operation; and determining that the target command is a valid command when the command length is greater than a preset threshold.
[0013] According to another embodiment of the present application, a command information processing device is also provided, including: a first determination module, used to determine the command type of the command information to be executed; a second determination module, used to determine a target variable-length command format that matches the command type from a preset command format; and a conversion module, used to use the target variable-length command format to convert the command information to be executed to obtain a target command that allows dynamic adjustment of the length.
[0014] According to another embodiment of the present application, a storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0015] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0016] Through the present application, after determining the command type of the command information to be executed, a target variable-length command format matching the command type is determined from a preset command format; the command information to be executed is converted using the target variable-length command format to obtain a target command that allows dynamic length adjustment. By adopting the above-mentioned technical scheme, different variable-length command formats are determined for different command information, and then when command information is exchanged between different interfaces through command information, the command information with a changed command format can be used to allow the corresponding information receiver to promptly determine the dynamic changes of the command information during the transmission of the command information, so that the processing efficiency of the command information such as the pseudo-channel, pseudo-channel / channel / sub-channel ID, rank ID and burst length in the corresponding memory is greatly improved. By adopting the above-mentioned technical scheme, the problem of being unable to process command information through a fixed-length command format in the related technology is solved, and the processing efficiency of the command information in the memory interface is improved by dynamically adjusting the command format length corresponding to the command information. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0018] Figure 1 This is a hardware structure block diagram of a mobile terminal for monitoring a smart network card according to an embodiment of the present application;
[0019] Figure 2 is a flowchart of a method for processing command information according to an embodiment of the present application;
[0020] Figure 3 is a structural block diagram of the processing of command information according to an embodiment of the present application;
[0021] Figure 4 It is a structural block diagram of a computer system of an optional electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0022] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0024] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 1 is a hardware structure block diagram of a mobile terminal for monitoring a smart network card according to an embodiment of the present application. Figure 1 As shown, the mobile terminal 10 may include one or more (only one is shown in the figure) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0025] The memory 104 can be used to store software programs and modules of application software, such as program instructions / modules corresponding to the monitoring of the smart network card in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal 10 via a network. Examples of the above-mentioned network may include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0026] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 may include a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0027] In this embodiment, a method for processing command information is provided. Figure 2 is a flowchart of a method for processing command information according to an embodiment of the present application. Figure 2 As shown, the process includes the following steps:
[0028] Step S202, determining the command type of the command information to be executed;
[0029] Step S204, determining a target variable-length command format matching the command type from preset command formats;
[0030] Step S206: convert the to-be-executed command information using the target variable-length command format to obtain a target command that allows for dynamic length adjustment.
[0031] Through the above-mentioned technical scheme of the present application, after determining the command type of the command information to be executed, determine the target variable-length command format that matches the command type from the preset command format; use the target variable-length command format to convert the command information to be executed to obtain a target command that allows dynamic length adjustment. By adopting the above-mentioned technical scheme, by determining different variable-length command formats for different command information, when command information is exchanged between different interfaces, the command information with a changed command format can be used to allow the corresponding information receiver to promptly determine the dynamic changes of the command information during the transmission of the command information, so that the processing efficiency of the command information such as the pseudo-channel, pseudo-channel / channel / sub-channel ID, rank ID and burst length in the corresponding memory is greatly improved. By adopting the above-mentioned technical scheme, the problem of being unable to process command information through a fixed-length command format in the related technology is solved, and the processing efficiency of command information in the memory interface is improved by dynamically adjusting the command format length corresponding to the command information.
[0032] In an optional embodiment, after determining a target variable-length command format that matches the command type from a preset command format, the method further includes: determining a flag bit in the target variable-length command format, wherein the flag bit is used to indicate whether the next command information associated with the command information to be executed allows dynamic length adjustment; and determining the descriptive information to be added after the flag bit based on the byte content corresponding to the command information to be executed.
[0033] In other words, after determining the target variable-length command format corresponding to the command information to be executed, in order to ensure the interaction efficiency of the command information to be executed between different interfaces, so that the recipient of the command information can clearly know the command format that needs to be guaranteed for other command information to be executed that appears after the command information to be executed, the flag bit in the current target variable-length command format is determined in the target variable-length command format corresponding to the command information to be executed. By setting the characters in the flag bit, the length of the target command corresponding to the command information to be executed can be adjusted according to the amount of information present in the command information to be executed, so that the target command can be flexibly changed according to the usage.
[0034] Optionally, the number of variable command lengths of the target variable length command format may be 2 or more, that is, at least two commands may be carried by one target variable length command format. In addition, the flag bit in the last command byte of the current command length indicates whether the next command length is enabled.
[0035] In an optional embodiment, there are multiple ways to determine the description information added after the flag bit according to the byte content corresponding to the command information to be executed. In an optional embodiment, the step is performed by the following steps:
[0036] Step 32: when it is determined that the command information to be executed is a read command in the data buffer control bus protocol, determine to set the flag bit in the last command cycle corresponding to the target command obtained by converting the command information to be executed;
[0037] Step 34: When it is determined that the flag bit exists in the target command, identify the data processing operation corresponding to the byte content, and add the descriptive information corresponding to the target processing operation that cannot be carried in the target command to the end of the target command.
[0038] It can be understood that the BCOM_MRR (Mode Register Read) command in the data buffer control bus protocol is taken as an example. The BCOM_MRR command can be of two types: short command and long. The current method is to define an external register to inform the DB of the length of the BCOM_MRR command, which is not effective if the command length needs to be changed dynamically to handle different types of continuous, merged, or interleaved commands from the host. The external register must be updated every time the command length needs to be changed. Therefore, to define the command format in a variable command length format, a flag bit is defined in the last command cycle of the short command format, and the rest of the information is appended to the tail of the short format BCOM_MRR command.
[0039] An example of the command format of the optional, short-format BCOM_MRR command is shown in Table 1 below.
[0040] Table 1
[0041]
[0042] It should be noted that in the above variable command length format, the short bit SHORT is a flag bit indicating whether it is a short format or a long format. The command decoder in the CDB can choose to continue decoding the command if = 0 short, or if = 1 short, it can choose to stop the current command and start detecting a new command header. In addition, as shown in the above example, the most significant bit (MSB) in cycle 1 tells the CDB to keep decoding cycles 2-4.
[0043] In an embodiment of the present application, it is determined that the flag bit is set after the last command cycle corresponding to the target command obtained by converting the command information to be executed, and the above method also includes: identifying the character value corresponding to the short bit in the target command, wherein the character value is used to indicate the command length of the current target command; when the current target command is a short command type, allowing the decoder in the combined data buffer to continue decoding other commands transmitted after the target command; when the current target command is a long command type, determining that the decoder in the combined data buffer stops decoding other commands transmitted after the target command, and re-detecting the target command information to be executed whose command type is a header command.
[0044] In an embodiment of the present application, the descriptive information added after the flag bit is determined based on the byte content corresponding to the command information to be executed, including: when it is determined that the command information to be executed is a continuous command of the interface between the register division clock driver and the combined data buffer, it is determined that the flag bit is set in the first command cycle corresponding to the target command converted from the command information to be executed; when it is determined that the register division clock driver sends a second command to the data buffer, it is allowed to adjust the bit value corresponding to the flag bit, wherein the bit value is used to indicate the read format of the current target command of the combined data buffer.
[0045] For example, for a continuous read command with pseudo channel id, rank id and burst length, the read command of the variable length command format can be as shown in Table 2. In Table 2, the MSB combined with PC2ND in cycle 1 tells the CDB to stop decoding in cycle 1 or cycle 2. In HBDIMM, when the host sends a back-to-back read command to RDCD, RDCD is sending the 2nd command byte to DB, it can change the flag bit PC2ND_EN to inform CDB if it is a long or short read format.
[0046] Optionally, an example of the command format of the continuous read command is shown in Table 2 below.
[0047] Table 2
[0048]
[0049] In an embodiment of the present application, the above-mentioned continuous command includes at least one of the following command information: pseudo-channel coding corresponding to the interface between the register-divided clock driver and the combined data buffer, rank coding corresponding to the interface between the register-divided clock driver and the combined data buffer, and burst length corresponding to the transmission command in the interface between the register-divided clock driver and the combined data buffer.
[0050] In an embodiment of the present application, after the target variable-length command format is used to convert the command information to be executed to obtain a target command that allows dynamic length adjustment, the method further includes: determining a command length corresponding to the target command, wherein the command length is used to indicate a command field corresponding to a completed read operation; and determining that the target command is a valid command when the command length is greater than a preset threshold.
[0051] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0052] In this embodiment, a command information processing device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0053] Figure 3 is a structural block diagram of the processing of command information according to an embodiment of the present application, such as Figure 3 As shown, the device comprises:
[0054] A first determining module 32, used to determine the command type of the command information to be executed;
[0055] A second determination module 34, configured to determine a target variable-length command format matching the command type from preset command formats;
[0056] The conversion module 36 is used to convert the to-be-executed command information using the target variable-length command format to obtain a target command that allows for dynamic length adjustment.
[0057] Through the above-mentioned technical scheme of the present application, after determining the command type of the command information to be executed, determine the target variable-length command format that matches the command type from the preset command format; use the target variable-length command format to convert the command information to be executed to obtain a target command that allows dynamic length adjustment. By adopting the above-mentioned technical scheme, by determining different variable-length command formats for different command information, when command information is exchanged between different interfaces, the command information with a changed command format can be used to allow the corresponding information receiver to promptly determine the dynamic changes of the command information during the transmission of the command information, so that the processing efficiency of the command information such as the pseudo-channel, pseudo-channel / channel / sub-channel ID, rank ID and burst length in the corresponding memory is greatly improved. By adopting the above-mentioned technical scheme, the problem of being unable to process command information through a fixed-length command format in the related technology is solved, and the processing efficiency of command information in the memory interface is improved by dynamically adjusting the command format length corresponding to the command information.
[0058] Optionally, the above-mentioned device also includes: a third determination module, which is used to determine a flag bit in the target variable-length command format after determining a target variable-length command format that matches the command type from a preset command format, wherein the flag bit is used to indicate whether the next command information associated with the command information to be executed allows dynamic adjustment of the length; and determine the descriptive information added after the flag bit based on the byte content corresponding to the command information to be executed.
[0059] Optionally, the above-mentioned third determination module is also used to determine that the flag bit is set in the last command cycle corresponding to the target command converted from the command information to be executed when it is determined that the command information to be executed is a read command in the data buffer control bus protocol; when it is determined that the flag bit exists in the target command, identify the data processing operation corresponding to the byte content, and add the descriptive information corresponding to the target processing operation that cannot be carried in the target command to the end of the target command.
[0060] In an embodiment of the present application, the above-mentioned third determination module also includes: an identification unit, used to determine that the flag bit is set after the last command cycle corresponding to the target command obtained by converting the command information to be executed, and identify the character value corresponding to the short bit in the target command, wherein the character value is used to indicate the command length of the current target command; when the current target command is a short command type, allowing the decoder in the combined data buffer to continue decoding other commands transmitted after the target command; when the current target command is a long command type, determining that the decoder in the combined data buffer stops decoding other commands transmitted after the target command, and re-detecting the target command information to be executed whose command type is a header command.
[0061] In an embodiment of the present application, the above-mentioned third determination module is also used to determine that the flag bit is set in the first command cycle corresponding to the target command converted from the command information to be executed when it is determined that the command information to be executed is a continuous command of the interface between the register division clock driver and the combined data buffer; when it is determined that the register division clock driver sends a second command to the data buffer, it is allowed to adjust the corresponding bit value of the flag bit, wherein the bit value is used to indicate the reading format of the current target command of the combined data buffer.
[0062] In an embodiment of the present application, the above-mentioned continuous command includes at least one of the following command information: pseudo-channel coding corresponding to the interface between the register-divided clock driver and the combined data buffer, rank coding corresponding to the interface between the register-divided clock driver and the combined data buffer, and burst length corresponding to the transmission command in the interface between the register-divided clock driver and the combined data buffer.
[0063] In an embodiment of the present application, the above-mentioned device includes: a fourth determination module, which is used to convert the command information to be executed using the target variable-length command format, and after obtaining a target command that allows dynamic adjustment of the length, determine the command length corresponding to the target command, wherein the command length is used to indicate the command field corresponding to the completion of a read operation; when the command length is greater than a preset threshold, the target command is determined to be a valid command.
[0064] An embodiment of the present application further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0065] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:
[0066] S1, determining the command type of the command information to be executed;
[0067] S2, determining a target variable-length command format matching the command type from preset command formats;
[0068] S3, converting the to-be-executed command information using the target variable-length command format to obtain a target command that allows for dynamic length adjustment.
[0069] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
[0070] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program / instruction, the computer program / instruction comprising a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit 801, various functions provided by the embodiments of the present application are executed. The above serial numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0071] Figure 4 The computer system structure block diagram of the electronic device used to implement the embodiment of the present application is schematically shown. Figure 4 As shown, the computer system 800 includes a central processing unit 801 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 802 (ROM) or the program loaded from the storage part 808 to the random access memory 803 (RAM). Various programs and data required for system operation are also stored in the random access memory 803. The central processing unit 801, the read-only memory 802 and the random access memory 803 are connected to each other through a bus 804. The input / output interface 805 (Input / Output interface, i.e., I / O interface) is also connected to the bus 804.
[0072] The following components are connected to the input / output interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a local area network card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the input / output interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed so that a computer program read therefrom is installed into the storage section 808 as needed.
[0073] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processor 801, various functions defined in the system of the present application are executed.
[0074] It should be noted that Figure 4 The computer system 800 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0075] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0076] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0077] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0078] S1, determining the command type of the command information to be executed;
[0079] S2, determining a target variable-length command format matching the command type from preset command formats;
[0080] S3, converting the to-be-executed command information using the target variable-length command format to obtain a target command that allows for dynamic length adjustment.
[0081] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0082] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0083] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for processing command information, characterized in that: include: Determine the command type of the command information to be executed; Determine a target variable-length command format matching the command type from preset command formats; The target variable-length command format is used to convert the command information to be executed to obtain a target command that allows dynamic length adjustment.
2. The method for processing command information according to claim 1, characterized in that: After determining a target variable-length command format matching the command type from a preset command format, the method further includes: Determine a flag bit in the target variable-length command format, wherein the flag bit is used to indicate whether the next command information associated with the to-be-executed command information allows for dynamic length adjustment; The description information added after the flag bit is determined according to the byte content corresponding to the command information to be executed.
3. The method for processing command information according to claim 2, characterized in that: Determining the description information added after the flag bit according to the byte content corresponding to the command information to be executed, including: In the case where it is determined that the command information to be executed is a read command in the data buffer control bus protocol, determining to set the flag bit to the last command cycle corresponding to the target command obtained by converting the command information to be executed; When it is determined that the flag bit exists in the target command, the data processing operation corresponding to the byte content is identified, and the descriptive information corresponding to the target processing operation that cannot be carried in the target command is added to the end of the target command.
4. The method for processing command information according to claim 3, characterized in that: Determining to set the flag bit after the last command cycle corresponding to the target command obtained by converting the command information to be executed, the method further includes: Identify the character value corresponding to the short position in the target command, wherein the character value is used to indicate the command length of the current target command; In the case where the current target command is a short command type, allowing the decoder in the combined data buffer to continue decoding other commands transmitted after the target command; In the case that the current target command is of a long command type, it is determined that the decoder in the combined data buffer stops decoding other commands transmitted after the target command, and re-detects the target to-be-executed command information whose command type is a header command.
5. The method for processing command information according to claim 2, characterized in that: Determining the description information added after the flag bit according to the byte content corresponding to the command information to be executed, including: In the case where it is determined that the command information to be executed is a continuous command of the interface between the register division clock driver and the combined data buffer, determining to set the flag bit to the first command cycle corresponding to the target command obtained by converting the command information to be executed; In the case where it is determined that the register division clock driver sends a second command to the data buffer, it is allowed to adjust the bit value corresponding to the flag bit, wherein the bit value is used to indicate the read format of the current target command of the combined data buffer.
6. The method for processing command information according to claim 5, characterized in that: The continuous command includes at least one of the following command information: Pseudo-channel coding corresponding to the interface between the register-divided clock driver and the combined data buffer, rank coding corresponding to the interface between the register-divided clock driver and the combined data buffer, and burst length corresponding to the transmission command in the interface between the register-divided clock driver and the combined data buffer.
7. The method for processing command information according to claim 1, characterized in that: After converting the to-be-executed command information using the target variable-length command format to obtain a target command that allows for dynamic length adjustment, the method further includes: Determine a command length corresponding to the target command, wherein the command length is used to indicate a command field corresponding to completing a read operation; When the command length is greater than a preset threshold, the target command is determined to be a valid command.
8. A command information processing device, characterized in that: include: A first determination module, used to determine the command type of the command information to be executed; A second determination module, used to determine a target variable-length command format matching the command type from preset command formats; The conversion module is used to convert the to-be-executed command information using the target variable-length command format to obtain a target command that allows for dynamic length adjustment.
9. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 7.