System on chip performing multiple trainings simultaneously, operation method thereof, and electronic device

By adjusting the clock duty cycle, reference voltage and data offset in the on-chip system, the training sequence is optimized, and the problem of training sequence affecting the results in the prior art is solved, and efficient communication and training optimization between SoC and memory devices are achieved.

CN111126615BActive Publication Date: 2024-12-06SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911042781.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-10-30
Filing Date
2019-10-29
Publication Date
2024-12-06
Estimated Expiration
2039-10-29

AI Technical Summary

Technical Problem

When existing systems on chip perform multiple trainings, due to the unoptimized training sequence, the training results are inefficient, and the trainings affect each other, making it difficult to obtain the optimized clock duty cycle, reference voltage and data offset.

Method used

Design a system on chip, including a clock generator, a reference voltage generator and a processor, and use multiple code combinations to calculate and set multiple read effective window margins by adjusting the clock duty cycle, reference voltage and data offset. Optimize the training sequence to improve training results.

Benefits of technology

It realizes synchronous communication between SoC and memory devices with different operating characteristics, optimizes clock duty cycle, reference voltage and data offset, and improves training efficiency and effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111126615B_ABST
    Figure CN111126615B_ABST
Patent Text Reader

Abstract

A system on chip includes: a clock generator that adjusts a duty cycle of a clock to be output to a memory device according to a first code; a reference voltage generator that adjusts a level of a reference voltage used to determine a first data input / output signal output from the memory device according to a second code; a data receiver that aligns the first data input / output signal output from the memory device and a first data strobe signal when one of the first code and the second code changes; and a training circuit that calculates a plurality of read valid window margins for a plurality of combinations of the first code and the second code based on the first data strobe signal and the first data input / output signal.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims the priority of Korean Patent Application No. 10-2018-0130848 filed on October 30, 2018 in the Korean Intellectual Property Office, the disclosure of which is incorporated herein by reference in its entirety. Technical Field

[0003] Example embodiments of the inventive concepts described herein relate to a system on chip that simultaneously performs a plurality of trainings, an operating method of the system on chip, and / or an electronic device including the system on chip. Background Art

[0004] A system on chip (hereinafter referred to as "SoC") is an integrated circuit in which multiple components of an electronic system and / or multiple intellectual property rights (IPs) are integrated. The SoC can communicate with a memory device outside the SoC. In recent years, as the operating speeds of the SoC and / or the memory device have increased, respectively, the SoC should perform multiple trainings on the memory device before communicating with the memory device at high speed.

[0005] The SoC may perform, for example, ZQ calibration, reference voltage training, read training, write training, clock duty cycle training, etc. on the memory device. However, since the above trainings are dependent on each other, the results of the trainings performed by the SoC may not be preferred or optimal due to the order in which the trainings are performed. Summary of the invention

[0006] Example embodiments of the inventive concept provide a system on chip that simultaneously performs a plurality of trainings, an operating method of the system on chip, and / or an electronic device including the system on chip.

[0007] According to some example embodiments, a system on chip may include: a clock generator that adjusts a duty cycle of a clock to be output to a memory device according to a first code; a reference voltage generator that adjusts a first level of a first reference voltage used to determine a first data input / output signal output from the memory device according to a second code; a data receiver that aligns the first data input / output signal and a first data select signal output from the memory device when one of the first code and the second code changes; and a processor configured to calculate a plurality of read valid window margins for a plurality of combinations of the first code and the second code based on the first data select signal and the first data input / output signal.

[0008] According to some example embodiments, an operating method of a system on chip connected to a memory device may include: changing one of a first code and a second code, wherein the first code is used to adjust a duty cycle of a clock to be provided to the memory device, and the second code is used to adjust a first level of a first reference voltage of the system on chip, the first level of the first reference voltage being used to determine a first data input / output signal output from the memory device; aligning the first data input / output signal and the first data select signal output from the memory device; calculating multiple read valid window margins for multiple combinations based on the first data select signal and the first data input / output signal, wherein each of the multiple combinations is a pair of values ​​as follows: one of the values ​​of the first code and one of the values ​​of the second code; setting the duty cycle of the clock based on a first target value of the first code corresponding to a maximum read valid window margin among the multiple read valid window margins; and setting the first level of the first reference voltage of the system on chip based on a second target value of the second code corresponding to the maximum read valid window margin among the multiple read valid window margins.

[0009] According to some example embodiments, an electronic device may include: a system on chip configured to generate a clock; and a memory device synchronized with an output of the clock output. The system on chip may be configured to simultaneously perform the following operations: a first training for a duty cycle of the clock adjusted according to a first code; a second training for a first level of a first reference voltage of the system on chip adjusted according to a second code, wherein the first level of the first reference voltage is used to determine a first data input / output signal output from the memory device; and / or a third training for a first offset between the first data input / output signal output from the memory device and a first data strobe signal. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 A block diagram of an electronic device according to some example embodiments of the inventive concept is shown.

[0011] Figure 2 Shows Figure 1 Flowchart of training between SoC and memory devices.

[0012] Figure 3 Shows Figure 1 Block diagram of the SoC.

[0013] Figure 4 Shown by Figure 3 The VWM calculated by the trained circuit.

[0014] Figure 5 Shows Figure 1 A block diagram of a memory device.

[0015] Figure 6An operational flowchart of a SoC performing multiple trainings according to some example embodiments of the inventive concept is shown.

[0016] Figure 7 is a diagram showing a method according to some example embodiments Figure 6 1. An operational flow chart of operation S100.

[0017] Figure 8 is a diagram showing a method according to some example embodiments Figure 6 1. An operational flow chart of operation S100.

[0018] Fig. 9 is a diagram showing a method according to some example embodiments Figure 6 1. Operation flow chart of operation S300.

[0019] Fig.10 Shown according to Figures 6 to 9 Flowchart of the read VWM and write VWM stored in the SoC. DETAILED DESCRIPTION

[0020] Some exemplary embodiments of the inventive concept will be described below in detail and clearly to such an extent that those skilled in the art can easily implement the inventive concept.

[0021] The terms used herein are intended only to describe specific embodiments and are not intended to limit the present disclosure. As used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The term "and / or" includes each and one or more combinations of the items mentioned.

[0022] Figure 1 A block diagram of an electronic device according to some example embodiments of the present invention is shown. The electronic device 10 may include a system on a chip (hereinafter referred to as "SoC") 100 and a memory device 200. The electronic device 10 may also be referred to as an "electronic system". For example, the electronic device 10 may be a desktop computer, a laptop computer, a workstation, a server, a mobile device, etc.

