[go: up one dir, main page]

CN111564175B - Impedance configuration method of memory interface and computer readable storage medium - Google Patents

Impedance configuration method of memory interface and computer readable storage medium Download PDF

Info

Publication number
CN111564175B
CN111564175B CN201910211851.3A CN201910211851A CN111564175B CN 111564175 B CN111564175 B CN 111564175B CN 201910211851 A CN201910211851 A CN 201910211851A CN 111564175 B CN111564175 B CN 111564175B
Authority
CN
China
Prior art keywords
resistance value
test
memory interface
resistance
receiver
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910211851.3A
Other languages
Chinese (zh)
Other versions
CN111564175A (en
Inventor
宋威良
张启彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Silicon Motion Inc
Original Assignee
Silicon Motion Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Silicon Motion Inc filed Critical Silicon Motion Inc
Priority to CN202210498376.4A priority Critical patent/CN114783503B/en
Priority to US16/459,933 priority patent/US11112981B2/en
Publication of CN111564175A publication Critical patent/CN111564175A/en
Application granted granted Critical
Publication of CN111564175B publication Critical patent/CN111564175B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

本发明提出一种存储器接口的阻抗配置方法,由处理单元执行,包含:将关联于第一接收器的芯片内端接电阻的第一阻值设为第一默认阻值;将关联于第二发送器的驱动可变电阻的第二阻值设为第二默认阻值;为多个测试组合执行测试,其中,每个组合包含关联于第一发送器的驱动可变电阻的第三阻值及关联于第二接收器的芯片内端接电阻的第四阻值;以及存储每个测试组合的测试结果至静态随机存取存储器的特定位置,使得校准主机可从静态随机存取存储器取得每个测试组合的测试结果,并依据测试结果决定存储器接口的阻抗设定。

Figure 201910211851

The present invention provides an impedance configuration method for a memory interface, which is executed by a processing unit and includes: setting a first resistance value of an in-chip termination resistor associated with a first receiver as a first default resistance value; setting a first resistance value associated with a second The second resistance value of the drive variable resistor of the transmitter is set to a second default resistance value; the test is performed for a plurality of test combinations, wherein each combination includes a third resistance value associated with the drive variable resistor of the first transmitter and a fourth resistance value of the on-chip termination resistor associated with the second receiver; and storing the test results of each test combination to a specific location in the SRAM, so that the calibration host can obtain each test result from the SRAM The test results of each test combination, and the impedance setting of the memory interface is determined according to the test results.

Figure 201910211851

Description

存储器接口的阻抗配置方法及计算机可读取存储介质Impedance configuration method of memory interface and computer-readable storage medium

技术领域technical field

本发明涉及通信接口,尤指一种存储器接口的阻抗配置方法及计算机可读取存储介质。The present invention relates to a communication interface, in particular to an impedance configuration method of a memory interface and a computer-readable storage medium.

背景技术Background technique

在动态随机存取存储器(Dynamic Random Access Memory DRAM)的总线的速度到达高传输率后,例如500Mb/s或更高,可能发生系统层面的信号收送问题,例如,可能从连接的对等装置(如控制器、DRAM模块等)的引脚线产生反射。上述的信号收送问题可通过校调驱动器(Driver)及芯片内端接电阻(On-Die Termination ODT)来解决。因此,本发明提出一种存储器接口的配置方法及计算机可读取存储介质,用于校调存储器接口中的驱动器及芯片内端接电阻。After the speed of the Dynamic Random Access Memory (DRAM) bus reaches a high transfer rate, such as 500Mb/s or higher, system-level signaling problems may occur, for example, from connected peer devices (such as controllers, DRAM modules, etc.) pin lines produce reflections. The above-mentioned signal transmission problem can be solved by adjusting the driver (Driver) and the on-die termination resistor (On-Die Termination ODT). Therefore, the present invention provides a configuration method of a memory interface and a computer-readable storage medium, which are used for calibrating a driver in a memory interface and an in-chip termination resistor.

发明内容SUMMARY OF THE INVENTION

有鉴于此,如何减轻或消除上述相关领域的缺失,实为有待解决的问题。In view of this, how to alleviate or eliminate the above-mentioned deficiencies in related fields is a problem to be solved.

本发明提出一种存储器接口的阻抗配置方法,该方法由处理单元执行,包含:将关联于第一接收器的芯片内端接电阻的第一阻值设为第一默认阻值;将关联于第二发送器的驱动可变电阻的第二阻值设为第二默认阻值;为多个测试组合执行测试,其中,每个组合包含关联于第一发送器的驱动可变电阻的第三阻值及关联于第二接收器的芯片内端接电阻的第四阻值;以及存储每个测试组合的测试结果至静态随机存取存储器的特定位置,使得校准主机可从静态随机存取存储器取得每个测试组合的测试结果,并依据测试结果决定存储器接口的阻抗设定。该处理单元耦接存储器接口、该静态随机存取存储器及校准接口,该存储器接口耦接存储器装置并且包含该第一发送器及该第一接收器,而该存储器装置包含该第二发送器及该第二接收器。The present invention provides an impedance configuration method for a memory interface. The method is executed by a processing unit and includes: setting a first resistance value of an on-chip termination resistor associated with a first receiver as a first default resistance value; The second resistance value of the drive variable resistor of the second transmitter is set to a second default resistance value; the tests are performed for a plurality of test combinations, wherein each combination includes a third value associated with the drive variable resistor of the first transmitter a resistance value and a fourth resistance value associated with the on-chip termination resistor of the second receiver; and storing the test results of each test combination to a specific location in the SRAM so that the calibration host can access the memory from the SRAM Obtain the test results of each test combination, and determine the impedance setting of the memory interface according to the test results. The processing unit is coupled to a memory interface, the SRAM and a calibration interface, the memory interface is coupled to a memory device and includes the first transmitter and the first receiver, and the memory device includes the second transmitter and the second receiver.

本发明还提供一种存储器接口的阻抗配置的计算机可读取存储介质,用于存储能够被处理单元执行的计算机程序,并且该计算机程序被该处理单元执行时实现以上所述的方法。The present invention also provides a computer-readable storage medium of an impedance configuration of a memory interface for storing a computer program executable by a processing unit, and the computer program when executed by the processing unit implements the method described above.

上述实施例的优点之一,通过提供给校准主机每个测试组合的测试结果,使得校准主机能够据以决定存储器接口的阻抗设定。One of the advantages of the above embodiments is that the calibration host can determine the impedance setting of the memory interface based on the test results of each test combination provided to the calibration host.

本发明的其他优点将配合以下的说明和附图进行更详细的解说。Other advantages of the present invention will be explained in more detail in conjunction with the following description and drawings.

附图说明Description of drawings

此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。The drawings described herein are used to provide further understanding of the present application and constitute a part of the present application. The schematic embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation of the present application.

图1为依据本发明实施例的校准系统示意图。FIG. 1 is a schematic diagram of a calibration system according to an embodiment of the present invention.

图2为依据本发明实施例的校准系统方框图。FIG. 2 is a block diagram of a calibration system according to an embodiment of the present invention.

图3为依据本发明实施例的存储器接口的阻抗配置的图形用户接口。3 is a graphical user interface for impedance configuration of a memory interface in accordance with an embodiment of the present invention.

图4为依据本发明实施例的存储器接口中发送器及接收器的训练方法流程图。4 is a flowchart of a training method for a transmitter and a receiver in a memory interface according to an embodiment of the present invention.

图5为依据本发明实施例的DDR4DRAM的写入训练的初始数据表示意图。FIG. 5 is a schematic diagram of an initial data table for writing training of DDR4 DRAM according to an embodiment of the present invention.

图6为依据本发明实施例的DDR4DRAM的读取训练的初始数据表示意图。FIG. 6 is a schematic diagram of an initial data table for read training of DDR4 DRAM according to an embodiment of the present invention.

图7为依据本发明实施例的写入及读取训练的方法流程图。7 is a flowchart of a method for writing and reading training according to an embodiment of the present invention.

图8显示依据本发明实施例的DDR4DRAM的写入训练的示例结果。图9为依据本发明实施例的写入训练的方法流程图。FIG. 8 shows example results of write training for DDR4 DRAM in accordance with an embodiment of the present invention. FIG. 9 is a flowchart of a method for writing training according to an embodiment of the present invention.

【附图标记列表】【List of reference numerals】

130 基板130 substrates

110 校准主机110 Calibrate the main unit

115 处理单元115 processing unit

150 控制器150 Controllers

170 存储器装置170 Memory devices

190 显示器190 monitors

210 处理单元210 processing unit

230 静态随机存取存储器230 static random access memory

250 校准接口250 Calibration Interface

270 存储器接口270 memory interface

271 物理层271 Physical layer

273 ODT档位寄存器273 ODT gear register

275 驱动档位寄存器275 Drive gear register

277 MAC层277 MAC layer

290 直接存储器访问控制器290 Direct Memory Access Controller

300 存储器校准的图形用户接口300 Graphical User Interface for Memory Calibration

310 显示方框310 Display box

330 选择按钮330 Select button

335 选择菜单335 Selection menu

350 测试进度方框350 Test Progress Box

370 开始按钮370 start button

390 测试信息方框390 Test Information Box

S410~S470 方法步骤S410~S470 Method steps

S711~S790 方法步骤S711~S790 method steps

800 定义可正常运行的阻值设定的方框800 Box defining a functioning resistance setting

800a 关联的中间阻值800a Associated Intermediate Resistance

S910~S970 方法步骤S910~S970 method steps

具体实施方式Detailed ways

以下将配合相关附图来说明本发明的实施例。在这些附图中,相同的标号表示相同或类似的组件或方法流程。The embodiments of the present invention will be described below with reference to the related drawings. In the figures, the same reference numbers refer to the same or similar components or method flows.

必须了解的是,使用于本说明书中的“包含”、“包括”等词,是用于表示存在特定的技术特征、数值、方法步骤、作业处理、组件和/或组件,但并不排除可加上更多的技术特征、数值、方法步骤、作业处理、组件、组件,或以上的任意组合。It must be understood that words such as "comprising" and "including" used in this specification are used to indicate the existence of specific technical features, values, method steps, job processes, components and/or components, but do not exclude the possibility of Plus more technical features, values, method steps, job processes, components, components, or any combination of the above.

本发明中使用如“第一”、“第二”、“第三”等词是用来修饰权利要求中的组件,并非用来表示的间具有优先权顺序,先行关系,或者是一个组件先于另一个组件,或者是执行方法步骤时的时间先后顺序,仅用来区别具有相同名字的组件。The use of words such as "first", "second" and "third" in the present invention is used to modify the components in the claims, and is not used to indicate that there is a priority order, a precedence relationship, or a component precedence Another component, or the chronological order in which method steps are executed, is only used to distinguish components with the same name.

必须了解的是,当组件描述为“连接”或“耦接”至另一组件时,可以是直接连结、或耦接至其他组件,可能出现中间组件。相反地,当组件描述为“直接连接”或“直接耦接”至另一组件时,其中不存在任何中间组件。使用于描述组件之间关系的其他语词也可类似方式解读,例如“介于”相对于“直接介于”,或者“邻接”相对于“直接邻接”等等。It must be understood that when an element is described as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element, and intervening elements may be present. In contrast, when a component is described as being "directly connected" or "directly coupled" to another component, there are no intervening components present. Other words used to describe the relationship between components can also be read in a similar fashion, such as "between" versus "directly interposed," or "adjacent" versus "directly adjoining," and the like.

参考图1,控制器150及存储器装置170可装设(mount)在基板130上,并且控制器150可通过基板130耦接或连接存储器装置170。存储器装置370可为动态随机存取存储器(Dynamic Random Access Memory DRAM等)。校准主机110耦接至控制器150,用以发出命令请求控制器150执行阻抗测试方法,接着从控制器150读取测试结果,并且将测试结果显示于显示器190,使得工程师可依据测试结果决定控制器150及存储器装置170的接口中的阻抗配置(Configurations)。或者是,于另一些实施例中,校准主机110可执行应用程序,用于解读测试结果并依据算法自动决定控制器150及存储器装置170的接口中的阻抗设定。接着,校准主机110可发出命令及决定的阻抗设定,请求控制器150执行存储器接口的阻抗设定方法。当控制器150中的处理单元210加载及执行存储器接口的阻抗设定方法的相关固件或软件程序代码时,将决定的阻抗设定写入控制器150及存储器装置170中的非易失性存储空间,作为出厂设定值。Referring to FIG. 1 , the controller 150 and the memory device 170 may be mounted on the substrate 130 , and the controller 150 may be coupled or connected to the memory device 170 through the substrate 130 . The memory device 370 may be a dynamic random access memory (Dynamic Random Access Memory DRAM, etc.). The calibration host 110 is coupled to the controller 150 for issuing commands to request the controller 150 to execute the impedance test method, and then reads the test results from the controller 150 and displays the test results on the display 190 so that the engineer can determine the control according to the test results The impedance configuration (Configurations) in the interface of the device 150 and the memory device 170 . Alternatively, in other embodiments, the calibration host 110 may execute an application program for interpreting the test results and automatically determine impedance settings in the interfaces of the controller 150 and the memory device 170 according to an algorithm. Next, the calibration host 110 may issue a command and the determined impedance setting, requesting the controller 150 to execute the impedance setting method of the memory interface. When the processing unit 210 in the controller 150 loads and executes the relevant firmware or software program code of the impedance setting method of the memory interface, the determined impedance setting is written into the non-volatile storage in the controller 150 and the memory device 170 space, as the factory default value.

参考图2,控制器150包含处理单元210,可使用多种方式实施,如使用通用硬件(例如,单处理器、具平行处理能力的多处理器、图形处理器或其他具运算能力的处理器),并且在执行量产整合系统程序(Mass Production Integrated System Program MPISP)的软件和/或固件指令时,提供之后描述的功能。控制器150可包含校准接口250,如I2C接口,用以让校准主机110通过校准接口250发送命令给处理单元210以启动并执行存储器接口的阻抗测试及设定方法。于校准完成后,校准主机110可通过校准接口250,请求直接存储器访问控制器(Direct Memory Access DMA Controller)从静态随机存取存储器(Static RandomAccess Memory SRAM)230的默认局部读取测试结果。MPISP可在控制器150出厂时存储于其中的只读存储器(Read Only Memory ROM,未显示于图2),或者由测试主机110通过校准接口250或其他接口,于开始校准前传送给控制器150。Referring to FIG. 2, the controller 150 includes a processing unit 210, which may be implemented in a variety of ways, such as using general-purpose hardware (eg, a single processor, a multiprocessor with parallel processing capabilities, a graphics processor, or other computing capable processors) ), and provides the functions described later when executing software and/or firmware instructions of the Mass Production Integrated System Program MPISP (Mass Production Integrated System Program MPISP). The controller 150 may include a calibration interface 250, such as an I2C interface, for the calibration host 110 to send commands to the processing unit 210 through the calibration interface 250 to start and execute the impedance test and setting method of the memory interface. After the calibration is completed, the calibration host 110 can request the direct memory access controller (Direct Memory Access DMA Controller) to read the test results from the default part of the static random access memory (Static Random Access Memory SRAM) 230 through the calibration interface 250 . MPISP can be stored in a Read Only Memory ROM (not shown in FIG. 2 ) in the controller 150 when it leaves the factory, or be transmitted to the controller 150 by the test host 110 through the calibration interface 250 or other interfaces before starting the calibration .

