[go: up one dir, main page]

TW202203042A - Memory device, electronic device, and associated read method - Google Patents

Memory device, electronic device, and associated read method Download PDF

Info

Publication number
TW202203042A
TW202203042A TW109122076A TW109122076A TW202203042A TW 202203042 A TW202203042 A TW 202203042A TW 109122076 A TW109122076 A TW 109122076A TW 109122076 A TW109122076 A TW 109122076A TW 202203042 A TW202203042 A TW 202203042A
Authority
TW
Taiwan
Prior art keywords
memory module
period
read
memory
time point
Prior art date
Application number
TW109122076A
Other languages
Chinese (zh)
Other versions
TWI743859B (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 TW109122076A priority Critical patent/TWI743859B/en
Application granted granted Critical
Publication of TWI743859B publication Critical patent/TWI743859B/en
Publication of TW202203042A publication Critical patent/TW202203042A/en

Links

Images

Landscapes

  • Dram (AREA)

Abstract

A memory device, an electronic device, and associated read method capable of performing a synchronized read operation to multiple memory modules are provided. The electronic device includes a host control device, a first memory module and a second memory module, and the host control device executes a read operation to the first and the second memory modules simultaneously. When a refresh collision occurs in the first memory module, the first memory module reports the refresh confliction to the host control device. After a synchronized data preparation duration passes, the first and the second memory modules respectively transmit a first synchronized read data and a second synchronized read data to the host in a synchronized read duration. The synchronized data preparation duration is longer than a predefined read latency.

Description

記憶體裝置、電子裝置及與其相關的讀取方法Memory device, electronic device and reading method related thereto

本發明是有關於一種記憶體裝置、電子裝置及與其相關的讀取方法,且特別是有關於一種可對多個記憶體模組進行同步讀取之記憶體裝置、電子裝置及與其相關的讀取方法。The present invention relates to a memory device, an electronic device and a reading method related thereto, and more particularly, to a memory device, an electronic device and a reading method related thereto that can perform synchronous reading of a plurality of memory modules take method.

可攜式電子裝置日益普及,搭配影音應用趨勢,使記憶體模組的需求有增無減。也因此,記憶體模組的儲存容量越來越大。然而,隨著應用的不同,部分的電子裝置並不需要使用很大容量的記憶體模組。此外,大容量的記憶體模組需佔用較多的接腳數(pin number),因而成為設計嵌入式系統時的限制。The increasing popularity of portable electronic devices, coupled with the trend of audio and video applications, has led to an unabated demand for memory modules. Therefore, the storage capacity of the memory module is getting larger and larger. However, with different applications, some electronic devices do not need to use large-capacity memory modules. In addition, a large-capacity memory module requires a larger number of pins, which is a limitation when designing an embedded system.

請參見第1圖,其係電子裝置內的記憶體模組使用動態隨機存取記憶體DRAM之示意圖。電子裝置10a包含主控裝置13a與記憶體模組11a。其中主控裝置13a可為嵌入式系統中的控制器(controller)或數位信號處理器(digital signal process,簡稱為DSP),記憶體模組(DRAM)11a採用的是動態隨機存取記憶體(Dynamic Random Access Memory,簡稱為DRAM)技術。主控裝置13a利用晶片選取信號CS#選取記憶體模組(DRAM)11a,並傳送控制信號CTL至記憶體模組(DRAM)11a。根據控制信號CTL與系統時脈信號SCLK,主控裝置13a與記憶體模組(DRAM)11a之間,以64位元的系統輸入輸出信號線SIO[64:1]傳送記憶體位址與讀取資料DATm。其中,記憶體位址包含記憶體模組(DRAM)11a的列位址ADRr與行位址ADRc。Please refer to FIG. 1 , which is a schematic diagram of a memory module in an electronic device using dynamic random access memory (DRAM). The electronic device 10a includes a main control device 13a and a memory module 11a. The main control device 13a may be a controller or a digital signal process (DSP) in an embedded system, and the memory module (DRAM) 11a uses a dynamic random access memory (DRAM) Dynamic Random Access Memory, referred to as DRAM) technology. The main control device 13a selects the memory module (DRAM) 11a by using the chip selection signal CS#, and transmits the control signal CTL to the memory module (DRAM) 11a. According to the control signal CTL and the system clock signal SCLK, between the main control device 13a and the memory module (DRAM) 11a, the 64-bit system input and output signal lines SIO[64:1] are used to transmit the memory address and read Data DATm. The memory address includes a column address ADRr and a row address ADRc of the memory module (DRAM) 11a.

隨著記憶體技術的發展,採用DRAM技術的記憶體模組(DRAM)11a的容量可能過大,且接線數量可能過多。因此,目前市面上發展出一種使用虛擬靜態隨機存取記憶體(Pseudo Static Random Access Memory,簡稱為PSRAM)的記憶體模組。With the development of memory technology, the capacity of the memory module (DRAM) 11a using the DRAM technology may be too large, and the number of wires may be too large. Therefore, a memory module using a pseudo static random access memory (Pseudo Static Random Access Memory, referred to as PSRAM for short) is currently developed on the market.

請參見第2圖,其係電子裝置內的記憶體模組使用虛擬靜態隨機存取記憶體PSRAM之示意圖。電子裝置10b包含主控裝置13b與記憶體模組(PSRAM)11b。其中記憶體模組(PSRAM)11b採用的是虛擬靜態隨機存取記憶體PSRAM技術。主控裝置13b利用晶片選取信號CS#選取記憶體模組(PSRAM)11b後,將控制信號CTL傳送至記憶體模組(PSRAM)11b。根據控制信號CTL、系統時脈信號SCLK與資料閃控遮罩信號(Read Data strobe/Write Data Mask,簡稱為DQSM)的控制,主控裝置13與記憶體模組(PSRAM)11b之間,以8位元的系統輸入輸出信號線SIO[8:1]傳送記憶體位址與讀取資料。為便於說明,本文使用相同的符號代表信號線與利用該信號線所傳送的信號。例如,利用控制信號線CTL傳送控制信號CTL。Please refer to FIG. 2 , which is a schematic diagram of a memory module in an electronic device using a virtual static random access memory PSRAM. The electronic device 10b includes a main control device 13b and a memory module (PSRAM) 11b. The memory module (PSRAM) 11b adopts the PSRAM technology of virtual static random access memory. After the main control device 13b selects the memory module (PSRAM) 11b by using the chip selection signal CS#, it transmits the control signal CTL to the memory module (PSRAM) 11b. According to the control of the control signal CTL, the system clock signal SCLK and the data flashing mask signal (Read Data strobe/Write Data Mask, DQSM for short), between the main control device 13 and the memory module (PSRAM) 11b, the The 8-bit system input and output signal line SIO[8:1] transmits memory address and read data. For convenience of explanation, the same symbols are used herein to represent the signal line and the signal transmitted by the signal line. For example, the control signal CTL is transmitted using the control signal line CTL.

比較第1、2圖可以看出,兩張圖式中的系統輸入輸出信號線SIO的數量相差甚大。此外,第1圖的主控裝置13a所需之控制信號CTL的數量,較第2圖的主控裝置13b所需之控制信號CTL多。因此,使用記憶體模組(PSRAM)11b時,主控裝置13所需的接腳較少。連帶的,使用PSRAM技術的記憶體模組(PSRAM)11b亦成為嵌入式系統的趨勢。Comparing Figures 1 and 2, it can be seen that the number of system input and output signal lines SIO in the two figures is very different. In addition, the number of control signals CTL required by the main control device 13a in FIG. 1 is larger than that required by the main control device 13b in FIG. 2 . Therefore, when the memory module (PSRAM) 11b is used, the main control device 13 needs fewer pins. In addition, the memory module (PSRAM) 11b using PSRAM technology has also become a trend of embedded systems.

採用PSRAM技術時,記憶體模組需要持續地進行更新(refresh)方能維持所儲存的資料。若記憶體模組內部正在進行更新的期間,剛好接收到來自主控裝置的讀取指令,則記憶體模組因為正在進行更新的緣故,無法即刻執行讀取操作。此種因為記憶體模組正在進行更新而無法立刻執行讀取操作的現象稱為更新衝突(refresh collision)。When using PSRAM technology, the memory module needs to be continuously refreshed to maintain the stored data. If a read command from the main control device is just received while the memory module is being updated, the memory module cannot immediately perform the read operation because the memory module is being updated. Such a phenomenon that the read operation cannot be performed immediately because the memory module is being updated is called a refresh collision.

記憶體模組(PSRAM)11b採用虛擬靜態隨機存取記憶體PSRAM技術時,主控裝置13b對記憶體模組(PSRAM)11b進行讀取操作(read operation)時,可能因為記憶體模組(PSRAM)11b本身的狀態不同而有以下兩種情形:一般情況下的讀取操作,或是更新衝突下的讀取操作。以下,分別以第3A圖說明記憶體模組(PSRAM)11b在一般情況(未發生更新衝突時)的讀取操作的波形,以及以第3B圖說明記憶體模組(PSRAM)11b在讀取操作時發生更新衝突的波形。When the memory module (PSRAM) 11b adopts the virtual static random access memory PSRAM technology, when the main control device 13b performs a read operation on the memory module (PSRAM) 11b, it may be caused by the memory module ( The state of the PSRAM) 11b itself is different and there are two situations as follows: a read operation under normal circumstances, or a read operation under an update conflict. In the following, Fig. 3A is used to illustrate the waveform of the read operation of the memory module (PSRAM) 11b in a normal situation (when no update conflict occurs), and Fig. 3B is used to illustrate the read operation of the memory module (PSRAM) 11b. The waveform for which an update conflict occurred while operating.

在第3A、3B圖中,由上而下分別為晶片選取信號CS#、系統時脈信號SCLK、資料閃控遮罩信號DQSM、系統輸入輸出信號線SIO[8:1]。在本文中,波形圖的橫軸均為時間。In Figures 3A and 3B, from top to bottom are the chip select signal CS#, the system clock signal SCLK, the data flash mask signal DQSM, and the system input and output signal lines SIO[8:1]. In this article, the horizontal axis of the waveform graph is time.

請參見第3A圖,其係主控裝置使用PSRAM記憶體模組進行一般讀取操作的波形圖。首先,主控裝置13b在時點t1將與記憶體模組(PSRAM)11b對應的晶片選取信號CS#由高位準拉低至低位準。接著,待記憶體模組11b在時點t2將資料閃控遮罩信號DQSM拉低至低位準後,主控裝置13b利用系統輸入輸出信號線SIO[8:1]依序發出讀取指令mCMDrd、列位址(row address)ADRr與行位址(column address)ADRc至記憶體模組(PSRAM)11b。Please refer to FIG. 3A , which is a waveform diagram of a general read operation performed by the master device using the PSRAM memory module. First, the main control device 13b pulls down the chip select signal CS# corresponding to the memory module (PSRAM) 11b from a high level to a low level at a time point t1. Next, after the memory module 11b pulls down the data flash control mask signal DQSM to a low level at time t2, the main control device 13b uses the system input and output signal lines SIO[8:1] to sequentially issue the read commands mCMDrd, The row address (ADRr) and the row address (column address) ADRc are sent to the memory module (PSRAM) 11b.

在本文中,將主控裝置13b傳送讀取指令mCMDrd的期間(時點t3~時點t4)定義為讀取指令傳送期間Tcmd;主控裝置13b傳送記憶體位址的期間(時點t4~時點t7)定義為位址傳送期間Tadr;主控裝置13b傳送列位址ADRr的期間(時點t4~時點t6)定義為列位址期間Tadr_r;主控裝置13b傳送行位址ADRc的期間(時點t6~時點t7)定義為行位址期間Tadr_c。為便於說明,本文以點狀網底代表讀取指令mCMDrd;以橫向網底代表列位址ADRr;以及,以縱向網底代表行位址ADRc。In this paper, the period during which the master control device 13b transmits the read command mCMDrd (time t3 to time t4) is defined as the read command transmission period Tcmd; the period during which the master control device 13b transmits the memory address (time t4 to time t7) is defined as is the address transmission period Tadr; the period during which the main control device 13b transmits the column address ADRr (time t4~time t6) is defined as the column address period Tadr_r; the period during which the main control apparatus 13b transmits the row address ADRc (time t6~time t7) ) is defined as the row address period Tadr_c. For the convenience of description, the read command mCMDrd is represented by the dot-shaped mesh bottom; the column address ADRr is represented by the horizontal mesh bottom; and the row address ADRc is represented by the vertical mesh bottom.

在記憶體模組(PSRAM)11b中,可定義讀取延遲計數(latency count,簡稱為LC)。讀取延遲計數LC代表記憶體模組(PSRAM)11b自主控裝置13b取得列位址(row address)後,自記憶體陣列內將讀取資料DATm讀取至內部緩衝器所需的時間。本文假設讀取延遲計數LC為系統時脈週期Tclk的三倍(LC=Tclk*3)。In the memory module (PSRAM) 11b, a read latency count (LC for short) can be defined. The read delay count LC represents the time required for reading the read data DATm from the memory array to the internal buffer after the memory module (PSRAM) 11b obtains the row address from the control device 13b. This article assumes that the read delay count LC is three times the system clock period Tclk (LC=Tclk*3).

記憶體模組(PSRAM)11b接收讀取指令mCMDrd、列位址ADRr與行位址(column address)ADRc後,需再等待一段時間後,方能將讀取資料DATm從記憶體陣列複製至內部緩衝器準備妥當。如第3A圖所示,若記憶體模組(PSRAM)11b未發生更新碰撞時,記憶體模組(PSRAM)11b所需之,將讀取資料DATm從記憶體陣列複製至內部緩衝器的期間,取決於預設讀取延遲(dftLC =LC*1)。預設讀取延遲dftLC代表,記憶體模組(PSRAM)11b未發生更新衝突時,為進行資料讀取所需等待之讀取延遲計數LC的個數。其中,預設讀取延遲(dftLC=LC*1)係自記憶體模組(PSRAM)11b接收列位址mADRr(即,時點t5)後開始計算。After the memory module (PSRAM) 11b receives the read command mCMDrd, the column address ADRr and the row address (column address) ADRc, the read data DATm can be copied from the memory array to the internal after waiting for a period of time. The buffer is ready. As shown in FIG. 3A, if the memory module (PSRAM) 11b does not have an update collision, the period required by the memory module (PSRAM) 11b to copy the read data DATm from the memory array to the internal buffer , depending on the preset read delay (dftLC =LC*1). The default read delay dftLC represents the number of read delay counts LC required to wait for data read when the memory module (PSRAM) 11b has no update conflict. The predetermined read delay (dftLC=LC*1) is calculated after the memory module (PSRAM) 11b receives the column address mADRr (ie, time t5).

一旦預設讀取延遲(dftLC=LC*1)結束(時點t8)後,記憶體模組(PSRAM)11b在系統時脈信號SCLK的下一個上升緣(即,時點t9),利用資料閃控遮罩信號DQSM陸續產生兩個讀取閃控(read strobe)脈衝信號mstrb1、mstrb2。在讀取閃控脈衝信號mstrb1、mstrb2產生的同時, 記憶體模組11b亦利用系統輸入輸出信號線SIO[8:1],將位於內部緩衝器的讀取資料DATm傳送至主控裝置13b。Once the preset read delay (dftLC=LC*1) ends (time t8), the memory module (PSRAM) 11b uses the data flash at the next rising edge of the system clock signal SCLK (ie, time t9). The mask signal DQSM successively generates two read strobe pulse signals mstrb1 and mstrb2. When the read flash pulse signals mstrb1 and mstrb2 are generated, the memory module 11b also transmits the read data DATm in the internal buffer to the main control device 13b by using the system input and output signal lines SIO[8:1].

請參見第3B圖,其係主控裝置使用PSRAM記憶體模組進行讀取操作時,記憶體模內部發生更新衝突的波形圖。由於第3A、3B圖的波形大致類似,此處不重複說明晶片選取信號CS#、系統時脈信號SCLK、資料閃控遮罩信號DQSM、系統輸入輸出信號SIO[8:1]的前後變動順序。Please refer to FIG. 3B , which is a waveform diagram of an update conflict in the memory module when the master device uses the PSRAM memory module to perform a read operation. Since the waveforms in Figures 3A and 3B are roughly similar, the sequence of changes in the chip select signal CS#, system clock signal SCLK, data flash mask signal DQSM, and system input and output signal SIO[8:1] will not be repeated here. .

比較第3A、3B圖可以看出,在第3A圖中,記憶體模組(PSRAM)11b等待預設讀取延遲(dftLC=LC*1) 後,即可傳送讀取資料DATm至主控裝置13b。在第3B圖中,記憶體模組(PSRAM)11b須等待至更新讀取延遲rfcLC(例如,rfcLC=LC*2)(時點t9)後,方得傳送讀取資料DATm至主控裝置13b。更新讀取延遲rfcLC代表,記憶體模組(PSRAM)11b發生更新衝突時,需等待更新衝突結束後可進行資料讀取所需的讀取延遲計數LC的個數。為便於說明,本文假設更新讀取延遲rfcLC為兩個讀取延遲計數的長度(rfcLC =LC*2)。實際應用時,更新讀取延遲rfcLC所包含之讀取延遲計數LC的個數並不以此為限。Comparing Figures 3A and 3B, it can be seen that in Figure 3A, the memory module (PSRAM) 11b waits for the preset read delay (dftLC=LC*1), and then can transmit the read data DATm to the main control device 13b. In FIG. 3B, the memory module (PSRAM) 11b has to wait until the read delay rfcLC (eg, rfcLC=LC*2) is updated (time point t9), and then can transmit the read data DATm to the master device 13b. The update read delay rfcLC represents the number of read delay counts LC required for data reading after the update conflict occurs in the memory module (PSRAM) 11b when an update conflict occurs. For ease of illustration, this paper assumes that the update read delay rfcLC is the length of two read delay counts (rfcLC =LC*2). In practical applications, the number of read delay counts LC included in updating the read delay rfcLC is not limited to this.

在第3B圖中,資料閃控遮罩信號DQSM在時點t10由低位準上升至高位準,並用於在時點t10至時點t11的期間發出讀取閃控脈衝信號m1strb1、m1strb2。記憶體模組(PSRAM)11b可藉由資料閃控遮罩信號DQSM的變化,通知主控裝置13b讀取資料DATm已經在內部緩衝器準備妥當。接著,記憶體模組(PSRAM)11b將先前存放在內部緩衝器的讀取資料傳送至系統輸入輸出信號線SIO[8:1],供主控裝置13b存取。由於主控裝置13b對記憶體模組(PSRAM)11b進行的讀取操作可能是連續性的,在記憶體模組(PSRAM)11b將先前存放在內部緩衝器的讀取資料傳送至系統輸入輸出信號線SIO[8:1]的同時,記憶體模組(PSRAM)11b亦將持續自記憶體陣列中讀取資料並傳送至內部緩衝器內。In Figure 3B, the data flash mask signal DQSM rises from a low level to a high level at time t10, and is used to issue read flash pulse signals m1strb1 and m1strb2 during the period from time t10 to time t11. The memory module (PSRAM) 11b can notify the main control device 13b that the read data DATm has been prepared in the internal buffer through the change of the data flash mask signal DQSM. Next, the memory module (PSRAM) 11b transmits the read data previously stored in the internal buffer to the system input and output signal lines SIO[8:1] for access by the main control device 13b. Since the read operation performed by the master device 13b on the memory module (PSRAM) 11b may be continuous, the memory module (PSRAM) 11b transmits the read data previously stored in the internal buffer to the system input and output Simultaneously with the signal lines SIO[8:1], the memory module (PSRAM) 11b will continue to read data from the memory array and transmit it to the internal buffer.

在部分的應用中,電子裝置可能須同時使用多個使用虛擬靜態隨機存取記憶體PSRAM技術的記憶體模組。針對此種同時包含多個虛擬靜態隨機存取記憶體PSRAM記憶體模組之電子裝置,可能因為記憶體模組本身是否發生更新衝突的狀態不同,使主控裝置無法正確地自多個記憶體模組同步取得讀取資料。In some applications, an electronic device may need to use multiple memory modules using PSRAM technology at the same time. For such an electronic device including multiple virtual static random access memory (PSRAM) memory modules at the same time, the main control device may not be able to correctly access the multiple memory modules due to the different statuses of whether the update conflict occurs in the memory modules themselves. The module obtains the read data synchronously.

本發明係有關於一種可對多個記憶體模組進行同步讀取之記憶體裝置、電子裝置及與其相關的讀取方法。當記憶體裝置包含多個記憶體模組,且其中一個記憶體模組發生更新衝突時,電子裝置內的主控裝置仍可同步地自記憶體模組取得讀取資料。The present invention relates to a memory device capable of synchronously reading multiple memory modules, an electronic device and a reading method related thereto. When the memory device includes a plurality of memory modules, and an update conflict occurs in one of the memory modules, the main control device in the electronic device can still obtain the read data from the memory module synchronously.

根據本發明之第一方面,提出一種電連接於主控裝置的記憶體裝置。主控裝置係於讀取操作期間(Trd)對第一記憶體裝置執行讀取操作,且記憶體裝置包含:第一記憶體模組(PSRAM1)與第二記憶體模組(PSRAM2)。第一記憶體模組(PSRAM1)於讀取操作期間產生更新衝突。第一記憶體模組(PSRAM1)與第二記憶體模組(PSRAM2)於讀取指令傳送期間(Tcmd)分別接收主控裝置所傳送的第一讀取指令(m1CMDrd)與第二讀取指令(m2CMDrd)。第一記憶體模組(PSRAM1)與第二記憶體模組(PSRAM2)於位址傳送期間(Tadr)分別接收第一記憶體位址(m1ADDr、m1ADDc)與第二記憶體位址(m2ADDr、m2ADDc)。其中,讀取指令傳送期間(Tcmd)早於位址傳送期間(Tadr)。經過同步資料準備期間(Tsdatpr)後,第一記憶體模組(PSRAM1)與第二記憶體模組(PSRAM2)係同時於同步資料讀取期間(Tdat_sync),分別傳送第一同步讀取資料(DATm1)與第二同步讀取資料(DATm2)至主控裝置,其中該同步資料準備期間(Tsdatpr) 係大於一預設讀取延遲(dftLC=LC*1)。According to a first aspect of the present invention, a memory device electrically connected to a main control device is provided. The main control device performs a read operation on the first memory device during the read operation period (Trd), and the memory device includes a first memory module (PSRAM1) and a second memory module (PSRAM2). The first memory module (PSRAM1) generates an update conflict during a read operation. The first memory module (PSRAM1) and the second memory module (PSRAM2) respectively receive the first read command (m1CMDrd) and the second read command sent by the main control device during the read command transmission period (Tcmd) (m2CMDrd). The first memory module (PSRAM1) and the second memory module (PSRAM2) respectively receive the first memory address (m1ADDr, m1ADDc) and the second memory address (m2ADDr, m2ADDc) during the address transfer period (Tadr) . The read command transfer period (Tcmd) is earlier than the address transfer period (Tadr). After the synchronization data preparation period (Tsdatpr), the first memory module (PSRAM1) and the second memory module (PSRAM2) simultaneously transmit the first synchronization read data (Tdat_sync) during the synchronization data read period (Tdat_sync). DATm1) and the second synchronous read data (DATm2) to the master device, wherein the synchronous data preparation period (Tsdatpr) is greater than a predetermined read delay (dftLC=LC*1).

根據本發明之第二方面,提出一種電子裝置。電子裝置包含:記憶體裝置以及一主控裝置。記憶體裝置包含:第一記憶體模組(PSRAM1)與第二記憶體模組(PSRAM2)。第一記憶體模組(PSRAM1)於讀取操作期間產生更新衝突。第一記憶體模組(PSRAM1)與第二記憶體模組(PSRAM2)於讀取指令傳送期間(Tcmd)分別接收主控裝置所傳送的第一讀取指令(m1CMDrd)與第二讀取指令(m2CMDrd)。第一記憶體模組(PSRAM1)與第二記憶體模組(PSRAM2)於位址傳送期間(Tadr)分別接收第一記憶體位址(m1ADDr、m1ADDc)與第二記憶體位址(m2ADDr、m1ADDc)。其中,讀取指令傳送期間(Tcmd)早於位址傳送期間(Tadr)。經過同步資料準備期間(Tsdatpr)後,第一記憶體模組(PSRAM1)與第二記憶體模組(PSRAM2)係同時於同步資料讀取期間(Tdat_sync),分別傳送第一同步讀取資料(DATm1)與第二同步讀取資料(DATm2)至主控裝置,其中該同步資料準備期間(Tsdatpr) 係大於一預設讀取延遲(dftLC=LC*1 )。According to a second aspect of the present invention, an electronic device is provided. The electronic device includes: a memory device and a main control device. The memory device includes: a first memory module (PSRAM1) and a second memory module (PSRAM2). The first memory module (PSRAM1) generates an update conflict during a read operation. The first memory module (PSRAM1) and the second memory module (PSRAM2) respectively receive the first read command (m1CMDrd) and the second read command sent by the main control device during the read command transmission period (Tcmd) (m2CMDrd). The first memory module (PSRAM1) and the second memory module (PSRAM2) respectively receive the first memory address (m1ADDr, m1ADDc) and the second memory address (m2ADDr, m1ADDc) during the address transfer period (Tadr) . The read command transfer period (Tcmd) is earlier than the address transfer period (Tadr). After the synchronization data preparation period (Tsdatpr), the first memory module (PSRAM1) and the second memory module (PSRAM2) simultaneously transmit the first synchronization read data (Tdat_sync) during the synchronization data read period (Tdat_sync). DATm1) and the second synchronous read data (DATm2) to the master device, wherein the synchronous data preparation period (Tsdatpr) is greater than a predetermined read delay (dftLC=LC*1).

根據本發明之第三方面,提出一種應用於電子裝置的讀取方法。電子裝置包含主控裝置、第一記憶體模組(PSRAM1)與第二記憶體模組(PSRAM2)。主控裝置於讀取操作期間(Trd)對第一記憶體模組(PSRAM1)與第二記憶體模組(PSRAM2)執行讀取操作。第一記憶體模組(PSRAM1)於讀取操作期間產生更新衝突,且讀取方法包含以下步驟。首先,第一記憶體模組(PSRAM1)與第二記憶體模組(PSRAM2)於讀取指令傳送期間分別接收主控裝置所傳送的第一讀取指令(m1CMDrd)與第二讀取指令(m2CMDrd)。其次,第一記憶體模組(PSRAM1)與第二記憶體模組(PSRAM2)於位址傳送期間(Tadr)分別接收第一記憶體位址(m1ADRr、ADRc)與第二記憶體位址(m2ADRr、m2ADRc) 。其中,讀取指令傳送期間(Tcmd)早於位址傳送期間(Tadr)。經過同步資料準備期間(Tsdatpr)後,第一記憶體模組(PSRAM1)與第二記憶體模組(PSRAM2)係同時於同步資料讀取期間(Tdat_sync),分別傳送第一同步讀取資料(DATm1)與第二同步讀取資料(DATm2)至主控裝置,其中該同步資料準備期間(Tsdatpr) 係大於一預設讀取延遲( dftLC=LC*1)。According to a third aspect of the present invention, a reading method applied to an electronic device is provided. The electronic device includes a main control device, a first memory module (PSRAM1) and a second memory module (PSRAM2). The main control device performs a read operation on the first memory module (PSRAM1) and the second memory module (PSRAM2) during the read operation period (Trd). The first memory module (PSRAM1) generates an update conflict during a read operation, and the read method includes the following steps. First, the first memory module (PSRAM1) and the second memory module (PSRAM2) respectively receive the first read command (m1CMDrd) and the second read command ( m2CMDrd). Secondly, the first memory module (PSRAM1) and the second memory module (PSRAM2) respectively receive the first memory address (m1ADRr, ADRc) and the second memory address (m2ADRr, m2ADRc). The read command transfer period (Tcmd) is earlier than the address transfer period (Tadr). After the synchronization data preparation period (Tsdatpr), the first memory module (PSRAM1) and the second memory module (PSRAM2) simultaneously transmit the first synchronization read data (Tdat_sync) during the synchronization data read period (Tdat_sync). DATm1) and the second synchronous read data (DATm2) to the master device, wherein the synchronous data preparation period (Tsdatpr) is greater than a predetermined read delay (dftLC=LC*1).

為了對本發明之上述及其他方面有更佳的瞭解,下文特舉實施例,並配合所附圖式詳細說明如下:In order to have a better understanding of the above-mentioned and other aspects of the present invention, the following specific examples are given and described in detail in conjunction with the accompanying drawings as follows:

請參見第4圖,其係電子裝置包含兩個虛擬靜態隨機存取記憶體PSRAM記憶體模組的示意圖。電子裝置20包含主控裝置23與記憶體裝置25,且記憶體裝置25包含記憶體模組(PSRAM1)21、(PSRAM2)22。Please refer to FIG. 4 , which is a schematic diagram of an electronic device including two virtual static random access memory (PSRAM) memory modules. The electronic device 20 includes a main control device 23 and a memory device 25 , and the memory device 25 includes memory modules ( PSRAM1 ) 21 and ( PSRAM2 ) 22 .