[0023] The SoC 100 as an application processor (AP) can control the overall operation of the electronic device 10. The SoC 100 can execute a program according to an application supported by the electronic device 10, and / or can receive data associated with the program execution from the memory device 200, and / or can send the result of the program execution to the memory device 200. The SoC 100 may include various intellectual property rights (IPs). For example, the SoC 100 may include a memory controller 130 and / or a double data rate physical layer (hereinafter referred to as "DDR PHY") 140. The memory controller 130 may include: hardware including logic circuits; a hardware / software combination, such as a processor that executes software; or a combination thereof. For example, more specifically, the memory controller 130 may include, but is not limited to: a central processing unit (CPU), an arithmetic logic unit (ALU), a digital signal processor, a microcomputer, a field programmable gate array (FPGA), a system on a chip (SoC), a programmable logic unit, a microprocessor, an application specific integrated circuit (ASIC), etc.

[0024] The memory controller 130 may control the memory device 200 through the DDR PHY 140. For example, the memory controller 130 and the DDR PHY 140 may communicate with each other according to a DDR PHY interface (DFI). The memory controller 130 may generate a command and an address for accessing the memory device 200. The memory controller 130 may generate data to be stored in the memory device 200. The memory controller 130 may receive data stored in the memory device 200.

[0025] The DDR PHY 140 may also be referred to as a “DDR PHY interface”. The DDR PHY 140 may send a clock CK and a command and address CMD / ADD to the memory device 200 under the control of the memory controller 130. The DDR PHY 140 may send a data selection signal (hereinafter referred to as “DQS”) and a data input / output signal (hereinafter referred to as “DQ”) to the memory device 200 under the control of the memory controller 130. The DQS may be used to sample the DQ. The DDR PHY 140 may receive the DQS and DQ from the memory device 200. A path for sending the DQS and DQ from the DDR PHY 140 to the memory device 200 and / or a path for sending the DQS and DQ from the memory device 200 to the DDR PHY 140 may be the same as each other and / or may be shared. Since DQS and DQ are bidirectional signals, DQS and DQ output from the SoC 100 to the memory device 200 may be referred to as write DQS and write DQ, respectively, and DQS and DQ output from the memory device 200 to the SoC 100 may be referred to as read DQS and read DQ, respectively.

[0026] According to a request of the SoC 100, the memory device 200 may store data or may provide the data stored therein to the SoC 100. The memory device 200 may communicate with the SoC 100 through the DDR PHY 140. For example, the memory device 200 may be a dynamic random access memory (DRAM) device, a static random access memory (SRAM) device, a thyristor random access memory (TRAM) device, a NAND flash memory device, a NOR flash memory device, a resistive random access memory (RRAM) device, a ferroelectric random access memory (FRAM) device, a phase change random access memory (PRAM) device, a magnetic random access memory (MRAM) device, a solid state drive (SSD), a memory card, a universal flash memory (UFS), etc. In the following, the memory device 200 is a DRAM device (e.g., a synchronous dynamic random access memory (SDRAM) device) synchronized with the clock CK output from the SoC 100.

[0027] For example, a plurality of system-on-chips 100 may be manufactured by any manufacturing process, and / or a plurality of memory devices 200 may be manufactured by any other manufacturing process. A plurality of system-on-chips 100 may have various operating characteristics (e.g., operating speed, power consumption, etc.), and / or a plurality of memory devices 200 may have various operating characteristics. One of the plurality of system-on-chips 100 and / or one of the plurality of memory devices 200 may be mounted on or used in the electronic device 10. Since the SoC 100 has various operating characteristics (e.g., fast, typical, slow, etc.), and the memory device 200 also has various operating characteristics (e.g., fast, typical, slow, etc.), in order for the SoC 100 and the memory device 200 mounted on the electronic device 10 to communicate with each other, training between the SoC 100 and the memory device 200 mounted on the electronic device 10 is necessary (e.g., training in an on-the-fly manner). In addition, since the memory device 200 operates based on the clock CK transmitted from the SoC 100, training of the duty cycle (or duty ratio) of the clock CK is necessary. For example, an ideal value of the duty cycle of the clock CK may be 50% (eg, a duration of logic “1” corresponding to the clock CK may be the same as a duration of logic “0” corresponding to the clock CK).

[0028] Figure 2 Shows Figure 1Flowchart of training between SoC 100 and memory device. For example, the training between SoC 100 and memory device 200 may include: training the skew between read DQS and read DQ, training the level of reference voltage VREF of SoC 100 used to determine read DQ, training the duty cycle of clock CK, and / or training the skew between write DQS and write DQ, and / or training the level of reference voltage VREF of memory device 200 used to determine write DQ. Training may be defined in the JEDEC (Joint Electron Device Engineering Council) standard. However, the order in which training is performed, the manner in which training is performed, etc. are not defined in the JEDEC standard. Each training may be performed according to any widely known method for performing each training.

[0029] In operation S11, the SoC 100 may perform initial training of read DQS / DQ at a fixed level of a reference voltage VREF of the SoC 100. The training of read DQS / DQ means training the offset between read DQS and read DQ. In operation S12, the SoC 100 may perform initial training of write DQS / DQ at a fixed level of a reference voltage VREF of the memory device 200. The training of write DQS / DQ means training the offset between write DQS and write DQ.

[0030] In operation S13, the SoC 100 may perform training of a reference voltage VREF of the SoC 100. In operation S14, the SoC 100 may perform training of a duty cycle of the clock CK. When operations S13 and S14 are completed, training of the SoC 100 for reading data stored in the memory device 200 may be completed. In operation S15, the SoC 100 may perform training of a level of the reference voltage VREF of the memory device 200. When operation S15 is completed, training of the SoC 100 for writing data to the memory device 200 may be completed.

[0031] In operation S16, the SoC 100 may perform the training of the read DQS / DQ again at the level of the reference voltage VREF of the SoC 100 adjusted in operation S13. In operation S17, the SoC 100 may perform the training of the write DQS / DQ again at the level of the reference voltage VREF of the memory device 200 adjusted in operation S15.

[0032] refer to Figure 2Since the fixed level of the reference voltage VREF of the SoC 100 in operation S11 and the fixed level of the reference voltage VREF of the memory device 200 in operation S12 may not be preferred or optimal, the offset between the read DQS and the read DQ aligned in operation S11 and the offset between the write DQS and the write DQ aligned in operation S12 may not be preferred or optimal. Since the offset between the read DQS and the read DQ aligned in operation S11 and / or the duty cycle of the clock CK in operation S11 may not be preferred or optimal, the level of the reference voltage VREF of the SoC 100 adjusted in operation S13 may not be preferred or optimal. Since the offset between the read DQS and the read DQ aligned in operation S11 and / or the level of the reference voltage VREF of the SoC 100 adjusted in operation S13 may not be preferred or optimal, the duty cycle of the clock CK adjusted in operation S14 may not be preferred or optimal. Since the offset between the write DQS and the write DQ aligned in operation S12 and / or the duty ratio of the clock CK adjusted in operation S14 may not be preferred or optimal, the level of the reference voltage VREF of the memory device 200 adjusted in operation S15 may not be preferred or optimal. Figure 2 In the case where the SoC 100 shown performs multiple trainings in any order, the trainings may affect each other, and therefore, the results of the trainings may not be optimal or optimum. In particular, even if the order of the trainings performed by the SoC 100 is adjusted, the results of the trainings may still not be optimal or optimum.

