[go: up one dir, main page]

CN1983446A - Memory controller and its control method - Google Patents

Memory controller and its control method Download PDF

Info

Publication number
CN1983446A
CN1983446A CN 200510137024 CN200510137024A CN1983446A CN 1983446 A CN1983446 A CN 1983446A CN 200510137024 CN200510137024 CN 200510137024 CN 200510137024 A CN200510137024 A CN 200510137024A CN 1983446 A CN1983446 A CN 1983446A
Authority
CN
China
Prior art keywords
phase
signal
clock signal
phase clock
clock signals
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.)
Pending
Application number
CN 200510137024
Other languages
Chinese (zh)
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.)
Prolific Technology Inc
Original Assignee
Prolific Technology 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 Prolific Technology Inc filed Critical Prolific Technology Inc
Priority to CN 200510137024 priority Critical patent/CN1983446A/en
Publication of CN1983446A publication Critical patent/CN1983446A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Dram (AREA)

Abstract

A memory controller and a control method thereof. The memory controller includes a control logic circuit, a phase-locked loop and a multiplexer. The phase-locked loop generates a plurality of phase clock signals according to the system clock signal, the phase clock signals have the same frequency as the system clock signal, and the phase clock signals have different phase differences. The multiplexer receives the phase clock signals, and selects one of the phase clock signals to output under the control of the control logic circuit so as to generate a selected phase clock signal.

Description

内存控制器及其控制方法Memory controller and its control method

技术领域technical field

本发明有关于一种内存控制器及其方法,且特别有关于一种DDR SDRAM内存控制器及其方法。The present invention relates to a memory controller and its method, and in particular to a DDR SDRAM memory controller and its method.

背景技术Background technique

请参照图1,其绘示了已知的内存控制器的方块图。内存控制器100包括控制逻辑电路110、触发器120、130及缓冲器141至143。当数据传输时,需撷取传输数据的内容,必须配合产生相对应的撷取讯号。而撷取讯号需配合需求而延迟周期。Please refer to FIG. 1 , which shows a block diagram of a known memory controller. The memory controller 100 includes a control logic circuit 110 , flip-flops 120 , 130 and buffers 141 - 143 . When data is transmitted, the content of the transmitted data needs to be captured, and corresponding capture signals must be generated accordingly. The acquisition signal needs to be delayed according to the demand.

控制逻辑电路110输出控制讯号C011。触发器120接收控制讯号C011与系统时钟讯号Clk11,以产生控制讯号C012至触发器130。触发器120接收控制讯号C012与延迟后系统时钟讯号Clk12,以产生控制讯号C012输出。The control logic circuit 110 outputs a control signal C011. The flip-flop 120 receives the control signal C011 and the system clock signal Clk11 to generate the control signal C012 to the flip-flop 130 . The flip-flop 120 receives the control signal C012 and the delayed system clock signal Clk12 to generate the control signal C012 for output.

延迟后系统时钟讯号Clk12的产生,是以系统时钟讯号Clk11经缓冲器141至143而产生。若以100Mhz的系统时钟讯号而言,若使延迟后系统时钟讯号Clk12有1/4周期的延迟,即2.5ns。需经缓冲器的调整,以及考虑线路本身造成的延迟。且每次微调皆需经精确的模拟及线路的布局。频率若改为80Mhz,原2.5ns即不适用。因此,此已知的内存控制器亦无法任意更换频率。The delayed system clock signal Clk12 is generated by the system clock signal Clk11 through the buffers 141 to 143 . Taking the system clock signal of 100Mhz as an example, if the delayed system clock signal Clk12 has a 1/4 cycle delay, that is, 2.5ns. Need to adjust the buffer, and consider the delay caused by the line itself. And every fine-tuning requires precise simulation and circuit layout. If the frequency is changed to 80Mhz, the original 2.5ns is not applicable. Therefore, the frequency of this known memory controller cannot be changed arbitrarily.

