KR20030075528A - Method and apparatus for operating memory in optical disc record/player - Google Patents

Method and apparatus for operating memory in optical disc record/player Download PDF

Info

Publication number
KR20030075528A
KR20030075528A KR1020020014794A KR20020014794A KR20030075528A KR 20030075528 A KR20030075528 A KR 20030075528A KR 1020020014794 A KR1020020014794 A KR 1020020014794A KR 20020014794 A KR20020014794 A KR 20020014794A KR 20030075528 A KR20030075528 A KR 20030075528A
Authority
KR
South Korea
Prior art keywords
data
read
memory
segment
command
Prior art date
Application number
KR1020020014794A
Other languages
Korean (ko)
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 KR1020020014794A priority Critical patent/KR20030075528A/en
Publication of KR20030075528A publication Critical patent/KR20030075528A/en

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B7/00Recording or reproducing by optical means, e.g. recording using a thermal beam of optical radiation by modifying optical properties or the physical structure, reproducing using an optical beam at lower power by sensing optical properties; Record carriers therefor
    • G11B7/007Arrangement of the information on the record carrier, e.g. form of tracks, actual track shape, e.g. wobbled, or cross-section, e.g. v-shaped; Sequential information structures, e.g. sectoring or header formats within a track
    • G11B7/00736Auxiliary data, e.g. lead-in, lead-out, Power Calibration Area [PCA], Burst Cutting Area [BCA], control information
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel
    • G11B27/19Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier
    • G11B27/28Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier by using information signals recorded by the same method as the main recording
    • G11B27/32Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier by using information signals recorded by the same method as the main recording on separate auxiliary tracks of the same or an auxiliary record carrier
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B2220/00Record carriers by type
    • G11B2220/60Solid state media
    • G11B2220/65Solid state media wherein solid state memory is used for storing indexing information or metadata
    • G11B2220/652Solid state media wherein solid state memory is used for storing indexing information or metadata said memory being attached to the recording medium
    • G11B2220/657Memory in disc [MID]

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Optical Recording Or Reproduction (AREA)

Abstract

PURPOSE: A method for operating a memory of an optical disk recorder/reproducer is provided to divide the memory into many regions, and to move to a next region whenever discontinuous commands are generated, then to store corresponding data as managing information on the divided regions, thereby improving performance of the optical disk recorder/reproducer. CONSTITUTION: An optical disk recorder/reproducer divides a memory into many regions. If read or write commands are continuously generated, the reproducer continuously records corresponding data in the regions of the memory in order, and stores information on the regions. If the read or the write commands are discontinuously or alternately generated, the reproducer records the data from a next region of an ongoing region, and stores information on a just previous region and information on a new region.

Description

광 디스크 기록 재생기의 메모리 운용 방법 및 장치{Method and apparatus for operating memory in optical disc record/player}TECHNICAL FIELD AND APPARATUS FOR OPERATING MEMORY IN OPTICAL DISC RECORD / PLAYER

본 발명은 데이터의 기록 재생시 광 디스크 기록 재생기 내의 메모리 운용 방법 및 장치에 관한 것이다.The present invention relates to a method and apparatus for operating a memory in an optical disc recorder during recording and reproduction of data.

일반적으로 광 기록 매체 즉, 광 디스크를 기록 재생하는 광 디스크 기록 재생 장치는 CD(compact disc), DVD(digital versatile disc)등과 같은 광 디스크를기록 매체로 하여 상기 광 디스크에 기록된 데이터를 재생하거나, 상기 디스크에 데이터를 기록하는 장치이다.In general, an optical recording medium, that is, an optical disc recording and reproducing apparatus for recording and reproducing an optical disc, reproduces data recorded on the optical disc using an optical disc such as a compact disc (CD), a digital versatile disc (DVD), or the like as a recording medium. And a device for recording data on the disc.

상기 DVD는 CD와 구현 원리에 있어서는 크게 다르지 않다. 즉, 레이저를 이용하여 반사되는 광량의 차이를 0과 1의 데이터를 인식하는 CD와 똑같은 원리로 데이터를 인지한다. 다만 차이가 있다면 CD에 비해 데이터의 저장 폭이 미세하다는 것이다.The DVD is not much different from the CD in terms of implementation. That is, the data is recognized on the same principle as the CD for recognizing the data of 0 and 1 by the difference in the amount of light reflected by the laser. The difference is that the data storage is smaller than the CD.

상기된 광 디스크 기록 재생 장치에는 도 1과 같이 호스트가 연결될 수 있다. 여기서, 상기 호스트는 일종의 PC(Personal computer)로서, 광 디스크 기록 재생 장치가 상기 PC의 지원을 받는 경우이다.The host can be connected to the above-described optical disc recording / reproducing apparatus as shown in FIG. Here, the host is a kind of personal computer (PC), in which the optical disc recording and reproducing apparatus is supported by the PC.

상기 호스트는 기록/재생시 도 2, 도 3과 같은 리드/라이트 명령을 광 디스크 기록 재생 장치로 전송하고, 상기 광 디스크 기록 재생 장치는 상기 호스트의 리드/라이트 명령에 따라 광 디스크 상에 기록된 데이터를 재생하여 호스트로 전송하거나 또는 호스트로부터 전송된 데이터를 상기 광 디스크 상에 기록한다.The host transmits a read / write command as shown in Figs. 2 and 3 to the optical disc recording / reproducing apparatus during recording / reproducing, and the optical disc recording / reproducing apparatus is recorded on the optical disc according to the read / write command of the host. Data is reproduced and transmitted to the host, or data transmitted from the host is recorded on the optical disc.

즉, 도 2는 광 디스크로부터 데이터를 재생하는 경우, 상기 호스트에서 광 디스크 기록 재생 장치로 출력하는 일반적인 리드 명령 포맷의 일 예를 나타낸 도면이고, 도 3은 광 디스크에 데이터를 기록하는 경우, 상기 호스트에서 광 디스크 기록 재생 장치로 출력하는 라이트 명령 포맷의 일 예를 나타낸 도면이다.That is, FIG. 2 illustrates an example of a general read command format outputted from the host to the optical disc recording and reproducing apparatus when data is reproduced from the optical disc, and FIG. FIG. 1 shows an example of a write command format output from a host to an optical disk recording / reproducing apparatus.