主控裝置23的系統輸入輸出信號線SIO[16:1]包含16個位元,這16個位元中的8根系統輸入輸出信號線SIO[8:1]與記憶體模組(PSRAM1)21相連;另外的8根系統輸入輸出信號線SIO[16:9]則與記憶體模組(PSRAM2)22相連。主控裝置23具有兩根資料閃控遮罩信號線DQSM[2:1],其中資料閃控遮罩信號線DQSM[1]與記憶體模組(PSRAM1)21相連,資料閃控遮罩信號線DQSM[2]與記憶體模組(PSRAM2)22相連。The system input/output signal line SIO[16:1] of the main control device 23 includes 16 bits, and 8 of the 16 bits are the system input/output signal line SIO[8:1] and the memory module (PSRAM1) 21 is connected; the other 8 system input and output signal lines SIO[16:9] are connected with the memory module (PSRAM2) 22. The main control device 23 has two data flashing mask signal lines DQSM[2:1], wherein the data flashing mask signal line DQSM[1] is connected to the memory module (PSRAM1) 21, and the data flashing mask signal line DQSM[1] is connected to the memory module (PSRAM1) 21. Line DQSM[2] is connected to the memory module (PSRAM2) 22.

主控裝置23利用晶片選取信號CS#選取記憶體模組(PSRAM1)21、(PSRAM2)22。根據系統時脈信號SCLK,主控裝置23利用系統輸入輸出信號線SIO[8:1]、SIO[16:9] 分別傳送與記憶體模組(PSRAM1)21、(PSRAM2)22對應的記憶體位址至記憶體模組(PSRAM1)21、(PSRAM2)22,且記憶體模組(PSRAM1)21、(PSRAM2)22分別利用系統輸入輸出信號線SIO[8:1]、SIO[16:9]將讀取資料DATm1、DATm2傳送至主控裝置23。其中,記憶體模組(PSRAM1)21的記憶體位址包含列位址m1ADRr與行位址m1ADRc,記憶體模組(PSRAM2)22的記憶體位址包含列位址m2ADRr與行位址m2ADRc。The main control device 23 selects the memory modules (PSRAM1) 21 and (PSRAM2) 22 by using the chip selection signal CS#. According to the system clock signal SCLK, the main control device 23 transmits the memory bits corresponding to the memory modules (PSRAM1) 21 and (PSRAM2) 22 respectively using the system input and output signal lines SIO[8:1] and SIO[16:9] address to the memory modules (PSRAM1) 21 and (PSRAM2) 22, and the memory modules (PSRAM1) 21 and (PSRAM2) 22 use the system input and output signal lines SIO[8:1] and SIO[16:9] respectively. The read data DATm1 and DATm2 are sent to the main control device 23 . The memory address of the memory module (PSRAM1) 21 includes a column address m1ADRr and a row address m1ADRc, and the memory address of the memory module (PSRAM2) 22 includes a column address m2ADRr and a row address m2ADRc.

請參見第5圖,其係主控裝置對記憶體模組PSRAM1、PSRAM2,以預設資料同步方式進行讀取操作之示意圖。第5圖的波形由上而下分別為同時傳送至記憶體模組(PSRAM1)21、(PSRAM2)22的晶片選取信號CS#與系統時脈信號SCLK、傳送至記憶體模組(PSRAM1)21的資料閃控遮罩信號DQSM[1]與系統輸入輸出信號SIO[8:1],以及傳送至記憶體模組(PSRAM2)22的資料閃控遮罩信號DQSM [2]與系統輸入輸出信號SIO[16:9]。資料閃控遮罩信號DQSM[1]、DQSM[2]未被驅動時,可能處於浮接狀態。或者,可藉由上拉電阻將未被驅動的資料閃控遮罩信號DQSM[1]、DQSM[2]維持在高位準,或是藉由下拉電阻將未被驅動的資料閃控遮罩信號DQSM[1]、DQSM[2]維持在低位準。本文假設未被驅動的資料閃控遮罩信號DQSM[1]、DQSM[2]維持在低位準。Please refer to FIG. 5 , which is a schematic diagram of the master control device performing a read operation on the memory modules PSRAM1 and PSRAM2 in a preset data synchronization manner. The waveforms in Fig. 5 are, from top to bottom, the chip select signal CS# and the system clock signal SCLK that are simultaneously transmitted to the memory modules (PSRAM1) 21 and (PSRAM2) 22, and are transmitted to the memory module (PSRAM1) 21 The data flash mask signal DQSM[1] and the system I/O signal SIO[8:1], and the data flash mask signal DQSM[2] and the system I/O signal transmitted to the memory module (PSRAM2) 22 SIO[16:9]. When the data flash mask signals DQSM[1] and DQSM[2] are not driven, they may be in a floating state. Alternatively, the undriven data flash mask signals DQSM[1] and DQSM[2] can be maintained at a high level by a pull-up resistor, or the undriven data flash mask signal can be kept at a high level by a pull-down resistor DQSM[1], DQSM[2] are maintained at low level. In this paper, it is assumed that the undriven data flash mask signals DQSM[1] and DQSM[2] are maintained at a low level.

為簡化說明,在以下的波形圖中,定義數個時間參數。這些時間參數包含:讀取操作期間Trd、晶片選取期間Tcs、設定期間Tset、讀取指令傳送期間Tcmd、位址傳送期間Tadr、同步資料準備期間Tsdatpr、同步資料讀取期間Tdat_sync。接著,簡要介紹這些時間參數的定義。To simplify the description, in the following waveform diagrams, several time parameters are defined. These time parameters include: read operation period Trd, chip selection period Tcs, set period Tset, read command transfer period Tcmd, address transfer period Tadr, synchronization data preparation period Tsdatpr, and synchronization data read period Tdat_sync. Next, the definitions of these time parameters are briefly introduced.

讀取操作期間Trd為,主控裝置23對記憶體模組(PSRAM1)21、(PSRAM2)22執行讀取操作所需花費的時間。晶片選取期間Tcs為,主控裝置23針對記憶體模組(PSRAM1)21、(PSRAM2)22執行讀取操作時,將晶片選取信號CS#拉低的期間。設定期間Tset為,主控裝置23將晶片選取信號CS#拉低後,至主控裝置23開始傳送讀取指令m1CMDrd、m2CMDre前的時間差。讀取指令傳送期間Tcmd為,主控裝置23傳送讀取指令m1CMDrd、m2CMDre至記憶體模組(PSRAM1)21、(PSRAM2)22所需的時間。The read operation period Trd is the time it takes for the main control device 23 to perform the read operation on the memory modules ( PSRAM1 ) 21 and ( PSRAM2 ) 22 . The chip selection period Tcs is a period during which the main control device 23 pulls down the chip selection signal CS# when the main control device 23 performs a read operation on the memory modules (PSRAM1) 21 and (PSRAM2) 22 . The setting period Tset is the time difference between when the main control device 23 pulls down the chip selection signal CS# and before the main control device 23 starts to transmit the read commands m1CMDrd and m2CMDre. The read command transmission period Tcmd is the time required for the master control device 23 to transmit the read commands m1CMDrd and m2CMDre to the memory modules (PSRAM1) 21 and (PSRAM2) 22.

位址傳送期間Tadr為,主控裝置23同步將與記憶體模組(PSRAM1)21對應之記憶體位址(包含列位址m1ADRr、行位址m1ADRc)傳送至記憶體模組(PSRAM1)21,以及將與記憶體模組(PSRAM2)22對應之記憶體位址(包含列位址m2ADRr、行位址m2ADRc)傳送至記憶體模組(PSRAM2)22所需的時間。其中,位址傳送期間Tadr進一步包含列位址期間Tadr_r與行位址期間Tadr_c。在列位址期間Tadr_r,主控裝置23傳送與記憶體模組(PSRAM1)21對應的列位址m1ADRr至記憶體模組(PSRAM1)21,以及同步傳送與記憶體模組(PSRAM2)22對應的列位址m2ADRr至記憶體模組(PSRAM2)22。在行位址期間Tadr_c,主控裝置23傳送與記憶體模組(PSRAM1)21對應的行位址m1ADRc至記憶體模組(PSRAM1)21,以及同步傳送與記憶體模組(PSRAM2)22對應的行位址m2ADRc至記憶體模組(PSRAM2)22。During the address transfer Tadr, the main control device 23 synchronously transfers the memory address (including the column address m1ADRr and the row address m1ADRc) corresponding to the memory module (PSRAM1) 21 to the memory module (PSRAM1) 21, and the time required to transmit the memory address (including the column address m2ADRr and the row address m2ADRc) corresponding to the memory module (PSRAM2) 22 to the memory module (PSRAM2) 22 . The address transfer period Tadr further includes a column address period Tadr_r and a row address period Tadr_c. During the column address period Tadr_r, the master device 23 transmits the column address m1ADRr corresponding to the memory module (PSRAM1) 21 to the memory module (PSRAM1) 21, and synchronously transmits the column address m1ADRr corresponding to the memory module (PSRAM2) 22 Column address m2ADRr to memory module (PSRAM2) 22. During the row address period Tadr_c, the master device 23 transmits the row address m1ADRc corresponding to the memory module (PSRAM1) 21 to the memory module (PSRAM1) 21, and synchronously transmits the row address m1ADRc corresponding to the memory module (PSRAM2) 22 The row address m2ADRc of the memory module (PSRAM2) 22.

此外,同步資料準備期間Tsdatpr為,主控裝置23傳送記憶體位址至記憶體模組(PSRAM1)21、(PSRAM2)22後,至同步資料讀取期間Tdat_sync開始前的一段時間。其中,同步資料準備期間Tsdatpr的長度可能隨著實施例的不同,而有顯著的差異。同步資料讀取期間Tdat_sync為,記憶體模組(PSRAM1)21從內部緩衝器將同步讀取資料DATm1經系統輸入輸出信號線SIO[8:1]傳送至主控裝置23,以及記憶體模組(PSRAM2)22從內部緩衝器將同步讀取資料DATm2經系統輸入輸出信號線SIO[16:9]傳送至主控裝置的期間。結束期間Tend為,晶片選取期間Tcs的結束時點,與讀取操作期間Trd的結束時點之間的時間差。In addition, the synchronization data preparation period Tsdatpr is a period of time before the synchronization data reading period Tdat_sync starts after the master device 23 transmits the memory address to the memory modules (PSRAM1) 21 and (PSRAM2) 22. Wherein, the length of Tsdatpr during synchronization data preparation may vary significantly with different embodiments. During the synchronous data read period Tdat_sync is, the memory module (PSRAM1) 21 transmits the synchronous read data DATm1 from the internal buffer to the main control device 23 and the memory module via the system input and output signal lines SIO[8:1] (PSRAM2) The period during which the 22 transmits the synchronous read data DATm2 from the internal buffer to the master device via the system input/output signal lines SIO[16:9]. The end period Tend is the time difference between the end point of the wafer selection period Tcs and the end point of the read operation period Trd.

在第5圖中,時點t1至時點t11為讀取操作期間Trd;時點t1至時點t10為晶片選取期間Tcs;時點t1至時點t2為設定期間Tset;時點t2至時點t3為讀取指令傳送期間Tcmd;時點t4至時點t7為位址傳送期間Tadr;時點t7至時點t9為同步資料準備期間Tsdatpr;時點t9至時點t11為同步資料讀取期間Tdat_sync;時點t10至時點t11為結束期間Tend。其中,同步資料讀取期間Tdat_sync小於1個讀取延遲計數LC。在預設資料同步方式下,記憶體模組(PSRAM1)21、(PSRAM2)22僅需花費時點t5至時點t9的期間,即可開始將內部儲存器的資料傳出至系統輸入輸出信號線SIO[16:1]。因此,可將時點t5至時點t9的期間定義為一般讀取期間Trdnm。In Fig. 5, the time point t1 to the time point t11 is the read operation period Trd; the time point t1 to the time point t10 is the chip selection period Tcs; the time point t1 to the time point t2 is the setting period Tset; the time point t2 to the time point t3 is the read command transmission period Tcmd; time point t4 to time point t7 is the address transmission period Tadr; time point t7 to time point t9 is the synchronization data preparation period Tsdatpr; time point t9 to time point t11 is the synchronization data reading period Tdat_sync; time point t10 to time point t11 is the end period Tend. Wherein, the synchronization data reading period Tdat_sync is less than one read delay count LC. In the default data synchronization mode, the memory modules (PSRAM1) 21 and (PSRAM2) 22 only need to spend the period from time point t5 to time point t9 to start transmitting the data in the internal memory to the system input and output signal line SIO [16:1]. Therefore, the period from the time point t5 to the time point t9 can be defined as the general reading period Trdnm.

由於記憶體模組(PSRAM1)21、(PSRAM2)22並不會頻繁的發生更新衝突,記憶體模組(PSRAM1)21、(PSRAM2)22通常均如第5圖般,進行正常的讀取操作。但是,在部分的情況下,記憶體模組(PSRAM1)21、(PSRAM2)22的其中一者可能出現更新衝突的情況,導致主控裝置23因為讀取速度不一致的緣故無法正確讀取儲存在記憶體模組(PSRAM1)21、(PSRAM2)22內的資料的情況發生。Since the memory modules (PSRAM1) 21 and (PSRAM2) 22 do not have frequent update conflicts, the memory modules (PSRAM1) 21 and (PSRAM2) 22 usually perform normal read operations as shown in Figure 5. . However, in some cases, one of the memory modules (PSRAM1) 21 and (PSRAM2) 22 may have an update conflict, so that the master control device 23 cannot correctly read the data stored in the memory due to inconsistent reading speeds. The situation of the data in the memory modules (PSRAM1) 21 and (PSRAM2) 22 occurs.

為此,本揭露提出一種可使記憶體模組(PSRAM1)21、(PSRAM2)22彈性的因應更新衝突的發生與否,動態地調整以1個讀取延遲計數LC或2個讀取延遲計數LC的方式讀取記憶體模組(PSRAM1)21、(PSRAM2)22內的資料。為便於說明,以下假設記憶體模組(PSRAM1)21內部發生更新衝突的情況,而記憶體模組(PSRAM2)22可進行正常的讀取操作的情況。To this end, the present disclosure proposes a memory module (PSRAM1) 21, (PSRAM2) 22 that can dynamically adjust one read delay count LC or two read delay counts in response to the occurrence of an update conflict. The data in the memory modules (PSRAM1) 21 and (PSRAM2) 22 are read by means of LC. For ease of description, the following assumes a situation in which an update conflict occurs inside the memory module (PSRAM1) 21, and a situation in which the memory module (PSRAM2) 22 can perform a normal read operation.

當所有記憶體模組(PSRAM1)21、(PSRAM2)22均未發生更新衝突時,主控裝置與記憶體模組(PSRAM1)21、(PSRAM2)22之間均以1個讀取延遲計數LC的方式讀取資料。反之,若有任何一個記憶體模組(例如,記憶體模組(PSRAM1)21)發生更新衝突時,則可透過回報與通知的機制,讓主控裝置23仍可同步地自記憶體模組(PSRAM1)21、(PSRAM2)22內讀取資料。本揭露提供多種實施例,該些實施例的基本流程如第6圖所示。When no update conflict occurs in all memory modules (PSRAM1) 21 and (PSRAM2) 22, the master control device and the memory modules (PSRAM1) 21 and (PSRAM2) 22 count LC with one read delay. way to read data. Conversely, if any one of the memory modules (for example, the memory module (PSRAM1) 21 ) has an update conflict, the master control device 23 can still be synchronized from the memory module through the reporting and notification mechanism. Data is read in (PSRAM1) 21 and (PSRAM2) 22. The present disclosure provides various embodiments, and the basic flow of these embodiments is shown in FIG. 6 .

請參見第6圖,其係根據本發明實施例之電子裝置中,主控裝置對記憶體模組PSRAM1、PSRAM2進行同步讀取操作的流程圖。首先,主控裝置23拉低晶片選取信號CS#的位準並發出讀取指令m1CMDrd、m2CMDrd至記憶體模組(PSRAM1)21、(PSRAM2)22(步驟S51)。接著,判斷是否有任何一個記憶體模組(PSRAM1)21、(PSRAM2)22產生更新衝突(步驟S53)。步驟S53的方式可能是由主控裝置23偵測後判斷,或者由發生更新衝突的記憶體模組(PSRAM1)21回報。關於步驟S53的判斷方式,後續將有不同的實施例說明。Please refer to FIG. 6 , which is a flowchart of the synchronous read operation performed by the main control device on the memory modules PSRAM1 and PSRAM2 in the electronic device according to the embodiment of the present invention. First, the main control device 23 pulls down the chip select signal CS# and sends read commands m1CMDrd, m2CMDrd to the memory modules (PSRAM1) 21, (PSRAM2) 22 (step S51). Next, it is determined whether any one of the memory modules (PSRAM1) 21 and (PSRAM2) 22 has an update conflict (step S53). The method of step S53 may be determined by the main control device 23 after detection, or reported by the memory module (PSRAM1) 21 in which the update conflict occurs. Regarding the determination method of step S53, different embodiments will be described later.

如果步驟S53的判斷結果為否定,代表所有的記憶體模組(PSRAM1)21、(PSRAM2)22都可如第5圖所示,以一般資料讀取的方式完成讀取操作。因此,記憶體模組(PSRAM1)21、(PSRAM2)22在同步資料準備期間Tsdatpr以預設資料同步方式(Tsdatpr<LC)準備讀取資料(步驟S55)後,再於同步資料讀取期間Tdat_sync將同步讀取資料DATm1、DATm2傳送至主控裝置23(步驟S59)。If the judgment result of step S53 is negative, it means that all memory modules (PSRAM1) 21 and (PSRAM2) 22 can complete the reading operation in the way of general data reading as shown in FIG. 5 . Therefore, the memory modules (PSRAM1) 21 and (PSRAM2) 22 prepare to read data in the pre-set data synchronization method (Tsdatpr<LC) during the synchronization data preparation period Tsdatpr (step S55), and then during the synchronization data reading period Tdat_sync The synchronous read data DATm1 and DATm2 are transmitted to the main control device 23 (step S59).

另一方面,步驟S53的判斷結果為肯定,代表有一個或多個記憶體模組(PSRAM1)21產生更新衝突。此時,產生更新衝突的一個或多個記憶體模組(PSRAM1)21無法在預設讀取延遲(dftLC=LC*1)內完成資料擷取。由於產生更新衝突的記憶體模組(PSRAM1)21需費時較長的讀取期間,方能將讀取資料從記憶體陣列複製至內部緩衝器。因此,未發生更新衝突的記憶體模組(PSRAM2)22必須暫緩其進行讀取操作的速度,才能與記憶體模組(PSRAM1)21的讀取速度一致。因此,主控裝置23需通知未發生更新衝突的記憶體模組(PSRAM2)22將以特殊資料同步方式準備讀取資料。採用特殊資料同步方式讀取資料時,記憶體模組(PSRAM1)21、(PSRAM2)22均需等待較長的同步資料準備期間Tsdatpr(Tsdatpr>LC)(步驟S57)後,再於同步資料讀取期間Tdat_sync將同步讀取資料DATm1、DATm2傳送至主控裝置23。On the other hand, the determination result of step S53 is affirmative, which means that one or more memory modules (PSRAM1) 21 have an update conflict. At this time, the one or more memory modules (PSRAM1) 21 that generate the update conflict cannot complete the data retrieval within the preset read delay (dftLC=LC*1). Since the memory module ( PSRAM1 ) 21 which has an update conflict requires a long read period, the read data can be copied from the memory array to the internal buffer. Therefore, the memory module ( PSRAM2 ) 22 that does not have an update conflict must suspend the speed of its read operation so as to be consistent with the read speed of the memory module ( PSRAM1 ) 21 . Therefore, the main control device 23 needs to notify the memory module (PSRAM2) 22 that does not have an update conflict to prepare to read data in a special data synchronization manner. When the special data synchronization method is used to read data, the memory modules (PSRAM1) 21 and (PSRAM2) 22 need to wait for a long synchronization data preparation period Tsdatpr (Tsdatpr>LC) (step S57), and then read the synchronization data. During the fetch period Tdat_sync transmits the synchronous read data DATm1 and DATm2 to the main control device 23 .

根據本揭露的構想,主控裝置23可自動感測記憶體模組(PSRAM1)21發生更新衝突的現象。或者,記憶體模組(PSRAM1)21發生更新衝突時,可主動將此情況回報予主控裝置23。記憶體模組(PSRAM1)21可透過兩種回報模式將其內部發生之更新衝突的現象通知主控裝置23,即刻回報模式(mode A)與延遲回報模式(mode B)。即刻回報模式(mode A) 指的是,若記憶體模組(PSRAM1)21發生內部更新衝突時,記憶體模組(PSRAM1)21在晶片選取信號CS#被拉低後,立即通知主控裝置23關於其內部發生更新衝突。延遲回報模式(mode B)指的是,若記憶體模組(PSRAM1)21發生內部更新衝突時,待記憶體模組(PSRAM1)21從主控裝置23接收列位址m1ADRr後,記憶體模組(PSRAM1)21才通知主控裝置23關於其內部發生更新衝突的情形。According to the concept of the present disclosure, the main control device 23 can automatically sense the occurrence of an update conflict in the memory module ( PSRAM1 ) 21 . Alternatively, when the memory module ( PSRAM1 ) 21 encounters an update conflict, it can actively report the situation to the main control device 23 . The memory module ( PSRAM1 ) 21 can notify the main control device 23 of the update conflict that occurs in the memory module ( PSRAM1 ) through two report modes, an immediate report mode (mode A) and a delayed report mode (mode B). The immediate report mode (mode A) means that if the memory module (PSRAM1) 21 has an internal update conflict, the memory module (PSRAM1) 21 will immediately notify the host device after the chip select signal CS# is pulled low 23 about an update conflict within it. The delayed return mode (mode B) means that if the memory module (PSRAM1) 21 has an internal update conflict, after the memory module (PSRAM1) 21 receives the column address m1ADRr from the main control device 23, the memory module Only the group (PSRAM1) 21 notifies the master device 23 of the situation where an update conflict occurs within it.

接著,以第7A圖說明當記憶體模組(PSRAM1)21以即刻回報模式(mode A)通知主控裝置23關於其內部發生更新衝突情形時的讀取流程;以及,以第7B圖說明當記憶體模組(PSRAM1)21以延遲回報模式(mode B)通知主控裝置23關於其內部發生更新衝突情形時的讀取流程。 在第7A、7B圖中,由上而下為流程的先後順序,由左而右分別為主控裝置23、記憶體模組(PSRAM1)21,以及記憶體模組(PSRAM2)22所進行的流程。在第7A、7B圖中,以箭頭方向代表信號的傳送方向,另,虛線箭頭方向代表可根據實施例不同而選擇性執行或不執行。Next, FIG. 7A is used to describe the read process when the memory module (PSRAM1) 21 notifies the master control device 23 of an update conflict situation in the immediate report mode (mode A); and, FIG. 7B is used to describe when The memory module ( PSRAM1 ) 21 informs the master device 23 of the read process when an update conflict occurs inside the memory module ( PSRAM1 ) in a delayed report mode (mode B). In Figures 7A and 7B, the sequence of processes is from top to bottom, and from left to right, the main control device 23, the memory module (PSRAM1) 21, and the memory module (PSRAM2) 22 perform the processes respectively. process. In Figures 7A and 7B, the direction of the arrow represents the transmission direction of the signal, and the direction of the dashed arrow represents the optional execution or non-execution according to different embodiments.

請參見第7A圖,其係根據本揭露構想,記憶體模組PSRAM1在發生更新衝突時,以即刻回報模式(mode A)通知主控裝置後,記憶體模組PSRAM1、PSRAM2進行同步讀取操作的流程圖。首先,主控裝置23將對應於記憶體模組(PSRAM1)21、(PSRAM2)22的晶片選取信號CS#拉低(S301a)。接著,記憶體模組(PSRAM1)21確認產生更新衝突(步驟S101a)。接著記憶體模組(PSRAM1)21通知主控裝置23關於內部產生更新衝突的情形(步驟S103a)。關於記憶體模組(PSRAM1)21透過何種方式通知主控裝置23其內部產生更新衝突的細節,可根據實施例的不同而異,後續將進一步說明。Please refer to FIG. 7A, which is based on the concept of the present disclosure, when the memory module PSRAM1 notifies the master device in the immediate report mode (mode A) when an update conflict occurs, the memory modules PSRAM1 and PSRAM2 perform a synchronous read operation flow chart. First, the main control device 23 pulls down the chip select signal CS# corresponding to the memory modules (PSRAM1) 21 and (PSRAM2) 22 (S301a). Next, the memory module (PSRAM1) 21 confirms that an update conflict occurs (step S101a). Next, the memory module ( PSRAM1 ) 21 notifies the main control device 23 of the situation that an update conflict occurs internally (step S103 a ). The details of how the memory module ( PSRAM1 ) 21 notifies the main control device 23 of an update conflict in the memory module ( PSRAM1 ) 21 may vary from embodiment to embodiment, which will be further described later.

之後,主控裝置23傳送讀取指令m1CMDrd、m2CMDrd至記憶體模組(PSRAM1)21、(PSRAM2)22(步驟S302a),以及通知記憶體模組(PSRAM1)21、(PSRAM2)22須以特殊資料同步方式進行讀取 (步驟S303a)。隨著實施例的不同,步驟S302a與步驟S303a可結合在一起執行,或者,步驟S302a與步驟S303a可分別執行。After that, the main control device 23 transmits the read commands m1CMDrd and m2CMDrd to the memory modules (PSRAM1) 21 and (PSRAM2) 22 (step S302a), and notifies the memory modules (PSRAM1) 21 and (PSRAM2) 22 that special The data is read in synchronization mode (step S303a). Depending on the embodiment, step S302a and step S303a may be performed in combination, or step S302a and step S303a may be performed separately.

關於主控裝置23透過何種方式通知記憶體模組(PSRAM1)21、(PSRAM2)22須以特殊資料同步方式進行讀取,可根據實施例的不同而異,後續將進一步說明。另請留意,儘管步驟S303a須待步驟S103a完成後方能進行。但,步驟S303a並不限定需在步驟S103a完成後立刻執行。例如,步驟S303a亦可在步驟S307a結束後才執行。The method by which the master control device 23 notifies the memory modules (PSRAM1) 21 and (PSRAM2) 22 that the memory modules (PSRAM1) 21 and (PSRAM2) 22 must be read in a special data synchronization manner may vary according to the embodiment, and will be further described later. Please also note that although step S303a can only be performed after step S103a is completed. However, step S303a is not limited to be executed immediately after step S103a is completed. For example, step S303a can also be executed after step S307a ends.

接著,主控裝置23利用系統輸入輸出信號SIO[16:1]先後傳送記憶體模組(PSRAM1)21、(PSRAM2)22的列位址m1ADRr、m2ADRr與行位址m1ADRc、m2ADRc(步驟S305a、S307a)。其中,系統輸入輸出信號SIO[8:1]用於傳送與記憶體模組(PSRAM1)21對應的列位址m1ADRr與行位址m1ADRc;系統輸入輸出信號SIO[16:9]用於傳送與記憶體模組(PSRAM2)22對應的列位址m2ADRr與行位址m2ADRc。Next, the main control device 23 transmits the column addresses m1ADRr and m2ADRr and the row addresses m1ADRc and m2ADRc of the memory modules (PSRAM1) 21 and (PSRAM2) 22 successively by using the system input and output signals SIO[16:1] (step S305a, S307a). Among them, the system input and output signals SIO[8:1] are used to transmit the column address m1ADRr and the row address m1ADRc corresponding to the memory module (PSRAM1) 21; the system input and output signals SIO[16:9] are used to transmit and The memory module (PSRAM2) 22 corresponds to the column address m2ADRr and the row address m2ADRc.

記憶體模組(PSRAM1)21等待更新衝突結束(步驟S105a)後,利用系統輸入輸出信號SIO[8:1]傳送同步讀取資料DATm1至主控裝置21(步驟S107a)。在記憶體模組(PSRAM1)21傳送讀取資料DATm1的同時,記憶體模組(PSRAM2)22亦須等待同步資料準備期間Tsdatpr結束(步驟S201a)。其後,記憶體模組(PSRAM2)22再利用系統輸入輸出信號SIO[16:9]傳送同步讀取資料DATm2至主控裝置23(步驟S203a)。After the memory module (PSRAM1) 21 waits for the update conflict to end (step S105a), it transmits the synchronous read data DATm1 to the master device 21 by using the system input and output signals SIO[8:1] (step S107a). While the memory module (PSRAM1) 21 transmits the read data DATm1, the memory module (PSRAM2) 22 also needs to wait for the synchronization data preparation period Tsdatpr to end (step S201a). Thereafter, the memory module (PSRAM2) 22 transmits the synchronous read data DATm2 to the main control device 23 by using the system input and output signals SIO[16:9] (step S203a).