请参照图2,其绘示了另一已知的内存控制器的方块图。内存控制器200与图1的内存控制器100不同之处在于,输入触发器130的延迟后系统时钟讯号Clk13的产生,是使系统时钟讯号Clk11经缓冲器241至244后,再经多任务器245选择经多少缓冲器延迟产生的时钟讯号,以输出延迟后系统时钟讯号Clk13至触发器130。虽然可透过多任务器选择系统时钟讯号延迟的程度,但延迟相位的精准度仍须由缓冲器本身缓冲的时间及其数量决定,效果并不如预期。且上述已知技术易受制程、温度、电压等变量影响,难以提升速度。Please refer to FIG. 2 , which shows a block diagram of another known memory controller. The difference between the memory controller 200 and the memory controller 100 in FIG. 1 is that the generation of the system clock signal Clk13 after the delay of the input flip-flop 130 is to make the system clock signal Clk11 pass through the buffers 241 to 244 and then pass through the multiplexer. 245 selects how many buffers to delay the generated clock signal to output the delayed system clock signal Clk13 to the flip-flop 130 . Although the degree of delay of the system clock signal can be selected through the multiplexer, the accuracy of the delay phase is still determined by the buffering time and quantity of the buffer itself, and the effect is not as expected. Moreover, the above-mentioned known technologies are easily affected by variables such as manufacturing process, temperature, and voltage, and it is difficult to increase the speed.

发明内容Contents of the invention

有鉴于此,本发明的目的就是在提供一种内存控制器及其控制方法。可配合系统需求调整讯号延迟相位。且可依系统需求改变主频率,而不需重新设定延迟相位。In view of this, the object of the present invention is to provide a memory controller and a control method thereof. The signal delay phase can be adjusted according to the system requirements. And the main frequency can be changed according to the system requirements without resetting the delay phase.

根据本发明的目的,提出一种内存控制器,包括控制逻辑电路、相位锁相回路及多任务器。相位锁相回路依据系统时钟讯号产生多个相位时钟讯号,此些相位时钟讯号与系统时钟讯号具有相同频率,这些相位时钟讯号相互具有不同的相位差。多任务器接收这些相位时钟讯号,在控制逻辑电路的控制下,选择这些相位时钟讯号的一输出,以产生一选择后相位时钟讯号。According to the object of the present invention, a memory controller is proposed, including a control logic circuit, a phase-locked loop and a multiplexer. The phase-locked loop generates a plurality of phase clock signals according to the system clock signal. These phase clock signals have the same frequency as the system clock signal, and these phase clock signals have different phase differences. The multiplexer receives these phase clock signals, and under the control of the control logic circuit, selects an output of these phase clock signals to generate a selected phase clock signal.

根据本发明的另一目的,提出一种内存控制方法,用于一内存控制器。首先,以相位锁相回路依据系统时钟讯号产生多个相位时钟讯号。这些相位时钟讯号与系统时钟讯号具有相同频率,且这些相位时钟讯号相互具有不同的相位差。之后,选择此些相位时钟讯号的一输出,以产生一选择后相位时钟讯号。According to another object of the present invention, a memory control method for a memory controller is provided. Firstly, a phase-locked loop is used to generate multiple phase clock signals according to the system clock signal. These phase clock signals have the same frequency as the system clock signal, and these phase clock signals have different phase differences from each other. Afterwards, an output of the phase clock signals is selected to generate a selected phase clock signal.

为让本发明的上述目的、特征、和优点能更明显易懂,下文特举一较佳实施例,并配合附图,作详细说明如下:In order to make the above-mentioned purposes, features, and advantages of the present invention more comprehensible, a preferred embodiment is specifically cited below, together with the accompanying drawings, as follows:

附图说明Description of drawings

图1绘示了已知的内存控制器的方块图。。FIG. 1 shows a block diagram of a known memory controller. .

图2绘示了另一已知的内存控制器的方块图。FIG. 2 is a block diagram of another known memory controller.

图3绘示了依本发明一较佳实施例的内存控制器的方块图。FIG. 3 is a block diagram of a memory controller according to a preferred embodiment of the present invention.

图4绘示了依本发明一第二实施例的内存控制器的方块图。FIG. 4 is a block diagram of a memory controller according to a second embodiment of the present invention.

具体实施方式Detailed ways

请参照图3,其绘示了依照本发明一较佳实施例的内存控制器的方块图。内存控制器300包括控制逻辑电路310、相位锁相回路320(Phase Locked Loop,PLL)及多任务器330。相位锁相回路320依据系统时钟讯号Clk31产生多个相位时钟讯号Cmp,这些相位时钟讯号Cmp与系统时钟讯号Clk31具有相同频率,相位时钟讯号彼此相互具有不同的相位差。多任务器330接收上述相位时钟讯号Cmp,于控制逻辑电路310的讯号Clkse控制下,选择相位时钟讯号Cmp之一输出,以产生一选择后相位时钟讯号Clk32。Please refer to FIG. 3 , which shows a block diagram of a memory controller according to a preferred embodiment of the present invention. The memory controller 300 includes a control logic circuit 310 , a phase locked loop 320 (Phase Locked Loop, PLL) and a multiplexer 330 . The phase locked loop 320 generates a plurality of phase clock signals Cmp according to the system clock signal Clk31. The phase clock signals Cmp and the system clock signal Clk31 have the same frequency, and the phase clock signals have different phase differences. The multiplexer 330 receives the phase clock signal Cmp, and under the control of the signal Clkse of the control logic circuit 310 , selects one of the phase clock signals Cmp to output to generate a selected phase clock signal Clk32.