在一些实施例中,控制器170也可称为特殊应用集成电路端(Application-Specific Integrated Circuit ASIC-side),而存储器装置170可为DRAM,称为DRAM端,用于缓存在执行软件及固件指令的过程中所需要的数据,例如,变量、数据表等,以及各式各样的用户数据。存储器接口270可采用双倍数据率(Double Data Rate DDR)通信协议与DRAM通信,例如,第三代双倍数据率(DDR3)、低功耗DDR3(Low Power LPDDR3)、第四代双倍数据率(DDR4)或其他接口。存储器接口270及DRAM间的输出输入信号可包含reset、CK、CK_N、CKE、ODT、CS_N、ACT_N、BG、BA、A、DM、DQS、DQS_N、DQ_lower、DQ_upper等。In some embodiments, the controller 170 may also be referred to as an Application-Specific Integrated Circuit ASIC-side, and the memory device 170 may be a DRAM, referred to as a DRAM side, for buffering the execution of software and firmware The data required in the process of the instruction, such as variables, data tables, etc., as well as various user data. The memory interface 270 can communicate with the DRAM using a Double Data Rate DDR communication protocol, for example, the third generation double data rate (DDR3), the low power DDR3 (Low Power LPDDR3), the fourth generation double data rate (DDR3) rate (DDR4) or other interface. The input and output signals between the memory interface 270 and the DRAM may include reset, CK, CK_N, CKE, ODT, CS_N, ACT_N, BG, BA, A, DM, DQS, DQS_N, DQ_lower, DQ_upper, and the like.

存储器接口470可包含物理层(Physical Layer PHY)471,具有连接至存储器装置370的电路。DDR通信协议及关连的物理层471可提供通信的能力,用于传送命令、地址及数据等给存储器装置370以及从存储器装置370接收数据、地址及信息等。物理层471包含发送器(Transmitter)及接收器(Receiver),用以分别传送信号给存储器装置370的接收器,以及从存储器装置370的发送器接收信号。发送器(也可称为驱动器Driver)的输出端可连接可变电阻(Variable Resistance,可称为驱动可变电阻),使得处理单元210可借由改变驱动档位寄存器(Driving-stage Register)275的设定来调整驱动可变电阻的阻值,进而改变输出的驱动强度(Driving Strength)。另一方面,接收器的输入端可连接可变电阻(可称为ODT可变电阻),使得处理单元210可借由改变芯片内端接电阻档位寄存器(On-DieTermination ODT-stage Register)275的设定来调整ODT可变电阻的阻抗(Impedance)。The memory interface 470 may include a physical layer (Physical Layer PHY) 471 having circuitry connected to the memory device 370 . The DDR communication protocol and associated physical layer 471 may provide the ability to communicate for transmitting commands, addresses, and data, etc. to and receiving data, addresses, and information, etc. from memory device 370 . The physical layer 471 includes a transmitter (Transmitter) and a receiver (Receiver) for transmitting signals to the receiver of the memory device 370 and receiving signals from the transmitter of the memory device 370, respectively. The output end of the transmitter (also referred to as a driver) can be connected to a variable resistance (Variable Resistance, which can be referred to as a driving variable resistance), so that the processing unit 210 can change the driving-stage register (Driving-stage Register) 275 by changing The setting can adjust the resistance of the driving variable resistor, and then change the driving strength of the output. On the other hand, the input end of the receiver can be connected to a variable resistor (which can be called an ODT variable resistor), so that the processing unit 210 can change the on-die termination resistance stage register (On-DieTermination ODT-stage Register) 275 to adjust the impedance of the ODT variable resistor (Impedance).

驱动档位寄存器275可存储4个比特的值,如表1所示:The drive gear register 275 can store a 4-bit value, as shown in Table 1:

表1Table 1

值(十进制)value (decimal) Z目标(ohms)Z target (ohms) 00 480480 11 240240 22 160160 33 120120 44 9696 55 8080 66 68.668.6 77 6060 88 53.353.3 99 4848 1010 43.643.6 1111 4040 1212 36.936.9 1313 34.334.3 1414 3232 1515 3030

举例来说,当驱动档位寄存器275存储的值设定为0时,驱动可变电阻的阻值调整为480ohm。当驱动档位寄存器275存储的值设定为1时,驱动可变电阻的阻值调整为240ohm。其余设定对驱动可变电阻的阻值改变可依此类推,不再赘述以求简明。For example, when the value stored in the driving gear register 275 is set to 0, the resistance value of the driving variable resistor is adjusted to 480ohm. When the value stored in the drive gear register 275 is set to 1, the resistance value of the drive variable resistor is adjusted to 240ohm. The rest of the settings can be deduced by analogy to the resistance value change of the driving variable resistor, and will not be repeated for brevity.

ODT档位寄存器273可存储4个比特的值,如表2所示:The ODT gear register 273 can store 4-bit values, as shown in Table 2:

表2Table 2

Figure BDA0002000783820000071
Figure BDA0002000783820000071

Figure BDA0002000783820000081
Figure BDA0002000783820000081