이때, 상기 리드/라이트 명령에는 리드 또는, 라이트 위치를 지정하는 LBA(Logical Block Address)와 뒤따르는 데이터의 크기를 알려주는 전송 길이(transfer length)를 포함한다.In this case, the read / write command includes a Logical Block Address (LBA) that specifies a read or write position and a transfer length that informs the size of the data that follows.

일 예로, 광 디스크 상에 기록된 데이터를 재생할 경우 상기 호스트는 도 2와 같은 리드 명령을 생성하여 광 디스크 기록 재생 장치로 출력하고, 상기 광 디스크 기록 재생 장치는 상기 리드 명령이 지정하는 광 디스크 내의 LBA부터 전송 길이만큼 데이터를 리드하여 광 디스크 기록 재생 장치 내의 메모리(도시되지 않음)에 저장한다. 그리고 나서, 상기 광 디스크 기록 재생 장치는 메모리에 저장된 데이터를 리드하여 다시 호스트에 전송한다.For example, when reproducing data recorded on an optical disc, the host generates a read command as shown in FIG. 2 and outputs the read command to the optical disc recording and reproducing apparatus, wherein the optical disc recording and reproducing apparatus is set within the optical disc designated by the read command. Data is read from the LBA by the transfer length and stored in a memory (not shown) in the optical disc recording and reproducing apparatus. Then, the optical disc recording and reproducing apparatus reads the data stored in the memory and transfers the data back to the host.

한편, 광 디스크에 기록해야 할 데이터가 발생되면 호스트는 도 3과 같은 라이트 명령과 함께 기록할 데이터를 광디스크 기록 재생 장치로 보낸다. 상기 광디스크 기록 재생 장치는 상기 호스트에서 전송되는 데이터를 다시 광 디스크 기록 재생 장치 내에 할당된 메모리에 저장한 후 상기 라이트 명령이 지정하는 광 디스크 내의 목표 기록 위치(즉, LBA)부터 전송 길이만큼 데이터를 기록한다.On the other hand, when data to be recorded on the optical disc is generated, the host sends the data to be recorded to the optical disc recording and reproducing apparatus together with the write command as shown in FIG. The optical disc recording and reproducing apparatus stores the data transmitted from the host again in a memory allocated in the optical disc recording and reproducing apparatus, and then stores the data as much as the transmission length from the target recording position (ie, LBA) in the optical disc designated by the write command. Record it.

이때, 상기 광 디스크 기록 재생 장치는 호스트로부터 리드 또는 라이트 명령이 전송될 때 시간 지연을 최소화하여 해당 명령에 응답해야 한다.At this time, the optical disc recording and reproducing apparatus should respond to the command with a minimum time delay when a read or write command is transmitted from the host.

따라서, 시간 지연을 최소화하기 위해 재생의 경우 리드 명령이 입력되면 현재 리드 명령에서 지정하는 어드레스의 데이터뿐만 아니라 다음 어드레스의 데이터들도 미리 읽어 메모리에 저장한다. 이러한 동작을 프리 리딩(pre reading) 동작이라 칭한다. 그리고 나서, 다음 리드 명령이 입력되면 요청된 리드 명령의 데이터와 미리 읽어놓은 데이터가 일치하는지를 확인한 후 일치하면 메모리에 있는 데이터를 바로 호스트로 전송한다. 이러한 과정은 리드 명령이 연속되는한 반복된다. 이것이 가능한 이유는 호스트에서 원하는 데이터가 바로 이전에 원했던 데이터 바로 다음일 확률이 높기 때문이다.Therefore, in order to minimize the time delay, when a read command is input during reproduction, not only the data of the address specified by the current read command but also the data of the next address are read in advance and stored in the memory. This operation is called a pre reading operation. Then, when the next read command is input, it checks whether the data of the requested read command and the previously read data match and then transfers the data in memory directly to the host if they match. This process is repeated as long as the read command is continued. This is possible because the probability that the data you want on the host is immediately after the data you wanted before.

하지만, 리드 및 라이트 명령은 호스트에서 교번적으로 또는, 불연속적으로 전송되기도 한다. 예를 들어, 리드(0) 명령/리드(1) 명령/리드(2) 명령/리드(8) 명령.../리드(N) 명령/라이트(0) 명령/리드(N+1) 명령으로 리드/라이트 명령이 전송된다고 가정하자.However, read and write commands may be sent alternately or discontinuously at the host. For example, read (0) command / lead (1) command / lead (2) command / lead (8) command ... / lead (N) command / write (0) command / lead (N + 1) command Assume that a read / write command is sent to.

그러면, 리드(N) 명령을 수행하고 있을 때 프리 리딩 동작에 의해 디스크로부터 미리 읽어져 메모리에 저장되어 있던 리드(N+1) 이후의 정보는 라이트(0) 명령을 수행하면서 메모리에서 삭제된다. 즉, 라이트(0) 명령과 함께 전송된 데이터가 메모리의 처음부터 오버라이트되어 기록되므로, 라이트(0) 명령과 함께 전송되어 메모리에 저장된 데이터를 제외한 나머지 데이터 특히, 미리 읽어 저장해놓은 리드(N+1) 명령의 정보는 잃어버린다.Then, after the read (N) command, the information after the read (N + 1), which has been read from the disk and stored in the memory by the pre-reading operation, is deleted from the memory while performing the write (0) command. That is, since the data transmitted with the write (0) command is overwritten from the beginning of the memory and written, the remaining data except for the data transmitted with the write (0) command and stored in the memory, in particular, the read (N +) 1) The information of the order is lost.