[0033] The SoC 100 according to some example embodiments of the inventive concept may simultaneously adjust the duty cycle of the clock CK of the SoC 100, the level of the reference voltage VREF of the SoC 100, and the offset between the read DQS and the read DQ. The SoC 100 may simultaneously adjust the level of the reference voltage VREF of the memory device 200 and the offset between the write DQS and the write DQ. Therefore, even if the operating characteristics of the SoC 100 mounted on the electronic device 10 and the operating characteristics of the memory device 200 mounted on the electronic device 10 are different from each other, the SoC 100 may set the duty cycle of the clock CK, the level of the reference voltage VREF of the SoC 100, the level of the reference voltage VREF of the memory device 200, the offset between the read DQS and the read DQ, and / or the offset between the write DQS and the write DQ to an improved value or an optimal value. Below, the SoC 100 will be described more fully.

[0034] Figure 3 Shows Figure 1 In addition to the memory controller 130 and the DDR PHY 140 , the SoC 100 may further include a processor 110 and / or an on-chip memory 120 .

[0035] The processor 110 may execute various software (eg, application programs, operating systems, file systems, and / or device drivers) loaded onto the on-chip memory 120. Figure 3 , the processor 110 may execute the training program loaded onto the on-chip memory 120. The processor 110 may include a homogeneous multi-core processor and / or a heterogeneous multi-core processor. For example, the processor 110 may include at least one of a central processing unit (CPU), an image signal processing unit (ISP), a digital signal processing unit (DSP), a graphics processing unit (GPU), a visual processing unit (VPU), and / or a neural processing unit (NPU).

[0036] An application program, an operating system, a file system, a device driver, etc. for driving the electronic device 10 may be loaded onto the on-chip memory 120. In particular, referring to Figure 3 , the training program may be loaded onto the on-chip memory 120. For example, the on-chip memory 120 may be a cache, a register, a tightly coupled memory (TCM), an SRAM device, etc. The on-chip memory 120 may be implemented within the SoC 100 and may have a faster data input / output speed than the memory device 200. The on-chip memory 120 may be referred to as a “buffer memory”.

[0037] The memory controller 130 may access the memory device 200 in a direct memory access (DMA) manner. The memory controller 130 may include a command queue 131 , a command scheduler 132 , a read data queue 133 , and / or a write data queue 134 .

[0038] The command queue 131 may store commands and addresses generated by the processor 110. The commands and addresses stored in the command queue 131 may be provided to the DDR PHY 140 under the control of the command scheduler 132. In this case, one or more commands and one or more addresses stored in the command queue 131 may be provided in parallel to the DDR PHY 140. The command scheduler 132 may adjust the order of the commands and addresses stored in the command queue 131, the time point at which the commands and addresses are input to the command queue 131, the time point at which the commands and addresses are output from the command queue 131, and the like.

[0039] The read data queue 133 may store read data transmitted from the memory device 200 through the DDR PHY 140 according to a read request of the SoC 100 to the memory device 200. The read data stored in the read data queue 133 may be provided to the on-chip memory 120 and may be processed by the processor 110. The write data queue 134 may store write data to be stored in the memory device 200. The write data stored in the write data queue 134 according to the write request of the SoC 100 to the memory device 200 may be transmitted to the memory device 200 through the DDR PHY 140. For example, the command queue 131, the command scheduler 132, the read data queue 133, and / or the write data queue 134 of the memory controller 130 may be implemented in the SoC 100 in the form of hardware or software or in the form of a combination of hardware and software.

[0040] The DDR PHY 140 may include a clock generator 141, a command and address generator 142, a data receiver 143, a data transmitter 144, a reference voltage generator 145, and / or a training circuit 146. The clock generator 141, the command and address generator 142, the data receiver 143, the data transmitter 144, the reference voltage generator 145, and / or the training circuit 146 of the DDR PHY 140 may be implemented within the SoC 100 in the form of hardware (e.g., logic circuits) or software, or in the form of a combination of hardware and software.

[0041] The clock generator 141 may generate a clock CK, which is output to the memory device 200. The clock generator 141 may adjust the duty cycle of the clock CK according to the first code CODE1. Figure 3 Unlike shown, the clock generator 141 may generate differential clocks CK_t and CK_c and may transmit the clocks CK_t and CK_c to the memory device 200 .

[0042] The command and address generator 142 may receive a command or an address from the command queue 131, and may send the command or the address to the memory device 200. For example, the number of command and address transmission paths between the command and address generator 142 and the memory device 200, the logic state of a signal to be sent through the above transmission path based on the command or address, a transmission method, etc. may be defined in the JEDEC standard of the memory device 200.

[0043] The data receiver 143 may receive read data from the memory device 200. The data receiver 143 may provide the received read data to the read data queue 133. The data receiver 143 may include a read DQS / DQ aligner 143_1 that aligns the read DQS and the read DQ and / or adjusts the offset between the read DQS and the read DQ. The read DQS / DQ aligner 143_1 may include a delay locked loop (DLL) including a plurality of delay units. For example, the read DQS / DQ aligner 143_1 may find an improved or optimal sampling point for determining the read DQ at the SoC 100 while delaying the read DQS or the read DQ based on a time unit corresponding to the delay time of one delay unit.

[0044] The data transmitter 144 may receive write data from the write data queue 134. The data transmitter 144 may transmit the received write data to the memory device 200. The data transmitter 144 may include a write DQS / DQ aligner 144_1 that aligns the write DQS and the write DQ and / or adjusts the offset between the write DQS and the write DQ. The write DQS / DQ aligner 144_1 may also include a DLL that includes a plurality of delay units. The write DQS / DQ aligner 144_1 may find an improved or optimal sampling point for determining the write DQ at the memory device 200 while delaying the write DQS or the write DQ based on a time unit corresponding to the delay time of one delay unit.

[0045] The reference voltage generator 145 may generate a reference voltage VREF and may provide the reference voltage VREF to the data receiver 143. The reference voltage generator 145 may adjust a level of the reference voltage VREF according to the second code CODE2.

[0046] The training circuit 146 may operate under the control of a training program that is executed by the processor 110 and stored in the on-chip memory 120. The training circuit 146 may receive the aligned read DQS and the aligned read DQ from the read DQS / DQ aligner 143_1 of the data receiver 143, and may calculate a valid window margin (hereinafter referred to as "VWM"). The VWM may indicate a maximum interval at which the data receiver 143 can determine the read DQ output from the memory device 200 by using the read DQS output from the memory device 200. The VWM may indicate an interval at which the read DQ can be effectively sampled relative to the read DQS. Referring to Figure 4 Describing VWM. Training circuit 146 may store the calculated VWM in on-chip memory 120.