举例来说,当ODT档位寄存器273存储的值设定为2时,驱动可变电阻的阻值调整为120ohm。其余设定对ODT可变电阻的阻值改变可依此类推,不再赘述以求简明。For example, when the value stored in the ODT gear register 273 is set to 2, the resistance value of the driving variable resistor is adjusted to 120ohm. The rest of the settings can be deduced by analogy to the resistance value change of the ODT variable resistor, and will not be repeated for brevity.

相对地,存储器装置170也可包含类似用于改变输出驱动强度及ODT阻抗的可变电阻设置。处理单元210可指示MAC层277通过物理层271发送命令给存储器装置170,用于改变存储器装置170中发送器的输出驱动强度及接收器的ODT阻值。Conversely, the memory device 170 may also include similar variable resistor settings for changing the output drive strength and ODT impedance. The processing unit 210 may instruct the MAC layer 277 to send a command to the memory device 170 through the physical layer 271 for changing the output driving strength of the transmitter and the ODT resistance value of the receiver in the memory device 170 .

当存储器接口470使用DDR3通信协议与存储器装置170通信时,处理单元210可指示MAC层277通过物理层271发送输出输入配置命令(I/O Configuration Command)及设定值给存储器装置170。存储器接口470可通过A5及A1信号指示存储器装置170将其中的驱动可变电阻的阻值调整至特定水平,如表3所示:When the memory interface 470 communicates with the memory device 170 using the DDR3 communication protocol, the processing unit 210 may instruct the MAC layer 277 to send an I/O Configuration Command and setting values to the memory device 170 through the physical layer 271 . The memory interface 470 can instruct the memory device 170 to adjust the resistance of the driving variable resistor to a specific level through the A5 and A1 signals, as shown in Table 3:

表3table 3

A5A5 A1A1 输出驱动器阻值Output driver resistance 00 00 RZQ/6RZQ/6 00 11 RZQ/7RZQ/7 11 00 ReservedReserved 11 11 ReservedReserved

所属技术领域人员理解RZQ为240ohm。例如,当A5及A1信号都为0时,存储器装置170将驱动可变电阻的阻值调整为40ohm(也就是RZQ/6)。当A5及A1信号分别为1及0(保留设定值)时,存储器装置170可不改变驱动可变电阻的阻值。其余设定对存储器装置170中驱动可变电阻的阻值改变可依此类推,不再赘述以求简明。此外,存储器接口470可通过A9、A6及A2信号指示存储器装置170将其中的ODT可变电阻的阻值调整至特定水平,如表4所示:Those skilled in the art understand that RZQ is 240ohm. For example, when the A5 and A1 signals are both 0, the memory device 170 adjusts the resistance of the driving variable resistor to 40ohm (ie, RZQ/6). When the A5 and A1 signals are 1 and 0 respectively (preserving the set value), the memory device 170 may not change the resistance value of the driving variable resistor. Changes in the resistance values of the driving variable resistors in the memory device 170 for the remaining settings can be deduced in the same way, and are not repeated for brevity. In addition, the memory interface 470 can instruct the memory device 170 to adjust the resistance value of the ODT variable resistor therein to a specific level through the A9, A6 and A2 signals, as shown in Table 4:

表4Table 4

A9A9 A6A6 A2A2 Rtt_NomRtt_Nom 00 00 00 不使能Disable 00 00 11 RZQ/4RZQ/4 00 11 00 RZQ/2RZQ/2 00 11 11 RZQ/6RZQ/6 11 00 00 RZQ/12RZQ/12 11 00 11 RZQ/8RZQ/8 11 11 00 保留reserve 11 11 11 保留reserve

例如,当A9、A6及A2信号都为0时,存储器装置170可不使能ODT。当A9、A6及A2信号分别为0、0及1时,存储器装置170可将ODT可变电阻的阻值调整为60ohm(也就是RZQ/4)。当A9、A6及A2信号分别为1、1及0(保留设定值)时,存储器装置170可不改变驱动可变电阻的阻值。其余设定对存储器装置170中ODT可变电阻的阻值改变可依此类推,不再赘述以求简明。For example, when the A9, A6 and A2 signals are all 0, the memory device 170 may not enable ODT. When the A9, A6, and A2 signals are 0, 0, and 1, respectively, the memory device 170 can adjust the resistance of the ODT variable resistor to 60ohm (ie, RZQ/4). When the A9, A6 and A2 signals are respectively 1, 1 and 0 (preserving the set value), the memory device 170 may not change the resistance value of the driving variable resistor. Changes to the resistance value of the ODT variable resistor in the memory device 170 for the remaining settings can be deduced by analogy, and are not repeated for brevity.

当存储器接口470使用DDR4通信协议与存储器装置170通信时,处理单元210可指示MAC层277通过物理层271发送输出输入配置命令及设定值给存储器装置170。存储器接口470可通过A5及A1信号指示存储器装置170将其中的驱动可变电阻的阻值调整至特定水平,如表5所示:When the memory interface 470 communicates with the memory device 170 using the DDR4 communication protocol, the processing unit 210 may instruct the MAC layer 277 to send the I/O configuration commands and setting values to the memory device 170 through the physical layer 271 . The memory interface 470 can instruct the memory device 170 to adjust the resistance of the driving variable resistor to a specific level through the A5 and A1 signals, as shown in Table 5:

表5table 5

Figure BDA0002000783820000091
Figure BDA0002000783820000091

Figure BDA0002000783820000101
Figure BDA0002000783820000101

表5描述的驱动可变电阻的阻值改变细节可参考表3的说明,不再赘述以求简明。此外,存储器接口470可通过A9、A6及A2信号指示存储器装置170将其中的ODT可变电阻的阻值调整至特定水平,如表6所示:The details of the resistance value change of the driving variable resistor described in Table 5 can be referred to the description of Table 3, and are not repeated for brevity. In addition, the memory interface 470 can instruct the memory device 170 to adjust the resistance value of the ODT variable resistor therein to a specific level through the A9, A6 and A2 signals, as shown in Table 6:

表6Table 6

A9A9 A6A6 A2A2 ODT阻值ODT resistance 00 00 00 不使能Disable 00 00 11 RZQ/4RZQ/4 00 11 00 RZQ/2RZQ/2 00 11 11 RZQ/6RZQ/6 11 00 00 RZQ/1RZQ/1 11 00 11 RZQ/5RZQ/5 11 11 00 RZQ/3RZQ/3 11 11 11 RZQ/7RZQ/7

表6描述的ODT可变电阻的阻值改变细节可参考表4的说明,不再赘述以求简明。The details of the resistance value change of the ODT variable resistor described in Table 6 can be referred to the description of Table 4, and are not repeated for brevity.

当存储器接口470使用LPDDR3通信协议与存储器装置170通信时,处理单元210可指示MAC层277通过物理层271发送模式寄存器写入命令(ModeRegister Write Command)及设定值给存储器装置170。存储器接口470可通过写入“03H”至模式寄存器中的MA[7:0]指示存储器装置170执行输出输入配置(I/O Configuration),并写入特定值到模式寄存器中的OP<3:0>指示存储器装置170将其中的驱动可变电阻的阻值调整至特定水平,如表7所示:When the memory interface 470 communicates with the memory device 170 using the LPDDR3 communication protocol, the processing unit 210 may instruct the MAC layer 277 to send a ModeRegister Write Command and a setting value to the memory device 170 through the physical layer 271 . The memory interface 470 may instruct the memory device 170 to perform an I/O Configuration by writing "03H" to MA[7:0] in the mode register, and writing a specific value to OP<3 in the mode register: 0> Instruct the memory device 170 to adjust the resistance of the drive variable resistor therein to a specific level, as shown in Table 7:

表7Table 7

Figure BDA0002000783820000111
Figure BDA0002000783820000111

例如,当模式寄存器中的Op<3:0>写入“0010”(默认值)时,存储器装置170将驱动可变电阻的阻值调整为34.3ohm(也就是RZQ/6)。当模式寄存器中的Op<3:0>写入“1001”时,存储器装置170将驱动可变电阻的拉低(pull-down)阻值调整为34.3ohm,拉高(pull-up)阻值调整为40ohm,终端阻值调整为240ohm。当模式寄存器中的Op<3:0>写入“0000”(保留设定值)或其他没有列在表7中的值时,存储器装置170可不改变驱动可变电阻的阻值。其余设定对存储器装置170中驱动可变电阻的阻值改变可依此类推,不再赘述以求简明。For example, when "0010" (the default value) is written to Op<3:0> in the mode register, the memory device 170 adjusts the resistance value of the driving variable resistor to 34.3ohm (ie, RZQ/6). When "1001" is written to Op<3:0> in the mode register, the memory device 170 adjusts the pull-down resistance of the drive variable resistor to 34.3ohm, and the pull-up resistance Adjust it to 40ohm, and adjust the terminal resistance to 240ohm. When Op<3:0> in the mode register is written with "0000" (set value reserved) or other values not listed in Table 7, the memory device 170 may not change the resistance value of the driving variable resistor. Changes in the resistance values of the driving variable resistors in the memory device 170 for the rest of the settings can be deduced by analogy, and are not repeated for brevity.

此外,存储器接口470可通过写入“0BH”至模式寄存器中的MA[7:0]指示存储器装置170执行ODT控制,并写入特定值到模式寄存器中的OP<1:0>指示存储器装置170将其中的ODT可变电阻的阻值调整至特定水平,如表8所示:Additionally, the memory interface 470 may instruct the memory device 170 to perform ODT control by writing "0BH" to MA[7:0] in the mode register, and instruct the memory device to perform ODT control by writing a specific value to OP<1:0> in the mode register 170 adjusts the resistance of the ODT variable resistor to a specific level, as shown in Table 8:

表8Table 8

Op<1:0>Op<1:0> ODT阻值ODT resistance 0000 不使能(默认)Disable (default) 0101 保留reserve 1010 RZQ/2RZQ/2 1111 RZQ/1RZQ/1

