KR20020020104A - Memory card having the increased input/output speed - Google Patents

Memory card having the increased input/output speed Download PDF

Info

Publication number
KR20020020104A
KR20020020104A KR1020000053117A KR20000053117A KR20020020104A KR 20020020104 A KR20020020104 A KR 20020020104A KR 1020000053117 A KR1020000053117 A KR 1020000053117A KR 20000053117 A KR20000053117 A KR 20000053117A KR 20020020104 A KR20020020104 A KR 20020020104A
Authority
KR
South Korea
Prior art keywords
data
flash memory
storage unit
memory
sram
Prior art date
Application number
KR1020000053117A
Other languages
Korean (ko)
Other versions
KR100727399B1 (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 KR1020000053117A priority Critical patent/KR100727399B1/en
Publication of KR20020020104A publication Critical patent/KR20020020104A/en
Application granted granted Critical
Publication of KR100727399B1 publication Critical patent/KR100727399B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/073Special arrangements for circuits, e.g. for protecting identification code in memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

PURPOSE: A memory card having improved data input/output speed is provided to maintain a record without the separate power supply, and to provide the memory card integrating the characteristic of a cheap flash memory and the characteristic of a high speed SRAM. CONSTITUTION: The memory card(10) comprises a flash memory(100) being capable of storing data without the separate power supply, an SRAM(Static Random Access Memory,300) connecting to the flash memory and storing a part of flash memory data, and a memory controller(200) controlling the data transmission between the flash memory or SRAM and the outside, and maintaining the data consistency between the flash memory and SRAM. The SRAM includes a reading cache(310) temporarily storing the data outputted to the outside of the flash memory and a writing cache(320) temporarily storing the data inputted from the outside.

Description

데이터 입출력 속도가 증가된 메모리 카드{MEMORY CARD HAVING THE INCREASED INPUT/OUTPUT SPEED}Memory card with increased data input / output speed {MEMORY CARD HAVING THE INCREASED INPUT / OUTPUT SPEED}

본 발명은 데이터 입출력 속도가 증가된 메모리 카드에 관한 것으로서, 더욱 상세하게 말하자면 촬영된 영상을 저장하고, 판독하는 속도가 향상된 메모리 카드에 관한 것이다.The present invention relates to a memory card having an increased data input / output speed, and more particularly, to a memory card having an improved speed of storing and reading a photographed image.

최근 디지털 카메라 시스템용으로 각광을 받고 있는 플래시 메모리를 이용한 메모리 카드는 DRAM이나 SRAM과 달리 전원이 공급되지 않아도 기록된 내용이 지워지지 않는다는 점 때문에 하드디스크를 대체하여 사용되고 있다.Recently, memory cards using flash memory, which has been in the spotlight for digital camera systems, have been used in place of hard disks because, unlike DRAM or SRAM, recorded contents are not erased even when power is not supplied.

그러나, 이러한 메모리 카드는 DRAM 이나 SRAM에 비해 데이터 입출력 속도가 느리다는 문제점이 있다.However, such a memory card has a problem in that data input / output speed is slower than that of DRAM or SRAM.

특히 메모리 카드 내에 파일을 생성하거나 특정 파일 데이터를 갱신하는 경우 FAT(File Allocation Table) 파일 시스템의 특성에 따른 FAT 및 디렉토리 액세스 시간이 많이 걸려 전체적인 입출력 성능이 저하된다.In particular, when creating a file or updating specific file data in a memory card, the FAT and directory access time are increased according to the characteristics of the File Allocation Table (FAT) file system, thereby reducing overall I / O performance.

또한, 특정 섹터를 자주 액세스함으로써 다른 메모리에 비해서 그 수명이 비교적 짧아진다.In addition, frequent access to a particular sector shortens its lifespan compared to other memories.

이러한 문제점을 해결하기 위해 SRAM을 이용한 메모리 카드도 있으나 용량에 따른 가격이 플래시 메모리에 비해서 비싸고, SRAM에 기록된 내용을 유지하기 위해서는 전원 공급이 요구되므로 전원을 공급해줄 배터리를 메모리 카드에 내장해야 하므로 무겁고 수명이 한정되어 있다는 문제점이 있다.There are some memory cards using SRAM to solve this problem, but the price according to the capacity is more expensive than flash memory, and power is required to maintain the contents written in SRAM. Therefore, a battery to supply power must be built in the memory card. The problem is that it is heavy and has a limited lifetime.

따라서, 본 발명의 목적은 상기한 종래의 문제점을 해결하기 위한 것으로, 별도의 전원 장치 없이 기록을 유지하며, 저렴한 플래시 메모리의 특성과 빠른 속도의 SRAM의 특성을 결합한 메모리 카드를 제공하는 데 있다.Accordingly, an object of the present invention is to provide a memory card that combines the characteristics of a low-speed flash memory with the characteristics of a high speed SRAM while maintaining a recording without a separate power supply device.

도 1은 본 발명의 실시예에 따른 메모리 카드의 블록도이다.1 is a block diagram of a memory card according to an embodiment of the present invention.

도 2는 본 발명의 실시예에 따른 메모리 카드로부터 데이터를 읽는 동작에 대한 순서도이다.2 is a flowchart of an operation of reading data from a memory card according to an embodiment of the present invention.

도 3은 본 발명의 실시예에 따른 메모리 카드에 데이터를 기록하는 동작에 대한 순서도이다.3 is a flowchart of an operation of writing data to a memory card according to an embodiment of the present invention.

도 4는 본 발명의 실시예에 따른 메모리 카드에서 SRAM 내의 데이터를 플래시 메모리로 갱신하는 동작에 대한 순서도이다.4 is a flowchart illustrating an operation of updating data in an SRAM to a flash memory in a memory card according to an exemplary embodiment of the present invention.

상기한 목적을 달성하기 위한 수단으로서 본 발명은 별도의 전원 공급 없이 데이터 저장이 가능한 플래시 메모리; 상기 플래시 메모리에 접속되며, 상기 플래시 메모리의 일부 데이터를 저장하는 임시 저장부; 및 상기 플래시 메모리 및 임시저장부와 외부와의 데이터 전송을 제어하고, 상기 플래시 메모리와 임시 저장부 사이의 데이터 일관성이 유지되도록 제어하는 메모리 제어부를 포함한다.The present invention as a means for achieving the above object is a flash memory capable of storing data without a separate power supply; A temporary storage unit connected to the flash memory and storing some data of the flash memory; And a memory controller which controls data transmission between the flash memory and the temporary storage unit and the outside and maintains data consistency between the flash memory and the temporary storage unit.

상기 임시 저장부는 상기 플래시 메모리로부터 외부로 출력되는 데이터가 임시 저장되는 읽기 저장부 및 외부로부터 입력되는 데이터가 임시 저장되는 쓰기 저장부로 구분하여 사용되지만, 별도의 구분없이 사용하여도 좋다.The temporary storage unit may be divided into a read storage unit for temporarily storing data output from the flash memory and a write storage unit for temporarily storing data input from the outside, but may be used without separate classification.

또한, 상기 임시 저장부는 복수의 섹터 데이터를 저장하며, 상기 섹터 관련 정보가 저장되는 특정 저장부를 포함할 수 있다.The temporary storage unit may store a plurality of sector data, and may include a specific storage unit in which the sector related information is stored.

상기 특정 정보 저장부는 상기 임시 저장부에 저장된 특정 섹터 데이터가 상기 플래시 메모리에 저장된 상기 특정 섹터에 대응되는 데이터와 동일한 지의 여부를 나타내는 상태 표시 비트를 포함할 수 있다.The specific information storage unit may include a status indication bit indicating whether specific sector data stored in the temporary storage unit is the same as data corresponding to the specific sector stored in the flash memory.

또한, 상기 임시 저장부는 외부로부터 전원이 공급되는 때에 초기화되며, 상기 쓰기 저장부의 크기는 특정 조건에 맞게 최적화되는 것이 바람직하다.The temporary storage unit may be initialized when power is supplied from the outside, and the size of the write storage unit may be optimized according to a specific condition.

또한, 상기 임시 저장부로의 데이터 입력시 상기 임시 저장부 내에 새로운 데이터를 저장할 빈 공간이 없는 경우, 필요한 알고리즘을 사용하여 새로운 데이터를 저장할 빈 공간을 준비하는 것이 바람직하다.In addition, when there is no empty space for storing new data in the temporary storage unit when data is input to the temporary storage unit, it is preferable to prepare an empty space for storing new data using a required algorithm.

이하, 본 발명의 실시예에 대해 첨부된 도면을 참조하여 상세히 설명한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 발명의 실시예에 따른 메모리 카드의 블록도이다.1 is a block diagram of a memory card according to an embodiment of the present invention.

도 1에 도시되어 있듯이, 본 발명의 실시예에 따른 메모리 카드(10)는 플래시 메모리(100), 메모리 제어부(200), 및 SRAM(300)을 포함한다.As shown in FIG. 1, a memory card 10 according to an exemplary embodiment of the present invention includes a flash memory 100, a memory controller 200, and an SRAM 300.

플래시 메모리(100)는 촬영된 영상 등을 포함하는 데이터를 저장하는 1차 메모리이다.The flash memory 100 is a primary memory that stores data including a captured image.

SRAM(300)은 플래시 메모리(100)에 대해 캐시(cache) 역할을 하는 2차 메모리이며, 그 크기는 플래시 메모리(100)에 비해 소량이다.The SRAM 300 is a secondary memory that serves as a cache for the flash memory 100, and its size is smaller than that of the flash memory 100.

메모리 제어부(200)는 플래시 메모리(100) 및 SRAM(200)의 동작을 제어한다.The memory controller 200 controls the operations of the flash memory 100 and the SRAM 200.

즉, 디지털 카메라 시스템의 커넥터(20)로부터 입력되는 명령어를 디코딩(decoding)하고, 플래시 메모리(100) 또는 SRAM(300)으로부터 데이터를 읽어서 커넥터(20)로 전달하며, 또한 커넥터(20)로부터 입력되는 데이터를 플래시 메모리(100) 또는 SRAM(300)에 기록한다.That is, it decodes a command input from the connector 20 of the digital camera system, reads data from the flash memory 100 or the SRAM 300, and transfers the data to the connector 20, and also inputs from the connector 20. The data to be written into the flash memory 100 or the SRAM 300.

SRAM(300)은 읽기 캐시(310)와 쓰기 캐시(320)로 이루어지며, 각 캐시는 복수 개의 섹터(sector)를 구비한다.SRAM 300 is composed of a read cache 310 and a write cache 320, each cache has a plurality of sectors (sector).

즉, 읽기 캐시(310)와 쓰기 캐시(320)의 각 섹터들은 디지털 카메라 시스템에 의해 읽혀지거나 쓰여지는 섹터의 빠른 복사본으로 사용된다.That is, each sector of read cache 310 and write cache 320 is used as a quick copy of the sector read or written by the digital camera system.

특히, 쓰기 캐시(320)로 사용되는 섹터의 숫자는 메모리 카드(10)가 커넥터(20)로부터 빠져나오는 동안에 플래시 메모리(100)로 기록될 수 있는 섹터의 숫자와 동일하다.In particular, the number of sectors used as the write cache 320 is equal to the number of sectors that can be written to the flash memory 100 while the memory card 10 exits the connector 20.

또한, SRAM(300)에는 데이터가 기록된 섹터 정보가 저장되어 있는 섹터 테이블이 포함된다. 따라서, 메모리 제어부(200)는 SRAM(300) 내에 있는 섹터 테이블을 검색하여 해당 섹터 데이터가 SRAM(300) 내에 기록되어 있는지를 알 수 있다.The SRAM 300 also includes a sector table in which sector information on which data is recorded is stored. Accordingly, the memory controller 200 may search the sector table in the SRAM 300 to determine whether the corresponding sector data is recorded in the SRAM 300.

또한, 커넥터(20)로부터 입력되어 쓰기 캐시(320)로 기록되는 데이터의 경우, 해당 섹터가 플래시 메모리(100)에도 있는 때에는 쓰기 캐시(320)에 기록된 데이터가 정확한 데이터이므로, 이러한 상태를 표시하기 위해 섹터 테이블에는 해당 섹터의 데이터가 정확한 데이터인지를 표시하기 위한 변조 상태 비트가 구비된다.In addition, in the case of data input from the connector 20 and written to the write cache 320, when the corresponding sector is also present in the flash memory 100, since the data written to the write cache 320 is correct data, this state is indicated. In order to do this, the sector table is provided with a modulation status bit for indicating whether the data of the sector is correct data.

이 변조 상태 비트가 온 상태인 경우에는 쓰기 캐시(320)에 기록되어 있는 데이터가 정확한 데이터이기 때문에, 필요한 경우 메모리 제어부(200)는 해당 섹터의 데이터를 플래시 메모리(100)의 해당 섹터에 기록하여 데이터의 일관성을 유지시켜 준다.When the modulation status bit is in the on state, since the data recorded in the write cache 320 is correct data, the memory controller 200 writes the data of the sector in the corresponding sector of the flash memory 100 if necessary. Keep data consistent

메모리 제어부(200)는 SRAM(300) 내에 저장되어 있는 섹터에 대해서는 SRAM(300)에만 읽거나 쓰는 동작을 하고, SRAM(300)의 용량을 초과하는 부분에 대해서만 플래시 메모리(100)에 쓰거나 플래시 메모리(100)로부터 읽는 동작을 한다.The memory controller 200 reads or writes only the sectors stored in the SRAM 300 only in the SRAM 300, and writes or writes the flash memory 100 only to a portion exceeding the capacity of the SRAM 300. Read operation from 100 is performed.

또한, 디지털 카메라 시스템에 의해 이미 읽혀져서 플래시 메모리(100)로부터 SRAM(300)에 전달되어 저장된 섹터 중 오래동안 사용되지 않은 섹터는 새로운 섹터가 읽혀지거나 쓰여질 때 폐기된다. 특히, SRAM(300)에 저장된 쓰여질 섹터 중 오래된 섹터는 새로운 섹터가 쓰여지면 실제로 플래시 메모리(100)로 기록된다.In addition, sectors that have already been read by the digital camera system and transferred from the flash memory 100 to the SRAM 300 that have not been used for a long time are discarded when a new sector is read or written. In particular, the old one of the sectors to be written in the SRAM 300 is actually written to the flash memory 100 when a new sector is written.

메모리 제어부(200)는 SRAM(300) 내의 읽기 캐시(310) 및 쓰기 캐시(320)에 대한 캐시 관리 동작을 수행한다. 이 때, 우수한 캐시 관리 알고리즘이 사용되는 경우 읽기 캐시(310) 및 쓰기 캐시(320)를 통한 데이터 입출력 속도가 향상된다.The memory controller 200 performs a cache management operation on the read cache 310 and the write cache 320 in the SRAM 300. In this case, when an excellent cache management algorithm is used, data input / output speed through the read cache 310 and the write cache 320 is improved.

SRAM(300)은 메모리 카드(10)가 디지털 카메라 시스템의 커넥터(20)에 삽입될 때 초기화된다.The SRAM 300 is initialized when the memory card 10 is inserted into the connector 20 of the digital camera system.

또한, SRAM(300)의 쓰기 캐시(320)에 저장된 데이터는 메모리 카드(10)가 커넥터(20)에서 빠질 때 플래시 메모리(100)로 기록된다.In addition, data stored in the write cache 320 of the SRAM 300 is written to the flash memory 100 when the memory card 10 is removed from the connector 20.

메모리 제어부(200)는 SRAM(300) 내의 읽기 캐시(310) 및 쓰기 캐시(320) 내에 빈 공간이 없는 경우, 특정 알고리즘, 예를 들어 LRU(Least Recently Used) 알고리즘을 사용하여 빈 공간을 준비할 수 있다. 상기 LRU 알고리즘 이외의 다른 알고리즘을 사용하여도 좋다. 상기 LRU 알고리즘은 특별한 하드웨어에 의한 액세스 시간 관리 등이 필요하지만, 특별한 하드웨어를 사용하는 경우 메모리 카드(10)의 크기 및 무게 등이 증가되므로, 본 발명에서는 간략화된 알고리즘을 사용한다.When there is no free space in the read cache 310 and the write cache 320 in the SRAM 300, the memory controller 200 may prepare a free space using a specific algorithm, for example, a Least Recently Used (LRU) algorithm. Can be. Algorithms other than the LRU algorithm may be used. The LRU algorithm requires access time management by special hardware. However, when the special hardware is used, the size and weight of the memory card 10 is increased, and thus the present invention uses a simplified algorithm.

상기 간략화된 LRU 알고리즘은 SRAM(300)의 특정 섹터 부분에 대한 액세스가 있는 경우 액세스된 시간을 별도로 기록한 후, LRU 알고리즘을 적용하는 시점에서 액세스된 시간이 가장 오래된 섹터를 빈 공간으로 준비시키는 것이다.The simplified LRU algorithm records separately the time accessed when there is access to a specific sector portion of the SRAM 300, and then prepares the empty sector with the oldest time accessed at the time of applying the LRU algorithm.

이하, 첨부된 도 2 내지 도 4를 참조하여 본 발명의 실시예에 따른 데이터 입출력 속도가 증가된 메모리 카드의 동작에 대하여 설명한다.Hereinafter, an operation of a memory card having an increased data input / output speed according to an embodiment of the present invention will be described with reference to FIGS. 2 to 4.

도 2는 본 발명의 실시예에 따른 메모리 카드(10)로부터 데이터를 읽는 동작에 대한 순서도이다.2 is a flowchart of an operation of reading data from the memory card 10 according to an embodiment of the present invention.

디지털 카메라 시스템의 사용자가 메모리 카드(10) 내에 기록된 데이터를 읽기 위한 명령을 수행시키면, 디지털 카메라 시스템의 커넥터(20)를 통해 메모리 카드(10)의 메모리 제어부(200)로 해당 명령이 전달된다.When the user of the digital camera system executes a command for reading data recorded in the memory card 10, the command is transmitted to the memory controller 200 of the memory card 10 through the connector 20 of the digital camera system. .

메모리 제어부(200)는 디지털 카메라 시스템으로부터 메모리 카드(10) 내에 기록된 데이터를 읽는 명령이 입력되면, 읽고자 하는 부분의 섹터 데이터가 SRAM(300) 내에 저장되어 있는지를 판단하기 위해 SRAM(300)의 섹터 테이블을 검색한다(S10).When a command for reading data recorded in the memory card 10 is input from the digital camera system, the memory controller 200 determines whether the sector data of the portion to be read is stored in the SRAM 300. The sector table of S is searched (S10).

섹터 테이블 검색 결과, 해당 섹터 데이터가 SRAM(300) 내에 존재하지 않는 것으로 판단되는 경우(S20), 섹터 테이블 내에 새로운 섹터가 삽입될 수 있는 빈 공간이 존재하는지를 판단한다(S30).As a result of the sector table search, when it is determined that the corresponding sector data does not exist in the SRAM 300 (S20), it is determined whether there is an empty space in which a new sector can be inserted in the sector table (S30).

섹터 테이블 내에 빈 공간이 존재하는 경우, 해당 빈 공간을 새로운 섹터 데이터가 저장될 장소로 지정한다(S40). 한편, 섹터 테이블 내에 빈 공간이 존재하지 않는 경우, LRU(Least Recently Used)를 적용하여 준비되는 빈 공간을 새로운 섹터 데이터가 저장될 장소로 지정한다(S50, S40).If an empty space exists in the sector table, the corresponding empty space is designated as a place where new sector data is to be stored (S40). On the other hand, when no empty space exists in the sector table, the empty space prepared by applying Least Recently Used (LRU) is designated as a place to store new sector data (S50 and S40).

다음, 메모리 제어부(200)는 플래시 메모리(100)에서 해당 섹터 데이터를 읽어은 후(S60), SRAM(300)의 지정된 장소에 저장하는 동시에 커넥터(20)로 출력한다(S70).Next, the memory controller 200 reads the corresponding sector data from the flash memory 100 (S60), stores the data in the designated place of the SRAM 300, and outputs the same to the connector 20 (S70).

한편, 상기 단계(S20)에서 섹터 테이블 검색 결과, 해당 섹터 데이터가 SRAM(300) 내에 존재하는 것으로 판단되는 경우(S20), 해당 섹터 데이터를 커넥터로 출력한다(S80).On the other hand, if it is determined that the sector data is present in the SRAM 300 as a result of the sector table search in step S20 (S20), the sector data is output to the connector (S80).

상기한 바와 같이, 디지털 카메라 시스템이 커넥터(20)에 삽입된 메모리 카드(10)로부터 데이터를 읽는 경우, SRAM(300) 내에 해당 데이터가 이미 기록되어 있으면 매우 빠른 속도로 해당 데이터를 읽을 수 있다.As described above, when the digital camera system reads data from the memory card 10 inserted into the connector 20, if the data is already recorded in the SRAM 300, the data can be read at a very high speed.

도 3은 본 발명의 실시예에 따른 메모리 카드(10)에 데이터를 기록하는 동작에 대한 순서도이다.3 is a flowchart of an operation of writing data to the memory card 10 according to an embodiment of the present invention.

디지털 카메라 시스템이 메모리 카드(10)에 촬영 데이터 등의 특정 데이터를 기록하기 위해 해당 명령과 함께 기록할 데이터를 전달하는 경우, 메모리제어부(200)는 해당 데이터의 크기가 SRAM(300) 내의 쓰기 캐시(320)의 크기를 초과하는지의 여부를 판단한다(S100).When the digital camera system transfers data to be recorded with a corresponding command to record specific data such as photographing data to the memory card 10, the memory controller 200 writes a cache of the size of the data in the SRAM 300. It is determined whether the size exceeds 320 (S100).

만일 입력 데이터의 크기가 SRAM(300) 내의 쓰기 캐시(320)의 크기를 초과하지 않는 경우, 메모리 제어부(200)는 쓰기 캐시(320) 내에 빈 공간이 있는지의 여부를 판단한다(S110).If the size of the input data does not exceed the size of the write cache 320 in the SRAM 300, the memory controller 200 determines whether there is an empty space in the write cache 320 (S110).

쓰기 캐시(320) 내에 빈 공간이 존재하면, 메모리 제어부(200)는 커넥터(20)로부터 입력되는 데이터를 해당 빈 공간에 기록한 후(S130), 섹터 테이블 내의 해당 변조 상태 비트를 온시킨다(S140).If an empty space exists in the write cache 320, the memory controller 200 writes data input from the connector 20 to the corresponding empty space (S130), and then turns on the corresponding modulation status bit in the sector table (S140). .

이 변조 상태 비트는 해당 섹터 내에 새로운 데이터가 기록되었으므로, 플래시 메모리(100) 내에 해당 섹터가 있는 경우에는 그 데이터는 이미 새로운 데이터에 의해 변조되었으므로, 후에 새로운 데이터로 갱신되어야 한다는 것을 의미한다.This modulation status bit means that new data has been written in the sector, and therefore, if there is a sector in the flash memory 100, the data has already been modulated by the new data and must be updated later with new data.

만일 쓰기 캐시(320) 내에 빈 공간이 존재하지 않는 경우, LRU를 적용하여 빈 공간을 준비한 후(S120), 해당 빈 공간에 입력 데이터를 기록하고 해당 변조 상태 비트를 온 시키는 상기 단계(S130, S140)를 반복한다.If no empty space exists in the write cache 320, after preparing an empty space by applying an LRU (S120), the input data is written in the corresponding empty space and the corresponding modulation status bits are turned on (S130, S140). Repeat).