그리고, 상기 라이트(0) 명령 다음에 리드(N+1) 명령이 수신되면 리드(N+1) 명령이 지정하는 위치의 데이터를 디스크에서 다시 읽어 와 메모리의 처음부터 오버라이트하여 저장한 후 호스트로 전송한다.When the read (N + 1) command is received after the write (0) command, the data of the position designated by the read (N + 1) command is read back from the disk, overwritten from the beginning of the memory, and stored. To send.

또한, 상기 리드(8) 명령이 수신되었을 때 상기 리드(8) 명령에서 지정하는 데이터가 메모리에 이미 저장되어 있지 않다면 마찬가지로 리드(8) 명령이 지정하는 위치에서 데이터를 광 디스크에서 읽어 와 메모리의 처음부터 오버라이트하여 저장한 후 호스트로 전송한다.If the data specified by the read 8 command is not already stored in the memory when the read 8 command is received, the data is similarly read from the optical disc at the location specified by the read 8 command and stored in the memory. Overwrite from the beginning, save and send to the host.

이와 같이, 리드 명령이 연속적으로 전송되지 않거나, 라이트 명령이 연속적으로 전송되지 않아 리드 또는 라이트 명령에 불연속점이 발생하거나 또는, 리드 명령과 라이트 명령이 교번적으로 발생하면 프리 리딩 동작에 의해 디스크로부터 미리 읽어 와 메모리에 저장시킨 데이터를 잃어버리므로 광 디스크 기록 재생 장치의 속도가 느려지게 된다. 즉, 호스트로부터 리드 또는 라이트 명령을 수신했을 때 명령에 따른 응답 시간에 지연이 생기므로 광 디스크 기록 재생 장치의 성능이 떨어지게 된다.In this way, if a read command is not transmitted continuously, or a write command is not transmitted continuously, a discontinuity point occurs in the read or write command, or if the read command and the write command occur alternately, the read command may advance from the disk in advance. The data read and stored in the memory is lost, which slows down the optical disc recording and reproducing apparatus. That is, when a read or write command is received from the host, a delay occurs in response time according to the command, thereby degrading the performance of the optical disc recording / reproducing apparatus.

본 발명은 상기와 같은 문제점을 해결하기 위한 것으로서, 본 발명의 목적은 광 디스크 기록 재생 장치 내의 메모리를 다수개의 영역으로 분할하고, 명령에 불연속이 발생할 때마다 다음 영역으로 이동하여 해당 데이터를 저장하고 상기 분할된 영역들에 대한 정보를 별도로 관리함으로써, 광 디스크 기록 재생 장치의 성능을 향상시키는 광 디스크 기록 재생기의 메모리 운용 방법 및 장치를 제공함에 있다.SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and an object of the present invention is to divide a memory in an optical disc recording and reproducing apparatus into a plurality of areas, and to move to the next area and store the corresponding data whenever a discontinuity occurs in a command. The present invention provides a memory operating method and apparatus for an optical disk recording / reproducing apparatus that improves the performance of the optical disk recording / reproducing apparatus by separately managing information on the divided regions.

도 1은 광 디스크 기록 재생 장치와 호스트와의 데이터 전송 과정을 보인 일반적인 도면BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a general diagram showing a data transfer process between an optical disc recording and reproducing apparatus and a host.

도 2는 일반적인 리드 명령 포맷의 일 예를 보인 도면2 illustrates an example of a general read command format.

도 3은 일반적인 라이트 명령 포맷의 일 예를 보인 도면3 illustrates an example of a general write command format.

도 4a는 본 발명에 따른 광 기록 재생 장치 중 메모리가 다수개의 세그먼트로 분할된 예를 보인 도면4A illustrates an example in which a memory is divided into a plurality of segments in the optical recording and reproducing apparatus according to the present invention.

도 4b는 도 4a의 각 세그먼트에 대한 정보를 저장하는 세그먼트 큐의 예를 보인 도면4B illustrates an example of a segment queue for storing information about each segment of FIG. 4A.

상기와 같은 목적을 달성하기 위한 본 발명에 따른 광 디스크 기록 재생 장치의 메모리 운용 방법은, 호스트로부터 전송되는 리드 명령에 따라 디스크로부터 리드된 데이터를 저장하거나, 또는 호스트로부터 라이트 명령과 함께 전송되어온 데이터를 저장하는 광 디스크 기록 재생기내의 메모리를 다수개의 영역으로 분할하는 단계와, 상기 리드 또는 라이트 명령이 연속적이면 해당 데이터를 상기 메모리의 영역에 연속적으로 순차 기록하면서 상기 영역에 대한 정보를 별도로 저장하는 단계와, 상기 리드 또는 라이트 명령에 불연속이 발생하거나 교번적으로 발생하면현재 기록이 진행중인 영역의 다음 영역부터 해당 데이터를 기록하면서 바로 이전 영역에 대한 정보 및 새로운 영역에 대한 정보를 별도로 저장하는 단계를 포함하여 이루어지는 것을 특징으로 한다.A memory operating method of an optical disc recording / reproducing apparatus according to the present invention for achieving the above object comprises: storing data read from a disc according to a read command sent from a host, or data transmitted with a write command from a host. Dividing the memory in the optical disc recording / reproducing player that stores the data into a plurality of areas, and separately storing information about the area while sequentially writing the data in the area of the memory if the read or write command is continuous. And separately storing the information about the immediately previous area and the information about the new area while recording the corresponding data from the next area of the current recording area when discontinuities occur or alternately occur in the read or write command. What is done It features.