选择后相位时钟讯号Clk32用以做为时钟讯号,或用以做为闪控讯号(strobe signal)。可视所需的时钟讯号的延迟程度,或闪控讯号所需延迟周期的程度调整多任务器330的输出。The selected post-phase clock signal Clk32 is used as a clock signal, or used as a strobe signal. The output of the multiplexer 330 can be adjusted according to the required delay of the clock signal or the required delay period of the flash control signal.

内存控制器300例如用于双倍同步动态随机存取内存(Double Data RateSDRAM,DDR SDRAM)中。若选择后相位时钟讯号Clk32用为闪控讯号时,于DDRSDRAM的需求中,须数据讯号的中段以撷取数据,而较系统时钟讯号延迟1/4周期。因于DDR SDRAM利用双沿时钟转换(Double Transitlon Clocking)技术,在系统时钟讯号的上升沿(Raising edge)及下沿(Falling edge)触发传送,即约每1/2周期即需触发。而闪控讯号即需于数据的中段,即1/4周期以撷取资料。The memory controller 300 is used, for example, in a double synchronous dynamic random access memory (Double Data Rate SDRAM, DDR SDRAM). If the rear-phase clock signal Clk32 is selected as the flash control signal, in the demand of DDRSDRAM, the middle segment of the data signal is required to retrieve data, and the system clock signal is delayed by 1/4 period. Because DDR SDRAM uses double-edge clock conversion (Double Transitlon Clocking) technology, the trigger transmission is triggered on the rising edge (Raising edge) and the falling edge (Falling edge) of the system clock signal, that is, it needs to be triggered about every 1/2 cycle. The flash control signal needs to be in the middle of the data, that is, 1/4 cycle to acquire data.

DDR SDRAM为同步动态随机存取内存(Synchronized Dynamic RandomAccess Memory,SDRAM)下一世代的内存架构。DDR SDRAM与SDRAM的比较,DDRSDRAM的传输速度是SDRAM的双倍。若SDRAM的时钟频率为66Mhz,且传输时间的间隔是15ns。那对于DDR SDRAM言,其传输数据时间的间隔则为7.5ns,传送频率可达133Mhz。DDR SDRAM is the memory architecture of the next generation of Synchronized Dynamic Random Access Memory (SDRAM). Compared with DDR SDRAM and SDRAM, the transmission speed of DDR SDRAM is twice that of SDRAM. If the clock frequency of SDRAM is 66Mhz, and the transmission time interval is 15ns. For DDR SDRAM, the interval of data transmission time is 7.5ns, and the transmission frequency can reach 133Mhz.

而DDR SDRAM的原理即如前述,传送数据是采在同一个时钟周期,上下波段都在做传数据的工作,而相较于SDRAM在同一个时钟周期,只传一次数据,DDR SDRAM的效率是SDRAM的两倍。The principle of DDR SDRAM is as mentioned above, the transmission data is collected in the same clock cycle, and both the upper and lower bands are doing data transmission work, and compared with SDRAM, which only transmits data once in the same clock cycle, the efficiency of DDR SDRAM is Twice that of SDRAM.

相位锁相回路320是将其内部的多重相位拉出,产生多重相位但仍同频的时钟讯号,即上述的各相位时钟讯号Cmp。在本实施例中,共有八个相位时钟讯号Cmp,分别延迟1/8个周期、2/8个周期至7/8个周期。而相位锁相回路320中所有相位关系不论任何频率皆永远固定,故选择后的相位时钟讯号,也不会被频率影响。而相位时钟讯号Cmp的频率与系统时钟讯号Clk31相等。The phase-locked loop 320 pulls out the multiple phases inside it to generate a clock signal with multiple phases but still the same frequency, that is, the above-mentioned clock signal Cmp of each phase. In this embodiment, there are eight phase clock signals Cmp, which are respectively delayed by 1/8 cycle, 2/8 cycle to 7/8 cycle. All the phase relationships in the phase-locked loop 320 are always fixed regardless of any frequency, so the selected phase clock signal will not be affected by the frequency. The frequency of the phase clock signal Cmp is equal to that of the system clock signal Clk31.

