The utility model content
Problem to be solved in the utility model provides a kind of storage medium interface conversion equipment, causes storage medium to use inconvenient defective to overcome in the prior art owing to the interface of various storage mediums is inequality.
For achieving the above object, the technical solution of the utility model provides a kind of storage medium interface conversion equipment, and described device comprises standard interface module, Data Matching module and storage medium control module; Described standard interface module is connected with described Data Matching module, and the data bit width of its input and clock frequency are consistent with the system requirements that uses described storage medium; Described storage medium control module is connected with described Data Matching module, is used for the mapped storage media interface sequence, finishes the data interaction to storage medium; Described Data Matching module is used for the data of described standard interface module and storage medium control module are carried out the sequential coupling.
Further, described Data Matching module comprises condition monitoring unit, key control unit, data input channel and data output channel; Described condition monitoring unit is connected with key control unit with the standard interface module respectively, is used to gather the state of described standard interface module, handles and sends correlating markings information to key control unit; Described data input channel is connected with the storage medium control module with the standard interface module respectively, is used for gathering the input data of standard interface module, and is matched to the interface sequence of storage medium control module; Described data output channel is connected with the storage medium control module with the standard interface module respectively, is used to receive the output data of storage medium control module, and matches in the standard interface module; Key control unit is connected with condition monitoring unit, data input channel, data output channel and storage medium control module respectively, be used for the flag information that the accepting state monitoring unit sends, respectively data input channel and data output channel are operated, and carry out information interaction with the storage medium control module.
Further, when storage medium included unavailable address, described device also comprised: bad block table (being unavailable address block) information memory cell, the defect block addresses information that is used to preserve storage medium; Address decoding unit is used for according to described defect block addresses information, guarantees that Input Address skips defect block addresses and shine upon one by one with available address.
Further, described standard interface module comprises: the data-interface of input and output, address interface, enable the status information interface of control interface and standard interface.
Further, if during the memory address of the corresponding a plurality of absolute address interfaces of described storage medium control module, comprise a plurality of control modules, each control module carries out information interaction with a storage medium respectively.
Further, described storage medium comprises that DDR SDRAM, DDR2 SDRAM, DDR3 SDRAM series is the flash memory of representative for the internal memory of representative or NAND FLASH.
Further, use for the ease of the user, require the external interface characteristic representative, promptly the sequential of described standard interface is FIFO (First Input First Output, First Input First Output) or RAM (RandomAccess Memory, random access memory) interface sequence.
Compared with prior art, the utility model beneficial effect is as follows:
The utility model is by being mapped as the standard interface sequential to the storage medium interface sequential, realized that the data of standard interface exchange transmission, to the use of the storage medium of the complex time sequence interface condition of providing convenience.
Embodiment
Below in conjunction with drawings and Examples, embodiment of the present utility model is described in further detail.Following examples are used to illustrate the utility model, but are not used for limiting scope of the present utility model.
A kind of storage medium interface conversion equipment of the utility model embodiment comprises standard interface module, Data Matching module and storage medium control module as shown in Figure 1.
The standard interface module is connected with the Data Matching module, and the data bit width of its input and clock frequency are consistent with the system requirements that uses storage medium.The standard interface module comprise input and output data-interface, address interface, enable the status information interface of control interface and standard interface, its sequential comprises FIFO or RAM interface sequence.
The Data Matching module is used for the data of described standard interface module and storage medium control module are carried out the sequential coupling, comprises condition monitoring unit, key control unit, data input channel and data output channel.
The condition monitoring unit is connected with key control unit with the standard interface module respectively, is used to gather the state of described standard interface module, handles and sends correlating markings information to key control unit.
The data input channel is connected with the storage medium control module with the standard interface module respectively, is used for gathering the input data of standard interface module, and is matched to the interface sequence of storage medium control module.
The data output channel is connected with the storage medium control module with the standard interface module respectively, is used to receive the output data of storage medium control module, and matches in the standard interface module.
Key control unit is connected with condition monitoring unit, data input channel, data output channel and storage medium control module respectively, be used for the flag information that the accepting state monitoring unit sends, respectively data input channel and data output channel are operated, and carry out information interaction with the storage medium control module.
The storage medium control module is connected with described Data Matching module, is used for the mapped storage media interface sequence, and carries out information interchange with key control unit, finishes the data interaction to storage medium.
A kind of storage medium interface conversion method of the present utility model may further comprise the steps as shown in Figure 2:
Step 21: after the electrification reset, the storage medium control module need be carried out initialization and information inquiry operation to storage medium, and the configurable clock generator unit waits for that then initialization finishes.
Step 22: after initialization was finished, the status information of condition monitoring unit query criteria interface, and the status information of computer storage media were sent to key control unit with marking signal.
Step 23: key control unit triggers associative operation after receiving the marking signal that the condition monitoring unit provides.
Step 24: each unit cooperatively interacts under the control of key control unit, carries out information interchange with the storage medium control module, finishes the input and output of data, address signal and the coupling that enables control signal.
Step 25: the interface sequence that the storage medium control module need become the information translation that other unit in the system provide storage medium can discern, carry out data interaction with storage medium.
Embodiment one
The storage medium read-write flow process of the utility model embodiment one as shown in Figure 3, be that example describes storage medium be divided into two passages and be mapped as the fifo interface characteristic in the present embodiment, wherein the Interface status synoptic diagram of storage medium interface conversion equipment as shown in Figure 4.With reference to Fig. 3 and Fig. 4, present embodiment may further comprise the steps:
Step 31: the input data bit width of standard interface module is 36 bit wides, and input clock is 106,000,000, and the condition monitoring unit monitors the status information of standard interface all the time.
Step 32: this status information is handled in the condition monitoring unit, is sent to key control unit and triggers write operation.
Step 33: write operation meeting control data enters the data input channel from the standard interface module, and the data bit width of this moment transforms to 144 bit wides, and clock also adopts system clock 200,000,000.
Step 34: data message, address information are mated according to the requirement of storage medium control module in the data input channel, and are transferred into the storage medium control module.
Step 35: the storage medium control module is with the enable signal of receiving, address information and data message are converted to the interface sequence of storage medium, with information stores in medium.
Step 36: the status information of standard interface and storage medium is collected in the condition monitoring unit simultaneously, provides marking signal to key control unit when satisfying after setting requires, and triggers read operation.
Step 37: the storage medium control module is read data message, and is imported the data output channel under enabling of providing of internal system and address signal cooperate from storage medium, the data bit width of this moment still is 144 bit wides, and clock adopts system clock.
Step 38: under the control of key control unit, data are sent to the standard interface module from the data output channel, are processed into 36 bit wides of external interface according to external demand, and clock adopts 106,000,000 of outside input.
Embodiment two
The structure of the storage medium interface conversion equipment of the utility model embodiment two as shown in Figure 5, in the present embodiment with eight independently storage medium to be mapped as the RAM interface features be that example describes, compare with embodiment one, when storage medium includes unavailable address, the storage medium interface conversion equipment of present embodiment also comprises bad block table (being unavailable address block) information memory cell and address decoding unit, if and during the memory address of the corresponding a plurality of absolute address interfaces of storage medium control module, be divided into a plurality of control modules, each control module carries out information interaction with a storage medium respectively.The bad block table information memory cell is used to preserve the defect block addresses information of storage medium; Address decoding unit is used for according to described defect block addresses information, guarantees that Input Address skips defect block addresses and shine upon one by one with available address.
Storage medium in the present embodiment is an example with NAND FLASH, and NAND FLASH high-capacity flash memory can produce " bad piece " along with increasing progressively of service time, should skip this class " bad piece " by the address decoding mode when carrying out data storage.Its processing procedure is as follows:
Step 51: after powering on, device detects bad block table information automatically, and finishes the defect block addresses inquiry renewal of storage medium.
Step 52: after finishing initialization operation, interface arrangement externally is shown as the RAM interface sequence.
Step 53: the condition monitoring unit is the query criteria interface status information constantly, and triggers marking signal to key control unit.
Step 54: key control unit triggers corresponding operating, and address decoding unit is finished Input Address decoding, and data channel is finished the extraction of interaction data.
Step 55: under key control unit under the management, various data, enable, interface sequence that address information is matched to the storage medium control module.
Step 56: the storage medium control module is finished with the signal of storage medium and is docked, and realizes various operations.
In above embodiment, described storage medium comprises that DDR SDRAM, DDR2 SDRAM, DDR3SDRAM series is the internal memory of representative for the internal memory of representative or NAND FLASH.
The utility model is by being mapped as the standard interface sequential to the storage medium interface sequential, realized that the data of standard interface exchange transmission, to the use of the storage medium of the complex time sequence interface condition of providing convenience.
The above only is a preferred implementation of the present utility model; should be understood that; for those skilled in the art; under the prerequisite that does not break away from the utility model know-why; can also make some improvements and modifications, these improvements and modifications also should be considered as protection domain of the present utility model.