請參見第7B圖,其係根據本揭露構想,記憶體模組PSRAM1在發生更新衝突時,以延遲回報模式(mode B)通知主控裝置後,記憶體模組PSRAM1、PSRAM2進行同步讀取操作的流程圖。首先,主控裝置23將記憶體模組(PSRAM1)21、(PSRAM2)22的晶片選取信號CS#拉低(S301b)。接著,主控裝置23發出讀取指令m1CMDrd、m2CMDrd與列位址m1ADRr、m2ADRr至記憶體模組(PSRAM1)21、(PSRAM2)22(步驟S303b、S305b)。Please refer to FIG. 7B , according to the concept of the present disclosure, when the memory module PSRAM1 notifies the master device in a delayed report mode (mode B) when an update conflict occurs, the memory modules PSRAM1 and PSRAM2 perform a synchronous read operation flow chart. First, the main control device 23 pulls down the chip select signal CS# of the memory modules (PSRAM1) 21 and (PSRAM2) 22 (S301b). Next, the main control device 23 sends the read commands m1CMDrd and m2CMDrd and the column addresses m1ADRr and m2ADRr to the memory modules (PSRAM1) 21 and (PSRAM2) 22 (steps S303b and S305b).

記憶體模組(PSRAM1)21確認產生更新衝突(步驟S101b)後,記憶體模組(PSRAM1)21將通知主控裝置23關於內部產生更新衝突的情形(步驟S103b)。在此同時,主控裝置23利用系統輸入輸出信號線SIO[16:1]傳送行位址m1ADRc、m2ADRc至記憶體模組(PSRAM1)21、(PSRAM2)22 (步驟S307b)。之後,主控裝置23通知記憶體模組(PSRAM1)21、(PSRAM2)22須以特殊資料同步方式進行讀取(步驟S309a)。After the memory module (PSRAM1) 21 confirms that an update conflict occurs (step S101b), the memory module (PSRAM1) 21 notifies the main control device 23 of the internal update conflict (step S103b). At the same time, the main control device 23 transmits the row addresses m1ADRc and m2ADRc to the memory modules (PSRAM1) 21 and (PSRAM2) 22 using the system input and output signal lines SIO[16:1] (step S307b). After that, the main control device 23 notifies the memory modules (PSRAM1) 21 and (PSRAM2) 22 that the data must be read in a special data synchronization manner (step S309a).

記憶體模組(PSRAM1)21等待更新衝突結束(步驟S105b)後,利用系統輸入輸出信號SIO[8:1]將內部緩衝器的同步讀取資料DATm1傳送至主控裝置21(步驟S107b)。另一方面,記憶體模組(PSRAM2)22等待同步資料準備期間Tsdatpr結束(步驟S201b)後,利用系統輸入輸出信號SIO[16:9]將內部緩衝器的同步讀取資料DATm2傳送至主控裝置21(步驟S203b)。After the memory module (PSRAM1) 21 waits for the update conflict to end (step S105b), it transmits the synchronous read data DATm1 of the internal buffer to the master device 21 by using the system input and output signals SIO[8:1] (step S107b). On the other hand, after the memory module (PSRAM2) 22 waits for the synchronous data preparation period Tsdatpr to end (step S201b), it transmits the synchronous read data DATm2 of the internal buffer to the master using the system input and output signals SIO[16:9] device 21 (step S203b).

請同時參見第7A、7B圖。其中可以看出,這兩個流程圖所需進行的步驟大致相似,兩者的主要差別為,記憶體模組(PSRAM1)21通知主控裝置23產生更新衝突(第7A圖的步驟S103a、第7B圖的步驟S103b),以及主控裝置23通知記憶體模組(PSRAM1)21、(PSRAM2)22須以特殊資料同步方式進行讀取(第7A圖的步驟S303a、第7B圖的步驟S309b)的時點不同。在即刻回報模式(mode A)(第7A圖)中,記憶體模組(PSRAM1)21在主控裝置23傳送讀取指令m1CMDrd、m2CMDrd與列位址m1ADRr、m2ADRr前,即已將更新衝突的情況通知主控裝置23。在與延遲回報模式(mode B)(第7B圖)中,記憶體模組(PSRAM1)21在主控裝置23傳送讀取指令m1CMDrd、m2CMDrd與列位址m1ADRr、m2ADRr後,才將更新衝突的情況通知主控裝置23。See also Figures 7A, 7B. It can be seen that the steps to be performed in these two flowcharts are roughly similar, and the main difference between the two is that the memory module (PSRAM1) 21 notifies the main control device 23 to generate an update conflict (step S103a, step S103a in FIG. Step S103b in Fig. 7B, and the main control device 23 notifies the memory modules (PSRAM1) 21 and (PSRAM2) 22 that the memory modules (PSRAM1) 21 and (PSRAM2) 22 must be read in a special data synchronization method (step S303a in Fig. 7A, step S309b in Fig. 7B) time is different. In the immediate report mode (mode A) (FIG. 7A), the memory module (PSRAM1) 21 updates the conflicting data before the master device 23 transmits the read commands m1CMDrd and m2CMDrd and the column addresses m1ADRr and m2ADRr. The main control device 23 is notified of the situation. In the delayed return mode (mode B) (FIG. 7B), the memory module (PSRAM1) 21 updates the conflicting data after the master device 23 transmits the read commands m1CMDrd and m2CMDrd and the column addresses m1ADRr and m2ADRr. The main control device 23 is notified of the situation.

記憶體模組可區分為單記憶體庫(single bank)與多記憶體庫(multibank)。其中,單記憶體庫的記憶體模組可在晶片選取信號CS#被拉低的瞬間得知其內部是否產生更新衝突。另一方面,多記憶體庫的記憶體模組必須等待列位址m1ADRr、m2ADRr接收後,才能判斷是否發生更新衝突。因此,即刻回報模式(Mode A)可適用於單記憶體庫的記憶體模組,延遲回報模式(Mode B)則可適用於單記憶體庫與多記憶體庫的記憶體模組。以下提供的實施例,將分別說明記憶體模組(PSRAM1)21利用即刻回報模式(Mode A)與延遲回報模式(Mode B)回報更新衝突的做法。Memory modules can be divided into single bank and multibank. The memory module of the single memory bank can know whether an update conflict occurs in the memory module of the single memory bank at the moment when the chip select signal CS# is pulled low. On the other hand, the memory module of the multi-memory bank must wait for the column addresses m1ADRr and m2ADRr to be received before judging whether an update conflict occurs. Therefore, the immediate return mode (Mode A) is applicable to the memory modules of a single memory bank, and the delayed return mode (Mode B) is applicable to the memory modules of the single memory bank and the multi-memory bank. The embodiments provided below will respectively illustrate how the memory module (PSRAM1) 21 uses the immediate report mode (Mode A) and the delayed report mode (Mode B) to report the update conflict.

根據本揭露的實施例,記憶體模組(PSRAM1)21回報更新衝突情況至主控裝置23時,除回報時點可根據實施例的不同而變化外,記憶體模組(PSRAM1)21通知主控裝置23的媒介與手段亦可不同。例如,記憶體模組(PSRAM1)21可利用不同的信號線,以及各種對信號的控制波形的組合通知主控裝置23。According to the embodiment of the present disclosure, when the memory module (PSRAM1) 21 reports the update conflict situation to the master control device 23, the memory module (PSRAM1) 21 notifies the master control device 23 of the reporting time except that the reporting time can be changed according to different embodiments. The medium and means of the device 23 may also vary. For example, the memory module ( PSRAM1 ) 21 can use different signal lines and various combinations of control waveforms for the signals to notify the main control device 23 .

接著,本文將說明基於本揭露構想的讀取方法可採用之實施例之所對應的波形圖。首先,第8A、8B圖以既有的資料閃控遮罩信號DQSM作為傳輸媒介,分別說明採用即刻回報模式(mode A)與延遲回報模式(mode B)的做法。後續另將提供使用不同的信號線作為傳輸媒介的相關實施例。Next, the waveform diagrams corresponding to the embodiments that can be adopted by the reading method based on the concept of the present disclosure will be described herein. First, Figures 8A and 8B use the existing data flash mask signal DQSM as a transmission medium, respectively illustrating the methods of adopting the immediate return mode (mode A) and the delayed return mode (mode B). Related embodiments using different signal lines as transmission media will be provided later.

請參見第8A圖,其係根據本揭露構想,記憶體模組與主控裝置之間利用資料閃控遮罩信號DQSM搭配即刻回報模式(mode A),進行同步讀取操作的一種實施例的波形圖。在此圖式中,時點t1至時點t15為讀取操作期間Trd;時點t1至時點t14為晶片選取期間Tcs;時點t1至時點t3為設定期間Tset;時點t3至時點t4為讀取指令傳送期間Tcmd;時點t4至時點t8為位址傳送期間Tadr;時點t8至時點t13為同步資料準備期間Tsdatpr;時點t13至時點t15為同步資料讀取期間Tdat_sync;時點t14至時點t15為結束期間Tend。Please refer to FIG. 8A , which is an embodiment of a synchronous read operation between the memory module and the master device using the data flash mask signal DQSM and the immediate report mode (mode A) according to the concept of the present disclosure. Waveform diagram. In this figure, the time point t1 to the time point t15 is the read operation period Trd; the time point t1 to the time point t14 is the chip selection period Tcs; the time point t1 to the time point t3 is the setting period Tset; the time point t3 to the time point t4 is the read command transmission period Tcmd; time point t4 to time point t8 is the address transfer period Tadr; time point t8 to time point t13 is the synchronization data preparation period Tsdatpr; time point t13 to time point t15 is the synchronization data reading period Tdat_sync; time point t14 to time point t15 is the end period Tend.

主控裝置23在時點t1將晶片選取信號CS#拉低至低位準後,記憶體模組(PSRAM1)21於時點t2開始,藉由將資料閃控遮罩信號DQSM[1]的位準拉高的方式,通知主控裝置23其內部產生更新衝突。記憶體模組(PSRAM1)21在時點t2至時點t7期間將資料閃控遮罩信號DQSM[1]維持在高位準,並於時點t7開始將資料閃控遮罩信號DQSM[1]拉低至低位準。其中,時點t2至時點t7期間可定義為,發生更新衝突之記憶體模組(PSRAM1)21將本身發生更新衝突的情形,通知主控裝置23的更新衝突通知期間Trfrp。After the main control device 23 pulls down the chip select signal CS# to a low level at time t1, the memory module (PSRAM1) 21 starts at time t2 by pulling the data flash mask signal DQSM[1] to a low level. In the high mode, the main control device 23 is notified that an update conflict has occurred internally. The memory module (PSRAM1) 21 maintains the data flash mask signal DQSM[1] at a high level from the time point t2 to the time point t7, and starts to pull down the data flash mask signal DQSM[1] to a low level at the time point t7. low level. The period from the time point t2 to the time point t7 can be defined as the update conflict notification period Trfrp of the master control device 23 when the memory module (PSRAM1) 21 having an update conflict will notify the master device 23 of the update conflict.

另一方面,記憶體模組(PSRAM2)22在時點t10前,一直將資料閃控遮罩信號DQSM[2]維持在低位準。在時點t2時,主控裝置23已經分別藉由高位準的資料閃控遮罩信號DQSM[1]與低位準的資料閃控遮罩信號DQSM[2],掌握記憶體模組(PSRAM1)21、(PSRAM2)22的狀態。其中,高位準的資料閃控遮罩信號DQSM[1]代表記憶體模組PSRAM1發生更新衝突,而低位準的資料閃控遮罩信號DQSM[2]代表記憶體模組(PSRAM2)22並未發生更新衝突。On the other hand, the memory module (PSRAM2) 22 keeps the data flash mask signal DQSM[2] at a low level until time point t10. At the time point t2, the main control device 23 has grasped the memory module (PSRAM1) 21 by the high-level data flash mask signal DQSM[1] and the low-level data flash mask signal DQSM[2] respectively. , (PSRAM2) 22 state. Among them, the high-level data flash mask signal DQSM[1] represents that the memory module PSRAM1 has an update conflict, and the low-level data flash mask signal DQSM[2] represents that the memory module (PSRAM2) 22 does not An update conflict has occurred.

接著,在時點t3至時點t4期間(讀取指令傳送期間Tcmd),主控裝置23利用系統輸入輸出信號SIO[8:1]發出特殊讀取指令m1CMDrd_sp至記憶體模組(PSRAM1)21,以及利用系統輸入輸出信號SIO[16:9]發出特殊讀取指令m2CMDrd_sp至記憶體模組(PSRAM2)22。一旦記憶體模組(PSRAM2)22收到特殊讀取指令m2CMDrd_sp後,即可知道此次的讀取操作應放緩。此處以點狀網底搭配粗外框代表特殊讀取指令m1CMDrd_sp、m2CMDrd_sp。據此,在時點t4時,記憶體模組(PSRAM2)22已經透過主控裝置23所發出的特殊讀取指令m2CMDrd_sp,獲知目前不應按照一般讀取操作的速度進行,需額外等候記憶體模組(PSRAM1)21完成其更新衝突。Next, during the period from time point t3 to time point t4 (the read command transmission period Tcmd), the main control device 23 uses the system input and output signals SIO[8:1] to issue a special read command m1CMDrd_sp to the memory module (PSRAM1) 21, and The special read command m2CMDrd_sp is sent to the memory module (PSRAM2) 22 using the system input and output signals SIO[16:9]. Once the memory module (PSRAM2) 22 receives the special read command m2CMDrd_sp, it can know that this read operation should be slowed down. Here, the special read commands m1CMDrd_sp and m2CMDrd_sp are represented by the dotted mesh bottom and the thick outer frame. According to this, at time t4, the memory module (PSRAM2) 22 has learned through the special read command m2CMDrd_sp issued by the main control device 23 that it should not be performed at the speed of the normal read operation at present, and additionally wait for the memory module Group (PSRAM1) 21 completes its update conflict.

如前所述,記憶體模組(PSRAM1)21、(PSRAM2)22在接收列位址m1ADRr、m2ADRr後起算讀取延遲計數。因此,由第8A圖可以看出,記憶體模組(PSRAM1)21、(PSRAM2)22均自時點t5開始起算讀取延遲計數。其中,記憶體模組(PSRAM1)21需費時兩個讀取延遲計數(LC*2),直到時點t12方能自內部的記憶體陣列取得讀取資料至內部緩衝器,而記憶體模組(PSRAM2)22僅需一個讀取延遲計數(LC*1),自時點t9開始,即可自內部的記憶體陣列取得讀取資料至內部緩衝器。接著分別說明記憶體模組(PSRAM1)21、(PSRAM2)22如何與何時從內部緩衝器傳送同步讀取資料DATm1、DATm2。As mentioned above, the memory modules (PSRAM1) 21 and (PSRAM2) 22 start to count the read delays after receiving the column addresses m1ADRr and m2ADRr. Therefore, it can be seen from FIG. 8A that the memory modules (PSRAM1) 21 and (PSRAM2) 22 both count the read delay counts from the time point t5. Among them, the memory module (PSRAM1) 21 needs two read delay counts (LC*2), until the time point t12, the read data can be obtained from the internal memory array to the internal buffer, and the memory module ( The PSRAM2)22 only needs one read delay count (LC*1), and from the time point t9, the read data can be obtained from the internal memory array to the internal buffer. Next, how and when the memory modules (PSRAM1) 21 and (PSRAM2) 22 transmit and synchronously read the data DATm1 and DATm2 from the internal buffer are respectively described.

記憶體模組(PSRAM1)21的更新衝突在時點t12結束,並在下一個系統時脈信號SCLK的上升緣(即,時點t13)時,陸續以資料閃控遮罩信號DQSM[1]產生讀取閃控脈衝信號m1strb1、m1strb2。此處將時點t5至時點t13定義為更新衝突讀取期間Trdrf。更新衝突讀取期間Trdrf代表記憶體模組等待更新完成所需之讀取延遲計數(LC*2),加上等待下一個系統時脈信號SCLK的上升緣所需之期間(時點t12至時點t13)。即,Trdrf=LC*2+(t13-t12)。在第8A圖中,記憶體模組(PSRAM1)21自時點t13開始傳送同步讀取資料DATm1。The update conflict of the memory module (PSRAM1) 21 ends at the time point t12, and at the next rising edge of the system clock signal SCLK (ie, the time point t13), the data flash mask signal DQSM[1] is successively used to generate reads. Flashing pulse signals m1strb1, m1strb2. Here, the time point t5 to the time point t13 are defined as the update conflict reading period Trdrf. The update conflict read period Trdrf represents the read delay count (LC*2) required for the memory module to wait for the update to complete, plus the period required to wait for the rising edge of the next system clock signal SCLK (time t12 to time t13 ). That is, Trdrf=LC*2+(t13-t12). In FIG. 8A, the memory module (PSRAM1) 21 starts to transmit the synchronous read data DATm1 from the time point t13.

由於記憶體模組(PSRAM2)22可在一個讀取延遲計數結束(即,時點t9)時,在內部緩衝器準備好讀取資料,並在下一個系統時脈信號SCLK的上升緣(即,時點t10)時,利用資料閃控遮罩信號DQSM[2]陸續傳送讀取閃控脈衝信號m2strb1’、m2strb2’ 至主控裝置23。因此,記憶體模組(PSRAM2)22自時點t10,開始從內部緩衝器傳送讀取資料至系統輸入輸出信號SIO[16:9]。由於記憶體模組(PSRAM2)22在時點t10至時點t11所傳送的讀取資料並不會被主控裝置23採用,因此,記憶體模組(PSRAM2)22在時點t10至時點t11所傳送的讀取資料可被稱為捨棄資料drpDATm2,且記憶體模組(PSRAM2)22傳送捨棄資料drpDATm2的期間可被定義為資料捨棄期間Tdrp2。Since the memory module (PSRAM2) 22 is ready to read data in the internal buffer when a read delay count ends (ie, time t9 ), and the next rising edge of the system clock signal SCLK (ie, time point t9 ) At t10), the data flash mask signal DQSM[2] is used to transmit the read flash pulse signals m2strb1', m2strb2' to the main control device 23 successively. Therefore, the memory module (PSRAM2) 22 starts to transmit the read data from the internal buffer to the system input and output signals SIO[16:9] from the time point t10. Since the read data transmitted by the memory module (PSRAM2) 22 from the time point t10 to the time point t11 is not used by the main control device 23, the memory module (PSRAM2) 22 transmits the read data from the time point t10 to the time point t11. The read data may be called discard data drpDATm2, and the period during which the memory module (PSRAM2) 22 transmits the discard data drpDATm2 may be defined as the data discard period Tdrp2.

之後,記憶體模組(PSRAM2)22在維持閒置一段期間(時點t11至時點t13)後,將再次自時點t13開始產生並以資料閃控遮罩信號DQSM[2]傳送讀取閃控脈衝信號m2strb1、m2strb2。此外,記憶體模組(PSRAM2)22亦將自時點t13開始,再次從內部緩衝器傳出讀取資料至系統輸入輸出信號SIO[16:9]。根據本揭露的構想,記憶體模組(PSRAM2)22從時點t13開始傳送的讀取資料與記憶體模組(PSRAM1)21從時點t13開始傳送的讀取資料的時點同步,因此,將記憶體模組(PSRAM1)21 、(PSRAM2)22從時點t13開始傳送的讀取資料稱為同步讀取資料DATm1、DATm2。After that, after the memory module (PSRAM2) 22 remains idle for a period of time (time t11 to time t13), it will start to generate again from time t13 and transmit the read flash pulse signal with the data flash mask signal DQSM[2] m2strb1, m2strb2. In addition, the memory module (PSRAM2) 22 also starts from the time point t13, and again transmits the read data from the internal buffer to the system input and output signals SIO[16:9]. According to the concept of the present disclosure, the read data transmitted by the memory module (PSRAM2) 22 from the time point t13 is synchronized with the time point of the read data transmitted by the memory module (PSRAM1) 21 from the time point t13. The read data transmitted by the modules (PSRAM1) 21 and (PSRAM2) 22 from the time point t13 are called synchronous read data DATm1 and DATm2.

根據本揭露的構想,主控裝置23並不使用記憶體模組(PSRAM2)22在時點t10至時點t11期間所傳送的捨棄資料drpDATm2,而是使用記憶體模組(PSRAM2)22在時點t13至時點t15的期間所傳送的同步讀取資料DATm2。因此,將時點t10至t11的期間定義為資料捨棄期間Tdrp2。記憶體模組(PSRAM2)22的內部緩衝器利用系統輸入輸出信號SIO[16:9]在讀取閃控脈衝信號m2strb1’、m2strb2’後傳送的捨棄資料drpDATm2的內容,以及在讀取閃控脈衝信號m2strb1、m2strb2後所傳送的同步讀取資料DATm2的內容完全相同。According to the concept of the present disclosure, the main control device 23 does not use the discarded data drpDATm2 sent by the memory module (PSRAM2) 22 from the time point t10 to the time point t11, but uses the memory module (PSRAM2) 22 from the time point t13 to the time point t11. The synchronous read data DATm2 transmitted during the time point t15. Therefore, the period from the time point t10 to t11 is defined as the data discard period Tdrp2. The internal buffer of the memory module (PSRAM2) 22 uses the system input and output signals SIO[16:9] to transmit the discarded data drpDATm2 after reading the flash pulse signals m2strb1', m2strb2', and the content of the discarded data drpDATm2 after reading the flash The content of the synchronous read data DATm2 transmitted after the pulse signals m2strb1 and m2strb2 is exactly the same.

即便記憶體模組(PSRAM2)22在時點t10至時點t11期間傳出讀取資料,之後從時點t13開始還是需要重新傳送讀取資料。因此,時點t9至時點t13相當於,記憶體模組(PSRAM2)22為等待記憶體模組(PSRAM1)21的更新衝突結束所需花費的期間。由於時點t9至時點t13這段期間,並非(未發生更新衝突之)記憶體模組(PSRAM2)22為執行本身之讀取操作所需的期間,而是因應(實際發生更新衝突之)記憶體模組(PSRAM1)21的更新衝突結束而暫緩讀取操作所等待的期間。因此,此處將時點t9至時點t13定義為(未發生更新衝突之)記憶體模組(PSRAM2)22為等待(發生更新衝突之)記憶體模組(PSRAM1)21的更新衝突結束後,方得同時進行同步資料讀取的額外等待期間Taddwt(additional waiting duration)。Even if the memory module ( PSRAM2 ) 22 transmits the read data from the time point t10 to the time point t11 , the read data needs to be retransmitted from the time point t13 after that. Therefore, from the time point t9 to the time point t13, the memory module (PSRAM2) 22 is a period of time required to wait for the update conflict of the memory module (PSRAM1) 21 to end. Since the period from the time point t9 to the time point t13 is not the period required for the memory module (PSRAM2) 22 to perform its own read operation (with no update conflict), but the memory (with the actual update conflict) The period for which the read operation is suspended after the update conflict of the module (PSRAM1) 21 is completed. Therefore, the time point t9 to the time point t13 is defined here as the memory module (PSRAM2) 22 (with no update conflict) is waiting for the update conflict of the memory module (PSRAM1) 21 (with the update conflict) to end. Additional waiting period Taddwt (additional waiting duration) for simultaneous data reading.

由第8A圖可以看出,記憶體模組(PSRAM1)21於時點t13至時點t15的期間傳送讀取資料,且記憶體模組(PSRAM2)22於時點t13至時點t15的期間傳送讀取資料。因此,時點t13至時點t15的期間可稱為同步資料讀取期間Tdat_sync,且記憶體模組(PSRAM1)21、(PSRAM2)22所傳送的讀取資料稱為同步讀取資料DATm1、DATm2。As can be seen from FIG. 8A, the memory module (PSRAM1) 21 transmits the read data from the time point t13 to the time point t15, and the memory module (PSRAM2) 22 transmits the read data from the time point t13 to the time point t15. . Therefore, the period from the time point t13 to the time point t15 can be referred to as the synchronous data read period Tdat_sync, and the read data transmitted by the memory modules (PSRAM1) 21 and (PSRAM2) 22 are referred to as the synchronous read data DATm1 and DATm2.

在部分應用中,可將記憶體模組(PSRAM2)22設計為,一旦獲知記憶體模組(PSRAM1)21發生更新衝突時,就暫停從內部緩衝器將讀取資料傳出至系統輸入輸出信號SIO[16:9],一直等到時點t13後,記憶體模組(PSRAM2)22才開始傳送讀取閃控脈衝信號m2strb1、m2strb2與同步讀取資料DATm2。亦即,與記憶體模組(PSRAM2)22對應的資料閃控遮罩信號DQSM[2]在時點t2至時點t13的期間維持低位準,且與記憶體模組(PSRAM2)22對應的系統輸入輸出信號SIO[16:9]在時點t8至時點t13期間,並不會從記憶體模組(PSRAM2)22輸出資料。In some applications, the memory module (PSRAM2) 22 can be designed to suspend the transmission of the read data from the internal buffer to the system I/O signal once the memory module (PSRAM1) 21 is known to have an update conflict. SIO[16:9], until the time point t13, the memory module (PSRAM2) 22 starts to transmit the read flash pulse signals m2strb1, m2strb2 and the synchronous read data DATm2. That is, the data flash mask signal DQSM[2] corresponding to the memory module (PSRAM2) 22 maintains a low level during the period from the time point t2 to the time point t13, and the system input corresponding to the memory module (PSRAM2) 22 The output signal SIO[16:9] does not output data from the memory module (PSRAM2) 22 during the period from the time point t8 to the time point t13.

請參見第8B圖,其係根據本揭露構想,記憶體模組PSRAM1、PSRAM2與主控裝置之間,利用資料閃控遮罩信號DQSM搭配延遲回報模式(mode B)進行同步讀取操作的一種實施例的波形圖。在此圖式中,時點t1至時點t17為讀取操作期間Trd;時點t1至時點t16為晶片選取期間Tcs;時點t1至時點t3為設定期間Tset;時點t3至時點t4為讀取指令傳送期間Tcmd;時點t4至時點t9為位址傳送期間Tadr;時點t9至時點t15為同步資料準備期間Tsdatpr;時點t15至時點t17為同步資料讀取期間Tdat_sync;時點t16至時點t17為結束期間Tend。Please refer to FIG. 8B, which is a kind of synchronous read operation using the data flash mask signal DQSM and the delayed return mode (mode B) between the memory modules PSRAM1, PSRAM2 and the main control device according to the concept of the present disclosure Example waveforms. In this figure, the time point t1 to the time point t17 is the read operation period Trd; the time point t1 to the time point t16 is the chip selection period Tcs; the time point t1 to the time point t3 is the setting period Tset; the time point t3 to the time point t4 is the read command transmission period Tcmd; time point t4 to time point t9 is the address transmission period Tadr; time point t9 to time point t15 is the synchronization data preparation period Tsdatpr; time point t15 to time point t17 is the synchronization data reading period Tdat_sync; time point t16 to time point t17 is the end period Tend.

主控裝置23在時點t1將晶片選取信號CS#拉低至低位準後,記憶體模組(PSRAM1)21、(PSRAM2)22於時點t2將資料閃控遮罩信號DQSM[1]、DQSM[2]維持在低位準。接著,在時點t3至時點t4期間,主控裝置23藉由系統輸入輸出信號線SIO[16:1]發出讀取指令m1CMDrd、m2CMDrd至記憶體模組(PSRAM1)21、(PSRAM2)22。接著,在時點t4至時點t6期間,主控裝置23利用系統輸入輸出信號SIO[8:1]傳送與記憶體模組(PSRAM1)21對應的列位址m1ADRr,以及利用系統輸入輸出信號SIO[16:9] 傳送與記憶體模組(PSRAM2)22對應的列位址m2ADRr。在時點t6至時點t9期間,主控裝置23利用系統輸入輸出信號SIO[8:1]傳送與記憶體模組(PSRAM1)21對應的行位址m1ADRc,以及利用系統輸入輸出信號SIO[16:9] 傳送與記憶體模組(PSRAM2)22對應的行位址m2ADRc。After the main control device 23 pulls down the chip selection signal CS# to a low level at the time t1, the memory modules (PSRAM1) 21 and (PSRAM2) 22 flash the data flash mask signals DQSM[1], DQSM[ at the time t2. 2] Keep it low. Then, during the period from time point t3 to time point t4, the main control device 23 sends read commands m1CMDrd and m2CMDrd to the memory modules (PSRAM1) 21 and (PSRAM2) 22 through the system input and output signal lines SIO[16:1]. Next, from the time point t4 to the time point t6, the main control device 23 transmits the column address m1ADRr corresponding to the memory module (PSRAM1) 21 by using the system input and output signals SIO[8:1], and uses the system input and output signals SIO[ 16:9] The column address m2ADRr corresponding to the memory module (PSRAM2) 22 is transmitted. During the period from the time point t6 to the time point t9, the main control device 23 transmits the row address m1ADRc corresponding to the memory module (PSRAM1) 21 by using the system input and output signals SIO[8:1], and uses the system input and output signals SIO[16: 9] Send the row address m2ADRc corresponding to the memory module (PSRAM2) 22.

