64 Am79C961A
descriptor accesses are always either 3, 2, or 1 cycles
long, depending on which descriptor operation is being
performed.
If the T IME R b it is s et, the 3 , 2, or 1 c y cles requ ir ed i n
a descriptor access may be performed as a part of a
bus mastership period in which any combination of
descriptor reads and writes and buffer reads and writes
are performed. When the TIMER bit is set, the Bus
Activity Timer (CSR82) and the bus access require-
ments of the PCnet-ISA II gover n the operations per-
formed during a single bus mastership period.
3. FIFO DMA Transfers
FIFO DMA transfers occur when the PCnet-ISA II
microcode determines that transfers to and/or from the
FIFOs are required. Once the PCnet-ISA II BIU has
been granted bus mastership, it will perf orm a series of
consecutive transfer cycles before relinquishing the
bus.
When the Bus Activity Timer is disab led b y clearing the
TIMER (CSR4, bit 13) bit, all FIFO DMA transfers
within a bus mastership period will be either read or
write cycles, and all transfers will be to adjacent,
ascending addresses. When the Bus Activity Timer is
enabled by setting the TIMER bit, DMA transf ers within
a bus mastershi p per iod may consis t of any mixtur e of
read and write cycles, without restriction on the
address ordering. This mode of operation allows the
PCnet-ISA II to accomplish more during each bus
ownership period.
The number o f data transfer cycles contained wi thin a
single bus mastership period is in general dependent
on the programming of the DMAPLUS (CSR4, bit 14)
and the TIMER (CSR4, bit 13) options. Several other
fa ct or s will als o affect the lengt h of the bus masters hip
period. The possibilities are as follows:
If DMAPLUS = 0 and TIMER = 0, a maximum of 16
transfers to or from the FIFO will be performed by
default. This default value may be changed by writing
to the DMA Burst Register (CSR80, bits 7:0). Since
TIMER = 0, all FIFO DMA transfers within a bus mas-
tership period will be either read or write cycles, and all
transfers will be to adjacent, ascending addresses.
Not e that DM APLUS = 0 merely s ets a ma ximum v alue
f or the number of FIFO transfers that ma y occur during
one bus mastership period. The minimum number of
transfers in the bus mastership period will be deter-
mined by the setti ngs o f t he FI FO water m arks and th e
conditions of the FIFOs, and the value of the Bus Activ-
ity Timer (CSR82) if the TIMER bit is set.
If DMAPLUS = 1 and TIMER = 0, the bus mastership
period will continue until the transmit FIFO is filled to its
high threshold (read transfers) or the receive FIFO is
emptied to its low threshold (write transfers). Other
v ariables may also affect the end point of the bus mas-
tership period in this mode, including the particular con-
ditions existing within the FIFOs, and receive and
transmit status conditions. Since TIMER = 0, all FIFO
DMA transfers within a bus mastership period will be
either read or write cycles, and all transfers will be to
adjacent, ascending addresses.
If TIMER = 1, the bus mastership period will continue
until all “pending bus operations” are comple ted or unt il
the Bus Activity Timer value (CSR82) has expired.
These bus operations may consist of any mixture of
descriptor and buffer read and write accesses. If DMA-
PLUS = 1, “pending bus operations” includes any de-
scri ptor acces ses and buffe r access es that nee d to be
performed. If DMAPLUS = 0, “pending bus operations”
include any descriptor accesses that need to be per-
formed and any buffer accesses that need to be per-
formed up to the limit specified by the DMA Burst
Register (CSR80, bits 7:0).
Note that when TIMER=1, following a last bus transac-
tion during a bus mastership period, the PCnet-ISA II
may k eep ownership of the bus for up to approximately
1µs. The PCnet-ISA II determines whether there are
further pending bus operations by waiting approxi-
mately 1µs after the completion of ev ery bus operation
(e.g. a descriptor or FIFO access). If, during the 1 µs
peri od , no f urther bus operations ar e re ques te d by the
internal Buffer Management Unit, the PCnet-ISA II
determines that there are no further pending opera-
tions and gives up bus ownership. This 1 µs of unused
bus ownership time is more than made up for by the
efficien cy ga in ed by being able to perform any mi xt ure
of descriptor and buffer read and write accesses during
a single bus ownership period.
The FIFO thresholds are programmable (see descrip-
tion of CSR80), as are the DMA Burst Register and Bus
Activity Timer values. The exact number of transfer
cycles in the c ase o f DMAPLUS = 1 will b e d epe ndent
on the latency of the system bus to the PCnet-ISA II
controller’s DMA reque st and the speed of bus opera-
tion, but will be limite d by the value in the Bus Act ivity
Timer register (if the TIMER bit is set), the FIFO condi-
tion, and receive and transmit status. Barring a
time-ou t by either of thes e registers, or excepti onal re-
ceive and transmit events, or an end of packet signal
from the FIFO, the FIFO watermark settings and the
ex tent of Bus Grant latency will be the major factors de-
termining the number of accesses performed during
any given arbitration cycle when DMAPLUS = 1.
The IOCHRDY response of the memory device will
also affect the number of transfers when
DMAPLUS = 1, since the speed of the accesses will af-
fect the state of the FIFO. During accesses, the FIFO
may be filling or emptying on the network end. A slower
memory response will allow additional data to accumu-
late insi de of the FIFO (dur ing wr ite transfers from the
receive FIFO). If the accesses are slow enough, a com-