상기 불연속 리드/라이트 명령 처리 단계는 리드 명령에 불연속이 발생하면 별도로 저장된 각 영역에 대한 정보를 참조하여 상기 리드 명령에서 요청하는 데이터가 미리 읽어져 메모리의 특정 영역에 저장되어 있는지를 확인하는 단계와, 상기 단계에서 저장되어 있다고 판별되면 상기 특정 영역에 저장된 해당 데이터를 호스트로 전송하는 단계와, 상기 단계에서 저장되어 있지 않다고 판별되면 상기 특정 영역에 저장된 데이터가 상기 리드 명령에서 요청하는 데이터 바로 이전 데이터인지를 판별하는 단계와, 상기 단계에서 특정 영역에 저장된 데이터가 상기 리드 명령에서 요청하는 데이터 바로 이전 데이터이면 상기 특정 영역이 풀인지를 판단하는 단계와, 상기 단계에서 특정 영역이 풀이 아니라고 판별되면 상기 리드 명령에서 요청하는 데이터를 디스크로부터 읽어 와 상기 특정 영역에 연속적으로 저장하는 단계와, 상기 단계에서 특정 영역에 저장된 데이터가 상기 리드 명령에서 요청하는 데이터 바로 이전 데이터가 아니거나, 또는 상기 특정 영역이 풀이라고 판별되면 상기 리드 명령에서 요청하는 데이터를 디스크로부터 읽어 와 기록이 진행중이던 영역의 다음 영역부터 기록하는 단계를 포함하여 이루어지는 것을 특징으로 한다.The discontinuous read / write command processing step may include checking whether data requested by the read command is read in advance and stored in a specific area of the memory when the read command occurs when the discontinuity occurs in the read command. Transmitting the corresponding data stored in the specific area to the host if it is determined that the data is stored in the step; and if the data stored in the specific area is not immediately stored in the step, the data immediately before the data requested by the read command. Determining whether the specific area is a pool if the data stored in the specific area is immediately before the data requested by the read command; and if it is determined in the step that the specific area is not the pool, Data requested by the lead order Reading from a disk and continuously storing the data in the specific area; and if the data stored in the specific area in the step is not the data immediately before the data requested by the read command, or the specific area is full, the read command And reading the data requested from the disc from the disk and starting from the next area of the area where recording is in progress.

상기 별도로 저장되는 영역에 대한 정보에는 메모리 내에서 해당 영역의 시작 위치와 그 영역에 기록되는 데이터 크기가 포함되는 것을 특징으로 한다.The information on the separately stored region may include a start position of the region in the memory and a data size recorded in the region.

본 발명에 따른 광 디스크 기록 재생기의 메모리 운용 장치는, 다수개의 세그먼트로 분할되어, 호스트로부터 전송되는 리드 명령에 따라 디스크로부터 리드된 데이터를 특정 세그먼트에 기록하거나, 또는 호스트로부터 라이트 명령과 함께 전송되어온 데이터를 특정 세그먼트에 기록하며, 상기 리드/라이트 명령에 불연속이 발생하면 현재 기록이 진행중인 특정 세그먼트의 다음 세그먼트부터 해당 데이터를 기록하는 광 디스크 기록 재생기 내의 메모리와, 상기 메모리의 분할된 세그먼트의 개수만큼 분할된 영역을 구비하며, 각 영역에는 해당 세그먼트의 시작 위치와 해당 세그먼트에 데이터가 저장되는 경우 저장되는 데이터 크기가 기록되는 세그먼트 큐를 구비한 메모리 제어부를 포함하여 구성되는 것을 특징으로 한다.The memory operating apparatus of the optical disc recorder according to the present invention is divided into a plurality of segments, and writes the data read from the disc into a specific segment according to a read command transmitted from the host, or has been transmitted with a write command from the host. When data is recorded in a specific segment and a discontinuity occurs in the read / write command, the memory in the optical disc recorder that records the data from the next segment of the specific segment currently being recorded, and the number of divided segments of the memory. And a segmented area, each area including a memory control unit having a segment queue in which a start position of the segment and a data size stored when data is stored in the segment.

상기 메모리 제어부는 마이콤으로 구성할 수 있으며, 상기 호스트에서 전송되는 리드/라이트 명령에 불연속이 발생하면 상기 세그먼크 큐에 저장된 세그먼트 시작 위치와 데이터 크기를 참조하여 해당 데이터가 특정 세그먼트에 연속적으로 기록되거나 또는, 기록이 진행중이던 세그먼트 다음의 세그먼트부터 기록되도록 제어하는 것을 특징으로 한다.The memory controller may be configured as a microcomputer. If a discontinuity occurs in a read / write command transmitted from the host, the data may be continuously recorded in a specific segment by referring to a segment start position and a data size stored in the segment queue. Or control to record from the segment following the segment in which recording is in progress.

본 발명의 다른 목적, 특징 및 잇점들은 첨부한 도면을 참조한 실시예들의 상세한 설명을 통해 명백해질 것이다.Other objects, features and advantages of the present invention will become apparent from the following detailed description of embodiments taken in conjunction with the accompanying drawings.

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

도 4a, 도 4b는 본 발명에 따른 광 디스크 기록 재생 장치 중 메모리를 세그먼트 단위로 분할한 예와 마이콤 내의 세그먼트 큐에 대한 블록도이다.4A and 4B are block diagrams showing examples of dividing a memory into segments in an optical disc recording and reproducing apparatus according to the present invention, and a segment queue in a microcomputer.

즉, 본 발명은 광 디스크 기록 재생 장치 내의 메모리를 일정 크기를 갖는다수개의 영역으로 나누는데, 이후 상기 각 영역을 세그먼트(segment)라 칭한다.That is, the present invention divides the memory in the optical disc recording / reproducing apparatus into several areas having a certain size, and then each of these areas is called a segment.

여기서, 상기 분할되는 영역의 단위 예컨대, 세그먼트 단위는 설계자에 따라 다를 수 있으며 일 예로, DVD 1 ECC 블록(즉, 16섹터) 단위로 할 수도 있다.Here, the unit of the divided region, for example, the segment unit may vary according to the designer, and may be, for example, a unit of DVD 1 ECC block (ie, 16 sectors).

이때, 상기 메모리를 다수개의 세그먼트로 분할하였으므로, 메모리 내에서 각 세그먼트의 시작 위치를 알고 있어야 데이터의 저장 및 읽기가 가능해진다.At this time, since the memory is divided into a plurality of segments, it is possible to store and read data only when the starting position of each segment is known in the memory.