若内存的频率,须对应系统更换时,或是环境影响的频率升降时,也不会影响到讯号相对的相位。而系统会自动对准控制讯号所需要的相位,而不需软件再调整。If the frequency of the memory must correspond to the replacement of the system, or when the frequency is increased or decreased due to environmental influences, the relative phase of the signal will not be affected. And the system will automatically align the phase required by the control signal without software re-adjustment.

请参照图4,其绘示了依本发明提出的第二实施例的内存控制器的方块图。与前实施例不同之处在于本实施例还包括触发器410及420。触发器410接收系统时钟讯号Clk31及控制逻辑电路310的第一讯号Co31,以输出第二讯号Co32。触发器420接收第二讯号Co32及选择后相位时钟讯号Clk32以产生第三讯号S3。第三讯号S3例如用以为控制讯号,例如为读取讯号、写入讯号或是地址讯号。Please refer to FIG. 4 , which shows a block diagram of a memory controller according to a second embodiment of the present invention. The difference from the previous embodiment is that this embodiment further includes triggers 410 and 420 . The flip-flop 410 receives the system clock signal Clk31 and the first signal Co31 of the control logic circuit 310 to output the second signal Co32. The flip-flop 420 receives the second signal Co32 and the selected phase clock signal Clk32 to generate the third signal S3. The third signal S3 is, for example, used as a control signal, such as a read signal, a write signal or an address signal.

本发明上述实施例所揭示的内存控制器及其控制方法,可配合系统需求调整讯号延迟相位。且可依系统需求改变主频率,而不需重新设定延迟相位,并不需如已知的作法配合不同的频率,以改变讯号所需的延迟时间。The memory controller and its control method disclosed in the above embodiments of the present invention can adjust the signal delay phase according to the system requirements. Moreover, the main frequency can be changed according to the system requirements without resetting the delay phase, and it is not necessary to cooperate with different frequencies to change the delay time required for the signal as in the known practice.

综上所述,虽然本发明已以一较佳实施例揭示如上,然其并非用以限定本发明,任何熟悉本技术领域者,在不脱离本发明的精神和范围内,当可作各种的更动与润饰,因此本发明的保护范围当视后附的申请专利范围所界定者为准。In summary, although the present invention has been disclosed as above with a preferred embodiment, it is not intended to limit the present invention. Anyone familiar with the technical field may make various modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention should be defined by the scope of the appended patent application.

Claims (10)

1.一种内存控制器,包括:1. A memory controller, comprising: 一控制逻辑电路;a control logic circuit; 一相位锁相回路,依据一系统时钟讯号产生多个相位时钟讯号,这些相位时钟讯号与该系统时钟讯号具有相同频率,这些相位时钟讯号相互具有不同的相位差;以及a phase-locked loop for generating a plurality of phase clock signals based on a system clock signal, the phase clock signals having the same frequency as the system clock signal, and the phase clock signals having different phase differences from each other; and 一多任务器,接收该些相位时钟讯号,于该控制逻辑电路的控制下,选择这些相位时钟讯号之一输出,以产生一选择后相位时钟讯号。A multiplexer receives the phase clock signals, and under the control of the control logic circuit, selects one of the phase clock signals to output to generate a selected phase clock signal. 2.如权利要求1所述的控制器,其特征在于,该选择后相位时钟讯号用为时钟讯号。2. The controller of claim 1, wherein the selected phase clock signal is used as a clock signal. 3.如权利要求1所述的控制器,其特征在于,该选择后相位时钟讯号用为闪控讯号。3. The controller according to claim 1, wherein the selected phase clock signal is used as a flash control signal. 4.如权利要求1所述的控制器,其特征在于,还包括:4. The controller of claim 1, further comprising: 第一触发器,接收该系统时钟讯号及该控制逻辑电路的一第一讯号,以输出一第二讯号;及a first flip-flop receives the system clock signal and a first signal of the control logic circuit to output a second signal; and 一第二触发器,接收该第二讯号及该选择后相位时钟讯号以产生一第三讯号。A second flip-flop receives the second signal and the selected phase clock signal to generate a third signal. 5.如权利要求1所述的控制器,其特征在于,该第三讯号用作为控制讯号。5. The controller as claimed in claim 1, wherein the third signal is used as a control signal. 6.如权利要求1所述的控制器,其特征在于,用于双倍同步动态随机存取内存中。6. The controller according to claim 1, wherein it is used in double synchronous dynamic random access memory. 7.一种内存控制方法,用于一内存控制器,包括:7. A memory control method for a memory controller, comprising: 以一相位锁相回路依据一系统时钟讯号产生多个相位时钟讯号,这些相位时钟讯号与该系统时钟讯号具有相同频率,这些相位时钟讯号相互具有不同的相位差;以及using a phase-locked loop to generate a plurality of phase clock signals according to a system clock signal, these phase clock signals have the same frequency as the system clock signal, and these phase clock signals have different phase differences from each other; and 选择这些相位时钟讯号之一输出,以产生一选择后相位时钟讯号。One of the phase clock signals is selected for output to generate a selected phase clock signal. 8.如权利要求7所述的控制方法,其特征在于,该选择后相位时钟讯号用作为时钟讯号。8. The control method according to claim 7, wherein the selected phase clock signal is used as a clock signal. 9.如权利要求7所述的控制方法,其特征在于,该选择后相位时钟讯号用作为闪控讯号。9. The control method according to claim 7, wherein the selected phase clock signal is used as a flash control signal. 10.如权利要求7所述的控制方法,其特征在于,该内存控制器用于DDRSDRAM中。10. The control method according to claim 7, wherein the memory controller is used in DDR SDRAM.
CN 200510137024 2005-12-13 2005-12-13 Memory controller and its control method Pending CN1983446A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200510137024 CN1983446A (en) 2005-12-13 2005-12-13 Memory controller and its control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200510137024 CN1983446A (en) 2005-12-13 2005-12-13 Memory controller and its control method