한편, 입력 데이터의 크기가 쓰기 캐시(320)의 크기를 초과하는 경우, 메모리 제어부(200)는 LRU를 적용하여 빈 공간을 준비하면서 해당 입력 데이터를 쓰기 캐시(320)에 기록한 후, 해당 변조 상태 비트를 온시킨다(S140, S120, S130). 이 때, 쓰기 캐시(320)를 초과하는 부분의 데이터는 쓰기 캐시(320) 내에 기록된 후, 즉시 플래시 메모리(100)에 기록됨으로써 쓰기 캐시(320)를 초과하는 입력 데이터에 대해서도 기록 동작이 완료될 수 있다.On the other hand, when the size of the input data exceeds the size of the write cache 320, the memory controller 200 writes the corresponding input data to the write cache 320 while preparing the empty space by applying the LRU, and then the corresponding modulation state Turn on the bit (S140, S120, S130). At this time, the data of the portion exceeding the write cache 320 is written in the write cache 320, and then immediately written to the flash memory 100, so that the write operation is completed for the input data exceeding the write cache 320. Can be.

상기한 바와 같이, 디지털 카메라 시스템이 커넥터(20)에 삽입된 메모리 카드(10)로 데이터를 기록하는 경우, 기록 속도가 빠른 SRAM(300) 내에 모든 입력 데이터를 기록함으로써 데이터 기록 속도가 매우 빨라진다.As described above, when the digital camera system writes data to the memory card 10 inserted in the connector 20, the data writing speed becomes very fast by recording all input data in the SRAM 300 having a high writing speed.