이를 위해, 마이콤(도시되지 않음)내에 세그먼트 큐를 두어 상기 각 세그먼트의 정보를 관리한다. 여기서, 상기 마이콤은 호스트의 라이트/리드 명령에 따라 상기 메모리에의 데이터 쓰기/읽기 및 광 디스크 상에서의 데이터 기록/재생을 제어한다.To this end, a segment queue is placed in a microcomputer (not shown) to manage information of each segment. Here, the microcomputer controls the writing / reading of data into the memory and the recording / reproducing of data on the optical disc according to the write / read command of the host.

상기 세그먼트 큐도 다수개의 영역으로 구분되는데 상기 세그먼트 큐에서 분할되는 영역의 수는 상기 메모리의 세그먼트 개수와 일치한다.The segment queue is also divided into a plurality of regions, and the number of regions divided in the segment queue corresponds to the number of segments in the memory.

이때, 상기 메모리와 세그먼트 큐는 링 버퍼로 운영한다. 즉, 메모리나 세그먼트 큐의 마지막 어드레스까지 데이터가 저장되면 다음 처음 위치로 와 데이터가 오버라이트되어 저장되는 과정이 순환되는 구조를 갖는다.At this time, the memory and the segment queue operate as a ring buffer. That is, when data is stored up to the last address of a memory or segment queue, the data is overwritten and stored in the next first position.

그리고, 상기 세그먼트 큐의 각 영역에는 해당 세그먼트의 시작 위치와 데이터가 저장되는 경우 저장되는 데이터 크기가 저장된다.Each region of the segment queue stores a start position of a corresponding segment and a data size stored when data is stored.

예를 들어, 세그먼트 0의 시작 위치가 100h이고, 저장되는 데이터 크기가 500k이면 상기 세그먼트 큐의 0에는 100h와 500k가 저장된다.For example, if the start position of segment 0 is 100h and the data size to be stored is 500k, 100h and 500k are stored in 0 of the segment queue.

이때, 리드 명령 또는, 라이트 명령이 연속적이라면 해당 데이터는 상기 메모리의 세그먼트에 순차적으로 저장된다. 그리고, 세그먼트 큐의 각 영역에는 데이터가 저장되는 세그먼트의 시작 위치와 데이터 크기가 저장된다. 즉, 하나의 세그먼트에 연속적으로 데이터가 저장되다가 풀(full)이 되면 다음 세그먼트에 계속해서 데이터가 저장된다. 이때의 데이터 크기는 세그먼트의 크기가 된다. 이러한 과정은 리드 명령 또는 라이트 명령이 연속되는한 계속된다.At this time, if the read command or the write command is continuous, the corresponding data is sequentially stored in the segment of the memory. Each region of the segment queue stores a start position and a data size of a segment in which data is stored. In other words, when data is continuously stored in one segment and becomes full, data is continuously stored in the next segment. The data size at this time is the size of the segment. This process continues as long as the read command or the write command is continued.

그러다가 명령에 불연속이 발생하면 예컨대, 하나의 리드 명령 또는 라이트 명령이 연속적이지 않거나 또는, 리드 명령과 라이트 명령이 교번적으로 발생하는 경우에는 다음 세그먼트로 이동하여 데이터가 저장된다.When a discontinuity occurs in the command, for example, when one read command or a write command is not continuous, or when a read command and a write command occur alternately, the data is moved to the next segment and stored.

즉, 상기와 같은 경우에 해당 데이터가 메모리의 처음으로 가서 오버라이트되지 않고 다음 세그먼트에 저장되므로 미리 읽어 와 메모리에 저장해놓은 데이터를 잃어버리지 않게 된다.That is, in the above case, since the data is stored in the next segment without going overwrite to the beginning of the memory, the data read in advance and stored in the memory are not lost.

만일, 호스트에서 전송되는 리드/라이트 명령이 리드(0) 명령/리드(1) 명령/리드(2) 명령/리드(8) 명령.../리드(N) 명령/라이트(0) 명령/리드(N+1) 명령/리드(N+3) 명령 순이라고 가정하자.If a read / write command transmitted from the host is a read (0) command / lead (1) command / lead (2) command / lead (8) command ... / lead (N) command / write (0) command / Assume the order of read (N + 1) command / lead (N + 3) command.

그러면, 먼저 리드(0) 명령에서 지정하는 위치의 데이터를 광 디스크에서 읽어 와 메모리의 세그먼트 0에 저장함과 동시에 상기 리드(0) 명령에서 지정하는 위치 다음 어드레스의 데이터들을 프리 리딩 동작을 통해 디스크로부터 미리 읽어 와 메모리의 세그먼트 0에 연속적으로 저장한다. 상기 세그먼트 0가 풀이 되면 그 다음 세그먼트 즉, 세그먼트 1에 계속해서 데이터가 저장된다. 이러한 과정이 리드(2) 명령까지 진행되다가 불연속 리드 명령 즉, 리드(8) 명령이 전송되고 이때, 세그먼트 2의 중간까지 데이터가 저장되었다고 가정한다. 그러면, 마이콤 내의세그먼트 큐의 3번째 영역에는 세그먼트 2의 시작 위치와 저장된 데이터의 크기가 기록된다. 여기서, 상기 세그먼트 2의 중간까지 기록된 데이터는 프리 리딩 동작에 의해 미리 읽어진 리드(2) 명령 이후의 데이터까지 포함될 수 있다.Then, the data of the position designated by the read (0) command is first read from the optical disk and stored in segment 0 of the memory, and at the same time, the data of the address following the position designated by the read (0) command is read from the disk through the pre-reading operation. Read ahead and store consecutively in segment 0 of memory. When the segment 0 becomes full, data continues to be stored in the next segment, that is, segment 1. It is assumed that this process proceeds up to the read 2 command and then a discontinuous read command, that is, a read 8 command, is transmitted and data is stored up to the middle of segment 2. Then, the start position of segment 2 and the size of the stored data are recorded in the third area of the segment queue in the microcomputer. In this case, the data recorded up to the middle of the segment 2 may include data after the read 2 command read in advance by the pre-reading operation.

