1. Field of the Invention
The present invention relates to an area management type memory system, an area management type memory unit and an area management type memory controller which have a memory area that is logically managed as a number of areas.
2. Discussion of the Related Art
In recent years, copyrighted digital information, such as music contents, have been delivered through communication networks, such as the internet, with the development of multimedia network technology, and one can access to music and the like from anywhere in the world while being at home. Music contents can be stored, for example, in a semiconductor memory card that is connected to a personal computer (hereinafter referred to as “PC”) after being downloaded to the PC, and thereby, music can be played, if necessary, and enjoyed. In addition, a semiconductor memory card where music contents are stored in this manner can be removed from the PC and connected to a portable music reproduction unit, and thereby, one can listen to music while walking. Such a semiconductor memory card is a compact, lightweight, convenient memory unit which incorporates a nonvolatile semiconductor memory, such as a flash memory, having a large memory capacity.
In addition, such a card requires a function for protecting the copyright of the music contents, and methods for implementing this have been proposed. In JP-A 10-340487 (1998), for example, a card comprises a first area for storing encrypted music contents and a second area for storing a key that has been utilized for encrypting the music contents. The first area is an area that can be accessed with a normal access command, and the second area is an area that can be accessed only using a specific method. It is only possible to decode the encrypted music contents correctly in an apparatus into which the specific method has been provided when using such a memory unit, and therefore, it becomes possible to play music data while preventing illegal copying of the music contents.
In certain memory units, however, where, though access to the first area can be prohibited in an apparatus in which the first area is not intended to be accessed, access to the second area cannot be prohibited, or conversely, access to the second area cannot be prohibited in an apparatus in which only the first area is intended to be accessed, and thus, a problem arises where a read error occurs due to malfunctioning of the apparatus or a wrong operation by the user who utilizes this, or data is destroyed at the time of write.
The present invention is provided in view of these problems, and an object of the present invention is to prevent the occurrence of a read error and destruction of data by linking the control of access to the first area to the control of access to the second area.
An area management type memory system according the present invention comprises a nonvolatile memory, a host apparatus and a memory controller, wherein said nonvolatile memory has a first area and a second area which are separately managed, said host apparatus accesses said memory controller and requires write and read of data to and from said nonvolatile memory, and said memory controller comprises: a control part which transmits and receives a command and data to and from said host apparatus; a first access control part which controls write and read of data to and from the first area of said nonvolatile memory; a second access control part which controls write and read of data to and from the second area of said nonvolatile memory; a first access information part which stores information for determining whether or not access to the first area of said nonvolatile memory from said host apparatus is possible; a second access information part which stores information for determining whether or not access to the second area of said nonvolatile memory from said host apparatus is possible; and a link control part which determines whether or not access to the second area of said nonvolatile memory is possible on the basis of the information of said first access information part, and conveys the result to said second access control part.
An area management type memory system according the present invention comprises a nonvolatile memory, a host apparatus and a memory controller, wherein said nonvolatile memory has a first area and a second area which are separately managed, said host apparatus accesses said memory controller and requires write and read of data to and from said nonvolatile memory, and said memory controller comprises: a control part which transmits and receives a command and data to and from said host apparatus; a link information part which holds information for indicating a combination of whether or not access to the first area of said nonvolatile memory is possible and whether or not access to the second area of said nonvolatile memory is possible; a first access control part which controls write and read of data to and from the first area of said nonvolatile memory; a second access control part which controls write and read of data to and from the second area of said nonvolatile memory, and determines whether or not access to the second area of said nonvolatile memory is possible on the basis of the information of said first access information part and the information of said link information part; a first access information part which stores information for determining whether or not access to the first area of said nonvolatile memory from said host apparatus is possible; and a second access information part which stores information for determining whether or not access to the second area of said nonvolatile memory from said host apparatus is possible.
An area management type memory system according the present invention comprises a nonvolatile memory, a host apparatus and a memory controller, wherein said nonvolatile memory has a first area and a second area which are separately managed, said host apparatus has a link part which determines whether or not access to the second area of said nonvolatile memory is possible on the basis of whether or not access to the first area of said nonvolatile memory is possible, accesses said memory controller, and requires write and read of data to and from said nonvolatile memory, and said memory controller comprises: a control part which transmits and receives a command and data to and from said host apparatus; a first access control part which controls write and read of data to and from the first area of said nonvolatile memory; a second access control part which controls write and read of data to and from the second area of said nonvolatile memory; a first access information part which stores information for determining whether or not access to the first area of said nonvolatile memory from said host apparatus is possible; and a second access information part which stores information for determining whether or not access to the second area of said nonvolatile memory from said host apparatus is possible.
An area management type memory system according the present invention comprises a nonvolatile memory, a host apparatus and a memory controller, wherein said nonvolatile memory has a first area and a second area which are separately managed, said host apparatus has a link part which determines whether or not access to the second area of said nonvolatile memory is possible on the basis of whether or not access to the first area of said nonvolatile memory is possible, accesses said memory controller, and requires write and read of data to and from said nonvolatile memory, and said memory controller comprises: a control part which transmits and receives a command and data to and from said host apparatus; a link information part which holds information for indicating a combination of whether or not access to the first area of said nonvolatile memory is possible and whether or not access to the second area of said nonvolatile memory is possible; a first access control part which controls write and read of data to and from the first area of said nonvolatile memory; a second access control part which controls write and read of data to and from the second area of said nonvolatile memory; a first access information part which stores information for determining whether or not access to the first area of said nonvolatile memory from said host apparatus is possible; and a second access information part which stores information for determining whether or not access to the second area of said nonvolatile memory from said host apparatus is possible.
An area management type memory unit according the present invention comprises a nonvolatile memory and a memory controller, wherein said nonvolatile memory has a first area and a second area which are separately managed, and said memory controller comprises: a control part which transmits and receives a command and data to and from a host apparatus; a first access control part which controls write and read of data to and from the first area of said nonvolatile memory; a second access control part which controls write and read of data to and from the second area of said nonvolatile memory; a first access information part which stores information for determining whether or not access to the first area of said nonvolatile memory from said host apparatus is possible; a second access information part which stores information for determining whether or not access to the second area of said nonvolatile memory from said host apparatus is possible; and a link control part which determines whether or not access to the second area of said nonvolatile memory is possible on the basis of the information of said first access information part and conveys the result to said second access control part.
An area management type memory unit according the present invention comprises a nonvolatile memory and a memory controller, wherein said nonvolatile memory has a first area and a second area which are separately managed, and said memory controller comprises: a control part which transmits and receives a command and data to and from a host apparatus; a link information part which holds information for indicating a combination of whether or not access to the first area of said nonvolatile memory is possible and whether or not access to the second area of said nonvolatile memory is possible; a first access control part which controls write and read of data to and from the first area of said nonvolatile memory; a second access control part which controls write and read of data to and from the second area of said nonvolatile memory, and determines whether or not access to the second area of said nonvolatile memory is possible on the basis of the information of said first access information part and the information of said link information part; a first access information part which stores information for determining whether or not access to the first area of said nonvolatile memory from said host apparatus is possible; and a second access information part which stores information for determining whether or not access to the second area of said nonvolatile memory from said host apparatus is possible.
An area management type memory controller according the present invention comprises a control part, an access control part, an access information part and a link control part, and which is used for a nonvolatile memory that has a first area and a second area which are separately managed, comprising: a control part which transmits and receives a command and data to and from a host apparatus; a first access control part which controls write and read of data to and from the first area of said nonvolatile memory; a second access control part which controls write and read of data to and from the second area of said nonvolatile memory; a first access information part which stores information for determining whether or not access to the first area of said nonvolatile memory from said host apparatus is possible; a second access information part which stores information for determining whether or not access to the second area of said nonvolatile memory from said host apparatus is possible; and a link control part which determines whether or not access to the second area of said nonvolatile memory is possible on the basis of the information of said first access information part, and conveys the result to said second access control part.
An area management type memory controller according the present invention comprises a control part, a link information part, an access control part and an access information part, and which is used for a nonvolatile memory that has a first area and a second area which are separately managed, comprising: a control part which transmits and receives a command and data to and from a host apparatus; a link information part which holds information for indicating a combination of whether or not access to the first area of said nonvolatile memory is possible and whether or not access to the second area of said nonvolatile memory is possible; a first access control part which controls write and read of data to and from the first area of said nonvolatile memory; a second access control part which controls write and read of data to and from the second area of said nonvolatile memory, and determines whether or not access to the second area of said nonvolatile memory is possible on the basis of the information of said first access information part and the information of said link information part; a first access information part which stores information for determining whether or not access to the first area of said nonvolatile memory from said host apparatus is possible; and a second access information part which stores information for determining whether or not access to the second area of said nonvolatile memory from said host apparatus is possible.
According to the present invention, access to any one of areas can be controlled on the basis of whether or not access to another area is possible in a nonvolatile memory having a number of areas, and the occurrence of read error and destruction of data due to malfunctioning or a wrong operation can be prevented.
In the following, an area management type memory system, an area management type memory unit and an area management type memory controller of the present invention are described with reference to the drawings.
In contrast, in the first access information 202, the first area usable capacity is 0 GB, and the unit of address is block (for example, 512 bytes). This indicates that when the first access information 202 is set in the first access information part 103, where the first area usable capacity is 0 GB, it becomes impossible to access the first area 101. In addition, it indicates that a host apparatus of which the address unit is not block cannot access the first area 101.
In contrast, in the second access information 302, the second area usable capacity is 0 MB. This indicates that when the second access information 302 is set in the second access information part 104, where the second area usable capacity is 0 MB, it becomes impossible to access the second area 102.
On the basis of the above, the operation of the area management type memory system according to the present embodiment is described, with reference to the flowchart of
First, when the power supply is turned on, an initialization process is carried out (S401). In the initialization process, the first area 101 and the second area 102 are prepared to be accessed, and subsequently, the first access control part 105 interprets a command from the host apparatus 109, so as to identify the apparatus type of the host apparatus 109 (S402). In the case of an appropriate command that can permit access to the first area 101, the first access information 201 of
When the first area 101 is accessed, the first access control part 105 reads in the information of the first access information part 103. In the case where the first access information 201 is set in the first access information part 103, it is possible to access the first area 101 where 4 GB to 40 MB of the first area usable capacity has been reserved, and access is permitted. In contrast, in the case where the first access information 202 is set, it is impossible to access the first area 101 where the first area usable capacity is 0 GB, and access is prohibited. Here, this first area usable capacity can vary on the basis of the total memory capacity of the nonvolatile memory, the amount of data that has been written in, the file system and the like, and is not always 4 GB to 40 MB or 0 GB.
Next, the link control part 106 takes in the first access information of the first access information part 103 (S405). In the case where the first area usable capacity≦Th (Th: threshold value) is not achieved in the first access information that has been read in (S406), the link control part 106 sets the second access information to which access is made possible, in the second access information part 104 (S407). In the case where the second access information 301, for example, is set, the second area usable capacity is 40 MB, and it is possible to access the second area 102. The setting of this second access information 301 may be carried out by the second access control part 107 in compliance with an instruction from the link control part 106.
When the link control part 106 takes in the first access information 202, the first area usable capacity≦Th (Th: threshold value) is achieved (S406), and therefore, the second access information for prohibiting access to the second area 102 is set in the second access information part 104 (S408). In the case where the second access information 302, for example, is set, the second area usable capacity is 0 MB, and access to the second area 102 is prohibited. The setting of this second access information 302 may be also carried out by the link control part 106, or may be carried out via the second access control part 107.
When access to the first area 101 is prohibited in this sequential process, access to the second area 102 is also prohibited. In this case, the control part 108 carries out a process, such as return of an error, even when an access request is sent to any area from the host apparatus 109.
Though according to the present embodiment, whether or not access to the first area 101 is possible is determined by the first area usable capacity of the first access information, whether or not access is possible can be determined in accordance with other methods. An access determining flag may be provided, as in the first access information 203 of
Here, though information of an access determining flag becomes one item in the first or second access information, the same effects can be gained in the case where the access determining flag is held independently apart from the first or second access information.
In a system as described above, linking between the first and second access control parts can be achieved, and as a result, access to the first area and the second area by the host apparatus, which causes a risk of data being destroyed, can be prohibited.
The descriptions of
Next, the area management type memory system according to the present embodiment is described with reference to the flowchart of
First, when the power source is turned on, the process from the initialization to the determination of whether or not access to the first area 501 is possible is carried out in the same manner as in the first embodiment (S601 to S604). After that, the second access control part 507 takes in the first access information from the first access information part 503, and the link information from the link information part 506 (S605 and S606). Subsequently, the second access control part 507 determines whether or not access to the first area 501 is possible and access from the second area 502 from the link information is possible.
Examples of link information are shown in
In the case where access to the second area 502 is possible, the second access control part 507 sets second access information 301 in the second access information part 504 so as to permit access (S608), while in the case where access to the second area 502 is impossible, the second access control part 507 sets second access information 302 so as to prohibit access to the second area 502 (S609).
Though a combination of whether or not access to the first area 501 and the second area 502 in the link information is determined in advance, according to need of the system, but, if necessary, the combination can be changed from the host apparatus.
In addition, in the present Embodiment, whether or not access to the first area 501 and the second area 502 is possible can be determined using access determining flags, as shown in the first embodiment.
Access to the first and second areas can be controlled using link information as described above, and thereby, access to the first area and to the second area causing a risk of data being destroyed due to malfunctioning or a wrong operation can be prohibited.
A link control part 906 determines whether access to the second area 902 is permitted or prohibited in accordance with permission and prohibition, respectively, of access to the first area 901 on the basis of the first access information. In particular, this system determines whether or not access to the second area 902 is possible in the link control part 906 within the host apparatus 909.
The operation of the area management type memory system is described with reference to the flowchart of
After that, the host apparatus 909 issues a command for acquiring the first access information (S1005), and the first access information that has been set in the first access information part 903 is sent to the link control part 906 within the host apparatus 909 (S1006). The link control part 906 determines whether or not the first area usable capacity of the first access information becomes the first area usable capacity≦Th (Th: threshold value) (S1007), and permits access to the second area 902, when the capacity is greater than the threshold value (S1008). In contrast, in the case where the capacity is no greater or equal than the threshold value, access to the second area 902 is prohibited (S1009).
Namely, in the case where access to the first area 901 is prohibited, access to the second area 902 is also prohibited, while in the case where access to the first area 901 is permitted, access to the second area 902 is also permitted. After this, the link control part 906 sends either permission or prohibition of access to the second access control part 907, and the second access information that includes whether or not access to the second access information part 904 is possible is set via the second access control part 907, and thereby, access to the second area is controlled. In addition, in the case where, though no information is set in the second access information part 904 in the above manner, the link control part 906 determines prohibition of access to the second area, the similar control of access to the second area can be implemented by not implementing access to the second area on the host apparatus 909 side.
In this manner, even in the case where there is no link control part within the memory controller, it is possible to control access to the first area and second area by connecting the link control part of the host apparatus, and access to the first area or the second area by the host apparatus, which may cause a risk of data being destroyed, can be prohibited.
A link control part 1110 determines whether or not access to the second area 1102 is possible from the first access information and the link information. In particular, this system determines whether or not access to the second area 1102 is possible in the link control part 1110 within the host apparatus 1109.
The operation of the area management type memory system is described with reference to the flowchart of
After that, the host apparatus 1109 issues a command for acquiring the first access information (S1205), and the control part 1108 sends the first access information that is set in the first access information part 1103 to the link control part 1110 within the host apparatus 1109 (S1206).
Subsequently, the host apparatus 1109 issues a command for acquiring link information (S1207) and the control part 1108 sends the link information of the link information part 1106 to the link control part 1110 within the host apparatus 1109 (S1208). The link control part 1110 determines whether or not the first area usable capacity≦Th (Th: threshold value) is achieved in terms of the first access information, in the same manner as in the third embodiment, and on the basis of the result and the link information, the link control part 1110 determines whether or not access to the first area 1101 is possible and whether or not access to the second area 1102 is possible (S1209). In the case where access to the first area 1101 is permitted, for example, access to the second area 1102 is permitted when the link information is that shown in
In such an embodiment, it is possible to control access to the first area and the second area by means of the link control part of the host apparatus, and access to the first area or the second area by the host apparatus, which may cause a risk of data being destroyed, can be prohibited.
In all of the above described embodiments, though the first access information is set following the initialization after turning on the power supply, the first access information after the setting may be changed to another setting using the host apparatus, or the link information may be changed using the host apparatus. In addition, the second access control part may include a process that requires security authorization at the time of access to the second area. Furthermore, according to the present invention, even in the case where the first area and the second area use different file systems, or the first area and the second area are made of or consist of different media instead of flash memories according to the present embodiments, area management can be carried out.
It is to be understood that although the present invention has been described with regard to preferred embodiments thereof, various other embodiments and variants may occur to those skilled in the art, which are within the scope and spirit of the invention, and such other embodiments and variants are intended to be covered by the following claims.
The text of Japanese priority application no. 2004-202851 filed on 9 Jul. 2004 is hereby incorporated by reference.
Number | Date | Country | Kind |
---|---|---|---|
2004-202851 | Jul 2004 | JP | national |