Publications (1)

Publication Number Publication Date
CN1983446A true CN1983446A (en) 2007-06-20

Family

ID=38165909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200510137024 Pending CN1983446A (en) 2005-12-13 2005-12-13 Memory controller and its control method

Country Status (1)

Country Link
CN (1) CN1983446A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101930790A (en) * 2009-06-26 2010-12-29 扬智科技股份有限公司 Data Access System and Its Adaptive Frequency Signal Controller
US8347133B2 (en) 2009-04-30 2013-01-01 Asustek Computer Inc. Method for adjusting computer system and memory
CN104796219A (en) * 2014-01-20 2015-07-22 晨星半导体股份有限公司 Signal transmission method and related signal transmitter
CN108170367A (en) * 2016-12-07 2018-06-15 瑞昱半导体股份有限公司 Memory control circuit and method thereof

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8347133B2 (en) 2009-04-30 2013-01-01 Asustek Computer Inc. Method for adjusting computer system and memory
CN101930790A (en) * 2009-06-26 2010-12-29 扬智科技股份有限公司 Data Access System and Its Adaptive Frequency Signal Controller
CN104796219A (en) * 2014-01-20 2015-07-22 晨星半导体股份有限公司 Signal transmission method and related signal transmitter
CN104796219B (en) * 2014-01-20 2018-06-05 晨星半导体股份有限公司 Signal transmission method and related signal transmitter
CN108170367A (en) * 2016-12-07 2018-06-15 瑞昱半导体股份有限公司 Memory control circuit and method thereof

Similar Documents

Publication Publication Date Title
JP5537568B2 (en) Signal receiving circuit, memory controller, processor, computer, and phase control method
US8115529B2 (en) Device and control method of device
CN100431267C (en) Synchronous mirror delay (SMD) circuit and method including a ring oscillator for timing coarse and fine delay intervals
EP1903446B1 (en) Apparatus and method for controlling a memory interface
US20120242382A1 (en) Phase adjuster and semiconductor apparatus
US20050270852A1 (en) Read latency control circuit
US10097189B2 (en) Semiconductor device
US5990715A (en) Semiconductor integrated circuit using a synchronized control signal
TWI566256B (en) Memory system and memory physical layer interface circuit
JP2010287304A (en) Semiconductor memory device and method of generating output enable signal
US20150280721A1 (en) Clock delay detecting circuit and semiconductor apparatus using the same
KR101138832B1 (en) Semiconductor memory device and method operating the same
KR20150113310A (en) Output Controlling Circuit and Output Driving Circuit for Semiconductor Apparatus
US7864626B2 (en) Interface circuit, memory interface system, and data reception method
JP6313085B2 (en) Semiconductor device
US7181638B2 (en) Method and apparatus for skewing data with respect to command on a DDR interface
CN110349606B (en) Semiconductor memory device and method of operating the same
US7385430B2 (en) Data output clock generating circuit and method of generating data output clock of semiconductor memory apparatus
CN1983446A (en) Memory controller and its control method
JP5113433B2 (en) Memory controller
US20070121775A1 (en) Memory controller and method thereof
KR100967112B1 (en) Output Enable Signal Generation Circuit
US7676643B2 (en) Data interface device for accessing memory
CN106982049A (en) Delay circuit and chip system with same
JP2004258888A (en) Semiconductor integrated circuit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication