FORCE Computers SYS68K/ISCSI-1 — SYS68K/ISCSI-1 User's Manual

HD68450,HD68450Y------------------------------------------------ ____________________ ___ mode, the BTC is not used. When the DMAC refers.to the linked array table, the value of the BFC is outputted as the function code. The values of the function code registers are unchanged by the linked array chaining operation. This type of chaining allows entries to \:)e easily removed or inserted without having to reorganize data within the chain. Since the end of the chain is indicated by a terminal link, the number of entries in the array need not be specified to the DMAC.

In order to guarantee, reliable decoding, the DMAC verifies that the incoming code has been statable for two DMAC clock cycles before acting on it. The DMAC picks up BEC o·BEC 2 at the rising edge of the clock. If BEC o·BEC 2 is asserted to the un- defined code, the operation of the DMAC does not proceed. For example, when the DMAC is waiting for DTACK, inputting DTACK does not result in the termination of the cycle if BEC o- BEC 2 is asserted to the undefined code. In addition, when the transfer request is received, BR is not asserted if the BEC o- BEC 2 is not set to no exception condition.

If exception condition, except for HALT, is inputted during the DMA bus cycle prior to, or in coincidence with DT ACK, the DMAC terminates the current channel operation immediate- ly. Here coincident means meeting the same set up require- ments for the same sampling edge of·the clock. If a bus excep- tion condition exists, the DMAC does not generate any bus cycles until it is removed. However, the DMAC still recognizes requests. The linked array table must start at an even address in the linked array chaining mode. Starting the table at an odd address results in an address error. If "0" is initially loaded to the MTC, the count error is signaled.

Because the MPU can read al\ of the DMAC registers, al\ necessary error recovery informa· tion is available to the operating system. The comparision of both chaining modes is shown in Table 8. Table 8 Chaining Mode Address/Count Information Chaining Mode Base Address Base Transfer Completed Register Counter When The tlmmg diagram of halt is shown in: Figure 39. This diagram shows halt being generated during a read cycle from the 68000 compatible device in the dual addressing mode. If the halt exception is asserted during a DMA bus cycle, the DMAC does not terminate the bus cycle immediately.

The DMAC waits for the assertion of DT ACK before terminating the bus cycle so that the bus cycle is completed normally. In the halted state, the DMAC puts all the control signals to high impedance and relinquishes the bus to the MPU. The DMAC does not output the BR until halt exception is negated. When halt exception is negated, the DMAC acquires the bus again and proceeds the DMA operation. In order to insure a halt excep- tion operation, the BEC lines must be set to halt at least until the assertion of DTC.

Halt address of the number of data Base Transfer Array Chaining array table blocks being Count = 0 transferred Linked Array address of the Linked Chaining linked array (unused) Address = 0 table The DMAC has three lines for inputting bus exception condi· tions called BEC o, BEC I, and BEC 2 . The priority encoder can be used to generate these signals externally. These lines are encoded as shown in Table 9. (4) Bus Exception Conditions Table 9 BEC 2 BEC 1 BEC o Exception Condition 1 1 1 No exception condition If the DMAC has the bus, but is not executing any bus cycle, the DMAC relinquishes the bus as soon as halt exception is asserted.

1 1 0 Halt 1 0 1 Bus error 1 0 0 Retry 0 1 1 Relinquish bus and retry 0 0 1 (undefined, reserved) 0 1 0 (undefined, reserved) 0 0 0 Reset 38 ~HITACHI