The present invention will become more fully understood from the following detailed description and the accompanying drawings, which are given by way of illustration only, and thus are not limitative of the present invention, and in which:
The present invention is to provide a storage device applied to a computer as an emulated hard-disk drive. The storage device is different from the hard-disk drive in the access manner. The data access of a conventional hard disk is to use a linear motor (stepping motor) that moves the arms on a surface of a platter in the hard disk to read or to write data. On the other hand, the storage device of the present invention is composed of volatile memories or non-volatile memories. The access time of the storage device can be improved largely by omitting the mechanical operation, and thus the operation speed of the computer having the storage device can be greatly improved.
Please refer to
Please refer to
The storage memory 142 can be composed of volatile memories or non-volatile memories in this embodiment. If the storage memory 142 uses the volatile memories, the storage device 14 is connected to the power supply 15 in order to prevent the data from disappearing while the computer is shut off. The power supply 15 is connected to the control chip 140 and the storage memory 142 to prevent the data of the storage memory 142 from disappearing and provides a standard voltage to the storage device 14. The power supply 15 can facilitate the data reserve of the storage device 14.
The control chip 140 further comprises a bus interface 1401, a microprocessor (MCU) 1402, a buffer storage 1403 and a storing memory interface 1404. The buffer storage 1403 includes a direct memory access (DMA) and a buffer. The DMA can transfer data to and from the storage memory 142 directly without detouring through the CPU 10. Namely, the DMA can copy a block of memory from one device to another without involving the CPU. A typical usage of the DMA is to copy a block of memory from the main memory to or from a buffer on the storage device 14, so that the DMA can determine the route of data transfer. The buffer is used to store the transmissive data read and/or written from the storage memory temporarily. The MCU 1402, coupled to the main bus interface 12 via the bus interface 1401 to transmit signals, is used to set the buffer storage 1403 to read from or to write to the storage memory 142 via the storage memory interface 1404.
At first, the storage device 14 is installed into the computer by software, and is set as a virtual disk. After the storage device 14 is installed, when the computer is turned on, the computer will start the readiness review of the storage device 14 independent of the operating system. The CPU 10 outputs a signal to read a device class via the main bus interface, and the MCU 1402 of the storage device 14 responds to the CPU 10 with a mass storage class like hard disks and some related information via the bus interface 1401 and the main bus interface 12. After the readiness review is started, the storage device 14 is deemed as a mass storage for the operating system.
Please refer to
Step S30, the CPU transmits a reading command to the storage device via the main bus interface, and the MCU receives the reading command via the bus interface. Step S31, the MCU sets the buffer storage after receiving the reading command. Step S32, the buffer storage reads the data with the address of the storage memory and the data width via the storage memory interface, and the buffer storage advances to write the address and the data width to the main bus interface. Then, the data reading from the storage memory is stored into the buffer of the buffer storage via the storage memory interface. Step S33, the MCU waits for all the data to be read (copied) completely. Step S34, the buffer storage outputs the data to the main bus interface to respond to the CPU's reading command via the bus interface.
Please refer to
Step S40, the CPU transmits a writing command to the storage device via the main bus interface, and the MCU receives the writing command via the bus interface. Step S41, the MCU sets the buffer storage after receiving the writing command. Step S42, the buffer storage reads the data with the address of the main bus interface and the data width, and the buffer storage advances to write the address and the data width to the storage memory. Then, the data writing from the main bus interface is stored into the buffer of the buffer storage till all the data are copied completely. Step S43, the buffer storage outputs the data to the storage memory via the storage memory interface. Step S44, after finishing the writing process, the MCU responds to the CPU's writing command.
Compared with the structure of the conventional hard disk, the present invention is employing the memories to be a storage which does not have mechanical shock problem by the stepping motor. The access speed of the storage device is the same as the main memory but faster than the hard disk because the storage device can omit the electric machinery operation. The storage device and the main memory are independent memory systems, so that the storage device does not occupy the resources of the main memory in the computer. For its software is suitable for most of the operating systems, the storage device can be easily installed into any operating system.
Although the present invention and its advantages have been described in detail, as well as some variations over the disclosed embodiments, it should be understood that various other changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.
| Number | Date | Country | Kind |
|---|---|---|---|
| 95130556 | Aug 2006 | TW | national |