如前所述,記憶體模組(PSRAM1)21採用延遲回報模式(mode B)時,須先等待記憶體模組(PSRAM1)21接收列位址m1ADRr後,才通知主控裝置23。因此,記憶體模組(PSRAM1)21在時點t7與時點t8的期間,藉由將資料閃控遮罩信號DQSM[1]的位準拉高的方式,通知主控裝置23其內部產生更新衝突的情形。其中,時點t7至時點t8期間可定義為,發生更新衝突之記憶體模組(PSRAM1)21將其發生更新衝突的情形,通知主控裝置23所需的新衝突通知期間Trfrp。As mentioned above, when the memory module (PSRAM1) 21 adopts the delayed return mode (mode B), the main control device 23 is notified after the memory module (PSRAM1) 21 receives the column address m1ADRr. Therefore, the memory module (PSRAM1) 21 notifies the main control device 23 that an update conflict occurs in the memory module (PSRAM1) 21 by pulling up the level of the data flash mask signal DQSM[1] during the time point t7 and the time point t8 situation. The period from the time point t7 to the time point t8 can be defined as the new conflict notification period Trfrp required by the master control device 23 when the memory module (PSRAM1) 21 having an update conflict will notify the master device 23 of the update conflict.

接著,在時點t9至時點t10期間(延長讀取指令期間Tcmdext),主控裝置23分別利用資料閃控遮罩信號DQSM[1]傳送延長讀取指令m1CMDext至記憶體模組(PSRAM1)21,以及利用資料閃控遮罩信號DQSM[2]傳送延長讀取指令m2CMDext至記憶體模組(PSRAM2)22。據此,在時點t10時,記憶體模組(PSRAM2)22已經透過主控裝置23獲知,目前進行的讀取操作不應按照一般讀取操作的速度進行,需額外等候記憶體模組(PSRAM1)21內部完成更新衝突。Next, from the time point t9 to the time point t10 (the extended read command period Tcmdext), the main control device 23 respectively transmits the extended read command m1CMDext to the memory module (PSRAM1) 21 by using the data flash mask signal DQSM[1], and using the data flash mask signal DQSM[2] to transmit the extended read command m2CMDext to the memory module (PSRAM2) 22. Accordingly, at time t10, the memory module (PSRAM2) 22 has been informed by the main control device 23 that the current read operation should not be performed at the speed of the normal read operation, and an additional waiting time for the memory module (PSRAM1) is required. )21 internal completion update conflict.

如前所述,記憶體模組(PSRAM1)21、(PSRAM2)22在接收列位址m1ADRr、m2ADRr後,起算讀取延遲計數LC。因此,由第8B圖可以看出,記憶體模組(PSRAM1)21、(PSRAM2)22均自時點t5開始起算讀取延遲計數。其中,記憶體模組(PSRAM1)21需費時兩個讀取延遲計數(LC*2)可自內部的記憶體陣列取得讀取資料至內部緩衝器,而記憶體模組(PSRAM2)22僅需經過一個讀取延遲計數(LC),即可自內部的記憶體陣列取得讀取資料至內部緩衝器。接著分別說明記憶體模組(PSRAM1)21、(PSRAM2)22如何與何時傳送同步讀取資料DATm1、DATm2。As mentioned above, after the memory modules (PSRAM1) 21 and (PSRAM2) 22 receive the column addresses m1ADRr and m2ADRr, the read delay count LC is started. Therefore, it can be seen from FIG. 8B that the memory modules (PSRAM1) 21 and (PSRAM2) 22 both count the read delay counts from the time point t5. Among them, the memory module (PSRAM1) 21 needs two read delay counts (LC*2) to obtain the read data from the internal memory array to the internal buffer, while the memory module (PSRAM2) 22 only needs to After a read latency count (LC), read data can be obtained from the internal memory array to the internal buffer. Next, how and when the memory modules (PSRAM1) 21 and (PSRAM2) 22 transmit and read the data DATm1 and DATm2 synchronously will be described respectively.

記憶體模組(PSRAM1)21在時點t14結束其更新衝突,並在下一個系統時脈信號SCLK的上升緣(即,時點t15)時,陸續以資料閃控遮罩信號DQSM[1]產生讀取閃控脈衝信號m1strb1、m1strb2。因此,記憶體模組(PSRAM1)21的內部緩衝器自時點t15開始利用系統輸入輸出信號SIO[16:9]傳送同步讀取資料DATm1。此處將時點t5至時點t15定義為更新衝突讀取期間Trdrf。The memory module (PSRAM1) 21 ends its update conflict at the time point t14, and at the next rising edge of the system clock signal SCLK (ie, time point t15), the data flash mask signal DQSM[1] is successively used to generate reads Flashing pulse signals m1strb1, m1strb2. Therefore, the internal buffer of the memory module (PSRAM1) 21 starts to transmit the synchronous read data DATm1 by using the system input and output signals SIO[16:9] from the time point t15. Here, the time point t5 to the time point t15 is defined as the update conflict reading period Trdrf.

由於記憶體模組(PSRAM2)22可在一個讀取延遲計數結束(即,時點t11)完成讀取,並在下一個系統時脈信號SCLK的上升緣(即,時點t12)時,陸續以資料閃控遮罩信號DQSM[2]產生讀取閃控脈衝信號m2strb1’、m2strb2’。因此,記憶體模組(PSRAM2)22自時點t12至時點t13將從內部緩衝器傳出讀取資料。Since the memory module (PSRAM2) 22 can finish reading when one read delay count ends (ie, time point t11 ), and at the next rising edge of the system clock signal SCLK (ie, time point t12 ), the data flashes successively with data The control mask signal DQSM[2] generates read flash pulse signals m2strb1', m2strb2'. Therefore, the memory module (PSRAM2) 22 transmits the read data from the internal buffer from the time point t12 to the time point t13.

之後,記憶體模組(PSRAM2)22將維持閒置一段期間(時點t13至時點t15)後,再次自時點t15開始以資料閃控遮罩信號DQSM[2]產生讀取閃控脈衝信號m2strb1、m2strb2。此外,記憶體模組(PSRAM2)22亦將自時點t15開始,再次以系統輸入輸出信號SIO[16:9]傳送同步讀取資料DATm2。After that, the memory module (PSRAM2) 22 will remain idle for a period of time (from time point t13 to time point t15 ), and then start from time point t15 to generate read flash pulse signals m2strb1 and m2strb2 with the data flash mask signal DQSM[2] again . In addition, the memory module (PSRAM2) 22 will also transmit the synchronous read data DATm2 with the system input and output signals SIO[16:9] again starting from the time point t15.

與第8A相似,主控裝置23並不使用記憶體模組(PSRAM2)22在時點t12至時點t13期間所傳送的讀取資料,而是使用記憶體模組(PSRAM2)22在時點t15至時點t17期間所傳送的同步讀取資料DATm2。也因此,記憶體模組(PSRAM2)22在時點t12至時點t13期間所傳送的讀取資料可稱為捨棄資料drpDATm2,且記憶體模組(PSRAM2)22傳送捨棄資料drpDATm2的期間可被定義為資料捨棄期間Tdrp2。系統輸入輸出信號SIO[16:9] 在時點t12至時點t13傳送的捨棄資料drpDATm2,以及在時點t15至時點t17傳送的同步讀取資料DATm2,均由記憶體模組(PSRAM2)22的內部緩衝器提供,兩者的內容完全相同。Similar to Section 8A, the main control device 23 does not use the read data transmitted by the memory module (PSRAM2) 22 from the time point t12 to the time point t13, but uses the memory module (PSRAM2) 22 from the time point t15 to the time point Synchronous read data DATm2 transmitted during t17. Therefore, the read data transmitted by the memory module (PSRAM2) 22 from the time point t12 to the time point t13 can be referred to as the discarded data drpDATm2, and the period during which the memory module (PSRAM2) 22 transmits the discarded data drpDATm2 can be defined as Data discard period Tdrp2. The discarded data drpDATm2 transmitted from the time point t12 to the time point t13 by the system input and output signal SIO[16:9] and the synchronous read data DATm2 transmitted from the time point t15 to the time point t17 are both buffered by the internal buffer of the memory module (PSRAM2) 22 The content of the two is exactly the same.

時點t11至時點t15相當於,記憶體模組(PSRAM2)22為等待記憶體模組(PSRAM1)21的更新衝突結束,所需額外花費的等待期間。由於時點t11至時點t15這段期間,並非(未發生更新衝突之)記憶體模組(PSRAM2)22為執行本身之讀取操作所需的期間,而是因應(實際發生更新衝突之)記憶體模組(PSRAM1)21的更新衝突結束而暫緩讀取操作所等待的期間。因此,此處將時點t11至時點t15定義為(未發生更新衝突之)記憶體模組(PSRAM2)22的額外等待期間Taddwt。The time point t11 to the time point t15 is equivalent to a waiting period for the memory module ( PSRAM2 ) 22 to wait for the update conflict of the memory module ( PSRAM1 ) 21 to end, which is an additional waiting period. Since the period from the time point t11 to the time point t15 is not the period required for the memory module (PSRAM2) 22 to perform its own read operation (with no update conflict), but the memory (with the actual update conflict) The period for which the read operation is suspended after the update conflict of the module (PSRAM1) 21 is completed. Therefore, the time point t11 to the time point t15 is defined here as the additional waiting period Taddwt of the memory module (PSRAM2) 22 (when no update conflict occurs).

由第8B圖可以看出,記憶體模組(PSRAM1)21於時點t15至時點t17的期間傳送同步讀取資料DATm1,且記憶體模組(PSRAM2)22於時點t15至時點t17的期間傳送同步讀取資料DATm2。因此,時點t15至時點t17的期間為同步資料讀取期間Tdat_sync。在同步資料讀取期間Tdat_sync,記憶體模組(PSRAM1)21、(PSRAM2)22的內部緩衝器可以同步地將讀取資料透過系統輸入輸出信號SIO[8:1]、SIO[16:9]傳送至主控裝置23。It can be seen from FIG. 8B that the memory module (PSRAM1) 21 transmits the synchronous read data DATm1 during the period from time point t15 to time point t17, and the memory module (PSRAM2) 22 transmits the synchronization data during the period from time point t15 to time point t17. Read data DATm2. Therefore, the period from the time point t15 to the time point t17 is the synchronization data reading period Tdat_sync. During the synchronous data read period Tdat_sync, the internal buffers of the memory modules (PSRAM1) 21 and (PSRAM2) 22 can synchronously transmit the read data through the system input and output signals SIO[8:1], SIO[16:9] sent to the main control device 23 .

另請留意,實際應用時,第8B圖作法亦可搭配其他變化。例如,由於記憶體模組(PSRAM1)21本身發生更新衝突的緣故,主控裝置23僅需通知未發生更新衝突的記憶體模組(PSRAM2)22。因此,在某些應用中,主控裝置23可能僅發出延長讀取指令m2CMDext至記憶體模組(PSRAM2)22,但不發出延長讀取指令m1CMDext至記憶體模組(PSRAM1)21。Please also note that in practical application, the method of Figure 8B can also be combined with other changes. For example, because the memory module ( PSRAM1 ) 21 itself has an update conflict, the main control device 23 only needs to notify the memory module ( PSRAM2 ) 22 that does not have the update conflict. Therefore, in some applications, the master device 23 may only issue the extended read command m2CMDext to the memory module (PSRAM2) 22, but not issue the extended read command m1CMDext to the memory module (PSRAM1) 21.

此外,在某些應用中,記憶體模組(PSRAM2)22可能僅利用系統輸入輸出信號SIO[16:9]傳送同步讀取資料DATm2而不傳送捨棄資料drpDATm2。因此,記憶體模組PSRAM2在時點t10至時點t15期間停止傳送任何資料,且資料閃控遮罩信號DQSM[2]在時點t2至時點t15期間維持在低位準。關於這些應用上的變化,此處不予詳述。In addition, in some applications, the memory module (PSRAM2) 22 may only transmit the synchronous read data DATm2 without transmitting the discarded data drpDATm2 using the system I/O signals SIO[16:9]. Therefore, the memory module PSRAM2 stops transmitting any data from the time point t10 to the time point t15, and the data flash mask signal DQSM[2] is maintained at a low level from the time point t2 to the time point t15. The changes in these applications are not detailed here.

請同時參見第8A、8B圖。由於第8A圖所描述之即刻回報模式(mode A)較第8B圖所描述之延遲回報模式(mode B)早將發生更新衝突的情形回報至主控裝置23,第8A圖的更新衝突通知期間Trfrp較第8B圖的更新衝突通知期間Trfrp長。另,額外等待期間Taddwt與更新衝突讀取期間Trdrf的長度,則不因所採用之回報模式的不同而有所差異。再者,實際應用時,不同的記憶體模組也可能搭配不同的回報模式。See also Figures 8A and 8B. Since the immediate report mode (mode A) described in FIG. 8A reports the update conflict situation to the master device 23 earlier than the delayed report mode (mode B) described in FIG. 8B, the update conflict notification period of FIG. 8A Trfrp is longer than the update conflict notification period Trfrp of Figure 8B. In addition, the lengths of the additional waiting period Taddwt and the update conflict reading period Trdrf are not different due to the different reporting modes used. Furthermore, in practical applications, different memory modules may also be matched with different return modes.

在第8A、8B圖所示的實施例中,係以既有的資料閃控遮罩信號線DQSM[1]、DQSM[2]作為記憶體模組PSRAM1、PSRAM2回報更新衝突之發生與否的媒介。在部分的應用時,則可透過額外設置的信號線,作為記憶體模組PSRAM1、PSRAM2回報更新衝突之發生與否的媒介。第9A、9B、10圖為,在記憶體模組(PSRAM1)51、(PSRAM2)52與主控裝置53設置記憶庫忙碌信號(bank read busy,簡稱為BRBB),並以記憶庫忙碌信號線BRBB作為記憶體模組(PSRAM1)51、(PSRAM2)52回報更新衝突至主控裝置53的舉例。其中,第9A、9B圖為,在主控裝置53與記憶體模組(PSRAM1)51、(PSRAM2)52間設置記憶庫忙碌信號線BRBB的接線,將因應讀取操作的狀態不同而改變驅動端的情形。In the embodiment shown in Figs. 8A and 8B, the existing data flash mask signal lines DQSM[1] and DQSM[2] are used as the memory modules PSRAM1 and PSRAM2 to report the occurrence of the update conflict. medium. In some applications, additionally provided signal lines can be used as a medium for the memory modules PSRAM1 and PSRAM2 to report the occurrence of update conflicts. Figures 9A, 9B and 10 show that the memory modules (PSRAM1) 51, (PSRAM2) 52 and the main control device 53 are provided with a memory bank busy signal (bank read busy, abbreviated as BRBB), and the memory bank busy signal line is used BRBB is used as an example for the memory modules (PSRAM1) 51 and (PSRAM2) 52 to report update conflicts to the master device 53 . Among them, Figures 9A and 9B show that the memory bank busy signal line BRBB is set between the main control device 53 and the memory modules (PSRAM1) 51 and (PSRAM2) 52, and the drive will be changed according to the state of the read operation. end situation.

在第9A、9B圖中,電子裝置50包含主控裝置53與記憶體模組51、52。其中,主控裝置53透過CS#與系統時脈信號SCLK同時電連接於記憶體模組(PSRAM1)51、(PSRAM2)52。此外,主控裝置53透過系統輸入輸出信號SIO[8:1]、資料閃控遮罩信號DQSM[1]而電連接於記憶體模組51,以及透過系統輸入輸出信號SIO[16:9]、資料閃控遮罩信號DQSM[2]而電連接於記憶體模組(PSRAM2)52。再者,主控裝置53的記憶庫忙碌信號線BRBBh,記憶體模組(PSRAM1)51的記憶庫忙碌信號線BRBBm1,以及記憶體模組(PSRAM2)52的記憶庫忙碌信號線BRBBm2共同電連接在一起。根據本發明的實施例,記憶庫忙碌信號線BRBBh、BRBBm1、BRBBm2可採用一般的接線而彼此相連。或者,記憶庫忙碌信號線BRBBh、BRBBm1、BRBBm2可採用如第9A、9B圖所示,搭配雙向介面電路501、511、521與上拉電阻50a使用。其中,上拉電阻50a電連接在供應電壓Vcc與記憶庫忙碌信號線BRBBh間。在第9A、9B圖中,以虛線標示在記憶庫忙碌信號線BRBBh、BRBBm1、BRBBm2上的信號驅動方向。In FIGS. 9A and 9B , the electronic device 50 includes a main control device 53 and memory modules 51 and 52 . The main control device 53 is electrically connected to the memory modules (PSRAM1) 51 and (PSRAM2) 52 through CS# and the system clock signal SCLK at the same time. In addition, the main control device 53 is electrically connected to the memory module 51 through the system input and output signals SIO[8:1] and the data flash mask signal DQSM[1], and is also electrically connected to the memory module 51 through the system input and output signals SIO[16:9] . The data flashing mask signal DQSM[2] is electrically connected to the memory module (PSRAM2) 52. Furthermore, the memory bank busy signal line BRBBh of the main control device 53, the memory bank busy signal line BRBBm1 of the memory module (PSRAM1) 51, and the memory bank busy signal line BRBBm2 of the memory module (PSRAM2) 52 are electrically connected together together. According to an embodiment of the present invention, the memory bank busy signal lines BRBBh, BRBBm1, and BRBBm2 can be connected to each other using common wiring. Alternatively, the memory bank busy signal lines BRBBh, BRBBm1 and BRBBm2 can be used as shown in Figs. 9A and 9B, together with the bidirectional interface circuits 501, 511, 521 and the pull-up resistor 50a. The pull-up resistor 50a is electrically connected between the supply voltage Vcc and the memory bank busy signal line BRBBh. In Figs. 9A and 9B, the signal driving directions on the memory bank busy signal lines BRBBh, BRBBm1, and BRBBm2 are marked with dotted lines.

當記憶庫忙碌信號線BRBBh、BRBBm1、BRBBm2搭配雙向介面電路501、511、521與上拉電阻50a使用時,發生更新衝突的記憶體模組(例如,記憶體模組(PSRAM1)51) ,可基於線或(wired OR)的接線方式而達到同時通知主控裝置53與其他未發生更新衝突的記憶體模組(例如,記憶體模組(PSRAM2)52) 的效果。在第9A、9B圖中,主控裝置53的雙向介面電路501包含連接方式相反的輸出反向器501a、輸入反向器501b;記憶體模組(PSRAM1)51的雙向介面電路511包含連接方式相反的輸出反向器511a、輸入反向器511b;記憶體模組(PSRAM2)52的雙向介面電路521包含連接方式相反的輸出反向器521a、輸入反向器521b。When the memory bank busy signal lines BRBBh, BRBBm1, BRBBm2 are used in conjunction with the bidirectional interface circuits 501, 511, 521 and the pull-up resistor 50a, the memory module (for example, the memory module (PSRAM1) 51) that has an update conflict can be Based on the wired OR (wired OR) wiring method, the effect of simultaneously notifying the main control device 53 and other memory modules (eg, the memory module (PSRAM2) 52 ) that does not have an update conflict is achieved. In Figures 9A and 9B, the bidirectional interface circuit 501 of the main control device 53 includes an output inverter 501a and an input inverter 501b with opposite connection modes; the bidirectional interface circuit 511 of the memory module (PSRAM1) 51 includes a connection mode The output inverter 511a and the input inverter 511b are opposite; the bidirectional interface circuit 521 of the memory module (PSRAM2) 52 includes the output inverter 521a and the input inverter 521b connected in opposite ways.

請參見第9A圖,其係於記憶體模組與主控裝置之間設置記憶庫忙碌信號線BRBB,且由主控裝置驅動記憶庫忙碌信號BRBB之示意圖。記憶庫忙碌信號線以主控裝置53作為驅動端時,主控裝置53發出的驅動信號,先由雙向介面電路501中的輸出反向器501a傳送至記憶庫忙碌信號線BRBBh,再分別經由記憶庫忙碌信號線BRBBm1與雙向介面電路511的輸入反向器511b傳送至記憶體模組(PSRAM1)51,以及經由記憶庫忙碌信號線BRBBm2與雙向介面電路521的輸入反向器521b傳送至記憶體模組(PSRAM2)52。Please refer to FIG. 9A , which is a schematic diagram of setting a memory bank busy signal line BRBB between the memory module and the main control device, and the main control device drives the memory bank busy signal BRBB. When the main control device 53 is used as the driving end of the memory bank busy signal line, the driving signal sent by the main control device 53 is first transmitted to the memory bank busy signal line BRBBh by the output inverter 501a in the bidirectional interface circuit 501, and then respectively through the memory bank The bank busy signal line BRBBm1 and the input inverter 511b of the bidirectional interface circuit 511 are transmitted to the memory module (PSRAM1) 51, and are transmitted to the memory via the memory bank busy signal line BRBBm2 and the input inverter 521b of the bidirectional interface circuit 521 Module (PSRAM2) 52 .

請參見第9B圖,其係於記憶體模組與主控裝置之間設置記憶庫忙碌信號線BRBB,且由記憶體模組驅動記憶庫忙碌信號BRBB之示意圖。記憶庫忙碌信號線以記憶體模組(PSRAM1)51作為驅動端時,記憶體模組(PSRAM1)51先由雙向介面電路511中的輸出反向器511a將驅動信號傳送至記憶庫忙碌信號線BRBBm1,再分別經由記憶庫忙碌信號線BRBBh與雙向介面電路501的輸入反向器501b傳送至主控裝置53,以及經由記憶庫忙碌信號線BRBBm2與雙向介面電路521的輸入反向器521b傳送至記憶體模組(PSRAM2)52。Please refer to FIG. 9B , which is a schematic diagram of setting a memory bank busy signal line BRBB between the memory module and the main control device, and the memory module driving the memory bank busy signal BRBB. When the memory bank busy signal line uses the memory module (PSRAM1) 51 as the driving end, the memory module (PSRAM1) 51 first transmits the driving signal to the memory bank busy signal line through the output inverter 511a in the bidirectional interface circuit 511 BRBBm1 is then transmitted to the main control device 53 via the memory bank busy signal line BRBBh and the input inverter 501b of the bidirectional interface circuit 501, and is transmitted to the main control device 53 via the memory bank busy signal line BRBBm2 and the input inverter 521b of the bidirectional interface circuit 521, respectively. Memory module (PSRAM2) 52 .

在預設狀況下,若主控裝置53與記憶體模組(PSRAM1)51、(PSRAM2)52均未產生驅動信號時,上拉電阻50a用於將記憶庫忙碌信號BRBBh、BRBBm1、BRBBm2維持在高位準。在本文中,假設記憶體模組(PSRAM1)51、(PSRAM2)52對記憶庫忙碌信號BRBBm1、BRBBm2的驅動能力,大於主控裝置53對記憶庫忙碌信號BRBBh的驅動能力。且,由主控裝置53所發出之記憶庫忙碌信號BRBBh的驅動能力,大於上拉電阻50a的驅動能力。Under the default condition, if the main control device 53 and the memory modules (PSRAM1) 51 and (PSRAM2) 52 do not generate driving signals, the pull-up resistor 50a is used to maintain the memory bank busy signals BRBBh, BRBBm1 and BRBBm2 at high level. Herein, it is assumed that the drive capability of the memory modules (PSRAM1) 51 and (PSRAM2) 52 to the memory bank busy signals BRBBm1 and BRBBm2 is greater than the drive capability of the main control device 53 to the memory bank busy signal BRBBh. Moreover, the driving capability of the memory bank busy signal BRBBh sent by the main control device 53 is greater than the driving capability of the pull-up resistor 50a.

接著,以第9A、9B圖所示的接線圖,搭配第10圖,說明記憶體模組利用記憶庫忙碌信號BRBB(PSRAM1)51、(PSRAM2)52,向主控裝置53回報更新衝突發生與否的舉例。Next, using the wiring diagrams shown in Figures 9A and 9B and Figure 10 to illustrate that the memory module uses the memory bank busy signals BRBB (PSRAM1) 51 and (PSRAM2) 52 to report the occurrence of an update conflict and the occurrence of an update conflict to the main control device 53. No example.

請參見第10圖,其係根據本揭露構想,記憶體模組與主控裝置之間利用記憶庫忙碌信號線BRBB搭配即刻回報模式(mode A),進行同步讀取操作的一種實施例的波形圖。在此圖式中,時點t1至時點t15為讀取操作期間Trd;時點t1至時點t14為晶片選取期間Tcs;時點t1至時點t3為設定期間Tset;時點t3至時點t4為讀取指令傳送期間Tcmd;時點t4至時點t8為位址傳送期間Tadr;時點t8至時點t13為同步資料準備期間Tsdatpr;時點t13至時點t15為同步資料讀取期間Tdat_sync;時點t14至時點t15為結束期間Tend。Please refer to FIG. 10, which is a waveform of an embodiment of a synchronous read operation using the memory bank busy signal line BRBB and the immediate report mode (mode A) between the memory module and the main control device according to the concept of the present disclosure picture. In this figure, the time point t1 to the time point t15 is the read operation period Trd; the time point t1 to the time point t14 is the chip selection period Tcs; the time point t1 to the time point t3 is the setting period Tset; the time point t3 to the time point t4 is the read command transmission period Tcmd; time point t4 to time point t8 is the address transfer period Tadr; time point t8 to time point t13 is the synchronization data preparation period Tsdatpr; time point t13 to time point t15 is the synchronization data reading period Tdat_sync; time point t14 to time point t15 is the end period Tend.

主控裝置53在時點t1將晶片選取信號CS#拉低至低位準後,記憶體模組(PSRAM1)51於時點t2,藉由將記憶庫忙碌信號BRBBm1的位準拉低的方式,通知主控裝置53其內部產生更新衝突。記憶體模組(PSRAM1)51在時點t2至時點t7期間將記憶庫忙碌信號BRBBm1維持在低位準,並於時點t7開始將記憶庫忙碌信號BRBBm1拉高至高位準。其中,時點t2至時點t7期間可定義為更新衝突通知期間Trfrp。After the master device 53 pulls down the chip select signal CS# to a low level at time t1, the memory module (PSRAM1) 51 notifies the master by pulling down the level of the memory bank busy signal BRBBm1 at time t2. The update conflict occurs inside the control device 53 . The memory module ( PSRAM1 ) 51 maintains the memory bank busy signal BRBBm1 at a low level from the time point t2 to the time point t7 , and starts to pull the memory bank busy signal BRBBm1 to a high level at the time point t7 . The period from the time point t2 to the time point t7 may be defined as the update conflict notification period Trfrp.

另一方面,在時點t1至時點t7期間,記憶體模組PSRAM2將記憶庫忙碌信號BRBBm2維持在高位準。此時,記憶庫忙碌信號線BRBBh、BRBBm1、BRBBm2之間的信號驅動情形,將如第9B所示。即,記憶體模組(PSRAM1)51所發出的記憶庫忙碌信號BRBBm1,將驅動主控裝置的記憶庫忙碌信號BRBBh,以及與記憶體模組(PSRAM2)22對應的記憶庫忙碌信號BRBBm2。On the other hand, during the period from the time point t1 to the time point t7, the memory module PSRAM2 maintains the memory bank busy signal BRBBm2 at a high level. At this time, the signal driving situation between the memory bank busy signal lines BRBBh, BRBBm1, and BRBBm2 will be as shown in Section 9B. That is, the memory bank busy signal BRBBm1 sent by the memory module ( PSRAM1 ) 51 will drive the memory bank busy signal BRBBh of the main control device and the memory bank busy signal BRBBm2 corresponding to the memory module ( PSRAM2 ) 22 .

儘管在第10圖中,由記憶體模組(PSRAM2)52所發出之記憶庫忙碌信號BRBBm2為高位準,但因為從時點t2開始,記憶體模組(PSSRAM1)51進行主動驅動的緣故,記憶體模組PSRAM2的記憶庫忙碌信號線BRBBm2亦在時點t2開始,發生位準降低的情形。連帶的,記憶體模組(PSRAM2)52可藉由記憶庫忙碌信號BRBBm2的位準降低現象,立刻得知其他的記憶體模組(即,記憶體模組(PSRAM1)51)發生更新衝突的情況。Although in FIG. 10, the memory bank busy signal BRBBm2 sent by the memory module (PSRAM2) 52 is at a high level, since the memory module (PSSRAM1) 51 is actively driven from the time point t2, the memory The memory bank busy signal line BRBBm2 of the bulk module PSRAM2 also starts at time t2, and the level is lowered. In addition, the memory module (PSRAM2) 52 can immediately know that other memory modules (ie, the memory module (PSRAM1) 51 ) have an update conflict by the phenomenon that the level of the memory bank busy signal BRBBm2 is lowered. condition.

