Download MPA Multi-Protocol Terminal Emulation Adapter Using the DP8344

Transcript
er than 60.5 ns (See Table B-1). Note that 55 ns Static
Rams will work for both full speed and half speed operation
of the MPA-II.
APPENDIX B
Timing Analysis
This section will first discuss the timing analysis used in seleting appropriate data memory and instruction memory for
use in the MPA-II system. Following this is a description of
the timing involved in interfacing the MPA-II system with the
PC-XT/AT.
As discussed in Chapter 5ÐHardware Architecture, the
BCP utilizes a Harvard Architecture, where the data memory
and instruction memory are organized into two independent
memory banks, each with their own address and data buses. The data memory is dual ported enabling both the BCP
and the remote processor to have access. The instruction
memory, on the other hand, is exclusively owned by the
BCP. Any remote processor accesses to this memory occur
through the BCP, and only when the BCP is idle.
The MPA-II system runs with the BCP operating at full
speed, 18.8696 MHz (ÀDCR[CCS] Ó e 0), with zero instruction (nIW) and one data (nDW) wait state resulting in a
T-state of 53 ns. For a system running the BCP at half
speed, 9.45 MHz (ÀDCR[CCS] Ó e 1), with zero instruction
and zero data wait states, the T-state is 106 ns. The T-state
is calculated as shown:
T-state e 1/(CPU Clock Frequency)
TL/F/10488 – 59
FIGURE B-1. Instruction Memory Read Timing
TABLE B-1. Instruction Read Times, tI (ns)
CPU
Clock Freq.
(MHz)
0
1
2
3
9.43
18.86
20.00
140
60.5
56
246
115.5
106
352
166.5
156
458
219.5
206
Wait States nIW
However, instruction read time is not the only timing consideration when choosing instruction RAM. If the BCP is used
in an application which requires full speed softloading of
instruction RAM, there are two other timing relationships
which require evaluation. These are data setup time and
write pulse width (see Figure B-2 ). The relevant BCP timing
parameters are I valid before IWR rising, tDS, and IWR low
time, tIW. The value of these timing parameters depends on
the Remote Interface mode of operation, which is Fast Buffered Write for the MPA-II system. Using Table 5-22, Fast
Buffered Write of IMEM, of the DP8344B datasheet, the
data setup time (parameter 19) is:
tDS e (nIW a 1)T b 18 ns
Interfacing Memory to the DP8344B
As with most other aspects of a design, choosing memory is
a cost vs. performance trade off. Maximum performance is
achieved running no wait-states with fast, expensive memory. Slower, less expensive memory can be used, but waitstates must be added, slowing down the BCP. Therefore
one needs to choose the slowest memory possible while
still meeting design specifications. While this appendix assumes RAM is used for instruction and data memory, the
information is relevant to memory devices in general.
and the write pulse width tIW (parameter 20) is:
tIW e (nIW a 1)T b 10 ns
Table B-2a and B-2b give various data setup times and write
pulse widths. Once again, the RAM chosen must have a
faster RAM data setup time and quicker RAM write strobe
width than the corresponding desired data setup time and
write pulse width. Thus, for the MPA-II system, the selected
Instruction RAM data setup time must be less than 35 ns
(Table B-2a), and the RAM Write Strobe Width must be less
than 43 ns (Table B-2b). In a typical application of the BCP,
softloading occurs after reset with the BCP operating with
CLK/2 and full wait states. Under these conditions the instruction read time value is the critical parameter for choosing the instruction RAM. In the MPA-II system, softloading
can also occur under the full speed conditions. First, softloading occurs upon a first load of instruction memory into
the MPA-II on power up. The MPA-II system can then be
reloaded without powering down. In this situation, the
MPA-II system is set to full speed. Therefore, the RAM selected must meet all the parameters listed thus far.
Instruction Memory Timing
The BCP needs separate data and instruction RAM, each
with their own requirements. Instruction read time is the major constraint when choosing instruction RAM. Instruction
read time tI, as shown in Figure B-1 , is measured from when
the instruction address becomes valid to when the next instruction is latched into the BCP. Instruction read time for
various clock frequencies and wait states are given in Table
B-1. Clock frequency and wait state combinations other
than those given in the table can be calculated using parameter 1 in Table 5-5, Instruction Memory Read Timing, of the
DP8344B data sheet:
tI e (1.5 a nIW) T b 19 ns
where tI is the instruction read time (ns), nIW is the number
of instruction memory wait states, and T is the 7-state time
(ns). The RAM chosen needs to have a faster access time
than the read time for the desired combination of clock frequency and wait states. Since the MPA-II system runs at full
speed (18.8696 MHz) with nIW e 0, the RAM chosen for
instruction memory must have an access time which is fast-
86