도 4는 본 발명의 실시예에 따른 메모리 카드(10)에서 SRAM(300) 내의 데이터를 플래시 메모리(100)로 갱신하는 동작에 대한 순서도이다.4 is a flowchart illustrating an operation of updating data in the SRAM 300 to the flash memory 100 in the memory card 10 according to an exemplary embodiment of the present invention.

상기 동작은 사용자가 디지털 카메라 시스템의 커넥터(20)로부터 메모리 카드(10)를 빼는 경우 실행되는 동작이다.The above operation is performed when the user pulls out the memory card 10 from the connector 20 of the digital camera system.

이 경우, 메모리 제어부(200)는 SRAM(300) 내의 쓰기 캐시(320)에 기록된 데이터를 플래시 메모리(100)로 전달하여 해당 데이터가 계속 유지되도록 한다.In this case, the memory controller 200 transfers the data recorded in the write cache 320 in the SRAM 300 to the flash memory 100 so that the corresponding data is maintained.

먼저, 메모리 제어부(200)는 섹터 테이블 내의 해당 변조 상태 비트가 온 상태인지의 여부를 판단한다(S200). 해당 변조 상태 비트가 온 상태이면 쓰기 캐시(320) 내에 기록된 데이터가 정확한 데이터이므로 플래시 메모리(100)로의 갱신이 요구되며, 만일 해당 변조 상태 비트가 오프 상태이면 쓰기 캐시(320) 내에 기록된 데이터와 플래시 메모리(100) 내의 데이터가 동일하므로 해당 데이터의 갱신이 필요없게 된다.First, the memory controller 200 determines whether the corresponding modulation state bit in the sector table is on (S200). If the modulation status bit is on, the data written in the write cache 320 is correct data, so an update to the flash memory 100 is required. If the modulation status bit is off, the data written in the write cache 320 is off. Since the data in the flash memory 100 and the same are the same, there is no need to update the data.