在第10圖中,係透過第9A、9B圖所示的硬體接線的方式達到通知記憶體模組PSRAM2的效果。因此,在第10圖中,主控裝置53無須再採用如第8A、8B圖的方式,以特殊讀取指令m2CMDrd_sp、延長讀取指令m2CMDext等方式通知記憶體模組PSRAM2。In Fig. 10, the effect of notifying the memory module PSRAM2 is achieved by means of hardware wiring as shown in Figs. 9A and 9B. Therefore, in FIG. 10, the main control device 53 does not need to notify the memory module PSRAM2 by means of the special read command m2CMDrd_sp, the extended read command m2CMDext, etc. as shown in FIGS. 8A and 8B.

在某些應用時,亦可不搭配雙向介面電路與上拉電路使用記憶庫忙碌信號線BRBBh、BRBBm1、BRBBm2。針對該些應用,則可搭配如第8A、8B圖所示的作法,由主控裝置53通知記憶體模組(PSRAM2)52。In some applications, the memory bank busy signal lines BRBBh, BRBBm1, and BRBBm2 can also be used without the bidirectional interface circuit and the pull-up circuit. For these applications, the method as shown in FIGS. 8A and 8B can be used to notify the memory module (PSRAM2) 52 from the main control device 53 .

如前所述,記憶體模組(PSRAM1)51、(PSRAM2)52在接收列位址m1ADRr、m2ADRr後起算讀取延遲計數。因此,由第10圖可以看出,記憶體模組(PSRAM1)51、(PSRAM2)52均自時點t5開始起算讀取延遲計數。其中,記憶體模組(PSRAM1)51需費時兩個讀取延遲計數(LC*2),方可將讀取資料備妥於內部緩衝器,而記憶體模組PSRAM2僅需一個讀取延遲計數(LC)即可在內部緩衝器備妥讀取資料。接著分別說明記憶體模組PSRAM1、PSRAM2如何與何時傳送同步讀取資料DATm1、DATm2。As mentioned above, the memory modules (PSRAM1) 51 and (PSRAM2) 52 start to count the read delays after receiving the column addresses m1ADRr and m2ADRr. Therefore, it can be seen from FIG. 10 that the memory modules (PSRAM1) 51 and (PSRAM2) 52 both count the read delay counts from the time point t5. Among them, the memory module (PSRAM1) 51 needs two read delay counts (LC*2) to prepare the read data in the internal buffer, while the memory module PSRAM2 only needs one read delay count (LC) is ready to read data in the internal buffer. Next, it is explained how and when the memory modules PSRAM1 and PSRAM2 transmit the synchronous read data DATm1 and DATm2 respectively.

記憶體模組(PSRAM1)51的更新衝突在時點t12結束,並在下一個系統時脈信號SCLK的上升緣(即,時點t13)時,陸續以資料閃控遮罩信號DQSM[1]產生讀取閃控脈衝信號m1strb1、m1strb2。因此,記憶體模組(PSRAM1)51自時點t13開始利用系統輸入輸出信號SIO[8:1]傳送同步讀取資料DATm1。The update conflict of the memory module (PSRAM1) 51 ends at the time point t12, and at the next rising edge of the system clock signal SCLK (ie, the time point t13), the data flash mask signal DQSM[1] is successively used to generate reads. Flashing pulse signals m1strb1, m1strb2. Therefore, the memory module (PSRAM1) 51 starts to transmit the synchronous read data DATm1 using the system input and output signals SIO[8:1] from the time point t13.

由於記憶體模組(PSRAM2)52可在一個讀取延遲計數結束(即,時點t9)完成讀取,並在下一個系統時脈信號SCLK的上升緣(即,時點t10)時,以資料閃控遮罩信號DQSM[2]陸續產生讀取閃控脈衝信號m2strb1’、m2strb2’。因此,記憶體模組(PSRAM2)52自時點t10開始傳送利用系統輸入輸出信號SIO[16:9]傳送捨棄資料drpDATm2。記憶體模組(PSRAM2)52傳送捨棄資料drpDATm2的期間定義為資料捨棄期間Tdrp2。Since the memory module (PSRAM2) 52 can finish reading when one read delay count ends (ie, time point t9 ), and at the next rising edge of the system clock signal SCLK (ie, time point t10 ), flashing with data The mask signal DQSM[2] successively generates read flash pulse signals m2strb1', m2strb2'. Therefore, the memory module (PSRAM2) 52 starts to transmit the discarded data drpDATm2 using the system I/O signals SIO[16:9] from the time point t10. The period during which the memory module (PSRAM2) 52 transmits the discard data drpDATm2 is defined as the data discard period Tdrp2.

之後,記憶體模組(PSRAM2)52將維持閒置一段期間(時點t11至時點t13)後,再次自時點t13開始以資料閃控遮罩信號DQSM[2]產生讀取閃控脈衝信號m2strb1、m2strb2。時點t9至時點t13可定義為,記憶體模組(PSRAM2)22為等待記憶體模組(PSRAM1)51的更新衝突結束所需花費的額外等待期間Taddwt。記憶體模組(PSRAM2)52亦將自時點t13開始,再次傳送同步讀取資料DATm2。After that, the memory module (PSRAM2) 52 will remain idle for a period of time (from time point t11 to time point t13), and then starts to generate read flash pulse signals m2strb1 and m2strb2 with the data flash mask signal DQSM[2] again starting from time point t13 . The time point t9 to the time point t13 can be defined as the additional waiting period Taddwt spent by the memory module (PSRAM2) 22 for waiting for the update conflict of the memory module (PSRAM1) 51 to end. The memory module (PSRAM2) 52 will also transmit the synchronous read data DATm2 again from the time point t13.

根據本揭露的構想,主控裝置53並不使用記憶體模組(PSRAM2)52在時點t9至時點t10期間所傳送的捨棄資料drpDATm2,而是使用記憶體模組(PSRAM2)52在時點t13至時點t15期間傳送的同步讀取資料DATm2。經由系統輸入輸出信號SIO[16:9]所傳送的捨棄資料drpDATm2與同步讀取資料DATm2均由記憶體模組(PSRAM2)22所提供,兩者的內容完全相同。According to the concept of the present disclosure, the main control device 53 does not use the discarded data drpDATm2 transmitted by the memory module (PSRAM2) 52 from the time point t9 to the time point t10, but uses the memory module (PSRAM2) 52 from the time point t13 to the time point t10. The synchronous read data DATm2 transmitted during the time point t15. The discarded data drpDATm2 and the synchronous read data DATm2 transmitted through the system input and output signals SIO[16:9] are both provided by the memory module (PSRAM2) 22, and their contents are identical.

此處將時點t5至時點t13定義為,因應記憶體模組(PSRAM1)51發生之更新衝突,等待記憶體模組(PSRAM1)51將讀取資料複製至內部緩衝器所需之更新衝突讀取期間Trdrf。由第10圖可以看出,記憶體模組(PSRAM1)51在時點t13至時點t15的期間傳送同步讀取資料DATm1,且記憶體模組(PSRAM2)52於時點t13至時點t15的期間(同步資料讀取期間Tdat_sync)傳送同步讀取資料DATm2。因此,記憶體模組(PSRAM1)51、(PSRAM2)52可以同步地將讀取資料傳送至主控裝置53。Here, the time point t5 to the time point t13 is defined as, in response to the update conflict occurred in the memory module (PSRAM1) 51, waiting for the memory module (PSRAM1) 51 to copy the read data to the internal buffer for the update conflict read Period Trdrf. It can be seen from FIG. 10 that the memory module (PSRAM1) 51 transmits the synchronous read data DATm1 during the period from time point t13 to time point t15, and the memory module (PSRAM2) 52 (synchronization) is transmitted from time point t13 to time point t15. During the data read period Tdat_sync) transmits the synchronous read data DATm2. Therefore, the memory modules (PSRAM1) 51 and (PSRAM2) 52 can transmit the read data to the main control device 53 synchronously.

第10圖所示為記憶體模組(PSRAM1)51、(PSRAM2)52與主控裝置53間,利用記憶庫忙碌信號線BRBBh、BRBBm1、BRBBm2搭配即刻回報模式(mode A)的波形圖,實際應用時,亦可搭配延遲回報模式(mode B)的方式。關於搭配延遲回報模式(mode B)的作法,可類推第8B圖與第10圖的說明故不予詳述。Figure 10 shows the waveform diagram of the memory modules (PSRAM1) 51, (PSRAM2) 52 and the main control device 53, using the memory bank busy signal lines BRBBh, BRBBm1, BRBBm2 to match the immediate report mode (mode A). In application, the delayed return mode (mode B) can also be used. The method of matching the delayed return mode (mode B) can be analogized to the descriptions in Figure 8B and Figure 10, so it will not be described in detail.

再者,本揭露還可以主控裝置與記憶體模組PSRAM1、PSRAM2之間既有的信號線(例如,晶片選取信號CS#、系統時脈信號SCLK、資料閃控遮罩信號DQSM等),以及額外設置的信號線彼此搭配,進而產生特定的波形變化,作為回報記憶體模組(PSRAM1)51、(PSRAM2)52的狀態使用。例如,在第11圖中,假設以資料閃控遮罩信號DQSM[1]搭配記憶庫忙碌信號BRBBm1、BRBBh的變化,作為主控裝置與記憶體模組PSRAM1、PSRAM2之間的溝通使用。Furthermore, the present disclosure can also use existing signal lines (eg, chip select signal CS#, system clock signal SCLK, data flash mask signal DQSM, etc.) between the main control device and the memory modules PSRAM1 and PSRAM2, And the additionally arranged signal lines are matched with each other, thereby generating a specific waveform change, which is used for reporting the states of the memory modules (PSRAM1) 51 and (PSRAM2) 52 . For example, in Figure 11, it is assumed that the data flash mask signal DQSM[1] is used in conjunction with the changes of the memory bank busy signals BRBBm1 and BRBBh as the communication between the master device and the memory modules PSRAM1 and PSRAM2.

請參見第11圖,其係根據本揭露構想,記憶體模組PSRAM1以即刻回報模式(mode A)通知主控裝置後,記憶體模組PSRAM1、PSRAM2進行同步讀取操作的另一種實施例的波形圖。在此圖式中,時點t1至時點t13為讀取操作期間Trd;時點t1至時點t12 為晶片選取期間Tcs;時點t1至時點t3為設定期間Tset;時點t3至時點t4為讀取指令傳送期間Tcmd;時點t4至時點t8為位址傳送期間Tadr;時點t8至時點t11為同步資料準備期間Tsdatpr;時點t11至時點t13為同步資料讀取期間Tdat_sync;時點t12至時點t13為結束期間Tend。Please refer to FIG. 11, which is another embodiment of the synchronous read operation of the memory modules PSRAM1 and PSRAM2 after the memory module PSRAM1 notifies the master device in the immediate report mode (mode A) according to the concept of the present disclosure. Waveform diagram. In this figure, the time point t1 to the time point t13 is the read operation period Trd; the time point t1 to the time point t12 is the chip selection period Tcs; the time point t1 to the time point t3 is the setting period Tset; the time point t3 to the time point t4 is the read command transmission period Tcmd; time point t4 to time point t8 is the address transmission period Tadr; time point t8 to time point t11 is the synchronization data preparation period Tsdatpr; time point t11 to time point t13 is the synchronization data reading period Tdat_sync; time point t12 to time point t13 is the end period Tend.

主控裝置53在時點t1將晶片選取信號CS#拉低後,記憶體模組(PSRAM1)51於時點t2,藉由同時將記憶庫忙碌信號BRBBm1的位準拉低,以及將資料閃控遮罩信號DQSM[1]的位準拉高的方式,通知主控裝置53其內部產生更新衝突。記憶體模組(PSRAM1)51在時點t2至時點t7期間(更新衝突通知期間Trfrp)將記憶庫忙碌信號BRBBm1維持在低位準並將資料閃控遮罩信號DQSM[1]維持在高位準。After the main control device 53 pulls down the chip selection signal CS# at the time point t1, the memory module (PSRAM1) 51 simultaneously pulls down the level of the memory bank busy signal BRBBm1 at the time point t2 and blocks the data flash. By pulling the level of the mask signal DQSM[1] high, the master control device 53 is notified that an update conflict has occurred therein. The memory module (PSRAM1) 51 maintains the memory bank busy signal BRBBm1 at a low level and the data flash mask signal DQSM[1] at a high level during the period from the time point t2 to the time point t7 (the update conflict notification period Trfrp).

由於記憶體模組(PSRAM1)51在更新衝突通知期間Trfrp將記憶庫忙碌信號BRBBm1維持在低位準的緣故,記憶庫忙碌信號BRBBh將如第9B圖所示,受到來自記憶體模組(PSRAM1)51的記憶庫忙碌信號BRBBm1的影響而在更新衝突通知期間Trfrp維持在低位準。記憶體模組(PSRAM1)51於時點t7停止將記憶庫忙碌信號BRBBm1拉高,並開始將資料閃控遮罩信號DQSM[1]拉低至低位準。Since the memory module (PSRAM1) 51 keeps the memory bank busy signal BRBBm1 at a low level during the update conflict notification period, the memory bank busy signal BRBBh will be received from the memory module (PSRAM1) as shown in FIG. 9B Trfrp remains low during update conflict notification due to the influence of the memory bank busy signal BRBBm1 at 51 . The memory module (PSRAM1) 51 stops pulling the memory bank busy signal BRBBm1 high at time t7, and starts pulling the data flash mask signal DQSM[1] to a low level.

另一方面,在時點t1至時點t7期間,記憶體模組(PSRAM2)52將記憶庫忙碌信號BRBBm2維持在高位準,並將資料閃控遮罩信號DQSM[2]維持在低位準。儘管記憶體模組(PSRAM2)52在時點t2至時點t7期間將記憶庫忙碌信號BRBBm2維持在高位準,但因記憶庫忙碌信號BRBBh、BRBBm1、BRBBm2之間以線或(wired OR)的方式相連的緣故,記憶體模組(PSRAM1)51在時點t2~時點t7期間將記憶庫忙碌信號BRBBm1拉低至低位準的變化,仍會反映至記憶庫忙碌信號BRBBm2,使記憶庫忙碌信號BRBBm2的位準受到波動。因此,記憶體模組(PSRAM2)52可藉由記憶庫忙碌信號BRBBm2的信號波動,獲知記憶體模組(PSRAM1)51發生更新衝突的情形。On the other hand, during the period from time t1 to time t7, the memory module (PSRAM2) 52 maintains the memory bank busy signal BRBBm2 at a high level, and maintains the data flash mask signal DQSM[2] at a low level. Although the memory module (PSRAM2) 52 maintains the memory bank busy signal BRBBm2 at a high level from the time point t2 to the time point t7, the memory bank busy signals BRBBh, BRBBm1 and BRBBm2 are connected in a wired OR manner. For this reason, the memory module (PSRAM1) 51 pulls down the memory bank busy signal BRBBm1 to a low level from the time point t2 to the time point t7, which will still be reflected in the memory bank busy signal BRBBm2, so that the bit of the memory bank busy signal BRBBm2 is still reflected. subject to fluctuations. Therefore, the memory module (PSRAM2) 52 can know the update conflict of the memory module (PSRAM1) 51 by the signal fluctuation of the memory bank busy signal BRBBm2.

據此,主控裝置53可以根據記憶庫忙碌信號BRBBh得知記憶體模組(PSRAM1)51產生更新衝突。此外,且記憶體模組(PSRAM2)52亦可如第9B圖所說明,藉由線或(wired OR)的連線方式,直接掌握記憶體模組(PSRAM1)51發生更新衝突的情形。換言之,採用線或(wired OR)的連線方式時,記憶體模組(PSRAM2)52可經由記憶庫忙碌信號BRBBm2直接得知記憶體模組(PSRAM1)51發生更新衝突,無須透過主控裝置53間接得知。Accordingly, the main control device 53 can know that the memory module (PSRAM1) 51 has an update conflict according to the memory bank busy signal BRBBh. In addition, the memory module (PSRAM2) 52 can also directly grasp the situation of the update conflict of the memory module (PSRAM1) 51 through the wired OR connection as shown in FIG. 9B. In other words, when the wired OR connection method is adopted, the memory module (PSRAM2) 52 can directly know that the memory module (PSRAM1) 51 has an update conflict through the memory bank busy signal BRBBm2, without going through the main control device. 53 learned indirectly.

如前所述,記憶體模組(PSRAM1)51、(PSRAM2)52在接收列位址m1ADRr、m2ADRr後起算讀取延遲計數。因此,由第11圖可以看出,記憶體模組(PSRAM1)51、(PSRAM2)52均自時點t5開始起算讀取延遲計數。其中,記憶體模組(PSRAM1)51需費時兩個讀取延遲計數(LC*2),方可自內部的記憶體陣列取得讀取資料至內部緩衝器,而記憶體模組(PSRAM2)52僅需一個讀取延遲計數(LC)即可自內部的記憶體陣列取得讀取資料至內部緩衝器。接著分別說明記憶體模組(PSRAM1)51、(PSRAM2)52如何與何時傳送同步讀取資料DATm1、DATm2。As mentioned above, the memory modules (PSRAM1) 51 and (PSRAM2) 52 start to count the read delays after receiving the column addresses m1ADRr and m2ADRr. Therefore, it can be seen from FIG. 11 that the memory modules (PSRAM1) 51 and (PSRAM2) 52 both count the read delay counts from the time point t5. Among them, the memory module (PSRAM1) 51 takes two read delay counts (LC*2) to obtain the read data from the internal memory array to the internal buffer, and the memory module (PSRAM2) 52 Only one read latency count (LC) is required to obtain read data from the internal memory array to the internal buffer. Next, how and when the memory modules (PSRAM1) 51 and (PSRAM2) 52 transmit and read the data DATm1 and DATm2 synchronously will be described respectively.

記憶體模組(PSRAM1)51從時點t5開始,經過更新讀取延遲rfcLC(例如,rfcLC=LC*2) 後,其更新衝突在時點t10結束,記憶體模組(PSRAM1)51並在時點t10後的下一個系統時脈信號SCLK的上升緣(即,時點t11)時,陸續以資料閃控遮罩信號DQSM[1]產生讀取閃控脈衝信號m1strb1、m1strb2。因此,記憶體模組(PSRAM1)51自時點t11開始傳送同步讀取資料DATm1。The memory module (PSRAM1) 51 starts from the time point t5, and after updating the read delay rfcLC (for example, rfcLC=LC*2), the update conflict ends at the time point t10, and the memory module (PSRAM1) 51 ends at the time point t10. At the next rising edge of the system clock signal SCLK (ie, time point t11 ), the read flash pulse signals m1strb1 and m1strb2 are successively generated by the data flash mask signal DQSM[1]. Therefore, the memory module (PSRAM1) 51 starts to transmit the synchronous read data DATm1 from the time point t11.

另一方面,記憶體模組(PSRAM2)52從時點t5開始,經過預設讀取延遲(dftLC =LC*1) 後,於時點t9即可將讀取資料備妥於內部緩衝器。因為記憶體模組(PSRAM1)51發生更新衝突的緣故,記憶體模組(PSRAM2)52知道在預設讀取延遲(dftLC =LC*1)結束後,尚不能在預設讀取延遲(dftLC=LC*1)結束(時點t9)後的下一個系統時脈信號SCLK的上升緣即刻傳出讀取資料。時點t9至時點t11可定義為,記憶體模組(PSRAM2)22為等待記憶體模組(PSRAM1)51的更新衝突結束所需花費的額外等待期間Taddwt。On the other hand, the memory module (PSRAM2) 52 can prepare the read data in the internal buffer at time t9 after a preset read delay (dftLC=LC*1) from time t5. Due to an update conflict of the memory module (PSRAM1) 51, the memory module (PSRAM2) 52 knows that after the preset read delay (dftLC =LC*1) expires, the memory module (PSRAM2) 52 cannot execute the preset read delay (dftLC). The rising edge of the next system clock signal SCLK after the end of =LC*1) (time point t9) immediately transmits the read data. The time point t9 to the time point t11 can be defined as the additional waiting period Taddwt spent by the memory module (PSRAM2) 22 for waiting for the update conflict of the memory module (PSRAM1) 51 to end.

此處將時點t5至時點t11定義為,因應記憶體模組(PSRAM1)51發生之更新衝突,等待記憶體模組(PSRAM1)51將讀取資料複製至內部緩衝器所需之更新衝突讀取期間Trdrf。由第11圖可以看出,記憶體模組(PSRAM1)51於時點t11至時點t13的期間傳送同步讀取資料DATm1,且記憶體模組(PSRAM2)52於時點t11至時點t13的期間傳送同步讀取資料DATm2。時點t11至時點t13的期間可定義為同步資料讀取期間Tdat_sync。因此,記憶體模組(PSRAM1)51、(PSRAM2)52可以同步地利用系統輸入輸出信號SIO[8:1]、SIO[16:9]將內部緩衝器中的讀取資料傳送至主控裝置53。Here, the time point t5 to the time point t11 is defined as, in response to the update conflict occurred in the memory module (PSRAM1) 51, waiting for the memory module (PSRAM1) 51 to copy the read data to the internal buffer. Period Trdrf. As can be seen from FIG. 11, the memory module (PSRAM1) 51 transmits the synchronous read data DATm1 during the period from time point t11 to time point t13, and the memory module (PSRAM2) 52 transmits the synchronization data during the period from time point t11 to time point t13. Read data DATm2. The period from the time point t11 to the time point t13 can be defined as the synchronization data reading period Tdat_sync. Therefore, the memory modules (PSRAM1) 51 and (PSRAM2) 52 can use the system input and output signals SIO[8:1] and SIO[16:9] to transmit the read data in the internal buffer to the main control device synchronously 53.

除第9A、9B圖所舉例之,將額外設置的記憶庫忙碌信號BRBB搭配雙向介面電路與上拉電阻50a使用外,本揭露亦可將晶片選取信號CS#搭配雙向介面電路與上拉電阻40a使用,如第12A、12B圖所示。9A and 9B, the additional memory bank busy signal BRBB is used with the bidirectional interface circuit and the pull-up resistor 50a, the present disclosure can also use the chip select signal CS# with the bidirectional interface circuit and the pull-up resistor 40a Use, as shown in Figures 12A and 12B.

在第12A、12B圖中,電子裝置40包含主控裝置43與記憶體模組(PSRAM1)41、(PSRAM2)42。其中,主控裝置43透過晶片選取信號CS#與系統時脈信號SCLK同時電連接於記憶體模組(PSRAM1)41、(PSRAM2)42。此外,主控裝置43透過系統輸入輸出信號SIO[8:1]、資料閃控遮罩信號DQSM[1]而電連接於記憶體模組(PSRAM1)41,以及透過系統輸入輸出信號SIO[16:9]、資料閃控遮罩信號DQSM[2]而電連接於記憶體模組(PSRAM2)42。此處並假設晶片選取信號CS#搭配雙向介面電路401、411、421與上拉電阻40a使用。In FIGS. 12A and 12B , the electronic device 40 includes a main control device 43 and memory modules (PSRAM1 ) 41 and (PSRAM2 ) 42 . The main control device 43 is electrically connected to the memory modules (PSRAM1) 41 and (PSRAM2) 42 through the chip selection signal CS# and the system clock signal SCLK at the same time. In addition, the main control device 43 is electrically connected to the memory module (PSRAM1) 41 through the system input and output signal SIO[8:1], the data flash mask signal DQSM[1], and is electrically connected to the memory module (PSRAM1) 41 through the system input and output signal SIO[16] :9], the data flashing mask signal DQSM[2] is electrically connected to the memory module (PSRAM2) 42. Here, it is assumed that the chip select signal CS# is used in conjunction with the bidirectional interface circuits 401, 411, 421 and the pull-up resistor 40a.

當晶片選取信號CS#搭配雙向介面電路401、411、421與上拉電阻40a使用時,則發生更新衝突的記憶體模組(例如,記憶體模組(PSRAM1)41) ,可基於線或(wired OR)的接線方式而達到同時通知主控裝置43與其他未發生更新衝突的記憶體模組(例如,記憶體模組(PSRAM2)42) 的效果。在第12A、12B圖中,主控裝置43的雙向介面電路401包含連接方式相反的輸出反向器401a、輸入反向器401b;記憶體模組(PSRAM1)41的雙向介面電路411包含連接方式相反的輸出反向器411a與輸入反向器411b;記憶體模組(PSRAM2)42的雙向介面電路421包含連接方式相反的輸出反向器421a與輸入反向器421b。When the chip select signal CS# is used in conjunction with the bidirectional interface circuits 401, 411, 421 and the pull-up resistor 40a, the memory module (for example, the memory module (PSRAM1) 41) in which the update conflict occurs, can be based on a wire-OR ( wired OR) to achieve the effect of simultaneously notifying the main control device 43 and other memory modules (eg, the memory module (PSRAM2) 42) that have no update conflict. In Figures 12A and 12B, the bidirectional interface circuit 401 of the main control device 43 includes an output inverter 401a and an input inverter 401b with opposite connection modes; the bidirectional interface circuit 411 of the memory module (PSRAM1) 41 includes a connection mode The output inverter 411a and the input inverter 411b are opposite; the bidirectional interface circuit 421 of the memory module (PSRAM2) 42 includes the output inverter 421a and the input inverter 421b connected in opposite ways.

請參見第12A、12B圖,其係記憶體模組與主控裝置之間利用晶片選取信號CS#作為更新衝突之溝通介面,且晶片選取信號CS#分別由主控裝置43與記憶體模組(PSRAM1)41驅動之示意圖。第12A、12B圖的晶片選取信號CS#驅動方式可類推第9A、9B圖的記憶庫忙碌信號BRBB的信號驅動方式,故不予詳述。Please refer to FIGS. 12A and 12B, which are the chip selection signal CS# used as the communication interface for updating conflict between the memory module and the main control device, and the chip selection signal CS# is respectively transmitted by the main control device 43 and the memory module (PSRAM1) Schematic diagram of 41 driver. The driving manner of the chip select signal CS# in FIGS. 12A and 12B can be analogous to the driving manner of the memory bank busy signal BRBB in FIGS. 9A and 9B, so it will not be described in detail.

當晶片選取信號CS#如第12A、12B圖所示,採用線或(wired OR)的方式連接時,記憶體模組(PSRAM1)41、(PSRAM2)42亦可能對晶片選取信號CS#的位準產生影響。因此,在某些應用中,可以晶片選取信號CS#作為進行同步讀取操作的溝通用途。例如,第13圖所示為,記憶體模組(PSRAM1)41藉由晶片選取信號CS#依據即刻回報模式(mode A)進行同步讀取操作的實施例。When the chip select signal CS# is connected in a wired OR manner as shown in Figs. 12A and 12B, the memory modules (PSRAM1) 41 and (PSRAM2) 42 may also select bits of the chip select signal CS#. likely to have an impact. Therefore, in some applications, the chip select signal CS# can be used as a communication purpose for performing a synchronous read operation. For example, FIG. 13 shows an embodiment in which the memory module (PSRAM1) 41 performs a synchronous read operation according to the immediate report mode (mode A) through the chip select signal CS#.

請參見第13圖,其係記憶體模組與主控裝置之間利用晶片選取信號CS#作為更新衝突之溝通介面,且記憶體模組依據即刻回報模式(mode A)通知主控裝置後,進行同步讀取操作的實施例之波形圖。在此圖式中,時點t1至時點t13為讀取操作期間Trd;時點t1至時點t4為晶片選取期間Tcs;時點t1至時點t3為設定期間Tset;時點t3至時點t4為讀取指令傳送期間Tcmd;時點t4至時點t7為位址傳送期間Tadr;時點t7至時點t12為同步資料準備期間Tsdatpr;時點t12至時點t13為同步資料讀取期間Tdat_sync。此處的時點t5至時點t12為更新衝突讀取期間Trdrf。時點t8至時點t12可定義為,記憶體模組(PSRAM2)42為等待記憶體模組(PSRAM1)41的更新衝突結束所需花費的額外等待期間Taddwt。此處的時點t5至時點t12為更新衝突讀取期間Trdrf。Please refer to FIG. 13, which shows that the chip selection signal CS# is used as the communication interface for the update conflict between the memory module and the main control device, and after the memory module notifies the main control device according to the immediate report mode (mode A), Waveform diagram of an embodiment of performing a synchronous read operation. In this figure, the time point t1 to the time point t13 is the read operation period Trd; the time point t1 to the time point t4 is the chip selection period Tcs; the time point t1 to the time point t3 is the setting period Tset; the time point t3 to the time point t4 is the read command transmission period Tcmd; time point t4 to time point t7 is the address transmission period Tadr; time point t7 to time point t12 is the synchronization data preparation period Tsdatpr; time point t12 to time point t13 is the synchronization data reading period Tdat_sync. The time point t5 to the time point t12 here is the update conflict reading period Trdrf. The time point t8 to the time point t12 can be defined as the additional waiting period Taddwt spent by the memory module (PSRAM2) 42 for waiting for the update conflict of the memory module (PSRAM1) 41 to end. The time point t5 to the time point t12 here is the update conflict reading period Trdrf.

