TWI694442B - Control circuit and control method for pseudo static random access memory - Google Patents

Control circuit and control method for pseudo static random access memory Download PDF

Info

Publication number
TWI694442B
TWI694442B TW108106281A TW108106281A TWI694442B TW I694442 B TWI694442 B TW I694442B TW 108106281 A TW108106281 A TW 108106281A TW 108106281 A TW108106281 A TW 108106281A TW I694442 B TWI694442 B TW I694442B
Authority
TW
Taiwan
Prior art keywords
address strobe
row address
asynchronous
clock
count value
Prior art date
Application number
TW108106281A
Other languages
Chinese (zh)
Other versions
TW202032555A (en
Inventor
池田仁史
Original Assignee
華邦電子股份有限公司
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 華邦電子股份有限公司 filed Critical 華邦電子股份有限公司
Priority to TW108106281A priority Critical patent/TWI694442B/en
Application granted granted Critical
Publication of TWI694442B publication Critical patent/TWI694442B/en
Publication of TW202032555A publication Critical patent/TW202032555A/en

Links

Images

Landscapes

  • Dram (AREA)

Abstract

A control circuit and a control method for a pseudo static random access memory. The control circuit counts a number of latch times of the data based on an external clock to generate a first count value, counts a number of times of the data is written based on an asynchronous column address strobe clock to generate a second count value, and compares the first count value and the second count value. The control circuit provides a column address strobe clock according to the asynchronous column address strobe clock in an asynchronous mode. When the first occurrence of the first count value is equal to the second count value, the control circuit operates from the asynchronous mode of a write operation into a synchronous mode to adjust the period of the non-synchronous column address strobe clock to the period of the external clock.

Description

用於偽靜態隨機存取記憶體的控制電路以及控制方法Control circuit and control method for pseudo-static random access memory

本發明是有關於一種用於記憶體裝置的控制電路以及控制方法,且特別是有關於一種用於偽靜態隨機存取記憶體的控制電路以及控制方法。 The present invention relates to a control circuit and a control method for a memory device, and particularly to a control circuit and a control method for a pseudo-static random access memory.

近年來,隨著半導體記憶體元件之整合水準變得愈來愈高,而存在對更高速度之需求,靜態隨機存取記憶體(Static Random Access Memory,SRAM)及動態隨機存取記憶體(Dynamic Random Access Memory,DRAM)做為高速記憶體被使用。對於具有動態隨機存取記憶體的優點的偽靜態隨機存取記憶體(Pseudo Static Random Access Memory,pSRAM)的需求持續增加,特別是運用在行動裝置中。 In recent years, as the level of integration of semiconductor memory devices has become higher and higher, there is a demand for higher speeds, static random access memory (SRAM) and dynamic random access memory (SRAM) Dynamic Random Access Memory (DRAM) is used as high-speed memory. The demand for pseudo static random access memory (PSRAM) with the advantages of dynamic random access memory (pSRAM) continues to increase, especially in mobile devices.

偽靜態隨機存取記憶體為具有動態隨機存取記憶體之單元結構及靜態隨機存取記憶體之周邊電路的記憶體元件。雖然偽 靜態隨機存取記憶體具有大容量及低成本的優點。現有的偽靜態隨機存取記憶體在寫入操作的時脈週期較短的情況下,資料的寫入可能同步或不同步。為了避免錯誤發生,在寫入操作中,資料的寫入在不同步(即,寫入操作的非同步模式)的情況下建立一控制路徑以提供對應的行位址選通(column address strobe,CAS)時脈,並且在同步(即,寫入操作的同步模式)的情況下建立一控制路徑以提供對應的另一行位址選通時脈。如此一來,偽靜態隨機存取記憶體能夠藉由不同的控制路徑執行寫入操作的同步模式或非同步模式。 The pseudo-static random access memory is a memory element having a unit structure of dynamic random access memory and peripheral circuits of the static random access memory. Although pseudo Static random access memory has the advantages of large capacity and low cost. In the existing pseudo-static random access memory, when the clock cycle of the write operation is short, the writing of data may be synchronized or not. In order to avoid errors, in the write operation, the data is written in an asynchronous (ie, asynchronous mode of the write operation) to establish a control path to provide the corresponding row address strobe (column address strobe, CAS) clock, and in the case of synchronization (ie, the synchronization mode of the write operation), a control path is established to provide the corresponding row address strobe clock. In this way, the pseudo-static random access memory can perform the synchronous mode or the asynchronous mode of the write operation through different control paths.

然而,在上述的方法中,由於時脈週期較短,偽靜態隨機存取記憶體在由非同步模式切換到同步模式時,可能會因為路徑的變更而造成在控制路徑變更後,來不及在路徑變更的第一個時脈產生行位址選通時脈,進而造成寫入操作的錯誤。 However, in the above method, due to the short clock cycle, when the pseudo-static random access memory is switched from the asynchronous mode to the synchronous mode, it may be due to the change of the path. The changed first clock generates the row address strobe clock, which in turn causes an error in the write operation.

本發明提供一種用於偽靜態隨機存取記憶體的控制電路以及控制方法,可以在寫入操作中不需藉由多個控制路徑來執行寫入操作的同步模式以及非同步模式。 The invention provides a control circuit and a control method for a pseudo-static random access memory, which can perform a synchronous mode and an asynchronous mode of a write operation without using multiple control paths during a write operation.

本發明的控制電路適用於偽靜態隨機存取記憶體。控制電路包括第一計數器、第二計數器、比較器、非同步控制器以及時脈產生器。第一計數器用以基於外部時脈對寫入至偽靜態隨機存取記憶體的資料的鎖存次數進行計數,以產生第一計數值。第 二計數器用以基於非同步行位址選通時脈對寫入至偽靜態隨機存取記憶體的資料的寫入次數進行計數,以產生第二計數值。非同步行位址選通時脈的初始週期小於外部時脈的週期。比較器耦接於第一計數器以及第二計數器。比較器用以比較第一計數值與第二計數值。當第一計數值等於第二計數值時,比較器提供第一邏輯準位的模式信號。非同步控制器耦接於比較器。非同步控制器用以在寫入操作中接收模式信號以及行位址選通時脈,並且在非同步模式依據行位址選通時脈提供非同步行位址選通時脈。當非同步控制器第一次接收到第一邏輯準位的模式信號時,非同步控制器將寫入操作由非同步模式進入同步模式,以將非同步行位址選通時脈的週期調整為外部時脈的週期。時脈產生器耦接於非同步控制器。時脈產生器用以依據非同步行位址選通時脈提供行位址選通時脈。 The control circuit of the present invention is suitable for pseudo-static random access memory. The control circuit includes a first counter, a second counter, a comparator, an asynchronous controller, and a clock generator. The first counter is used to count the number of times the data written to the pseudo static random access memory is latched based on the external clock to generate a first count value. First The two counters are used to count the number of writes of the data written to the pseudo static random access memory based on the asynchronous row address strobe clock to generate a second count value. The initial period of the non-synchronized row address strobe clock is less than the period of the external clock. The comparator is coupled to the first counter and the second counter. The comparator is used to compare the first count value with the second count value. When the first count value is equal to the second count value, the comparator provides a mode signal of the first logic level. The asynchronous controller is coupled to the comparator. The asynchronous controller is used to receive the mode signal and the row address strobe clock in the write operation, and provide the asynchronous row address strobe clock according to the row address strobe clock in the asynchronous mode. When the asynchronous controller receives the mode signal of the first logic level for the first time, the asynchronous controller enters the write operation from the asynchronous mode into the synchronous mode to adjust the period of the strobe clock of the asynchronous row address It is the period of the external clock. The clock generator is coupled to the asynchronous controller. The clock generator is used to provide the row address strobe clock according to the asynchronous row address strobe clock.

在本發明的控制方法適用於偽靜態隨機存取記憶體。控制方法包括:基於外部時脈對寫入至偽靜態隨機存取記憶體的資料的鎖存次數進行計數,以產生第一計數值;在非同步模式依據行位址選通時脈提供非同步行位址選通時脈;基於非同步行位址選通時脈對寫入至偽靜態隨機存取記憶體的資料的寫入次數進行計數,以產生第二計數值,其中非同步行位址選通時脈的初始週期小於外部時脈的週期;比較第一計數值與第二計數值,其中當第一計數值等於第二計數值時提供第一邏輯準位的模式信號;當第一次接收到第一邏輯準位的模式信號時,將寫入操作由非同步 模式進入同步模式以將非同步行位址選通時脈的週期調整為外部時脈的週期;以及依據非同步行位址選通時脈提供行位址選通時脈。 The control method of the present invention is applicable to pseudo-static random access memory. The control method includes: counting the number of times the data written to the pseudo static random access memory is latched based on the external clock to generate a first count value; in the asynchronous mode, strobe clocking is provided according to the row address to provide asynchronous Row address strobe clock; counts the number of writes of data written to pseudo-static random access memory based on the asynchronous row address strobe clock to generate a second count value, where the non-synchronized row bit The initial period of the address strobe clock is less than the period of the external clock; compare the first count value with the second count value, where the mode signal of the first logic level is provided when the first count value is equal to the second count value; when the first When the mode signal of the first logic level is received once, the write operation is changed from asynchronous The mode enters the synchronous mode to adjust the period of the non-synchronized row address strobe clock to the period of the external clock; and provide the row address strobe clock according to the non-synchronized row address strobe clock.

基於上述,本發明的控制電路基於外部時脈對資料的鎖存次數進行計數以產生第一計數值,基於非同步行位址選通時脈對資料的寫入次數進行計數以產生第二計數值,並且比較第一計數值與第二計數值。控制電路在非同步模式依據行位址選通時脈提供非同步行位址選通時脈以提供行位址選通時脈。當第一次發生第一計數值等於第二計數值時,控制電路將寫入操作由非同步模式進入同步模式以將非同步行位址選通時脈的週期調整為外部時脈的週期以提供行位址選通時脈。如此一來,本發明能夠在寫入操作中不需藉由多個控制路徑來執行寫入操作的同步模式以及非同步模式。 Based on the above, the control circuit of the present invention counts the number of data latches based on an external clock to generate a first count value, and counts the number of data writes based on an asynchronous row address strobe clock to generate a second count Numerical value, and compare the first count value with the second count value. The control circuit provides the non-synchronized row address strobe clock according to the row address strobe clock in the asynchronous mode to provide the row address strobe clock. When the first count value is equal to the second count value for the first time, the control circuit changes the write operation from the asynchronous mode to the synchronous mode to adjust the period of the non-synchronized row address strobe clock to the period of the external clock. Provide row address strobe clock. In this way, the present invention can perform the synchronous mode and the asynchronous mode of the write operation without using multiple control paths during the write operation.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。 In order to make the above-mentioned features and advantages of the present invention more obvious and understandable, the embodiments are specifically described below in conjunction with the accompanying drawings for detailed description as follows.

100:偽靜態隨機存取記憶體 100: pseudo-static random access memory

110:記憶體陣列 110: memory array

120、620:控制電路 120, 620: control circuit

121、621:第一計數器 121, 621: First counter

122、622:第二計數器 122, 622: second counter

123、623:比較器 123, 623: comparator

124、624:非同步控制器 124, 624: asynchronous controller

1242、1254、1256、6254、6256、6258:時序調整器 1242, 1254, 1256, 6254, 6256, 6258: timing adjuster

1244:非同步判斷器 1244: Asynchronous judgment

125、625:時脈產生器 125, 625: clock generator

1252、6252:正反器 1252, 6252: flip-flop

626:同步寫入指示器 626: Synchronous write indicator

627:同步控制器 627: Synchronous controller

ASYNC:模式信號 ASYNC: mode signal

CASP:行位址選通時脈 CASP: row address strobe clock

CASP_A:非同步行位址選通時脈 CASP_A: Asynchronous row address strobe clock

CASP_S:同步行位址選通時脈 CASP_S: Synchronous row address strobe clock

CLK:外部時脈 CLK: external clock

D1、D2、D3、D4:延遲器 D1, D2, D3, D4: delay

DQ、D00~D13:資料 DQ, D00~D13: data

EN_DIN:輸入指示信號 EN_DIN: input indicator signal

EN_WR:寫入指示信號 EN_WR: write indicator signal

N01、N02、N03、N04、N05、 N06、N07、N08、N09、N10:反相器 N01, N02, N03, N04, N05, N06, N07, N08, N09, N10: inverter

NAND1、NAND2、NAND3、 NAND4、NAND5:反及閘 NAND1, NAND2, NAND3, NAND4, NAND5: Inverting gate

N_DIN:第一計數值 N_DIN: first count value

N_DWR:第二計數值 N_DWR: second count value

Q:輸出端 Q: output

/R:重置輸入端 /R: reset input

/S:設定輸入端 /S: Set input

/S1:第一設定輸入端 /S1: the first setting input

/S2:第二設定輸入端 /S2: second setting input

S510~S570:步驟 S510~S570: Steps

S1010~S1040:步驟 S1010~S1040: Steps

SYNCWR:同步寫入指示信號 SYNCWR: Synchronous write indicator signal

t1、t2、t3、t4、ti1、ti2:時間點 t1, t2, t3, t4, ti1, ti2: time point

圖1是依據本發明的第一實施例所繪示的偽靜態隨機存取記憶體的電路示意圖。 FIG. 1 is a schematic circuit diagram of a pseudo-static random access memory according to the first embodiment of the invention.

圖2是依據第一實施例所繪示的寫入操作的時序圖。 FIG. 2 is a timing diagram of the write operation according to the first embodiment.

圖3是依據第一實施例所繪示的非同步控制器的電路示意 圖。 3 is a schematic circuit diagram of an asynchronous controller according to the first embodiment Figure.

圖4是依據第一實施例所繪示的時脈產生器的電路示意圖。 4 is a schematic circuit diagram of a clock generator according to the first embodiment.

圖5是依據第一實施例所繪示的控制方法流程圖。 FIG. 5 is a flowchart of the control method according to the first embodiment.

圖6是依據本發明的第二實施例所繪示的控制電路的電路示意圖。 6 is a schematic circuit diagram of a control circuit according to a second embodiment of the invention.

圖7是依據第二實施例所繪示的寫入操作的時序圖。 7 is a timing diagram of a write operation according to the second embodiment.

圖8是依據第二實施例所繪示的同步控制器的電路示意圖。 8 is a schematic circuit diagram of a synchronous controller according to the second embodiment.

圖9是依據第二實施例所繪示的時脈產生器的電路示意圖。 9 is a schematic circuit diagram of a clock generator according to the second embodiment.

圖10是依據第二實施例所繪示的控制方法流程圖。 10 is a flowchart of the control method according to the second embodiment.

請參考圖1,圖1是依據本發明的第一實施例所繪示的偽靜態隨機存取記憶體的電路示意圖。在本實施例中,偽靜態隨機存取記憶體100包括記憶體陣列110、控制電路120。控制器120用以提供行位址選通時脈CASP以控制記憶體陣列110的寫入操作。控制電路120包括第一計數器121、第二計數器122、比較器123、非同步控制器124以及時脈產生器125。舉例來說,偽靜態隨機存取記憶體100還包括輸入輸出電路、資料鎖存器等周邊電路。第一計數器121用以基於外部時脈對寫入至偽靜態隨機存取記憶體100的資料的鎖存次數進行計數,藉以產生第一計數值N_DIN。第一計數器121可基於外部時脈CLK對資料鎖存器的資料鎖存次數進行計數,藉以產生第一計數值N_DIN。一旦一資料 鎖存器鎖存到資料,此時第一計數器121會依據輸入指示信號EN_DIN遞增第一計數值N_DIN,其中輸入指示信號EN_DIN是用以指示資料被輸入的狀態信號。第二計數器122用以基於非同步行位址選通時脈CASP_A對寫入至偽靜態隨機存取記憶體100的資料的寫入次數進行計數以產生第二計數值N_DWR。第二計數器122可基於非同步行位址選通時脈CASP_A對資料寫入到記憶體陣列110的次數進行計數,藉以產生第二計數值N_DWR。一旦資料被寫入到記憶體陣列110,第二計數器122則會依據寫入指示信號EN_WR遞增第二計數值N_DWR,其中寫入指示信號EN_WR是用以指示執行寫入操作的狀態信號。非同步行位址選通時脈CASP_A的初始週期小於外部時脈CLK的週期。也就是說,在寫入操作中,資料被寫入到記憶體陣列110的速度會快於資料的鎖存速度。因此,第二計數值N_DWR的遞增速度會快於第一計數值N_DIN的遞增速度。 Please refer to FIG. 1, which is a schematic circuit diagram of a pseudo-static random access memory according to a first embodiment of the present invention. In this embodiment, the pseudo-static random access memory 100 includes a memory array 110 and a control circuit 120. The controller 120 is used to provide row address strobe clock CASP to control the write operation of the memory array 110. The control circuit 120 includes a first counter 121, a second counter 122, a comparator 123, an asynchronous controller 124, and a clock generator 125. For example, the pseudo-static random access memory 100 further includes peripheral circuits such as input and output circuits and data latches. The first counter 121 is used to count the number of times the data written to the pseudo static random access memory 100 is latched based on the external clock, thereby generating a first count value N_DIN. The first counter 121 can count the number of data latches of the data latch based on the external clock CLK, thereby generating a first count value N_DIN. Once a data The latch latches the data. At this time, the first counter 121 will increment the first count value N_DIN according to the input indication signal EN_DIN, where the input indication signal EN_DIN is used to indicate the status signal of the input data. The second counter 122 is used to count the number of writes of the data written to the pseudo static random access memory 100 based on the asynchronous row address strobe clock CASP_A to generate a second count value N_DWR. The second counter 122 can count the number of times data is written to the memory array 110 based on the asynchronous row address strobe clock CASP_A, thereby generating a second count value N_DWR. Once the data is written to the memory array 110, the second counter 122 will increment the second count value N_DWR according to the write instruction signal EN_WR, where the write instruction signal EN_WR is a status signal used to indicate the execution of the write operation. The initial period of the asynchronous row address strobe clock CASP_A is less than the period of the external clock CLK. That is to say, during the writing operation, the data is written to the memory array 110 faster than the data is latched. Therefore, the increasing speed of the second count value N_DWR will be faster than the increasing speed of the first count value N_DIN.

比較器123耦接於第一計數器121以及第二計數器122。比較器123比較第一計數值N_DIN與第二計數值N_DWR,藉以判斷第一計數值N_DIN與第二計數值N_DWR是否相等。當比較器123判斷出第一計數值N_DIN等於第二計數值N_DWR時,會提供第一邏輯準位的模式信號ASYNC。在另一方面,當比較器123判斷出第一計數值N_DIN不等於第二計數值N_DWR時則會提供第二邏輯準位的模式信號ASYNC。 The comparator 123 is coupled to the first counter 121 and the second counter 122. The comparator 123 compares the first count value N_DIN and the second count value N_DWR to determine whether the first count value N_DIN and the second count value N_DWR are equal. When the comparator 123 determines that the first count value N_DIN is equal to the second count value N_DWR, the mode signal ASYNC of the first logic level is provided. On the other hand, when the comparator 123 determines that the first count value N_DIN is not equal to the second count value N_DWR, the mode signal ASYNC of the second logic level is provided.

非同步控制器124耦接於比較器123。非同步控制器124 用以在寫入操作中接收第一邏輯準位的模式信號ASYNC以及行位址選通時脈CASP,並且在非同步模式依據行位址選通時脈CASP提供非同步行位址選通時脈CASP_A。當非同步控制器124第一次接收到第一邏輯準位的模式信號ASYNC時,將寫入操作由非同步模式進入同步模式,藉以將非同步行位址選通時脈CASP_A的週期調整為外部時脈的週期。時脈產生器125耦接於非同步控制器124。時脈產生器125用以依據非同步行位址選通時脈CASP_A提供行位址選通時脈CASP。 The asynchronous controller 124 is coupled to the comparator 123. Asynchronous controller 124 Used to receive the first logic level mode signal ASYNC and the row address strobe clock CASP during the write operation, and provide the asynchronous row address strobe according to the row address strobe clock CASP in the asynchronous mode Pulse CASP_A. When the asynchronous controller 124 receives the first logic level mode signal ASYNC for the first time, the write operation is changed from the asynchronous mode to the synchronous mode, so as to adjust the period of the asynchronous row address strobe clock CASP_A to The period of the external clock. The clock generator 125 is coupled to the asynchronous controller 124. The clock generator 125 is used to provide the row address strobe clock CASP according to the asynchronous row address strobe clock CASP_A.

具體來說明,請同時參考圖1以及圖2,圖2是依據第一實施例所繪示的寫入操作的時序圖。在本實施例中,在時間點t1,資料DQ開始被輸入。並且用以指示資料DQ被輸入的輸入指示信號EN_DIN由低邏輯準位轉態為高邏輯準位。在時間點t2,第一個資料D00開始被鎖存,第一計數器121開始基於外部時脈CLK對資料DQ被鎖存的次數進行計數以產生“0”的第一計數值N_DIN。此時,由於第二計數值N_DWR還沒有被產生,因此第一計數值N_DIN與第二計數值N_DWR不同。因此,比較器123時間點t2會開始提供第二邏輯準位(即,高邏輯準位)的模式信號ASYNC。接下來在時間點t3,開始執行寫入操作。用以指示執行寫入操作的寫入指示信號EN_WR由低邏輯準位轉態為高邏輯準位。在時間點t3,非同步控制器124進入寫入操作時開始提供非同步行位址選通時脈CASP_A。由於非同步行位址選通時脈CASP_A的初始週期小於外部時脈CLK的週期,因此控制電路120 進入寫入操作的非同步模式。第二計數器122開始基於非同步行位址選通時脈CASP_A對寫入至偽靜態隨機存取記憶體100的資料的寫入次數進行計數以產生“0”的第二計數值N_DWR。除此之外,時脈產生器125依據非同步行位址選通時脈CASP_A提供行位址選通時脈CASP。接下來第一計數器121與第二計數器122會持續進行計數。由於第二計數值N_DWR的遞增速度會快於第一計數值N_DIN的遞增速度。因此在時間點t4,第二計數值N_DWR等於第一計數值N_DIN(N_DWR=N_DIN=8)。這表示在時間點t4,先前被鎖存的資料D00~D08都被寫入。比較器123提供第一邏輯準位(即,低邏輯準位)的模式信號ASYNC。應注意的是,這是非同步控制器124在寫入操作(寫入指示信號EN_WR為高邏輯準位)中第一次接收到第一邏輯準位的模式信號ASYNC時,將寫入操作由非同步模式進入同步模式。非同步控制器124依據第一邏輯準位的模式信號ASYNC不提供非同步行位址選通時脈CASP_A。隨後將第一計數值N_DIN等於9並且第二計數值N_DWR等於8時,模式信號ASYNC由第一邏輯準位轉態為第二邏輯準位。此時非同步控制器124提供非同步行位址選通時脈CASP_A。如此,非同步行位址選通時脈CASP_A的週期逐漸被調整為外部時脈CLK的週期,藉以達到非同步行位址選通時脈CASP_A與外部時脈CLK同步的效果。在時間點t4以後,資料D09~D13的鎖存與寫入是同步的,直到偽靜態隨機存取記憶體變為待機狀態。 Specifically, please refer to FIG. 1 and FIG. 2 at the same time. FIG. 2 is a timing diagram of the write operation according to the first embodiment. In this embodiment, at the time point t1, the data DQ starts to be input. And the input indication signal EN_DIN used to indicate that the data DQ is input is changed from a low logic level to a high logic level. At time t2, the first data D00 starts to be latched, and the first counter 121 starts to count the number of times the data DQ is latched based on the external clock CLK to generate a first count value N_DIN of "0". At this time, since the second count value N_DWR has not yet been generated, the first count value N_DIN and the second count value N_DWR are different. Therefore, the comparator 123 starts to provide the mode signal ASYNC of the second logic level (ie, high logic level) at time t2. Next, at time t3, the write operation starts. The write instruction signal EN_WR used to indicate the execution of the write operation changes from a low logic level to a high logic level. At time t3, the asynchronous controller 124 begins to provide the asynchronous row address strobe CASP_A when entering the write operation. Since the initial period of the asynchronous row address strobe clock CASP_A is less than the period of the external clock CLK, the control circuit 120 Enter the asynchronous mode of the write operation. The second counter 122 starts to count the number of writes of data written to the pseudo static random access memory 100 based on the asynchronous row address strobe clock CASP_A to generate a second count value N_DWR of “0”. In addition, the clock generator 125 provides the row address strobe clock CASP according to the asynchronous row address strobe clock CASP_A. Next, the first counter 121 and the second counter 122 continue to count. Since the increasing speed of the second count value N_DWR will be faster than the increasing speed of the first count value N_DIN. Therefore, at the time point t4, the second count value N_DWR is equal to the first count value N_DIN (N_DWR=N_DIN=8). This means that at time t4, the previously latched data D00~D08 are all written. The comparator 123 provides the mode signal ASYNC of the first logic level (ie, low logic level). It should be noted that this is when the asynchronous controller 124 receives the mode signal ASYNC of the first logic level for the first time in the write operation (the write instruction signal EN_WR is a high logic level), the The synchronization mode enters the synchronization mode. The asynchronous controller 124 does not provide an asynchronous row address strobe clock CASP_A according to the first logic level mode signal ASYNC. Subsequently, when the first count value N_DIN is equal to 9 and the second count value N_DWR is equal to 8, the mode signal ASYNC changes from the first logic level to the second logic level. At this time, the asynchronous controller 124 provides the asynchronous row address strobe clock CASP_A. In this way, the period of the asynchronous row address strobe clock CASP_A is gradually adjusted to the period of the external clock CLK, so as to achieve the effect of synchronizing the asynchronous row address strobe clock CASP_A with the external clock CLK. After time t4, the latch and write of data D09~D13 are synchronized until the pseudo-static random access memory becomes standby.

在此值得一提的是,控制電路120在非同步模式依據行位址選通時脈CASP提供非同步行位址選通時脈CASP_A以提供行位址選通時脈CASP。當第一次發生第一計數值N_DIN等於第二計數值N_DWR時,控制電路120將寫入操作由非同步模式進入同步模式以將非同步行位址選通時脈CASP_A的週期調整為外部時脈的週期以提供行位址選通時脈CASP。如此一來,本發明能夠在寫入操作中不需藉由多個控制路徑來執行寫入操作的同步模式以及非同步模式。 It is worth mentioning here that in the asynchronous mode, the control circuit 120 provides the asynchronous row address strobe clock CASP_A according to the row address strobe clock CASP to provide the row address strobe clock CASP. When the first count value N_DIN is equal to the second count value N_DWR for the first time, the control circuit 120 changes the write operation from the asynchronous mode to the synchronous mode to adjust the cycle of the asynchronous row address strobe clock CASP_A to the outside The period of the pulse is to provide the row address strobe clock CASP. In this way, the present invention can perform the synchronous mode and the asynchronous mode of the write operation without using multiple control paths during the write operation.

接下來說明非同步控制器的實施細節,請同時參考圖1以及圖3,圖3是依據第一實施例所繪示的非同步控制器的電路示意圖。在本實施例中,非同步控制器124包括時序調整器1242以及非同步判斷器1244。時序調整器1242耦接於時脈產生器125。時序調整器1242用以接收行位址選通時脈CASP,並基於行位址選通時脈CASP調整非同步行位址選通時脈CASP_A的低邏輯準位的時間長度。非同步判斷器1244耦接於時序調整器1242以及比較器123。非同步判斷器1244用以在接收到第二邏輯準位的模式信號ASYNC以及對應於進入寫入操作中的寫入致能信號EN_WR時提供非同步行位址選通時脈CASP_A。 Next, the implementation details of the asynchronous controller will be described. Please refer to FIGS. 1 and 3 at the same time. FIG. 3 is a schematic circuit diagram of the asynchronous controller according to the first embodiment. In this embodiment, the asynchronous controller 124 includes a timing adjuster 1242 and an asynchronous determiner 1244. The timing adjuster 1242 is coupled to the clock generator 125. The timing adjuster 1242 is used to receive the row address strobe clock CASP, and adjust the time length of the low logic level of the asynchronous row address strobe clock CASP_A based on the row address strobe clock CASP. The asynchronous determinator 1244 is coupled to the timing adjuster 1242 and the comparator 123. The asynchronous determiner 1244 is used to provide an asynchronous row address strobe clock CASP_A when the mode signal ASYNC of the second logic level and the write enable signal EN_WR corresponding to the write operation are received.

在本實施例中,時序調整器1242包括反相器N01、N02、延遲器D1以及反及閘NAND1。反相器N01的輸入端耦接於時脈產生器125以接收行位址選通時脈CASP。延遲器D1的輸入端耦接於反相器N01的輸出端。反及閘NAND1的第一輸入端耦接於 反相器N01的輸出端,反及閘NAND1的第二輸入端耦接於延遲器D1的輸出端。反相器N02的輸入端耦接於反及閘NAND1的輸出端,反相器N02的輸出端耦接於非同步判斷器1244。反相器N02的輸出端用以輸出非同步行位址選通時脈CASP_A。在本實施例中,時序調整器1242可藉由延遲器D1的時間延遲設定來決定非同步行位址選通時脈CASP_A的低邏輯準位的時間長度。 In this embodiment, the timing adjuster 1242 includes inverters N01, N02, a delay D1, and an NAND gate NAND1. The input terminal of the inverter N01 is coupled to the clock generator 125 to receive the row address strobe clock CASP. The input terminal of the delay D1 is coupled to the output terminal of the inverter N01. The first input terminal of the NAND1 is coupled to The output terminal of the inverter N01 and the second input terminal of the inverter NAND1 are coupled to the output terminal of the delay D1. The input terminal of the inverter N02 is coupled to the output terminal of the NAND gate NAND1, and the output terminal of the inverter N02 is coupled to the asynchronous judgment unit 1244. The output terminal of the inverter N02 is used to output the asynchronous row address strobe clock CASP_A. In this embodiment, the timing adjuster 1242 can determine the time length of the low logic level of the asynchronous row address strobe clock CASP_A by the time delay setting of the delay D1.

非同步判斷器1244包括反及閘NAND2以及反相器N03。反及閘NAND2的第一輸入端耦接於時序調整器1242的反相器N02。反及閘NAND2的第二輸入端用以接收模式信號ASYNC。反及閘NAND2的第三輸入端用以接收寫入致能信號EN_WR。反相器N03的輸入端耦接於反及閘NAND2的輸出端。反相器N03的輸出端用以提供非同步行位址選通時脈CASP_A。非同步判斷器1244在接收到高邏輯準位的寫入致能信號EN_WR以及高邏輯準位的模式信號ASYNC時提供非同步行位址選通時脈CASP_A。 The asynchronous determinator 1244 includes an NAND gate NAND2 and an inverter N03. The first input terminal of the NAND gate NAND2 is coupled to the inverter N02 of the timing regulator 1242. The second input terminal of the NAND gate NAND2 is used to receive the mode signal ASYNC. The third input terminal of the NAND gate NAND2 is used to receive the write enable signal EN_WR. The input terminal of the inverter N03 is coupled to the output terminal of the NAND gate NAND2. The output terminal of the inverter N03 is used to provide an asynchronous row address strobe clock CASP_A. The asynchronous determinator 1244 provides the asynchronous row address strobe clock CASP_A when it receives the write enable signal EN_WR of the high logic level and the mode signal ASYNC of the high logic level.

接下來說明時脈產生器的實施細節,請同時參考圖1、圖3以及圖4,圖4是依據第一實施例所繪示的時脈產生器的電路示意圖。在本實施例中,時脈產生器125包括反相器N04、N05、正反器1252以及時序調整器1254、1256。反相器N04的輸入端耦接於非同步控制器124以接收非同步行位址選通時脈CASP_A。正反器1252的設定輸入端/S耦接於反相器N04的輸出端。時序調整器1254的輸入端耦接於正反器1252的輸出端Q。反相器N05 的輸入端耦接於時序調整器1254的輸出端。反相器N05的輸出端用以提供行位址選通時脈CASP。時序調整器1256的輸入端耦接於時序調整器1254的輸出端。時序調整器1256的輸出端耦接於正反器1252的重置輸入端/R。時序調整器1256可基於行位址選通時脈CASP調整正反器1252的重置時序。本實施例的正反器1252可例如是由多個反及閘所構成的設定-重置(set-reset,SR)閂鎖器,本發明並不受限於此。 Next, the implementation details of the clock generator will be described. Please refer to FIGS. 1, 3 and 4 at the same time. FIG. 4 is a schematic circuit diagram of the clock generator according to the first embodiment. In this embodiment, the clock generator 125 includes inverters N04 and N05, flip-flops 1252, and timing adjusters 1254 and 1256. The input terminal of the inverter N04 is coupled to the asynchronous controller 124 to receive the asynchronous row address strobe clock CASP_A. The setting input terminal /S of the flip-flop 1252 is coupled to the output terminal of the inverter N04. The input terminal of the timing regulator 1254 is coupled to the output terminal Q of the flip-flop 1252. Inverter N05 The input terminal of is coupled to the output terminal of the timing adjuster 1254. The output of the inverter N05 is used to provide row address strobe clock CASP. The input of the timing adjuster 1256 is coupled to the output of the timing adjuster 1254. The output terminal of the timing regulator 1256 is coupled to the reset input terminal /R of the flip-flop 1252. The timing adjuster 1256 may adjust the reset timing of the flip-flop 1252 based on the row address strobe clock CASP. The flip-flop 1252 of this embodiment may be, for example, a set-reset (SR) latch composed of multiple flip-flops, and the present invention is not limited thereto.

進一步來說,時序調整器1254包括延遲器D2、反相器N06以及反及閘NAND2。延遲器D2的輸入端耦接於正反器1252的輸出端Q。反相器N06的輸入端耦接於延遲器D2的輸出端。反及閘NAND2的第一輸入端耦接於正反器1252的輸出端Q。反及閘NAND2的第二輸入端耦接於反相器N06的輸出端。反及閘NAND2的輸出端耦接於反相器N05的輸入端。 Further, the timing adjuster 1254 includes a delay D2, an inverter N06, and an inverter NAND2. The input terminal of the delay D2 is coupled to the output terminal Q of the flip-flop 1252. The input terminal of the inverter N06 is coupled to the output terminal of the delay D2. The first input terminal of the NAND gate NAND2 is coupled to the output terminal Q of the flip-flop 1252. The second input terminal of the NAND gate NAND2 is coupled to the output terminal of the inverter N06. The output terminal of the NAND gate NAND2 is coupled to the input terminal of the inverter N05.

在本實施例中,在非同步控制器124與時脈產生器125的協同作業下,時序調整器1254可藉由延遲器D2的時間延遲設定來決定非同步行位址選通時脈CASP_A的高邏輯準位(即,脈衝寬度)的時間長度。此外,在非同步控制器124的時序調整器1242中,延遲器D1的時間延遲設定也間接地決定行位址選通時脈CASP的低邏輯準位的時間長度。 In this embodiment, under the cooperative operation of the asynchronous controller 124 and the clock generator 125, the timing adjuster 1254 can determine the asynchronous row address strobe clock CASP_A by the time delay setting of the delay D2 The length of time for the high logic level (ie, pulse width). In addition, in the timing adjuster 1242 of the asynchronous controller 124, the time delay setting of the delay D1 also indirectly determines the length of the low logic level of the row address strobe clock CASP.

時序調整器1256包括延遲器D3、反相器N07以及反及閘NAND3。延遲器D3的輸入端耦接於時序調整器1254的輸出端。反相器N07的輸入端耦接於延遲器D3的輸出端。反及閘 NAND3的第一輸入端耦接於時序調整器1254的輸出端。反及閘NAND3的第二輸入端耦接於反相器N07的輸出端。反及閘NAND3的輸出端耦接於正反器1252的重置輸入端/R。在本實施例中,時序調整器1256可以被視為在行位址選通時脈CASP的下降緣的時間點重置正反器1252。 The timing adjuster 1256 includes a delay D3, an inverter N07, and an inverter NAND3. The input of the delay D3 is coupled to the output of the timing adjuster 1254. The input terminal of the inverter N07 is coupled to the output terminal of the delay D3. Back gate The first input terminal of NAND3 is coupled to the output terminal of the timing adjuster 1254. The second input terminal of the NAND gate NAND3 is coupled to the output terminal of the inverter N07. The output terminal of the NAND gate NAND3 is coupled to the reset input terminal /R of the flip-flop 1252. In this embodiment, the timing adjuster 1256 can be regarded as resetting the flip-flop 1252 at the time point of the falling edge of the row address strobe clock CASP.

行位址選通時脈CASP的低邏輯準位的時間長度可關連於對偽靜態隨機存取記憶體的資料匯流排(data bus)執行預充電的時間長度。因此,適合的預充電的時間長度可藉由在非同步控制器124內部的延遲器D1的時間延遲設定來決定。行位址選通時脈CASP的高邏輯準位的時間長度可關連於記憶胞的資料讀出/記憶胞的寫入操作所必要的時間長度。因此,適合的讀出/寫入時間可藉由時脈產生器125內部的延遲器D2的時間延遲設定來決定。 The time length of the low logic level of the row address strobe clock CASP can be related to the length of time for precharging the data bus of the pseudo-static random access memory. Therefore, a suitable length of time for precharge can be determined by the time delay setting of the delay D1 inside the asynchronous controller 124. The time length of the high logic level of the row address strobe clock CASP can be related to the time length necessary for the data readout of the memory cell/the write operation of the memory cell. Therefore, a suitable read/write time can be determined by the time delay setting of the delay D2 inside the clock generator 125.

請同時參考圖1以及圖5,圖5是依據第一實施例所繪示的控制方法流程圖。在本實施例中,控制電路120在步驟S510中會基於外部時脈CLK對寫入至偽靜態隨機存取記憶體100的資料的鎖存次數進行計數以產生第一計數值N_DIN。在步驟S520中,在產生第一計數值N_DIN後,控制電路120在非同步模式依據行位址選通時脈CASP提供非同步行位址選通時脈CASP_A。在步驟S530中,控制電路120會基於非同步行位址選通時脈CASP_A對寫入至偽靜態隨機存取記憶體的資料的寫入次數進行計數,以產生第二計數值N_DWR。控制電路120在步驟S540中比較第一計數值N_DIN與第二計數值N_DWR。步驟S540中,控制電路120 會判斷第一計數值N_DIN是否等於第二計數值N_DWR。如果控制電路120判斷出第一計數值N_DIN不等於第二計數值N_DWR,維持於非同步模式並進入步驟S550。在步驟S550中,控制電路120依據非同步行位址選通時脈CASP_A提供行位址選通時脈CASP。在步驟S540中,如果控制電路120判斷出第一計數值N_DIN等於第二計數值N_DWR,進入步驟S560以提供第一邏輯準位的模式信號ASYNC,並且進入步驟S570。在步驟S570中,控制電路120依據第一次被提供的第一邏輯準位的模式信號ASYNC將寫入操作由非同步模式進入同步模式,以將非同步行位址選通時脈CASP_A的週期調整為外部時脈的週期,並進入步驟S550。關於步驟S510~S570的實施細節在前述的實施例及實施方式都有詳盡的說明,因此恕不在此重述。 Please refer to FIGS. 1 and 5 at the same time. FIG. 5 is a flowchart of the control method according to the first embodiment. In this embodiment, in step S510, the control circuit 120 counts the number of latches of the data written to the pseudo static random access memory 100 based on the external clock CLK to generate the first count value N_DIN. In step S520, after generating the first count value N_DIN, the control circuit 120 provides the asynchronous row address strobe clock CASP_A according to the row address strobe clock CASP in the asynchronous mode. In step S530, the control circuit 120 counts the number of writes of data written to the pseudo static random access memory based on the asynchronous row address strobe clock CASP_A to generate a second count value N_DWR. The control circuit 120 compares the first count value N_DIN and the second count value N_DWR in step S540. In step S540, the control circuit 120 It is determined whether the first count value N_DIN is equal to the second count value N_DWR. If the control circuit 120 determines that the first count value N_DIN is not equal to the second count value N_DWR, it maintains the asynchronous mode and proceeds to step S550. In step S550, the control circuit 120 provides the row address strobe clock CASP according to the asynchronous row address strobe clock CASP_A. In step S540, if the control circuit 120 determines that the first count value N_DIN is equal to the second count value N_DWR, it proceeds to step S560 to provide the first logic level mode signal ASYNC, and proceeds to step S570. In step S570, the control circuit 120 shifts the write operation from the asynchronous mode to the synchronous mode according to the mode signal ASYNC of the first logic level provided for the first time, so as to gate the cycle of the asynchronous line address CASP_A Adjust to the period of the external clock, and go to step S550. The implementation details of steps S510-S570 are described in detail in the foregoing embodiments and implementations, so they will not be repeated here.

請參考圖6,圖6是依據本發明的第二實施例所繪示的控制電路的電路示意圖。在本實施例中,控制電路620用以提供行位址選通時脈CASP以控制偽靜態隨機存取記憶體的記憶體陣列(未示出)的寫入操作。控制電路620包括第一計數器621、第二計數器622、比較器623、非同步控制器624、時脈產生器625、同步寫入指示器626以及同步控制器627。第一計數器621、第二計數器622、比較器623以及非同步控制器624之間的協同操作的實施細節可以在第一實施例獲致足夠的教示,因此恕不在此重述。在本實施例中,同步寫入指示器626用以判斷偽靜態隨機存取記憶體執行寫入操作的第一初始時間點是否早於對寫入至偽靜 態隨機存取記憶體的資料進行鎖存的第二初始時間點。當同步寫入指示器626判斷出第一初始時間點早於第二初始時間點時,提供同步寫入指示信號SYNCWR。在另一方面,當同步寫入指示器626判斷出第一初始時間點晚於或等於第二初始時間點時,則不提供同步寫入指示信號SYNCWR。同步控制器627耦接於同步寫入指示器626與時脈產生器625,同步控制器627用以依據同步寫入指示信號SYNCWR被致能以基於外部時脈CLK提供同步行位址選通時脈CASP_S。時脈產生器625在接收到同步行位址選通時脈CASP_S時,會依據同步行位址選通時脈CASP_S提供行位址選通時脈CASP。 Please refer to FIG. 6, which is a schematic circuit diagram of a control circuit according to a second embodiment of the present invention. In this embodiment, the control circuit 620 is used to provide row address strobe clock CASP to control the write operation of the memory array (not shown) of the pseudo static random access memory. The control circuit 620 includes a first counter 621, a second counter 622, a comparator 623, an asynchronous controller 624, a clock generator 625, a synchronous write indicator 626, and a synchronous controller 627. The implementation details of the cooperative operation among the first counter 621, the second counter 622, the comparator 623, and the asynchronous controller 624 can be sufficiently taught in the first embodiment, and therefore will not be repeated here. In this embodiment, the synchronous write indicator 626 is used to determine whether the first initial time point for the pseudo static random access memory to perform the write operation is earlier than the write to the pseudo static The second initial time point for the data of the state random access memory to be latched. When the synchronous write indicator 626 determines that the first initial time point is earlier than the second initial time point, it provides the synchronous write instruction signal SYNCWR. On the other hand, when the synchronous write indicator 626 determines that the first initial time point is later than or equal to the second initial time point, the synchronous write indication signal SYNCWR is not provided. The synchronization controller 627 is coupled to the synchronization write indicator 626 and the clock generator 625. The synchronization controller 627 is used to enable the synchronization row address gating based on the external clock CLK according to the synchronization write instruction signal SYNCWR Pulse CASP_S. When the clock generator 625 receives the sync row address strobe clock CASP_S, it will provide the row address strobe clock CASP according to the sync row address strobe clock CASP_S.

具體來說明,請同時參考圖6以及圖7。圖7是依據第二實施例所繪示的寫入操作的時序圖。在本實施例中,第一初始時間點是用以指示執行寫入操作的寫入指示信號EN_WR第一次由低邏輯準位轉態為高邏輯準位的時間點ti1。第二初始時間點是用以指示資料DQ被輸入的輸入指示信號EN_DIN第一次由低邏輯準位轉態為高邏輯準位的時間點ti2。當同步寫入指示器626判斷出第一初始時間點(時間點ti1)早於第二初始時間點(時間點ti2)時,提供同步寫入指示信號SYNCWR。在本實施例中,同步寫入指示器626還耦接於第一計數器621以及第二計數器622。在當時間點ti1早於時間點ti2的情況下,第一計數器621依據同步寫入指示信號SYNCWR被禁能以停止提供第一計數值N_DIN,第二計數器622依據同步寫入指示信號SYNCWR被禁能以停止提供第二 計數值N_DWR,因此比較器623不提供第二邏輯準位的模式信號ASYNC。這使得非同步控制器624無法提供非同步行位址選通時脈CASP_A。除此之外,同步控制器627依據同步寫入指示信號SYNCWR被致能以提供同步行位址選通時脈CASP_S,藉以產生行位址選通時脈CASP。同步行位址選通時脈CASP_S的週期相等於外部時脈CLK的週期。 Specifically, please refer to Figure 6 and Figure 7 at the same time. 7 is a timing diagram of a write operation according to the second embodiment. In this embodiment, the first initial time point is the time point ti1 at which the write instruction signal EN_WR is used to instruct the write operation to transition from the low logic level to the high logic level for the first time. The second initial time point is the time point ti2 at which the input indication signal EN_DIN for indicating that the data DQ is input is transitioned from the low logic level to the high logic level for the first time. When the synchronous write indicator 626 determines that the first initial time point (time point ti1) is earlier than the second initial time point (time point ti2), it provides the synchronous write instruction signal SYNCWR. In this embodiment, the synchronous write indicator 626 is also coupled to the first counter 621 and the second counter 622. When the time point ti1 is earlier than the time point ti2, the first counter 621 is disabled according to the synchronous write instruction signal SYNCWR to stop providing the first count value N_DIN, and the second counter 622 is disabled according to the synchronous write instruction signal SYNCWR Can stop providing second The count value N_DWR, so the comparator 623 does not provide the second logic level mode signal ASYNC. This makes the asynchronous controller 624 unable to provide the asynchronous row address strobe clock CASP_A. In addition, the synchronization controller 627 is enabled according to the synchronization write instruction signal SYNCWR to provide the synchronization row address strobe clock CASP_S, thereby generating the row address strobe clock CASP. The period of the strobe clock CASP_S with the same walking address is equal to the period of the external clock CLK.

在另一方面,當同步寫入指示器626判斷出第一初始時間點(時間點ti1)早於第二初始時間點(時間點ti2)時不提供同步寫入指示信號SYNCWR。在同步寫入指示信號SYNCWR沒有被提供的情況下。第一計數器621可提供第一計數值N_DIN,第二計數器622可提供第二計數值N_DWR,並且同步控制器627被禁能。關於在同步寫入指示信號SYNCWR沒有被提供的情況下的實施細節,可以在圖1至圖5的實施例中獲致足夠的教示,因此恕不在此重述。 On the other hand, when the synchronous write indicator 626 determines that the first initial time point (time point ti1) is earlier than the second initial time point (time point ti2), the synchronous write indication signal SYNCWR is not provided. In the case where the synchronous write instruction signal SYNCWR is not provided. The first counter 621 can provide a first count value N_DIN, the second counter 622 can provide a second count value N_DWR, and the synchronization controller 627 is disabled. Regarding implementation details in the case where the synchronous write instruction signal SYNCWR is not provided, sufficient teaching can be obtained in the embodiments of FIG. 1 to FIG. 5, so it will not be repeated here.

在此值得一提的是,第二實施例的控制電路620還可以依據上述的第一初始時間點以及第二初始時間點判斷出資料DQ開始被寫入的時間點是否早於的資料DQ開始被鎖存的時間點。如果資料DQ開始被寫入的時間點是否早於的資料DQ被鎖存的時間點,控制電路620會提供同步行位址選通時脈CASP_S並依據同步行位址選通時脈CASP_S提供行位址選通時脈CASP。如此一來,資料DQ被鎖存的時序會與資料DQ被寫入的時序同步,而不會發生資料DQ被鎖存的時序追不上資料DQ被寫入的時序的情 況。 It is worth mentioning here that the control circuit 620 of the second embodiment can also determine whether the time point at which the data DQ starts to be written is earlier than the start of the data DQ according to the first initial time point and the second initial time point described above The point in time when it was latched. If the time point at which the data DQ starts to be written is earlier than the time point at which the data DQ is latched, the control circuit 620 will provide the synchronized row address strobe clock CASP_S and provide the row according to the synchronized row address strobe clock CASP_S Address strobe clock CASP. In this way, the timing when the data DQ is latched will be synchronized with the timing when the data DQ is written, and it will not happen that the timing when the data DQ is latched cannot catch up with the timing when the data DQ is written condition.

接下來說明同步控制器的實施細節。請同時參考圖6以及圖8,圖8是依據第二實施例所繪示的同步控制器的電路示意圖。在本實施例中,同步控制器627包括反及閘NAND4以及反相器N07。反及閘NAND4的第一輸入端用以接收外部時脈CLK。反及閘NAND4的第二輸入端用以接收輸入指示信號EN_DIN。反及閘NAND4的第二輸入端用以接收同步寫入指示器626所提供的同步寫入指示信號SYNCWR。反相器N07的輸入端耦接於反及閘NAND4的輸出端。反相器N07的輸出端用以將同步行位址選通時脈CASP_S提供至時脈產生器625。 Next, the implementation details of the synchronization controller will be described. Please refer to FIG. 6 and FIG. 8 at the same time. FIG. 8 is a schematic circuit diagram of the synchronization controller according to the second embodiment. In this embodiment, the synchronization controller 627 includes an NAND gate NAND4 and an inverter N07. The first input terminal of the NAND gate NAND4 is used to receive the external clock CLK. The second input terminal of the NAND gate NAND4 is used to receive the input indication signal EN_DIN. The second input terminal of the NAND gate NAND4 is used to receive the synchronous write instruction signal SYNCWR provided by the synchronous write indicator 626. The input terminal of the inverter N07 is coupled to the output terminal of the NAND gate NAND4. The output terminal of the inverter N07 is used to provide the synchronization row address strobe clock CASP_S to the clock generator 625.

接下來說明時脈產生器的實施細節。請同時參考圖6以及圖9,圖9是依據第二實施例所繪示的時脈產生器的電路示意圖。在本實施例中,時脈產生器625包括反相器N08、N09、正反器6252以及時序調整器6254、6256、6258。反相器N08的輸入端耦接於非同步控制器624以接收非同步行位址選通時脈CASP_A。正反器6252的第一設定輸入端/S1耦接於反相器N08的輸出端。時序調整器6254的輸入端耦接於正反器6252的輸出端Q。時序調整器6254可以相同於圖4的時序調整器1254或者是對圖4的時序調整器1254進行簡單的變更。反相器N09的輸入端耦接於時序調整器6254的輸出端。反相器N09的輸出端用以提供行位址選通時脈CASP。時序調整器6256的輸入端耦接於時序調整器6254的輸出端。時序調整器6256的輸出端耦接於正反器 6252的重置輸入端/R。時序調整器6256可以相同於圖4的時序調整器1254或者是對圖4的時序調整器1256進行簡單的變更。時序調整器6256可基於行位址選通時脈CASP調整正反器6252的重置時序。時序調整器6258的輸入端耦接於同步控制器627以接收同步行位址選通時脈CASP_S。時序調整器6258的輸出端耦接於正反器6252的第二設定輸入端/S2。本實施例的正反器6252可例如是由多個反及閘所構成的設定-重置(set-reset,SR)閂鎖器,本發明並不受限於此。 Next, the implementation details of the clock generator will be described. Please refer to FIG. 6 and FIG. 9 at the same time. FIG. 9 is a circuit diagram of the clock generator according to the second embodiment. In this embodiment, the clock generator 625 includes inverters N08, N09, flip-flops 6252, and timing adjusters 6254, 6256, 6258. The input terminal of the inverter N08 is coupled to the asynchronous controller 624 to receive the asynchronous row address strobe clock CASP_A. The first setting input terminal /S1 of the flip-flop 6252 is coupled to the output terminal of the inverter N08. The input terminal of the timing adjuster 6254 is coupled to the output terminal Q of the flip-flop 6252. The timing adjuster 6254 may be the same as the timing adjuster 1254 of FIG. 4 or a simple change to the timing adjuster 1254 of FIG. 4. The input terminal of the inverter N09 is coupled to the output terminal of the timing adjuster 6254. The output terminal of the inverter N09 is used to provide row address strobe clock CASP. The input of the timing adjuster 6256 is coupled to the output of the timing adjuster 6254. The output terminal of the timing regulator 6256 is coupled to the flip-flop 6252 reset input /R. The timing adjuster 6256 may be the same as the timing adjuster 1254 of FIG. 4 or a simple change to the timing adjuster 1256 of FIG. 4. The timing adjuster 6256 can adjust the reset timing of the flip-flop 6252 based on the row address strobe clock CASP. The input terminal of the timing adjuster 6258 is coupled to the synchronization controller 627 to receive the synchronization row address strobe clock CASP_S. The output terminal of the timing regulator 6258 is coupled to the second setting input terminal /S2 of the flip-flop 6252. The flip-flop 6252 of this embodiment may be, for example, a set-reset (SR) latch composed of multiple flip-flops, and the present invention is not limited thereto.

時序調整器6258包括延遲器D4、反相器N10以及反及閘NAND5。延遲器D4的輸入端耦接於同步控制器627以接收同步行位址選通時脈CASP_S。反相器N10的輸入端耦接於延遲器D4的輸出端。反及閘NAND5的第一輸入端耦接於同步控制器627以接收同步行位址選通時脈CASP_S。反及閘NAND2的第二輸入端耦接於反相器N10的輸出端。反及閘NAND2的輸出端耦接於正反器6252的第二設定輸入端/S2。 The timing adjuster 6258 includes a delay D4, an inverter N10, and an inverter NAND5. The input terminal of the delay D4 is coupled to the synchronization controller 627 to receive the synchronization row address strobe clock CASP_S. The input terminal of the inverter N10 is coupled to the output terminal of the delay D4. The first input terminal of the NAND gate NAND5 is coupled to the synchronization controller 627 to receive the synchronization row address strobe clock CASP_S. The second input terminal of the NAND gate NAND2 is coupled to the output terminal of the inverter N10. The output terminal of the NAND gate NAND2 is coupled to the second setting input terminal /S2 of the flip-flop 6252.

請同時參考圖6以及圖10,圖10是依據第二實施例所繪示的控制方法流程圖。在本實施例中,控制電路在步驟S1010接收偽靜態隨機存取記憶體執行寫入操作的第一初始時間點以及對寫入至偽靜態隨機存取記憶體的資料進行鎖存的第二初始時間點。控制電路620在步驟S1020判斷是否早於對寫入至偽靜態隨機存取記憶體的資料進行鎖存的第二初始時間點。當判斷出第一初始時間點早於第二初始時間點時,控制電路620提供同步寫入 指示信號SYNCWR,並進入步驟S1030。在步驟S1030中,控制電路620依據同步寫入指示信號SYNCWR基於外部時脈提供同步行位址選通時脈CASP_S。接下來,在步驟S1040,依據同步行位址選通時脈CASP_S提供行位址選通時脈CASP。步驟S1010~S1040的實施細節在前述的實施例及實施方式都有詳盡的說明,因此恕不在此重述。在另一方面,當控制電路620在步驟S1020判斷出第一初始時間點晚於或等於第二初始時間點時,則不提供同步寫入指示信號SYNCWR,並進入圖5的步驟S510。控制電路620在進入步驟S510之後,控制電路620的控制方法將會相同於圖1的控制電路120的控制方法(步驟S510~S570)。 Please refer to FIGS. 6 and 10 at the same time. FIG. 10 is a flowchart of the control method according to the second embodiment. In this embodiment, in step S1010, the control circuit receives the first initial time point at which the pseudo static random access memory performs the write operation and the second initial time to latch the data written to the pseudo static random access memory Point in time. The control circuit 620 determines in step S1020 whether it is earlier than the second initial time point for latching the data written to the pseudo static random access memory. When it is determined that the first initial time point is earlier than the second initial time point, the control circuit 620 provides synchronous writing Instruct the signal SYNCWR, and proceed to step S1030. In step S1030, the control circuit 620 provides the synchronization row address strobe clock CASP_S based on the external clock according to the synchronization write instruction signal SYNCWR. Next, in step S1040, the row address strobe clock CASP is provided according to the synchronized row address strobe clock CASP_S. The implementation details of steps S1010 to S1040 are described in detail in the foregoing embodiments and implementations, and therefore will not be repeated here. On the other hand, when the control circuit 620 determines in step S1020 that the first initial time point is later than or equal to the second initial time point, it does not provide the synchronous write instruction signal SYNCWR, and proceeds to step S510 of FIG. 5. After the control circuit 620 enters step S510, the control method of the control circuit 620 will be the same as the control method of the control circuit 120 of FIG. 1 (steps S510-S570).

綜上所述,本發明的控制電路以及控制方法基於外部時脈對資料的鎖存次數進行計數以產生第一計數值,基於非同步行位址選通時脈對資料的寫入次數進行計數以產生第二計數值,並且比較第一計數值與第二計數值。控制電路以及控制方法在非同步模式依據行位址選通時脈提供非同步行位址選通時脈以提供行位址選通時脈。當第一次發生第一計數值等於第二計數值時,控制電路以及控制方法將寫入操作由非同步模式進入同步模式以將非同步行位址選通時脈的週期調整為外部時脈的週期,藉以提供行位址選通時脈。如此一來,本發明能夠在寫入操作中不需藉由多個控制路徑來執行寫入操作的同步模式以及非同步模式。除此之外,本發明的控制電路以及控制方法還可以判斷出資料開始被寫入的時間點是否早於的資料開始被鎖存的時間點。如果資料開 始被寫入的時間點是否早於的資料被鎖存的時間點,控制電路以及控制方法會提供同步行位址選通時脈並依據同步行位址選通時脈提供行位址選通時脈。如此一來,資料被鎖存的時序會與資料被寫入的時序同步,而不會發生資料被鎖存的時序追不上資料被寫入的時序的情況。 In summary, the control circuit and control method of the present invention count the number of data latches based on an external clock to generate a first count value, and count the number of data writes based on an asynchronous line address strobe clock To generate a second count value, and compare the first count value with the second count value. The control circuit and the control method provide the non-synchronized row address strobe clock according to the row address strobe clock in the asynchronous mode to provide the row address strobe clock. When the first count value is equal to the second count value for the first time, the control circuit and the control method change the write operation from the asynchronous mode to the synchronous mode to adjust the period of the asynchronous row address strobe clock to the external clock To provide the row address strobe clock. In this way, the present invention can perform the synchronous mode and the asynchronous mode of the write operation without using multiple control paths during the write operation. In addition, the control circuit and control method of the present invention can also determine whether the time when the data starts to be written is earlier than the time when the data starts to be latched. If the information is open Whether the time when the data is written is earlier than the time when the data is latched, the control circuit and the control method will provide the synchronization row address strobe clock and provide the row address strobe according to the synchronization row address strobe clock Clock. In this way, the timing when the data is latched will be synchronized with the timing when the data is written, and it will not happen that the timing when the data is latched cannot catch up with the timing when the data is written.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。 Although the present invention has been disclosed as above with examples, it is not intended to limit the present invention. Any person with ordinary knowledge in the technical field can make some changes and modifications without departing from the spirit and scope of the present invention. The scope of protection of the present invention shall be subject to the scope defined in the appended patent application.

本發明是有關於一種用於偽靜態隨機存取記憶體的控制電路以及控制方法。控制電路以及控制方法可支援非同步模式的寫入操作與同步模式的寫入操作。 The invention relates to a control circuit and a control method for pseudo-static random access memory. The control circuit and the control method can support the write operation in the asynchronous mode and the write operation in the synchronous mode.

100:偽靜態隨機存取記憶體 100: pseudo-static random access memory

110:記憶體陣列 110: memory array

120:控制電路 120: control circuit

121:第一計數器 121: First counter

122:第二計數器 122: second counter

123:比較器 123: Comparator

124:非同步控制器 124: Asynchronous controller

125:時脈產生器 125: clock generator

ASYNC:模式信號 ASYNC: mode signal

CASP:行位址選通時脈 CASP: row address strobe clock

CASP_A:非同步行位址選通時脈 CASP_A: Asynchronous row address strobe clock

CLK:外部時脈 CLK: external clock

EN_DIN:輸入指示信號 EN_DIN: input indicator signal

EN_WR:寫入指示信號 EN_WR: write indicator signal

N_DIN:第一計數值 N_DIN: first count value

N_DWR:第二計數值 N_DWR: second count value

Claims (18)

一種控制電路,適用於一偽靜態隨機存取記憶體,該控制電路包括:一第一計數器,用以基於一外部時脈對寫入至該偽靜態隨機存取記憶體的資料的鎖存次數進行計數,以產生一第一計數值;一第二計數器,用以基於一非同步行位址選通時脈對寫入至該偽靜態隨機存取記憶體的資料的寫入次數進行計數,以產生一第二計數值,其中該非同步行位址選通時脈的初始週期小於該外部時脈的週期;一比較器,耦接於該第一計數器以及該第二計數器,用以比較該第一計數值與該第二計數值,當該第一計數值等於該第二計數值時提供一第一邏輯準位的一模式信號;以及一非同步控制器,耦接於該比較器,用以在一寫入操作中接收該模式信號以及一行位址選通時脈,並且在一非同步模式依據該行位址選通時脈提供該非同步行位址選通時脈,其中當該非同步控制器第一次接收到該第一邏輯準位的該模式信號時,將該寫入操作由一該非同步模式進入一同步模式以將非同步行位址選通時脈的週期調整為該外部時脈的週期;以及一時脈產生器,耦接於該非同步控制器,用以依據該非同步行位址選通時脈提供該行位址選通時脈。 A control circuit suitable for a pseudo-static random access memory, the control circuit includes: a first counter for latching the number of data written to the pseudo-static random access memory based on an external clock Count to generate a first count value; a second counter to count the number of writes of data written to the pseudo-static random access memory based on an asynchronous row address strobe clock, To generate a second count value, wherein the initial period of the asynchronous row address strobe clock is less than the period of the external clock; a comparator, coupled to the first counter and the second counter, is used to compare the A first count value and a second count value, when the first count value is equal to the second count value, a mode signal of a first logic level is provided; and an asynchronous controller is coupled to the comparator, It is used to receive the mode signal and the row address strobe clock in a write operation, and to provide the asynchronous row address strobe clock according to the row address strobe clock in an asynchronous mode. When the synchronous controller receives the mode signal of the first logic level for the first time, the write operation enters a synchronous mode from the asynchronous mode to adjust the period of the asynchronous row address strobe clock to the The period of the external clock; and a clock generator, coupled to the asynchronous controller, for providing the row address strobe according to the asynchronous row address strobe. 如申請專利範圍第1項所述的控制電路,其中當該第一計數值不等於該第二計數值時,該比較器提供一第二邏輯準位的該模式信號,其中該第二邏輯準位不同於該第一邏輯準位。 The control circuit as described in item 1 of the patent application scope, wherein when the first count value is not equal to the second count value, the comparator provides the mode signal of a second logic level, wherein the second logic level The bit is different from the first logic level. 如申請專利範圍第2項所述的控制電路,其中當該第二邏輯準位的該模式信號被提供時,該非同步控制器在進入該寫入操作時開始提供該非同步行位址選通時脈。 The control circuit as described in item 2 of the patent application scope, wherein when the mode signal of the second logic level is provided, the asynchronous controller starts to provide the asynchronous row address strobe when entering the write operation pulse. 如申請專利範圍第1項至第3項中的任一項所述的控制電路,其中該非同步控制器包括:一第一時序調整器,耦接於該時脈產生器,用以接收該行位址選通時脈,並基於該行位址選通時脈調整該非同步行位址選通時脈的低邏輯準位的時間長度;以及一非同步判斷器,耦接於該第一時序調整器以及該比較器,用以在接收到該第二邏輯準位的該模式信號以及對應於進入該寫入操作中的寫入致能信號時該提供非同步行位址選通時脈。 The control circuit according to any one of items 1 to 3 of the patent application range, wherein the asynchronous controller includes: a first timing regulator coupled to the clock generator to receive the Row address strobe clock, and adjust the time length of the low logic level of the asynchronous row address strobe clock based on the row address strobe clock; and an asynchronous determinator coupled to the first The timing adjuster and the comparator are used to provide the asynchronous row address strobe when the mode signal of the second logic level and the write enable signal corresponding to the write operation are received pulse. 如申請專利範圍第4項所述的控制電路,其中該第一時序調整器包括:一第一反相器,該第一反相器的輸入端耦接於該時脈產生器以接收該行位址選通時脈;一延遲器,該延遲器的輸入端耦接於該第一反相器的輸出端;一反及閘,該反及閘的第一輸入端耦接於該第一反相器的輸出端,該反及閘的第二輸入端耦接於該延遲器的輸出端;以及一第二反相器,該第二反相器的輸入端耦接於該反及閘的輸 出端,該第二反相器的輸出端耦接於該非同步判斷器。 The control circuit as described in item 4 of the patent application scope, wherein the first timing regulator includes: a first inverter, an input terminal of the first inverter is coupled to the clock generator to receive the Row address strobe clock; a delay, the input of the delay is coupled to the output of the first inverter; an inverting gate, the first input of the inverting gate is coupled to the first An output terminal of an inverter, the second input terminal of the inverter gate is coupled to the output terminal of the delay; and a second inverter, the input terminal of the second inverter is coupled to the inverter and Gate At the output, the output of the second inverter is coupled to the asynchronous determinator. 如申請專利範圍第1項至第3項中的任一項所述的控制電路,其中該時脈產生器包括:一第一反相器,該第一反相器的輸入端耦接於該非同步控制器以接收該非同步行位址選通時脈;一正反器,該正反器的設定輸入端耦接於該第一反相器的輸出端;一第一時序調整器,該第一時序調整器的輸入端耦接於該正反器的輸出端,該第一時序調整器用以基於該非同步行位址選通時脈調整該行位址選通時脈的高邏輯準位的時間長度;一第二反相器,該第二反相器的輸入端耦接於該第一時序調整器的輸出端,該第二反相器的輸出端用以提供該行位址選通時脈;以及一第二時序調整器,該第二時序調整器的輸入端耦接於該第一時序調整器的輸出端,該第二時序調整器的輸出端耦接於該正反器的重置輸入端,該第二時序調整器用以基於該非同步行位址選通時脈調整該正反器的重置時序。 The control circuit according to any one of items 1 to 3 of the patent application scope, wherein the clock generator includes: a first inverter, and an input terminal of the first inverter is coupled to the non-inverter The synchronous controller receives the non-synchronous row address strobe clock; a flip-flop, the setting input of the flip-flop is coupled to the output of the first inverter; a first timing regulator, the The input terminal of the first timing regulator is coupled to the output terminal of the flip-flop. The first timing regulator is used to adjust the high logic of the row address strobe clock based on the asynchronous row address strobe clock The length of time for the level; a second inverter, the input of the second inverter is coupled to the output of the first timing regulator, and the output of the second inverter is used to provide the row Address strobe clock; and a second timing adjuster, the input of the second timing adjuster is coupled to the output of the first timing adjuster, and the output end of the second timing adjuster is coupled to At the reset input terminal of the flip-flop, the second timing adjuster is used to adjust the reset timing of the flip-flop based on the strobe clock of the asynchronous row address. 如申請專利範圍第1項所述的控制電路,還包括:一同步寫入指示器,用以:判斷該偽靜態隨機存取記憶體執行該寫入操作的一第一初始時間點是否早於對寫入至該偽靜態隨機存取記憶體的資料進行鎖存的一第二初始時間點,並且 當判斷出該第一初始時間點早於該第二初始時間點時,提供一同步寫入指示信號;以及一同步控制器,耦接於該同步寫入指示器與該時脈產生器,用以依據該同步寫入指示信號被致能以基於該外部時脈提供一同步行位址選通時脈。 The control circuit as described in item 1 of the patent application scope further includes: a synchronous write indicator for determining whether a first initial time point at which the pseudo static random access memory performs the write operation is earlier than A second initial time point for latching the data written to the pseudo-static random access memory, and When it is determined that the first initial time point is earlier than the second initial time point, a synchronous write indication signal is provided; and a synchronous controller, coupled to the synchronous write indicator and the clock generator, is used to In accordance with the synchronous writing instruction signal, it is enabled to provide a strobe clock based on the external clock. 如申請專利範圍第7項所述的控制電路,其中該第一計數器依據該同步寫入指示信號被禁能以停止提供該第一計數值,該第二計數器依據該同步寫入指示信號被禁能以停止提供該第二計數值,使該比較器提供該第一邏輯準位的該模式信號。 The control circuit as described in item 7 of the patent application range, wherein the first counter is disabled according to the synchronous write instruction signal to stop providing the first count value, and the second counter is disabled according to the synchronous write instruction signal The second count value can be stopped to enable the comparator to provide the mode signal of the first logic level. 如申請專利範圍第7項所述的控制電路,其中該時脈產生器還用以當該同步寫入指示信號被提供時依據該同步行位址選通時脈提供該行位址選通時脈。 The control circuit as described in item 7 of the patent application scope, wherein the clock generator is also used to provide the row address strobe according to the synchronous row address strobe when the synchronous write instruction signal is provided pulse. 如申請專利範圍第7項所述的控制電路,其中該時脈產生器包括:一第一反相器,該第一反相器的輸入端耦接於該非同步控制器以接收該非同步行位址選通時脈;一正反器,該正反器的第一設定輸入端耦接於該第一反相器的輸出端;一第一時序調整器,該第一時序調整器的輸入端耦接於該正反器的輸出端;一第二反相器,該第二反相器的輸入端耦接於該第一時序調整器的輸出端,該第一反相器的輸出端用以提供該行位址選通時 脈;以及一第二時序調整器,該第二時序調整器的輸入端耦接於該第一時序調整器的輸出端,該第二時序調整器的輸出端耦接於該正反器的重置輸入端,該第二時序調整器用以基於該非同步行位址選通時脈調整該正反器的重置時序;以及一第三時序調整器,該第三時序調整器的輸入端耦接於該同步控制器以接收該同步行位址選通時脈,該第三時序調整器的輸入端耦接於該正反器的第二設定輸入端。 The control circuit as described in item 7 of the patent application scope, wherein the clock generator includes: a first inverter, an input terminal of the first inverter is coupled to the asynchronous controller to receive the asynchronous line position Address strobe clock; a flip-flop, the first setting input of the flip-flop is coupled to the output of the first inverter; a first timing regulator, the first timing regulator The input terminal is coupled to the output terminal of the flip-flop; a second inverter, the input terminal of the second inverter is coupled to the output terminal of the first timing regulator, the The output terminal is used to provide the row address strobe Pulse; and a second timing adjuster, the input of the second timing adjuster is coupled to the output of the first timing adjuster, and the output of the second timing adjuster is coupled to the A reset input terminal, the second timing adjuster is used to adjust the reset timing of the flip-flop based on the non-synchronized row address strobe clock; and a third timing adjuster, the input terminal of the third timing adjuster is coupled Connected to the synchronous controller to receive the synchronous row address strobe clock, the input terminal of the third timing regulator is coupled to the second setting input terminal of the flip-flop. 一種控制方法,適用於一偽靜態隨機存取記憶體,該控制方法包括:基於一外部時脈對寫入至該偽靜態隨機存取記憶體的資料的鎖存次數進行計數,以產生一第一計數值;在一非同步模式依據一行位址選通時脈提供一非同步行位址選通時脈;基於該非同步行位址選通時脈對寫入至該偽靜態隨機存取記憶體的資料的寫入次數進行計數,以產生一第二計數值,其中該非同步行位址選通時脈的初始週期小於該外部時脈的週期;比較該第一計數值與該第二計數值,其中當該第一計數值等於該第二計數值時提供一第一邏輯準位的一模式信號;依據第一次被提供的該第一邏輯準位的該模式信號將該寫入操作由該非同步模式進入一同步模式以將該非同步行位址選通時脈的週期調整為該外部時脈的週期;以及 依據該非同步行位址選通時脈提供該行位址選通時脈。 A control method applicable to a pseudo-static random access memory. The control method includes: counting the number of latches of data written to the pseudo-static random access memory based on an external clock to generate a first A count value; providing an asynchronous row address strobe clock according to the row address strobe clock in an asynchronous mode; writing the pseudo-random access memory based on the asynchronous row address strobe clock pair The number of times of writing data of the body is counted to generate a second count value, wherein the initial period of the asynchronous row address strobe clock is less than the period of the external clock; compare the first count value with the second count Value, wherein a mode signal providing a first logic level is provided when the first count value is equal to the second count value; the write operation is performed according to the mode signal of the first logic level provided for the first time Enter a synchronous mode from the asynchronous mode to adjust the period of the asynchronous row address strobe clock to the period of the external clock; and The row address strobe clock is provided based on the asynchronous row address strobe clock. 如申請專利範圍第11項所述的控制方法,其中比較該第一計數值與該第二計數值的步驟包括:當該第一計數值不等於該第二計數值時,提供一第二邏輯準位的該模式信號,其中該第二邏輯準位不同於該第一邏輯準位。 The control method as described in item 11 of the patent application scope, wherein the step of comparing the first count value with the second count value includes: when the first count value is not equal to the second count value, providing a second logic The mode signal of the level, wherein the second logic level is different from the first logic level. 如申請專利範圍第12項所述的控制方法,其中還包括:當該第二邏輯準位的該模式信號被提供時,在進入該寫入操作時開始提供該非同步行位址選通時脈。 The control method as described in item 12 of the patent application scope, which further includes: when the mode signal of the second logic level is provided, starting to provide the asynchronous row address strobe clock when entering the write operation . 如申請專利範圍第11項至第13項中的任一項所述的控制方法,其中該在該非同步模式依據該行位址選通時脈提供該非同步行位址選通時脈的步驟包括:接收該行位址選通時脈,並基於該行位址選通時脈調整該非同步行位址選通時脈的低邏輯準位的時間長度;以及在接收到該第二邏輯準位的該模式信號以及對應於進入該寫入操作中的寫入致能信號時該提供非同步行位址選通時脈。 The control method as described in any one of claims 11 to 13, wherein the step of providing the non-synchronized row address strobe clock in the asynchronous mode according to the row address strobe clock includes : Receive the row address strobe clock, and adjust the time length of the low logic level of the asynchronous row address strobe clock based on the row address strobe clock; and when the second logic level is received The mode signal and the write enable signal corresponding to entering the write operation should provide an asynchronous row address strobe clock. 如申請專利範圍第11項至第13項中的任一項所述的控制方法,其中該依據該非同步行位址選通時脈提供該行位址選通時脈的步驟包括:基於該非同步行位址選通時脈調整該行位址選通時脈的高邏輯準位的時間長度。 The control method according to any one of items 11 to 13 of the patent application range, wherein the step of providing the row address strobe clock according to the asynchronous row address strobe clock includes: based on the asynchronous The row address strobe clock adjusts the time length of the high logic level of the row address strobe clock. 如申請專利範圍第11項所述的控制方法,還包括: 判斷該偽靜態隨機存取記憶體執行該寫入操作的一第一初始時間點是否早於對寫入至該偽靜態隨機存取記憶體的資料進行鎖存的一第二初始時間點;當判斷出該第一初始時間點早於該第二初始時間點時,提供一同步寫入指示信號;以及依據該同步寫入指示信號基於該外部時脈提供一同步行位址選通時脈。 The control method described in item 11 of the patent application scope also includes: Determining whether a first initial time point at which the pseudo static random access memory performs the write operation is earlier than a second initial time point at which data written to the pseudo static random access memory is latched; When it is determined that the first initial time point is earlier than the second initial time point, a synchronous write instruction signal is provided; and a walk-in address strobe clock is provided based on the external clock according to the synchronous write instruction signal. 如申請專利範圍第16項所述的控制方法,還包括:依據該同步寫入指示信號停止提供該第一計數值並依據該同步寫入指示信號停止提供該第二計數值以提供該第一邏輯準位的該模式信號。 The control method as described in item 16 of the patent application scope further includes: stopping providing the first count value according to the synchronous writing instruction signal and stopping providing the second count value according to the synchronous writing instruction signal to provide the first The logic level of this mode signal. 如申請專利範圍第16項所述的控制方法,還包括:當該同步寫入指示信號被提供時依據該同步行位址選通時脈提供該行位址選通時脈。 The control method as described in Item 16 of the patent application scope further includes: when the synchronous write instruction signal is provided, providing the row address strobe clock according to the synchronous row address strobe clock.
TW108106281A 2019-02-25 2019-02-25 Control circuit and control method for pseudo static random access memory TWI694442B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108106281A TWI694442B (en) 2019-02-25 2019-02-25 Control circuit and control method for pseudo static random access memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108106281A TWI694442B (en) 2019-02-25 2019-02-25 Control circuit and control method for pseudo static random access memory

Publications (2)

Publication Number Publication Date
TWI694442B true TWI694442B (en) 2020-05-21
TW202032555A TW202032555A (en) 2020-09-01

Family

ID=71896232

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108106281A TWI694442B (en) 2019-02-25 2019-02-25 Control circuit and control method for pseudo static random access memory

Country Status (1)

Country Link
TW (1) TWI694442B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6977865B2 (en) * 2004-04-20 2005-12-20 Hynix Semiconductor Inc. Method and circuit for controlling operation mode of PSRAM
US7120085B2 (en) * 2004-04-13 2006-10-10 Hynix Semiconductor Inc. Pseudo SRAM having combined synchronous and asynchronous mode register set
TWI644313B (en) * 2018-02-01 2018-12-11 華邦電子股份有限公司 Pseudo static random access memory and control method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7120085B2 (en) * 2004-04-13 2006-10-10 Hynix Semiconductor Inc. Pseudo SRAM having combined synchronous and asynchronous mode register set
US6977865B2 (en) * 2004-04-20 2005-12-20 Hynix Semiconductor Inc. Method and circuit for controlling operation mode of PSRAM
TWI644313B (en) * 2018-02-01 2018-12-11 華邦電子股份有限公司 Pseudo static random access memory and control method thereof

Also Published As

Publication number Publication date
TW202032555A (en) 2020-09-01

Similar Documents

Publication Publication Date Title
TWI676180B (en) Memory device and method for refreshing psram
US9373371B2 (en) Dynamic burst length output control in a memory
WO2014129438A1 (en) Semiconductor device
US20180226121A1 (en) Apparatuses and methods for refresh control
JP4717373B2 (en) Semiconductor memory
US7397727B2 (en) Write burst stop function in low power DDR sDRAM
US7254090B2 (en) Semiconductor memory device
US10643689B1 (en) Control circuit and control method for pseudo static random access memory
TWI694442B (en) Control circuit and control method for pseudo static random access memory
US11842765B2 (en) Semiconductor memory device operates asynchronously with external clock signal
US10957378B1 (en) Control circuit and control method thereof for pseudo static random access memory
KR102196677B1 (en) Control circuit and control method for pseudo static random access memory
JP4241087B2 (en) Semiconductor memory device
TWI709964B (en) Control circuit and control method thereof for pseudo static random access memory
CN112992222B (en) Control circuit applied to pseudo-static random access memory and control method thereof
KR102726650B1 (en) Pseudo static random access memory and reading method thereof
JP6874097B1 (en) Control circuit used for pseudo SRAM and its control method
JP2006228342A (en) Semiconductor storage device
KR102265513B1 (en) Control circuit and control method thereof for pseudo static random access memory
US7952957B2 (en) Circuit for generating read and signal and circuit for generating internal clock using the same
CN111276175B (en) Memory device and refreshing method of virtual static random access memory
KR20230153201A (en) Pseudo static random access memory and reading method thereof
TWI449042B (en) Self-refresh circuit and mehtod for semiconductor memory device
JP5256879B2 (en) Semiconductor memory device
KR20030033511A (en) SRAM with storage capacitor cell