[0047] The training circuit 146 may adjust, change and / or calibrate the first code CODE1 and / or the second code CODE2 under the control of the training program. The training circuit 146 may control the command and address generator 142 under the control of the training program. For example, the command and address generator 142 may generate a read command, a write command, test data, etc. for training according to a test pattern of a training program that may be predetermined, and may send the read command, the write command, the test data, etc. to the memory device 200.

[0048] Figure 4 Shown by Figure 3 The VWM calculated by the training circuit. Figure 4 In the figure, the horizontal axis represents time "T" and the vertical axis represents voltage "V". Figure 4 In FIG. 1 , the shaded portion may indicate an eye diagram (or eye pattern) for reading the DQ.

[0049] As described above, the training circuit 146 can calculate the VWM of the read DQ. The training circuit 146 can change the time point used to determine the read DQ, that is, the sampling point when the delayed read DQS or read DQ is used. The training circuit 146 can find a valid sampling point that can effectively sample the read DQ among multiple sampling points, and can calculate the VWM of the read DQ based on the valid sampling point. For example, Figure 4 All sampling points shown in may be valid sampling points. The training circuit 146 may calculate the difference between two valid sampling points or a value less than the difference as the VWM of the read DQ.

[0050] Figure 5 Shows Figure 1 The memory device 200 may include a CK buffer 201, a CA buffer 202, a DQ buffer 203, a DQS buffer 204, a memory bank 210, a row decoder 221, a column decoder 223, a command decoder 230, an address demultiplexer 240, a write driver 251, an input / output sense amplifier 253, a write circuit 261, a read circuit 263, a mode register 270, and / or a reference voltage generator 280. All of the above components may be implemented in the memory device 200 in the form of hardware.

[0051] The CK buffer 201 may receive the clock CK from the SoC 100. The CK buffer 201 may provide the received clock CK to the internal components of the memory device 200. As described above, the SoC 100 may transmit the differential clocks CK_t and CK_c to the memory device 200, and the memory device 200 may include the CK buffer 201 that receives the clocks CK_t and CK_c, respectively.

[0052] The CA buffer 202 may receive commands and addresses CMD / ADD from the SoC 100 based on the clock CK received through the CK buffer 201. The CA buffer 202 may sample the commands and addresses CMD / ADD by using the clock CK. That is, the memory device 200 may be synchronized with the clock CK. The CA buffer 202 may provide the sampled commands and addresses CMD / ADD to the command decoder 230 and / or the address demultiplexer 240.

[0053] The DQ buffer 203 may receive a write DQ from the SoC 100, or may output a read DQ to the SoC 100. Since DQ is a bidirectional signal, the DQ buffer 203 may include a receiver (not shown) that receives the write DQ and a transmitter (not shown) that outputs the read DQ. For example, the receiver of the DQ buffer 203 may receive a write DQ from the SoC 100 based on the reference voltage VREF. The DQS buffer 204 may receive a write DQS from the SoC 100, or may output a read DQS to the SoC 100. Since DQS is a bidirectional signal, the DQS buffer 204 may include a receiver (not shown) that receives the write DQS and a transmitter (not shown) that outputs the read DQS.

[0054] In some example embodiments, the number of buffers 201 to 204 of the memory device 200 is not limited to Figure 5 The number of buffers 201 to 204 may be determined according to the capacity, operation speed, bandwidth, etc. of the memory device 200.

[0055] The memory bank 210 may include a memory cell array. The memory cell array may include memory cells connected to word lines and / or bit lines (not shown). The number of memory cells of the memory bank 210 may be determined according to the capacity of the memory bank 210, and the number of the memory bank 210 may be determined according to the capacity of the memory device 200.

[0056] The row decoder 221 may decode a row address under the control of the command decoder 230. The row decoder 221 may select and / or activate at least one word line corresponding to the row address. The column decoder 223 may decode a column address under the control of the command decoder 230. The column decoder 223 may select and / or activate at least one column selection line corresponding to the column address. Two or more bit lines may be connected to the column selection line. For example, a memory cell corresponding to a row address and a column address may be selected, and data input / output may be performed on the selected memory cell.

[0057] The command decoder 230 may decode a command output from the DDR PHY 140 of the SoC 100, and / or may control internal components of the memory device 200. For example, the command decoder 230 may decode an activate command, a read command, a write command, a precharge command, a mode register write command (MRW), a multi-purpose command (MPC), etc. All of the above commands may be predetermined in the JEDEC standard.

[0058] The address demultiplexer 240 may provide the address ADD received together with the command to the internal components of the memory device 200 under the control of the command decoder 230. The address demultiplexer 240 may provide the address sent from the SoC 100 together with the precharge command or the activation command to the row decoder 221 as a row address. The address demultiplexer 240 may provide the address sent from the SoC 100 together with the read command or the write command to the column decoder 223 as a column address. The address demultiplexer 240 may provide the address sent from the SoC 100 together with the mode register write command to the mode register 270 as a third code CODE3. The third code CODE3 may be referred to as an "operation code OPCODE" or an "operand". The address demultiplexer 240 may provide the address sent together with the multi-purpose command to a multi-purpose register (not shown), a first-in first-out (FIFO) 262, or a FIFO 264 of the memory device 200. The above-mentioned command and / or address may be defined in the JEDEC standard of the memory device 200. In some example embodiments, the address sent with the command may include an address of a memory cell of the memory device 200, may include an operation code OPCODE for setting an operation mode of the memory device 200, and / or may include test data for training to be stored in the FIFO 262 or the FIFO 264 instead of the storage body 210.

[0059] The write driver 251 may receive write data from the write circuit 261 and may write the write data to the selected memory cell through the input / output line GIO under the control of the command decoder 230. The input / output sense amplifier 253 may sense read data output from the selected memory cell through the input / output line GIO and may provide the read data to the read circuit 263.

[0060] The write circuit 261 may receive the write DQS and the write DQ from the SoC 100 through the DQS buffer 204 and the DQ buffer 203. The write circuit 261 may sample and / or deserialize the write DQ by using the write DQS, and may store the sampled result to the FIFO 262. The write circuit 261 may provide the write data stored in the FIFO 262 to the write driver 251.

[0061] The read circuit 263 may receive the read data from the input / output sense amplifier 253. The read circuit 263 may store the received read data to the FIFO 264. The read circuit 263 may serialize the read data and / or may send the read DQS and the read DQ to the SoC 100 through the DQS buffer 204 and the DQ buffer 203.

[0062] In some example embodiments, under the control of the command decoder 230 that decodes a write command, a multi-purpose command, etc., the read circuit 263 may store the address sent from the SoC 100 together with the write command, the multi-purpose command, etc., to the FIFO 264. In this case, the address stored in the FIFO 264 may be output as data to the SoC 100, and may not be stored in the memory bank 210. Thereafter, under the control of the command decoder 230 that decodes the read command, the read circuit 263 may output the address stored in the FIFO 264 as data to the SoC 100.

[0063] The mode register 270 may store the third code CODE3 provided from the address demultiplexer 240. The number of mode registers 270, addresses, size of the third code CODE3, etc. may be defined in the JEDEC standard. By issuing a mode register write command and an operation code OPCODE (e.g., a third code CODE3 for adjusting the level of a reference voltage VREF of the memory device 200), the SoC 100 may change a value stored in the mode register 270 and / or may set an operating condition, an operating mode, etc. of the memory device 200.

[0064] The reference voltage generator 280 may generate a reference voltage VREF and may provide the reference voltage VREF to the DQ buffer 203. The reference voltage VREF may be used by the DQ buffer 203 to determine the write DQ. The reference voltage generator 280 may adjust the level of the reference voltage VREF according to the third code CODE3 stored in the mode register 270. The reference voltage generator 280 may provide the reference voltage VREF to the DQS buffer 204 (not shown). The reference voltage VREF may be used by the DQS buffer 204 to receive the write DQS.

[0065] Figure 6 FIG. 1 is a flowchart showing an operation of a SoC performing multiple training operations according to some example embodiments of the present invention. Figure 1 , Figure 3 and Figure 5 To describe Figure 6 .

[0066] In operation S100, the SoC 100 may simultaneously perform training of a duty cycle of the clock CK adjusted according to the first code CODE1, training of a level of a reference voltage VREF of the SoC 100 adjusted according to the second code CODE2, and training of read DQS / DQ. For example, operation S100 may involve setting the first code CODE1, the second code CODE2, and / or an offset between read DQS and read DQ of the SoC 100 so that the SoC 100 can effectively read data stored in the memory device 200.

[0067] In operation S300, SoC 100 may simultaneously perform training on the level of reference voltage VREF and write DQS / DQ of memory device 200 adjusted according to third code CODE3. For example, operation S300 may involve setting the third code CODE3 and the offset between write DQS and write DQ so that SoC 100 can effectively write data to memory device 200.

[0068] Figure 7 is a diagram showing some example embodiments Figure 6 For example, the processor 110 may perform operations S110 to S190 by executing a training program stored in the on-chip memory 120.

[0069] In operation S110, the SoC 100 may set a first code CODE1 for adjusting a duty ratio of the clock CK to an initial value that may be predetermined, and may set a second code CODE2 for adjusting a level of a reference voltage VREF of the SoC 100 to an initial value that may be predetermined. The duty ratio of the clock CK may be set according to the first code CODE1 having the initial value, and the level of the reference voltage VREF of the SoC 100 may be set according to the second code CODE2 having the initial value.

[0070] Each of the first code CODE1 and the second code CODE2 may include a plurality of bits. For example, in the case where the first code CODE1 is composed of 3 bits, the value of the first code CODE1 may be 0 (=000 b ) to 7(=111 b ), and all values ​​of the first code CODE1 may be 0, 1, . . . , 7. The number of the plurality of bits may be predetermined based on the duty cycle of the clock CK or the adjustment range or adjustment unit of the reference voltage VREF.

[0071] For example, the duty ratios of the clocks CK respectively corresponding to the values ​​of the first code CODE1 may be different from each other. The difference (or step size) between the duty ratios of the clocks CK may be predetermined. In addition, the levels of the reference voltage VREF of the SoC 100 respectively corresponding to the values ​​of the second code CODE2 may be different from each other. The difference (or step size) between the levels of the reference voltage VREF of the SoC 100 may be predetermined.

[0072] In operation S120, SoC 100 may determine whether the value of the first code CODE1 exceeds the end value. The end value may be pre-set to any value among the values ​​of the first code CODE1 (e.g., the maximum value or the minimum value of the first code CODE1). Operation S120 may be repeatedly performed until the read VWM associated with all the values ​​that the first code CODE1 may have is calculated. When the value of the first code CODE1 does not exceed the end value ("Yes"), operation S130 may be performed; otherwise ("No"), operation S180 may be performed. Figure 7 In operation S120, the inequality sign is merely exemplary. That is, when the read VWM associated with all the values ​​that the first code CODE1 may have is not calculated, operation S130 may be performed; otherwise, operation S180 may be performed.

[0073] In operation S130, SoC 100 may determine whether the value of the second code CODE2 exceeds the end value. The end value may be pre-set to any value among the values ​​of the second code CODE2 (e.g., the maximum value or the minimum value of the second code CODE2). Operation S130 may be repeatedly performed until the read VWM associated with all values ​​that the second code CODE2 may have is calculated. When the value of the second code CODE2 does not exceed the end value ("Yes"), operation S140 may be performed; otherwise ("No"), operation S170 may be performed. Figure 7 In operation S130, the inequality sign is merely exemplary. That is, when the read VWMs associated with all the values ​​that the second code CODE2 may have are not calculated, operation S140 may be performed; otherwise, operation S170 may be performed.

[0074] In operation S140, SoC 100 may determine whether the training of read DQS / DQ has been passed. Passing the training of read DQS / DQ means that the read DQ can be effectively sampled by using the read DQS. In detail, when one of the first code CODE1 and the second code CODE2 changes, the read DQS / DQ aligner 143_1 of the data receiver 143 of SoC 100 may align the read DQS and the read DQ for sampling. When the training of read DQS / DQ has been passed ("Yes"), operation S150 may be performed; otherwise ("No"), operation S160 may be performed.

[0075] In operation S150, the SoC 100 may calculate a read VWM associated with a combination of the first code CODE1 and the second code CODE2 based on the read DQS and the read DQ aligned by the read DQS / DQ aligner 143_1. The combination may be a pair of values: one of the values ​​of the first code CODE1 and one of the values ​​of the second code CODE2. For example, a combination corresponding to a case where operation S150 is performed for the first time may be a pair of initial values ​​of the first code CODE1 and the second code CODE2. A combination corresponding to a case where operation S150 is performed again next may be a pair of values: the initial value of the first code CODE1 and the next value of the second code CODE2. The read VWM associated with all combinations of the first code CODE1 and the second code CODE2 may be calculated in the above manner.

[0076] In some example embodiments, the SoC 100 may send a write command and a read command to the memory device 200 based on a test mode of a predetermined training program to receive a read DQS and a read DQ from the memory device 200. For example, when a write command is output from the SoC 100 according to the test mode, the data transmitter 144 may not operate. The command and address generator 142 may send a write command and predetermined test data to the memory device 200 through a command and address transmission path. The memory device 200 may decode the write command according to the test mode, and may immediately store the predetermined test data in the FIFO 264 instead of in the memory bank 210. The write command of the test mode may be different from the write command for writing data to the memory bank 210, and / or may be a multi-purpose command.