另請留意,在此實施例中,若有任何一個記憶體模組(例如,記憶體模組PSRAM1)發生更新衝突時,發生更新衝突的記憶體模組便會將晶片選取信號CS#拉高,強制結束讀取操作。因此,第13圖所示的讀取操作期間Trd並不包含結束期間Tend,且晶片選取期間Tcs的長度較其他實施例的晶片選取期間Tcs短許多。在第13圖中,因為使用晶片選取信號CS#通知的緣故,更新衝突通知期間Trfrp幾乎與晶片選取期間Tcs等長。Please also note that in this embodiment, if any one of the memory modules (eg, the memory module PSRAM1) has an update conflict, the memory module with the update conflict will pull the chip select signal CS# high , to force the end of the read operation. Therefore, the read operation period Trd shown in FIG. 13 does not include the end period Tend, and the length of the wafer selection period Tcs is much shorter than the wafer selection period Tcs of other embodiments. In FIG. 13, since the chip selection signal CS# is used for notification, the update conflict notification period Trfrp is almost as long as the wafer selection period Tcs.

在此實施例中,記憶體模組(PSRAM1)41在時點t1感測到主控裝置43將晶片選取信號CS#拉低的瞬間,即得知其內部存在更新衝突。因此,在時點t4,記憶體模組(PSRAM1)41將晶片選取信號CS#拉高,並以此方式通知主控裝置43其內部存在更新衝突。亦即,在時點t4前,主控裝置43如第12A圖所示,作為晶片選取信號CS#的驅動端。在時點t4至時點t13的期間,記憶體模組(PSRAM2)42如第12B圖所示,作為晶片選取信號CS#的驅動端。In this embodiment, the memory module ( PSRAM1 ) 41 senses the moment when the main control device 43 pulls the chip selection signal CS# low at the time point t1 , that is, it knows that there is an update conflict in it. Therefore, at the time point t4, the memory module (PSRAM1) 41 pulls the chip select signal CS# high, and in this way notifies the main control device 43 that there is an update conflict therein. That is, before the time point t4, the main control device 43, as shown in FIG. 12A, serves as the driving end of the chip select signal CS#. During the period from the time point t4 to the time point t13, the memory module (PSRAM2) 42, as shown in FIG. 12B, serves as the driving end of the chip select signal CS#.

由於主控裝置43、記憶體模組(PSRAM1)41、(PSRAM2)42均連接於晶片選取信號CS#的緣故,記憶體模組(PSRAM2)42亦可在時點t4獲知記憶體模組(PSRAM1)41內部發生更新衝突的現象。也因此,記憶體模組(PSRAM2)42可以得知,無法在預設讀取延遲(dftLC=LC*1)結束(時點t8)後的下一個系統時脈信號SCLK的上升緣(時點t9)立即將內部緩衝器內的讀取資料傳送至主控裝置43。Since the main control device 43, the memory modules (PSRAM1) 41, and (PSRAM2) 42 are all connected to the chip selection signal CS#, the memory module (PSRAM2) 42 can also know the memory module (PSRAM1) at the time point t4. )41 The phenomenon of an update conflict inside. Therefore, the memory module (PSRAM2) 42 can know that the next rising edge (time t9) of the system clock signal SCLK after the preset read delay (dftLC=LC*1) ends (time t8) Immediately transmit the read data in the internal buffer to the main control device 43 .

如第13圖所示,記憶體模組(PSRAM2)42在預設讀取延遲(dftLC=LC*1)結束後的下一個系統時脈信號SCLK的上升緣(時點t9),立刻開始傳送讀取資料至主控裝置43,但記憶體模組(PSRAM2)42在資料捨棄期間Tdrp2所傳送的讀取資料將被主控裝置43捨棄不用,因而稱為捨棄資料drpDATm2。因此,記憶體模組(PSRAM2)42仍需在時點t12開始,再次利用資料閃控遮罩信號DQSM[2]發出讀取閃控脈衝信號m2strb1、m2strb2,以及利用系統輸入輸出信號SIO[16:9]再次傳送同步讀取資料DATm2。經由資料閃控遮罩信號DQSM[2]所傳送的捨棄資料drpDATm2與同步讀取資料DATm2均由記憶體模組(PSRAM2)42所提供,兩者的內容完全相同。As shown in FIG. 13, the memory module (PSRAM2) 42 starts to transmit the read immediately after the next rising edge (time t9) of the system clock signal SCLK after the preset read delay (dftLC=LC*1). The data is fetched to the main control device 43, but the read data sent by the memory module (PSRAM2) 42 during the data discarding period Tdrp2 will be discarded by the main control device 43, so it is called discarded data drpDATm2. Therefore, the memory module (PSRAM2) 42 still needs to start at the time point t12, again using the data flash mask signal DQSM[2] to issue the read flash pulse signals m2strb1, m2strb2, and using the system input and output signals SIO[16: 9] Send the synchronous read data DATm2 again. The discarded data drpDATm2 and the synchronous read data DATm2 transmitted through the data flash mask signal DQSM[2] are both provided by the memory module (PSRAM2) 42, and their contents are identical.

第13圖所示為記憶體模組(PSRAM1)41與主控裝置間,利用晶片選取信號CS#搭配即刻回報模式(mode A)的波形圖,實際應用時,記憶體模組(PSRAM1)41與主控裝置43間,亦可搭配延遲回報模式(mode B)。關於搭配延遲回報模式(mode B)的作法,可類推第8B圖與第13圖的說明故不予詳述。Figure 13 shows the waveform diagram of the memory module (PSRAM1) 41 and the main control device using the chip select signal CS# to match the immediate report mode (mode A). In practical applications, the memory module (PSRAM1) 41 A delayed reporting mode (mode B) can also be used with the master device 43 . The method of matching the delayed return mode (mode B) can be analogized to the descriptions in Figure 8B and Figure 13, so it will not be described in detail.

請參見第14圖,其係記憶體模組PSRAM1、PSRAM2與主控裝置之間,利用晶片選取信號CS#搭配系統時脈信號SCLK搭配即刻回報模式(mode A)進行同步讀取操作的實施例之波形圖。在此圖式中,時點t1至時點t12為讀取操作期間Trd;時點t1至時點t12為晶片選取期間Tcs;時點t1至時點t3為設定期間Tset;時點t3至時點t4為讀取指令傳送期間Tcmd;時點t4至時點t8為位址傳送期間Tadr;時點t8至時點t13為同步資料準備期間Tsdatpr;時點t13至時點t15為同步資料讀取期間Tdat_sync;時點t14至時點t15為結束期間Tend。此處的時點t5至時點t13為更新衝突讀取期間Trdrf。時點t5至時點t11為,記憶體模組(PSRAM2)42進行讀取操作所需的預設讀取延遲(dftLC=LC*1)。時點t11至時點t13可定義為,記憶體模組(PSRAM2)42為等待記憶體模組(PSRAM1)41的更新衝突結束所需花費的額外等待期間Taddwt。Please refer to FIG. 14, which is an embodiment in which a synchronous read operation is performed between the memory modules PSRAM1, PSRAM2 and the main control device using the chip select signal CS#, the system clock signal SCLK and the immediate report mode (mode A) The waveform diagram. In this figure, the time point t1 to the time point t12 is the read operation period Trd; the time point t1 to the time point t12 is the chip selection period Tcs; the time point t1 to the time point t3 is the setting period Tset; the time point t3 to the time point t4 is the read command transmission period Tcmd; time point t4 to time point t8 is the address transfer period Tadr; time point t8 to time point t13 is the synchronization data preparation period Tsdatpr; time point t13 to time point t15 is the synchronization data reading period Tdat_sync; time point t14 to time point t15 is the end period Tend. The time point t5 to the time point t13 here is the update conflict reading period Trdrf. The time point t5 to the time point t11 is the preset read delay (dftLC=LC*1) required for the memory module (PSRAM2) 42 to perform the read operation. The time point t11 to the time point t13 can be defined as the additional waiting period Taddwt spent by the memory module (PSRAM2) 42 for waiting for the update conflict of the memory module (PSRAM1) 41 to end.

在此實施例中,假設記憶體裝置(PSRAM1)41在系統時脈信號SCLK的一個完整週期的期間,透過將晶片選取信號CS#的位準拉高的方式,達到通知主控裝置43和記憶體模組(PSRAM2)42關於更新衝突產生情形的效果。在第14圖中,假設主控裝置43在時點t9至時點t10期間(相當於系統時脈週期Tclk4的整個週期的期間),將晶片選取信號CS#的位準拉高。因此,時點t9至時點t10期間可定義為,主控裝置43用於通知記憶體模組(PSRAM2)42需暫緩進行讀取操作的暫停讀取通知期間Tstp。在此圖式中,假設更新衝突通知期間Trfrp相當於系統時脈信號SCLK的系統時脈週期Tclk4。In this embodiment, it is assumed that the memory device (PSRAM1) 41 notifies the main control device 43 and the memory device by pulling the chip select signal CS# high during a complete cycle of the system clock signal SCLK. The body module (PSRAM2) 42 has an effect on the situation where the update conflict occurs. In FIG. 14, it is assumed that the main control device 43 pulls up the chip select signal CS# during the period from the time point t9 to the time point t10 (a period corresponding to the entire period of the system clock period Tclk4). Therefore, the period from the time point t9 to the time point t10 can be defined as the read suspension notification period Tstp used by the master control device 43 to notify the memory module (PSRAM2) 42 that the read operation needs to be suspended. In this figure, it is assumed that the update conflict notification period Trfrp corresponds to the system clock period Tclk4 of the system clock signal SCLK.

實際應用時,主控裝置43以晶片選取信號CS#搭系統時脈信號配SCLK通知記憶體模組(PSRAM2)42的做法並不需要被限定。例如,主控裝置43可選擇在系統時脈週期Tclk1~Tclk8的任一者將晶片選取信號CS#拉高。由於記憶體模組PSRAM2進行讀取操作所需的預設讀取延遲(dftLC=LC*1)在時點t11結束,若主控裝置43將晶片選取信號CS#拉高的位置早於時點t11,則記憶體模組(PSRAM2)42可即時得知應在預設讀取延遲(dftLC=LC*1)結束後,暫時停止從內部緩衝器傳出讀取資料。若主控裝置43在時點t11前將晶片選取信號CS#搭拉高,則記憶體模組(PSRAM2)42自時點t11結束後將暫停傳送內部緩衝器的資料。直到同步資料準備期間Tsdatpr結束(時點t13)後,記憶體模組(PSRAM2)42再開始從內部緩衝器傳出同步讀取資料DATm2。In practical application, the method that the main control device 43 notifies the memory module (PSRAM2) 42 with the chip select signal CS# and the system clock signal and SCLK does not need to be limited. For example, the main control device 43 may select to pull the chip selection signal CS# high during any one of the system clock periods Tclk1 ˜ Tclk8 . Since the preset read delay (dftLC=LC*1) required for the read operation of the memory module PSRAM2 ends at time t11, if the position where the main control device 43 pulls the chip selection signal CS# high is earlier than time t11, Then, the memory module (PSRAM2) 42 can immediately know that the read data from the internal buffer should be temporarily stopped after the preset read delay (dftLC=LC*1) expires. If the main control device 43 pulls the chip selection signal CS# high before the time point t11, the memory module (PSRAM2) 42 will stop transmitting the data in the internal buffer after the time point t11. After the synchronization data preparation period Tsdatpr ends (time point t13), the memory module (PSRAM2) 42 starts to transmit the synchronization read data DATm2 from the internal buffer.

另一方面,若主控裝置43將晶片選取信號CS#拉高的位置晚於時點t11。例如,主控裝置43在系統時脈週期Tclk6、Tclk7、Tclk8的拉高晶片選取信號CS#。則,記憶體模組(PSRAM2)42需從內部緩衝器傳送兩次讀取資料至系統輸入輸出信號SIO[16:9]。On the other hand, if the position at which the main control device 43 pulls the chip selection signal CS# high is later than the time point t11 . For example, the main control device 43 pulls the chip select signal CS# high during the system clock periods Tclk6, Tclk7, and Tclk8. Then, the memory module (PSRAM2) 42 needs to transmit the read data from the internal buffer twice to the system input and output signals SIO[16:9].

在第14圖中,假設記憶體模組(PSRAM1)41利用即刻回報模式(mode A)通知與主控裝置43,且主控裝置43利用晶片選取信號CS#與系統時脈信號SCLK的組合通知記憶體模組(PSRAM2)42。實際應用時,亦可改採延遲回報模式(mode B)的方式,搭配晶片選取信號CS#與系統時脈信號SCLK的組合。關於搭配延遲回報模式(mode B)的作法,可類推第8B圖的說明故不予詳述。In FIG. 14, it is assumed that the memory module (PSRAM1) 41 uses the immediate report mode (mode A) to notify the master device 43, and the master device 43 uses the combination of the chip select signal CS# and the system clock signal SCLK to notify Memory module (PSRAM2) 42 . In practical application, the delayed return mode (mode B) can also be changed to match the combination of the chip selection signal CS# and the system clock signal SCLK. The method of matching with the delayed return mode (mode B) can be analogized to the description in FIG. 8B and will not be described in detail.

根據本揭露的構想,記憶體模組PSRAM2獲知需等待同步資料準備期間Tsdatpr的方式相當彈性。例如,實際應用時,主控裝置與記憶體模組PSRAM1、PSRAM2間,還可額外設置時脈忽略信號線ICK1、ICK2。時脈忽略信號線ICK1、ICK2在大部分的時候處於低位準,但是當主控裝置將時脈忽略信號ICK1、ICK2拉高時,則記憶體模組PSRAM1、PSRAM2在時脈忽略信號ICK1、ICK2拉高的期間,將暫時性的忽視系統時脈信號SCLK的變動。According to the concept of the present disclosure, the manner in which the memory module PSRAM2 knows that it needs to wait for the synchronization data preparation period Tsdatpr is quite flexible. For example, in practical application, the clock ignore signal lines ICK1 and ICK2 may be additionally set between the main control device and the memory modules PSRAM1 and PSRAM2. The clock ignore signal lines ICK1 and ICK2 are at low level most of the time, but when the main control device pulls the clock ignore signal ICK1 and ICK2 high, the memory modules PSRAM1 and PSRAM2 are at the clock ignore signal ICK1 and ICK2. During the pull-up period, the fluctuation of the system clock signal SCLK will be temporarily ignored.

請參見第15圖,其係於主控裝置和記憶體模組PSRAM1、PSRAM2間設置時脈忽略信號線ICK1、ICK2,在記憶體模組PSRAM1發生更新衝突的情況下進行同步讀取操作的實施例之波形圖。在此圖式中,時點t1至時點t14為讀取操作期間Trd;時點t1至時點t13 為晶片選取期間Tcs;時點t1至時點t3為設定期間Tset;時點t3至時點t4為讀取指令傳送期間Tcmd;時點t4至時點t8為位址傳送期間Tadr;時點t8至時點t12為同步資料準備期間Tsdatpr;時點t12至時點t14為同步資料讀取期間Tdat_sync;時點t12至時點t13為結束期間Tend。此處的時點t2至時點t7期間可定義為,發生更新衝突之記憶體模組PSRAM1通知主控裝置的更新衝突通知期間Trfrp。時點t5至時點t11可定義為更新衝突讀取期間Trdrf。時點t5至時點t9可定義為,記憶體模組PSRAM2進行讀取操作所需的預設讀取延遲(dftLC=LC*1)。時點t9至時點t11可定義為,記憶體模組PSRAM2為等待記憶體模組PSRAM1的更新衝突結束所需花費的額外等待期間Taddwt。Please refer to FIG. 15, which sets the clock ignore signal lines ICK1 and ICK2 between the main control device and the memory modules PSRAM1 and PSRAM2, and implements a synchronous read operation in the case of an update conflict of the memory module PSRAM1 Example of the waveform diagram. In this figure, time point t1 to time point t14 is the read operation period Trd; time point t1 to time point t13 is the chip selection period Tcs; time point t1 to time point t3 is the setting period Tset; time point t3 to time point t4 is the read command transmission period Tcmd; time point t4 to time point t8 is the address transmission period Tadr; time point t8 to time point t12 is the synchronization data preparation period Tsdatpr; time point t12 to time point t14 is the synchronization data reading period Tdat_sync; time point t12 to time point t13 is the end period Tend. The period from the time point t2 to the time point t7 here can be defined as the update conflict notification period Trfrp that the memory module PSRAM1 in which the update conflict occurs notifies the master device. The time point t5 to the time point t11 may be defined as the update conflict reading period Trdrf. The time point t5 to the time point t9 can be defined as the preset read delay (dftLC=LC*1) required for the read operation of the memory module PSRAM2. The time point t9 to the time point t11 can be defined as the additional waiting period Taddwt spent by the memory module PSRAM2 for waiting for the update conflict of the memory module PSRAM1 to end.

在第15圖中,主控裝置在時點t10至時點t11期間,將時脈忽略信號ICK2的位準暫時性的拉高。此處,時點t10至時點t11的期間可定義為時脈忽略期間Tick。在時脈忽略期間Tick,記憶體模組PSRAM2內部將暫停接收系統時脈信號SCLK。也因此,記憶體模組PSRAM2在時脈忽略期間Tick暫停運作。於時脈忽略期間Tick結束(時點t11)後,主控裝置重新將時脈忽略信號ICK2拉低至低位準,使記憶體模組PSRAM2再度接收系統時脈信號SCLK的時脈並繼續進行讀取操作。因此,在時點t12,記憶體模組PSRAM、PSRAM2開始同步傳送讀取資料。In FIG. 15, the master device temporarily pulls up the level of the clock ignore signal ICK2 during the period from the time point t10 to the time point t11. Here, the period from the time point t10 to the time point t11 can be defined as the clock skip period Tick. During the clock ignoring period Tick, the internal memory module PSRAM2 will stop receiving the system clock signal SCLK. Therefore, the memory module PSRAM2 suspends the operation of Tick during the clock ignoring period. After the clock ignore period Tick ends (time point t11), the main control device pulls the clock ignore signal ICK2 to a low level again, so that the memory module PSRAM2 receives the clock of the system clock signal SCLK again and continues to read operate. Therefore, at the time point t12, the memory modules PSRAM and PSRAM2 start to transmit the read data synchronously.

在第15圖的舉例中,主控裝置產生時脈忽略信號ICK2信號至記憶體模組PSRAM2,藉以通知記憶體模組PSRAM2暫停接收系統時脈信號SCLK。在第16圖的實施例中,則假設主控裝置實際停止傳送系統時脈信號SCLK至記憶體模組PSRAM2的作法。與第15圖相較,第16圖的做法無須額外設置接線,其成本相對較低。In the example of FIG. 15 , the main control device generates a clock ignore signal ICK2 to the memory module PSRAM2, so as to notify the memory module PSRAM2 to suspend receiving the system clock signal SCLK. In the embodiment of FIG. 16 , it is assumed that the master control device actually stops transmitting the system clock signal SCLK to the memory module PSRAM2 . Compared with Fig. 15, the method of Fig. 16 does not require additional wiring, and its cost is relatively low.

請參見第16圖,其係主控裝置得知記憶體模組PSRAM1發生更新衝突後,透過暫停提供系統時脈信號SCLK至記憶體模組PSRAM1、PSRAM2而延緩其讀取操作,進而使記憶體模組PSRAM1、PSRAM2進行同步讀取操作之示意圖。在此圖式中,時點t1至時點t13為讀取操作期間Trd;時點t1至時點t12為晶片選取期間Tcs;時點t1至時點t3為設定期間Tset;時點t3至時點t4為讀取指令傳送期間Tcmd;時點t4至時點t8為位址傳送期間Tadr;時點t8至時點t11為同步資料準備期間Tsdatpr;時點t11至時點t13為同步資料讀取期間Tdat_sync;時點t12至時點t13為結束期間Tend。此處的時點t2至時點t7期間可定義為,發生更新衝突之記憶體模組PSRAM1通知主控裝置的更新衝突通知期間Trfrp。時點t5至時點t11可定義為更新衝突讀取期間Trdrf。時點t5至時點t9可定義為,記憶體模組PSRAM2進行讀取操作所需的預設讀取延遲(dftLC=LC*1)。時點t9至時點t11可定義為,記憶體模組PSRAM2為等待記憶體模組PSRAM1的更新衝突結束所需花費的額外等待期間Taddwt。Please refer to FIG. 16, the master control device suspends the read operation of the memory modules PSRAM1 and PSRAM2 by suspending the supply of the system clock signal SCLK to the memory modules PSRAM1 and PSRAM2 after the update conflict occurs in the memory module PSRAM1. A schematic diagram of the synchronous read operation performed by the modules PSRAM1 and PSRAM2. In this figure, the time point t1 to the time point t13 is the read operation period Trd; the time point t1 to the time point t12 is the chip selection period Tcs; the time point t1 to the time point t3 is the setting period Tset; the time point t3 to the time point t4 is the read command transmission period Tcmd; time point t4 to time point t8 is the address transmission period Tadr; time point t8 to time point t11 is the synchronization data preparation period Tsdatpr; time point t11 to time point t13 is the synchronization data reading period Tdat_sync; time point t12 to time point t13 is the end period Tend. The period from the time point t2 to the time point t7 here can be defined as the update conflict notification period Trfrp that the memory module PSRAM1 in which the update conflict occurs notifies the master device. The time point t5 to the time point t11 may be defined as the update conflict reading period Trdrf. The time point t5 to the time point t9 can be defined as the preset read delay (dftLC=LC*1) required for the read operation of the memory module PSRAM2. The time point t9 to the time point t11 can be defined as the additional waiting period Taddwt spent by the memory module PSRAM2 for waiting for the update conflict of the memory module PSRAM1 to end.

在第16圖中,主控裝置在時點t9至時點t11期間,停止傳送系統時脈信號SCLK至記憶體模組PSRAM1、PSRAM2。在這段期間,因為記憶體模組PSRAM1內部進行更新衝突的緣故,即使記憶體模組PSRAM1未接收到系統時脈信號SCLK仍不影響其操作。另一方面,在時點t9至時點t11的期間,記憶體模組PSRAM2因為未接收到系統時脈信號SCLK的時脈的緣故而停止運作。於時點t11開始,主控裝置重新開始傳送系統時脈信號SCLK至記憶體模組PSRAM1、PSRAM2,記憶體模組PSRAM2將再次重新運作。因此,在時點t11,記憶體模組PSRAM、PSRAM2開始同步傳送同步讀取資料DATm1、DATm2。In FIG. 16, the main control device stops transmitting the system clock signal SCLK to the memory modules PSRAM1 and PSRAM2 during the period from the time point t9 to the time point t11. During this period, because the memory module PSRAM1 performs an update conflict within the memory module PSRAM1, even if the memory module PSRAM1 does not receive the system clock signal SCLK, its operation will not be affected. On the other hand, during the period from the time point t9 to the time point t11, the memory module PSRAM2 stops operating because it does not receive the clock of the system clock signal SCLK. Beginning at time point t11, the master device restarts transmitting the system clock signal SCLK to the memory modules PSRAM1 and PSRAM2, and the memory module PSRAM2 will operate again. Therefore, at the time point t11, the memory modules PSRAM and PSRAM2 start to synchronously transmit the synchronous read data DATm1 and DATm2.

前述的實施例中,假設主控裝置透過記憶體模組PSRAM1的回報,得知記憶體模組PSRAM1的內部發生更新衝突。實際應用時,主控裝置亦可藉由其他方式,主動掌握記憶體模組PSRAM1的內部發生更新衝突。In the aforementioned embodiment, it is assumed that the master control device knows that an update conflict occurs inside the memory module PSRAM1 through the report of the memory module PSRAM1. In practical application, the main control device can also actively grasp the update conflict in the memory module PSRAM1 by other means.

前述所舉的實施例均以一個晶片選取期間Tcs完成同步讀取操作。在該些實施例中,同步資料準備期間Tsdatpr大於預設讀取延遲(dftLC=LC*1),且同步資料準備期間(Tsdatpr)小於更新讀取延遲(rfcLC=2*LC)。實際應用時,亦可利用兩個(或以上)的晶片選取期間Tcs完成記憶體模組PSRAM1、PSRAM2以同步方式執行讀取操作。The above-mentioned embodiments all complete the synchronous read operation in one chip selection period Tcs. In these embodiments, the synchronization data preparation period Tsdatpr is greater than the predetermined read delay (dftLC=LC*1), and the synchronization data preparation period (Tsdatpr) is smaller than the update read delay (rfcLC=2*LC). In practical application, two (or more) chip selection periods Tcs can also be used to complete the read operation of the memory modules PSRAM1 and PSRAM2 in a synchronous manner.

請參見第17圖,其係主控裝置發出重複讀取指令m1CMDrtry、m2CMDrtry,使記憶體模組PSRAM1、PSRAM2同步進行讀取操作之示意圖。在此圖式中,時點t1至時點t21為讀取操作期間Trd;時點t1至時點t12 為晶片選取期間Tcs1;時點t12至時點t14為晶片選取間距Tint;時點t14至時點t19為晶片選取期間Tcs2;時點t1至時點t3為設定期間Tset;時點t3至時點t4為讀取指令傳送期間Tcmd;時點t4至時點t6為位址傳送期間Tadr;時點t6至時點t18為同步資料準備期間Tsdatpr;時點t19至時點t21為同步資料讀取期間Tdat_sync;時點t20至時點t21為結束期間Tend。Please refer to FIG. 17 , which is a schematic diagram of the master control device issuing repeated read commands m1CMDrtry and m2CMDrtry to synchronize the memory modules PSRAM1 and PSRAM2 for read operations. In this figure, time point t1 to time point t21 is the reading operation period Trd; time point t1 to time point t12 is the chip selection period Tcs1; time point t12 to time point t14 is the chip selection interval Tint; time point t14 to time point t19 is the chip selection period Tcs2 ; Time t1 to time t3 is the setting period Tset; time t3 to time t4 is the read command transmission period Tcmd; time t4 to time t6 is the address transmission period Tadr; time t6 to time t18 is the synchronization data preparation period Tsdatpr; time t19 From the time point t21 to the time point t21 is the synchronization data reading period Tdat_sync; from the time point t20 to the time point t21 is the end period Tend.

在此實施例中,讀取操作期間Trd依序包含晶片選取期間Tcs1、晶片選取間距Tint、晶片選取期間Tcs2,以及結束期間Tend。其中,晶片選取信號CS#在晶片選取期間Tcs1、Tcs2為低位準,且晶片選取信號CS#在晶片選取間距Tint與結束期間Tend為高位準。In this embodiment, the read operation period Trd includes a chip selection period Tcs1, a chip selection pitch Tint, a chip selection period Tcs2, and an end period Tend in sequence. The chip select signal CS# is at a low level during the chip select periods Tcs1 and Tcs2, and the chip select signal CS# is at a high level during the chip select pitch Tint and the end period Tend.

在晶片選取期間Tcs1,主控裝置先後收到記憶體模組PSRAM2在資料捨棄期間Tdrp2傳出的讀取資料,以及記憶體模組PSRAM1在資料捨棄期間Tdrp1傳出的讀取資料。若主控裝置在晶片選取期間Tcs1內,發現從記憶體模組PSRAM1、PSRAM2的內部緩衝器傳出讀取資料至系統輸入輸出信號SIO[8:1]、SIO[16:9]的時間不一致時,代表主控裝置無法正確使用該些讀取資料。因此,該些讀取資料可被視為捨棄資料drpDATm1、drpDATm2。連帶的,主控裝置可藉由此種不一致的資料傳送時點,主動得知記憶體模組PSRAM1產生更新衝突,而記憶體模組PSRAM2並未產生更新衝突。此處的時點t5至時點t11為更新衝突讀取期間Trdrf。During the chip selection period Tcs1, the main control device successively receives the read data from the memory module PSRAM2 during the data discarding period Tdrp2, and the memory module PSRAM1 successively receives the read data from Tdrp1 during the data discarding period. If the main control device finds that the time from the internal buffers of the memory modules PSRAM1 and PSRAM2 to the system input and output signals SIO[8:1] and SIO[16:9] is inconsistent during the chip selection period Tcs1 , it means that the master device cannot use the read data correctly. Therefore, the read data can be regarded as discard data drpDATm1, drpDATm2. In addition, the main control device can actively know that the memory module PSRAM1 has an update conflict, but the memory module PSRAM2 does not have an update conflict by using the inconsistent data transmission timing. The time point t5 to the time point t11 here is the update conflict reading period Trdrf.