따라서, 변조 상태 비트가 온 상태이면, 메모리 제어부(200)는 해당 데이터를 플래시 메모리(100)로 전달하여 기록하고(S210), 변조 상태 비트가 오프 상태이면 그냥 폐기시킨다(S220). 이 때, 폐기 동작 실행을 위해 메모리 제어부(200)가 별도의 동작을 실행할 필요는 없다.Therefore, when the modulation state bit is in the on state, the memory controller 200 transfers the data to the flash memory 100 and records the data (S210), and discards the modulation state bit when the modulation state bit is in the off state (S220). In this case, the memory controller 200 does not need to execute a separate operation to execute the discard operation.

한편, 상기 갱신 동작은 특정 조건, 예를 들어 디지털 카메라 시스템이 다른작업을 수행하지 않는 조건 또는 특정 주기마다 수행되는 조건 등에서도 동일하게 수행될 수 있다.Meanwhile, the update operation may be performed in a specific condition, for example, a condition in which the digital camera system does not perform another task or a condition performed every specific period.

비록, 본 발명이 가장 실제적이며 바람직한 실시예를 참조하여 설명되었지만, 본 발명은 상기 개시된 실시예에 한정되지 않으며, 후술되는 특허청구범위 내에 속하는 다양한 변형 및 등가물들도 포함한다.Although the present invention has been described with reference to the most practical and preferred embodiments, the present invention is not limited to the above disclosed embodiments, but also includes various modifications and equivalents within the scope of the following claims.