[0077] In operation S160, the SoC 100 may set or change the value of the second code CODE2 to a next value. The SoC 100 may change the value of the second code CODE2 in various ways. For example, the SoC 100 may sequentially increase or decrease the value of the second code CODE2. The difference between the previous value of the second code CODE2 and the next value of the second code CODE2 may be a value corresponding to the least significant bit (LSB) of the second code CODE2. The level of the reference voltage VREF of the SoC 100 may be set according to the second code CODE2 having the next value. For example, the difference (or step size) between the level of the reference voltage VREF of the SoC 100 corresponding to the previous value of the second code CODE2 and the level of the reference voltage VREF of the SoC 100 corresponding to the next value of the second code CODE2 may be a predetermined value.

[0078] In operation S170, the SoC 100 may set and / or change the value of the first code CODE1 to a next value. The SoC 100 may change the value of the first code CODE1 in various ways. For example, the SoC 100 may sequentially increase or decrease the value of the first code CODE1. The difference between the previous value of the first code CODE1 and the next value of the first code CODE1 may be a value corresponding to the LSB of the first code CODE1. The duty cycle of the clock CK may be set according to the first code CODE1 having the next value. For example, the difference (or step size) between the duty cycle of the clock CK corresponding to the previous value of the first code CODE1 and the duty cycle of the clock CK corresponding to the next value of the first code CODE1 may be a predetermined value.

[0079] The SoC 100 may change the value of the first code CODE1 to a next value in operation S170, and may repeatedly change the value of the second code CODE2 while maintaining the changed value of the first code CODE1. The SoC 100 may calculate read VWMs associated with all combinations of one value of the first code CODE1 and all values ​​of the second code CODE2, respectively. When the read DQS / DQ training fails for a specific combination, the SoC 100 does not calculate the read VWM associated with the specific combination (refer to the "No" case of operation S140). Figure 7 , the SoC 100 may calculate the read VWMs respectively associated with combinations of all values ​​of the first code CODE1 and all values ​​of the second code CODE2 by repeatedly performing operations S120 to S170 .

[0080] In operation S180, the SoC 100 may find a maximum read VWM among a plurality of read VWMs calculated by repeatedly performing operations S120 to S170. A target value of the first code CODE1 and a target value of the second code CODE2 corresponding to the maximum read VWM may be provided to the clock generator 141 and the reference voltage generator 145, respectively. Therefore, the duty ratio of the clock CK may be set or adjusted according to the target value of the first code CODE1, and the level of the reference voltage VREF of the SoC 100 may be set or adjusted according to the target value of the second code CODE2.

[0081] In operation S190, the SoC 100 may perform read DQS / DQ training again at the duty cycle of the clock CK corresponding to the target value of the first code CODE1 and the level of the reference voltage VREF corresponding to the target value of the second code CODE2. The SoC 100 may align the read DQS and the read DQ again. By completing operation S190, the SoC 100 may simultaneously complete the training of the duty cycle of the clock CK, the training of the level of the reference voltage VREF of the SoC 100, and the training of the read DQS / DQ.

[0082] Figure 8 is a diagram showing a method according to another embodiment Figure 6 The operation flow chart of operation S100 will be referred to. Figure 7 To describe Figure 8 . Figure 8 Operation S210, operation S240, operation S250, operation S260, operation S270, operation S280 and operation S290 are Figure 7 Operation S110 , operation S140 , operation S150 , operation S160 , operation S170 , operation S180 , and operation S190 are substantially the same.

[0083] Operation S220 may be performed with Figure 7 The operation S130 is substantially the same as the operation S230 of Figure 7 The operation S120 is substantially the same as that of Figure 8 According to the flowchart of FIG. 1 , the SoC 100 can repeatedly change the value of the first code CODE1 while maintaining the value of the second code CODE2. Figure 7 According to the flowchart of FIG. 1 , the SoC 100 can repeatedly change the value of the second code CODE2 while maintaining the value of the first code CODE1. Figure 7 and Figure 8 In any case, the SoC 100 according to some example embodiments of the inventive concepts may calculate read VWMs associated with all combinations of all values ​​of the first code CODE1 and all values ​​of the second code CODE2, respectively.

[0084] Fig. 9 is a diagram showing a method according to some example embodiments Figure 6 1. For example, the processor 110 may perform operations S310 to S370 by executing a training program stored in the on-chip memory 120. In addition, operations S310 to S370 may be performed at a duty cycle of the clock CK set according to a target value of the first code CODE1 and a level of a reference voltage VREF of the SoC 100 set according to a target value of the second code CODE2.

[0085] In operation S310, the SoC 100 may set a third code CODE3 for adjusting the level of the reference voltage VREF of the memory device 200 to an initial value that may be predetermined. The command and address generator 142 of the SoC 100 may generate a command for adjusting the level of the reference voltage VREF of the memory device 200, and may send the command and the third code CODE3 having the initial value to the memory device 200. As in the first code CODE1 and the second code CODE2, the third code CODE3 may include a plurality of bits. The levels of the reference voltage VREF of the memory device 200 corresponding to the values ​​of the third code CODE3, respectively, may be different from each other. The difference (or step size) between the levels of the reference voltage VREF of the memory device 200 may be a predetermined value.

[0086] The initial value of the third code CODE3 may be stored in the mode register 270 and / or the multi-purpose register of the memory device 200. The SoC 100 may send the initial value of the third code CODE3 to the memory device 200 together with a command (e.g., a mode register write command or a multi-purpose command) for storing the initial value of the third code CODE3 in the mode register 270 and / or the multi-purpose register of the memory device 200.

[0087] In operation S320, SoC 100 may determine whether the value of the third code CODE3 exceeds the end value. The end value may be pre-set to any value among the values ​​of the third code CODE3 (e.g., the maximum value or the minimum value of the third code CODE3). Operation S320 may be repeatedly performed until the write VWM associated with all values ​​that the third code CODE3 may have is calculated. When the value of the third code CODE3 does not exceed the end value ("Yes"), operation S330 may be performed; otherwise ("No"), operation S360 may be performed. Fig. 9 In operation S320, the inequality sign is only exemplary. That is, when the write VWM associated with all the values ​​that the third code CODE3 can have is not calculated, operation S330 may be performed; otherwise, operation S360 may be performed.

[0088] In operation S330, the SoC 100 may determine whether the training of the write DQS / DQ has been passed. The training of the write DQS / DQ of operation S330 is different from the training of the read DQS / DQ of operation S140. The above-mentioned training of the read DQS / DQ may be an operation of aligning the read DQS and the read DQ to be output from the memory device 200 by the read DQS / DQ aligner 143_1 of the data receiver 143. On the contrary, the training of the write DQS / DQ may be an operation of aligning the write DQS and the write DQ to be output to the memory device 200 by the write DQS / DQ aligner 144_1 of the data transmitter 144. In operation S330, the read DQS and the read DQ are aligned as in the above-mentioned operation S190.