承上所述,在晶片選取期間Tcs1中,記憶體模組PSRAM1、PSRAM2傳送至主控裝置的讀取資料,包含記憶體模組PSRAM1在時點t11至時點t13期間所傳送的讀取資料,以及記憶體模組PSRAM2在時點t8至時點t9期間所傳送的讀取資料,都將被主控裝置所忽視。在晶片選取期間Tcs1中,記憶體模組PSRAM1、PSRAM2傳送至主控裝置的讀取資料被視為捨棄資料drpDATm1、drpDATm2。Based on the above, in the chip selection period Tcs1, the read data transmitted by the memory modules PSRAM1 and PSRAM2 to the main control device includes the read data transmitted by the memory module PSRAM1 from the time point t11 to the time point t13, and The read data transmitted by the memory module PSRAM2 from the time point t8 to the time point t9 will be ignored by the main control device. In the chip selection period Tcs1 , the read data transmitted from the memory modules PSRAM1 and PSRAM2 to the main control device are regarded as discarded data drpDATm1 and drpDATm2 .

晶片選取期間Tcs1、Tcs2的中間為晶片選取間距Tint。在晶片選取間距Tint,主控裝置將晶片選取信號CS#拉高至高位準,並將系統時脈信號SCLK維持在低位準。在晶片選取期間Tcs2中,於時點t14至時點t15期間(重複讀取指令期間Tcmd_rtry),主控裝置發出重複讀取指令m1CMDrtry、m2CMDrtry至記憶體模組PSRAM1、PSRAM2。重複讀取指令m1CMDrtry、m2CMDrtry代表主控裝置要記憶體模組PSRAM1、PSRAM2再次等待更新讀取延遲rfcLC(例如,rfcLC=LC*2)後進行讀取操作。此處的時點t14至時點t19為記憶體模組PSRAM1、PSRAM2第二度進行讀取操作的期間,因此將其定義為,重複讀取期間T2rd。The middle of the wafer selection period Tcs1 and Tcs2 is the wafer selection pitch Tint. At the chip selection pitch Tint, the main control device pulls the chip selection signal CS# to a high level, and maintains the system clock signal SCLK at a low level. In the chip selection period Tcs2, from the time point t14 to the time point t15 (the repeated read command period Tcmd_rtry), the main control device sends the repeated read commands m1CMDrtry and m2CMDrtry to the memory modules PSRAM1 and PSRAM2. The repeated read commands m1CMDrtry and m2CMDrtry represent that the master control device requires the memory modules PSRAM1 and PSRAM2 to wait for the read delay rfcLC (for example, rfcLC=LC*2) to be updated again before performing the read operation. The time point t14 to the time point t19 here is the period during which the memory modules PSRAM1 and PSRAM2 perform the read operation for the second time, so it is defined as the repeated read period T2rd.

由於在晶片選取期間Tcs1的位址傳送期間Tadr(時點t4至時點t6的期間)時,記憶體模組PSRAM1、PSRAM2已經接收過列位址m1ADRr、m2ADRr與行位址m1ADRc、m2ADRc。因此,在晶片選取期間Tcs2期間,主控裝置無須再次將列位址m1ADRr、m2ADRr與行位址m1ADRc、m2ADRc傳送至記憶體模組PSRAM1、PSRAM2。Since the memory modules PSRAM1 and PSRAM2 have already received the column addresses m1ADRr and m2ADRr and the row addresses m1ADRc and m2ADRc during the address transfer period Tadr of the chip selection period Tcs1 (the period from the time point t4 to the time point t6 ). Therefore, during the chip selection period Tcs2, the main control device does not need to transmit the column addresses m1ADRr and m2ADRr and the row addresses m1ADRc and m2ADRc to the memory modules PSRAM1 and PSRAM2 again.

當記憶體模組PSRAM1、PSRAM2接收到重複讀取指令m1CMDrtry、m2CMDrtry後,便共同等待更新讀取延遲rfcLC(例如,rfcLC=LC*2)。在時點t18後,才開始同步產生讀取閃控脈衝信號m1strb1、m2strb1。在時點t18至時點t20期間,記憶體模組PSRAM1利用資料閃控遮罩信號DQSM[1]傳送讀取閃控脈衝信號m1strb1、m1strb2至主控裝置,以及利用系統輸入輸出信號SIO[8:1]從內部緩衝器傳送同步讀取資料DATm1至主控裝置。在此同時,記憶體模組PSRAM2利用資料閃控遮罩信號DQSM[2]傳送讀取閃控脈衝信號m2strb1、m2strb2至主控裝置,以及利用系統輸入輸出信號SIO[16:9]從內部緩衝器傳送同步讀取資料DATm2至主控裝置。After the memory modules PSRAM1 and PSRAM2 receive the repeated read commands m1CMDrtry and m2CMDrtry, they wait to update the read delay rfcLC (for example, rfcLC=LC*2). After the time point t18, the synchronous generation of the read flash pulse signals m1strb1 and m2strb1 is started. During the period from time point t18 to time point t20, the memory module PSRAM1 uses the data flash mask signal DQSM[1] to transmit the read flash pulse signals m1strb1 and m1strb2 to the main control device, and uses the system input and output signals SIO[8:1] ] Send the synchronous read data DATm1 from the internal buffer to the master device. At the same time, the memory module PSRAM2 uses the data flash mask signal DQSM[2] to transmit the read flash pulse signals m2strb1, m2strb2 to the main control device, and uses the system input and output signals SIO[16:9] to buffer from the internal The device transmits the synchronous read data DATm2 to the master device.

在第17圖中,經由系統輸入輸出信號SIO[8:1]所傳送的捨棄資料drpDATm1與同步讀取資料DATm1均由記憶體模組PSRAM1的內部緩衝器傳出,因此兩者的內容完全相同。同理,經由系統輸入輸出信號SIO[16:9]所傳送的捨棄資料drpDATm2與同步讀取資料DATm2均由記憶體模組PSRAM2的內部緩衝器傳出,因此兩者的內容完全相同。In Figure 17, the discarded data drpDATm1 and the synchronous read data DATm1 transmitted through the system input and output signals SIO[8:1] are both transmitted from the internal buffer of the memory module PSRAM1, so the contents of the two are exactly the same . Similarly, the discarded data drpDATm2 and the synchronous read data DATm2 transmitted through the system I/O signals SIO[16:9] are both transmitted from the internal buffer of the memory module PSRAM2, so the contents of the two are exactly the same.

在第17圖的實施例中,同步資料準備期間Tsdatpr同時涵蓋晶片選取期間Tcs1、Tcs2的一部分。因此,同步資料準備期間Tsdatpr較更新讀取延遲rfcLC長(Tsdatpr>rfcLC =2*LC)。另,在第18圖的實施例中,同步資料準備期間Tsdatpr略短於更新讀取延遲rfcLC(Tsdatpr<rfcLC =2*LC)。In the embodiment of FIG. 17, the synchronization data preparation period Tsdatpr simultaneously covers a part of the wafer selection periods Tcs1 and Tcs2. Therefore, the synchronization data preparation period Tsdatpr is longer than the update read delay rfcLC (Tsdatpr>rfcLC=2*LC). In addition, in the embodiment of FIG. 18, the synchronization data preparation period Tsdatpr is slightly shorter than the update read delay rfcLC (Tsdatpr<rfcLC=2*LC).

採用PSRAM技術的記憶體模組PSRAM時,主控裝置可透過對暫存器的設定,而致能資料閃控遮罩信號DQSM的導引脈衝信號mpre的預先脈衝(precycle pulse)的通知功能。導引脈衝信號mpre指的是,在資料閃控遮罩信號DQSM發出讀取閃控脈衝信號mstrb1、mstrb2前的系統時脈信號SCLK的高位準期間,記憶體模組PSRAM預先將資料閃控遮罩信號DQSM的位準拉高一小段期間,藉以通知主控裝置後續將有讀取資料傳出。即,在讀取閃控脈衝信號mstrb1、mstrb2傳出前,預先利用導引脈衝信號mpre對主控裝置預告後續即將開始傳出讀取資料。When the memory module PSRAM of the PSRAM technology is used, the master device can enable the notification function of the precycle pulse of the pilot pulse signal mpre of the data flash mask signal DQSM by setting the register. The pilot pulse signal mpre refers to the high level of the system clock signal SCLK before the data flash mask signal DQSM sends out the read flash pulse signals mstrb1 and mstrb2, the memory module PSRAM pre-blocks the data flash The level of the mask signal DQSM is pulled high for a short period of time, so as to notify the main control device that the read data will be sent out later. That is, before the read flash pulse signals mstrb1 and mstrb2 are transmitted, the pilot pulse signal mpre is used in advance to inform the main control device that the subsequent transmission of the read data is about to begin.

在第17圖的實施例中,主控裝置可透過主動感測的方式,判斷記憶體模組PSRAM1發生更新衝突。因此,在這個實施例中,並未繪式更新衝突通知期間Trfrp。實際應用時,第17圖的實施例亦可搭配即刻回報模式(mode A)與延遲回報模式(mode B)的方式進行。即,仍由發生更新衝突的記憶體模組PSRAM1通知主控裝置。In the embodiment shown in FIG. 17 , the main control device can determine that an update conflict occurs in the memory module PSRAM1 by means of active sensing. Therefore, in this embodiment, the conflict notification period Trfrp is not updated. In practical application, the embodiment of FIG. 17 can also be performed in combination with an immediate reporting mode (mode A) and a delayed reporting mode (mode B). That is, the main control device is still notified by the memory module PSRAM1 in which the update conflict occurs.

第18圖為另一種由主控裝置主動感測記憶體模組PSRAM1發生更新衝突的實施例。請參見第18圖,其係記憶體模組PSRAM1、PSRAM2與主控裝置之間利用晶片選取信號CS#搭配系統時脈信號SCLK,依據產生導引脈衝信號m1pre、m2pre之間的時間差,判斷記憶體模組PSRAM1發生更新衝突後,如何進行同步讀取操作的實施例之波形圖。在此圖式中,時點t1至時點t15為讀取操作期間Trd;時點t1至時點t14 為晶片選取期間Tcs;時點t1至時點t3為設定期間Tset;時點t3至時點t4為讀取指令傳送期間Tcmd;時點t4至時點t7為位址傳送期間Tadr;時點t7至時點t13為同步資料準備期間Tsdatpr;時點t13至時點t15為同步資料讀取期間Tdat_sync;時點t14至時點t15為結束期間Tend。此處的時點t5至時點t13為更新衝突讀取期間Trdrf。時點t5至時點t9可定義為,記憶體模組PSRAM2進行讀取操作所需的預設讀取延遲(dftLC=LC*1)。時點t9至時點t13可定義為,記憶體模組PSRAM2為等待記憶體模組PSRAM1的更新衝突結束所需花費的額外等待期間Taddwt。FIG. 18 is another embodiment in which the main control device actively senses the update conflict of the memory module PSRAM1. Please refer to FIG. 18, which is the chip selection signal CS# and the system clock signal SCLK between the memory modules PSRAM1, PSRAM2 and the main control device, according to the time difference between the generation of the pilot pulse signals m1pre, m2pre, to determine the memory A waveform diagram of an embodiment of how to perform a synchronous read operation after an update conflict occurs in the bulk module PSRAM1. In this figure, the time point t1 to the time point t15 is the read operation period Trd; the time point t1 to the time point t14 is the chip selection period Tcs; the time point t1 to the time point t3 is the setting period Tset; the time point t3 to the time point t4 is the read command transmission period Tcmd; time point t4 to time point t7 is the address transmission period Tadr; time point t7 to time point t13 is the synchronization data preparation period Tsdatpr; time point t13 to time point t15 is the synchronization data reading period Tdat_sync; time point t14 to time point t15 is the end period Tend. The time point t5 to the time point t13 here is the update conflict reading period Trdrf. The time point t5 to the time point t9 can be defined as the preset read delay (dftLC=LC*1) required for the read operation of the memory module PSRAM2. The time point t9 to the time point t13 can be defined as the additional waiting period Taddwt spent by the memory module PSRAM2 for waiting for the update conflict of the memory module PSRAM1 to end.

在第18圖的舉例中,假設記憶體模組PSRAM1、PSRAM2產生導引脈衝信號m1pre、m2pre的功能均被致能。因為記憶體模組PSRAM1發生更新衝突的緣故,記憶體模組PSRAM1產生導引脈衝信號m1pre的期間,將晚於記憶體模組PSRAM2產生導引脈衝信號m2pre的期間。記憶體模組PSRAM1在時點t11至時點t12期間,利用資料閃控遮罩信號DQSM[1]傳送導引脈衝信號m1pre;以及,記憶體模組PSRAM2在時點t8至時點t9期間,利用資料閃控遮罩信號DQSM[2]傳送導引脈衝信號m2pre。In the example of FIG. 18 , it is assumed that the functions of the memory modules PSRAM1 and PSRAM2 for generating the pilot pulse signals m1pre and m2pre are both enabled. Due to an update conflict of the memory module PSRAM1, the period during which the memory module PSRAM1 generates the pilot pulse signal m1pre is later than the period during which the memory module PSRAM2 generates the pilot pulse signal m2pre. The memory module PSRAM1 uses the data flash mask signal DQSM[1] to transmit the pilot pulse signal m1pre during the period from the time point t11 to the time point t12; and the memory module PSRAM2 uses the data flash control during the period from the time point t8 to the time point t9. The mask signal DQSM[2] transmits the pilot pulse signal m2pre.

由第18圖可以看出,主控裝置在時點t8至時點t9的期間,僅接收到由記憶體模組PSRAM2利用資料閃控遮罩信號線DQSM[2]產生的導引脈衝信號m2pre。主控裝置需等到時點t11至時點t12的期間,才能接收到記憶體模組PSRAM1利用資料閃控遮罩信號線DQSM[1]產生的導引脈衝信號m1pre。據此,主控裝置可基於此種先後(不同步)產生之導引脈衝信號m1pre、m2pre,得知記憶體模組PSRAM1、PSRAM2可提供與其對應之讀取資料的過程存在時間差。亦即,由於主控裝置先接收到由記憶體模組PSRAM2傳出的導引脈衝信號m2pre,主控裝置可據此判斷記憶體模組PSRAM2並未產生更新衝突;另一方面,主控裝置較晚收到由記憶體模組PSRAM1傳出的導引脈衝信號m1pre,可據此判斷記憶體模組PSRAM1發生更新衝突。在此實施例中,由於主控裝置主動得知記憶體模組PSRAM1發生更新衝突,並非由記憶體模組PSRAM1通知。因此,此實施例不包含更新衝突通知期間Trfrp。It can be seen from FIG. 18 that during the period from time t8 to time t9, the main control device only receives the pilot pulse signal m2pre generated by the memory module PSRAM2 using the data flashing mask signal line DQSM[2]. The main control device needs to wait until the time point t11 to the time point t12 to receive the pilot pulse signal m1pre generated by the memory module PSRAM1 using the data flash mask signal line DQSM[1]. Accordingly, based on the pilot pulse signals m1pre and m2pre generated in sequence (asynchronously), the main control device can know that there is a time difference in the process that the memory modules PSRAM1 and PSRAM2 can provide the corresponding read data. That is, since the main control device firstly receives the pilot pulse signal m2pre transmitted from the memory module PSRAM2, the main control device can judge accordingly that the memory module PSRAM2 does not have an update conflict; on the other hand, the main control device When the pilot pulse signal m1pre transmitted from the memory module PSRAM1 is received later, it can be determined that the memory module PSRAM1 has an update conflict. In this embodiment, since the main control device actively learns that the memory module PSRAM1 has an update conflict, it is not notified by the memory module PSRAM1. Therefore, this embodiment does not include the update conflict notification period Trfrp.

在第18圖中,主控裝置在時點t8至時點t9的期間,可根據僅有與記憶體模組PSRAM2對應之導引脈衝信號m2pre產生,無與記憶體模組PSRAM1對應之導引脈衝信號m1pre產生的現象,得知記憶體模組PSRAM1需花費較長的時間進行讀取操作,進而判斷記憶體模組PSRAM1產生更新衝突。此處,在時點t5至時點t11期間,記憶體模組PSRAM2須等待更新讀取延遲rfcLC(例如,rfcLC=LC*2)。其後,記憶體模組PSRAM1才在時點t11至時點t12的期間發出導引脈衝信號m1pre。In Fig. 18, during the period from time point t8 to time point t9, the main control device can generate only the pilot pulse signal m2pre corresponding to the memory module PSRAM2, and there is no pilot pulse signal corresponding to the memory module PSRAM1. From the phenomenon generated by m1pre, it is known that the memory module PSRAM1 takes a long time to perform the read operation, and then it is judged that the memory module PSRAM1 has an update conflict. Here, during the period from the time point t5 to the time point t11, the memory module PSRAM2 has to wait to update the read delay rfcLC (for example, rfcLC=LC*2). After that, the memory module PSRAM1 sends the pilot pulse signal m1pre during the period from the time point t11 to the time point t12.

因此,在第18圖中,假設主控裝置在系統時脈週期Tclk6的期間,將晶片選取信號CS#拉高,作為通知記憶體模組PSRAM2需額外等待記憶體模組PSRAM1完成更新衝突使用。實際應用時,主控裝置亦可選擇在系統時脈週期Tclk7、Tclk8的期間,藉由將晶片選取信號CS#拉高的方式,作為通知記憶體模組PSRAM2需延緩讀取操作速度使用。Therefore, in FIG. 18, it is assumed that the main control device pulls the chip select signal CS# high during the system clock period Tclk6 as a notification to the memory module PSRAM2 to wait for the memory module PSRAM1 to complete the update conflict. In practical application, the main control device can also choose to pull the chip select signal CS# high during the system clock cycles Tclk7 and Tclk8 to notify the memory module PSRAM2 that the read operation speed needs to be slowed down.

請留意,第18圖所提到之,主控裝置藉由導引脈衝信號m1pre、m2pre而判斷記憶體模組PSRAM1發生更新碰撞的作法,雖依據系統時脈週期將晶片選取信號CS#拉高的方式,通知記憶體模組PSRAM2需延遲其讀取操作,但實際應用時並不以此為限。因此,如前述其他實施例所提到之,設置記憶庫忙碌信號BRBB、時脈忽略信號ICK等作法,亦可經修改後而應用於主控裝置藉由導引脈衝信號m1pre、m2pree而判斷記憶體模組PSRAM1發生更新碰撞的情況。Please note that, as mentioned in FIG. 18, the main control device determines the update collision of the memory module PSRAM1 by using the pilot pulse signals m1pre and m2pre, although the chip selection signal CS# is pulled high according to the system clock cycle. In this way, the memory module PSRAM2 is notified that its read operation needs to be delayed, but the actual application is not limited to this. Therefore, as mentioned in the other embodiments mentioned above, the methods of setting the memory bank busy signal BRBB, the clock ignore signal ICK, etc. can also be modified and applied to the main control device to judge the memory by using the pilot pulse signals m1pre and m2pree. The body module PSRAM1 has an update collision.

附帶一提的是,主控裝置僅選擇利用系統時脈週期Tclk6、Tclk7、Tclk8其中一者的期間將晶片選取信號CS#拉高的考量是,若主控裝置將晶片選取信號CS#拉高的期間較一個系統時脈週期Tclk長,可能導致記憶體模組PSRAM2誤以為主控裝置準備強制結束此次的讀取操作。因此,為避免記憶體模組PSRAM2產生誤動作,此實施例假設主控裝置利用將晶片選取信號CS#拉高一個系統時脈週期Tclk的方式,通知記憶體模組PSRAM2需延長讀取操作的期間。Incidentally, the main control device only chooses to use one of the system clock cycles Tclk6, Tclk7, Tclk8 to pull the chip selection signal CS# high, if the main control device pulls the chip selection signal CS# high. The period is longer than one system clock period Tclk, which may cause the memory module PSRAM2 to mistakenly think that the master device is ready to forcibly end the current read operation. Therefore, in order to prevent the memory module PSRAM2 from malfunctioning, this embodiment assumes that the main control device notifies the memory module PSRAM2 that the read operation period needs to be extended by pulling the chip select signal CS# high by one system clock period Tclk .

前述所舉的多個實施例可以看出,本揭露的應用相當彈性。首先,主控裝置可以透過記憶體模組PSRAM1的回報,被動得知記憶體模組PSRAM1內部產生更新衝突(第8A、8B、10、11、13、14、15、16圖);主控裝置可透過比較讀取閃控脈衝信號m1strb1、m2strb1的產生時點的方式,主動判斷記憶體模組PSRAM1內部產生更新衝突(第17圖);或者,主控裝置可透過偵測導引脈衝信號m1pre、m2pre的方式,主動判斷記憶體模組PSRAM1內部產生更新衝突(第18圖)。此外,就記憶體模組PSRAM1的回報模式而言,還可進一步依據回報的時點而區分為,即刻回報模式(mode A)與延遲回報模式(mode B)。It can be seen from the foregoing embodiments that the application of the present disclosure is quite flexible. First, the master device can passively know that there is an update conflict inside the memory module PSRAM1 through the report of the memory module PSRAM1 (Figures 8A, 8B, 10, 11, 13, 14, 15, and 16); the master device By comparing the generation time points of the flash pulse signals m1strb1 and m2strb1, it can actively determine the update conflict in the memory module PSRAM1 (Fig. 17); or, the main control device can detect the pilot pulse signals m1pre, The m2pre method actively determines that an update conflict occurs in the memory module PSRAM1 (Fig. 18). In addition, the report mode of the memory module PSRAM1 can be further classified into an immediate report mode (mode A) and a delayed report mode (mode B) according to the report time.

再者,前述不同的實施例亦說明,若記憶體模組PSRAM1發生更新衝突時,記憶體模組PSRAM1可藉由不同類型的信號線通知主控裝置。例如:資料閃控遮罩信號DQSM[1]、DQSM[2]、記憶庫忙碌信號BRBBh、BRBBm1、BRBBm2、晶片選取信號CS#,或者,以晶片選取信號CS#搭配系統時脈信號SCLK的波形組合等。實際應用時,記憶體模組PSRAM1通知主控裝置的信號線的種類與其波形的控制等,並不以前述實施例為限。Furthermore, the above-mentioned different embodiments also illustrate that if the memory module PSRAM1 has an update conflict, the memory module PSRAM1 can notify the main control device through different types of signal lines. For example: data flash mask signal DQSM[1], DQSM[2], memory bank busy signal BRBBh, BRBBm1, BRBBm2, chip select signal CS#, or the waveform of chip select signal CS# and system clock signal SCLK combination, etc. In practical application, the memory module PSRAM1 notifies the main control device of the type of the signal line and the control of its waveform, etc., and is not limited to the foregoing embodiment.

此外,根據實施例的不同,記憶體模組PSRAM2可從主控裝置間接得知記憶體模組PSRAM1產生更新衝突的情形;或者,記憶體模組PSRAM2可直接自記憶體模組PSRAM1獲知記憶體模組PSRAM1發生更新衝突的情形。In addition, according to different embodiments, the memory module PSRAM2 can indirectly learn from the master control device that the memory module PSRAM1 has an update conflict; or, the memory module PSRAM2 can directly learn the memory from the memory module PSRAM1 The update conflict occurs in the module PSRAM1.

前述實施例中,關於記憶體模組PSRAM2間接從主控裝置得知記憶體模組PSRAM1產生更新衝突的做法包含:由主控裝置發出特殊讀取指令m1CMDrd_sp、m2CMDrd_sp (第8A圖)、由主控裝置發出延長讀取指令m1CMDext、m2CMDext (第8B圖)、由主控裝置改變晶片選取信號CS#的位準(第13A、13B圖)、由主控裝置改變晶片選取信號CS#與系統時脈信號SCLK的組合(第14圖)、主控裝置對額外設置的時脈忽略信號線ICK1、ICK2加以設定(第15圖)、主控裝置暫停傳送系統時脈信號SCLK(第16圖)、重複讀取指令m1CMDrtry、m2CMDrtry(第17圖)。前述實施例中,關於記憶體模組PSRAM2可直接從記憶體模組PSRAM1得知關於記憶體模組PSRAM1產生更新衝突情形的方式包含:如第9A、9B圖所示,以線或(wired OR)的方式設置記憶庫忙碌信號線BRBB;以及,如第12A、12B圖所示,以線或(wired OR)的方式設置晶片選取信號CS#。In the above-mentioned embodiment, the method that the memory module PSRAM2 indirectly learns from the main control device that the memory module PSRAM1 has an update conflict includes: the main control device issues special read commands m1CMDrd_sp, m2CMDrd_sp (FIG. 8A), When the control device issues extended read commands m1CMDext, m2CMDext (Fig. 8B), the main control device changes the level of the chip selection signal CS# (Figs. 13A, 13B), the main control device changes the chip selection signal CS# and the system The combination of the pulse signal SCLK (Fig. 14), the master control device sets the additionally set clock ignore signal lines ICK1 and ICK2 (Fig. 15), the master control device suspends the transmission of the system clock signal SCLK (Fig. 16), Repeat the read commands m1CMDrtry, m2CMDrtry (Fig. 17). In the foregoing embodiment, the way that the memory module PSRAM2 can be directly obtained from the memory module PSRAM1 to generate an update conflict situation for the memory module PSRAM1 includes: as shown in FIGS. 9A and 9B, a wired OR ) to set the memory bank busy signal line BRBB; and, as shown in FIGS. 12A and 12B , to set the chip select signal CS# in a wired OR manner.

根據前述說明可以看出,本揭露的讀取方法可透過相當彈性的方式應用於電子裝置。實際應用時,記憶體模組PSRAM2從主控裝置間接得知記憶體模組PSRAM1產生更新衝突的方式,以及記憶體模組PSRAM2直接從記憶體模組PSRAM1得知記憶體模組PSRAM1產生更新衝突的方式,並不以前述實施例為限。It can be seen from the foregoing description that the reading method of the present disclosure can be applied to electronic devices in a fairly flexible manner. In practical application, the memory module PSRAM2 indirectly learns from the main control device how the memory module PSRAM1 generates an update conflict, and the memory module PSRAM2 directly learns from the memory module PSRAM1 that the memory module PSRAM1 generates an update conflict The method is not limited to the foregoing embodiments.

採用本揭露構想時,主控裝置可以獲知是否有記憶體模組發生更新衝突,進而通知系統內的其他記憶體模組需延遲其傳送讀取資料時點,並確保主控裝置可同步自多個記憶體模組接收讀取資料。本文所述之使用PSRAM技術的記憶體模組,其PSRAM技術包括但不限於OctaRAM、HyperRAM、Xccela PSRAM等,且PSRAM技術採用的傳輸協議可為序列周邊介面(Serial Peripheral Interface Bus,簡稱為SPI)、雙倍序列周邊介面(Dual-SPI)、四倍序列周邊介面(QSPI)等。此外,本文的波形圖雖假設一個讀取延遲計數LC相當於系統時脈週期的三倍 (LC=3*Tclk),但實際應用亦不以此為限。When the concept of the present disclosure is adopted, the master control device can know whether there is an update conflict between memory modules, and then notify other memory modules in the system to delay the time when it transmits and read data, and ensures that the master control device can synchronize from multiple memory modules. The memory module receives the read data. The memory module using PSRAM technology described in this article, its PSRAM technology includes but not limited to OctaRAM, HyperRAM, Xccela PSRAM, etc., and the transmission protocol used by PSRAM technology can be Serial Peripheral Interface Bus (SPI for short) , Double Sequence Peripheral Interface (Dual-SPI), Quadruple Sequence Peripheral Interface (QSPI), etc. In addition, although the waveform diagram in this article assumes that a read delay count LC is equivalent to three times the system clock period (LC=3*Tclk), the actual application is not limited to this.

另請留意,儘管在前述說明中,假設電子裝置僅包含兩個記憶體模組PSRAM1、PSRAM2,但本揭露的實際應用並不以此為限。例如,電子裝置可能包含四個或八個記憶體模組。或者,電子裝置所包含的多個記憶體模組輪流出現需要進行更新衝突的情況。則,前述的讀取方法仍可基於類似的控制方式,待所有發生更新衝突的記憶體模組均完成更新衝突後,再一併控制所有的記憶體模組同步傳送讀取資料。前述的實施例可在修改後,應用至這些不同類型的電子裝置。Please also note that although in the foregoing description, it is assumed that the electronic device includes only two memory modules PSRAM1 and PSRAM2, the practical application of the present disclosure is not limited to this. For example, an electronic device may contain four or eight memory modules. Or, a situation in which a plurality of memory modules included in the electronic device need to be updated and conflicted in turn occurs. Then, the aforementioned reading method can still be based on a similar control method. After all the memory modules in which the update conflict occurs have completed the update conflict, all the memory modules are controlled to transmit the read data synchronously. The aforementioned embodiments can be applied to these different types of electronic devices after modification.

綜上所述,雖然本發明已以實施例揭露如上,然其並非用以限定本發明。本發明所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾。因此,本發明之保護範圍當視後附之申請專利範圍所界定者為準。To sum up, although the present invention has been disclosed by the above embodiments, it is not intended to limit the present invention. Those skilled in the art to which the present invention pertains can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the scope of the appended patent application.