例如,当模式寄存器中的Op<1:0>写入“00”(默认值)时,存储器装置170可不使能ODT。当模式寄存器中的Op<1:0>写入“01”(保留设定值)时,存储器装置170可不改变ODT可变电阻的阻值。当模式寄存器中的Op<1:0>写入“10”时,存储器装置170将ODT可变电阻的阻值调整为120ohm(也就是RZQ/2)。其余设定对存储器装置170中ODT可变电阻的阻值改变可依此类推,不再赘述以求简明。For example, when Op<1:0> in the mode register is written with "00" (the default value), the memory device 170 may not enable ODT. When Op<1:0> in the mode register is written with "01" (preserving the set value), the memory device 170 may not change the resistance value of the ODT variable resistor. When "10" is written to Op<1:0> in the mode register, the memory device 170 adjusts the resistance value of the ODT variable resistor to 120ohm (ie, RZQ/2). Changes to the resistance value of the ODT variable resistor in the memory device 170 for the remaining settings can be deduced by analogy, and are not repeated for brevity.

校准主机110中的处理单元115可执行校准工具,校准工具可提供人机接口,方便工程师配置存储器接口的阻抗。显示器190显示如图3所示的存储器校准的图形用户接口(以下简称校准GUI)300。校准GUI 300可提供选择按钮330。当用户点击选择按钮330时,处理单元115可执行选择按钮330的点击事件处理员(On_click()Event Handler),用于在显示器上190显示选择菜单335,包含多个项目,每个项目关联于控制器150的只读存储器中存储的一个MPISP,例如DRAM MPISP。显示方框310可显示用户通过操作选择菜单335而决定的MPISP。校准GUI 300另可提供开始按钮370。当用户点击开始按钮370时,校准主机110的处理单元115可执行开始按钮330的点击事件处理员,用于通过校准接口250指示控制器150的处理单元210加载并执行用户决定的MPISP。校准主机110可通过校准接口250及直接存储器访问控制器290持续取得存储器接口270及存储器装置170中收发器的测试结果,并且可据以更新测试进度方框350及校准信息方框390的内容。The processing unit 115 in the calibration host 110 can execute a calibration tool, and the calibration tool can provide a human-machine interface to facilitate the engineer to configure the impedance of the memory interface. The display 190 displays a memory calibration graphical user interface (hereinafter referred to as calibration GUI) 300 as shown in FIG. 3 . Calibration GUI 300 may provide selection buttons 330 . When the user clicks on the selection button 330, the processing unit 115 may execute a click event handler (On_click() Event Handler) of the selection button 330 for displaying the selection menu 335 on the display 190, including a plurality of items, each item associated with An MPISP stored in the read-only memory of the controller 150, such as a DRAM MPISP. Display box 310 may display the MPISP as determined by the user by operating selection menu 335 . Calibration GUI 300 may additionally provide a start button 370. When the user clicks the start button 370 , the processing unit 115 of the calibration host 110 can execute the click event handler of the start button 330 to instruct the processing unit 210 of the controller 150 to load and execute the MPISP determined by the user through the calibration interface 250 . The calibration host 110 can continuously obtain the test results of the transceivers in the memory interface 270 and the memory device 170 through the calibration interface 250 and the direct memory access controller 290 , and can update the content of the test progress block 350 and the calibration information block 390 accordingly.

当处理单元210加载并执行指定的MPISP时,可实施如图4所示的处理流程。于初始化存储器装置170后,处理单元210可执行函数vInitDramZQRemapIdx()的指令,初始化用于存储测试结果的数据表。(步骤S410)。接着,处理单元210可执行函数vScanDramWindow(WrTraining)的指令来执行存储器写入训练(Write-Training)(步骤S430),以及执行函数vScanDramWindow(RdTraining)的指令来执行存储器读取训练(Read-Training)(步骤S450)。需注意的是,虽然实施例中以单一函数的程序代码,搭配不同的输入参数“WrTraining”及“RdTraining”来实作存储器写入及读取训练,所属技术领域人员亦可将存储器写入及读取训练以不同的函数实作。在另一些实施例,处理单元210可先执行存储器读取训练,接着执行存储器写入训练。在另一些实施例,处理单元210可不执行存储器读取训练,而将用于存储器读取的控制器150的接收器的ODT及存储器装置170的发送器的驱动可变电阻中的阻抗直接设定为默认值(例如中间档位)。最后,提供测试结果于静态随机存取存储器(Static Random Access Memory SRAM)230(步骤S470)。When the processing unit 210 loads and executes the designated MPISP, the processing flow shown in FIG. 4 may be implemented. After initializing the memory device 170, the processing unit 210 can execute the instruction of the function vInitDramZQRemapIdx() to initialize the data table for storing the test results. (step S410). Next, the processing unit 210 executes the instruction of the function vScanDramWindow(WrTraining) to execute the memory write training (Write-Training) (step S430), and executes the instruction of the function vScanDramWindow(RdTraining) to execute the memory read training (Read-Training) (step S450). It should be noted that although the program code of a single function is used with different input parameters "WrTraining" and "RdTraining" to implement memory writing and reading training, those skilled in the art can also write and read the memory. Read training is implemented in a different function. In other embodiments, the processing unit 210 may perform memory read training first, followed by memory write training. In other embodiments, the processing unit 210 may not perform memory reading training, but directly set the impedance in the ODT of the receiver of the controller 150 and the driving variable resistor of the transmitter of the memory device 170 for memory reading is the default value (eg mid-range). Finally, the test result is provided to the static random access memory (Static Random Access Memory SRAM) 230 (step S470).

在步骤S410,处理单元210可分别为写入及读取训练初始化不同的数据表,用以记录后续的测试结果。以DRAM为例:写入训练数据表的包含两轴:一轴关联于DRAM端ODT的信号强度,由弱到强或由强到弱排列;另一轴关联于ASIC端驱动信号强度,由弱到强或由强到弱排列。读取训练数据表包含两轴:一轴关联于DRAM端驱动信号强度,由弱到强或由强到弱排列;另一轴关联于ASIC端ODT的信号强度,由弱到强或由强到弱排列。写入训练的目的在优化ASIC端驱动可变电阻及DRAM端ODT间的阻值匹配,而读取训练的目的在优化DRAM端驱动可变电阻及ASIC端ODT间的阻值匹配。这样的重新对应(Remapping)可帮助工程师或应用程序的算法解读,较有效率地寻找适当的阻值档位。初始化后的数据表可存储于SRAM 230。In step S410, the processing unit 210 may initialize different data tables for writing and reading training respectively, so as to record subsequent test results. Take DRAM as an example: the training data table contains two axes: one axis is related to the signal strength of the ODT on the DRAM side, arranged from weak to strong or from strong to weak; the other axis is related to the driving signal strength of the ASIC side, from weak to weak. Arranged from strong to weak. Reading the training data table contains two axes: one axis is related to the drive signal strength at the DRAM side, arranged from weak to strong or from strong to weak; the other axis is related to the signal strength of the ODT at the ASIC side, from weak to strong or from strong to strong Weak permutation. The purpose of writing training is to optimize the resistance matching between the ASIC-side driving variable resistor and the DRAM-side ODT, while the purpose of reading training is to optimize the resistance matching between the DRAM-side driving variable resistor and the ASIC-side ODT. Such re-mapping (Remapping) can help engineers or application programs to interpret the algorithm and find the appropriate resistance gear more efficiently. The initialized data table may be stored in the SRAM 230 .

以DDR4DRAM为例:参考图5,为方便工程师或应用程序解读,写入训练数据表的容量(Size)为16x16字节,每个字节记录当ASIC端的驱动可变电阻设定为第一阻值而DRAM端的ODT设定为第二阻值时的测试结果。数据表的存储格(Cells)可概念性划分为每16个字节为一组。例如,当ASIC端的驱动可变电阻设定为特定阻值(如480ohm)时,由高至低改变DRAM端的ODT阻值(如从不使能ODT至将ODT阻值设为RZQ/7)的测试结果。或者是,当DRAM端的ODT阻值设定为特定阻值(RZQ/1)时,由高至低改变ASIC端的驱动可变电阻的阻值(如从480ohm至30ohm)的测试结果。由于DDR4DRAM的ODT档位只有8档,因此,关联于ASIC端的驱动可变电阻的每个特定阻值(也就是每一横排)的0h到7h的存储格的值都初始为“0x00”,而8h到Fh的存储格的值都初始为“0x05”(可称为忽略值)用以告诉工程师或应用程序此测试结果可忽略。Take DDR4DRAM as an example: refer to Figure 5. In order to facilitate the interpretation of engineers or applications, the size (Size) of the training data table is 16x16 bytes, and each byte records when the drive variable resistance at the ASIC side is set to the first resistance. The test result when the ODT of the DRAM terminal is set to the second resistance value. The storage cells (Cells) of the data table can be conceptually divided into groups of 16 bytes. For example, when the drive variable resistor at the ASIC side is set to a specific resistance value (such as 480ohm), change the ODT resistance value of the DRAM side from high to low (such as never enable the ODT to set the ODT resistance to RZQ/7). Test Results. Alternatively, when the ODT resistance value of the DRAM side is set to a specific resistance value (RZQ/1), the test result of changing the resistance value of the driving variable resistor at the ASIC side (eg, from 480ohm to 30ohm) is changed from high to low. Since the ODT gear of DDR4DRAM is only 8 gears, the value of the memory cells from 0h to 7h of each specific resistance value (that is, each row) of the drive variable resistor associated with the ASIC side is initially "0x00". The values of the memory cells from 8h to Fh are initially "0x05" (which can be called ignore values) to tell the engineer or application that the test result can be ignored.

以DDR4DRAM为例:参考图6,为方便工程师或应用程序解读,读取训练数据表的容量为16x16字节,每个字节记录当DRAM端的驱动可变电阻设定为第一阻值而ASIC端的ODT设定为第二阻值时的测试结果。数据表的存储格可概念性划分为每16个字节为一组。例如,当DRAM端的驱动可变电阻设定为特定阻值(如RZQ/5)时,由高至低改变ASIC端的ODT阻值(如从120ohm至40ohm)的测试结果。或者是,当ASIC端的ODT阻值设定为特定阻值(120ohm)时,由高至低改变DRAM端的驱动可变电阻的阻值(如从RZQ/5至RZQ/7)的测试结果。由于DDR4DRAM的驱动档位只有2文件,因此,关联于ASIC端ODT的每个特定阻值(也就是每一横排)的0h到1h的存储格的值都初始为“0x00”,而2h到Fh的存储格的值都初始为“0x05”。所属技术领域技术人员可将忽略值改为“0x05”至“0xFF”间的任意值,本发明并不因此局限。Take DDR4DRAM as an example: refer to Figure 6, in order to facilitate the interpretation of engineers or applications, the capacity of reading the training data table is 16x16 bytes, and each byte records when the driving variable resistance of the DRAM end is set to the first resistance value and the ASIC The test result when the ODT of the terminal is set to the second resistance value. The storage cells of the data table can be conceptually divided into groups of 16 bytes. For example, when the drive variable resistor at the DRAM side is set to a specific resistance value (eg RZQ/5), the test result of changing the ODT resistance value at the ASIC side (eg, from 120ohm to 40ohm) is changed from high to low. Or, when the ODT resistance value of the ASIC side is set to a specific resistance value (120ohm), the test result of changing the resistance value of the driving variable resistor of the DRAM side (eg from RZQ/5 to RZQ/7) from high to low. Since DDR4DRAM has only 2 files for the drive position, the memory cells from 0h to 1h associated with each specific resistance value (that is, each row) of the ASIC-side ODT are initially "0x00", while 2h to The values of the memory cells of Fh are all initially "0x05". Those skilled in the art can change the ignored value to any value between "0x05" and "0xFF", and the present invention is not limited thereby.

