Claims
- 1. An automatic write control circuit in a disk controller circuit, said disk controller coupler to a microprocessor through an interface circuit, a host buffer memory of a host computer system over a host bus, and an external buffer memory over an external bus, said automatic write control circuit comprising:
- a first counter, receiving an update signal, for maintaining a first count indicative of available storage units in said external buffer memory designated by said microprocessor for a data transfer between said host buffer memory and said external buffer memory, said first counter being updated upon receipt of an active phase of said update signal, said active phase of said update signal indicating successful transfer of a storage unit of data;
- a second counter, receiving said update signal, for maintaining a second count indicative of data units transferred in said data transfer, said second counter also updated upon receipt of said active phase of said update signal; and
- a control circuit for (a) providing said first and second counters said active phase of said update signal as said disk controller circuit transfers said data from said host buffer memory into said storage units in said external buffer memory, and (b) asserting a control signal to cause said interface circuit to generate an interrupt signal to said microprocessor upon the earlier of: (i) said first count reaching zero, indicating that said data transfer is incomplete and (ii) said second count indicating that said data transfer is complete.
- 2. A method for providing an automatic write control circuit in a disk controller circuit, said disk controller coupled to a microprocessor through an interface circuit, a host buffer memory in a host computer system over a host bus, and an external buffer memory over an external bus, said method comprising the steps of:
- designating a number of available storage units in said external buffer memory for a data transfer between said host buffer memory and said external buffer memory;
- initializing a first counter to maintain a first count indicative of said available storage units remaining in said external buffer memory;
- initializing a second counter to maintain a second count indicative of data units transferred in said data transfer;
- initiating said data transfer between said host buffer memory and said external buffer memory;
- updating said first and second counts as each storage unit of said data is transferred from said host buffer memory into said available storage units of said external buffer memory; and
- generating an interrupt signal to said microprocessor upon the earlier of: (a) said first count reaching zero, indicating that said data transfer is incomplete, and (b) said second count indicating that said data transfer is complete.
- 3. An automatic write control circuit as in claim 1, further comprising a drive interface circuit coupled to a non-volatile storage medium, for controlling a subsequent data transfer between said external buffer memory and said non-volatile storage medium.
- 4. An automatic write control circuit as in claim 1, wherein said control circuit comprises a state machine.
- 5. A method as in claim 2, further comprising the step of providing a drive interface circuit coupled to a non-volatile storage medium, for controlling a subsequent data transfer between said external buffer memory and said non-volatile storage medium.
- 6. A method as in claim 2, wherein said step of updating and said step of generating are controlled by a state machine.
Parent Case Info
This application is a continuation of application Ser. No. 08/172,659, filed Dec. 22, 1993 now abandoned.
US Referenced Citations (18)
Continuations (1)
|
Number |
Date |
Country |
Parent |
172659 |
Dec 1993 |
|