본 발명에 따르면, 비교적 간단한 캐시 관리 알고리즘을 사용하여 자주 액세스되는 섹터를 캐시 메모리를 사용하여 액세스하도록 함으로써, 파일 생성시나 갱신시 FAT 및 디렉토리 액세스 시간이 매우 단축되어 전체적인 입출력 성능이 향상되고, 또한 특정 섹터를 자주 액세스함에 따라서 기타 메모리에 비해서 비교적 짧은 수명을 가지는 플래시 메모리의 수명을 증가시킬 수 있다.According to the present invention, by accessing frequently accessed sectors using cache memory using a relatively simple cache management algorithm, the FAT and directory access time during file creation or update can be greatly shortened to improve overall I / O performance and Frequently accessing sectors can increase the lifetime of flash memory, which has a relatively short lifespan compared to other memories.

Claims (6)

별도의 전원 공급 없이 데이터 저장이 가능한 플래시 메모리;Flash memory capable of storing data without a separate power supply; 상기 플래시 메모리에 접속되며, 상기 플래시 메모리의 일부 데이터를 저장하는 임시 저장부; 및A temporary storage unit connected to the flash memory and storing some data of the flash memory; And 상기 플래시 메모리 및 임시 저장부와 외부와의 데이터 전송을 제어하고, 상기 플래시 메모리와 임시 저장부 사이의 데이터 일관성이 유지되도록 제어하는 메모리 제어부A memory controller which controls data transmission between the flash memory and the temporary storage unit and the outside and maintains data consistency between the flash memory and the temporary storage unit 를 포함하는 메모리 카드.Memory card comprising a. 제1항에 있어서,The method of claim 1, 상기 임시 저장부는 상기 플래시 메모리로부터 외부로 출력되는 데이터가 임시 저장되는 읽기 저장부 및 외부로부터 입력되는 데이터가 임시 저장되는 쓰기 저장부를 포함하는 메모리 카드.The temporary storage unit includes a read storage unit for temporarily storing data output from the flash memory to the outside and a write storage unit for temporarily storing data input from the outside. 제1항에 있어서,The method of claim 1, 상기 임시 저장부는 복수의 섹터 데이터를 저장하며, 상기 섹터 관련 정보가 저장되는 특정 정보 저장부를 포함하는 메모리 카드.And the temporary storage unit stores a plurality of sector data, and includes a specific information storage unit in which the sector related information is stored. 제3항에 있어서,The method of claim 3, 상기 특정 정보 저장부는 상기 임시 저장부에 저장된 특정 섹터 데이터가 상기 플래시 메모리에 저장된 상기 특정 섹터에 대응되는 데이터와 동일한 지의 여부를 나타내는 상태 표시 비트를 포함하는 메모리 카드.And the specific information storage section includes a status indication bit indicating whether or not specific sector data stored in the temporary storage section is the same as data corresponding to the specific sector stored in the flash memory. 제2항에 있어서,The method of claim 2, 상기 임시 저장부는 외부로부터 전원이 공급되는 때에 초기화되며,The temporary storage unit is initialized when power is supplied from the outside, 상기 쓰기 저장부의 크기는 외부로부터의 전원 공급이 중단되는 때에 상기 쓰기 저장부로부터 상기 플래시 메모리로 전송되어 기록될 수 있는 데이터의 크기에 해당되는The size of the write storage unit corresponds to the size of data that can be transferred from the write storage to the flash memory when the power supply from the outside is stopped. 메모리 카드.Memory card. 제1항에 있어서,The method of claim 1, 상기 임시 저장부로의 데이터 입력시 상기 임시 저장부 내에 새로운 데이터를 저장할 빈 공간이 없는 경우, LRU(Least Recently Used) 알고리즘을 사용하여 새로운 데이터를 저장할 빈 공간을 준비하는 것을 특징으로 하는 메모리 카드.When there is no empty space for storing new data in the temporary storage unit when data is input to the temporary storage unit, the memory card is prepared by using a least recently used (LRU) algorithm.
KR1020000053117A 2000-09-07 2000-09-07 Memory card having the increased input/output speed KR100727399B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020000053117A KR100727399B1 (en) 2000-09-07 2000-09-07 Memory card having the increased input/output speed

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020000053117A KR100727399B1 (en) 2000-09-07 2000-09-07 Memory card having the increased input/output speed

