Host device and memory system
By aligning the boundaries of larger and smaller memory blocks in non-volatile storage devices with multiple interfaces, the system addresses inefficiencies in writing stream data, ensuring consistent and extended recording capacity across SD and PCIe interfaces.
Patent Information
- Application Number
- JP2024542741
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-08-26
- Filing Date
- 2023-08-08
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-08-08
AI Technical Summary
Existing non-volatile storage devices with multiple interfaces face inefficiencies in writing stream data due to the mismatch between the boundaries of larger and smaller memory blocks, leading to temporary write performance degradation and reduced recording capacity.
The system employs a control unit that manages different data block sizes for each interface, ensuring the boundaries of larger memory blocks (SGSUs) align with smaller blocks (AUs), allowing efficient data writing across both SD and PCIe interfaces by selecting appropriate data blocks based on their availability for stream recording.
This approach ensures consistent and efficient writing of stream data at a predetermined speed, extending the recording time for stream data by maintaining a higher number of available blocks for continuous data transfer across multiple interfaces.
Smart Images

Figure 0007954350000001 
Figure 0007954350000002 
Figure 0007954350000003
Abstract
Description
Technical Field
[0001] The present disclosure relates to a host device, a nonvolatile storage device connected to the host device, and a memory system constituted by the host device and the nonvolatile storage device.
Background Art
[0002] In recent years, nonvolatile storage devices mounted with a removable semiconductor memory including a flash memory or the like as a back-end module, such as SD Card (registered trademark), have become widespread. An SD card serving as a nonvolatile storage device is connected to a host device such as a personal computer or a camera, and the host device can access data in the flash memory that is the back-end module.
[0003] Due to the characteristics of flash memory, when data smaller in size than a memory block, which is the management unit of the memory, is written from the host device, write performance may be degraded. On the other hand, stream data that requires real-time performance, such as moving images, is required to be written to the flash memory while ensuring a minimum recording speed.
[0004] Patent Document 1 discloses a technique for avoiding a temporary significant drop in write performance during writing to a memory block.
[0005] In addition, recently, nonvolatile storage devices that can be accessed from a host device via a plurality of interfaces have emerged. As an example thereof, there is an SD Express card provided with an SD bus mounted on existing SD cards and microSD cards, and a PCI Express (hereinafter abbreviated as PCIe) bus widely used as an internal bus of personal computers and the like. While the SD protocol is defined as a protocol for flash memory access via the SD bus, NVM Express (hereinafter abbreviated as NVMe) is available as a protocol for flash memory access via the PCIe bus.
[0006] Non-patent document 1 discloses the SD protocol, and non-patent document 2 discloses the NVMe protocol. [Prior art documents] [Patent Documents]
[0007] [Patent Document 1] International Publication No. 2010 / 146767 [Non-patent literature]
[0008] [Non-Patent Document 1] SD Card Association, “SD Specifications Part 1 Physical Layer Simplified Specification Version 8.00”, September 23, 2020 [Non-Patent Document 2] NVM Express Inc., "NVM Express Base Specification, Revision 2.0b", January 6, 2022. [Overview of the project]
[0009] The technology described in Patent Document 1 is based on the premise of a non-volatile memory device having a single interface and does not envision its application to non-volatile memory devices having multiple interfaces.
[0010] This disclosure provides a host device, a non-volatile storage device, and a memory system that can efficiently write data when recording stream data to a non-volatile storage device having multiple interfaces.
[0011] The non-volatile storage device in this disclosure is connected to a host device via a first interface and a second interface different from the first interface, and comprises a control unit that controls writing, and a memory, wherein the memory has a first data block which is a management unit when data is written to the non-volatile storage device from the host device via the first interface, and a second data block which is a management unit when data is written to the non-volatile storage device via the second interface, and the size of the first data block is n times or 1 / n times the size of the second data block, where n is a natural number.
[0012] Furthermore, the memory system in this disclosure is a memory system comprising a host device and a non-volatile storage device connected to the host device via a first interface and a second interface different from the first interface, wherein the non-volatile storage device comprises a control unit for controlling writes and a memory, and the memory has a first data block which is a management unit when writing data to the non-volatile storage device from the host device via the first interface and a second data block which is a management unit when writing data to the non-volatile storage device via the second interface, and when the host device writes data to the non-volatile storage device via the first interface, it obtains the size of the first data block via the first interface, selects the first data block in which the size of the recorded valid data is less than or equal to a first value and writes the data, and when the host device writes data to the non-volatile storage device via the second interface, it obtains the size of the second data block via the second interface, selects the second data block in which the size of the recorded valid data is less than or equal to a second value and writes the data, and the size of the first data block is n times or 1 / n times the size of the second data block, where n is a natural number.
[0013] Furthermore, the host device in this disclosure is connected to a non-volatile storage device via a first interface and a second interface different from the first interface, and includes a writing unit that, when writing data to the non-volatile storage device via the first interface, obtains the size of a first data block via the first interface, selects a first data block whose size of recorded valid data is less than or equal to a first value, and writes data to it, and when writing data to the non-volatile storage device via the second interface, obtains the size of a second data block via the second interface, selects a second data block whose size of recorded valid data is less than or equal to a second value, and writes data to it, wherein the first data block is a management unit when writing data to the non-volatile storage device via the first interface, and the second data block is a management unit when writing data to the non-volatile storage device via the second interface.
[0014] This disclosure makes it possible to efficiently write data when recording stream data to a non-volatile storage device having multiple interfaces. [Brief explanation of the drawing]
[0015] [Figure 1] Block diagram showing the configuration of a memory system consisting of a non-volatile storage device and a host device according to this embodiment. [Figure 2] This figure illustrates an example of a memory block in a non-volatile storage device according to this embodiment. [Figure 3] A diagram illustrating the AU bitmap according to this embodiment. [Figure 4] This figure illustrates the SGSU bitmap according to this embodiment. [Figure 5] This diagram illustrates the relationship between AU and SGSU when they are configured based on conventional technology. [Figure 6] This diagram illustrates the state of flash memory after recording a stream via the SD bus using conventional technology. [Figure 7] A diagram illustrating the relationship between AU and SGSU when both are configured based on the present embodiment [Figure 8] A diagram illustrating the state of the flash memory after a stream is recorded via the SD bus based on the present embodiment [Figure 9] A diagram comparing the state of the flash memory after a stream is recorded via the SD bus based on the conventional technology and the present embodiment [Mode for Carrying Out the Invention]
[0016] Hereinafter, the embodiments will be described in detail with appropriate reference to the accompanying drawings. However, unnecessarily detailed descriptions may be omitted in some cases. For example, detailed descriptions of already well-known matters and repeated descriptions of substantially the same configurations may be omitted. This is to avoid making the following description unnecessarily redundant and to facilitate understanding by those skilled in the art. Note that components denoted by the same reference numerals shall have the same functions in the respective embodiments.
[0017] The inventor provides the accompanying drawings and the following description to enable those skilled in the art to fully understand the present embodiment, and does not intend to limit the subject matter recited in the claims by these.
[0018] [1. Configuration and Operation of the Memory System According to the Present Embodiment] First, the configuration and operation of the memory system according to the present embodiment will be described with reference to FIGS. 1 to 6.
[0019] [1-1. Configuration of Memory System Composed of Host Device and Nonvolatile Storage Device] FIG. 1 is a block diagram illustrating a memory system configured from a nonvolatile storage device according to the present embodiment and a host device that controls the nonvolatile storage device.
[0020] As shown in Figure 1, the host device 100 consists of a first power supply unit 101 that supplies at least 3.3V power, a second power supply unit 102 that supplies 1.8V power, and a host device controller 103.
[0021] The host device controller 103 includes at least a host device interface unit 105 and a file system 106. The host device controller 103 is an example of a writing unit.
[0022] Furthermore, the host device I / F unit 105 includes an SD protocol control unit 105a and an NVMe protocol control unit 105b.
[0023] The non-volatile storage device 110 consists of at least a flash memory 111, a non-volatile storage device controller 113, and a memory bus 114 connecting the flash memory 111 and the non-volatile storage device controller 113.
[0024] The non-volatile memory device controller 113 has at least a non-volatile memory device interface unit 115.
[0025] Furthermore, the non-volatile storage device I / F unit 115 includes an SD protocol control unit 115a and an NVMe protocol control unit 115b.
[0026] The first power supply unit 101, provided in the host device 100, supplies a 3.3V power supply to the flash memory 111 and the non-volatile storage device controller 113 in the non-volatile storage device 110 via its own host device controller 103 and the VDD1 line 121. The second power supply unit 102 supplies a 1.8V power supply to the non-volatile storage device controller 113 in the non-volatile storage device 110 via its own host device controller 103 and the VDD2 line 122. In this embodiment, the host device 100 supplies two types of power supplies, 3.3V and 1.8V, to the non-volatile storage device 110, but either one of the power supplies may be supplied alone, or in combination with a power supply of another voltage value. Furthermore, the power supply lines from which power is supplied to the components in the host device 100 and the components in the non-volatile storage device 110 are not limited to the configuration shown in Figure 1.
[0027] Control signals and data signals are transmitted between the host device 100 and the non-volatile storage device 110 via the SD bus 123 or the PCIe bus 124. Signal transmission on the SD bus 123 is controlled by the SD protocol control unit 105a in the host device I / F unit 105 and the SD protocol control unit 115a in the non-volatile storage device I / F unit 115. Similarly, signal transmission on the PCIe bus 124 is controlled by the NVMe protocol control unit 105b in the host device I / F unit 105 and the NVMe protocol control unit 115b in the non-volatile storage device I / F unit 115.
[0028] The SD bus 123 and the SD protocol are collectively referred to as the SD interface, and the PCIe bus 124 and the NVMe protocol are collectively referred to as the PCIe interface.
[0029] The host device 100 can write data transmitted via the SD bus 123 or PCIe bus 124 to a predetermined area of the flash memory 111 in the non-volatile storage device 110. The host device 100 can also read data from the predetermined area of the flash memory 111 in the non-volatile storage device 110 via the SD bus 123 or PCIe bus 124.
[0030] An example of a non-volatile storage device in this embodiment is an SD Express card equipped with both an SD interface and a PCIe interface. An example of a host device is a digital camera or video camcorder that supports SD Express cards.
[0031] [1-2. Memory Blocks of Non-Volatile Storage Devices] Figure 2 illustrates the memory map of the flash memory 111 within the non-volatile storage device 110. Figures 2(a) and 2(b) illustrate the memory maps defined in the SD protocol and the NVMe protocol, respectively.
[0032] First, we will describe the characteristics of the interface-independent portion of the memory map of the flash memory 111.
[0033] The flash memory 111 is broadly divided into a system area 201 for recording management information for the non-volatile storage device and a user area 202 for recording content data such as videos and text. Unless otherwise specified below, logical addresses on the flash memory 111 are represented as 8-digit hexadecimal numbers such as 0x12345678, with 512B (bytes) as one unit, and the term "address" refers to a logical address.
[0034] The system area 201 is located as an area of a predetermined size, starting from 0x00000000, which is the starting address of the entire flash memory 111. For example, if the size of the system area 201 is 16MB, the addresses pointing to the system area 201 will be from 0x00000000 to 0x00008000, since one address unit is 512B. In this specification, the start address and the beginning address have the same meaning.
[0035] The user area 202 is located after the system area 201. In Figure 2, since the size of the system area 201 is 16MB, the starting address of the user area 202 (user area start address) is 0x00008000, and addresses are allocated up to the end address 0xZZZZZZZZ, which is determined according to the capacity of the non-volatile storage device 110. For example, the address of the user area 202 located 24GB ahead of the user area start address 0x00008000 is 0x03008000 in hexadecimal notation.
[0036] The host device 100 uses the above address to specify the location for reading and writing data within the system area 201 and the user area 202.
[0037] As explained above, in the flash memory 111 of the non-volatile storage device 110, the (logical) address indicating the location of data writing and reading is common regardless of the interface (in this embodiment, the SD interface and the PCIe interface), and the usage methods for each interface will be described below.
[0038] Figure 2(a) shows the memory map defined in the SD protocol. An AU (Allocation Unit) as defined in the SD protocol is one of the memory management units related to the erase block specific to the flash memory 111 defined on the user area 202, and is a memory block (data block) suitable for when the host device 100 writes stream data that requires real-time performance, such as video. The size of the AU is a value specific to the non-volatile storage device 110, which is held in the SD protocol control unit 115a and can be read by the host device 100 via the SD bus 123.
[0039] Figure 2(b) shows the memory map defined in the NVMe protocol. The Stream Granularity Size (SGS) defined in the NVMe protocol is the size of a memory management unit suitable for handling stream data defined on user area 202, and the corresponding memory block (data block) is called an SGS Unit (SGSU).
[0040] The SGS holds a unique value within the NVMe protocol control unit 115b, which the host device 100 can read via the PCIe bus 124.
[0041] In the SD protocol, AU corresponds to SGSU in the NVMe protocol. The non-volatile storage device 110 allows independent configuration of the size of the SGSU (SGS) and the size of the AU in the SD protocol.
[0042] [1-3. Operation of the memory system via the SD bus] First, in the memory system of this embodiment, the host device 100 will write stream data, including video, to the non-volatile storage device 110 via the SD bus 123 while guaranteeing a minimum recording speed.
[0043] The host device 100 supplies a 3.3V power supply to each component in the non-volatile storage device 110 via the VDD1 line. Subsequently, the SD protocol control unit 105a of the host device I / F unit 105 transmits and receives signals to and from the non-volatile storage device 110 via the SD bus 123, and initializes the non-volatile storage device controller 113 and the flash memory 111.
[0044] During the initialization of the flash memory 111, a file allocation table (hereinafter abbreviated as FAT) is generated, indicating at least which areas within the flash memory 111 contain valid data, and this table is stored in the system area 201. For SD cards with capacities exceeding 32GB (SDXC cards, Extended Capacity SD Memory Cards) or 2TB (SDUC cards, Ultra Capacity SD Memory Cards), the host device 100 is required to use exFAT as the file system 106. If the non-volatile storage device 110 is such an SD card, an allocation bitmap is generated instead of FAT during the initialization of the flash memory 111. This series of operations is referred to as the startup of the non-volatile storage device 110 using the SD bus 123.
[0045] After the non-volatile storage device 110 using the SD bus 123 has finished starting up, the host device 100 will be able to read and write data to the flash memory 111 in the non-volatile storage device 110 via the SD bus 123.
[0046] The file system 106 instructs the SD protocol control unit 105a in the host device I / F unit 105 to read the size of AU held in the SD protocol control unit 115a in the non-volatile storage device I / F unit 115.
[0047] Next, the file system 106 instructs the SD protocol control unit 105a to read the FAT or allocation bitmap from the system area 201 in the flash memory 111. The file system 106 compares the size of the read AU with the FAT or allocation bitmap and generates the AU bitmap shown in Figure 3. In the AU bitmap, "0" indicates an AU that cannot be stream recorded, and "1" indicates an AU that can be stream recorded.
[0048] When recording real-time stream data, such as video captured by a camera, to the non-volatile storage device 110, it is necessary to avoid situations where data writing takes a considerable amount of time, even temporarily, resulting in some data being unable to be recorded.
[0049] In particular, when the recording medium of the non-volatile storage device 110 is flash memory 111, there is no problem when writing data sequentially in ascending order of addresses within a predetermined memory block. However, when attempting to write stream data to a memory block that contains valid data, due to the characteristics of flash memory 111, it is necessary to first read the valid data into a buffer (not shown) in the non-volatile storage device controller 113, merge it with the newly written data, assign the (logical) address to a newly allocated memory block whose entire area consists of invalid data, and then write the merged data in address order. Furthermore, after reading the data from the memory block that previously contained valid data into the buffer, it is necessary to erase the data in the entire memory block and assign a different (logical) address. In this case, overhead is incurred compared to writing data sequentially in ascending order of addresses.
[0050] When the host device 100 writes stream data to the non-volatile storage device 110, in order to always guarantee that the stream data is written at a predetermined speed or higher, a rule is established that, based on the AU bitmap generated by the file system 106, only AUs that can be recorded as streams are selected and the stream data is written continuously.
[0051] In AU bitmap generation, if the total size of the valid data within the AU is less than or equal to a predetermined value, "1" is assigned to indicate that stream recording is possible; otherwise, "0" is assigned to indicate that stream recording is not possible.
[0052] Generally, when reading recorded valid data within an AU into a buffer in the non-volatile storage device controller 113, if the total size of the valid data is small, it will not incur excessive overhead. Therefore, it is possible to set an AU that satisfies this condition as stream-recordable. For example, if the size of an AU is 128MB, it may be set as stream-recordable if the total size of the valid data recorded within the AU is 16MB or less, which is 1 / 8 of 128MB.
[0053] Furthermore, for the convenience of generating AU bitmaps in the host device 100, it is possible to assign "0" to AUs that contain even a small amount of valid data, indicating that stream recording is not possible, and "1" to AUs that do not contain any valid data, indicating that stream recording is possible. In the following explanation, it will be assumed that AU bitmaps are generated according to a rule that determines whether or not stream recording is possible based on the presence or absence of valid data.
[0054] In Figure 3, AU-a and AU-d contain valid data, so the corresponding AU bitmap value is set to "0", which means stream recording is not possible. On the other hand, AU-b, AU-c, and AU-e do not contain valid data, so the corresponding AU bitmap value is set to "1", which means stream recording is possible.
[0055] The size of the AU and the area in the flash memory 111 where the valid data is recorded vary depending on the non-volatile storage device 110. Therefore, especially if the non-volatile storage device 110 is removable, the host device 100 needs to obtain the size of the AU and generate an AU bitmap each time the non-volatile storage device 110 is started using the SD bus 123.
[0056] [1-4. Operation of memory systems via PCIe bus] Next, we will describe how the host device 100 writes stream data to the non-volatile storage device 110 via the PCIe bus 124 while guaranteeing a minimum recording speed in the memory system of this embodiment.
[0057] After the host device 100 supplies a 3.3V power supply to the non-volatile storage device 110 via the VDD1 line, the SD protocol control unit 105a in the host device I / F unit 105 checks with the SD protocol control unit 115a in the non-volatile storage device I / F unit 115 via the SD bus 123 whether the non-volatile storage device 110 supports the PCIe bus 124.
[0058] When the non-volatile storage device 110 is detected to support the PCIe bus 124, the host device 100 supplies 1.8V power to the non-volatile storage device 110 from the second power supply unit 102 via the VDD2 line 122. The host device I / F unit 105 also stops its SD protocol control unit 105a and starts its NVMe protocol control unit 105b, and transmits and receives signals with the NVMe protocol control unit 115b in the non-volatile storage device I / F unit 115 via the PCIe bus 124 to initialize the non-volatile storage device controller 113 and the flash memory 111. The initialization of the flash memory 111 is performed, as in case 1-3, at least FAT or allocation bitmap This includes the operation of generating and storing in the system area 201. The above series of operations is called the startup of the non-volatile storage device 110 using the PCIe bus 124.
[0059] After the non-volatile storage device 110 using the PCIe bus 124 has finished starting up, the host device 100 will be able to read and write data to the flash memory 111 in the non-volatile storage device 110 via the PCIe bus 124.
[0060] Furthermore, when the host device 100 uses the PCIe bus 124, it may initialize the non-volatile storage device controller 113 and flash memory 111 directly via the PCIe bus 124, i.e., start the non-volatile storage device 110 using the PCIe bus 124, without performing the aforementioned verification of PCIe bus 123 support for the PCIe bus 124.
[0061] The file system 106 reads the SGS held by the NVMe protocol control unit 115b in the non-volatile storage device I / F unit 115, as well as the FAT or allocation bitmap stored in the system area 201 of the flash memory 111, from the NVMe protocol control unit 105b in the host device I / F unit 105, and generates the SGSU bitmap shown in Figure 4.
[0062] Similar to the AU bitmap, in the SGSU bitmap, SGSUs containing valid data are assigned a value of "0" to indicate that they cannot be streamed, and SGSUs that do not contain valid data are assigned a value of "1" to indicate that they can be streamed. In Figure 4, SGSU-α and SGSU-γ contain valid data, so their corresponding SGSU bitmap values are set to "0" to indicate that they cannot be streamed. On the other hand, SGSU-β and SGSU-δ do not contain valid data, so their corresponding SGSU bitmap values are set to "1" to indicate that they can be streamed. Alternatively, if the total size of the valid data is less than or equal to a predetermined value, a value of "1" may be assigned to indicate that they can be streamed, and otherwise, a value of "0" may be assigned to indicate that they cannot be streamed.
[0063] Similar to cases 1-3, the location of the valid data in the SGS and flash memory 111 varies depending on the non-volatile storage device 110. Therefore, especially if the non-volatile storage device 110 is removable, the host device 100 needs to read the SGS and generate the SGSU bitmap each time the non-volatile storage device 110 is started using the PCIe bus 124.
[0064] To ensure that stream data is always written at a predetermined speed or higher, the host device 100 applies a rule that, based on the SGSU bitmap generated by the file system 106, selects only SGSUs capable of stream recording and writes stream data to them continuously.
[0065] [1-5. Challenges of conventional methods] In the memory system of this embodiment described above, consider the case where the host device 100 first records stream data to the non-volatile storage device 110 via the SD bus 123 using a conventional method, and then subsequently records stream data to the same non-volatile storage device 110 via the PCIe bus 124.
[0066] Figure 5 shows a portion of the user area 202 of the flash memory 111 within the non-volatile storage device 110.
[0067] User area 202 is assumed to start at address 0x00008000, with the size of the AU being 128MB and the SGS being 192MB. If we allocate addresses without gaps for both the AU and SGSU starting from the beginning address 0x00008000 in user area 202, address 0x03008000 will be the starting address for both the AU and SGSU.
[0068] Let's call the AU with the starting address 0x03008000 AU-a, and the subsequent AUs AU-b and AU-c, respectively. In this case, the starting addresses of AU-b and AU-c are 0x03048000 and 0x03088000, respectively.
[0069] Furthermore, the SGSU with address 0x03008000 as its starting address is designated as SGSU-α, and the SGSU that follows it is designated as SGSU-β. In this case, the starting address of SGSU-β is 0x03068000.
[0070] First, the host device 100 starts the non-volatile storage device 110 using the SD bus 123 in the manner described in 1-3, in order to write stream data to the non-volatile storage device 110. The host device 100 selects AU-b as the AU that can be stream recorded from the created AU bitmap, and writes stream data with the same size as the AU from the starting address 0x03048000 of AU-b up to 0x03088000. After writing the stream data, the host device 100 updates the FAT or allocation bitmap stored in the system area 201 as needed, according to the data writing status to the flash memory 111.
[0071] Next, the host device 100 temporarily stops the power supply to the non-volatile storage device 110 in order to write stream data to the same non-volatile storage device 110 via the PCIe bus 124, and then starts up the non-volatile storage device 110 using the PCIe bus 124 as described in 1-4. Because the non-volatile storage device 110 is removable, the FAT or allocation bitmap is updated during the initialization process of the flash memory 111, which is included in the startup operation of the non-volatile storage device 110.
[0072] At this time, as shown in Figure 6, since valid data has already been recorded from address 0x03048000 to 0x03088000, the values of the SGSU bitmaps corresponding to SGSU-α, which has valid data from address 0x03048000 to 0x03068000, and SGSU-β, which has valid data from address 0x03068000 to 0x03088000, will both be "0". This means that stream data cannot be written to either SGSU-α or SGSU-β via PCIe bus 124.
[0073] If such writes occur across the entire user area 202, even if there is a large area of unrecorded valid data remaining in the flash memory 111, the number of SGSUs capable of stream recording will be limited, and as a result, stream recording to the flash memory 111 will become impossible shortly after the non-volatile storage device 110 is put into use. Assuming a constant stream bitrate, this results in a shorter total time for streams that can be recorded in the non-volatile storage device 110, which is undesirable for the end user.
[0074] This issue can also occur when the host device 100 initially records stream data to the non-volatile storage device 110 via the PCIe bus 124 and then records stream data via the SD bus 123, or when it continues to record stream data to the same non-volatile storage device 110 while switching interfaces.
[0075] The inventor recognized this problem during the development of the memory system and devised a solution. The details of this solution are described below.
[0076] [2. Configuration and Operation of the Memory System According to This Embodiment] This embodiment will be described below with reference to Figures 1 and 7 to 9.
[0077] Figure 1 shows the configuration of the memory system according to this embodiment.
[0078] Figure 7 shows a portion of the user area 202 of the flash memory 111 in the non-volatile storage device 110 according to this embodiment.
[0079] User area 202 is assumed to start at address 0x00008000, with the size of the AU being 128MB and the SGS being 256MB. If we allocate the AU and SGSU without any gaps starting from the beginning address 0x00008000 in user area 202, then address 0x03008000 will be the starting address for both the AU and SGSU.
[0080] Now, let's call the AU with address 0x03008000 as AU-a, and the subsequent AUs as AU-b, AU-c, and AU-d, respectively. In this case, the starting addresses of AU-b, AU-c, and AU-d will be 0x03048000, 0x03088000, and 0x030C8000, respectively.
[0081] Furthermore, the SGSU with address 0x03008000 as its starting address is designated as SGSU-α, and the SGSU that follows it is designated as SGSU-β. In this case, the starting address of SGSU-β is 0x03088000.
[0082] First, the host device 100 writes stream data to the non-volatile storage device 110 via the SD bus 123, and performs the startup of the non-volatile storage device 110 using the method described in 1-3. The host device 100 selects AU-b as the AU that can be stream-recorded from the created AU bitmap, and writes stream data with the same size as the AU from the starting address 0x03048000 of AU-b up to 0x03088000. After the stream data is written, the FAT or allocation bitmap is updated according to the data writing status to the flash memory 111.
[0083] Next, the host device 100 writes stream data to the same non-volatile storage device 110 via the PCIe bus 124. To do this, it temporarily stops the power supply to the non-volatile storage device 110 and then starts up the non-volatile storage device 110 using the PCIe bus 124 as described in 1-4. At this time, as shown in Figure 8, valid data has been recorded from address 0x03048000 to 0x03088000, so the value of the SGSU bitmap corresponding to SGSU-α becomes "0".
[0084] On the other hand, since no valid data is recorded in SGSU-β, the value of the corresponding SGSU bitmap is "1," which means that stream data can be written to SGSU-β via PCIe bus 124.
[0085] In this embodiment, the size of the stream data written by the host device 100 to the AU via the SD bus 123 was assumed to be the same as the size of the AU. However, the same effect can be obtained even if the size is smaller than the size of the AU (for example, if the size of the AU is 128MB, 100MB of stream data is written to the AU).
[0086] Figure 9 shows the relationship between AU and SGSU in a partial user area 901 contained within user area 202.
[0087] Figure 9(a) shows a part of the state of the flash memory 111 of a memory system operating based on the conventional technology described in 1-5. In this case, the size of the AU is 128 MB and the SGS is 192 MB. We also consider a partial user area 901 of 1536 MB in which 12 AUs are arranged from a predetermined address X in the order of AU-a, AU-b, and up to AU-l, and similarly, 8 SGSUs are arranged from address X in the order of SGSU-α, SGSU-β, and up to SGSU-θ.
[0088] Initially, it is assumed that no valid data is recorded in the 1536MB portion of the user area 901.
[0089] After the host device 100 starts the non-volatile storage device 110 using the SD bus 123, it sequentially writes 128MB of stream data, corresponding to the size of each AU, starting from the first address of each AU-b, AU-e, AU-h, and AU-k. As a result, 128 × 4 = 512MB of memory is consumed.
[0090] Next, the host device 100 starts the non-volatile storage device 110 using the PCIe bus 124, reads the updated FAT or allocation bitmap and creates an SGSU bitmap. At this time, the state of the flash memory 111 is as shown in Figure 9(a), so the values of all SGSU bitmaps from SGSU-α to SGSU-θ are "0". This means that even though there is 1536-512=1024MB of unrecorded space in the 1536MB partial user area 901, no stream data can be written to that partial user area 901 via the PCIe bus 124.
[0091] If such write operations are performed across the entire user area 202, the number of SGSUs with an SGSU bitmap value of "1" will decrease rapidly, making stream recording to the flash memory 111 impossible in a short time.
[0092] Figure 9(b) shows a part of the state of the flash memory 111 of a memory system operating according to this embodiment. At this time, the size of the AU is 128 MB and the SGS is 256 MB. We also consider a partial user area 901 of 1536 MB in which 12 AUs are arranged from a predetermined address X in the order of AU-a, AU-b, and up to AU-l, and similarly, 6 SGSUs are arranged from address X in the order of SGSU-α, SGSU-β, and up to SGSU-ζ.
[0093] Similar to the case in Figure 9(a), it is assumed that no valid data is recorded in the 1536MB partial user area 901 in its initial state. After the host device 100 starts the non-volatile storage device 110 using the SD bus 123, it sequentially writes 128MB of stream data, corresponding to the size of each AU, starting from the first address of each AU-b, AU-e, AU-h, and AU-k. As a result, 128 × 4 = 512MB of area is consumed.
[0094] Next, the host device 100 starts the non-volatile storage device 110 using the PCIe bus 124, reads the updated FAT or allocation bitmap and creates an SGSU bitmap. At this time, the state of the flash memory 111 is as shown in Figure 9(b), so the values of the SGSU bitmaps for SGSU-α, SGSU-γ, SGSU-δ, and SGSU-ζ are "0", while the values of the SGSU bitmaps for SGSU-β and SGSU-ε are "1" because no valid data is recorded. This means that stream data can be written to the 256x2=512MB area corresponding to SGSU-β and SGSU-ε via the PCIe bus 124, and if the bitrate of the stream to be recorded is kept constant, a longer stream can be recorded compared to the case in Figure 9(a).
[0095] [3. Consideration] The following will examine the differences between the conventional technology and this embodiment.
[0096] In a non-volatile storage device 110 that supports multiple interfaces, in Figure 9(a) based on conventional technology, the boundary of a larger memory block, such as an SGSU, may not coincide with the boundary of a smaller memory block, such as an AU. Therefore, as shown in Figure 9(a), when stream data is recorded confined to a single AU via the SD bus 123, it may be recorded across the boundary of an SGSU, and as a result, it may become impossible to record stream data via the PCIe bus 124 on both the SGSU before and after the SGSU boundary.
[0097] On the other hand, in Figure 9(b) based on this embodiment, the boundaries of the SGSUs always coincide with the boundaries of the AUs. Therefore, when the host device 100 writes similar stream data via the SD bus 123, the number of SGSUs that can maintain a value of "1" in the SGSU bitmap increases, and as a result, it becomes possible to record longer-duration stream data.
[0098] Assuming that AUs and SGSUs are placed without gaps from the starting address of user area 202, in order for the boundaries of SGSUs to always coincide with the boundaries of AUs, as shown in Figure 9(b), the size of the larger memory block, the SGSU (SGS), must be a natural number multiple of the size of the smaller memory block, the AU.
[0099] In fact, in the case of Figure 9(a), the size of SGS / AU = 192MB / 128MB = 1.5, which is not a natural number multiple, whereas in the case of Figure 9(b), the size of SGS / AU = 256MB / 128MB = 2, which is a natural number multiple.
[0100] Recent advancements in NAND memory device technology have led to the emergence of flash memory 111 with higher capacities and more complex configurations. The SGS specified in the NVMe protocol offers relatively high flexibility in configuration, and in the case of non-volatile storage devices 110 with only a PCIe interface, it is possible to set an SGS value suitable for the flash memory 111 being implemented.
[0101] On the other hand, in the case of a non-volatile storage device 110 having both an SD interface and a PCIe interface, it goes without saying that it is preferable to set the same values for the AU size and SGS to the SD protocol control unit 115a and the NVMe protocol control unit 115b, respectively. However, there are constraints on the setting values for the AU size specified in the SD protocol, and it may be difficult to make the two values match. In such cases, it is necessary to set the size of the memory block of one interface to be a natural number multiple, or (1 / natural number) times, the size of the memory block of the other interface in order to achieve stream recording with good memory usage efficiency.
[0102] In this embodiment, the host device 100 initially communicates with the non-volatile storage device 110. SD Bus 123The above describes the case where stream data is recorded via the PCIe bus 124 first, and then stream data is recorded via the SD bus 123. However, this method can also be applied to cases where stream data is recorded via the PCIe bus 124 first, and then stream data is recorded via the SD bus 123, or when stream data is continuously recorded to the same non-volatile storage device 110 while switching interfaces.
[0103] While embodiments have been described above with reference to the attached drawings, this disclosure is not limited to such examples. It will be clear to those skilled in the art that various modifications, alterations, substitutions, additions, deletions, and equivalents can be conceived within the scope of the claims, and these will also be understood to fall within the technical scope of this disclosure. Furthermore, the components of the embodiments described above may be combined in any way without departing from the spirit of the invention. [Industrial applicability]
[0104] This disclosure can be applied to non-volatile storage devices such as SD cards and microSD cards having multiple interfaces such as SD interface and PCIe interface, a host device that controls the non-volatile storage device, and a memory system comprising the host device and the non-volatile storage device. [Explanation of symbols]
[0105] 100 Host devices 101 1st power supply section 102 Second power supply section 103 Host device controller 105 Host device I / F section 105a SD Protocol Control Unit 105b NVMe protocol control unit 106 file systems 110 Non-volatile memory devices 111 Flash Memory 113 Non-volatile memory controller 114 memory bus 115 Non-volatile memory device I / F section 115a SD Protocol Control Unit 115b NVMe protocol control unit 121 VDD1 line 122 VDD2 lines 123 SD Bus 124 PCIe bus 201 System Area 202 User Area 901 Partial User Area
Claims
1. A memory system comprising a host device and a non-volatile storage device connected to the host device via a first interface and a second interface different from the first interface, The aforementioned non-volatile memory device is It comprises a control unit that controls writing, and memory, The aforementioned memory is A first data block, which is a management unit when writing data from the host device to the non-volatile storage device via the first interface, It includes a second data block, which is a management unit when writing data to the non-volatile storage device via the second interface, The aforementioned host device, When writing data to the non-volatile storage device via the first interface, the size of the first data block is obtained via the first interface, and the first data block in which the size of the recorded valid data is less than or equal to a first value is selected and the data is written to it. When writing data to the non-volatile storage device via the second interface, the size of the second data block is obtained via the second interface, and the second data block in which the size of the recorded valid data is less than or equal to the second value is selected and the data is written to it. The size of the first data block is n times or 1 / n times the size of the second data block, where n is a natural number. Memory system.
2. The address indicating the location where the data is written from the host device to the non-volatile storage device is common to both the first interface and the second interface. The memory system according to claim 1.
3. The starting address of the first data block having the lowest starting address among the first data blocks matches the starting address of the second data block having the lowest starting address among the second data blocks. The memory system according to claim 1.
4. The second interface differs from the first interface in that at least one of the bus or protocol is different. The memory system according to claim 1.
5. The first interface described above is an SD interface, The second interface is the PCI Express interface. The memory system according to claim 4.
6. The size of the first data block corresponding to the SD interface is smaller than or equal to the size of the second data block corresponding to the PCI Express interface. The memory system according to claim 5.
7. A host device connected to a non-volatile storage device via a first interface and a second interface different from the first interface, The device includes a writing unit that, when writing data to the non-volatile storage device via the first interface, obtains the size of a first data block via the first interface, selects the first data block whose size of recorded valid data is less than or equal to a first value, and writes the data to it, and when writing data to the non-volatile storage device via the second interface, obtains the size of a second data block via the second interface, selects the second data block whose size of recorded valid data is less than or equal to a second value, and writes the data to it, The first data block is a management unit when writing data to the non-volatile storage device via the first interface, The second data block is a management unit when writing data to the non-volatile storage device via the second interface. Host device.
8. The second interface differs from the first interface in that at least one of the bus or protocol is different. The host device according to claim 7.
9. The first interface described above is an SD interface, The second interface is the PCI Express interface. The host device according to claim 8.
Citation Information
Patent Citations
Recording device
JP2016009280A
Recording apparatus
JP2019020989A
Communication mode determination method
JP2019057229A
Method and control chip for performing access control of memory device
US20210064551A1
Attribute Mapping in Multiprotocol Devices
US20210382621A1