[0089] By training of write DQS / DQ means that after the memory device 200 receives the write DQS and write DQ output from the data transmitter 144, the SoC 100 effectively samples the read DQ output from the memory device 200 by using the read DQS output from the memory device 200. The SoC 100 may repeatedly send a write command and a read command to the memory device 200 to perform training of write DQS / DQ. In detail, when the third code CODE3 changes, the write DQS / DQ aligner 144_1 of the data transmitter 144 of the SoC 100 may align the write DQS and write DQ to be output to the memory device 200. When training of write DQS / DQ is passed ("Yes"), operation S340 may be performed; otherwise ("No"), operation S350 may be performed.

[0090] In operation S340, the SoC 100 may calculate a write VWM associated with the third code CODE3 based on the read DQS and read DQ output from the memory device 200 receiving the write DQS and write DQ aligned by the write DQS / DQ aligner 144_1. Here, the read DQS and read DQ output from the memory device 200 may be aligned by the DQS / DQ aligner 143_1 set by the training of operation S190.

[0091] In some example embodiments, the training circuit 146 may calculate the write VWM of operation S340 and the read VWM of operation S150 based on the read DQS and the read DQ, respectively. Figure 7 The VWM calculated in operation S150 is written to indicate the Fig. 9The read VWM may be calculated based on the read DQS and read DQ generated from the memory device 200 through the training performed by the SoC 100 to read data stored in the memory device 200. The write VWM may be calculated based on the read DQS and read DQ generated from the memory device 200 receiving the write DQS and write DQ through the training performed by the SoC 100 to write data to the memory device 200.

[0092] In some example embodiments, the SoC 100 may send a write command and a read command to the memory device 200 based on a test mode of a predetermined training program to send a write DQS and a write DQ to the memory device 200. For example, the command and address generator 142 may send a write command to the memory device 200 through a command and address transmission path. In addition to the write command, the data transmitter 144 may also send a write DQS and a write DQ based on predetermined test data to the memory device 200. For example, the write command of the test mode may be a write command for writing test data to the memory bank 210. For another example, the write command of the test mode may be a multi-purpose command for immediately storing the test data to the FIFO 264 instead of the memory bank 210.

[0093] In operation S350, the SoC 100 may set or change the value of the third code CODE3 to a next value. The SoC 100 may change the value of the third code CODE3 in various ways. For example, the SoC 100 may sequentially increase or decrease the value of the third code CODE3. The difference between the previous value of the third code CODE3 and the next value of the third code CODE3 may be a value corresponding to the LSB of the third code CODE3. The level of the reference voltage VREF of the memory device 200 may be set according to the third code CODE3 having the next value. For example, the difference (or step size) between the level of the reference voltage VREF of the memory device 200 corresponding to the previous value of the third code CODE3 and the level of the reference voltage VREF of the memory device 200 corresponding to the next value of the third code CODE3 may be a predeterminable value. The SoC 100 may calculate the write VWMs associated with the values ​​of the third code CODE3, respectively. When the write DQS / DQ training fails for a specific value, the SoC 100 does not calculate the write VWM associated with the value.

[0094] In operation S360, the SoC 100 may find a maximum write VWM among a plurality of write VWMs calculated by repeatedly performing operations S320 to S350. A target value of the third code CODE3 corresponding to the maximum write VWM may be provided together with a command to the mode register 270 and / or a multi-purpose register of the memory device 200. Therefore, a level of a reference voltage VREF of the memory device 200 may be set or adjusted according to the target value of the third code CODE3.

[0095] In operation S370, the SoC 100 may perform write DQS / DQ training again at the level of the reference voltage VREF corresponding to the target value of the third code CODE3. The SoC 100 may align the write DQS and the write DQ again. By completing operation S370, the SoC 100 may simultaneously complete the training of the level of the reference voltage VREF of the memory device 200 and the training of the write DQS / DQ.

[0096] Fig.10 Shown according to Figures 6 to 9 The flowchart of the read VWM and write VWM stored in the SoC. For ease of explanation, Fig.10 Components of the memory controller 130 and components of the DDR PHY 140 are omitted.

[0097] Table 1 stored in the on-chip memory 120 may be executed Figure 6 Operation S100, Figure 7 Operations S110 to S190 and / or Figure 8 The results of operations S210 to S290 are obtained by reading the results of operations S210 to S290. For example, the first code CODE1 may have the following values: value [1], value [2], ..., value [x] (x is a natural number of 2 or greater), and the second code CODE2 may have the following values: value [1], value [2], ..., value [y] (y is a natural number of 2 or greater). Here, "x" and "y" may be the same as or different from each other. Referring to Table 1, a plurality of read VWMs (VWM1 to VWM9) associated with combinations of all values ​​of the first code CODE1 (value [1], value [2], ..., value [x]) and all values ​​of the second code CODE2 (value [1], value [2], ..., value [y]), respectively, may be calculated by a training program executed by the processor 110.

[0098] For example, when VWM4 is the largest among the plurality of read VWMs (VWM1 to VWM9), the target value of the first code CODE1 may be value [2], and the target value of the second code CODE2 may be value [1]. The training program may complete the training of operation S100 by setting the first code CODE1 to value [2] and the second code CODE2 to value [1].

[0099] Table 2 stored in the on-chip memory 120 may be executed Figure 6 Operation S300 and / or Fig. 9 The results of operations S310 to S370 of the third code CODE3 are shown in FIG. 1 . For example, the third code CODE3 may have the following values: value [1], value [2], ..., value [z] (z is a natural number of 2 or greater). Here, "z" may be the same as or different from any one of "x" and "y". Referring to Table 2, a plurality of write VWMs (VWM1 to VWM3) associated with all values ​​of the third code CODE3 (value [1], value [2], ..., value [z]), respectively, may be calculated by a training program executed by the processor 110.

[0100] For example, when VWM2 among the plurality of write VWMs (VWM1 to VWM3) is the largest, the target value of the third code CODE3 may be value [2] (eg, in the best case). The training program may complete the training of operation S300 by setting the third code CODE3 to value [2].

[0101] According to some example embodiments conceived in the present invention, the SoC may simultaneously perform multiple trainings that are dependent on each other on a memory device, and may set the duty cycle of the clock, the level of the reference voltage of the SoC, the level of the reference voltage of the memory device, the offset between the read DQS and the read DQ, and / or the offset between the write DQS and the write DQ to an improved value or an optimal value.

[0102] While the inventive concepts have been described with reference to example embodiments thereof, it will be apparent to those skilled in the art that various changes and / or modifications may be made thereto without departing from the spirit and / or scope of the inventive concepts as set forth in the appended claims.

Claims