在一些实施例,步骤S430所述的写入训练细节,可参考如图9所示的方法流程图。此方法由处理单元210于加载并执行软件或固件模块的程序代码时实施,包含下列步骤:将关联于ASIC端的接收器的ODT的阻值设为默认阻值(步骤S910),将关联于装置端的发送器的驱动可变电阻的阻值设为默认阻值(步骤S930),依据扫描顺序为多组不同的测试组合进行测试,其中,每个测试组合包含关联于ASIC端的发送器的驱动可变电阻的阻值及关联于装置端的接收器的ODT的阻值(步骤S950);以及存储每个测试组合的测试结果至SRAM 230的特定位置,使得校准主机110可通过校准接口250从SRAM 230取得每个测试组合的测试结果(步骤S970)。扫描顺序、测试组合、测试程序及测试结果的细节,可参考以下段落的说明。In some embodiments, for the details of writing training described in step S430, reference may be made to the method flowchart shown in FIG. 9 . The method is implemented by the processing unit 210 when the program code of the software or firmware module is loaded and executed. The resistance value of the drive variable resistor of the transmitter at the terminal is set to the default resistance value (step S930 ), and tests are performed for a plurality of different test combinations according to the scanning sequence, wherein each test combination includes a drive variable associated with the transmitter of the ASIC terminal. The resistance value of the variable resistor and the resistance value of the ODT associated with the receiver at the device end (step S950 ); and storing the test results of each test combination to a specific location in the SRAM 230 , so that the calibration host 110 can access the SRAM 230 through the calibration interface 250 Obtain the test result of each test combination (step S970). Details of scan sequence, test combinations, test procedures and test results can be found in the following paragraphs.

在另一些实施例,步骤S430及S450所述的训练细节,可参考如图7所示的方法流程图。不论是存储器写入或者是读取训练,整个处理会反复执行一个循环(步骤S711至S790),直到所有ASIC端及装置端的相关阻值档位都测试过(也就是扫描过)为止(步骤S790中“是”的路径)。以下分别说明写入训练及读取训练的执行细节:In other embodiments, for details of the training described in steps S430 and S450, reference may be made to the method flowchart shown in FIG. 7 . Whether it is memory writing or reading training, the whole process will repeatedly execute a cycle (steps S711 to S790 ) until all the relevant resistance gears of the ASIC and device ends have been tested (that is, scanned) (step S790 ) "Yes" in the path). The execution details of write training and read training are described below:

当判断为写入训练时(步骤S711中“是”的路径),处理单元210可决定ASIC端的ODT及装置端的驱动可变电阻的阻值为默认阻值,并依据扫描顺序决定装置端的ODT及ASIC端的驱动可变电阻的阻值档位(步骤S713)。以DDR4DRAM为例,ASIC端的ODT阻值的默认阻值可为表2中的60ohms,而装置端的驱动可变电阻阻值的默认阻值可为表5中的RZQ/5。关于扫描顺序,举例来说,参考图5,处理单元210可先固定装置端的ODT阻值于特定档位,然后从480ohm至30ohm依顺序改变ASIC端的驱动可变电阻的阻值。当ASIC端的驱动可变电阻的所有阻值都测试过后,再将装置端的ODT阻值固定在下一个档位并继续测试。接着,初始化存储器装置(步骤S730)。以DDR4DRAM为例,在步骤S730,处理单元410可改变ODT档位寄存器273的值为步骤S713决定的默认阻值,并改变驱动档位寄存器275为步骤S713依据扫描顺序决定的档位。此外,处理单元410可指示MAC层277通过物理层271发送输出输入配置命令及设定值给存储器装置170,用于将存储器装置170的驱动可变电阻的阻值设定为步骤S713决定的默认阻值,并且将存储器装置170的ODT阻值设定为步骤S713依据扫描顺序决定的档位。存储器装置170的存储空间包含一小块测试局部,在步骤S730,存储器装置170可于测试局部进行试读写(test-write-then-read),又可称为装置端自我训练。存储器装置170可通过存储器接口270发送装置端自我训练是否通过的信息给处理单元210。当装置端自我训练不通过时(步骤S751中“否”的路径),处理单元210可存储“0x01”至写入训练数据表中的相应存储格作为测试结果(步骤S773)。When it is determined to be writing training (the "Yes" path in step S711 ), the processing unit 210 may determine the resistance values of the ODT on the ASIC side and the driving variable resistor on the device side as default resistance values, and determine the ODT and the device side according to the scanning sequence. The resistance level of the drive variable resistor at the ASIC end (step S713 ). Taking DDR4DRAM as an example, the default resistance value of the ODT resistance on the ASIC side can be 60ohms in Table 2, and the default resistance value of the drive variable resistor on the device side can be RZQ/5 in Table 5. Regarding the scanning sequence, for example, referring to FIG. 5 , the processing unit 210 can first fix the resistance of the ODT on the device side to a specific gear, and then sequentially change the resistance of the driving variable resistor on the ASIC side from 480ohm to 30ohm. After all the resistance values of the drive variable resistors at the ASIC end have been tested, fix the ODT resistance value at the device end to the next gear and continue the test. Next, the memory device is initialized (step S730). Taking DDR4 DRAM as an example, in step S730, the processing unit 410 can change the value of the ODT gear register 273 to the default resistance value determined in step S713, and change the drive gear register 275 to the gear determined according to the scanning sequence in step S713. In addition, the processing unit 410 can instruct the MAC layer 277 to send an I/O configuration command and a setting value to the memory device 170 through the physical layer 271, so as to set the resistance value of the driving variable resistor of the memory device 170 as the default determined in step S713 resistance value, and the ODT resistance value of the memory device 170 is set to the gear level determined according to the scanning sequence in step S713. The storage space of the memory device 170 includes a small test part. In step S730 , the memory device 170 can perform test-write-then-read in the test part, which is also called device-side self-training. The memory device 170 can send the information of whether the device-side self-training has passed to the processing unit 210 through the memory interface 270 . When the device-side self-training fails (the path of "No" in step S751), the processing unit 210 may store "0x01" in the corresponding memory cell written in the training data table as the test result (step S773).

为了提高测试的可靠性,当装置端自我训练通过时(步骤S751中“是”的路径),处理单元210可进一步执行随机读写测试(步骤S753)。于随机读写测试,处理单元210可指示MAC层277写入8MB的随机数据模式(Random Data Pattern)的数据至存储器装置170,然后再指示MAC层277从存储器装置170读回数据,并检查读回的数据是否与先前写入的一致。处理单元210依据随机读写测试的执行情况,存储测试结果至写入训练数据表中的相应存储格(步骤S773)。详细来说,当发生读取逾时(Read Timeout),处理单元210可存储“0x02”至写入训练数据表中的相应存储格。当读回的数据与先前写入的不一致时,处理单元210可存储“0x03”至写入训练数据表中的相应存储格。当发生写入逾时(Write Timeout),处理单元210可存储“0x04”至写入训练数据表中的相应存储格。当读回的数据与先前写入的一致时,处理单元210可存储“0x00”至写入训练数据表中的相应存储格,或者在另一些实施例,可不存储任何数据至写入训练数据表中,因为相应存储格已经初始为“0x00”。In order to improve the reliability of the test, when the device-side self-training is passed (the path of "Yes" in step S751 ), the processing unit 210 may further perform a random read/write test (step S753 ). In the random read/write test, the processing unit 210 may instruct the MAC layer 277 to write 8MB random data pattern data to the memory device 170, and then instruct the MAC layer 277 to read back data from the memory device 170, and check the read data. Whether the returned data is consistent with the previously written data. The processing unit 210 stores the test results in the corresponding storage cells written in the training data table according to the execution of the random read/write test (step S773). In detail, when a read timeout (Read Timeout) occurs, the processing unit 210 may store "0x02" to a corresponding storage cell in the writing training data table. When the read back data is inconsistent with the previously written data, the processing unit 210 may store "0x03" to the corresponding memory cell in the written training data table. When a Write Timeout occurs, the processing unit 210 may store "0x04" to the corresponding storage cell in the write training data table. When the read-back data is consistent with the previously written data, the processing unit 210 may store "0x00" to the corresponding memory cell in the written training data table, or in other embodiments, may not store any data in the written training data table , because the corresponding cell is already initialized to "0x00".