이때, 상기 리드(8) 명령에서 요청하는 데이터가 프리 리딩 동작을 통해 이미 메모리에 저장되어 있다면 상기 메모리에 저장된 데이터가 바로 호스트로 전송된다. 만일, 메모리에 저장되어 있지 않다면 상기 리드(8) 명령에서 지정하는 위치의 데이터를 광 디스크로부터 읽어 와 다음 세그먼트 즉, 세그먼트 4부터 저장한 후 호스트로 전송한다.At this time, if the data requested by the read 8 command is already stored in the memory through the pre-reading operation, the data stored in the memory is transmitted directly to the host. If it is not stored in the memory, the data of the position designated by the read 8 command is read from the optical disk, stored in the next segment, that is, segment 4, and transmitted to the host.

이러한 과정이 리드(N) 명령까지 진행되다가 라이트(0) 명령이 전송되고 이때, 세그먼트 8의 1/3부분까지 데이터가 저장되었다고 가정한다. 그러면, 세그먼트 큐의 9번째 영역에는 세그먼트 8의 시작 위치와 세그먼트 8에 저장된 데이터의 크기가 기록된다.This process proceeds up to the read (N) command, and then the write (0) command is transmitted. At this time, it is assumed that data is stored up to 1/3 of the segment 8. Then, the start position of segment 8 and the size of data stored in segment 8 are recorded in the ninth region of the segment queue.

그리고, 상기 라이트(0) 명령과 함께 전송된 데이터는 메모리의 세그먼트 9부터 저장되기 시작한다. 그리고, 다음에 전송된 리드(N+1) 명령에서 요청한 데이터는 세그먼트 10부터 저장되고 저장된 데이터는 호스트로 전송된다. 그 다음에 리드(N+3) 명령이 전송되었다고 가정할 때 상기 리드(N+3) 명령에서 요청한 데이터가 프리 리딩 동작에 의해 이미 메모리에 저장되어 있다면 상기 리드(N+3) 명령에서 요청하는 데이터가 바로 호스트로 전송된다.The data transmitted with the write command starts to be stored from segment 9 of the memory. The data requested by the next read (N + 1) command is stored from segment 10 and the stored data is transmitted to the host. Next, assuming that a read (N + 3) command is transmitted, if the data requested by the read (N + 3) command is already stored in the memory by a pre-reading operation, the read (N + 3) command requests Data is sent directly to the host.

만일, 상기 리드(N+3) 명령 다음에 리드(5) 명령이 전송되었다고 가정하면 마이콤은 상기 리드(5) 명령에서 요청하는 데이터가 메모리에 저장되어 있는지를확인한다.If it is assumed that the read (5) command is transmitted after the read (N + 3) command, the microcomputer checks whether the data requested by the read (5) command is stored in the memory.

즉, 명령에 불연속이 발생했을 때 해당 데이터를 메모리의 처음부터 오버라이트하지 않고 그 다음 세그먼트에 기록하였으므로 상기 메모리에는 상기 리드(5) 명령에서 요청하는 데이터가 저장되어 있을 수 있다.That is, when a discontinuity occurs in the command, since the corresponding data is written to the next segment without overwriting from the beginning of the memory, the data requested by the read 5 command may be stored in the memory.

이때는 디스크로부터 데이터를 읽어 와 메모리의 다음 세그먼트 예를 들면, 세그먼트 11부터 기록하는 동작을 수행하지 않고 해당 세그먼트 예를 들면, 세그먼트 2로 찾아가 리드(5) 명령에서 요청하는 데이터를 읽어 바로 호스트로 전송할 수 있다.In this case, the data is read from the disk and the next segment of the memory, for example, segment 11, is not executed, and the segment, for example, segment 2, is read and the data requested by the read (5) command is transferred to the host. Can be.

만일, 세그먼트 2의 중간까지 기록된 데이터가 리드(4) 명령에 해당하는 데이터까지라면 상기 세그먼트 2의 데이터가 기록된 다음 위치부터 상기 리드(5) 명령에서 요청하는 데이터를 디스크로부터 읽어 와 연속적으로 기록할 수 있다. 이때 세그먼트 큐의 세 번째 영역에 저장되는 정보는 갱신된다.If the data recorded up to the middle of segment 2 is the data corresponding to the read (4) command, the data requested by the read (5) command is read continuously from the disk from the next position where the data of the segment 2 is recorded and continuously. Can record At this time, the information stored in the third area of the segment queue is updated.

이와 같이, 리드 명령과 라이트 명령이 교번되거나 불연속점이 발생하더라도 해당 데이터를 초기부터 다시 오버라이트하지 않고 메모리의 다음 세그먼트로 이동하여 저장하고 그 정보를 세그먼트 큐의 해당 영역에 저장한다.As described above, even when the read command and the write command are alternated or a discontinuity point occurs, the data is moved and stored in the next segment of the memory without overwriting the data again from the beginning, and the information is stored in the corresponding area of the segment queue.

따라서, 리드 명령과 라이트 명령이 교번되거나 불연속점이 발생하더라도 광 디스크 기록 재생 장치의 응답 속도가 느려지는 일이 발생하지 않는다.Therefore, the response speed of the optical disc recording / reproducing apparatus does not occur even when the read command and the write command are alternated or a discontinuity point occurs.