Publications (2)

Publication Number Publication Date
KR20020020104A true KR20020020104A (en) 2002-03-14
KR100727399B1 KR100727399B1 (en) 2007-06-12

Family

ID=19687956

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020000053117A KR100727399B1 (en) 2000-09-07 2000-09-07 Memory card having the increased input/output speed

Country Status (1)

Country Link
KR (1) KR100727399B1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7255270B2 (en) 2004-07-12 2007-08-14 Samsung Electronics Co., Ltd. Method and apparatus for searching rights objects stored in portable storage device using object location data
KR100758301B1 (en) * 2006-08-04 2007-09-12 삼성전자주식회사 Memory card and method storing data thereof
US8032941B2 (en) 2004-09-16 2011-10-04 Samsung Electronics Co., Ltd. Method and apparatus for searching for rights objects stored in portable storage device object identifier

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07325898A (en) * 1994-06-02 1995-12-12 Hitachi Ltd Storage device
JPH0863396A (en) * 1994-08-24 1996-03-08 Fuji Electric Co Ltd Disk cache device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7255270B2 (en) 2004-07-12 2007-08-14 Samsung Electronics Co., Ltd. Method and apparatus for searching rights objects stored in portable storage device using object location data
US7571852B2 (en) 2004-07-12 2009-08-11 Samsung Electronics Co., Ltd. Method and apparatus for searching rights objects stored in portable storage device using object location data
US8032941B2 (en) 2004-09-16 2011-10-04 Samsung Electronics Co., Ltd. Method and apparatus for searching for rights objects stored in portable storage device object identifier
KR100758301B1 (en) * 2006-08-04 2007-09-12 삼성전자주식회사 Memory card and method storing data thereof
US8321633B2 (en) 2006-08-04 2012-11-27 Samsung Electronics Co., Ltd. Memory card and method for storing data on memory card