当判断为读取训练时(步骤S711中“否”的路径),处理单元210可决定ASIC端的驱动可变电阻及装置端ODT的阻值为默认阻值,并依据扫描顺序决定装置端的驱动可变电阻及ASIC端ODT的阻值档位(步骤S715)。以DDR4DRAM为例,ASIC端的驱动可变电阻的阻值的默认阻值可为表1中的60ohms,而装置端的ODT阻值的默认阻值可为表6中的RZQ/4。关于扫描顺序,举例来说,参考图6,处理单元210可先固定装置端的驱动可变电阻的阻值于特定档位,然后从120ohm至40ohm依顺序改变ASIC端的ODT阻值。当ASIC端的所有ODT阻值都测试过后,再将装置端的驱动可变电阻的阻值固定在下一个档位并继续测试。接着,初始化存储器装置(步骤S730)。步骤S730的执行细节可参考如上段落的说明,不再赘述以求简明。当装置端自我训练通过时(步骤S751中“是”的路径),处理单元210可进一步执行随机读写测试(步骤S753)。步骤S753的执行细节可参考如上段落的说明,不再赘述以求简明。接着,处理单元210依据随机读写测试的执行情况,存储测试结果至读取训练数据表中的相应存储格(步骤S775)。详细来说,当发生读取逾时,处理单元210可存储“0x02”至读取训练数据表中的相应存储格。当读回的数据与先前写入的不一致时,处理单元210可存储“0x03”至读取训练数据表中的相应存储格。当发生写入逾时,处理单元210可存储“0x04”至读取训练数据表中的相应存储格。当读回的数据与先前写入的一致时,处理单元210可存储“0x00”至读取训练数据表中的相应存储格,或者于另一些实施例,可不存储任何数据至读取训练数据表中,因为相应存储格已经初始为“0x00”。When it is determined to be read training (the "No" path in step S711 ), the processing unit 210 can determine the resistance value of the drive variable resistor on the ASIC side and the resistance value of the ODT on the device side as default resistance values, and determine the drive variable resistor on the device side according to the scanning sequence. The resistance level of the varistor and the ODT of the ASIC terminal (step S715 ). Taking DDR4DRAM as an example, the default resistance value of the drive variable resistor on the ASIC side can be 60ohms in Table 1, and the default resistance value of the ODT resistance on the device side can be RZQ/4 in Table 6. Regarding the scanning sequence, for example, referring to FIG. 6 , the processing unit 210 can first fix the resistance value of the drive variable resistor at the device end to a specific gear, and then sequentially change the ODT resistance value at the ASIC end from 120ohm to 40ohm. After all ODT resistance values at the ASIC end have been tested, the resistance value of the drive variable resistor at the device end is fixed at the next gear and the test continues. Next, the memory device is initialized (step S730). For details of the execution of step S730, reference may be made to the descriptions in the above paragraphs, which are not repeated for brevity. When the device-side self-training is passed (the "Yes" path in step S751 ), the processing unit 210 may further perform a random read/write test (step S753 ). For details of the execution of step S753, reference may be made to the descriptions in the above paragraphs, which are not repeated for brevity. Next, the processing unit 210 stores the test results in the corresponding storage cells in the read training data table according to the execution of the random read/write test (step S775 ). In detail, when a read timeout occurs, the processing unit 210 may store "0x02" to a corresponding memory cell in the read training data table. When the read back data is inconsistent with the previously written data, the processing unit 210 may store "0x03" to the corresponding memory cell in the read training data table. When a write timeout occurs, the processing unit 210 may store "0x04" to a corresponding memory cell in the read training data table. When the read-back data is consistent with the previously written data, the processing unit 210 may store "0x00" into the corresponding memory cell in the read training data table, or in other embodiments, may not store any data in the read training data table , because the corresponding cell is already initialized to "0x00".

在此可理解的是,存储格中记录的错误类型越多可有利于工程师或处理单元115执行的程序应用程序诊断特定设定产生的阻抗匹配问题。It will be appreciated here that the more types of errors recorded in the memory cells may facilitate an engineer or a program application executed by the processing unit 115 to diagnose impedance matching problems arising from a particular setup.

在步骤S470,校准主机110的处理单元115可通过校准接口250驱动直接存储器访问控制器290读取SRAM 230中特定局部的内容,作为配置存储器接口的收发器的依据。读取的内容可显示于显示器190,供工程师进行配置时的参考。参考图8所示的示例结果,工程师或处理单元115于执行应用程序时可发现,当ASIC端驱动可变电阻的阻值介于60ohm至36.9ohm之间并且装置端ODT阻值介于RZQ/1至RZQ/5之间(如虚线方框800中所示),存储器接口270可正常运行。工程师或处理单元115于执行应用程序时可将正常局部800中的中间值800a关联的ASIC端的驱动可变电阻及ODT阻值的档位以及装置端的驱动可变电阻及ODT阻值的档位写入控制器150中的非易失性存储空间,作为出厂设定。In step S470, the processing unit 115 of the calibration host 110 can drive the direct memory access controller 290 through the calibration interface 250 to read the content of a specific part in the SRAM 230 as a basis for configuring the transceiver of the memory interface. The read content can be displayed on the display 190 for reference by engineers when configuring. Referring to the example results shown in FIG. 8 , when the engineer or the processing unit 115 executes the application program, it can be found that when the resistance value of the driving variable resistor at the ASIC side is between 60ohm and 36.9ohm and the resistance value of the ODT at the device side is between RZQ/ Between 1 and RZQ/5 (as shown in the dashed box 800), the memory interface 270 can operate normally. When the engineer or the processing unit 115 executes the application program, the intermediate value 800a in the normal part 800 can be written to the drive variable resistor and the ODT resistance gear of the ASIC side and the drive variable resistor and ODT resistance gear of the device side. into the non-volatile storage space in the controller 150 as a factory setting.

本发明所述的方法中的全部或部分步骤可以计算器程序实现,例如计算机的操作系统、计算机中特定硬件的驱动程序、或软件程序。此外,也可实现于如上所示的其他类型程序。所属技术领域中的技术人员可将本发明实施例的方法撰写成计算器程序,为求简明不再加以描述。依据本发明实施例方法实施的计算器程序可存储于适当的计算机可读取数据载具,例如DVD、CD-ROM、USB碟、硬盘,亦可置于可通过网络(例如,互联网,或其他适当载具)存取的网络服务器。All or part of the steps in the method of the present invention can be implemented by a computer program, such as an operating system of a computer, a driver program of specific hardware in the computer, or a software program. Furthermore, it can also be implemented in other types of programs as shown above. Those skilled in the art can write the method of the embodiment of the present invention into a calculator program, which will not be described again for the sake of brevity. The calculator program implemented by the method according to the embodiment of the present invention can be stored in a suitable computer-readable data carrier, such as DVD, CD-ROM, USB disk, hard disk, or can be stored in appropriate vehicle) to access the web server.

虽然图2中包含了以上描述的组件,但不排除在不违反发明的精神下,使用更多其他的附加组件,已达成更佳的技术效果。此外,虽然图4、图7及图9的流程图采用指定的顺序来执行,但是在不违反发明精神的情况下,所属技术领域的技术人员可以在达到相同效果的前提下,修改这些步骤间的顺序,所以,本发明并不局限于仅使用如上所述的顺序。此外,所属技术领域的技术人员也可以将若干步骤整合为一个步骤,或者是除了这些步骤外,循序或平行地执行更多步骤,本发明也不因此而局限。Although the components described above are included in FIG. 2 , it is not excluded that more other additional components can be used to achieve better technical effects without violating the spirit of the invention. In addition, although the flowcharts of FIGS. 4 , 7 and 9 are executed in the specified order, those skilled in the art can modify the steps between these steps on the premise of achieving the same effect without violating the spirit of the invention. order, therefore, the present invention is not limited to use only the above-mentioned order. In addition, those skilled in the art can also integrate several steps into one step, or in addition to these steps, perform more steps sequentially or in parallel, and the present invention is not limited thereby.

虽然本发明使用以上实施例进行说明,但需要注意的是,这些描述并非用于限制本发明。相反地,此发明涵盖了所属技术领域中的技术人员显而易见的修改与相似设置。所以,本申请的保护范围当以权利要求所界定者的范围为准。Although the present invention is described using the above embodiments, it should be noted that these descriptions are not intended to limit the present invention. On the contrary, this invention covers modifications and similar arrangements obvious to those skilled in the art. Therefore, the protection scope of the present application shall be subject to the scope defined by the claims.

Claims (14)