이상에서와 같이 본 발명에 따른 광 디스크 기록 재생기의 메모리 운용 방법 및 장치에 의하면, 광 디스크 기록 재생기 내의 메모리를 다수개의 세그먼트로 분할하고 각 세그먼트에 대한 정보를 관리하기 위한 세그먼트 큐를 마이콤에 별도로 구비한 후 리드/라이트 명령에 불연속점이 발생하거나 또는 리드/라이트 명령이 교번적으로 발생하는 경우에 해당 데이터를 초기부터 다시 오버라이트하지 않고 메모리의 다음 세그먼트로 이동하여 저장하고 그 정보를 세그먼트 큐의 해당 영역에 저장함으로써, 프리 리딩을 통해 미리 읽어 와 저장해 놓은 데이터를 최대한 보호할 수 있으며, 광 디스크에 데이터를 기록하거나 디스크에 기록된 데이터를 호스트로 전송하기 위하여, 메모리에서 데이터를 읽을 때 상기 세그먼트 큐를 참조하면 해당 명령에서 지정하는 데이터를 메모리에서 찾아 바로 호스트로 전송하거나 광 디스크 상에 기록할 수 있다. 이와 같이, 본 발명은 광 기록 재생 장치의 연속 기록 재생을 위한 부담을 줄여주고, 리드 명령과 라이트 명령이 교번되거나 불연속점이 발생하더라도 광 디스크 기록 재생 장치는 시간 지연 없이 호스트의 명령에 응답할 수 있다.As described above, according to the memory operating method and apparatus for an optical disc recorder according to the present invention, the microcom is separately provided with a segment queue for dividing the memory in the optical disc recorder into a plurality of segments and managing information on each segment. If there is a discontinuity in the read / write commands, or if the read / write commands occur alternately, the data is moved to the next segment in memory without storing it from the beginning again, and the information is stored in the corresponding segment queue. By storing in the area, the data read and stored in advance can be protected as much as possible through pre-reading, and the segment queue is read when reading data from memory in order to write data to the optical disk or transfer the data recorded on the disk to the host. Refers to that command The data can be found in memory and sent directly to the host or recorded on an optical disc. As such, the present invention reduces the burden for continuous recording and reproducing of the optical recording and reproducing apparatus, and the optical disc recording and reproducing apparatus can respond to the command of the host without time delay even if the read command and the write command are alternated or a discontinuity point occurs. .

이상 설명한 내용을 통해 당업자라면 본 발명의 기술 사상을 일탈하지 아니하는 범위에서 다양한 변경 및 수정이 가능함을 알 수 있을 것이다.Those skilled in the art will appreciate that various changes and modifications can be made without departing from the spirit of the present invention.

따라서, 본 발명의 기술적 범위는 실시예에 기재된 내용으로 한정되는 것이 아니라 특허 청구의 범위에 의하여 정해져야 한다.Therefore, the technical scope of the present invention should not be limited to the contents described in the embodiments, but should be defined by the claims.

Claims (5)

호스트로부터 전송되는 리드 명령에 따라 디스크로부터 리드된 데이터를 저장하거나, 또는 호스트로부터 라이트 명령과 함께 전송되어온 데이터를 저장하는 메모리를 구비한 광 디스크 기록 재생기의 메모리 운용 방법에 있어서,A memory operating method of an optical disc recording / reproducing apparatus having a memory for storing data read from a disc in accordance with a read command transmitted from a host, or storing data transmitted with a write command from a host. 상기 메모리를 다수개의 영역으로 분할하는 단계;Dividing the memory into a plurality of areas; 상기 리드 또는 라이트 명령이 연속적이면 해당 데이터를 상기 메모리의 영역에 연속적으로 순차 기록하면서 상기 영역에 대한 정보를 별도로 저장하는 단계; 그리고If the read or write command is continuous, separately storing information about the area while sequentially writing corresponding data in the area of the memory; And 상기 리드 또는 라이트 명령에 불연속이 발생하거나 교번적으로 발생하면 현재 기록이 진행중인 영역의 다음 영역부터 해당 데이터를 기록하면서 바로 이전 영역에 대한 정보 및 새로운 영역에 대한 정보를 별도로 저장하는 단계를 포함하여 이루어지는 것을 특징으로 하는 광 기록 재생기의 메모리 운용 방법.If discontinuity occurs or alternately occurs in the read or write command, storing the data about the immediately previous area and information about the new area separately while recording the corresponding data from the next area of the current recording area. A memory operating method of an optical recorder, characterized in that. 제 1 항에 있어서, 상기 불연속 리드/라이트 명령 수행 단계는The method of claim 1, wherein performing the discontinuous read / write command is performed. 상기 리드 명령에 불연속이 발생하면 별도로 저장된 각 영역에 대한 정보를 참조하여 상기 리드 명령에서 요청하는 데이터가 미리 읽어져 메모리의 특정 영역에 저장되어 있는지를 확인하는 단계와,If a discontinuity occurs in the read command, checking whether the data requested by the read command is read in advance and stored in a specific area of the memory by referring to information about each separately stored area; 상기 단계에서 저장되어 있다고 판별되면 상기 특정 영역에 저장된 해당 데이터를 호스트로 전송하는 단계와,Transmitting the corresponding data stored in the specific area to the host when it is determined that the data is stored in the step; 상기 단계에서 저장되어 있지 않다고 판별되면 상기 특정 영역에 저장된 데이터가 상기 리드 명령에서 요청하는 데이터 바로 이전 데이터인지를 판별하는 단계와,If it is determined that the data is not stored in the step, determining whether the data stored in the specific area is the data immediately before the data requested by the read command; 상기 단계에서 특정 영역에 저장된 데이터가 상기 리드 명령에서 요청하는 데이터 바로 이전 데이터이면 상기 특정 영역이 풀인지를 판단하는 단계와,Determining whether the specific area is full if the data stored in the specific area is the data immediately before the data requested by the read command; 상기 단계에서 특정 영역이 풀이 아니라고 판별되면 상기 리드 명령에서 요청하는 데이터를 디스크로부터 읽어 와 상기 특정 영역에 연속적으로 저장하는 단계와,If it is determined in the step that the specific area is not full, reading the data requested by the read command from the disk and storing the data continuously in the specific area; 상기 단계에서 특정 영역에 저장된 데이터가 상기 리드 명령에서 요청하는 데이터 바로 이전 데이터가 아니거나, 또는 상기 특정 영역이 풀이라고 판별되면 상기 리드 명령에서 요청하는 데이터를 디스크로부터 읽어 와 기록이 진행중이던 영역의 다음 영역부터 기록하는 단계를 포함하여 이루어지는 것을 특징으로 하는 광 디스크 기록 재생기의 메모리 운용 방법.In this step, if the data stored in the specific area is not immediately preceding the data requested by the read command or the specific area is full, the data requested in the read command is read from the disc and the data of the area in which recording is in progress is performed. A method of operating a memory of an optical disc recorder, comprising the step of recording from the next area. 제 1 항에 있어서,The method of claim 1, 상기 별도로 저장되는 영역에 대한 정보에는 메모리 내에서 해당 영역의 시작 위치와 그 영역에 기록되는 데이터 크기가 포함되는 것을 특징으로 하는 광 디스크 기록 재생기의 메모리 운용 방법.The information on the separately stored region includes a start position of the region in the memory and a data size recorded in the region. 다수개의 세그먼트로 분할되어, 호스트로부터 전송되는 리드 명령에 따라 디스크로부터 리드된 데이터를 특정 세그먼트에 기록하거나, 또는 호스트로부터 라이트 명령과 함께 전송되어온 데이터를 특정 세그먼트에 기록하며, 상기 리드/라이트 명령에 불연속이 발생하면 현재 기록이 진행중인 특정 세그먼트의 다음 세그먼트부터 해당 데이터를 기록하는 광 디스크 기록 재생기 내의 메모리; 그리고Divided into a plurality of segments and writes data read from the disc to a specific segment according to a read command sent from the host, or writes data transferred with a write command from the host to a specific segment, and writes to the read / write command A memory in the optical disc record player for recording the corresponding data from the next segment of the specific segment currently recording is in progress when discontinuity occurs; And 상기 메모리의 분할된 세그먼트의 개수만큼 분할된 영역을 구비하며, 각 영역에는 해당 세그먼트의 시작 위치와 해당 세그먼트에 데이터가 저장되는 경우 저장되는 데이터 크기가 기록되는 세그먼트 큐를 구비한 메모리 제어부를 포함하여 구성되는 것을 특징으로 하는 광 디스크 기록 재생기의 메모리 운용 장치.And a memory controller including a segment queue in which the number of divided segments of the memory is divided, and each segment includes a segment queue in which a start position of the segment and a data size stored when data is stored in the segment are recorded. And a memory operating device of the optical disc recorder. 제 4 항에 있어서, 상기 메모리 제어부는The method of claim 4, wherein the memory control unit 상기 호스트에서 전송되는 리드/라이트 명령에 불연속이 발생하면 상기 세그먼크 큐에 저장된 세그먼트 시작 위치와 데이터 크기를 참조하여 해당 데이터가 특정 세그먼트에 연속적으로 기록되거나 또는, 기록이 진행중이던 세그먼트 다음의 세그먼트부터 기록되도록 제어하는 것을 특징으로 하는 광 디스크 기록 재생기의 메모리 운용 장치.If a discontinuity occurs in the read / write command transmitted from the host, the data is continuously recorded in a specific segment by referring to the segment start position and data size stored in the segment queue, or from the segment following the segment in which the recording is in progress. And a memory operating device of the optical disc recorder, characterized in that it is controlled to be recorded.
KR1020020014794A 2002-03-19 2002-03-19 Method and apparatus for operating memory in optical disc record/player KR20030075528A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020020014794A KR20030075528A (en) 2002-03-19 2002-03-19 Method and apparatus for operating memory in optical disc record/player

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020020014794A KR20030075528A (en) 2002-03-19 2002-03-19 Method and apparatus for operating memory in optical disc record/player

