TWI833476B - Memory control device and operation method threrof - Google Patents
Memory control device and operation method threrof Download PDFInfo
- Publication number
- TWI833476B TWI833476B TW111146226A TW111146226A TWI833476B TW I833476 B TWI833476 B TW I833476B TW 111146226 A TW111146226 A TW 111146226A TW 111146226 A TW111146226 A TW 111146226A TW I833476 B TWI833476 B TW I833476B
- Authority
- TW
- Taiwan
- Prior art keywords
- instruction
- target
- memory block
- load
- instructions
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 7
- 238000012545 processing Methods 0.000 claims abstract description 71
- 230000004044 response Effects 0.000 claims abstract description 8
- 230000000875 corresponding effect Effects 0.000 claims description 39
- 238000011017 operating method Methods 0.000 claims description 12
- 238000004260 weight control Methods 0.000 claims description 7
- 230000002596 correlated effect Effects 0.000 claims description 5
- 230000007423 decrease Effects 0.000 claims description 4
- 230000003247 decreasing effect Effects 0.000 claims 1
- 230000008685 targeting Effects 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 10
- 238000012937 correction Methods 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000005055 memory storage Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
Images
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
Description
本發明是有關於一種記憶體控制技術,且特別是有關於一種能夠減少指令載入時間的記憶體控制裝置及其操作方法。The present invention relates to a memory control technology, and in particular, to a memory control device capable of reducing instruction loading time and an operating method thereof.
可攜式電子裝置在這幾年來的成長十分迅速,使得消費者對儲存媒體的需求也急速增加。由於可複寫式非揮發性記憶體模組(rewritable non-volatile memory module)(例如,快閃記憶體)具有資料非揮發性、省電、體積小,以及無機械結構等特性,所以非常適合內建於可攜式電子裝置中。Portable electronic devices have grown rapidly in recent years, resulting in a rapid increase in consumer demand for storage media. Since rewriteable non-volatile memory modules (such as flash memory) have the characteristics of non-volatile data, power saving, small size, and no mechanical structure, they are very suitable for internal devices. Built into portable electronic devices.
在習知的快閃記憶體控制器(NAND Flash Controller)中,因成本與控制器裸晶大小的考量,在執行操作時所需要的函數及/或指令大多被儲存在快閃記憶體(如,NAND Flash)(即,本發明的指令記憶體區塊)中。因此,反應於每一次的操作,控制器都需要從快閃記憶體中讀取對應於該次操作的函數及/或指令,這種方式浪費了許多載入時間。In the conventional flash memory controller (NAND Flash Controller), due to cost and controller die size considerations, most of the functions and/or instructions required to perform operations are stored in the flash memory (such as , NAND Flash) (ie, the instruction memory block of the present invention). Therefore, in response to each operation, the controller needs to read the function and/or instruction corresponding to the operation from the flash memory, which wastes a lot of loading time.
有鑑於此,本發明提供一種記憶體控制裝置及其操作方法,可有效減少指令載入時間。In view of this, the present invention provides a memory control device and an operating method thereof, which can effectively reduce the instruction loading time.
本發明提供一種記憶體控制裝置,包括指令記憶體區塊、多個實體記憶體區塊、處理電路、解碼器以及控制器。指令記憶體區塊儲存多個指令。多個實體記憶體區塊分別儲存多個指令中的多個載入指令的其中之一。處理電路耦接於多個實體記憶體區塊。處理電路提供指令位址。解碼器耦接處理電路。解碼器接收指令位址。解碼器判斷指令位置。當指令位址不等於被儲存在指令記憶體區塊中的多個載入指令的多個儲存位址時,解碼器提供控制訊號。控制器耦接於多個實體記憶體區塊以及解碼器。控制器反應於控制訊號以確定出對應於具有最低使用次數的載入指令的目標實體記憶體區塊,並將多個指令中對應於指令位址的目標指令儲存至目標實體記憶體區塊。The invention provides a memory control device, which includes an instruction memory block, a plurality of physical memory blocks, a processing circuit, a decoder and a controller. The instruction memory block stores multiple instructions. The plurality of physical memory blocks respectively store one of the plurality of load instructions among the plurality of instructions. The processing circuit is coupled to multiple physical memory blocks. The processing circuit provides the instruction address. The decoder is coupled to the processing circuit. The decoder receives the instruction address. The decoder determines the instruction location. The decoder provides a control signal when the instruction address is not equal to the storage addresses of the load instructions stored in the instruction memory block. The controller is coupled to multiple physical memory blocks and the decoder. The controller responds to the control signal to determine the target physical memory block corresponding to the load instruction with the lowest number of uses, and stores the target instruction corresponding to the instruction address among the plurality of instructions to the target physical memory block.
本發明提供一種用於記憶體控制裝置的操作方法。記憶體控制裝置包括指令記憶體區塊、多個實體記憶體區塊以及處理電路。指令記憶體儲存多個指令。多個實體記憶體區塊分別儲存多個指令中的多個載入指令的其中之一。操作方法包括:接收來自於處理電路的指令位址,並判斷指令位址;當指令位址不等於被儲存在指令記憶體區塊中的多個載入指令的多個儲存位址時,提供控制訊號;反應於控制訊號以確定出對應於具有最低使用次數的載入指令的目標實體記憶體區塊;以及將多個指令中對應於指令位址的目標指令儲存至目標實體記憶體區塊。The invention provides an operating method for a memory control device. The memory control device includes an instruction memory block, a plurality of physical memory blocks and a processing circuit. The instruction memory stores multiple instructions. The plurality of physical memory blocks respectively stores one of the plurality of load instructions among the plurality of instructions. The operation method includes: receiving an instruction address from the processing circuit and determining the instruction address; when the instruction address is not equal to multiple storage addresses of multiple load instructions stored in the instruction memory block, providing control signal; react to the control signal to determine a target physical memory block corresponding to a load instruction with a minimum number of uses; and store the target instruction corresponding to the instruction address in the plurality of instructions to the target physical memory block .
基於上述,本發明所提供的記憶體控制裝置及其操作方法可藉由設置多個實體記憶體區塊來減少指令載入時間。具體來說,解碼器判斷來自於處理電路的指令位址。當指令位址等於被儲存在指令記憶體區塊的多個載入指令的多個儲存位址時,處理電路即可從實體記憶體區塊獲取目標指令。記憶體控制裝置就不需要透過控制器從指令記憶體區塊中讀取目標指令以節省指令載入時間。另外,當指令位址不等於上述的儲存位址時,控制器可以將從指令記憶體區塊中所讀取的目標指令儲存至目標實體記憶體區塊。如此一來,當此目標指令再次被呼叫時,處理電路即可直接執行目標指令,以達到減少指令載入時間的效果。Based on the above, the memory control device and its operating method provided by the present invention can reduce the instruction loading time by setting up multiple physical memory blocks. Specifically, the decoder determines the instruction address from the processing circuit. When the instruction address is equal to the storage addresses of the load instructions stored in the instruction memory block, the processing circuit can obtain the target instruction from the physical memory block. The memory control device does not need to read the target instructions from the instruction memory block through the controller to save instruction loading time. In addition, when the instruction address is not equal to the above-mentioned storage address, the controller can store the target instruction read from the instruction memory block to the target physical memory block. In this way, when the target instruction is called again, the processing circuit can directly execute the target instruction, thereby reducing the instruction loading time.
為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above-mentioned features and advantages of the present invention more obvious and easy to understand, embodiments are given below and described in detail with reference to the accompanying drawings.
本發明的部份實施例接下來將會配合附圖來詳細描述,以下的描述所引用的元件符號,當不同附圖出現相同的元件符號將視為相同或相似的元件。這些實施例只是本發明的一部份,並未揭示所有本發明的可實施方式。更確切的說,這些實施例只是本發明的專利申請範圍中的範例。Some embodiments of the present invention will be described in detail with reference to the accompanying drawings. The component symbols cited in the following description will be regarded as the same or similar components when the same component symbols appear in different drawings. These embodiments are only part of the present invention and do not disclose all possible implementations of the present invention. Rather, these embodiments are only examples within the scope of the patent application of the invention.
請參考圖1,圖1是依據本發明一實施例所繪示的記憶體儲存裝置的示意圖。在本實施例中,記憶體控制裝置100包括指令記憶體區塊110、實體記憶體區塊121~123、處理電路130、解碼器140以及控制器150。指令記憶體區塊110儲存多個指令。實體記憶體區塊121~123分別儲存多個指令中的多個載入所述多個指令的其中之一。舉例來說,所述多個指令包括指令CMD_A、CMD_B、CMD_C。實體記憶體區塊121儲存載入指令CMD_A。實體記憶體區塊122儲存載入指令CMD_B。此外,實體記憶體區塊123儲存載入指令CMD_C。為了便於說明,本實施例以3個實體記憶體區塊121~123為例。本發明的實體記憶體區塊的數量可以是多個。實體記憶體區塊的數量可依照實際設計來決定需求自行設定。在本實施例中,指令記憶體區塊110以及實體記憶體區塊121~123分別是由本領域技術人員所熟知的記憶體元件來實現。Please refer to FIG. 1 , which is a schematic diagram of a memory storage device according to an embodiment of the present invention. In this embodiment, the
在本實施例中,處理電路130執行目標指令TAR。處理電路130例如是中央處理單元(central processing unit,CPU),或是其他可程式化之一般用途或特殊用途的微控制單元(micro control unit,MCU)、微處理器(microprocessor)、數位信號處理器(digital signal processor,DSP)、可程式化控制器、特殊應用積體電路(application specific integrated circuit,ASIC)、圖形處理器(graphics processing unit,GPU)、影像訊號處理器(image signal processor,ISP)、影像處理單元(image processing unit,IPU)、算數邏輯單元(arithmetic logic unit,ALU)、複雜可程式邏輯裝置(complex programmable logic device,CPLD)、現場可程式化邏輯閘陣列(field programmable gate array,FPGA)或其他類似元件或上述元件的組合。處理電路130耦接於實體記憶體區塊121~123。處理電路130提供目標指令TAR的指令位址ADDR。In this embodiment, the
在本實施例中,解碼器140耦接於處理電路130。解碼器140接收目標指令TAR的指令位址ADDR。並且,解碼器140判斷指令位址ADDR。當指令位址ADDR不等於被儲存在實體記憶體區塊121~123中的載入指令CMD_A、CMD_B、CMD_C的儲存位址時,解碼器140提供控制訊號CON至控制器150。控制器150耦接於實體記憶體區塊121~123以及解碼器140。控制器150反應於來自於解碼器140的控制訊號CON以確定出具有最低使用次數的載入指令,並確定出對應於具有最低使用次數的載入指令目標的實體記憶體區塊。此外,控制器150將多個指令中對應於指令位址ADDR的目標指令TAR儲存至目標實體記憶體區塊。舉例來說,控制器150在接收到控制訊號CON後會確認實體記憶體區塊121~123的使用次數。控制器150選出具有最低使用次數的實體記憶體區塊122作為目標實體記憶體區塊。並且,控制器150將對應於指令位址ADDR的目標指令TAR儲存至實體記憶體區塊122(即,目標實體記憶體區塊)。In this embodiment, the
在此值得一提的是,當目標指令TAR的指令位址ADDR等於被儲存在實體記憶體區塊121~123中的載入指令CMD_A、CMD_B、CMD_C的多個儲存位址的其中之一時,處理電路130可從實體記憶體區塊121~123當中的目標實體記憶體區塊來獲取目標指令TAR。如此一來,記憶體控制裝置就不需要透過控制器從指令記憶體區塊中讀取目標指令以節省指令載入時間。It is worth mentioning here that when the instruction address ADDR of the target instruction TAR is equal to one of the multiple storage addresses of the load instructions CMD_A, CMD_B, and CMD_C stored in the
圖2是依據本發明一實施例所繪示的權重值計算方法的示意圖。請參考圖1與圖2。在本實施例中,解碼器140依據載入指令CMD_A的使用次數來決定對應於載入指令CMD_A的權重值WA。解碼器140依據載入指令CMD_B的使用次數來決定對應於載入指令CMD_B的權重值WB。此外,解碼器140依據載入指令CMD_C的使用次數來決定對應於載入指令CMD_C的權重值WC。在本實施例中,權重值WA與載入指令CMD_A的使用次數呈正相關。換言之,載入指令CMD_A被使用越多,權重值WA越高。權重值WB與載入指令CMD_B的使用次數呈正相關。權重值WC與載入指令CMD_C的使用次數呈正相關。因此,具有最低權重值的載入指令是具有最低使用次數的載入指令。以本實施例為例,控制器150反應於控制訊號CON以確定出對應於具有最低權重值WB的載入指令CMD_B的目標實體記憶體區塊(即,實體記憶體區塊122)。FIG. 2 is a schematic diagram of a weight value calculation method according to an embodiment of the present invention. Please refer to Figure 1 and Figure 2. In this embodiment, the
舉例來說明,如圖2的上部所示,權重值WA、權重值WB以及權重值WC具有相同的初始值(例如是“5”)。當載入指令CMD_C被呼叫時,如圖2的下部所示,解碼器140增加載入指令CMD_C的權重值WC(增加為“6”),並降低載入指令CMD_A的權重值WA(降低為“4”)與載入指令CMD_B的權重值WB(降低為“4”)。接下來,當載入指令CMD_A被呼叫時,解碼器140增加權重值WA(增加為“5”),並降低載入指令CMD_B的權重值WB(降低為“3”)與載入指令CMD_C的權重值WC(降低為“5”)。因此,控制器150會選擇具有最低權重值的載入指令CMD_B的實體記憶體區塊122作為目標實體記憶體區塊。For example, as shown in the upper part of FIG. 2 , the weight value WA, the weight value WB, and the weight value WC have the same initial value (for example, “5”). When the load command CMD_C is called, as shown in the lower part of FIG. 2 , the
另舉例來說明,當載入指令CMD_C被呼叫時,如圖2的下部所示,解碼器140增加載入指令CMD_C的權重值WC(增加為“6”),並降低載入指令CMD_A的權重值WA(降低為“4”)與載入指令CMD_B的權重值WB(降低為“4”)。載入指令CMD_A以及載入指令CMD_B皆具有最低權重值。控制器150反應於控制訊號CON以確定出具有最低權重值的載入指令CMD_A以及載入指令CMD_B當中最早被載入的載入指令。控制器150將對應於最早被載入的載入指令的實體記憶體區塊作為目標實體記憶體區塊。進一步說明,由於每個指令都具有一定的生命週期,故當有兩個以上具有最低權重值的載入指令(即本實施例中的載入指令CMD_A與載入指令CMD_B)時,控制器150會選擇具有最早被載入的載入指令CMD_B的實體記憶體區塊122作為目標實體記憶體區塊。For another example, when the load command CMD_C is called, as shown in the lower part of FIG. 2 , the
圖3是依據本發明一實施例所繪示的處理電路、解碼器以及控制器的示意圖。請參考圖1與圖3。在本實施例中,位址暫存器3421~3423分別儲存載入指令CMD_A~CMD_C的儲存位址ADDR_A~ADDR_C。舉例來說,位址暫存器3421儲存載入指令CMD_A的儲存位址ADDR_A。位址暫存器3422儲存載入指令CMD_B的儲存位址ADDR_B。位址暫存器3423儲存載入指令CMD_C的儲存位址ADDR_C。判斷電路341耦接於位址暫存器3421~3423、控制器350以及處理電路330。判斷電路341判斷指令位址ADDR是否等於儲存位址ADDR_A~ADDR_C的其中之一。當指令位址ADDR不等於儲存位址ADDR_A~ADDR_C時,判斷電路341提供控制訊號CON至控制器350,並提供中斷訊號Sx1至處理電路330。在另一方面,當指令位址ADDR等於儲存位址ADDR_A~ADDR_C的其中之一,判斷電路341則停止提供控制訊號CON。FIG. 3 is a schematic diagram of a processing circuit, a decoder and a controller according to an embodiment of the present invention. Please refer to Figure 1 and Figure 3. In this embodiment, the address registers 3421 ~ 3423 respectively store the storage addresses ADDR_A ~ ADDR_C of the load commands CMD_A ~ CMD_C. For example, the
具體來說,當指令位址ADDR不等於儲存位址ADDR_A~ADDR_C時,判斷電路341輸出中斷訊號Sx1至處理電路330,以中斷處理電路330。當指令位址ADDR不等於儲存位址ADDR_A~ADDR_C時,判斷電路341還輸出控制訊號CON至控制器350。因此,控制器350確定出目標實體記憶體區塊,並將目標指令TAR從指令記憶體區塊110載入至目標實體記憶體區塊。Specifically, when the instruction address ADDR is not equal to the storage addresses ADDR_A~ADDR_C, the
在控制器350將目標指令TAR從指令記憶體區塊110載入至目標實體記憶體區塊的步驟中,控制器350會反應於控制訊號CON對目標指令TAR進行檢查,以判斷目標指令TAR是否發生錯誤。舉例來說,當控制器350從指令記憶體區塊110中載入目標指令TAR時,控制器350會同時讀取對應於目標指令TAR的錯誤更正碼(Error Correcting Code, ECC)及/或錯誤檢查碼(Error Detecting Code, EDC)。並且,控制器350會依據錯誤更正碼及/或錯誤檢查碼來對目標指令TAR執行錯誤檢查與校正操作。In the step of the
當控制器350判斷目標指令TAR沒有發生錯誤時,控制器350解除對處理單元330的中斷訊號Sx1。處理單元330即可從目標實體記憶體區塊獲取目標指令TAR,並執行目標指令TAR。When the
在另一方面,當控制器350判斷目標指令TAR發生錯誤時,控制器350提供中斷訊號Sx2至處理電路330。處理電路330反應於中斷訊號Sx2停止執行目標指令TAR。On the other hand, when the
圖4是依據本發明一實施例所繪示的處理電路、解碼器以及控制器的示意圖。請參考圖1、圖2與圖4。在本實施例中,判斷電路441包括比較電路4411以及權重控制電路4412。比較電路4411耦接於位址暫存器4421~4423以及處理電路430。比較電路4411依據指令位址ADDR以及儲存位址ADDR_A~ADDR_C來產生比較結果CPR。接下來,比較電路4411依據比較結果CPR來提供中斷訊號Sx1至處理電路430。權重控制電路4412耦接於比較電路4411、控制器450以及處理電路430。權重控制電路4412依據指令位址ADDR來改變載入指令CMD_A~CMD_C的權重值WA~WC。並且,權重控制電路4412依據中斷訊號Sx1來提供控制訊號CON至控制器450。控制訊號CON包括權重值WA~WC的權重訊息。FIG. 4 is a schematic diagram of a processing circuit, a decoder and a controller according to an embodiment of the present invention. Please refer to Figure 1, Figure 2 and Figure 4. In this embodiment, the
具體來說,當比較電路4411產生控制訊號Sx1時,即代表指令位址ADDR不等於儲存位址ADDR_A~ADDR_C。因此,權重控制電路4412會輸出控制訊號CON至控制器450。控制器450依據控制訊號CON中的權重訊息來決定出目標實體記憶體區塊,並將對應於指令位址ADDR的目標指令TAR從指令記憶體區塊110載入至目標實體記憶體區塊。Specifically, when the
並且,控制器450會反應於控制訊號CON對目標指令TAR進行檢查,以判斷目標指令TAR是否發生錯誤。當目標指令TAR沒有發生錯誤時,控制器450會解除對處理電路430所輸出的中斷訊號Sx1。如此一來,處理電路430即可開始執行目標指令TAR。In addition, the
反之,當目標指令TAR發生錯誤時,控制器450會輸出中斷訊號Sx2至處理電路430。處理電路430反應於中斷訊號Sx2進行校正操作流程。處理電路430反應於中斷訊號Sx2將對應於目標指令TAR的備份指令寫入至指令記憶體區塊110中對應於目標指令TAR的位址。具體來說,處理電路430將備份指令寫入至指令記憶體區塊110中,以替換指令記憶體區塊110中發生錯誤的目標指令TAR。之後,處理電路430可解除中斷訊號Sx2。如此一來,控制器450可重新載入目標指令TAR,並再次確認對應於目標指令TAR的錯誤更正碼及/或錯誤檢查碼。當控制器450判斷目標指令TAR沒有發生錯誤時,控制器450解除對處理電路430的中斷訊號Sx1。處理電路430即可從目標實體記憶體區塊獲取目標指令TAR,並執行目標指令TAR。On the contrary, when an error occurs in the target instruction TAR, the
另外,當指令位址ADDR等於儲存位址ADDR_A~ADDR_C的其中之一時,這代表目標指令TAR被儲存在實體記憶體區塊121~123的其中之一。舉例來說,若目標指令TAR的指令位址ADDR等於實體記憶體區塊121中的儲存位址ADDR_A,解碼器440就不需要輸出中斷訊號Sx1與控制訊號CON至處理電路430與控制器450。處理電路430可直接從實體記憶體區塊121獲取目標指令TAR,並開始執行目標指令TAR。In addition, when the instruction address ADDR is equal to one of the storage addresses ADDR_A~ADDR_C, it means that the target instruction TAR is stored in one of the physical memory blocks 121~123. For example, if the instruction address ADDR of the target instruction TAR is equal to the storage address ADDR_A in the
圖5是依據本發明一實施例所繪示的記憶體控制裝置的示意圖。請參照圖5。在本實施例中,記憶體控制裝置500包括指令記憶體區塊510、實體記憶體區塊521~523、處理電路530、解碼器540、控制器550以及查找表560。查找表560記錄多個指令以及多個指令在指令記憶體區塊510中的多個位址。在本實施例中,在本實施例中,當指令位址ADDR不等於儲存位址ADDR_A~ADDR_B時,編碼器540分別輸出中斷訊號Sx1與控制訊號CON至處理電路530與控制器550。FIG. 5 is a schematic diagram of a memory control device according to an embodiment of the present invention. Please refer to Figure 5. In this embodiment, the
控制器550反應於控制訊號CON以確定出對應於具有最低使用次數的載入指令CMD_B的目標實體記憶體區塊(即,實體記憶體區塊522)。在本實施例中,控制器550從查找表560中確定出對應於指令位址ADDR的目標指令TAR。具體來說,由於查找表560中記載著指令記憶體區塊510中的多個指令及其對應的多個位址。因此,控制器550可藉由查找表560獲取與指令位址ADDR對應的目標指令TAR,並且將目標指令TAR從指令記憶體區塊510載入至目標實體記憶體區塊。The
此外,控制器550亦可反應於控制訊號CON對目標指令TAR進行檢查,以判斷目標指令TAR是否發生錯誤。若目標指令TAR沒有發生錯誤,控制器550解除中斷訊號Sx1;若目標指令TAR發生錯誤,控制器550提供中斷訊號Sx2至處理電路530。In addition, the
處理電路530反應於中斷訊號Sx2將對應於目標指令TAR的備份指令TAR’至指令記憶體區塊510中對應於目標指令TAR的位址。The
圖6是依據本發明一實施例所繪示的記憶體控制裝置的操作方法的流程圖。本實施例的操作方法可由圖1的記憶體控制裝置100執行。請參照圖1與圖6。首先,在步驟S610中,解碼器140接收來自於處理電路130的指令位址ADDR,並判斷指令位址ADDR。在步驟S620中,當指令位址ADDR不等於被儲存在指令記憶體區塊110中的多個儲存位址時,解碼器140提供控制訊號CON至控制器150。接下來,在步驟S630中,控制器150反應於控制訊號CON以確定出對應於具有最低使用次數的載入指令的目標實體記憶體區塊。最後,在步驟S640中,控制器150將多個指令中對應於指令位址ADDR的目標指令TAR儲存至目標實體記憶體區塊。步驟S610~S640的實施細節已經在圖1至圖5的多個實施例中清楚說明,故不在此重述。FIG. 6 is a flowchart of an operating method of a memory control device according to an embodiment of the present invention. The operation method of this embodiment can be executed by the
綜上所述,本發明所提供的記憶體控制裝置及其操作方法可藉由設置多個實體記憶體區塊來減少指令載入時間。具體來說,解碼器判斷來自於處理電路的指令位址。當指令位址等於被儲存在指令記憶體區塊的多個載入指令的多個儲存位址時,處理電路即可從實體記憶體區塊獲取目標指令。記憶體控制裝置就不需要透過控制器從指令記憶體區塊中讀取目標指令以節省指令載入時間。另外,當指令位址不等於上述的儲存位址時,控制器可以將從指令記憶體區塊中所讀取的目標指令儲存至目標實體記憶體區塊。如此一來,當此目標指令再次被呼叫時,處理電路即可直接執行目標指令,以達到減少指令載入時間的效果。To sum up, the memory control device and its operating method provided by the present invention can reduce the instruction loading time by setting up multiple physical memory blocks. Specifically, the decoder determines the instruction address from the processing circuit. When the instruction address is equal to the storage addresses of the load instructions stored in the instruction memory block, the processing circuit can obtain the target instruction from the physical memory block. The memory control device does not need to read the target instructions from the instruction memory block through the controller to save instruction loading time. In addition, when the instruction address is not equal to the above-mentioned storage address, the controller can store the target instruction read from the instruction memory block to the target physical memory block. In this way, when the target instruction is called again, the processing circuit can directly execute the target instruction, thereby reducing the instruction loading time.
雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed above through embodiments, they are not intended to limit the present invention. Anyone with ordinary knowledge in the technical field may make some modifications 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 appended patent application scope.
100、500:記憶體控制裝置
110、510:指令記憶體區塊
121~123、521~523:實體記憶體區塊
130、330、430、530:處理電路
140、340、440、540:解碼器
150、350、450、550:控制器
341、441:判斷電路
3421~3423、4421~4423:位址暫存器
4411:比較電路
4412:權重控制電路
560:查找表
ADDR:指令位址
ADDR_A、ADDR_B、ADDR_C:儲存位址
CMD_A、CMD_B、CMD_C:載入指令
CON:控制訊號
CPR:比較結果
TAR:目標指令
TAR’:備份指令
S610、S620、S630、S640:步驟
Sx1、Sx2:中斷訊號
WA、WB、WC:權重值
100, 500:
圖1是依據本發明一實施例所繪示的記憶體儲存裝置的示意圖。 圖2是依據本發明一實施例所繪示的權重值計算方法的示意圖。 圖3是依據本發明一實施例所繪示的處理電路、解碼器以及控制器的示意圖。 圖4是依據本發明一實施例所繪示的處理電路、解碼器以及控制器的示意圖。 圖5是依據本發明一實施例所繪示的記憶體控制裝置的示意圖。 圖6是依據本發明一實施例所繪示的記憶體控制裝置的操作方法的流程圖。 FIG. 1 is a schematic diagram of a memory storage device according to an embodiment of the present invention. FIG. 2 is a schematic diagram of a weight value calculation method according to an embodiment of the present invention. FIG. 3 is a schematic diagram of a processing circuit, a decoder and a controller according to an embodiment of the present invention. FIG. 4 is a schematic diagram of a processing circuit, a decoder and a controller according to an embodiment of the present invention. FIG. 5 is a schematic diagram of a memory control device according to an embodiment of the present invention. FIG. 6 is a flowchart of an operating method of a memory control device according to an embodiment of the present invention.
100:記憶體控制裝置 100:Memory control device
110:指令記憶體區塊 110: Instruction memory block
121~123:實體記憶體區塊 121~123: Physical memory block
130:處理電路 130: Processing circuit
140:解碼器 140:Decoder
150:控制器 150:Controller
ADDR:指令位址 ADDR: instruction address
CMD_A、CMD_B、CMD_C:載入指令 CMD_A, CMD_B, CMD_C: loading instructions
CON:控制訊號 CON: control signal
TAR:目標指令 TAR: target command
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW111146226A TWI833476B (en) | 2022-12-01 | 2022-12-01 | Memory control device and operation method threrof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW111146226A TWI833476B (en) | 2022-12-01 | 2022-12-01 | Memory control device and operation method threrof |
Publications (1)
Publication Number | Publication Date |
---|---|
TWI833476B true TWI833476B (en) | 2024-02-21 |
Family
ID=90824966
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW111146226A TWI833476B (en) | 2022-12-01 | 2022-12-01 | Memory control device and operation method threrof |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI833476B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080016306A1 (en) * | 2006-01-09 | 2008-01-17 | Byung-Jun Min | Semiconductor memory device having ram and rom areas |
US20180114565A1 (en) * | 2016-10-20 | 2018-04-26 | SK Hynix Inc. | Refresh timing generation circuit, refresh control circuit and semiconductor apparatus including the same |
US20180374524A1 (en) * | 2017-06-26 | 2018-12-27 | SK Hynix Inc. | Address control circuit and semiconductor device including the same |
US20200294563A1 (en) * | 2019-03-12 | 2020-09-17 | SK Hynix Inc. | Semiconductor apparatus |
US20200319960A1 (en) * | 2019-04-03 | 2020-10-08 | Samsung Electronics Co., Ltd. | Semiconductor memory device, and memory system having the same |
-
2022
- 2022-12-01 TW TW111146226A patent/TWI833476B/en active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080016306A1 (en) * | 2006-01-09 | 2008-01-17 | Byung-Jun Min | Semiconductor memory device having ram and rom areas |
US20180114565A1 (en) * | 2016-10-20 | 2018-04-26 | SK Hynix Inc. | Refresh timing generation circuit, refresh control circuit and semiconductor apparatus including the same |
US20180374524A1 (en) * | 2017-06-26 | 2018-12-27 | SK Hynix Inc. | Address control circuit and semiconductor device including the same |
US20200294563A1 (en) * | 2019-03-12 | 2020-09-17 | SK Hynix Inc. | Semiconductor apparatus |
US20200319960A1 (en) * | 2019-04-03 | 2020-10-08 | Samsung Electronics Co., Ltd. | Semiconductor memory device, and memory system having the same |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5232018B2 (en) | Error processing method and error processing apparatus | |
JP5378360B2 (en) | Automatic detection of memory page size | |
JP5464528B2 (en) | Method and apparatus for performing simultaneous read and write memory operations | |
JP2014093092A (en) | Memory module, memory system including the same, and method of driving the same | |
US20080126776A1 (en) | Electronic apparatus | |
US20120079346A1 (en) | Simulated error causing apparatus | |
JP2009059422A (en) | Semiconductor storage device and control method thereof | |
JP2006190425A (en) | Semiconductor memory device | |
JP2011081776A (en) | Nonvolatile memory apparatus, memory controller, and memory system | |
JP2008139908A (en) | Memory control device, computer system and data reproducing and recording device | |
US7689895B2 (en) | On-the fly error checking and correction CODEC system and method for supporting non-volatile memory | |
JP2010500699A (en) | Allowable bit errors for each sector in the memory device | |
JP2016045958A (en) | Memory module and method of operating the same | |
TWI606333B (en) | Data processing method, memory storage device and memory control circuit unit | |
TWI756971B (en) | Memory device and read method thereof | |
JP2012103772A (en) | Processor and image processing system using the same | |
TW202314525A (en) | Memory polling method, memory storage device and memory control circuit unit | |
TWI833476B (en) | Memory control device and operation method threrof | |
JP2010181990A (en) | Data processor | |
JP2011257966A (en) | Cache device and information processor | |
TWI672593B (en) | Memory management method, memory storage device and memory control circuit unit | |
US9916091B2 (en) | Memory system architecture | |
CN114333968A (en) | Memory control method, memory controller and electronic device | |
US8074153B2 (en) | Error correction devices and correction methods | |
CN118131977A (en) | Memory control device and operation method thereof |