11a,DRAM,11b,21,22,PSRAM1,PSRAM2,51,52,41,42:記憶體模組 13a,13b,23,53,43:主控裝置 CS#:晶片選取信號(線) SCLK:系統時脈信號(線) SIO[64:1]、SIO[8:1]、SIO[16:9]:系統輸入輸出信號線 DQSM,DQSM[2:1],DQSM[1],DQSM[2]:資料閃控遮罩信號(線) CTL:控制信號(線) 10a,10b,20,50,40:電子裝置 t1~t21:時點 Trd:讀取操作期間 Tcs:晶片選取期間 Tset:設定期間 LC:讀取延遲計數 Tclk,Tclk1~Tclk10:系統時脈週期 Tend:結束期間 Tadr_r:列位址期間 Tadr_c:行位址期間 mstrb1,mstrb2,m1strb1、m1strb2、m2strb1、m2strb2,m2strb1’,m2strb2’:讀取閃控脈衝信號 mCMDrd:讀取指令 ADRr,m1ADRr,m2ADRr:列位址 ADRc,m1ADRc,m2ADRc:行位址 DATm:同步讀取資料 Tcmd:讀取指令傳送期間 Tadr:位址傳送期間 25:記憶體裝置 Tsdatpr:同步資料準備期間 Tdat_sync:同步資料讀取期間 DATm1,DATm2:同步讀取資料 m1CMDrd,m2CMDrd:讀取指令 Trdnm:一般讀取期間 S51,S53,S55,S57,S59,S301a,S302a,S303a,S305a,S307a,S101a,S103a,S105a,S107a,S201a,S203a,S301b,S303b,S305b,S307b,S309b,S101b,S103b,S105b,S107b,S201b,S203b:步驟 Trdrf:更新衝突讀取期間 Trfrp:更新衝突通知期間 Taddwt:額外等待期間 drpDATm2:捨棄資料 Tdrp2:資料捨棄期間 m1CMDrd_sp,m2CMDrd_sp:特殊讀取指令 m2CMDext:延長讀取指令 Tcmdext:延長讀取指令期間 501,511,521,401,421,411: 雙向介面電路 501a,521a,511a,401a,421a,411a:輸出反向器 501b,521b,511b,401b,421b,411b:輸入反向器 BRBBh, BRBBm1,BRBBm2:記憶庫忙碌信號(線) 50a,40a:上拉電阻 Vcc:供應電壓 Tstp:暫停讀取通知期間 Tick:時脈忽略期間 ICK1,ICK2:時脈忽略信號 m1CMDrtry,m2CMDrtry:重複讀取指令 Tcmd_rtry:重複讀取指令期間 T2rd:重複讀取期間 Tint:晶片選取間距 m1pre,m2pre:導引脈衝信號11a, DRAM, 11b, 21, 22, PSRAM1, PSRAM2, 51, 52, 41, 42: Memory modules 13a, 13b, 23, 53, 43: Master control device CS#: Chip Select Signal (Line) SCLK: system clock signal (line) SIO[64:1], SIO[8:1], SIO[16:9]: System input and output signal lines DQSM, DQSM[2:1], DQSM[1], DQSM[2]: Data flash mask signal (line) CTL: Control Signal (Line) 10a, 10b, 20, 50, 40: Electronic devices t1~t21: time point Trd: During a read operation Tcs: During wafer selection Tset: set period LC: Read Latency Count Tclk, Tclk1~Tclk10: System clock cycle Tend: end period Tadr_r: Column address period Tadr_c: row address period mstrb1,mstrb2,m1strb1,m1strb2,m2strb1,m2strb2,m2strb1',m2strb2': read the flash pulse signal mCMDrd: read command ADRr, m1ADRr, m2ADRr: column address ADRc, m1ADRc, m2ADRc: row address DATm: read data synchronously Tcmd: During read command transmission Tadr: During address transfer 25: Memory device Tsdatpr: During synchronization data preparation Tdat_sync: During synchronous data reading DATm1, DATm2: read data synchronously m1CMDrd, m2CMDrd: read command Trdnm: During normal reading S51,S53,S55,S57,S59,S301a,S302a,S303a,S305a,S307a,S101a,S103a,S105a,S107a,S201a,S203a,S301b,S303b,S305b,S307b,S309b,S101b,S10bb,S105bb,S10bb S201b, S203b: Steps Trdrf: Update conflict during read Trfrp: Update conflict notification period Taddwt: extra waiting period drpDATm2: discard data Tdrp2: Data discard period m1CMDrd_sp, m2CMDrd_sp: special read commands m2CMDext: Extend read instruction Tcmdext: Extend read command period 501,511,521,401,421,411: Bidirectional Interface Circuits 501a, 521a, 511a, 401a, 421a, 411a: Output inverter 501b, 521b, 511b, 401b, 421b, 411b: Input inverter BRBBh, BRBBm1, BRBBm2: memory bank busy signal (line) 50a, 40a: Pull-up resistors Vcc: Supply voltage Tstp: Suspend read notification period Tick: During the clock ignore period ICK1,ICK2: Clock ignore signal m1CMDrtry, m2CMDrtry: repeat read command Tcmd_rtry: During repeated read instructions T2rd: During repeated read Tint: Chip selection pitch m1pre, m2pre: pilot pulse signal

第1圖,其係電子裝置內的記憶體模組使用動態隨機存取記憶體DRAM之示意圖。 第2圖,其係電子裝置內的記憶體模組使用虛擬靜態隨機存取記憶體PSRAM之示意圖。 第3A圖,其係主控裝置使用PSRAM記憶體模組進行一般讀取操作的波形圖。 第3B圖,其係主控裝置使用PSRAM記憶體模組進行讀取操作時,記憶體模內部發生更新衝突的波形圖。 第4圖,其係電子裝置包含兩個使用虛擬靜態隨機存取記憶體PSRAM之記憶體模組的示意圖。 第5圖,其係主控裝置對記憶體模組PSRAM1、PSRAM2,以預設資料同步方式進行讀取操作之示意圖。 第6圖,其係根據本發明實施例之電子裝置中,主控裝置對記憶體模組PSRAM1、PSRAM2進行同步讀取操作的流程圖。 第7A圖,其係根據本揭露構想,記憶體模組PSRAM1在發生更新衝突時,以即刻回報模式(mode A)通知主控裝置後,記憶體模組PSRAM1、PSRAM2進行同步讀取操作的流程圖。 第7B圖,其係根據本揭露構想,記憶體模組PSRAM1在發生更新衝突時,以延遲回報模式(mode B)通知主控裝置後,記憶體模組PSRAM1、PSRAM2進行同步讀取操作的流程圖。 第8A圖,其係根據本揭露構想,記憶體模組PSRAM1與主控裝置之間利用資料閃控遮罩信號DQSM搭配即刻回報模式(mode A),進行同步讀取操作的一種實施例的波形圖。 第8B圖,其係根據本揭露構想,記憶體模組PSRAM1與主控裝置之間利用資料閃控遮罩信號DQSM搭配延遲回報模式(mode B),進行同步讀取操作的一種實施例的波形圖。 第9A圖,其係於記憶體模組PSRAM1、PSRAM2與主控裝置之間設置記憶庫忙碌信號線BRBB,且由主控裝置驅動記憶庫忙碌信號BRBB之示意圖。 第9B圖,其係於記憶體模組PSRAM1、PSRAM2與主控裝置之間設置記憶庫忙碌信號線BRBB,且由記憶體模組PSRAM1驅動記憶庫忙碌信號BRBB之示意圖。 第10圖,其係根據本揭露構想,記憶體模組PSRAM1、PSRAM2與主控裝置之間利用記憶庫忙碌信號線BRBB搭配即刻回報模式(mode A),進行同步讀取操作的一種實施例的波形圖。 第11圖,其係根據本揭露構想,記憶體模組PSRAM1以即刻回報模式(mode A)通知主控裝置後,記憶體模組PSRAM1、PSRAM2進行同步讀取操作的另一種實施例的波形圖。 第12A圖,其係記憶體模組PSRAM1、PSRAM2與主控裝置之間利用晶片選取信號CS#作為更新衝突之溝通介面,且晶片選取信號CS#由主控裝置驅動之示意圖。 第12B圖,其係記憶體模組PSRAM1、PSRAM2與主控裝置之間利用晶片選取信號CS#作為更新衝突之溝通介面,且晶片選取信號CS#由記憶體模組PSRAM1驅動之示意圖。 第13圖,其係記憶體模組PSRAM1、PSRAM2與主控裝置之間利用晶片選取信號CS#作為更新衝突之溝通介面,且記憶體模組PSRAM1依據即刻回報模式(mode A)通知主控裝置後,進行同步讀取操作的實施例之波形圖。 第14圖,其係記憶體模組PSRAM1、PSRAM2與主控裝置之間,利用晶片選取信號CS#搭配系統時脈信號SCLK搭配即刻回報模式(mode A)進行同步讀取操作的實施例之波形圖。 第15圖,其係於主控裝置和記憶體模組PSRAM1、PSRAM2間設置時脈忽略信號ICK1、ICK2信號,在記憶體模組PSRAM1發生更新衝突的情況下進行同步讀取操作的實施例之波形圖。 第16圖,其係主控裝置得知記憶體模組PSRAM1發生更新衝突後,透過暫停產生系統時脈信號SCLK而使記憶體模組PSRAM1、PSRAM2進行同步讀取操作之示意圖。 第17圖,其係主控裝置發出重複讀取指令,使記憶體模組PSRAM1、PSRAM2同步進行讀取操作之示意圖。 第18圖,其係記憶體模組PSRAM1、PSRAM2與主控裝置之間利用晶片選取信號CS#搭配系統時脈信號SCLK,依據產生導引脈衝信號m1pre、m2pre之間的時間差,判斷記憶體模組PSRAM1發生更新衝突後,如何進行同步讀取操作的實施例之波形圖。FIG. 1 is a schematic diagram of a memory module in an electronic device using dynamic random access memory (DRAM). FIG. 2 is a schematic diagram of a memory module in an electronic device using a virtual static random access memory PSRAM. FIG. 3A is a waveform diagram of a general read operation performed by the main control device using the PSRAM memory module. FIG. 3B is a waveform diagram of an update conflict occurring inside the memory module when the master control device uses the PSRAM memory module to perform a read operation. FIG. 4 is a schematic diagram of an electronic device including two memory modules using virtual static random access memory PSRAM. FIG. 5 is a schematic diagram of the master control device performing a read operation on the memory modules PSRAM1 and PSRAM2 in a preset data synchronization manner. FIG. 6 is a flowchart of the synchronous read operation performed by the main control device on the memory modules PSRAM1 and PSRAM2 in the electronic device according to the embodiment of the present invention. Fig. 7A shows the flow of the synchronous read operation of the memory modules PSRAM1 and PSRAM2 after the memory module PSRAM1 notifies the master device in the immediate report mode (mode A) when an update conflict occurs according to the concept of the present disclosure picture. FIG. 7B shows the flow of the synchronous read operation of the memory modules PSRAM1 and PSRAM2 after the memory module PSRAM1 notifies the master device in the delayed report mode (mode B) when an update conflict occurs, according to the concept of the present disclosure. picture. Fig. 8A is a waveform of an embodiment of a synchronous read operation between the memory module PSRAM1 and the master device using the data flash mask signal DQSM and the immediate report mode (mode A) according to the concept of the present disclosure picture. FIG. 8B is a waveform of an embodiment of a synchronous read operation using the data flash mask signal DQSM and the delayed return mode (mode B) between the memory module PSRAM1 and the master device according to the concept of the present disclosure picture. FIG. 9A is a schematic diagram of setting a memory bank busy signal line BRBB between the memory modules PSRAM1 and PSRAM2 and the main control device, and the main control device drives the memory bank busy signal BRBB. FIG. 9B is a schematic diagram of setting the memory bank busy signal line BRBB between the memory modules PSRAM1 and PSRAM2 and the main control device, and the memory module PSRAM1 drives the memory bank busy signal BRBB. FIG. 10 is an embodiment of a synchronous read operation using the memory bank busy signal line BRBB and the immediate report mode (mode A) between the memory modules PSRAM1, PSRAM2 and the main control device according to the concept of the present disclosure. Waveform diagram. FIG. 11 is a waveform diagram of another embodiment in which the memory modules PSRAM1 and PSRAM2 perform a synchronous read operation after the memory module PSRAM1 notifies the main control device in the immediate report mode (mode A) according to the concept of the present disclosure. . FIG. 12A is a schematic diagram of the chip selection signal CS# being used as a communication interface for updating conflict between the memory modules PSRAM1, PSRAM2 and the main control device, and the chip selection signal CS# is driven by the main control device. FIG. 12B is a schematic diagram of the chip selection signal CS# being used as a communication interface for updating conflict between the memory modules PSRAM1, PSRAM2 and the master device, and the chip selection signal CS# is driven by the memory module PSRAM1. Fig. 13 shows the chip selection signal CS# as the communication interface of the update conflict between the memory modules PSRAM1, PSRAM2 and the main control device, and the memory module PSRAM1 notifies the main control device according to the immediate report mode (mode A) Then, the waveform diagram of the embodiment of the synchronous read operation is shown. Fig. 14 shows the waveforms of an embodiment in which a synchronous read operation is performed between the memory modules PSRAM1, PSRAM2 and the main control device using the chip select signal CS#, the system clock signal SCLK and the immediate report mode (mode A) picture. FIG. 15 is an embodiment of a synchronous read operation in which the clock ignore signals ICK1 and ICK2 are set between the main control device and the memory modules PSRAM1 and PSRAM2 to perform a synchronous read operation in the case of an update conflict in the memory module PSRAM1. Waveform diagram. FIG. 16 is a schematic diagram of the synchronous read operation of the memory modules PSRAM1 and PSRAM2 by suspending the generation of the system clock signal SCLK after the master control device knows that the memory module PSRAM1 has an update conflict. FIG. 17 is a schematic diagram of the master control device issuing a repeated read command to synchronize the memory modules PSRAM1 and PSRAM2 to perform the read operation. Fig. 18 shows the chip selection signal CS# and the system clock signal SCLK between the memory modules PSRAM1, PSRAM2 and the main control device. According to the time difference between the pilot pulse signals m1pre and m2pre, the memory module is determined. A waveform diagram of an embodiment of how to perform a synchronous read operation after an update conflict occurs in the group PSRAM1.

S51,S53,S55,S57,S59:步驟S51, S53, S55, S57, S59: Steps

Claims (14)

一種記憶體裝置,用以電連接於一主控裝置,其中該主控裝置係於一讀取操作期間內對該記憶體裝置執行一讀取操作,且該記憶體裝置係包含: 一第一記憶體模組,其係於該讀取操作期間產生一更新衝突;以及, 一第二記憶體模組,其中, 該第一記憶體模組與該第二記憶體模組係同時於一讀取指令傳送期間分別接收該主控裝置所傳送的一第一讀取指令與一第二讀取指令; 該第一記憶體模組與該第二記憶體模組係同時於一位址傳送期間分別接收一第一記憶體位址與一第二記憶體位址,其中該讀取指令傳送期間早於該位址傳送期間;以及, 經過一同步資料準備期間後,該第一記憶體模組與該第二記憶體模組係同時於一同步資料讀取期間,分別傳送一第一同步讀取資料與一第二同步讀取資料至該主控裝置,其中該同步資料準備期間係大於一預設讀取延遲。A memory device is electrically connected to a main control device, wherein the main control device performs a read operation on the memory device during a read operation period, and the memory device comprises: a first memory module that generates an update conflict during the read operation; and, a second memory module, wherein, The first memory module and the second memory module simultaneously receive a first read command and a second read command sent by the main control device during a read command transmission period; The first memory module and the second memory module receive a first memory address and a second memory address respectively during an address transfer period, wherein the read command transfer period is earlier than the bit during address transmission; and, After a synchronization data preparation period, the first memory module and the second memory module transmit a first synchronization read data and a second synchronization read data respectively during a synchronization data read period at the same time to the master device, wherein the synchronization data preparation period is greater than a predetermined read delay. 如請求項1所述之記憶體裝置,其中, 該主控裝置通知該第二記憶體模組須以一特殊資料同步方式執行該讀取操作;或 該第一記憶體模組通知該第二記憶體模組須以該特殊資料同步方式執行該讀取操作。The memory device of claim 1, wherein, The master device informs the second memory module that the read operation must be performed in a special data synchronization manner; or The first memory module notifies the second memory module that the read operation must be performed in the special data synchronization mode. 如請求項1所述之記憶體裝置,其中, 該第一記憶體模組係於該讀取指令傳送期間開始前,將該更新衝突的情形回報予該主控裝置;或 該第一記憶體模組係於該位址傳送期間內,將該更新衝突的情形回報予該主控裝置。The memory device of claim 1, wherein, the first memory module reports the update conflict situation to the host device before the read command transmission period begins; or The first memory module reports the update conflict situation to the master device during the address transfer period. 如請求項1所述之記憶體裝置,其中該第一記憶體模組係藉由一晶片選取信號線、一資料閃控遮罩信號線、一專用信號線、一系統時脈信號線、與一時脈忽略信號線其中的一者或其組合,將該更新衝突的情形回報予該主控裝置。The memory device of claim 1, wherein the first memory module is formed by a chip select signal line, a data flash mask signal line, a dedicated signal line, a system clock signal line, and A clock ignores one or a combination of the signal lines, and reports the update conflict situation to the master device. 如請求項1所述之記憶體裝置,其中該第二記憶體模組係於該同步資料準備期間傳送一捨棄資料,其中,該捨棄資料的內容與該第二同步讀取資料的內容相同。The memory device of claim 1, wherein the second memory module transmits a discarded data during the preparation of the synchronized data, wherein the contents of the discarded data are the same as the contents of the second synchronized read data. 如請求項1所述之記憶體裝置,其中, 該同步資料準備期間係小於一更新讀取延遲,其中該讀取操作期間係包含: 同時用於選取該第一記憶體模組與該第二記憶體模組的一晶片選取期間,其中該晶片選取期間係包含一設定期間、該讀取指令傳送期間、該位址傳送期間、該同步資料準備期間與一部分的該同步資料讀取期間。The memory device of claim 1, wherein, The synchronization data preparation period is less than an update read delay, wherein the read operation period includes: A chip selection period for selecting the first memory module and the second memory module at the same time, wherein the chip selection period includes a setting period, the read command transmission period, the address transmission period, the The synchronization data preparation period and a part of the synchronization data reading period. 如請求項1所述之記憶體裝置,其中,該同步資料準備期間係大於一更新讀取延遲,其中該讀取操作期間係包含: 同時用於選取該第一記憶體模組與該第二記憶體模組的一第一晶片選取期間,其中該第一晶片選取期間係包含一設定期間、該讀取指令傳送期間、該位址傳送期間與一部分的該同步資料準備期間; 一晶片選取間距; 同時用於選取該第一記憶體模組與該第二記憶體模組的一第二晶片選取期間,其中該第二晶片選取期間係包含一指令重複傳送期間、另一部分的該同步資料準備期間與一部分的該同步資料讀取期間;以及 一結束期間,其中該結束期間係包含另一部分的該同步資料讀取期間。The memory device of claim 1, wherein the synchronization data preparation period is greater than an update read delay, wherein the read operation period includes: A first chip selection period for selecting the first memory module and the second memory module at the same time, wherein the first chip selection period includes a setting period, the read command transmission period, the address the transmission period and a portion of the synchronization data preparation period; a chip selection pitch; A second chip selection period for selecting the first memory module and the second memory module at the same time, wherein the second chip selection period includes a command repeated transmission period and another part of the synchronization data preparation period with a portion of the synchronous data read period; and An end period, wherein the end period includes another part of the synchronization data reading period. 如請求項7所述之記憶體裝置,其中, 該第一記憶體模組係於該同步資料準備期間傳送一第一捨棄資料,且該第二記憶體模組係於該同步資料準備期間傳送一第二捨棄資料, 其中,該第一捨棄資料的內容與該第一同步讀取資料的內容相同,且該第二捨棄資料的內容與該第二同步讀取資料的內容相同。The memory device of claim 7, wherein, The first memory module transmits a first discard data during the synchronization data preparation period, and the second memory module transmits a second discard data during the synchronization data preparation period, The content of the first discarded data is the same as the content of the first synchronously read data, and the content of the second discarded data is the same as the content of the second synchronously read data. 如請求項8所述之記憶體裝置,其中, 該第一晶片選取期間係包含該讀取指令傳送期間與該位址傳送期間,且 該第二晶片選取期間係包含一指令重複傳送期間、該同步資料準備期間與該同步資料讀取期間。The memory device of claim 8, wherein, The first chip selection period includes the read command transfer period and the address transfer period, and The second chip selection period includes a command repeated transmission period, the synchronization data preparation period and the synchronization data read period. 如請求項1所述之記憶體裝置,其中, 該主控裝置係於該同步資料準備期間判斷該第一記憶體模組產生該更新衝突,且該主控裝置係於該同步資料準備期間內通知該第二記憶體模組須以一特殊資料同步方式執行該讀取操作。The memory device of claim 1, wherein, The master control device determines that the first memory module has the update conflict during the synchronization data preparation period, and the master control device notifies the second memory module that a special data must be used during the synchronization data preparation period The read operation is performed synchronously. 如請求項10所述之記憶體裝置,其中, 該第一記憶體模組係因應該讀取操作而發出一第一導引脈衝信號,且該第二記憶體模組係因應該讀取操作而發出一第二導引脈衝信號,其中, 該主控裝置係根據該第一導引脈衝信號與該第二導引脈衝信號的比較而判斷該第一記憶體模組產生該更新衝突。The memory device of claim 10, wherein, The first memory module sends out a first pilot pulse signal in response to the read operation, and the second memory module sends out a second pilot pulse signal in response to the read operation, wherein, The main control device determines that the update conflict occurs in the first memory module according to the comparison between the first pilot pulse signal and the second pilot pulse signal. 如請求項1所述之記憶體裝置,其中,其中該讀取操作期間係包含該讀取指令傳送期間、該位址傳送期間、該同步資料準備期間與該同步資料讀取期間。The memory device of claim 1, wherein the read operation period includes the read command transmission period, the address transmission period, the synchronization data preparation period and the synchronization data read period. 一種電子裝置,包含: 一記憶體裝置,包含: 一第一記憶體模組,其係於一讀取操作期間產生一更新衝突;以及 一第二記憶體模組;以及 一主控裝置,電連接於該第一記憶體模組與該第二記憶體模組,其中該主控裝置係於該讀取操作期間內對該第一記憶體模組與該第二記憶體模組同時執行一讀取操作,其中, 該第一記憶體模組與該第二記憶體模組係同時於一讀取指令傳送期間同時接收該主控裝置所傳送的一讀取指令; 該第一記憶體模組與該第二記憶體模組係同時於一位址傳送期間分別接收一第一記憶體位址與一第二記憶體位址,其中該讀取指令傳送期間早於該位址傳送期間;以及 經過一同步資料準備期間後,該第一記憶體模組與該第二記憶體模組係同時於一同步資料讀取期間,分別傳送一第一同步讀取資料與一第二同步讀取資料至該主控裝置,其中該同步資料準備期間係大於一預設讀取延遲。An electronic device comprising: a memory device comprising: a first memory module that generates an update conflict during a read operation; and a second memory module; and a main control device electrically connected to the first memory module and the second memory module, wherein the main control device is used for the first memory module and the second memory module during the read operation period The body module performs a read operation at the same time, wherein, The first memory module and the second memory module simultaneously receive a read command sent by the main control device during a read command transmission period; The first memory module and the second memory module receive a first memory address and a second memory address respectively during an address transfer period, wherein the read command transfer period is earlier than the bit during the transmission of the address; and After a synchronization data preparation period, the first memory module and the second memory module transmit a first synchronization read data and a second synchronization read data respectively during a synchronization data read period at the same time to the master device, wherein the synchronization data preparation period is greater than a predetermined read delay. 一種應用於一電子裝置的讀取方法,其中該電子裝置係包含一主控裝置、一第一記憶體模組與一第二記憶體模組,其中該主控裝置係同時於一讀取操作期間內對該第一記憶體模組與該第二記憶體模組同時執行一讀取操作,該第一記憶體模組係於該讀取操作期間產生一更新衝突,且該讀取方法係包含以下步驟: 該第一記憶體模組與該第二記憶體模組係同時於一讀取指令傳送期間分別接收該主控裝置所傳送的一第一讀取指令與一第二讀取指令; 該第一記憶體模組與該第二記憶體模組係同時於一位址傳送期間分別接收一第一記憶體位址與一第二記憶體位址,其中該讀取指令傳送期間早於該位址傳送期間;以及 經過一同步資料準備期間後,該第一記憶體模組與該第二記憶體模組係同時於一同步資料讀取期間,分別傳送一第一同步讀取資料與一第二同步讀取資料至該主控裝置,其中該同步資料準備期間係大於一預設讀取延遲。A reading method applied to an electronic device, wherein the electronic device comprises a main control device, a first memory module and a second memory module, wherein the main control device is simultaneously in a reading operation During the period, a read operation is simultaneously performed on the first memory module and the second memory module, the first memory module generates an update conflict during the read operation, and the read method is Contains the following steps: The first memory module and the second memory module simultaneously receive a first read command and a second read command sent by the main control device during a read command transmission period; The first memory module and the second memory module receive a first memory address and a second memory address respectively during an address transfer period, wherein the read command transfer period is earlier than the bit during the transmission of the address; and After a synchronization data preparation period, the first memory module and the second memory module transmit a first synchronization read data and a second synchronization read data respectively during a synchronization data read period at the same time to the master device, wherein the synchronization data preparation period is greater than a predetermined read delay.
TW109122076A 2020-06-30 2020-06-30 Memory device, electronic device, and associated read method TWI743859B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109122076A TWI743859B (en) 2020-06-30 2020-06-30 Memory device, electronic device, and associated read method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109122076A TWI743859B (en) 2020-06-30 2020-06-30 Memory device, electronic device, and associated read method

Publications (2)

Publication Number Publication Date
TWI743859B TWI743859B (en) 2021-10-21
TW202203042A true TW202203042A (en) 2022-01-16

Family

ID=80782612

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109122076A TWI743859B (en) 2020-06-30 2020-06-30 Memory device, electronic device, and associated read method

Country Status (1)

Country Link
TW (1) TWI743859B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8296526B2 (en) * 2009-06-17 2012-10-23 Mediatek, Inc. Shared memory having multiple access configurations
JP2011141928A (en) * 2010-01-07 2011-07-21 Elpida Memory Inc Semiconductor device and method of controlling the same
US9524242B2 (en) * 2014-01-28 2016-12-20 Stmicroelectronics International N.V. Cache memory system with simultaneous read-write in single cycle
US10719237B2 (en) * 2016-01-11 2020-07-21 Micron Technology, Inc. Apparatuses and methods for concurrently accessing multiple partitions of a non-volatile memory

Also Published As

Publication number Publication date
TWI743859B (en) 2021-10-21

Similar Documents

Publication Publication Date Title
JP5415677B2 (en) Method for synchronizing read timing in a high-speed memory system
CN100472492C (en) Integrated Refresh Memory Buffer
CN101465158B (en) Semiconductor memory, memory system, and memory access control method
US6813251B1 (en) Split Transaction protocol for a bus system
CN1783338B (en) synchronization storage device, operation method thereof, and storage system containing the same
US6792495B1 (en) Transaction scheduling for a bus system
US6421274B1 (en) Semiconductor memory device and reading and writing method thereof
US20120239874A1 (en) Method and system for resolving interoperability of multiple types of dual in-line memory modules
CN1853238B (en) Method and apparatus for implicit DRAM precharge
JP2009535677A (en) I2C clock generation method and system
TW201743220A (en) Memory and method for operating a memory with interruptible command sequence
US20100293343A1 (en) Scheduling based on turnaround event
TWI743859B (en) Memory device, electronic device, and associated read method
US6469940B1 (en) Memory access method and system for writing and reading SDRAM
WO2019141050A1 (en) Refreshing method, apparatus and system, and memory controller
CN113900580B (en) Memory device, electronic device and related reading method
US20060193189A1 (en) Multi-memory chip and data transfer method capable of directly transferring data between internal memory devices
JPH02120960A (en) Method of transferring data and reducing period of data transfer cycle
EP1600980A1 (en) Semiconductor memory device without decreasing performance thereof even if refresh operation or word line changing operation occur during burst operation
TWI766373B (en) One-wire and bi-direction communication circuit and method
KR100438736B1 (en) Memory control apparatus of performing data writing on address line
US7346714B2 (en) Notification of completion of communication with a plurality of data storage areas
US7062593B2 (en) Circuit system and method for data transmission between LPC devices
JP4559318B2 (en) Synchronous memory device, operation method thereof, and memory system
US20260044472A1 (en) Systems and methods for operating a serial peripheral interface (spi) network