CD-ROM device control wafer and its transfer approach with move instruction function in advance
[technical field]
The invention relates to a kind of CD-ROM device control wafer and transfer approach thereof, and particularly transmit a plurality of the instruction to the CD-ROM device control wafer and the transfer approach thereof of demoder relevant for a kind of with move instruction function in advance.
[background technology]
In the field of image compression, mpeg standard is one of the most general standard.In mpeg standard, MPEG 2 standards can provide the image of high image quality, are present popular on the market movie modes.Because it is quite big to meet the film data amount of MPEG 2 standards, therefore need the Storage Media of high power capacity to store, for example the DVD laser disc.
Laser discs such as DVD playing back need be controlled a servo motor and optical read head be moved to laser disc trams such as DVD, and the data of correctly reading laser discs such as DVD are for use.In addition, the data of being read by laser discs such as DVD are also wanted and can be decoded according to a MPEG 2 standards rapidly and efficiently.Make MPEG 2 films to play smoothly, and the phenomenon that does not have square or picture to postpone.
Because the operand of MPEG 2 decoding standards is huge, if carry out MPEG 2 decodings, be subject to the speed of CPU (central processing unit) (CPU) with software, picture may have the phenomenon of square or delay.If carry out with hardware, MPEG 2 decodings need be done efficient collocation with the decoding of DVD laser disc and the control of servomechanism.Therefore, how to design a hardware drive servo motor, to the laser disc data decode and carry out mpeg decode, and utilize the efficient DVD playing back laser disc of advantage of SoC (SOC), be that industry member is in demand.
Fig. 1 illustrates the calcspar of a CD-ROM device control circuit.Please refer to Fig. 1, CD-ROM device control circuit 100 comprises one first central processing unit 102, one second central processing unit 104, a mpeg module 106 and a decoder module 108.Decoder module 108 comprises a servo controller 110, and servo controller 110 control one servo motors (not shown), servo motor drive CD-RW discsCD-RW makes optical read head can read data on the CD-RW discsCD-RW in position, and this CD-RW discsCD-RW is a DVD laser disc for example.Second central processing unit, 104 control decoder module 108.
Mpeg module 106 is obtained the data of being read by laser disc, decodes for broadcast according to a mpeg standard, and this mpeg standard is a MPEG 2 standards for example.First central processing unit, 102 control mpeg modules 106 have an IDE (Integrated Drive Electronics) interface 114 between mpeg module 106 and decoder module 108.Therefore, mpeg module 106 and decoder module 108 between all signal communicating must be through IDE interface 114.
Fig. 3 illustrates ATAPI (AT Attachment Packet Interface) command sequence (command sequence) figure of the circuit framework that cooperates Fig. 1.Please refer to Fig. 3, mpeg module 106 sends ATAPI order 304 via ATAPI interface 302 and gives decoder module 108, and wherein ATAPI interface 302 is a kind of form of the IDE interface 114 described in Fig. 1.Decoder module 108 receives ATAPI order 304 back control optical read heads laser disc is read data to be stored in a storer 112 (as shown in Figure 1).This data storing is after storer 112, and decoder module 108 is sent a confirmation signal 306, and (Acknowledgement ACK), via ATAPI interface 302, is converted to ATA ISR signal 308 with notice mpeg module 106.
Then, decoder module 108 updating device states are also prepared data (update device andprepare data), and send a update mode signal 310 (up date device signal) and give ATAPI interface 302.Before sending next ATAPI order 312, mpeg module 106 sends a reading device status signal (read device status) 314 earlier and has been ready to receive ATAPI order 312 to determine decoder module 108.Next, mpeg module 106 sends ATAPI order 312.Then, mpeg module 106 repeats the identical agreement (handshaking) of shaking hands with decoder module 108, reads the data on the laser disc in regular turn and decodes with mpeg standard.
As mentioned above, in Fig. 3, because the agreement (handshaking) of shaking hands of mpeg module 106 and decoder module 108 is all by ATAPI interface 302, mpeg module 106 will determine to receive that the affirmation signal 306 that decoder module 108 is sent just can send next ATAPI order 312 afterwards.Decoder module 108 receives that could control servo motor after the ATAPI order 304 or 312 is positioned to the tram with reading of data with optical read head.If the position that data are arranged in laser disc is discontinuous, optical read head moves to the tram can expend many times.That is with respect to the time with data read on the laser disc and do decoding (for example doing data error-detecting and answer), the mobile optical read head is long on the contrary to the time of appropriate location.When CD-ROM device speed was fast inadequately, mpeg module 106 may be obtained the data that need immediately, made mpeg module 106 decoding backs produce pictures and the phenomenon that square or picture postpone occurred.
[summary of the invention]
The present invention proposes the method for a kind of CD-ROM device control wafer move instruction in advance, comprises the following steps: at least at first, and a mpeg module transmits a command information and gives a decoder module.Then, decoder module receives and a laser disc is read data after this command information and take for mpeg module to be stored in a storer.Then, when data storing behind storer, decoder module transmits a confirmation signal and gives mpeg module.Then, needless to say receive this confirmation signal, mpeg module according to a speed directly row send Next Command information and give this decoder module.Mpeg module is taken the data and foundation one mpeg standard that are stored in storer and is decoded for broadcast.
The present invention also proposes a kind of CD-ROM device control circuit, and this CD-ROM device control circuit comprises a decoder module, a mpeg module and a CPU (central processing unit) at least.This decoder module receives a plurality of command informations.Wherein after decoder module received a command information, decoder module read data to be stored in a storer.When data storing behind this storer, decoder module is sent a confirmation signal.
Mpeg module needless to say the confirmation of receipt signal just footpath row send a plurality of command informations, mpeg module is taken the data that are stored in storer, CPU (central processing unit) is used for control and coordinates decoder module and mpeg module.
[description of drawings]
For above-mentioned and other purposes of the present invention, feature and advantage can be become apparent, a preferred embodiment cited below particularly, and cooperate appended graphicly, be described in detail below:
Fig. 1 illustrates the calcspar of the CD-ROM device control circuit of prior art;
Fig. 2 illustrates the calcspar of a preferred embodiment of CD-ROM device control circuit of the present invention;
Fig. 3 illustrates the ATAPI command sequence figure of prior art;
Fig. 4 illustrates ATAPI command sequence figure of the present invention; And
Fig. 5 illustrates the synoptic diagram of the sequential chart of decoder module running.
[embodiment]
Fig. 2 illustrate CD-ROM device control circuit of the present invention a preferred embodiment calcspar.Please refer to Fig. 2, CD-ROM device control circuit 200 comprises a CPU (central processing unit) 202, a mpeg module 204 and a decoder module 206.Decoder module 206 comprises a storer 208 and a servo controller 210.Servo controller 210 control one servo motors (not shown), servo motor drive CD-RW discsCD-RW makes optical read head can read data on the CD-RW discsCD-RW in position.Compared to the CD-ROM device control circuit 100 of Fig. 1, CD-ROM device control circuit 200 does not need IDE interface 114.Except that this, one one CPU (central processing unit) 202 of 200 needs of CD-ROM device control circuit, and CD-ROM device control circuit 100 needs two CPU (central processing unit) (102 and 104).
Fig. 4 illustrates ATAPI (AT Attachment Packet Interface) command sequence (command sequence) figure of the circuit framework that cooperates Fig. 2.One preferred embodiment of the method for broadcast laser disc of the present invention is described in detail in detail in Fig. 4.Please refer to Fig. 4 and Fig. 2, at first, mpeg module 204 decisions transmit the speed that a plurality of ATAPI command informations are given a decoder module 206.Then, mpeg module 204 sends an ATAPI command information (command message) 402 and gives decoder module 206.Decoder module 206 receives to be controlled optical read head after the ATAPI command informations 402 and laser disc (a for example DVD laser disc) is read data takes for mpeg modules 204 to be stored in storer 208.
When this data storing after storer 208, decoder module 206 transmits a confirmation signal 404 and gives mpeg module 204.When mpeg module 204 not during confirmation of receipt signal 404, mpeg module is in a non-affirmation state.
When this non-affirmation state, mpeg module 204 footpath row send ATAPI command information 406 according to above-mentioned speed and give decoder module 206.That is mpeg module 204 is not waited for that confirmation of receipt signal 404 is promptly decided in its sole discretion and is sent ATAPI command information 406.Compare with the command sequence of Fig. 3, the command sequence of Fig. 4 need not passed through ATAPI interface 302, so mpeg module 204 need not waited for that confirmation of receipt signal 404 can be decided in its sole discretion and send ATAPI command information 406.After decoder module 206 received ATAPI command information 406, decoder module 206 was carried out that laser disc is read the next record data and is taken for mpeg module to be stored in storer 208.Treat this data storing after storer 208, decoder module 206 is sent confirmation signal 408 and is given mpeg module 204.Mpeg module is taken the data and foundation one mpeg standard that are stored in storer 208 and is decoded for broadcast, and this mpeg standard is a MPEG 2 standards for example.
Because the time that ATAPI command information 406 is sent is early than the time of mpeg module 204 confirmation of receipt signals 404, decoder module 206 can receive ATAPI command information 406 ahead of time to begin that optical read/write head is moved to the tram.So, can save the time that decoder module 206 is waited for ATAPI command information 406, also can not produce the phenomenon that square or picture delay appear in picture simultaneously.
Above-mentioned decision transmits the deciding means that a plurality of ATAPI command informations are given the speed of a decoder module 206, for example, the capacity of mpeg module 204 calculated in advance storeies 208, cooperate optical read head to move to the speed of tram, cooperate mpeg module 204 to take the demand speed of data again, just can learn the speed that transmits a plurality of ATAPI command informations.So, can prior notice optical read head move to the tram, and in advance with deposit data to storer 208.Above-mentioned in advance deposit data to the process of storer 208 being placed (pre-fetch) function in advance.
In Fig. 2, CPU (central processing unit) 202 is used to control and coordinate the running of mpeg module 204 and decoder module 206.Compared to Figure 1, in Fig. 1, first CPU (central processing unit) 102 and second CPU (central processing unit) 104 are controlled mpeg module 106 and decoder module 108 respectively, and need between first CPU (central processing unit) 102 and second CPU (central processing unit) 104 to link up, so the framework of Fig. 2 can be controlled mpeg module 204 and decoder module 206 efficiently by IDE interface 114.
Fig. 5 illustrates the example of the sequential chart of decoder module (108 or 206) running.Please refer to Fig. 5,206 pairs of laser discs of decoder module read data need be through reading to send (read pie) 502, writing and send (writepie) 504 and hold (host pie) 506 3 processes of sending.When wherein reading to send (read pie) 502 to represent optical read head to search the tram, read the process of laser disc raw data (raw data).Write and send (write pie) 504 to finish representative datas to have decoded and finish.Hold the process that the data of sending (host pie) 506 representative decoding to be finished transmit.
In the command sequence of Fig. 3, must hold by the time and send 506 to finish (time 510) afterwards, decoder module 108 just can carry out next time read to send 502 processes.In the command sequence of Fig. 4, for instance,, 504 finish, hold and send 506 still when carrying out when writing to send because decoder module 206 receives ATAPI command information 406 in advance, decoder module 206 can begin to read to send 502 in the time 508.So, can save time time of 508 to time 510 to place (pre-fetch) in advance.
Though the present invention discloses as above with a preferred embodiment; right its is not in order to limiting the present invention, anyly is familiar with the person skilled in art, without departing from the spirit and scope of the present invention; when can being used for a variety of modifications and variations, so protection scope of the present invention is as the criterion when the right claim defines.