1. A system on a chip, include: a clock generator configured to adjust a duty cycle of a clock to be output to the memory device according to a first code; a reference voltage generator configured to adjust a first level of a first reference voltage used to determine a first data input / output signal output from the memory device according to a second code; a data receiver configured to align the first data input / output signal and a first data strobe signal output from the memory device when one of the first code and the second code changes; as well as a processor configured to calculate a plurality of read valid window margins for a plurality of combinations of the first code and the second code based on the first data strobe signal and the first data input / output signal, The adjustment of the duty cycle, the adjustment of the first level, and the alignment of the first data input / output signal and the first data strobe signal are performed simultaneously.

2. The system on chip according to claim 1, in, Each combination of the plurality of combinations is a pair of values: one of the values ​​of the first code and one of the values ​​of the second code.

3. The system on chip according to claim 2, in, The processor is further configured to: determining whether the data receiver aligns the first data input / output signal and the first data strobe signal output from the memory device according to a first value of the first code and a second value of the second code, and In response to the determination, one of the plurality of read valid window margins corresponding to a pair of the first value and the second value is calculated.

4. The system on chip according to claim 1, in, The duty cycle of the clock and the first level of the first reference voltage are set according to a first target value of the first code and a second target value of the second code, respectively. The first target value of the first code and the second target value of the second code correspond to a maximum read valid window margin among the plurality of read valid window margins.

5. The system on chip according to claim 4, in, The data receiver is also configured to realign the first data input / output signal and the first data select signal output from the memory device at a duty cycle of the clock corresponding to the first target value and a first level of the first reference voltage corresponding to the second target value.

6. The system on chip according to claim 4, further comprising: include: The data transmitter is configured to transmit a second data strobe signal and a second data input / output signal to the memory device through a path that respectively transmits the first data strobe signal and the first data input / output signal from the memory device to the data receiver.

7. The system on chip according to claim 6, in, The processor is also configured to generate a command for adjusting a second level of a second reference voltage of the memory device after setting the duty cycle of the clock and the first level of the first reference voltage according to the first target value and the second target value, respectively, wherein the second level of the second reference voltage is used to determine the second data input / output signal.

8. The system on chip according to claim 7, in, adjusting a second level of the second reference voltage of the memory device according to a third code, wherein the third code is sent to the memory device together with the command, The data transmitter is further configured to: align the second data input / output signal and the second data strobe signal to be output to the memory device in response to the third code change, and The processor is further configured to calculate a plurality of write valid window margins for the third code based on the first data strobe signal and the first data input / output signal.

9. The system on chip according to claim 8, in, The reference voltage generator is further configured to set a second level of the second reference voltage of the memory device according to a third target value of the third code corresponding to a maximum write enable window margin among the plurality of write enable window margins.

10. The system on chip according to claim 9, in, The data transmitter is further configured to realign the second data input / output signal and the second data strobe signal to be output to the memory device at a second level of the second reference voltage of the memory device.

11. A method for operating a system on a chip connected to a memory device, the method include: changing one of a first code and a second code, wherein the first code is used to adjust a duty cycle of a clock to be provided to the memory device, and the second code is used to adjust a first level of a first reference voltage of the system on chip, the first level of the first reference voltage being used to determine a first data input / output signal output from the memory device; aligning the first data input / output signal and a first data strobe signal output from the memory device; calculating a plurality of read valid window margins for a plurality of combinations based on the first data strobe signal and the first data input / output signal, wherein each of the plurality of combinations is a pair of values: one of the values ​​of the first code and one of the values ​​of the second code; and setting a duty cycle of the clock and a first level of the first reference voltage of the system on chip based on a first target value of the first code and a second target value of the second code corresponding to a maximum read valid window margin among the plurality of read valid window margins, respectively, The changing of one of the first code and the second code, the alignment of the first data input / output signal and the first data strobe signal, and the setting of the duty ratio and the first level are performed simultaneously.

12. The method according to claim 11, in, Changing one of the first code and the second code includes: changing the first code to a first value, and repeatedly changing the second code while maintaining the first code at the first value; and The first code is changed from the first value to a second value, and the second code is repeatedly changed while the first code is maintained at the second value.

13. The method according to claim 11, in, Changing one of the first code and the second code includes: changing the second code to a first value, and repeatedly changing the first code while maintaining the second code at the first value; and The second code is changed from the first value to a second value, and the first code is repeatedly changed while the second code is maintained at the second value.

14. The method according to claim 11, further comprising: include: setting a third code for adjusting a second level of a second reference voltage of the memory device; changing the third code and aligning a second data input / output signal and a second data strobe signal to be output to the memory device; calculating a plurality of write valid window margins for the third code based on the first data strobe signal and the first data input / output signal; as well as A second level of the second reference voltage of the memory device is set according to a third target value of the third code corresponding to a maximum write enable window margin among the plurality of write enable window margins.

15. The method according to claim 14, in, After setting the duty cycle of the clock and the first level of the first reference voltage of the system on chip according to the first target value of the first code and the second target value of the second code respectively, setting the second level of the second reference voltage of the memory device according to the third target value of the third code.

16. An electronic device, include: The system on chip is configured to generate a clock; as well as a memory device, synchronized with the clock output from the system on chip, The system on chip is further configured to simultaneously perform the following operations: a first training of a duty cycle of the clock adjusted according to a first code, second training of a first level of a first reference voltage of the system on chip adjusted according to a second code, the first level of the first reference voltage being used to determine a first data input / output signal output from the memory device, and A third training is performed for a first offset between the first data input / output signal and a first data strobe signal output from the memory device.

17. The electronic device according to claim 16, in, The system on chip is further configured to: changing one of the first code and the second code, aligning the first data strobe signal and the first data input / output signal, calculating a plurality of read valid window margins for a plurality of combinations of the first code and the second code, and The duty cycle of the clock and the first level of the first reference voltage of the system on chip are set based on a first target value of the first code and a second target value of the second code, respectively, wherein the first target value and the second target value correspond to a maximum read valid window margin among the multiple read valid window margins.

18. The electronic device according to claim 16, in, The system on chip is also configured to simultaneously perform the following operations: fourth training of a second level of a second reference voltage of the memory device, the second level of the second reference voltage being adjusted according to a third code and used to determine a second data input / output signal output from the system on chip, and A fifth training is performed for a second offset between the second data input / output signal and a second data strobe signal to be output to the memory device.

19. The electronic device according to claim 18, in, The system on chip is further configured to: Change the third code, aligning the second data strobe signal and the second data input / output signal, calculating a plurality of write valid window margins for the third code based on the first data strobe signal and the first data input / output signal, and A second level of the second reference voltage of the memory device is set according to a third target value of the third code.

20. The electronic device according to claim 19, in, The memory device is a dynamic random access memory DRAM device, and The system on chip is also configured to generate a mode register write command that stores the third target value to a mode register of the memory device.