1.一种存储器接口的阻抗配置方法,由处理单元于加载并执行软件或固件模块的程序代码时实施,其中该处理单元耦接存储器接口、静态随机存取存储器及校准接口,该存储器接口耦接存储器装置并且包含第一发送器及第一接收器,该存储器装置包含第二发送器及第二接收器,其特征在于,该方法包含:1. An impedance configuration method for a memory interface, implemented by a processing unit when loading and executing program codes of a software or firmware module, wherein the processing unit is coupled to a memory interface, a static random access memory and a calibration interface, and the memory interface is coupled to A memory device is connected and includes a first transmitter and a first receiver, the memory device includes a second transmitter and a second receiver, wherein the method includes: 为了第一训练程序,将关联于该第一接收器的芯片内端接电阻的第一阻值设为第一默认阻值,其中该第一接收器用于从该存储器装置中的该第二发送器接收信号;For the first training procedure, the first resistance value of the on-chip termination resistor associated with the first receiver for the second transmission from the memory device is set as a first default resistance value receiver to receive the signal; 为了该第一训练程序,将关联于该第二发送器的驱动可变电阻的第二阻值设为第二默认阻值;for the first training procedure, setting the second resistance value of the drive variable resistor associated with the second transmitter to a second default resistance value; 于该第一训练程序之中,为多个第一测试组合执行测试,其中,每个该第一测试组合包含第三阻值及第四阻值,该第三阻值关联于该第一发送器的驱动可变电阻,以及该第四阻值关联于该第二接收器的芯片内端接电阻,其中控制器的该存储器接口中的该第一发送器用于发送信号给该存储器装置中的该第二接收器;以及In the first training procedure, tests are performed for a plurality of first test combinations, wherein each of the first test combinations includes a third resistance value and a fourth resistance value, and the third resistance value is associated with the first transmission The drive variable resistance of the controller, and the fourth resistance value is associated with the on-chip termination resistance of the second receiver, wherein the first transmitter in the memory interface of the controller is used to send a signal to the memory device in the memory device. the second receiver; and 存储每个该第一测试组合的测试结果至该静态随机存取存储器的特定位置,使得校准主机可通过该校准接口从该静态随机存取存储器取得每个该第一测试组合的该测试结果,storing the test results of each of the first test combinations in a specific location of the SRAM, so that the calibration host can obtain the test results of each of the first test combinations from the SRAM through the calibration interface, 其中该第一训练程序包含多个循环,每个该循环相应于该多个第一测试组合中的一个,包含以下步骤:Wherein the first training program includes multiple cycles, each of the cycles corresponding to one of the multiple first test combinations, including the following steps: 依据相应的该第三阻值,改变该第一发送器的该驱动可变电阻;changing the driving variable resistance of the first transmitter according to the corresponding third resistance value; 依据相应的该第四阻 值,改变该第二接收器的该芯片内端接电阻;以及changing the on-chip termination resistance of the second receiver according to the corresponding fourth resistance value; and 在该第一接收器的芯片内端接电阻固定为该第一默认阻值,且该第二发送器的该驱动可变电阻固定为该第二默认阻值的情况下,执行该测试。The test is performed under the condition that the on-chip termination resistance of the first receiver is fixed to the first default resistance value, and the driving variable resistance of the second transmitter is fixed to the second default resistance value. 2.如权利要求1所述的存储器接口的阻抗配置方法,其特征在于,包含:2. The impedance configuration method of the memory interface according to claim 1, characterized in that, comprising: 从该校准主机接收命令及阻抗设定,其中该阻抗设定为该校准主机依据该第一测试组合的该测试结果决定;以及receiving commands and impedance settings from the calibration host, wherein the impedance settings are determined by the calibration host based on the test results of the first test combination; and 将该阻抗设定写入该控制器及该存储器装置的非易失性存储空间,作为出厂设定值,其中该控制器包含该处理单元。The impedance setting is written into the non-volatile storage space of the controller and the memory device as a factory default value, wherein the controller includes the processing unit. 3.如权利要求1或2中任一项所述的存储器接口的阻抗配置方法,其特征在于,该第一测试组合的该测试结果存储于数据表,该数据表包含第一轴及第二轴,该第一轴关联于该存储器装置的芯片内端接电阻的信号强度,由弱到强或由强到弱排列,该第二轴关联于该存储器接口的驱动信号强度,由弱到强或由强到弱排列。3 . The impedance configuration method of a memory interface according to claim 1 , wherein the test result of the first test combination is stored in a data table, and the data table includes a first axis and a second axis. 4 . axis, the first axis is related to the signal strength of the on-chip termination resistance of the memory device, arranged from weak to strong or from strong to weak, the second axis is related to the drive signal strength of the memory interface, from weak to strong Or in order from strong to weak. 4.如权利要求3所述的存储器接口的阻抗配置方法,其特征在于,该数据表包含多个字节,每个该字节记录当该存储器接口的驱动可变电阻设定为第五阻值而该存储器装置的芯片内端接电阻设定为第六阻值时的测试结果。4 . The impedance configuration method of the memory interface as claimed in claim 3 , wherein the data table includes a plurality of bytes, and each byte records when the drive variable resistance of the memory interface is set to the fifth resistance. 5 . The test result when the on-chip termination resistance of the memory device is set to the sixth resistance value. 5.如权利要求4所述的存储器接口的阻抗配置方法,其特征在于,当该字节为第一值时代表该存储器装置于存储空间的测试局部进行试读写时不通过。5 . The impedance configuration method of a memory interface as claimed in claim 4 , wherein when the byte is the first value, it means that the memory device fails to pass the test read and write in the test part of the storage space. 6 . 6.如权利要求4所述的存储器接口的阻抗配置方法,其特征在于,当该字节为第二值时代表该处理单元指示该存储器接口执行随机读写测试时发生读取逾时;当该字节为第三值时代表该处理单元指示该存储器接口执行随机读写测试时发生写入逾时;以及当该字节为第四值时代表该处理单元指示该存储器接口执行随机读写测试时发生读回的数据与先前写入的不一致。6. The impedance configuration method of a memory interface as claimed in claim 4, wherein when the byte is the second value, it means that a read timeout occurs when the processing unit instructs the memory interface to perform a random read/write test; when When the byte is the third value, it means that a write timeout occurs when the processing unit instructs the memory interface to perform random read and write tests; and when the byte is the fourth value, it means that the processing unit instructs the memory interface to perform random read and write tests. The data read back during the test is inconsistent with what was previously written. 7.如权利要求1所述的存储器接口的阻抗配置方法,其特征在于,包含:7. The impedance configuration method of a memory interface according to claim 1, characterized in that, comprising: 为了第二训练程序,将关联于该第二接收器的该芯片内端接电阻的第五阻值设为第三默认阻值,其中该第二接收器用于从该存储器接口中的该第一发送器接收信号;For a second training procedure, set the fifth resistance value of the on-chip termination resistor associated with the second receiver to a third default resistance value, wherein the second receiver is used to retrieve data from the first in the memory interface The transmitter receives the signal; 为了该第二训练程序,将关联于该第一发送器的该驱动可变电阻的第六阻值设为第四默认阻值;For the second training procedure, setting the sixth resistance value of the driving variable resistor associated with the first transmitter to a fourth default resistance value; 于该第二训练程序之中,为多个第二测试组合执行测试,其中,每个该第二测试组合包含第七阻值及第八阻值,该第七阻值关联于该第二发送器的该驱动可变电阻,以及该第八阻值关联于该第一接收器的该芯片内端接电阻,其中该第二发送器用于发送信号给该控制器的该存储器接口中的该第一接收器;以及In the second training procedure, tests are performed for a plurality of second test combinations, wherein each of the second test combinations includes a seventh resistance value and an eighth resistance value, and the seventh resistance value is associated with the second transmission The drive variable resistor of the controller, and the eighth resistance value is associated with the on-chip termination resistor of the first receiver, wherein the second transmitter is used to send a signal to the first receiver in the memory interface of the controller. a receiver; and 存储每个该第二测试组合的测试结果至该静态随机存取存储器的特定位置,使得该校准主机可通过该校准接口从该静态随机存取存储器取得每个该第二测试组合的该测试结果。Store the test results of each of the second test combinations in a specific location of the SRAM, so that the calibration host can obtain the test results of each of the second test combinations from the SRAM through the calibration interface . 8.如权利要求7所述的存储器接口的阻抗配置方法,其特征在于,包含:8. The impedance configuration method of the memory interface according to claim 7, characterized in that, comprising: 从该校准主机接收命令及阻抗设定,其中该阻抗设定为该校准主机依据该第一测试组合及该第二测试组合的该测试结果决定;以及receiving commands and impedance settings from the calibration host, wherein the impedance settings are determined by the calibration host based on the test results of the first test set and the second test set; and 将该阻抗设定写入该控制器及该存储器装置的非易失性存储空间,作为出厂设定值,其中该控制器包含该处理单元。The impedance setting is written into the non-volatile storage space of the controller and the memory device as a factory default value, wherein the controller includes the processing unit. 9.一种存储器接口的阻抗配置的计算机可读取存储介质,用于存储能够被处理单元执行的计算机程序,其中该处理单元耦接存储器接口、静态随机存取存储器及校准接口,该存储器接口耦接存储器装置并且包含第一发送器及第一接收器,该存储器装置包含第二发送器及第二接收器,其特征在于,该计算机程序被该处理单元执行时实现以下步骤:9. An impedance-configured computer-readable storage medium of a memory interface for storing a computer program executable by a processing unit, wherein the processing unit is coupled to a memory interface, a static random access memory, and a calibration interface, the memory interface A memory device is coupled and includes a first transmitter and a first receiver, the memory device includes a second transmitter and a second receiver, and characterized in that, when the computer program is executed by the processing unit, the following steps are implemented: 为了第一训练程序,将关联于该第一接收器的芯片内端接电阻的第一阻值设为第一默认阻值,其中该第一接收器用于从该存储器装置中的该第二发送器接收信号;For the first training procedure, the first resistance value of the on-chip termination resistor associated with the first receiver for the second transmission from the memory device is set as a first default resistance value receiver to receive the signal; 为了该第一训练程序,将关联于该第二发送器的驱动可变电阻的第二阻值设为第二默认阻值;for the first training procedure, setting the second resistance value of the drive variable resistor associated with the second transmitter to a second default resistance value; 于该第一训练程序之中,为多个第一测试组合执行测试,其中,每个该第一测试组合包含第三阻值及第四阻值,该第三阻值关联于该第一发送器的驱动可变电阻,以及该第四阻值关联于该第二接收器的芯片内端接电阻,其中控制器的该存储器接口中的该第一发送器用于发送信号给该存储器装置中的该第二接收器;以及In the first training procedure, tests are performed for a plurality of first test combinations, wherein each of the first test combinations includes a third resistance value and a fourth resistance value, and the third resistance value is associated with the first transmission The drive variable resistance of the controller, and the fourth resistance value is associated with the on-chip termination resistance of the second receiver, wherein the first transmitter in the memory interface of the controller is used to send a signal to the memory device in the memory device. the second receiver; and 存储每个该第一测试组合的测试结果至该静态随机存取存储器的特定位置,使得校准主机可通过该校准接口从该静态随机存取存储器取得每个该第一测试组合的该测试结果,storing the test results of each of the first test combinations in a specific location of the SRAM, so that the calibration host can obtain the test results of each of the first test combinations from the SRAM through the calibration interface, 其中该第一训练程序包含多个循环,每个该循环相应于该多个第一测试组合中的一个,包含以下步骤:Wherein the first training program includes multiple cycles, each of the cycles corresponding to one of the multiple first test combinations, including the following steps: 依据相应的该第三阻值,改变该第一发送器的该驱动可变电阻;changing the driving variable resistance of the first transmitter according to the corresponding third resistance value; 依据相应的该第四阻值,改变该第二接收器的该芯片内端接电阻;以及changing the on-chip termination resistance of the second receiver according to the corresponding fourth resistance value; and 在该第一接收器的芯片内端接电阻固定为该第一默认阻值,且该第二发送器的该驱动可变电阻固定为该第二默认阻值的情况下,执行该测试。The test is performed under the condition that the on-chip termination resistance of the first receiver is fixed to the first default resistance value, and the driving variable resistance of the second transmitter is fixed to the second default resistance value. 10.如权利要求9所述的存储器接口的阻抗配置的计算机可读取存储介质,其特征在于,该计算机程序被该处理单元执行时实现以下步骤:10. The impedance-configured computer-readable storage medium of claim 9, wherein when the computer program is executed by the processing unit, the following steps are implemented: 从该校准主机接收命令及阻抗设定,其中该阻抗设定为该校准主机依据该第一测试组合的该测试结果决定;以及receiving commands and impedance settings from the calibration host, wherein the impedance settings are determined by the calibration host based on the test results of the first test combination; and 将该阻抗设定写入该控制器及该存储器装置的非易失性存储空间,作为出厂设定值,其中该控制器包含该处理单元。The impedance setting is written into the non-volatile storage space of the controller and the memory device as a factory default value, wherein the controller includes the processing unit. 11.如权利要求9或10中任一项所述的存储器接口的阻抗配置的计算机可读取存储介质,其特征在于,该第一测试组合的该测试结果存储于数据表,该数据表包含第一轴及第二轴,该第一轴关联于该存储器装置的芯片内端接电阻的信号强度,由弱到强或由强到弱排列,该第二轴关联于该存储器接口的驱动信号强度,由弱到强或由强到弱排列。11. The computer-readable storage medium of the impedance configuration of the memory interface according to any one of claims 9 or 10, wherein the test result of the first test combination is stored in a data table, and the data table contains The first axis and the second axis, the first axis is related to the signal strength of the on-chip termination resistance of the memory device, arranged from weak to strong or from strong to weak, the second axis is related to the drive signal of the memory interface Intensity, arranged from weak to strong or from strong to weak. 12.如权利要求11中所述的存储器接口的阻抗配置的计算机可读取存储介质,其特征在于,该数据表包含多个字节,每个该字节记录当该存储器接口的驱动可变电阻设定为第五阻值而该存储器装置的芯片内端接电阻设定为第六阻值时的测试结果。12. The impedance-configured computer-readable storage medium of claim 11, wherein the data table contains a plurality of bytes, each of the bytes recording when the drive of the memory interface is variable The test result when the resistance is set to the fifth resistance value and the on-chip termination resistance of the memory device is set to the sixth resistance value. 13.如权利要求12所述的存储器接口的阻抗配置的计算机可读取存储介质,其特征在于,当该字节为第一值时代表该存储器装置于存储空间的测试局部进行试读写时不通过。13 . The computer-readable storage medium with impedance configuration of the memory interface as claimed in claim 12 , wherein when the byte is the first value, it represents that the memory device performs trial reading and writing in the test part of the storage space. 14 . Fail. 14.如权利要求12所述的存储器接口的阻抗配置的计算机可读取存储介质,其特征在于,当该字节为第二值时代表该处理单元指示该存储器接口执行随机读写测试时发生读取逾时;当该字节为第三值时代表该处理单元指示该存储器接口执行随机读写测试时发生写入逾时;以及当该字节为第四值时代表该处理单元指示该存储器接口执行随机读写测试时发生读回的数据与先前写入的不一致。14. The computer-readable storage medium with impedance configuration of the memory interface of claim 12, wherein when the byte is the second value, it occurs when the processing unit instructs the memory interface to perform a random read/write test read timeout; when the byte is the third value, it means that the processing unit instructs the memory interface to perform a random read and write test when a write timeout occurs; and when the byte is the fourth value, it means that the processing unit instructs the When the memory interface performs random read and write tests, the data read back is inconsistent with the previously written data.
CN201910211851.3A 2019-02-13 2019-03-20 Impedance configuration method of memory interface and computer readable storage medium Active CN111564175B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210498376.4A CN114783503B (en) 2019-02-13 2019-03-20 Impedance configuration device for memory interface
US16/459,933 US11112981B2 (en) 2019-02-13 2019-07-02 Apparatus and method and computer program product for configuring impedance of memory interfaces

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201962804999P 2019-02-13 2019-02-13
US62/804,999 2019-02-13

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202210498376.4A Division CN114783503B (en) 2019-02-13 2019-03-20 Impedance configuration device for memory interface