Publications (1)

Publication Number Publication Date
KR20030075528A true KR20030075528A (en) 2003-09-26

Family

ID=32225343

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020020014794A KR20030075528A (en) 2002-03-19 2002-03-19 Method and apparatus for operating memory in optical disc record/player

Country Status (1)

Country Link
KR (1) KR20030075528A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100434296B1 (en) * 2002-03-19 2004-06-05 엘지전자 주식회사 Method and apparatus for operating memory in optical disc record/player

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100434296B1 (en) * 2002-03-19 2004-06-05 엘지전자 주식회사 Method and apparatus for operating memory in optical disc record/player

Similar Documents

Publication Publication Date Title
US7472219B2 (en) Data-storage apparatus, data-storage method and recording/reproducing system
JP3042559B2 (en) Disc recording / playback method
JP2004030771A (en) Recording and reproducing device
US7747144B2 (en) Information processing apparatus, information processing method, recording medium, control
US6523086B1 (en) Method for improving performance of read cache of magnetic disk drive
US8077567B2 (en) Recording and reproducing apparatus and recording and reproducing method
US6269420B1 (en) Information recording/reproducing apparatus reducing disk access frequency to file management area and sharply accelerating record processing and reproduction processing
KR100367295B1 (en) An apparatus and method for writing a region code in a DVD driver
US20050259542A1 (en) Reproduction device and method, recording medium, and program
US20060294315A1 (en) Object-based pre-fetching Mechanism for disc drives
EP1684288B1 (en) Information recorder, information recording method, and recording medium containing program
KR100662290B1 (en) Method for direct coping and moving on optical record medium
KR20030075528A (en) Method and apparatus for operating memory in optical disc record/player
US20100241802A1 (en) Storage unit, data write method and data write program
KR20030061948A (en) : Apparatus storing information and method for controlling the File using its
JP2005129168A (en) Device and method for recording information, and program
KR100434296B1 (en) Method and apparatus for operating memory in optical disc record/player
US6496311B1 (en) Data recording/reproducing unit, data recording method, data reproducing method, data recording/reproducing method, hard disk controller, and AV-data recording/reproducing method
KR100268386B1 (en) Recording and controlling method of a dvd-ram drive
KR20030075529A (en) Method for operating memory in optical disc record/player
KR20060092237A (en) Recording/reproducing device and recording method
JP3080416B2 (en) Method of executing internal operation in controller and controller
JP2002042412A (en) Recording and reproducing device
JP3987126B2 (en) Image file method and apparatus
JP4474742B2 (en) Data recording / reproducing apparatus and data re-recording processing method

Legal Events

Date Code Title Description
WITN Withdrawal due to no request for examination