Also Published As

Publication number Publication date
KR100727399B1 (en) 2007-06-12

Similar Documents

Publication Publication Date Title
TWI590049B (en) Memory device and operating method of same
US5627783A (en) Semiconductor disk device
US5740396A (en) Solid state disk device having a flash memory accessed by utilizing an address conversion table to convert sector address information to a physical block number
US7475185B2 (en) Nonvolatile memory system, nonvolatile memory device, memory controller, access device, and method for controlling nonvolatile memory device
JP4268396B2 (en) Non-volatile memory device file management that can be programmed once
US20080028132A1 (en) Non-volatile storage device, data storage system, and data storage method
EP1782176B1 (en) Systems, methods, computer readable medium and apparatus for memory management using nvram
JP4356686B2 (en) Memory device and memory control method
US8327068B2 (en) Memory module, memory controller, nonvolatile storage, nonvolatile storage system, and memory read/write method
US5717886A (en) Semiconductor disk device and memory management method
EP1895418A1 (en) Nonvolatile memory device, method of writing data, and method of reading out data
US8060684B2 (en) Memory control apparatus, memory control method and program
US8914579B2 (en) Access device, information recording device, controller, and information recording system
JP2009199625A (en) Memory card, and method for controlling memory card and method for controlling nonvolatile semiconductor memory
JP2006040264A (en) Control method of memory card, and control method of nonvolatile semiconductor memory
US20070033364A1 (en) Information recording medium, information recording medium accessing apparatus and accessing method
KR101046083B1 (en) Data processing apparatus and data recording method of information recording medium
JP4130808B2 (en) Formatting method
US6532513B1 (en) Information recording and reproduction apparatus
JP2009116465A (en) Storage device and memory control method
US20030097523A1 (en) External storage device within a computer network
KR100727399B1 (en) Memory card having the increased input/output speed
JPH05150913A (en) Silicon disk with flash memory as storage medium
CN111949212A (en) File system based on user-defined open channel SSD and file management method
JPH01303547A (en) Control system for information memory

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
G170 Publication of correction
FPAY Annual fee payment

Payment date: 20130530

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20140529

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20150528

Year of fee payment: 9

LAPS Lapse due to unpaid annual fee