Publications (2)

Publication Number Publication Date
CN111564175A CN111564175A (en) 2020-08-21
CN111564175B true CN111564175B (en) 2022-05-31

Family

ID=71896204

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910211851.3A Active CN111564175B (en) 2019-02-13 2019-03-20 Impedance configuration method of memory interface and computer readable storage medium
CN201910423599.2A Pending CN111563011A (en) 2019-02-13 2019-05-21 Memory interface detection method and computer-readable storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201910423599.2A Pending CN111563011A (en) 2019-02-13 2019-05-21 Memory interface detection method and computer-readable storage medium

Country Status (2)

Country Link
CN (2) CN111564175B (en)
TW (3) TWI694378B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112149369B (en) * 2020-09-21 2024-04-05 交叉信息核心技术研究院(西安)有限公司 Multi-core packaging level system based on core particle architecture and core particle-oriented task mapping method thereof
CN112420089B (en) * 2020-12-02 2024-05-17 海光信息技术股份有限公司 Storage device, connection method and device, and computer-readable storage medium
CN114020667B (en) * 2021-10-20 2024-08-06 瑞芯微电子股份有限公司 Method and storage device for supporting ddr to automatically adjust optimal signal parameters
CN114420195B (en) * 2021-12-28 2023-04-07 深圳市晶存科技有限公司 A kind of ODT calibration method, computer equipment and storage medium
CN115598495B (en) * 2022-09-16 2024-01-30 深圳市奇普乐芯片技术有限公司 Chip test configuration generation method, test method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106205662A (en) * 2015-05-26 2016-12-07 爱思开海力士有限公司 Semiconductor storage, Impedance calibrating circuit and method thereof
TWI632771B (en) * 2017-08-18 2018-08-11 瑞昱半導體股份有限公司 Impedance calibration device and method thereof
CN108733594A (en) * 2017-04-13 2018-11-02 慧荣科技股份有限公司 Memory controller and data storage device

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6564326B2 (en) * 1999-07-06 2003-05-13 Walter A. Helbig, Sr. Method and apparatus for enhancing computer system security
US7089463B1 (en) * 2002-02-20 2006-08-08 Cisco Technology Inc. Test buffer design and interface mechanism for differential receiver AC/DC boundary scan test
KR100640158B1 (en) * 2005-09-27 2006-11-01 주식회사 하이닉스반도체 Semiconductor memory device that can adjust impedance of data output driver
US7405586B2 (en) * 2006-03-20 2008-07-29 Intel Corporation Ultra low pin count interface for die testing
CN101458289A (en) * 2007-12-13 2009-06-17 鸿富锦精密工业(深圳)有限公司 Motherboard line detection device
US20130041606A1 (en) * 2011-08-10 2013-02-14 XiaoHu Tang Detecting an open wire between a battery cell and an external circuit
US9153296B2 (en) * 2010-06-28 2015-10-06 Intel Corporation Methods and apparatuses for dynamic memory termination
US8274308B2 (en) * 2010-06-28 2012-09-25 Intel Corporation Method and apparatus for dynamic memory termination
US8988102B2 (en) * 2011-02-02 2015-03-24 Rambus Inc. On-die termination
CN102999096B (en) * 2011-09-14 2016-03-30 中山市云创知识产权服务有限公司 Computing machine
KR101858578B1 (en) * 2011-12-21 2018-05-18 에스케이하이닉스 주식회사 Semiconductor package including multiple chips and memory system including the same
KR20140000855A (en) * 2012-06-26 2014-01-06 삼성전자주식회사 Test interface board and test system
CN103823149A (en) * 2013-12-03 2014-05-28 华为技术有限公司 Chip detection system and detection method
US10241937B2 (en) * 2015-07-08 2019-03-26 International Business Machines Corporation Adjusting an optimization parameter to customize a signal eye for a target chip on a shared bus
US10090065B1 (en) * 2017-03-14 2018-10-02 International Business Machines Corporation Simultaneous write, read, and command-address-control calibration of an interface within a circuit
CN108694985B (en) * 2017-04-06 2020-10-16 中芯国际集成电路制造(北京)有限公司 Test method and test circuit for detecting memory faults

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106205662A (en) * 2015-05-26 2016-12-07 爱思开海力士有限公司 Semiconductor storage, Impedance calibrating circuit and method thereof
CN108733594A (en) * 2017-04-13 2018-11-02 慧荣科技股份有限公司 Memory controller and data storage device
TWI632771B (en) * 2017-08-18 2018-08-11 瑞昱半導體股份有限公司 Impedance calibration device and method thereof

Also Published As

Publication number Publication date
CN111564175A (en) 2020-08-21
TW202030603A (en) 2020-08-16
TW202030728A (en) 2020-08-16
CN111563011A (en) 2020-08-21
TWI740461B (en) 2021-09-21
TWI701661B (en) 2020-08-11
TW202030601A (en) 2020-08-16
TWI694378B (en) 2020-05-21

Similar Documents

Publication Publication Date Title
CN111564175B (en) Impedance configuration method of memory interface and computer readable storage medium
US20230297523A1 (en) Techniques for command bus training to a memory device
US10679698B2 (en) Memory preset adjustment based on adaptive calibration
CN114783503B (en) Impedance configuration device for memory interface
US8054676B2 (en) Memory system such as a dual-inline memory module (DIMM) and computer system using the memory system
US12237043B2 (en) Apparatus and method for ZQ calibration
CN110176263A (en) The memory device and its operating method of operation mode are determined based on external voltage
US20180348838A1 (en) Techniques to change a mode of operation for a memory device
US20190042498A1 (en) Enumerated per device addressability for memory subsystems
US12217787B2 (en) Apparatus, system and method to detect and improve an input clock performance of a memory device
US20230005515A1 (en) Apparatus, memory device, and method reducing clock training time
US12293807B2 (en) Offset calibration training method for adjusting data receiver offset and memory device therefor
US11915781B2 (en) Apparatuses and methods for ZQ calibration
US20230386563A1 (en) Memory device, electronic device including the same, and operating method of electronic device
CN113094303A (en) Techniques for dynamic proximity-based on-die termination
KR20230068258A (en) Apparatuses and methods for ZQ calibration
KR20240013635A (en) Method for training offset calibration of data(DQ) receiver and memory device thereof
CN119621448B (en) A DDR reference voltage automatic adjustment method based on video memory test results
US20250370628A1 (en) Memory device, system-on-chip configured to control memory device, and electronic device including the same
JP6712312B2 (en) System and method for retaining DRAM data when reprogramming a reconfigurable device with a DRAM memory controller incorporating a data maintenance block co-located with a memory module or subsystem
US11888476B2 (en) Apparatus, memory device and method for storing parameter codes for asymmetric on-die-termination
KR102925793B1 (en) Apparatus, memory device and method for storing parameter codes for asymmetric on-die-termination(ODT)
US11500559B2 (en) Systems and methods for configuring a data storage device
CN120406831A (en) Method, device, server and electronic equipment for detecting data line mapping relationship
CN118506828A (en) Adaptive selection of configuration dependent operands

Legal Events

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