[go: up one dir, main page]

TWI865275B - Logical address transformation device and method - Google Patents

Logical address transformation device and method Download PDF

Info

Publication number
TWI865275B
TWI865275B TW112151423A TW112151423A TWI865275B TW I865275 B TWI865275 B TW I865275B TW 112151423 A TW112151423 A TW 112151423A TW 112151423 A TW112151423 A TW 112151423A TW I865275 B TWI865275 B TW I865275B
Authority
TW
Taiwan
Prior art keywords
address
row
logical address
conversion
rule
Prior art date
Application number
TW112151423A
Other languages
Chinese (zh)
Other versions
TW202437118A (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 TW112151423A priority Critical patent/TWI865275B/en
Publication of TW202437118A publication Critical patent/TW202437118A/en
Application granted granted Critical
Publication of TWI865275B publication Critical patent/TWI865275B/en

Links

Images

Landscapes

  • Image Input (AREA)

Abstract

A transformation method comprises the following steps. A logical address is received, wherein the logical address is for accessing a memory unit of a memory device. A vertical coordinate is generated according to the logical address and a row rule. A horizontal coordinate is generated according to the logical address and a column rule. A physical address is generated according to the vertical coordinate and the horizontal coordinate, wherein the physical address indicates a position of the memory unit in a physical space of the memory device.

Description

邏輯位址轉換裝置及方法Logical address conversion device and method

本揭露有關於一種位址轉換裝置及方法,特別是有關於一種將儲存裝置之邏輯位址轉換為物理位址之裝置及方法。The present disclosure relates to an address conversion device and method, and more particularly to a device and method for converting a logical address of a storage device into a physical address.

為了要檢測儲存裝置(例如:動態隨機存取記憶體(dynamic random access memory,DRAM))中故障的顆粒位置,需要將電腦檢測出無法存取或存取錯誤的邏輯位址轉換為故障顆粒於儲存裝置的物理空間中的物理位址,以利後續工程師對故障顆粒進行檢測,並進一步分析故障原因。In order to detect the location of a faulty particle in a storage device (e.g., dynamic random access memory (DRAM)), it is necessary to convert the logical address detected by the computer as inaccessible or accessed incorrectly into the physical address of the faulty particle in the physical space of the storage device, so that subsequent engineers can detect the faulty particle and further analyze the cause of the failure.

然而各個儲存裝置產品的規格不同,將邏輯位址轉換為物理位址的規則亦不相同,且需要參考各個產品的架構,以儲存裝置產品的測試機台進行轉換,操作複雜、使用不便,並且由於測試機台並非設計用於轉換邏輯位址,容易產生映射錯誤的情形。However, the specifications of various storage device products are different, and the rules for converting logical addresses to physical addresses are also different. It is necessary to refer to the architecture of each product and use the storage device product test machine to perform the conversion. The operation is complicated and inconvenient to use. In addition, since the test machine is not designed for converting logical addresses, mapping errors are prone to occur.

本揭露提供一種轉換方法包含以下步驟:接收第一邏輯位址,第一邏輯位址用於存取儲存裝置中的第一儲存單元;根據第一邏輯位址及列規則,產生第一垂直座標;根據第一邏輯位址及行規則,產生第一水平座標;以及根據第一垂直座標及第一水平座標,產生第一物理位址,其中第一物理位址用以指示第一儲存單元在儲存裝置的物理空間中之第一位置。The present disclosure provides a conversion method comprising the following steps: receiving a first logical address, the first logical address being used to access a first storage unit in a storage device; generating a first vertical coordinate according to the first logical address and a row rule; generating a first horizontal coordinate according to the first logical address and a line rule; and generating a first physical address according to the first vertical coordinate and the first horizontal coordinate, wherein the first physical address is used to indicate a first position of the first storage unit in the physical space of the storage device.

本揭露還提供一種轉換裝置,該轉換裝置包含一處理器。該處理器用以執行以下運作:接收第一邏輯位址,第一邏輯位址用於存取儲存裝置中的第一儲存單元;根據第一邏輯位址及列規則,產生第一垂直座標;根據第一邏輯位址及行規則,產生第一水平座標;以及根據第一垂直座標及第一水平座標,產生第一物理位址,其中第一物理位址用以指示第一儲存單元在儲存裝置的物理空間中之第一位置。The present disclosure also provides a conversion device, which includes a processor. The processor is used to perform the following operations: receiving a first logical address, the first logical address is used to access a first storage unit in a storage device; generating a first vertical coordinate according to the first logical address and a row rule; generating a first horizontal coordinate according to the first logical address and a row rule; and generating a first physical address according to the first vertical coordinate and the first horizontal coordinate, wherein the first physical address is used to indicate a first position of the first storage unit in a physical space of the storage device.

本揭露還提供一種非暫態電腦可讀取儲存媒體,其具有儲存於其上的至少一指令,當一處理單元執行該些指令時,該些指令執行上述之該轉換方法。The present disclosure also provides a non-transitory computer-readable storage medium having at least one instruction stored thereon. When a processing unit executes the instructions, the instructions execute the above-mentioned conversion method.

應該理解的是,前述的一般性描述和下列具體說明僅僅是示例性和解釋性的,並旨在提供所要求的本揭露的進一步說明。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are intended to provide further explanation of the disclosure as claimed.

為了使本揭露之敘述更加詳盡與完備,可參照所附之圖式及以下所述各種實施例,圖式中相同之號碼代表相同或相似之元件。In order to make the description of the present disclosure more detailed and complete, reference may be made to the attached drawings and various embodiments described below, in which the same numbers in the drawings represent the same or similar elements.

請參考第1圖,其為本揭露部分實施例中轉換裝置12及顯示裝置14的示意圖。如第1圖所示,轉換裝置12包含處理器122,並且耦接顯示裝置14。轉換裝置12用以將一儲存裝置之邏輯位址轉換為物理位址,並且根據物理位址產生包含標記之標記圖片。Please refer to FIG. 1, which is a schematic diagram of a conversion device 12 and a display device 14 in some embodiments of the present disclosure. As shown in FIG. 1, the conversion device 12 includes a processor 122 and is coupled to the display device 14. The conversion device 12 is used to convert a logical address of a storage device into a physical address, and generate a mark image including a mark according to the physical address.

該儲存裝置包含複數個儲存單元,邏輯位址用於存取該些儲存單元其中之一,物理位址用以指示該些儲存單元其中之一在儲存單元中的物理位置,即,在儲存單元內的物理空間中,該些儲存單元其中之一所設置的位置。在一實施例中,該儲存裝置可包含動態隨機存取記憶體(dynamic random access memory,DRAM)。The storage device includes a plurality of storage units, the logical address is used to access one of the storage units, and the physical address is used to indicate the physical location of one of the storage units in the storage unit, that is, the location where one of the storage units is set in the physical space within the storage unit. In one embodiment, the storage device may include a dynamic random access memory (DRAM).

在一些實施例中,轉換裝置12可包含一個人電腦,該個人電腦運行Windows作業系統。在一些實施例中,處理器 122可包含中央處理單元(central processing unit,CPU)、多重處理器、分散式處理系統、特殊應用積體電路(application specific integrated circuit,ASIC)和/或合適的運算單元。In some embodiments, the conversion device 12 may include a personal computer that runs a Windows operating system. In some embodiments, the processor 122 may include a central processing unit (CPU), a multiprocessor, a distributed processing system, an application specific integrated circuit (ASIC) and/or a suitable computing unit.

顯示裝置14用以顯示自轉換裝置12接收之影像,例如包含物理位置標記之標記圖片。在一些實施例中,顯示裝置14可包含顯示螢幕。The display device 14 is used to display the image received from the conversion device 12, such as a marked picture including a physical location mark. In some embodiments, the display device 14 may include a display screen.

請參考第2圖,其為本揭露部分實施例中轉換方法20的示意圖。轉換方法20包含步驟S202、S204、S206、S208、S210、S212、S214及S216,並且用以將該儲存裝置之邏輯位址轉換為物理位址,並且根據物理位址產生包含標記之標記圖片。在一些實施例中,轉換方法20可被第1圖所繪示之轉換裝置12執行。Please refer to FIG. 2, which is a schematic diagram of a conversion method 20 in some embodiments of the present disclosure. The conversion method 20 includes steps S202, S204, S206, S208, S210, S212, S214 and S216, and is used to convert the logical address of the storage device into a physical address, and generate a label image including a label according to the physical address. In some embodiments, the conversion method 20 can be executed by the conversion device 12 shown in FIG. 1.

在步驟S202中,轉換方法20產生圖面,其中圖面用以表示儲存裝置的物理空間。在一實施例中,轉換方法20根據圖面規則產生圖面,其中圖面規則包含不同的儲存裝置種類各者的儲存單元在物理空間中的分布。在一實施例中,轉換方法20透過Excel程式產生圖面,其中以工作表中的儲存格示意至少一儲存單元。In step S202, the conversion method 20 generates a drawing, wherein the drawing is used to represent the physical space of the storage device. In one embodiment, the conversion method 20 generates the drawing according to a drawing rule, wherein the drawing rule includes the distribution of storage units of different storage device types in the physical space. In one embodiment, the conversion method 20 generates the drawing through an Excel program, wherein at least one storage unit is represented by a cell in a worksheet.

在步驟S204中,轉換方法20接收邏輯位址。在一些實施例中,邏輯位址可以文字檔案的形式被接收。在一些實施例中,邏輯位址為csv檔案、txt檔案、xls檔案、xlsx檔案或其組合。In step S204, the conversion method 20 receives a logical address. In some embodiments, the logical address can be received in the form of a text file. In some embodiments, the logical address is a csv file, a txt file, an xls file, an xlsx file, or a combination thereof.

在一實施例中,轉換方法20所接收的邏輯位址可以是對應儲存裝置中無法被存取的儲存單元。惟轉換方法20所接收邏輯位址並不以上述無法讀取的儲存單元為限,在另一實施例中,轉換方法20所接收的邏輯位址可以是儲存裝置中被讀取頻率最高的儲存單元。In one embodiment, the logical address received by the conversion method 20 may be a storage unit in the corresponding storage device that cannot be accessed. However, the logical address received by the conversion method 20 is not limited to the aforementioned storage unit that cannot be read. In another embodiment, the logical address received by the conversion method 20 may be a storage unit in the storage device that is read most frequently.

在步驟S206中,轉換方法20轉換邏輯位址之格式。在一些實施例中,邏輯位址具有資料位元寬度格式,資料位元寬度格式為四位元寬度格式、八位元寬度格式以及十六位元寬度格式其中一者,並且轉換方法20響應於接收到的邏輯位址為八位元寬度格式,將邏輯位址轉換為四位元寬度格式;以及響應於接收到的邏輯位址為十六位元寬度格式,將邏輯位址轉換為四位元寬度格式。In step S206, the conversion method 20 converts the format of the logical address. In some embodiments, the logical address has a data bit width format, and the data bit width format is one of a 4-bit width format, an 8-bit width format, and a 16-bit width format, and the conversion method 20 converts the logical address into a 4-bit width format in response to the received logical address being in an 8-bit width format; and converts the logical address into a 4-bit width format in response to the received logical address being in a 16-bit width format.

在步驟S208中,轉換方法20根據邏輯位址及列規則,產生垂直座標。列規則用以轉換邏輯位址之全部或部分,產生垂直座標;垂直座標則用以指示儲存單元在物理空間中的垂直位置。In step S208, the conversion method 20 generates vertical coordinates according to the logical address and the row rule. The row rule is used to convert all or part of the logical address to generate the vertical coordinates; the vertical coordinates are used to indicate the vertical position of the storage unit in the physical space.

在步驟S210中,轉換方法20根據邏輯位址及行規則,產生水平座標。行規則用以轉換邏輯位址之全部或部分,產生水平座標;水平座標則用以指示儲存單元在物理空間中的水平位置。In step S210, the conversion method 20 generates horizontal coordinates according to the logical address and the row rule. The row rule is used to convert all or part of the logical address to generate horizontal coordinates; the horizontal coordinates are used to indicate the horizontal position of the storage unit in the physical space.

在步驟S212中,轉換方法20根據垂直座標及水平座標,產生物理位址。根據垂直座標及水平座標,轉換方法20則可以產生用以指示儲存單元在物理空間中位置的物理位址。In step S212, the conversion method 20 generates a physical address according to the vertical coordinate and the horizontal coordinate. According to the vertical coordinate and the horizontal coordinate, the conversion method 20 can generate a physical address for indicating the location of the storage unit in the physical space.

在步驟S214中,轉換方法20根據物理位址在圖面中標記。轉換方法20產生物理位址後,則在圖面中對應物理位址的位置產生標記,標記用以指示物理位址所對應的儲存單元(亦即,邏輯位址所對應的儲存單元)在圖面中的位置。In step S214, the conversion method 20 marks the drawing according to the physical address. After the conversion method 20 generates the physical address, a mark is generated at the position corresponding to the physical address in the drawing, and the mark is used to indicate the position of the storage unit corresponding to the physical address (that is, the storage unit corresponding to the logical address) in the drawing.

需要注意的是,在步驟S214完成標記後,接下來轉換方法20可以回到步驟S204以接收另一個邏輯位址,並根據另一個邏輯位址執行S206至S214,直到所需要進行轉換及標記的邏輯位址全部完成作業。It should be noted that after the marking is completed in step S214, the conversion method 20 can then return to step S204 to receive another logical address, and execute S206 to S214 according to the other logical address until all the logical addresses that need to be converted and marked are completed.

在步驟S216中,轉換方法20根據經過標記的圖面,產生標記圖片。轉換方法20在圖面中完成一或多個標記後,產生標記圖片,其中標記圖片包含用以指示邏輯位址所對應的儲存單元的物理位置之標記。In step S216, the conversion method 20 generates a marked image based on the marked drawing. After completing one or more marks in the drawing, the conversion method 20 generates a marked image, wherein the marked image includes a mark indicating the physical location of the storage unit corresponding to the logical address.

請參考第3圖,其為本揭露部分實施例中使用者介面30的示意圖。在一些實施例中,轉換裝置12透過顯示裝置14提供使用者介面30,使用者透過操作使用者介面20調整轉換裝置12執行轉換邏輯位址時的參數。如圖所示,使用者介面30包含裝置別的設定,提供使用者選擇待轉換的邏輯位址所對應的儲存裝置類型,進一步地,轉換裝置12將根據使用者所選擇的儲存裝置類型,以對應的轉換參數轉換邏輯位址。Please refer to FIG. 3, which is a schematic diagram of a user interface 30 in some embodiments of the present disclosure. In some embodiments, the conversion device 12 provides the user interface 30 through the display device 14, and the user adjusts the parameters of the conversion device 12 when performing the conversion of the logical address by operating the user interface 20. As shown in the figure, the user interface 30 includes device-specific settings, which allows the user to select the storage device type corresponding to the logical address to be converted. Further, the conversion device 12 will convert the logical address with the corresponding conversion parameters according to the storage device type selected by the user.

此外,使用者介面30還包含轉換格式設定之勾選框,當使用者勾選時,轉換裝置12在轉換邏輯位址前,將先把邏輯位址轉換為特定格式。在一實施例中,邏輯位址具有資料位元寬度格式,資料位元寬度格式為四位元寬度格式(x4)、八位元寬度格式(x8)以及十六位元寬度格式(x16/xF)其中一者。其中四位元寬度表示對應的儲存裝置中一個儲存單元(例如:一個晶片)可儲存四個位元(bit),以此類推,八位元寬度以及十六位元寬度則分別表示對應的儲存裝置中一個儲存單元可儲存八個位元及十六個位元。In addition, the user interface 30 also includes a check box for conversion format settings. When the user checks the box, the conversion device 12 will convert the logical address into a specific format before converting the logical address. In one embodiment, the logical address has a data bit width format, and the data bit width format is one of a four-bit width format (x4), an eight-bit width format (x8), and a sixteen-bit width format (x16/xF). The four-bit width indicates that a storage unit (e.g., a chip) in the corresponding storage device can store four bits. By analogy, the eight-bit width and the sixteen-bit width respectively indicate that a storage unit in the corresponding storage device can store eight bits and sixteen bits.

在本實施例中,當使用者勾選使用者介面30中轉換格式設定之勾選框時,轉換裝置12在將邏輯位址轉換為物理位址前,則會先將邏輯位址轉換為四位元寬度格式。具體有關轉換裝置12轉換邏輯位址格式之細節,將於後面段落描述。In this embodiment, when the user checks the check box of the conversion format setting in the user interface 30, the conversion device 12 converts the logical address into a 4-bit width format before converting the logical address into a physical address. The details of the conversion device 12 converting the logical address format will be described in the following paragraphs.

進一步地,使用者介面30中還包含其他設定欄位,提供使用者確認輸入的邏輯位址資料的欄位設定,以及繪製標記圖片之繪圖相關設定(例如:是否產生框線、圖中標記之顏色),轉換裝置12將根據使用者介面30中之欄位設定轉換邏輯位址,並且根據繪圖設定產生標記圖片。Furthermore, the user interface 30 also includes other setting fields, which provide the user with field settings for confirming the input logical address data, as well as drawing-related settings for drawing marker images (for example: whether to generate a frame line, the color of the marker in the image). The conversion device 12 will convert the logical address according to the field settings in the user interface 30, and generate a marker image according to the drawing settings.

在使用者於使用者介面30選擇裝置別為A記憶體後,轉換裝置12存取轉換參數,並根據轉換參數執行產生圖面、轉換邏輯位址之作業。請參考第4圖,其為本揭露部分實施例中轉換參數40的示意圖。轉換參數40包含裝置類型402、圖面規則404、列規則406以及行規則408。After the user selects the device type as memory A in the user interface 30, the conversion device 12 accesses the conversion parameters and performs operations of generating a drawing and converting a logical address according to the conversion parameters. Please refer to FIG. 4, which is a schematic diagram of the conversion parameters 40 in some embodiments of the present disclosure. The conversion parameters 40 include a device type 402, a drawing rule 404, a row rule 406, and a line rule 408.

裝置類型402用以指示轉換參數40對應之儲存裝置,在本實施例中,轉換參數40對應A記憶體。The device type 402 is used to indicate the storage device corresponding to the conversion parameter 40. In this embodiment, the conversion parameter 40 corresponds to the A memory.

圖面規則404用以指示A記憶體的儲存單元在物理空間中的分布,並且轉換裝置12可根據圖面規則404產生對應A記憶體的圖面。圖面規則404包含對應A記憶體的規格參數。在本實施例中,圖面規則404包含庫(bank)數量(圖中所繪示之Number_of_Bank)為16、列(row)數量(圖中所繪示之Number_of_Row)為2097152、行(column)數量(圖中所繪示之Number_of_Col)為1024,用以表示A記憶體中各層級儲存單位之數量。The drawing rule 404 is used to indicate the distribution of the storage units of the A memory in the physical space, and the conversion device 12 can generate a drawing corresponding to the A memory according to the drawing rule 404. The drawing rule 404 includes specification parameters corresponding to the A memory. In this embodiment, the drawing rule 404 includes the number of banks (Number_of_Bank shown in the figure) of 16, the number of rows (Number_of_Row shown in the figure) of 2097152, and the number of columns (Number_of_Col shown in the figure) of 1024, which are used to indicate the number of storage units at each level in the A memory.

其次,圖面規則404還包含J/K位元(圖中所繪示之J/K Bit)為RA16及P/Q位元(圖中所繪示之P/Q Bit)為RA15,分別用以指示邏輯位址中的RA16位元為J/K位元及邏輯位址中的RA15位元為P/Q位元。Secondly, the drawing rule 404 also includes a J/K bit (J/K Bit shown in the figure) as RA16 and a P/Q bit (P/Q Bit shown in the figure) as RA15, which are respectively used to indicate that the RA16 bit in the logical address is the J/K bit and the RA15 bit in the logical address is the P/Q bit.

此外,當轉換裝置12繪製標記圖片時,由於記憶裝置的儲存單元數量龐大,無法將每一個儲存單元皆以一個資料格表示而需要進行壓縮,以一個資料格表示多個儲存單元。因此,圖面規則404還包含列壓縮量(圖中所繪示之Row_Compress)為512及行壓縮量(圖中所繪示之Col_Compress)為512,分別用以指示以512個儲存單元為一個資料列,並且以512個儲存單元為一個資料行,即一個資料格表示512*512個儲存單元。In addition, when the conversion device 12 draws the marked image, due to the large number of storage units in the memory device, each storage unit cannot be represented by a data cell and needs to be compressed, so that one data cell represents multiple storage units. Therefore, the drawing rule 404 also includes a row compression amount (Row_Compress shown in the figure) of 512 and a line compression amount (Col_Compress shown in the figure) of 512, which are used to indicate that 512 storage units are a data row and 512 storage units are a data row, that is, one data cell represents 512*512 storage units.

列規則406為轉換裝置12將邏輯位址轉換為垂直座標時所利用之規則,而列規則406之具體規則將於後面段落說明。另一方面,行規則408為轉換裝置12將邏輯位址轉換為水平座標時所利用之規則,同樣地,行規則408之具體規則將於後面段落說明。The row rule 406 is a rule used by the conversion device 12 to convert a logical address into a vertical coordinate, and the specific rules of the row rule 406 will be described in the following paragraphs. On the other hand, the row rule 408 is a rule used by the conversion device 12 to convert a logical address into a horizontal coordinate, and similarly, the specific rules of the row rule 408 will be described in the following paragraphs.

進一步地,轉換裝置12根據轉換參數40中的圖面規則404產生圖面50。請參考第5圖,其為本揭露部分實施例中圖面50的示意圖。圖面50包含16個庫B0、B1、B2、B3、B4、B5、B6、B7、B8、B9、B10、B11、B12、B13、B14及B15。每一個庫中包含16個資料列及2個資料行,總共為32個資料格。而由於圖面規則404中列壓縮量為512及行壓縮量為512,因此每一個資料格中代表512*512個儲存單元。在一實施例中,圖面50係以Excel程式所繪製。Further, the conversion device 12 generates a drawing 50 according to the drawing rule 404 in the conversion parameter 40. Please refer to Figure 5, which is a schematic diagram of the drawing 50 in the embodiment of the present disclosure. The drawing 50 includes 16 libraries B0, B1, B2, B3, B4, B5, B6, B7, B8, B9, B10, B11, B12, B13, B14 and B15. Each library includes 16 data rows and 2 data lines, a total of 32 data cells. Since the row compression amount in the drawing rule 404 is 512 and the row compression amount is 512, each data cell represents 512*512 storage units. In one embodiment, the drawing 50 is drawn using an Excel program.

接下來,轉換裝置12接收邏輯位址。請參考第6圖,其為本揭露部分實施例中邏輯位址LA的示意圖,其中邏輯位址LA包含列位址RA、行位址CA以及DQ索引位址DA。邏輯位址LA中的列位址RA(即,x4_Row欄位)、行位址CA(即,x4_Col欄位)及DQ索引位址DA(即,x4_DQ欄位)係以十六進位數值表示;而列位址RA、行位址CA以及DQ索引位址DA則進一步包含以二進位表示之位元。Next, the conversion device 12 receives the logic address. Please refer to FIG. 6, which is a schematic diagram of the logic address LA in some embodiments of the present disclosure, wherein the logic address LA includes a row address RA, a row address CA, and a DQ index address DA. The row address RA (i.e., x4_Row field), the row address CA (i.e., x4_Col field), and the DQ index address DA (i.e., x4_DQ field) in the logic address LA are represented by hexadecimal values; and the row address RA, the row address CA, and the DQ index address DA further include bits represented by binary.

在本實施例中,列位址RA包含17個位元(即,RA0、RA1、RA2、RA3、RA4、RA5、RA6、RA7、RA8、RA9、RA10、RA11、RA12、RA13、RA14、RA15及RA16欄位),用以表示邏輯位址LA所對應的列之位址。需要注意的是,在本實施例中,列位址RA還包含用以指示邏輯位址LA所對應的庫之位址(即,BA0、BA1、BG0及BG1欄位)。在其他實施例中,邏輯位址LA還可包含庫位址,用以表示儲存單元所位於之庫的位址。In the present embodiment, the row address RA includes 17 bits (i.e., RA0, RA1, RA2, RA3, RA4, RA5, RA6, RA7, RA8, RA9, RA10, RA11, RA12, RA13, RA14, RA15, and RA16 fields) to indicate the address of the row corresponding to the logical address LA. It should be noted that in the present embodiment, the row address RA also includes an address (i.e., BA0, BA1, BG0, and BG1 fields) to indicate the library corresponding to the logical address LA. In other embodiments, the logical address LA may also include a library address to indicate the address of the library where the storage unit is located.

在本實施例中,行位址CA包含10個位元(即,CA0、CA1、CA2、CA3、CA4、CA5、CA6、CA7、CA8及CA9欄位),用以表示邏輯位址LA所對應的行之位址。In this embodiment, the row address CA includes 10 bits (i.e., CA0, CA1, CA2, CA3, CA4, CA5, CA6, CA7, CA8 and CA9 fields) for indicating the address of the row corresponding to the logical address LA.

在本實施例中,DQ索引位址DA包含4個位元(即,DA0、DA1、DA2及DA3欄位),用以表示邏輯位址LA所對應的DQ索引之位址。In this embodiment, the DQ index address DA includes 4 bits (ie, DA0, DA1, DA2, and DA3 fields) for indicating the address of the DQ index corresponding to the logical address LA.

需要注意的是,本實施例僅用作示例,在其他實施例中,列位址RA、行位址CA及DQ索引位址DA所包含的位元數量及表示方式可根據所對應的儲存裝置或實際需求而有所不同。It should be noted that the present embodiment is only used as an example. In other embodiments, the number of bits and the representation method included in the column address RA, the row address CA and the DQ index address DA may vary depending on the corresponding storage device or actual needs.

接收邏輯位址LA後,轉換裝置12根據使用者在使用者介面30的勾選框中是否有選擇轉換邏輯位址LA之格式,判斷是否轉換邏輯位址LA之格式為四位元寬度格式。若使用者有勾選,則執行格式轉換。在本實施例中,邏輯位址LA為四位元寬度格式,因此不需進行轉換。After receiving the logical address LA, the conversion device 12 determines whether to convert the format of the logical address LA to a 4-bit width format according to whether the user has selected to convert the format of the logical address LA in the check box of the user interface 30. If the user has selected, the format conversion is performed. In this embodiment, the logical address LA is in a 4-bit width format, so no conversion is required.

至於有關邏輯位址格式轉換之說明,請參考第7圖,其為本揭露部分實施例中邏輯位址格式對照表72及74的示意圖。邏輯位址格式對照表72及74列出位於同一物理位置的邏輯位址分別以四位元寬度格式(x4)、八位元寬度格式(x8)及十六位元寬度格式(x16)表示之對照,其中庫位址(Bank)、列位址(Row)、行位址(Col)以及DQ索引位址(DQ)皆為複數個位元所組成之數值,而為求簡潔,在第7圖中以十六進位數值表示。For the description of the logical address format conversion, please refer to FIG. 7, which is a schematic diagram of the logical address format comparison tables 72 and 74 in some embodiments of the present disclosure. The logical address format comparison tables 72 and 74 list the comparison of the logical addresses located at the same physical location expressed in a 4-bit width format (x4), an 8-bit width format (x8) and a 16-bit width format (x16), respectively, wherein the bank address (Bank), row address (Row), row address (Col) and DQ index address (DQ) are all values composed of multiple bits, and for simplicity, they are expressed in hexadecimal values in FIG. 7.

需要注意的是,以四位元寬度格式表示的邏輯位址,由於一個儲存單元可儲存4個位元,DQ索引位址值介於0x0至0x3之間;以八位元寬度格式表示的邏輯位址,由於一個儲存單元可儲存8個位元,DQ索引位址值介於0x0至0x7之間;而以十六位元寬度格式表示的邏輯位址,由於一個儲存單元可儲存16個位元,DQ索引位址值介於0x0至0xF(即,0x15)之間。It should be noted that the logical address represented by the four-bit width format, since one storage unit can store 4 bits, the DQ index address value is between 0x0 and 0x3; the logical address represented by the eight-bit width format, since one storage unit can store 8 bits, the DQ index address value is between 0x0 and 0x7; and the logical address represented by the sixteen-bit width format, since one storage unit can store 16 bits, the DQ index address value is between 0x0 and 0xF (i.e., 0x15).

在本實施例中,轉換裝置12若欲將八位元寬度格式之邏輯位址轉換為四位元寬度格式,需判斷其DQ索引位址值是否介於0x0至0x3之間,若是,則需在列位址值的第17個位元加1,即,在十六進位表示下的第5位數加1,得出四位元寬度格式之列位址值;反之則不需調整。In this embodiment, if the conversion device 12 wants to convert the logical address of the eight-bit width format into the four-bit width format, it is necessary to determine whether its DQ index address value is between 0x0 and 0x3. If so, it is necessary to add 1 to the 17th bit of the column address value, that is, add 1 to the 5th bit in the hexadecimal representation to obtain the column address value of the four-bit width format; otherwise, no adjustment is required.

請參考邏輯位址格式對照表72,其中第二列的八位元寬度格式之DQ索引位址值(即,0x2)介於0x0至0x3之間。因此,轉換裝置12將其列位址值(即,0x01234)第5位數加1,即等於第一列的四位元寬度格式之列位址值(即,0x11234),至於其餘位址則不需調整。Please refer to the logical address format comparison table 72, where the DQ index address value (i.e., 0x2) of the second row in the eight-bit width format is between 0x0 and 0x3. Therefore, the conversion device 12 adds 1 to the fifth bit of its row address value (i.e., 0x01234), which is equal to the row address value (i.e., 0x11234) of the four-bit width format of the first row, and the remaining addresses do not need to be adjusted.

請繼續參考邏輯位址格式對照表74,其中第二列的八位元寬度格式之DQ索引位址值(即,0x7)並非介於0x0至0x3之間,因此其列位址值以及其他位址皆不需調整。Please continue to refer to the logical address format comparison table 74, where the DQ index address value of the 8-bit width format in the second row (i.e., 0x7) is not between 0x0 and 0x3, so its row address value and other addresses do not need to be adjusted.

另一方面,在本實施例中,轉換裝置12若欲將十六位元寬度格式之邏輯位址轉換為四位元寬度格式,需判斷其DQ索引位址值是否介於0x0至0x3之間或0x8至0xB(即,0x11)之間,若是,則需在列位址值的第17個位元加1,即,在十六進位表示下的第5位數加1,得出四位元寬度格式之列位址值;反之則不需調整。On the other hand, in the present embodiment, if the conversion device 12 wants to convert the logical address in the 16-bit width format into the 4-bit width format, it is necessary to determine whether its DQ index address value is between 0x0 and 0x3 or between 0x8 and 0xB (i.e., 0x11). If so, it is necessary to add 1 to the 17th bit of the column address value, that is, add 1 to the 5th bit in the hexadecimal representation, to obtain the column address value in the 4-bit width format; otherwise, no adjustment is required.

接著,轉換裝置12需進一步判斷其庫位址值是否小於0x8,若是,則需將庫位址值加8,得出四位元寬度格式之庫位址值;反之則不需調整。Next, the conversion device 12 needs to further determine whether its inventory address value is less than 0x8. If so, it needs to add 8 to the inventory address value to obtain the inventory address value in a four-bit width format; otherwise, no adjustment is required.

請參考邏輯位址格式對照表72,其中第三列的十六位元寬度格式之DQ索引位址值(即,0x2)介於0x0至0x3之間。因此,轉換裝置12將其列位址值(即,0x01234)第5位數加1,即等於第一列的四位元寬度格式之列位址值(即,0x11234);接著,第三列的十六位元寬度格式之庫位址值(即,0x2)小於0x8。因此,轉換裝置12將其庫位址值加8,即等於第一列的四位元寬度格式之庫位址值(即,0xA),至於其餘位址則不需調整。Please refer to the logical address format comparison table 72, where the DQ index address value of the 16-bit width format of the third row (i.e., 0x2) is between 0x0 and 0x3. Therefore, the conversion device 12 adds 1 to the 5th digit of its row address value (i.e., 0x01234), which is equal to the row address value of the 4-bit width format of the first row (i.e., 0x11234); then, the inventory address value of the 16-bit width format of the third row (i.e., 0x2) is less than 0x8. Therefore, the conversion device 12 adds 8 to its inventory address value, which is equal to the inventory address value of the 4-bit width format of the first row (i.e., 0xA), and the remaining addresses do not need to be adjusted.

請繼續參考邏輯位址格式對照表74,其中第三列的十六位元寬度格式之DQ索引位址值(即,0xF)並非介於0x0至0x3之間,因此其列位址值不需調整;接著,第三列的十六位元寬度格式之庫位址值(即,0xB)並非小於0x8。因此其庫位址值不需調整,至於其餘位址亦不需調整。Please continue to refer to the logical address format comparison table 74. The DQ index address value (i.e., 0xF) in the third row of the 16-bit width format is not between 0x0 and 0x3, so its row address value does not need to be adjusted; then, the inventory address value (i.e., 0xB) in the third row of the 16-bit width format is not less than 0x8. Therefore, its inventory address value does not need to be adjusted, and the remaining addresses do not need to be adjusted either.

需要注意的是,本揭露所描述之轉換格式規則僅用作示例,在其他實施例中,轉換裝置12可按照其他規則轉換邏輯位址格式,例如:以查表方式轉換DQ索引位址值。此外,轉換裝置12還可根據不同的儲存裝置以不同的規則轉換邏輯位址格式。It should be noted that the conversion format rules described in the present disclosure are only used as examples. In other embodiments, the conversion device 12 can convert the logical address format according to other rules, such as converting the DQ index address value by table lookup. In addition, the conversion device 12 can also convert the logical address format according to different rules according to different storage devices.

其後,轉換裝置12根據邏輯位址LA及列規則406,產生垂直座標。在一些實施例中,列規則406包含邏輯運算,並且轉換裝置12以列位址RA的列位址位元進行列規則406之邏輯運算,產生垂直座標。在一些實施例中,邏輯運算可包含一反(NOT)運算、一互斥或(XOR)運算或一及(AND)運算。Thereafter, the conversion device 12 generates a vertical coordinate according to the logical address LA and the row rule 406. In some embodiments, the row rule 406 includes a logical operation, and the conversion device 12 performs the logical operation of the row rule 406 with the row address bits of the row address RA to generate the vertical coordinate. In some embodiments, the logical operation may include a NOT operation, an XOR operation, or an AND operation.

請參考第8圖,其為本揭露部分實施例中轉換列位址RA產生垂直座標802的示意圖。Please refer to FIG. 8 , which is a schematic diagram of converting the row address RA to generate a vertical coordinate 802 in some embodiments of the present disclosure.

於第8圖的實施例中,列規則406的邏輯運算為將列位址RA中欄位RA13的位元進行反運算。如圖所示,轉換裝置12將列位址RA中欄位RA13的位元(即,1)進行反運算後產生垂直座標802的欄位RA13位元(即,0)。換句話說,垂直座標802與列位址RA的差異即在欄位RA13的位元具有相反的值。In the embodiment of FIG. 8 , the logical operation of the row rule 406 is to inversely operate the bit of the column RA13 in the row address RA. As shown in the figure, the conversion device 12 inversely operates the bit of the column RA13 in the row address RA (i.e., 1) to generate the bit of the column RA13 of the vertical coordinate 802 (i.e., 0). In other words, the difference between the vertical coordinate 802 and the row address RA is that the bit of the column RA13 has an opposite value.

在其他實施例中,根據不同種類的儲存裝置,用以轉換列位址RA的邏輯運算可具有不同的運算方式。請參考第9圖,其為本揭露部分實施例中轉換列位址RA產生垂直座標902的示意圖。In other embodiments, the logical operation for converting the row address RA may have different operation methods according to different types of storage devices. Please refer to FIG. 9 , which is a schematic diagram of converting the row address RA to generate a vertical coordinate 902 in some embodiments of the present disclosure.

於第9圖的實施例中,轉換裝置12將列位址RA中欄位RA11及欄位RA15的位元進行互斥或運算。如圖所示,列位址RA中欄位RA11的位元(即,1)及欄位RA15的位元(即,1)進行互斥或運算後產生垂直座標902的欄位RA11位元(即,0)。換句話說,經過轉換裝置12執行邏輯運算,垂直座標802中欄位RA11的位元係根據列位址RA中欄位RA11及欄位RA15的位元運算得出。In the embodiment of FIG. 9 , the conversion device 12 performs an exclusive OR operation on the bits of the column RA11 and the column RA15 in the row address RA. As shown in the figure, the exclusive OR operation on the bit of the column RA11 (i.e., 1) and the bit of the column RA15 (i.e., 1) in the column address RA generates the bit of the column RA11 (i.e., 0) of the vertical coordinate 902. In other words, after the conversion device 12 performs a logical operation, the bit of the column RA11 in the vertical coordinate 802 is obtained based on the bit operation of the column RA11 and the column RA15 in the column address RA.

請進一步參考第10圖,其為本揭露部分實施例中轉換列位址RA產生垂直座標1002的示意圖。Please further refer to FIG. 10 , which is a schematic diagram of converting the row address RA to generate a vertical coordinate 1002 in some embodiments of the present disclosure.

於第10圖的實施例中,轉換裝置12將列位址RA中欄位RA7及欄位RA12的位元進行及運算。如圖所示,列位址RA中欄位RA7的位元(即,0)及欄位RA12的位元(即,1)進行互斥或運算後產生垂直座標902的欄位RA12位元(即,0)。換句話說,經過轉換裝置12執行邏輯運算,垂直座標802中欄位RA12的位元係根據列位址RA中欄位RA7及欄位RA12的位元運算得出。In the embodiment of FIG. 10 , the conversion device 12 performs an AND operation on the bits of the column RA7 and the column RA12 in the column address RA. As shown in the figure, the bit of the column RA7 (i.e., 0) and the bit of the column RA12 (i.e., 1) in the column address RA are mutually exclusive ORed to generate the bit of the column RA12 (i.e., 0) of the vertical coordinate 902. In other words, after the conversion device 12 performs a logical operation, the bit of the column RA12 in the vertical coordinate 802 is obtained based on the bit operation of the column RA7 and the column RA12 in the column address RA.

進一步地,轉換裝置12根據邏輯位址LA及行規則408,產生水平座標。在一些實施例中,行規則408包含對照表。產生水平座標的運作中,轉換裝置12包含決定儲存單元中庫B0至B15中的哪一個庫。轉換裝置12還包含決定特定的庫中的區域P或區域Q。轉換裝置12還包含決定特定的區域中的行平面。轉換裝置12還包含決定特定的行平面中的水平座標。Further, the conversion device 12 generates horizontal coordinates according to the logical address LA and the row rule 408. In some embodiments, the row rule 408 includes a lookup table. In the operation of generating the horizontal coordinates, the conversion device 12 includes determining which of the libraries B0 to B15 in the storage unit. The conversion device 12 also includes determining the area P or area Q in the specific library. The conversion device 12 also includes determining the row plane in the specific area. The conversion device 12 also includes determining the horizontal coordinates in the specific row plane.

在本實施例中,首先,轉換裝置12根據列位址RA的欄位BG1、BG0、BA1及BA0位元,決定儲存單元中的一庫。欄位BG1、BG0、BA1及BA0位元所對應之庫的位址為0000,換算為十進位值為0,則對應圖面50中之庫B0。In this embodiment, first, the conversion device 12 determines a bank in the storage unit according to the fields BG1, BG0, BA1 and BA0 bits of the row address RA. The address of the bank corresponding to the fields BG1, BG0, BA1 and BA0 bits is 0000, which is converted to a decimal value of 0, corresponding to the bank B0 in FIG. 50 .

需要注意的是,在其他實施例中,垂直座標所對應之庫的位址之值對應庫的編號。例如:若位址為0100,對應的十進位值為4,則對應圖面50中之庫B4;若位址為1110,對應的十進位值為14,則對應圖面50中之庫B14。It should be noted that in other embodiments, the value of the address of the bank corresponding to the vertical coordinate corresponds to the bank number. For example, if the address is 0100, the corresponding decimal value is 4, which corresponds to bank B4 in Figure 50; if the address is 1110, the corresponding decimal value is 14, which corresponds to bank B14 in Figure 50.

由於轉換裝置12決定邏輯位址LA對應圖面50中之庫B0,請進一步參考第11圖,其為本揭露部分實施例中圖面50中之庫B0的示意圖,其中庫B0包含區域P及Q。相同地,圖面50中之其他庫亦包含區域P及Q。Since the conversion device 12 determines that the logical address LA corresponds to the bank B0 in FIG. 50 , please further refer to FIG. 11 , which is a schematic diagram of the bank B0 in FIG. 50 in some embodiments of the present disclosure, wherein the bank B0 includes regions P and Q. Similarly, other banks in FIG. 50 also include regions P and Q.

接著,轉換裝置12根據列位址RA的欄位RA15位元,決定庫B0的區域P或區域Q。Next, the conversion device 12 determines the area P or area Q of the bank B0 according to the RA15 bit of the column address RA.

請同時參考第4圖的圖面規則404,其中描述邏輯位址LA的P/Q位元為欄位RA15。換句話說,若欄位RA15之值為1,則邏輯位址LA對應的位置在區域P;反之,若欄位RA15之值為0,則邏輯位址LA對應的位置在區域Q。在本實施例中,轉換裝置12判斷邏輯位址LA的欄位RA15之值為1,則決定邏輯位址LA對應區域P。Please also refer to the drawing rule 404 of FIG. 4 , in which the P/Q bit of the logic address LA is described as field RA15. In other words, if the value of field RA15 is 1, the position corresponding to the logic address LA is in area P; conversely, if the value of field RA15 is 0, the position corresponding to the logic address LA is in area Q. In this embodiment, the conversion device 12 determines that the value of field RA15 of the logic address LA is 1, and determines that the logic address LA corresponds to area P.

其後,轉換裝置12以列位址RA的欄位RA16位元、行位址CA的欄位CA2位元及DQ索引位址DA查閱對照表,決定區域P中的其中一行平面。Thereafter, the conversion device 12 looks up a lookup table using the 16-bit field RA of the row address RA, the 2-bit field CA of the row address CA, and the DQ index address DA to determine one of the row planes in the region P.

請繼續參考第11圖,如圖所示,區域P由垂直虛線分割為8個行平面(column plane),由右至左分別為行平面0至7。Please continue to refer to FIG. 11. As shown in the figure, the region P is divided into 8 column planes by vertical dotted lines, which are column planes 0 to 7 from right to left.

另一方面,請參考第4圖中的行規則408,行規則408包含將邏輯位址LA中的位元轉換為行平面的對照表,其中描述將邏輯位址LA中的J/K位元、欄位CA2位元以及DQ索引位址結合後,查詢對照表以取得水平座標。On the other hand, please refer to the row rule 408 in Figure 4. The row rule 408 includes a lookup table for converting the bits in the logical address LA into the row plane, which describes combining the J/K bits in the logical address LA, the column CA2 bits and the DQ index address, and then looking up the lookup table to obtain the horizontal coordinates.

請參考第12圖,其為本揭露部分實施例中根據行規則408產生行平面的示意圖。在本實施例中,邏輯位址LA的J/K位元(即,欄位RA16位元)為1,欄位CA2位元為0,以及DQ索引位址為0。將上述三個值結合為對照值1202(即,100)後,轉換裝置12查閱行規則408的對照表取得行平面為7。Please refer to FIG. 12, which is a schematic diagram of generating a row plane according to the row rule 408 in some embodiments of the present disclosure. In this embodiment, the J/K bit of the logical address LA (i.e., the 16-bit field RA) is 1, the bit of the field CA2 is 0, and the DQ index address is 0. After combining the above three values into a reference value 1202 (i.e., 100), the conversion device 12 looks up the reference table of the row rule 408 to obtain the row plane as 7.

最後,轉換裝置12根據行位址CA的欄位CA9位元,決定行平面中的水平座標。請繼續參考第11圖,其中每個行平面又可以縱向切割為左右側的兩個水平座標。換句話說,區域P可被切割為8個行平面,而每個行平面可被切割為2個水平座標,即區域P中包含16個水平座標。其中,水平座標以最左側為0向右遞增,即行平面7包含水平座標0及1、平面6包含水平座標2及3,以此類推。需要注意的是,區域Q亦以相同的方式被切分為16個水平座標。Finally, the conversion device 12 determines the horizontal coordinate in the row plane according to the field CA9 bit of the row address CA. Please continue to refer to Figure 11, in which each row plane can be cut vertically into two horizontal coordinates on the left and right sides. In other words, the area P can be cut into 8 row planes, and each row plane can be cut into 2 horizontal coordinates, that is, the area P contains 16 horizontal coordinates. Among them, the horizontal coordinates increase to the right with 0 on the leftmost side, that is, row plane 7 contains horizontal coordinates 0 and 1, plane 6 contains horizontal coordinates 2 and 3, and so on. It should be noted that the area Q is also divided into 16 horizontal coordinates in the same way.

進一步地,若欄位CA9位元為0,則轉換裝置12決定水平座標在行平面的左側的水平座標;反之若欄位CA9位元為1,則轉換裝置12決定水平座標在行平面的右側的水平座標。在本實施例中,行位址CA的欄位CA9位元為0,則轉換裝置12決定水平座標在行平面7左側的水平座標(即,水平座標為0)。Further, if the bit of field CA9 is 0, the conversion device 12 determines the horizontal coordinate to be the horizontal coordinate on the left side of the row plane; conversely, if the bit of field CA9 is 1, the conversion device 12 determines the horizontal coordinate to be the horizontal coordinate on the right side of the row plane. In the present embodiment, if the bit of field CA9 of row address CA is 0, the conversion device 12 determines the horizontal coordinate to be the horizontal coordinate on the left side of row plane 7 (i.e., the horizontal coordinate is 0).

請進一步參考第13圖,其為本揭露部分實施例中在圖面50產生標記D的示意圖。承前述,邏輯位址LA對應行平面7中的水平座標0,因此標記D的水平位置位於最左側,即行平面7中的左側。Please further refer to FIG. 13 , which is a schematic diagram of generating a mark D in FIG. 50 in some embodiments of the present disclosure. As mentioned above, the logic address LA corresponds to the horizontal coordinate 0 in the row plane 7 , so the horizontal position of the mark D is located at the far left, that is, the left side in the row plane 7 .

另一方面,標記D的垂直位置係根據垂直座標802中的欄位RA14至RA0的位元值決定,其中欄位RA14至RA0的位元值域為000000000000000至111111111111111,換算為十進位則為0至32767,共有32768個垂直座標。On the other hand, the vertical position of mark D is determined according to the bit values of fields RA14 to RA0 in the vertical coordinate 802, wherein the bit value range of fields RA14 to RA0 is 00000000000000 to 1111111111111111, which is converted to decimal from 0 to 32767, for a total of 32768 vertical coordinates.

又,圖面規則404的列壓縮率為512,因此將32768除以512後可得出64個垂直座標。意即,庫B0在縱軸(Y軸)方向上需切分為64個垂直座標。Furthermore, the row compression ratio of drawing rule 404 is 512, so 64 vertical coordinates can be obtained by dividing 32768 by 512. That is, library B0 needs to be divided into 64 vertical coordinates in the vertical axis (Y axis) direction.

回到本實施例,垂直座標802中的欄位RA14至RA0的位元為101110000000000,轉換為十進位之數值為23552,而列壓縮率為512,將兩者相除後則得出值46,因此標記D的垂直位置為自下方原點向上計算第46個座標。Returning to the present embodiment, the bits of the field RA14 to RA0 in the vertical coordinate 802 are 101110000000000, which is converted to a decimal value of 23552, and the row compression rate is 512. Dividing the two gives a value of 46, so the vertical position of the marker D is the 46th coordinate from the origin below.

綜上所述,轉換裝置12在圖面50中之庫B0內產生標記D,其中標記D位於(0,46)座標之位置。In summary, the conversion device 12 generates a marker D in the library B0 in FIG. 50 , wherein the marker D is located at the coordinate position (0, 46).

在一些實施例中,轉換裝置12可進一步繼續接收其他邏輯位址,並根據前述運作轉換邏輯位址為物理位址,進一步在圖面50中產生其他標記。In some embodiments, the conversion device 12 may further continue to receive other logical addresses, and convert the logical addresses into physical addresses according to the aforementioned operation, and further generate other marks in FIG. 50 .

最後,轉換裝置12完成所有標記後,根據經過標記的圖面50,產生標記圖片。請參考第14圖,其為本揭露部分實施例中邏輯位址表1402及標記圖片1404的示意圖。轉換裝置12根據邏輯位址表1402中的邏輯位址,分別轉換為物理位址後,在圖面50中產生標記。在完成轉換邏輯位址表1402中所有的邏輯位址,並且產生標記後,轉換裝置12根據圖面50產生標記圖片1404。在一些實施例中,標記圖片1404為圖片檔案。Finally, after the conversion device 12 completes all the markings, it generates a marked picture according to the marked drawing 50. Please refer to Figure 14, which is a schematic diagram of a logical address table 1402 and a marked picture 1404 in some embodiments of the present disclosure. The conversion device 12 generates marks in the drawing 50 after converting the logical addresses in the logical address table 1402 into physical addresses. After completing the conversion of all the logical addresses in the logical address table 1402 and generating the marks, the conversion device 12 generates a marked picture 1404 according to the drawing 50. In some embodiments, the marked picture 1404 is a picture file.

綜上所述,本揭露所提供的轉換裝置12及轉換方法20可以將邏輯位址轉換為物理位址,並且產生標記圖片,以提供使用者邏輯位址所對應的儲存單元,在儲存裝置中所在的物理位置。進而讓使用者需要針對故障的儲存單元進行檢測、分析故障原因時,可以快速地取得儲存單元的位置,並進一步實施檢測、分析。In summary, the conversion device 12 and conversion method 20 provided by the present disclosure can convert a logical address into a physical address and generate a marking image to provide the user with the physical location of the storage unit corresponding to the logical address in the storage device. When the user needs to detect and analyze the cause of the faulty storage unit, the user can quickly obtain the location of the storage unit and further perform the detection and analysis.

雖以數個實施例詳述如上作為示例,然本揭露所提出之邏輯位址轉換裝置、方法以及非暫態電腦可讀取儲存媒體亦得以其他系統、硬體、軟體、儲存媒體或其組合實現。因此,本揭露之保護範圍不應受限於本揭露實施例所描述之特定實現方式,當視後附之申請專利範圍所界定者為準。Although several embodiments are described in detail above as examples, the logical address conversion device, method, and non-transitory computer-readable storage medium proposed in the present disclosure can also be implemented by other systems, hardware, software, storage media, or a combination thereof. Therefore, the protection scope of the present disclosure should not be limited to the specific implementation method described in the embodiments of the present disclosure, but should be defined by the scope of the attached patent application.

對於本揭露所屬技術領域中具有通常知識者顯而易見的是,在不脫離本揭露的範圍或精神的情況下,可以對本揭露的結構進行各種修改和變化。鑑於前述,本揭露之保護範圍亦涵蓋在後附之申請專利範圍內進行之修改和變化。It is obvious to those with ordinary knowledge in the art to which the present disclosure belongs that various modifications and changes can be made to the structure of the present disclosure without departing from the scope or spirit of the present disclosure. In view of the foregoing, the protection scope of the present disclosure also covers modifications and changes made within the scope of the attached patent application.

12:轉換裝置 122:處理器 14:顯示裝置 20:轉換方法 S202~S216:步驟 30:使用者介面 40:轉換參數 402:裝置類型 404:圖面規則 406:列規則 408:行規則 50:圖面 B0~B15:庫 LA:邏輯位址 RA:列位址 CA:行位址 DA:DQ索引位址 72,74:邏輯位址格式對照表 802,902,1002:垂直座標 P,Q:區域 1202:對照值 D:標記 1402:邏輯位址表 1404:標記圖片 12: Conversion device 122: Processor 14: Display device 20: Conversion method S202~S216: Steps 30: User interface 40: Conversion parameters 402: Device type 404: Drawing rule 406: Row rule 408: Row rule 50: Drawing B0~B15: Library LA: Logical address RA: Column address CA: Row address DA: DQ index address 72,74: Logical address format comparison table 802,902,1002: Vertical coordinates P,Q: Region 1202: Comparison value D: Mark 1402: Logical address table 1404: Mark image

為讓本揭露之上述和其他目的、特徵、優點與實施例能更明顯易懂,所附圖式之說明如下: 第1圖為本揭露部分實施例中轉換裝置及顯示裝置的示意圖; 第2圖為本揭露部分實施例中轉換方法的流程圖; 第3圖為本揭露部分實施例中使用者介面的示意圖; 第4圖為本揭露部分實施例中轉換參數的示意圖; 第5圖為本揭露部分實施例中圖面的示意圖; 第6圖為本揭露部分實施例中為本揭露部分實施例中邏輯位址的示意圖; 第7圖為本揭露部分實施例中邏輯位址格式對照表的示意圖; 第8圖為本揭露部分實施例中根據第一列規則產生垂直座標的示意圖; 第9圖為本揭露另一實施例中根據列規則產生垂直座標的示意圖; 第10圖為本揭露又一實施例中根據列規則產生垂直座標的示意圖; 第11圖為本揭露部分實施例中圖面中之庫的示意圖; 第12圖為本揭露部分實施例中根據行規則產生行平面的示意圖; 第13圖為本揭露部分實施例中在圖面產生標記的示意圖;以及 第14圖為本揭露部分實施例中邏輯位址及標記圖片的示意圖。 In order to make the above and other purposes, features, advantages and embodiments of the present disclosure more clear and easy to understand, the attached drawings are described as follows: Figure 1 is a schematic diagram of the conversion device and the display device in some embodiments of the present disclosure; Figure 2 is a flow chart of the conversion method in some embodiments of the present disclosure; Figure 3 is a schematic diagram of the user interface in some embodiments of the present disclosure; Figure 4 is a schematic diagram of the conversion parameters in some embodiments of the present disclosure; Figure 5 is a schematic diagram of the drawings in some embodiments of the present disclosure; Figure 6 is a schematic diagram of the logical address in some embodiments of the present disclosure; Figure 7 is a schematic diagram of the logical address format comparison table in some embodiments of the present disclosure; Figure 8 is a schematic diagram of the generation of vertical coordinates according to the first row rule in some embodiments of the present disclosure; Figure 9 is a schematic diagram of generating vertical coordinates according to row rules in another embodiment of the present disclosure; Figure 10 is a schematic diagram of generating vertical coordinates according to row rules in another embodiment of the present disclosure; Figure 11 is a schematic diagram of a library in a drawing in some embodiments of the present disclosure; Figure 12 is a schematic diagram of generating a row plane according to row rules in some embodiments of the present disclosure; Figure 13 is a schematic diagram of generating a mark in a drawing in some embodiments of the present disclosure; and Figure 14 is a schematic diagram of a logical address and a mark image in some embodiments of the present disclosure.

國內寄存資訊(請依寄存機構、日期、號碼順序註記) 無 國外寄存資訊(請依寄存國家、機構、日期、號碼順序註記) 無 Domestic storage information (please note in the order of storage institution, date, and number) None Foreign storage information (please note in the order of storage country, institution, date, and number) None

20:轉換方法 S202~S216:步驟 20: Conversion method S202~S216: Steps

Claims (10)

一種轉換方法,包含: 接收一第一邏輯位址,該第一邏輯位址用於存取一儲存裝置中的一第一儲存單元;以及 根據該第一邏輯位址及一轉換規則,產生一第一物理位址,其中該第一物理位址用以指示該第一儲存單元在該儲存裝置的一物理空間中之一第一位置。 A conversion method comprises: receiving a first logical address, the first logical address being used to access a first storage unit in a storage device; and generating a first physical address according to the first logical address and a conversion rule, wherein the first physical address is used to indicate a first position of the first storage unit in a physical space of the storage device. 如請求項1所述之轉換方法,進一步包含以下步驟: 產生一圖面,其中該圖面用以表示該儲存裝置的該物理空間; 根據該第一物理位址,在該圖面中標記該第一儲存單元的該第一位置;以及 根據經過標記的該圖面,產生一標記圖片,其中該標記圖片包含對應該第一位置之一標記。 The conversion method as described in claim 1 further comprises the following steps: Generate a drawing, wherein the drawing is used to represent the physical space of the storage device; Mark the first position of the first storage unit in the drawing according to the first physical address; and Generate a marked image according to the marked drawing, wherein the marked image includes a mark corresponding to the first position. 如請求項2所述之轉換方法,其中產生該圖面的步驟進一步包含: 基於一圖面規則產生該圖面,其中該圖面規則包含該儲存裝置的一庫數量、一列數量以及一行數量。 The conversion method as described in claim 2, wherein the step of generating the drawing further includes: Generating the drawing based on a drawing rule, wherein the drawing rule includes a library quantity, a row quantity, and a row quantity of the storage device. 如請求項3所述之轉換方法,其中該圖面規則進一步包含一列壓縮量以及一行壓縮量,該列壓縮量用以表示該圖面中一資料列對應該儲存裝置中的一儲存單元數量,並且該行壓縮量用以表示該圖面中一資料行對應該儲存裝置中的該儲存單元數量。A conversion method as described in claim 3, wherein the drawing rule further includes a row compression amount and a row compression amount, the row compression amount is used to indicate that a data row in the drawing corresponds to the number of storage units in the storage device, and the row compression amount is used to indicate that a data row in the drawing corresponds to the number of storage units in the storage device. 如請求項1所述之轉換方法,其中該第一邏輯位址具有一資料位元寬度格式,該資料位元寬度格式為四位元寬度格式、八位元寬度格式以及十六位元寬度格式其中一者,並且該轉換方法更包含: 響應於接收到的該第一邏輯位址為八位元寬度格式,將該第一邏輯位址轉換為四位元寬度格式;以及 響應於接收到的該第一邏輯位址為十六位元寬度格式,將該第一邏輯位址轉換為四位元寬度格式。 The conversion method as described in claim 1, wherein the first logical address has a data bit width format, the data bit width format is one of a four-bit width format, an eight-bit width format, and a sixteen-bit width format, and the conversion method further comprises: In response to the first logical address being received in an eight-bit width format, converting the first logical address into a four-bit width format; and In response to the first logical address being received in a sixteen-bit width format, converting the first logical address into a four-bit width format. 如請求項1所述之轉換方法,進一步包含以下步驟: 接收一第二邏輯位址,該第二邏輯位址用於存取該儲存裝置中的一第二儲存單元;以及 根據該第二邏輯位址及該轉換規則,產生一第二物理位址,其中該第二物理位址用以指示該第二儲存單元在該物理空間中之一第二位置。 The conversion method as described in claim 1 further comprises the following steps: Receiving a second logical address, the second logical address is used to access a second storage unit in the storage device; and Based on the second logical address and the conversion rule, generating a second physical address, wherein the second physical address is used to indicate a second position of the second storage unit in the physical space. 一種轉換裝置,包含: 一處理器,用以執行以下運作: 接收一第一邏輯位址,該第一邏輯位址用於存取一儲存裝置中的一第一儲存單元;以及 根據該第一邏輯位址及一轉換規則,產生一第一物理位址,其中該第一物理位址用以指示該第一儲存單元在該儲存裝置的一物理空間中之一第一位置。 A conversion device includes: A processor for performing the following operations: Receiving a first logical address, the first logical address is used to access a first storage unit in a storage device; and Based on the first logical address and a conversion rule, generating a first physical address, wherein the first physical address is used to indicate a first position of the first storage unit in a physical space of the storage device. 如請求項7所述之轉換裝置,其中該處理器進一步用以執行以下運作: 產生一圖面,其中該圖面用以表示該儲存裝置的該物理空間; 根據該第一物理位址,在該圖面中標記該第一儲存單元的該第一位置;以及 根據經過標記的該圖面,產生一標記圖片,其中該標記圖片包含對應該第一位置之一標記。 The conversion device as described in claim 7, wherein the processor is further used to perform the following operations: Generate a drawing, wherein the drawing is used to represent the physical space of the storage device; Mark the first position of the first storage unit in the drawing according to the first physical address; and Generate a marked image according to the marked drawing, wherein the marked image includes a mark corresponding to the first position. 如請求項8所述之轉換裝置,其中該處理器進一步用以執行以下運作: 基於一圖面規則產生該圖面,其中該圖面規則包含該儲存裝置的一庫數量、一列數量以及一行數量。 The conversion device as described in claim 8, wherein the processor is further used to perform the following operations: Generate the drawing based on a drawing rule, wherein the drawing rule includes a library quantity, a row quantity, and a row quantity of the storage device. 如請求項9所述之轉換裝置,其中該圖面規則進一步包含一列壓縮量以及一行壓縮量,該列壓縮量用以表示該圖面中一資料列對應該儲存裝置中的一儲存單元數量,並且該行壓縮量用以表示該圖面中一資料行對應該儲存裝置中的該儲存單元數量。A conversion device as described in claim 9, wherein the drawing rule further includes a row compression amount and a row compression amount, the row compression amount is used to indicate that a data row in the drawing corresponds to the number of storage units in the storage device, and the row compression amount is used to indicate that a data row in the drawing corresponds to the number of storage units in the storage device.
TW112151423A 2023-03-01 2023-03-01 Logical address transformation device and method TWI865275B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW112151423A TWI865275B (en) 2023-03-01 2023-03-01 Logical address transformation device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW112151423A TWI865275B (en) 2023-03-01 2023-03-01 Logical address transformation device and method

Publications (2)

Publication Number Publication Date
TW202437118A TW202437118A (en) 2024-09-16
TWI865275B true TWI865275B (en) 2024-12-01

Family

ID=93609468

Family Applications (1)

Application Number Title Priority Date Filing Date
TW112151423A TWI865275B (en) 2023-03-01 2023-03-01 Logical address transformation device and method

Country Status (1)

Country Link
TW (1) TWI865275B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220221A (en) * 2020-02-06 2021-08-06 瑞昱半导体股份有限公司 Memory controller and data processing method
TW202201400A (en) * 2020-06-23 2022-01-01 慧榮科技股份有限公司 Data processing method and the associated data storage device
TW202215247A (en) * 2020-10-07 2022-04-16 大陸商星宸科技股份有限公司 Virtual memory management method and processor
TW202230110A (en) * 2021-01-27 2022-08-01 日商鎧俠股份有限公司 Memory system and control method
TW202246985A (en) * 2021-05-25 2022-12-01 韓商愛思開海力士有限公司 Host device, storage device, and electronic device
TW202248857A (en) * 2021-06-11 2022-12-16 群聯電子股份有限公司 Data rebuilding method, memory storage device and memory control circuit unit

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220221A (en) * 2020-02-06 2021-08-06 瑞昱半导体股份有限公司 Memory controller and data processing method
TW202201400A (en) * 2020-06-23 2022-01-01 慧榮科技股份有限公司 Data processing method and the associated data storage device
TW202215247A (en) * 2020-10-07 2022-04-16 大陸商星宸科技股份有限公司 Virtual memory management method and processor
TW202230110A (en) * 2021-01-27 2022-08-01 日商鎧俠股份有限公司 Memory system and control method
TW202246985A (en) * 2021-05-25 2022-12-01 韓商愛思開海力士有限公司 Host device, storage device, and electronic device
TW202248857A (en) * 2021-06-11 2022-12-16 群聯電子股份有限公司 Data rebuilding method, memory storage device and memory control circuit unit

Also Published As

Publication number Publication date
TW202437118A (en) 2024-09-16

Similar Documents

Publication Publication Date Title
KR101203764B1 (en) Systems, methods, and apparatuses to save memory self-refresh power
US5838893A (en) Method and system for remapping physical memory
CN114360625A (en) Memory device and test method thereof, and memory built-in self-test circuit
EP2673746B1 (en) Data storage address assignment for graphics processing
US12216909B2 (en) Memory module and memory system including row hammer counter chip and operating method thereof
US20200310684A1 (en) Platform agnostic atomic operations
US9323774B2 (en) Compressed pointers for cell structures
US12050513B2 (en) Energy-efficient error-correction-detection storage
CN114446346A (en) Memory device, memory system and operation method of memory system
KR20210141156A (en) Handling operation system (OS) in a system for predicting and managing faulty memories based on page faults
TW201532062A (en) Data storage device and data checking and correcting for volatile memory
KR20090127689A (en) Memory test device and memory test method
TWI865275B (en) Logical address transformation device and method
TWI833588B (en) Logical address transformation device, method and non-transitory computer-readable storage medium
US20160124858A1 (en) Method and system for dynamic cache partitioning using address remapping
CN114579970A (en) Convolutional neural network-based android malicious software detection method and system
US10482031B1 (en) Method and system for reconstructing virtual address from physical memory
CN116069679A (en) A method and device for allocating data storage space
CN108694126B (en) Techniques for remapping pending bit array read requests
CN102541623A (en) Memory space simulation method for embedded processor
US20200327049A1 (en) Method and system for memory expansion with low overhead latency
NL2025650B1 (en) Implementing fault isolation in dram
US10748637B2 (en) System and method for testing processor errors
WO2022062682A1 (en) Data processing device, integrated circuit chip, device, and implementation method therefor
US10140025B2 (en) Memory system including memory controller and operation method thereof