DDR time sequence parameter measurement method, device and system, medium and product
By analyzing and converting the globally unified designed command format in the DDR timing parameter measurement system, the problem of complexity of measurement schemes of different DDR chip types is solved, and the unified measurement of DDR timing parameters is realized, which simplifies the process and reduces hardware resource consumption.
Patent Information
- Application Number
- CN202411070694.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Due to the differences in different DDR chip types, the existing DDR timing parameter measurement scheme cannot achieve unified measurement with the exact same measurement module, resulting in complex measurement process and high hardware resource consumption.
By sending globally unified designed timing parameter measurement commands to the measured DDR chip through the DDR controller and DFI interfaces, analyzing the command format, and converting it into information required for unified measurement, measuring timing parameter time difference or signal time difference to the measured DDR chip through the DDR controller and DFI interface, the command format is analyzed, and the command format is converted into information required for unified measurement is measured, and the timing parameter time difference or signal time difference is measured. , realize unified measurement of different DDR chip types.
It realizes the use of exactly the same measurement module on different DDR chip types for DDR timing parameters, simplifies the measurement process, reduces the hardware resource requirements, and has good scalability and versatility.
Smart Images

Figure CN119007797A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of DDR chip testing, and in particular relates to a DDR timing parameter measurement method, device, system, medium and product. Background Art
[0002] DDR (Double Data Rate SDRAM, where SDRAM is the abbreviation of Synchronous Dynamic Random Access Memory) is a type of memory. DDR timing parameters refer to the time interval between commands or the time interval between commands and signals. For example, the tRAS (Active to Precharge Delay) parameter refers to the time interval from the activation command to the precharge command; the tCL parameter refers to the time interval between the read command and the read data signal.
[0003] At present, when measuring DDR timing parameters on the DFI (full name DDY PHY Interface, which defines the relevant signals, timing parameters and configurable function parameters between the DDR controller MC and the port physical layer PHY, all of which are used for transmission between MC and PHY) interface, due to the differences between different DDR chip types, they need to be processed separately. There is no unified DDR timing parameter measurement solution, which makes the measurement process more complicated. The differences between the above-mentioned different DDR chip types are specifically manifested in the following points:
[0004] (1) Different internal structures, that is, some DDR chips only have a storage matrix (Bank, which is a storage area in DDR that can be selected individually and read and written. It is composed of a group of storage units. Each storage unit can store a data bit, just like a large square grid array. This square grid array has many columns and many rows. If you want to access a grid - that is, the basic storage unit, you only need to determine which row and which column it is) but no storage matrix group (BankGroup, which is to organize multiple storage matrices Bank into a group). In addition, in DDR chips with storage matrix groups, the number of storage matrices in each storage matrix group is different; for example: LPDDR4 chips have no storage matrix group, only a fixed 8 storage matrices; DDR5 chips have a maximum of 8 storage matrix groups and each storage matrix group has 2 to 4 storage matrices; DDR4 chips have a maximum of 4 storage matrix groups and each storage matrix group has 4 storage matrices, and so on. Many DDR timing parameters involve storage matrices. For example, a storage matrix group of a DDR5 chip has four storage matrices, which are marked with bank0 to bank3. The time interval from the activation command to the precharge command for a bank is called tRAS. If a unified DDR timing parameter measurement scheme is designed according to the maximum number of storage matrix groups in mainstream DDR chips (specifically 8, corresponding to DDR5 chips) and the maximum number of storage matrices (specifically 16, corresponding to LPDDR5 chips), 8×16=128 separate hardware resources are required (that is, each storage matrix needs to occupy an independent hardware resource), so more hardware resources are consumed. In addition, the maximum number of storage matrices in different types of DDR chips may also be different.
[0005] (2) The same type of commands have different scopes of action on different memory matrices, such as refresh commands and precharge commands. The refresh commands of DDR5 chips are divided into all bank refresh commands and same bank refresh commands. The former is effective for all memory matrices, while the latter is effective for all memory matrices with the same group number in all memory matrix groups. LPDDR4 chips have all bank refresh commands and per bank refresh commands (which are effective for a single memory matrix), but no same bank refresh commands. DDR4 chips only have all bank refresh commands.
[0006] It can be seen that the timing parameter measurement processes of different DDR chips are not exactly the same, and it is impossible to use exactly the same measurement module to achieve unified DDR timing parameter measurement. Therefore, how to provide a new DDR timing parameter measurement solution that is compatible with all types of DDR chips, so that the measurement solution is simple and universal, and has good scalability and versatility, is a topic that technicians in this field urgently need to study. Summary of the invention
[0007] The purpose of the present invention is to provide a DDR timing parameter measurement method, device, system, computer-readable storage medium and computer program product to solve the problem that the existing DDR timing parameter measurement scheme cannot use exactly the same measurement module to achieve unified DDR timing parameter measurement due to the differences in different DDR chip types, resulting in a more complicated measurement process.
[0008] In order to achieve the above object, the present invention adopts the following technical solutions:
[0009] In a first aspect, a DDR timing parameter measurement method is provided, which is performed by a timing parameter measurement module of a DDR timing parameter measurement system, wherein the DDR timing parameter measurement system further comprises a processor, a DDR controller, a DFI interface, and a port physical layer for connecting a DDR chip under test, wherein the processor, the DDR controller, the DFI interface, and the port physical layer are connected in sequence, and the DFI interface is also connected to the timing parameter measurement module;
[0010] The DDR timing parameter measurement method comprises:
[0011] In the process where the processor sends a timing parameter measurement command to the DDR chip under test through the DDR controller, the DFI interface and the port physical layer in sequence, parsing the timing parameter measurement command passing through the DFI interface, wherein the timing parameter measurement command adopts a command format designed globally and uniformly for all types of DDR chips, and the all types of DDR chips include the DDR chip under test;
[0012] Converting the parsed result of the timing parameter measurement command into unified measurement information required for DDR timing parameter measurement, wherein the unified measurement information includes command type, command range and command object designed globally and uniformly for all types of DDR chips;
[0013] The information required for the unified measurement is used to measure the time difference between two consecutive timing parameter measurement commands or the time difference between the timing parameter measurement command and a DFI interface signal, and the measured time difference is output as the DDR timing parameter of the DDR chip under test.
[0014] Based on the above invention, a new DDR timing parameter measurement scheme compatible with all types of DDR chips is provided, that is, in the process of the processor sending a timing parameter measurement command to the DDR chip under test through the DDR controller, the DFI interface and the port physical layer in sequence, the command passing through the DFI interface is first parsed to obtain a command format designed globally and uniformly for all types of DDR chips, and then the command parsing result is converted into the unified measurement information required for DDR timing parameter measurement, and finally the information is used to measure the time difference between two commands or the time difference between the command and the DFI interface signal, and the time difference is output as the DDR timing parameter. In this way, by globally and uniformly designing the command type, command range and command object of the timing parameter measurement command for all types of DDR chips, it is possible to use the same measurement module to achieve unified DDR timing parameter measurement for chips of different DDR types, thereby making the entire measurement scheme simple and universal, having good expansibility and universality, and being convenient for practical application and promotion.
[0015] In a possible design, the command format includes a command type field, a command range field and a command object field, wherein the command type field is used to record the globally unique number of the timing parameter measurement command among all commands of all types of DDR chips, the command range field is used to record that the command action scope of the timing parameter measurement command in the DDR chip under test is applicable to a single storage matrix, all storage matrices or all storage matrices with the same group sequence number in all storage matrix groups applicable to all types of DDR chips, and the command object field is used to record the storage matrix identifier of the command action object of the timing parameter measurement command in the DDR chip under test and applicable to all types of DDR chips.
[0016] In one possible design, all types of DDR chips include DDR4 chips, DDR5 chips, LPDDR4 chips and / or LPDDR5 chips.
[0017] In one possible design, the command object field includes five bits;
[0018] When the DDR chip under test is a DDR4 chip, the five bits include a fixed bit with a binary value of 0, two bits for indicating the sequence number of a storage matrix group, and two bits for indicating the sequence number within the group of the storage matrix;
[0019] When the DDR chip under test is a DDR5 chip, the five bits include three bits for indicating the serial number of the storage matrix group and two bits for indicating the serial number within the group of the storage matrix;
[0020] When the DDR chip under test is an LPDDR4 chip, the five bits include two fixed bits with a binary value of 0 and three bits for indicating the sequence number of the storage matrix;
[0021] When the DDR chip under test is an LPDDR5 chip having four memory matrix groups, the five bits include a fixed bit with a binary value of 0, two bits for indicating the sequence number of the memory matrix group, and two bits for indicating the sequence number within the memory matrix group;
[0022] When the DDR chip under test is an LPDDR5 chip having eight memory matrices, the five bits include two fixed bits having a binary value of 0 and three bits for indicating the sequence number of the memory matrix;
[0023] When the DDR chip under test is an LPDDR5 chip having sixteen memory matrices, the five bits include a fixed bit having a binary value of 0 and four bits for indicating the sequence number of the memory matrix.
[0024] In one possible design, all the commands include commands with different functions for all types of DDR chips and commands with similar functions but different scopes of action, and all the commands also include unique commands for various chips among all types of DDR chips.
[0025] In one possible design, the main commands include an activate command, a read operation command, a write operation command, a precharge command, a read operation command with automatic precharge, a write operation command with automatic precharge and / or a refresh command.
[0026] In one possible design, the command format also includes a command validity indication field and / or a command phase field, wherein the command validity indication field is used to indicate whether the timing parameter measurement command is valid, and the command phase field is used to record the phase number of the timing parameter measurement command and used for time difference measurement.
[0027] In a second aspect, a DDR timing parameter measurement device is provided, which is arranged in a timing parameter measurement module of a DDR timing parameter measurement system, wherein the DDR timing parameter measurement system further comprises a processor, a DDR controller, a DFI interface and a port physical layer for connecting a DDR chip under test, the processor, the DDR controller, the DFI interface and the port physical layer are connected in sequence, and the DFI interface is also connected to the timing parameter measurement module;
[0028] The DDR timing parameter measurement device comprises a command parsing unit, a command conversion unit and a timing parameter measurement unit which are sequentially communicatively connected;
[0029] The command parsing unit is used to parse the timing parameter measurement command passing through the DFI interface during the process in which the processor sends the timing parameter measurement command to the DDR chip under test through the DDR controller, the DFI interface and the port physical layer in sequence, wherein the timing parameter measurement command adopts a command format designed globally and uniformly for all types of DDR chips, and the all types of DDR chips include the DDR chip under test;
[0030] The command conversion unit is used to convert the parsing result of the timing parameter measurement command into unified measurement information required for DDR timing parameter measurement, wherein the unified measurement information includes command types, command ranges and command objects designed globally and uniformly for all types of DDR chips;
[0031] The timing parameter measurement unit is used to apply the information required for the unified measurement, measure the time difference between two consecutive timing parameter measurement commands or measure the time difference between the timing parameter measurement command and the DFI interface signal, and output the measured time difference as the DDR timing parameter of the DDR chip under test.
[0032] In a third aspect, the present invention provides a DDR timing parameter measurement system, comprising a processor, a DDR controller, a DFI interface, a timing parameter measurement module and a port physical layer for connecting a DDR chip under test, wherein the processor, the DDR controller, the DFI interface and the port physical layer are connected in sequence, and the DFI interface is also connected to the timing parameter measurement module;
[0033] The timing parameter measurement module is used to execute the DDR timing parameter measurement method as described in the first aspect or any possible design of the first aspect.
[0034] In a fourth aspect, the present invention provides a computer-readable storage medium having instructions stored thereon. When the instructions are executed on a computer, the DDR timing parameter measurement method as described in the first aspect or any possible design of the first aspect is executed.
[0035] In a fifth aspect, the present invention provides a computer program product, including a computer program or instructions, which, when executed by a computer, implements the DDR timing parameter measurement method as described in the first aspect or any possible design of the first aspect.
[0036] Beneficial effects of the above scheme:
[0037] (1) The present invention creatively provides a new DDR timing parameter measurement scheme that is compatible with all types of DDR chips. That is, when the processor sends a timing parameter measurement command to the DDR chip under test through the DDR controller, the DFI interface and the port physical layer in sequence, the command passing through the DFI interface is first parsed to obtain a command format that is globally and uniformly designed for all types of DDR chips. The command parsing result is then converted into uniform measurement information required for DDR timing parameter measurement. Finally, the information is used to measure the time difference between two commands or the time difference between a command and a DFI interface signal, and the time difference is output as a DDR timing parameter. In this way, by globally and uniformly designing the command type, command range and command object of the timing parameter measurement command for all types of DDR chips, it is possible to use the same measurement module to achieve uniform DDR timing parameter measurement for chips of different DDR types. This makes the entire measurement scheme simple and universal, with good expansibility and universality, and convenient for practical application and promotion. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present invention 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 some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 A flowchart of a DDR timing parameter measurement method provided in an embodiment of the present application.
[0040] Figure 2 A schematic diagram of the structure of a DDR timing parameter measurement device provided in an embodiment of the present application.
[0041] Figure 3 A schematic diagram of the structure of a DDR timing parameter measurement system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in combination with the drawings and the description of the embodiments or the prior art. Obviously, the following description of the structures of the drawings is only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these embodiments without creative work. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention.
[0043] It should be understood that although the terms first and second, etc. may be used herein to describe various objects, these objects should not be limited by these terms. These terms are only used to distinguish one object from another object. For example, a first object can be referred to as a second object, and similarly, a second object can be referred to as a first object without departing from the scope of the exemplary embodiments of the present invention.
[0044] It should be understood that the term "and / or" that may appear in this document is merely a description of the association relationship between associated objects, indicating that there may be three relationships. For example, A and / or B can indicate three situations: A exists alone, B exists alone, or A and B exist at the same time. For another example, A, B and / or C can indicate the existence of any one of A, B and C or any combination of them. The term " / and" that may appear in this document describes another type of association object relationship, indicating that there may be two relationships. For example, A / and B can indicate two situations: A exists alone or A and B exist at the same time. In addition, the character " / " that may appear in this document generally indicates that the previous and next associated objects are in an "or" relationship.
[0045] Example:
[0046] like Figure 1 As shown, the DDR timing parameter measurement method provided in the first aspect of this embodiment can be, but is not limited to, executed by a timing parameter measurement module of a DDR timing parameter measurement system having certain computing resources, wherein the DDR timing parameter measurement system further includes, but is not limited to, a processor (Central Processing Unit, CPU), a DDR controller (Memory Controller, MC), a DFI interface, and a port physical layer (Port Physical Layer, PHY) for connecting a DDR chip under test (which can be a single chip or a chipset), etc. The processor, the DDR controller, the DFI interface, and the port physical layer are connected in sequence, and the DFI interface is also connected to the timing parameter measurement module. The specific structure of the DDR timing parameter measurement system is as follows Figure 3As shown, the processor, the DDR controller, the DFI interface and the port physical layer are all conventional configurations in the existing DDR timing parameter measurement scheme; specifically, the processor is used for but not limited to generating commands for timing parameter measurement (such as activation commands, read operation commands, write operation commands, precharge commands, read operation commands with automatic precharge, write operation commands with automatic precharge and / or refresh commands, etc.) and signals for timing parameter measurement, and the DDR controller is used for but not limited to sending the generated commands / signals to the port physical layer through the DFI interface, so that the port physical layer converts these commands / signals into physical signals that directly access the DDR chip under test, so as to achieve the purpose of testing whether the DDR chip under test is functioning normally. In addition, the DDR chip under test is specifically but not limited to a DDR4 chip, a DDR5 chip, a LPDDR4 chip or a LPDDR5 chip, etc.
[0047] like Figure 1 As shown, the DDR timing parameter measurement method may include but is not limited to the following steps S1 to S3.
[0048] S1. In the process where the processor sends a timing parameter measurement command to the DDR chip under test via the DDR controller, the DFI interface and the port physical layer in sequence, the timing parameter measurement command passing through the DFI interface is parsed, wherein the timing parameter measurement command adopts a command format that is globally and uniformly designed for all types of DDR chips, and the all types of DDR chips include the DDR chip under test.
[0049] In step S1, the timing parameter measurement command refers to the command used in timing parameter measurement, that is, the command used in the actual control process of the DDR chip, and there is no command specifically set for timing measurement; for example, when performing tRAS parameter measurement, the former command of the two timing parameter measurement commands is an activation command, and the latter command is a precharge command. Since the timing parameter measurement command adopts a command format designed globally and uniformly for all types of DDR chips, it can face the differences between different types of DDR chips and use exactly the same measurement module to achieve unified DDR timing parameter measurement. Specifically, the command format includes but is not limited to a command type field, a command range field, and a command object field, wherein the command type field is used to record the globally unique number of the timing parameter measurement command among all commands of all types of DDR chips, the command range field is used to record the scope of the command for timing parameter measurement in the DDR chip under test as a single storage matrix, all storage matrices, or all storage matrices with the same group sequence number in all storage matrix groups applicable to all types of DDR chips, and the command object field is used to record the storage matrix identifier of the command action object of the timing parameter measurement command in the DDR chip under test and applicable to all types of DDR chips. In addition, all types of DDR chips specifically include but are not limited to mainstream DDR chips such as DDR4 chips, DDR5 chips, LPDDR4 chips, and / or LPDDR5 chips; the two commands for timing parameter measurement before and after can be two commands that are adjacent in timing, or two commands that are not adjacent in timing.
[0050] In the step S1, in order to achieve the purpose of globally uniquely encoding the timing parameter measurement commands in all commands of all types of DDR chips, preferably, all the commands include but are not limited to commands with different functions for all types of DDR chips and commands with similar functions but different scopes of action, and all the commands also include but are not limited to commands unique to various chips in all types of DDR chips, that is, commands with different functions for all types of DDR chips, commands with similar functions but different scopes of action for all types of DDR chips, and commands unique to various chips are globally uniformly encoded: commands with exactly the same functions use the same encoding, such as a read operation command, a write operation command, a read operation command with automatic precharging, and a write operation command with automatic precharging; commands with similar functions but different scopes of action use different encodings, such as an all bank refresh command, a same bank refresh command, and a per bank refresh command, respectively, use different encodings for distinction; commands unique to a certain DDR chip are separately encoded so that commands are not missed. Specifically, all the commands mainly include but are not limited to activation commands, read operation commands, write operation commands, precharge commands, read operation commands with automatic precharge, write operation commands with automatic precharge and / or refresh commands, etc.; all the commands may also include but are not limited to relatively seldom used commands such as power-off commands, impedance calibration commands, self-refresh commands and / or working mode configuration commands. In addition, the field length of the command type field may be designed to be 8 bits, for example, so as to support 256 different commands, and more bits may be designed for command extension.
[0051] In step S1, since the scope of the command includes three situations: a single storage matrix, all storage matrices, and all storage matrices with the same group sequence number in all storage matrix groups, the field length of the command range field can be designed to be 2 bits. For example, "00" is reserved for coding, "01" represents a single storage matrix, "10" represents all storage matrices with the same group sequence number in all storage matrix groups, and "11" represents all storage matrices. In addition, the command ranges of the two timing parameter measurement commands can be the same or different. For example, the timing parameter tRRD-S refers to the time difference between two consecutive activations in different storage matrix groups; tRRD-L refers to the time difference between two consecutive activations in the same storage matrix group.
[0052] In step S1, since the scope of action of the command includes three situations: a single storage matrix, all storage matrices, and all storage matrices with the same group sequence number in all storage matrix groups, the command action objects will also correspond to a certain storage matrix, all storage matrices, and all storage matrices with the same group sequence number in all storage matrix groups. Considering the internal structure differences of different DDR chip types, and in order to make the storage matrix identifier applicable to all types of DDR chips, when all types of DDR chips include but are not limited to DDR4 chips, DDR5 chips, LPDDR4 chips and / or LPDDR5 chips, the command object field includes five bits, and the detailed design is as follows: When the DDR chip under test is a DDR4 chip (which has a maximum of 4 storage matrix groups and 4 storage matrices in each storage matrix group), the five bits include a fixed bit with a binary value of 0, a bit for indicating the sequence number of the storage matrix group, and a bit for indicating the sequence number of the storage matrix group. The five bits include two bits for indicating the serial number of the storage matrix group (i.e., "00" to "11" are used to indicate different storage matrix groups) and two bits for indicating the serial number within the group of the storage matrix (i.e., "00" to "11" are used to indicate different storage matrices); when the DDR chip under test is a DDR5 chip (which has a maximum of 8 storage matrix groups and 2 to 4 storage matrices in each storage matrix group), the five bits include three bits for indicating the serial number of the storage matrix group (i.e., "000" to "111" are used to indicate different storage matrix groups) and two bits for indicating the serial number within the group of the storage matrix (i.e., "00" to "111" are used to indicate different storage matrices). When the DDR chip under test is an LPDDR4 chip (which has no storage matrix group and only has 8 fixed storage matrices), the five bits include two fixed bits with a binary value of 0 and three bits for indicating the serial number of the storage matrix (i.e., "000" to "111" are used to indicate different storage matrices, and there is no bit for indicating the serial number of the storage matrix group); When the DDR chip under test is an LPDDR5 chip with four storage matrix groups (in this case, it has 4 storage matrix groups and 4 storage matrices in each storage matrix group), the five bits include two fixed bits with a binary value of 0 and three bits for indicating the serial number of the storage matrix (i.e., "000" to "111" are used to indicate different storage matrices, and there is no bit for indicating the serial number of the storage matrix group); The five bits include a fixed bit for indicating the serial number of the storage matrix group (i.e., "00" to "11" are used to indicate different storage matrix groups) and two bits for indicating the serial number within the storage matrix group (i.e., "00" to "11" are used to indicate different storage matrices); when the DDR chip under test is an LPDDR5 chip with eight storage matrices (at this time, it has no storage matrix group, only 8 fixed storage matrices), the five bits include two fixed bits with a binary value of 0 and three bits for indicating the serial number of the storage matrix (i.e., "000" to "111" are used to indicate different storage matrices);When the DDR chip under test is an LPDDR5 chip with sixteen storage matrices (it has no storage matrix group, only fixed 16 storage matrices), the five bits include a fixed bit with a binary value of 0 and four bits for indicating the serial number of the storage matrix (i.e., "0000" to "1111" are used to indicate different storage matrices); the aforementioned three different command object field designs for the LPDDR5 chip are because these three different command object field designs need to correspond one to one to the three different working modes of the LPDDR5 chip (i.e., mode 1: 4 storage matrix groups, each storage matrix group has 4 storage matrices; mode 2: 8 storage matrices, no storage matrix group; mode 3: 16 storage matrices, no storage matrix group). In this way, for the mainstream DDR chip types, the storage matrix identifier can support a maximum of 32 storage matrices, which means that only 32 separate hardware resources are needed in the new DDR timing parameter measurement scheme. Compared with the existing DDR timing parameter measurement scheme that requires 128 separate hardware resources, the required hardware resources can be greatly reduced, thereby achieving the purpose of reducing hardware costs. The chip type of the DDR chip under test can be predetermined by software configuration, so as to lock the specific command action object in the DDR chip under test: a certain storage matrix, all storage matrices, or all storage matrices with a same group serial number in all storage matrix groups based on the chip type configuration result and the specific contents of the command range field and the command object field. In addition, the timing parameter measurement module can only measure the timing parameters of the storage space corresponding to a single rank (in a computer system, the CPU usually needs a certain bit width of data for data processing, and a single memory particle may not be able to provide such a bit width, so by combining multiple memory particles into one rank, the CPU's demand for data bit width can be met; for example, if a CPU requires a 64-bit data width, and a single memory particle can only provide 4 or 8 bits, then it is necessary to combine multiple particles into one rank to provide the required 64-bit data width) / and a single CID number (which is used to identify different layers of chips in a 3D stacked DDR chip) (if the timing parameters of multiple storage spaces are to be measured at the same time, it is necessary to use and configure multiple timing parameter measurement modules); the command objects of the two timing parameter measurement commands can be the same or different. ;
[0053] In the step S1, specifically, the command format further includes but is not limited to a command validity indication field, wherein the command validity indication field is used to indicate whether the timing parameter measurement command is valid. The aforementioned validity indication field is a commonly used field in existing commands, and its field length can be conventionally designed with reference to the prior art.
[0054] S2. Convert the parsing result of the timing parameter measurement command into unified measurement information required for DDR timing parameter measurement, wherein the unified measurement information includes but is not limited to command type, command range and command object designed globally and uniformly for all types of DDR chips.
[0055] In step S2, the command type, the command range and the command object are used to lock the specific command action object in the DDR chip under test, so as to determine the measurable DDR timing parameters corresponding to the specific command action object. In addition, the specific conversion process can be implemented by existing technical means, which will not be repeated here.
[0056] S3. Apply the information required for the unified measurement to measure the time difference between the two consecutive timing parameter measurement commands or to measure the time difference between the timing parameter measurement command and the DFI interface signal, and output the measured time difference as the DDR timing parameter of the DDR chip under test.
[0057] In step S3, the DFI interface signal refers to a signal that only appears at the DFI interface, such as a dfi_wrdata_cs signal and a dfi_rddata_en signal (all of which are existing signals). The specific measurement process of the time difference may include, but is not limited to, calculating the time difference between the two timing parameter measurement commands before and after and after passing through the DFI interface (the corresponding DDR timing parameters are defined by the JEDEC protocol); or, calculating the time difference between the timing parameter measurement command and the DFI interface signal and appearing at the DFI interface (the corresponding DDR timing parameters are defined by the DFI interface protocol, and the timing parameter measurement command may appear at the DFI interface earlier than the DFI interface signal, or may appear at the DFI interface later than the DFI interface signal). For example, if the former command of the two timing parameter measurement commands before and after is an activation command, and the latter command is a precharge command, then the time difference is the tRAS parameter. For another example: the tphy_wrcslat parameter refers to the time distance from the write command to the dfi_wrdata_cs signal; the trddata_en parameter refers to the time distance from the read command to the validity of the dfi_rddata_en signal. In addition, the DFI interface signal can be conventionally identified by existing technical means; the specific output content can include but is not limited to the current value, maximum value and / or minimum value of the DDR timing parameter.
[0058] Therefore, based on the DDR timing parameter measurement method described in the above steps S1 to S3, a new DDR timing parameter measurement scheme compatible with all types of DDR chips is provided, that is, in the process of the processor sending a timing parameter measurement command to the DDR chip under test through the DDR controller, the DFI interface and the port physical layer in sequence, the command passing through the DFI interface is first parsed to obtain a command format designed globally and uniformly for all types of DDR chips, and then the command parsing result is converted into the unified measurement information required for DDR timing parameter measurement, and finally the information is used to measure the time difference between two commands or the time difference between the command and the DFI interface signal, and the time difference is output as the DDR timing parameter. In this way, by globally and uniformly designing the command type, command range and command object of the timing parameter measurement command for all types of DDR chips, it is possible to use the same measurement module to achieve unified DDR timing parameter measurement for chips of different DDR types, thereby making the entire measurement scheme simple and universal, having good expansibility and universality, and being convenient for practical application and promotion.
[0059] like Figure 2 As shown, the second aspect of this embodiment provides a virtual device for implementing the DDR timing parameter measurement method described in the first aspect, which is arranged in a timing parameter measurement module of a DDR timing parameter measurement system, wherein the DDR timing parameter measurement system further includes a processor, a DDR controller, a DFI interface, and a port physical layer for connecting a DDR chip under test, the processor, the DDR controller, the DFI interface, and the port physical layer are connected in sequence, and the DFI interface is also connected to the timing parameter measurement module;
[0060] The DDR timing parameter measurement device comprises a command parsing unit, a command conversion unit and a timing parameter measurement unit which are sequentially communicatively connected;
[0061] The command parsing unit is used to parse the timing parameter measurement command passing through the DFI interface during the process in which the processor sends the timing parameter measurement command to the DDR chip under test through the DDR controller, the DFI interface and the port physical layer in sequence, wherein the timing parameter measurement command adopts a command format designed globally and uniformly for all types of DDR chips, and the all types of DDR chips include the DDR chip under test;
[0062] The command conversion unit is used to convert the parsing result of the timing parameter measurement command into unified measurement information required for DDR timing parameter measurement, wherein the unified measurement information includes command types, command ranges and command objects designed globally and uniformly for all types of DDR chips;
[0063] The timing parameter measurement unit is used to apply the information required for the unified measurement, measure the time difference between two consecutive timing parameter measurement commands or measure the time difference between the timing parameter measurement command and the DFI interface signal, and output the measured time difference as the DDR timing parameter of the DDR chip under test.
[0064] The working process, working details and technical effects of the aforementioned device provided in the second aspect of this embodiment can be referred to the DDR timing parameter measurement method described in the first aspect, and will not be described in detail here.
[0065] like Figure 3 As shown, the third aspect of this embodiment provides a physical system for implementing the DDR timing parameter measurement method described in the first aspect, comprising a processor, a DDR controller, a DFI interface, a timing parameter measurement module, and a port physical layer for connecting the DDR chip under test, wherein the processor, the DDR controller, the DFI interface, and the port physical layer are connected in sequence, and the DFI interface is also connected to the timing parameter measurement module;
[0066] The timing parameter measurement module is used to execute the DDR timing parameter measurement method as described in the first aspect.
[0067] The working process, working details and technical effects of the aforementioned system provided in the third aspect of this embodiment can be referred to the DDR timing parameter measurement method described in the first aspect, and will not be described in detail here.
[0068] In a fourth aspect of this embodiment, there is provided a computer-readable storage medium storing instructions including the DDR timing parameter measurement method as described in the first aspect, that is, the computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the DDR timing parameter measurement method as described in the first aspect is executed. The computer-readable storage medium refers to a carrier for storing data, which may include but is not limited to computer-readable storage media such as a floppy disk, an optical disk, a hard disk, a flash memory, a USB flash drive, and / or a memory stick, and the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
[0069] The working process, working details and technical effects of the aforementioned computer-readable storage medium provided in the fourth aspect of this embodiment can be referred to the DDR timing parameter measurement method described in the first aspect, and will not be described in detail here.
[0070] A fifth aspect of this embodiment provides a computer program product, including a computer program or an instruction, wherein the computer program or the instruction, when executed by a computer, implements the DDR timing parameter measurement method as described in the first aspect. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
[0071] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A DDR timing parameter measurement method, characterized in that: The method is performed by a timing parameter measurement module of a DDR timing parameter measurement system, wherein the DDR timing parameter measurement system further comprises a processor, a DDR controller, a DFI interface and a port physical layer for connecting the DDR chip under test, the processor, the DDR controller, the DFI interface and the port physical layer are connected in sequence, and the DFI interface is also connected to the timing parameter measurement module; The DDR timing parameter measurement method comprises: In the process where the processor sends a timing parameter measurement command to the DDR chip under test through the DDR controller, the DFI interface and the port physical layer in sequence, parsing the timing parameter measurement command passing through the DFI interface, wherein the timing parameter measurement command adopts a command format designed globally and uniformly for all types of DDR chips, and the all types of DDR chips include the DDR chip under test; Converting the parsed result of the timing parameter measurement command into unified measurement information required for DDR timing parameter measurement, wherein the unified measurement information includes command type, command range and command object designed globally and uniformly for all types of DDR chips; The information required for the unified measurement is used to measure the time difference between two consecutive timing parameter measurement commands or the time difference between the timing parameter measurement command and a DFI interface signal, and the measured time difference is output as the DDR timing parameter of the DDR chip under test.
2. The DDR timing parameter measurement method according to claim 1, characterized in that: The command format includes a command type field, a command range field and a command object field, wherein the command type field is used to record the globally unique number of the timing parameter measurement command among all commands of all types of DDR chips, the command range field is used to record that the command action scope of the timing parameter measurement command in the DDR chip under test is applicable to a single storage matrix, all storage matrices or all storage matrices with the same group sequence number in all storage matrix groups applicable to all types of DDR chips, and the command object field is used to record the storage matrix identifier of the command action object of the timing parameter measurement command in the DDR chip under test and applicable to all types of DDR chips.
3. The DDR timing parameter measurement method according to claim 1, characterized in that: All types of DDR chips include DDR4 chips, DDR5 chips, LPDDR4 chips and / or LPDDR5 chips.
4. The DDR timing parameter measurement method according to claim 2, characterized in that: The command object field includes five bits; When the DDR chip under test is a DDR4 chip, the five bits include a fixed bit with a binary value of 0, two bits for indicating the sequence number of a storage matrix group, and two bits for indicating the sequence number within the group of the storage matrix; When the DDR chip under test is a DDR5 chip, the five bits include three bits for indicating the serial number of the storage matrix group and two bits for indicating the serial number within the group of the storage matrix; When the DDR chip under test is an LPDDR4 chip, the five bits include two fixed bits with a binary value of 0 and three bits for indicating the sequence number of the storage matrix; When the DDR chip under test is an LPDDR5 chip having four memory matrix groups, the five bits include a fixed bit with a binary value of 0, two bits for indicating the sequence number of the memory matrix group, and two bits for indicating the sequence number within the memory matrix group; When the DDR chip under test is an LPDDR5 chip having eight memory matrices, the five bits include two fixed bits having a binary value of 0 and three bits for indicating the sequence number of the memory matrix; When the DDR chip under test is an LPDDR5 chip having sixteen memory matrices, the five bits include a fixed bit having a binary value of 0 and four bits for indicating the sequence number of the memory matrix.
5. The DDR timing parameter measurement method according to claim 2, characterized in that: The all commands include commands with different functions for all types of DDR chips and commands with similar functions but different scopes of action, and the all commands also include unique commands for various chips in all types of DDR chips; And / or, all the commands mainly include an activation command, a read operation command, a write operation command, a precharge command, a read operation command with automatic precharge, a write operation command with automatic precharge and / or a refresh command.
6. The DDR timing parameter measurement method according to claim 2, characterized in that: The command format further includes a command validity indication field, wherein the command validity indication field is used to indicate whether the timing parameter measurement command is valid.
7. A DDR timing parameter measurement device, characterized in that: Arranged in a timing parameter measurement module of a DDR timing parameter measurement system, wherein the DDR timing parameter measurement system further comprises a processor, a DDR controller, a DFI interface and a port physical layer for connecting a DDR chip under test, the processor, the DDR controller, the DFI interface and the port physical layer are connected in sequence, and the DFI interface is also connected to the timing parameter measurement module; The DDR timing parameter measurement device comprises a command parsing unit, a command conversion unit and a timing parameter measurement unit which are sequentially communicatively connected; The command parsing unit is used to parse the timing parameter measurement command passing through the DFI interface during the process in which the processor sends the timing parameter measurement command to the DDR chip under test through the DDR controller, the DFI interface and the port physical layer in sequence, wherein the timing parameter measurement command adopts a command format designed globally and uniformly for all types of DDR chips, and the all types of DDR chips include the DDR chip under test; The command conversion unit is used to convert the parsing result of the timing parameter measurement command into unified measurement information required for DDR timing parameter measurement, wherein the unified measurement information includes command types, command ranges and command objects designed globally and uniformly for all types of DDR chips; The timing parameter measurement unit is used to apply the information required for the unified measurement, measure the time difference between two consecutive timing parameter measurement commands or measure the time difference between the timing parameter measurement command and the DFI interface signal, and output the measured time difference as the DDR timing parameter of the DDR chip under test.
8. A DDR timing parameter measurement system, characterized in that: It includes a processor, a DDR controller, a DFI interface, a timing parameter measurement module and a port physical layer for connecting the DDR chip under test, wherein the processor, the DDR controller, the DFI interface and the port physical layer are connected in sequence, and the DFI interface is also connected to the timing parameter measurement module; The timing parameter measurement module is used to execute the DDR timing parameter measurement method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores instructions, and when the instructions are executed on the computer, the DDR timing parameter measurement method as described in any one of claims 1 to 6 is executed.
10. A computer program product comprising a computer program or instructions, characterized in that The computer program or the instruction, when executed by a computer, implements the DDR timing parameter measurement method according to any one of claims 1 to 6.
Citation Information
Cited By
Configurable DDR time sequence parameter measurement method and device and storage medium
CN122493925A
A configurable DDR timing parameter measurement method and device and storage medium
CN122493925B
