Advanced Hardware Architectures AHA3580A-080PTC Datasheet

Product Specification
AHA3580
80 MBytes/sec ALDC Data
Compression Coprocessor IC
2365 NE Hopkins Court
Pullman, WA 99163-5601
tel: 509.334.1000
fax: 509.334.9000
e-mail: sales@aha.com
www.aha.com
advancedhardwarearchitectures
* This specification represents a product still in the design cycle, undergoing testing processes, any specifications
are based on design goals only. Parameters may be subject to change pending completion of characterization.
PS3580-1100
Advanced Hardware Architectures, Inc.

Table of Contents

1.0 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
1.1 Conventions, Notations and Definitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
1.2 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
1.3 Applications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
1.4 Functional Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
1.4.1 Port A and Port B Interfaces. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
1.4.1.1 FAS466 DMA Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
1.4.1.2 Initiator Synchronous DMA Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
1.4.2 Data Expansion During Compression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
1.4.3 Multiple Records. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
1.4.4 Byte Alignment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
2.0 Compression Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
2.1 Compression Pass Through . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
2.2 Compression. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
3.0 Decompression Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
3.1 Decompression Pass Through . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
3.2 Decompression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
3.3 Decompression Output Disabled Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
4.0 Microprocessor Interface and Register Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
4.1 Microprocessor Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
4.1.1 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
4.1.2 Resets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7
4.1.3 Port A Interface FIFO Access. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7
4.2 Register Access. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
4.3 Pausing / Resume. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
5.0 Port A and Port B Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
6.0 Register Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
6.1 Status 0 (STAT0). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
6.2 Status 1 (STAT1). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
6.3 Port A Configuration 0 (ACNF0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
6.4 Port A Configuration 1 (ACNF1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
6.5 Port B Configuration 0 (BCNF0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
6.6 Port B Configuration 1 (BCNF1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
6.7 Identification (ID0, ID1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
6.8 Port A Polarity (APOL). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
6.9 Port B Polarity (BPOL). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14
6.10 Port A Transfer Count (ATCL0, ATCL1, ATCH0, ATCH1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14
6.11 Record Count (RCL0, RCL1, RCH0, RCH1). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15
6.12 Port B Compare Count (BCCL0, BCCL1, BCCH0, BCCH1). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15
6.13 Port B Transfer Count (BTCL0, BTCL1, BTCH0, BTCH1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
6.14 Port A FIFO Data Access (AFIF0, AFIF1). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
6.15 Compressed Bytes Processed (CBPL0, CBPL1, CBPH0, CBPH1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
6.16 Port A FIFO Control (AFCT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
6.17 Error Status (ERRS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
6.18 Interrupt Status 0 (INTS0). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
6.19 Interrupt Status 1 (INTS1). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
6.20 Command (CMND) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
6.21 Record Length (RLL0, RLL1, RLH0, RLH1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
6.22 Data Disabled Count (DDCL0, DDCL1, DDCH0, DDCH1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
6.23 Error Mask (EMSK). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
PS3580-1100 i
Advanced Hardware Architectures, Inc.
6.24 Interrupt Mask 0 (IMSK0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23
6.25 Interrupt Mask 1 (IMSK1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23
7.0 Signal Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
7.1 Microprocessor Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
7.2 Port A Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
7.3 Port B Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26
8.0 Pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27
9.0 Electrical Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
9.1 Absolute Maximum Ratings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
9.2 Recommended Operating Conditions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
9.3 DC Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
10.0 Timing Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
11.0 Packaging. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41
12.0 Ordering Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42
12.1 Available Parts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42
12.2 Part Numbering. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42
13.0 AHA Related Technical Publications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4 2
ii PS3580-1100
Advanced Hardware Architectures, Inc.

Figures

Figure 1: Functional Block Diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
Figure 2: Multiple Record Compression. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
Figure 3: Port A Interface Input Padding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
Figure 4: TQFP Pinout. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 8
Figure 5: Clock Timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
Figure 6: Reset Timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
Figure 7: Processor Read Timing, MMODE = 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31
Figure 8: Processor Write Timing, MMODE = 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32
Figure 9: Processor Read Timing, MMODE = 0. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33
Figure 10: Processor Write Timing, MMODE = 0. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34
Figure 11: Port A, FAS466 DMA Slave Mode Read. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35
Figure 12: Port A, FAS466 DMA Slave Mode Write. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36
Figure 13: Port B, FAS466 DMA Master Mode Read. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37
Figure 14: Port B, FAS466 DMA Master Mode Write. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38
Figure 15: Port A, Initiator Synchronous DMA Mode In Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39
Figure 16: Port A, Initiator Synchronous DMA Mode Out Timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39
Figure 17: Port B, Initiator Synchronous DMA Mode Out Timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40
Figure 18: Port B, Initiator Synchronous DMA Mode In Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40
Figure 19: AHA3580 TQFP Package Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41
PS3580-1100 iii
Advanced Hardware Architectures, Inc.

Tables

Table 1: Microprocessor Interface Control Signals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
Table 2: Port A Interface Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Table 3: Port B Interface Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Table 4: Clock Timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3 0
Table 5: Reset Timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
Table 6: Processor Read Timing, MMODE = 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31
Table 7: Processor Write Timing, MMODE = 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32
Table 8: Processor Read Timing, MMODE = 0. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33
Table 9: Processor Write Timing, MMODE = 0. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34
Table 10: Port A, FAS466 DMA Slave Mode Read. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35
Table 11: Port A, FAS466 DMA Slave Mode Write. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36
Table 12: Port B, FAS466 DMA Master Mode Read. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37
Table 13: Port B, FAS466 DMA Master Mode Write. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38
Table 14: Port A, Initiator Synchronous DMA Mode In Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39
Table 15: Port A, Initiator Synchronous DMA Mode Out Timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39
Table 16: Port B, Initiator Synchronous DMA Mode Out Timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40
Table 17: Port B, Initiator Synchronous DMA Mode In Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40
Table 18: TQFP (Thin Quad Flat Pack) 14 × 14 mm Package Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41
iv PS3580-1100
Advanced Hardware Architectures, Inc.

1.0 INTRODUCTION

AHA3580 is a single chip lossles s compression and decompression in tegrated circu it implementing the industry standard lossless adaptive data compression algorit hm, also k nown as ALDC. Th e device compresses, de compresses or passes throug h data unchanged depending on the operating mode selected. This device achieves an average compression ratio of 2:1 on typical computer files. The flexible hardware interface makes this part suitable for many applicat ion s.
Port A DMA interface connects directly to popular industry standard SCSI controllers from QLogic and ST Microelectronics (Adaptec designed) and a fibre channel controller from QLogic (FAS440).
Content Addressable Memory (CAM) within the compression/decompression engine eliminates the need for external SRAMS.
Included in this specification is a functional overview, operation modes, register descriptions, DC and AC Electrical characteristics, ordering information , and a listing of related technical publications. It is intended for hardware and software engineer s designing a compressi on system using AHA3580.
AHA designs and develops lossless compression, forward error correction and data storage formatter/controller ICs. Technical publications are available upon request.
1.1 CONVENTIONS, NOTATIONS AND
DEFINITIONS
– Active low signals have an “N” appended to the
end of the signal name. For example, CSN and WRITEN.
– “Signal assertion” means the signal is logically
true.
– Hex values are represent ed wi th a prefix of “0x” ,
such as Register “0x00”. Binary values do not contain a prefix, for example, MMODE = 1.
– A prefix or suffix of “x” in dicates a lett er missing
in a register name or signal name. For example, xCNF0 refers to the ACNF0 or BCNF0 register.
– A range of signal names or register bits is denoted
by a set of colons between the numbers. Most significant bit is always shown first, followed by least significant bit. For exampl e, MDATA[7:0] indicates signal names MDATA7 through MDATA0.
– Mega Bytes per second is referred to as MBytes/
sec or MB/sec.
– IBM is a registered tr ademark of IBM.

1.2 FEATURES

PERFORMANCE:
• 80 MB/s data compression, decompression or pass-through rate with a single 80 MHz clock
• 2:1 average compression ratio
• A four byte Recor d Len gth register allows record lengths up to 4 gigabytes
• Four byte Record Count register allows multiple record transfers
• Error checking in decompression mode reportable via an interrupt
FLEXIBILITY:
• Polled or interrupt driven I/O
• Port A/B DMA interfaces include FAS466, F AS440 and AIC-43C97C
• Programmable polarity for DMA control signals
• DMA FIFO access via microprocessor port at Port A Interface
SYSTEM INTERFACE:
• Single chip data compression solution
• Two selectable micr oprocessor i nterfaces
• Programmable Interrupts
• Interfaces directly with industry standard SCSI chips and FAS440 fibre channel controller
OTHERS:
• Open standard ALDC adaptive lossless compression algorithm
• Complies to QIC-154, ECMA 222, ANSI X3.280-1996 and ISO 15200 standard specifications
• Algorithm compatible to I BM ALDC1-20S-HA and IBM ALDC1-20S-LP, and AHA3520
• 100 pin package in 14 × 14 mm TQFP body
• Lower power 3.3 Volt device

1.3 APPLICATIONS

•Tape drives
• Network communications – wired and wireless
PS3580-1100 Page 1 of 42
Advanced Hardware Architectures, Inc.

1.4 FUNCTIONAL DESCRIPTION

AHA3580 is a compression/decompression device residing between the host interface, usually SCSI, and the buffer manager ASIC. Major blocks in this device are the Microproce ssor Interface, P ort A Interface, Port B Interface, and the Compression/ Decompression Engine. The Microprocessor Interface provides status and control information by register access. Port A and Port B Interfaces are configurable for polarity, handshaking modes, and other options. The operating mode establishes the direction of both the Port A and Port B Interfaces. Compression or Compression P ass Through sets the Port A Interface as an input and the Port B Interface as an output. Conversely Decompression or

Figure 1: Functional Block Diagram

AHA3580 Compressio n Chip
ADATA[15:0]
APARITY[1:0]
ACOUT
ADBOEN
ACIN
AFF_FE
AAF_AE
PORT A
INTERFACE
PORT A
DMA
STATE
MACHINE
Decompression Pass Through sets the Port A Interface as an output and the Port B Inter face as an input. Decompression Output Disabled mode allows the device to dec ompress a user programmed number of records while dumping the uncompressed data, then automatically begin outputting the remaining uncompressed records.
A four byte Record Length register and a four byte Record Count register allow the user to partition the data into multiple records. Compression Pass Through mode and Decompression Pass Through modes allow data transfers through the device without changing the data. Both interfaces, Port A and Port B, have selectable transfer modes.
IBM
ALDC CORE
PORT B
INTERFACE
PORT B
DMA
STATE
MACHINE
BDATA[15:0] BPARITY[1:0] BCOUT BDBOEN BCIN BFF_FE BAF_AE
CLOCK
IBM is a registered trademark of IBM.
CLOCK
GENERATION
PROCESSOR INTERFACE STATE MACHINE
PROCESSOR INTERFACE
WAITN
MCIN[1:0]
MDATA[7:0]
MMODE
ADDR[4:0]
RESETN
IREQN
Page 2 of 42 PS3580-1100
Advanced Hardware Architectures, Inc.

1.4.1 PORT A AND PORT B INTERFACES

Both Port A and Port B Interfaces are
independently configurable via the Port A
Configuration registers (ACNFx), the Port A Polarity register (APOL), th e Port B Configuration
registers (BCNFx), and the Port B Pola rity regis ter (BPOL). Both Ports may be configured to operate in FAS466 mode or Initiator Synchronous mode.
1.4.1.1 FAS466 DMA MODE
The FAS466 mode interface is capable of 160 MBytes/sec burst data transfers into or out of the Port A and Port B Interfaces.
A data transfer consists of DREQx followed by DACKx asserting. DACKx is only asserted when the FIFO status signals, xFF_FE and xAF_AE, permit a transfer. Slave Mode Read operation differs from Slave Mode Write such that data transfers are delayed one clock with Slave Mode Read. Transf ers are also delayed one clock with Port B F AS466 Master Mode W rite opera tion. T ransfer s are not delayed one clock after a valid DACKx with Port A FAS466 Slave Mode Write and Port B FAS466 Master Mode Read transfers.
FAS466 Port A Slave Mode Read operation transfers data from the external device to the AHA3580 Po rt A interface. During a read operation, ADBOEN must be asserted. A 16-bit transfer occurs on the second clock cycle after assertion of DACKA. Transfers continue always delayed to the second clock after a valid DACKA. Port B FAS466 Master Mode Write operation functions similarly since data transfers also are delayed to the second clock after a valid DACKB signal.
FAS466 Port A Slave Mode Write operation transfers data from the AHA3580 Port A interface to the external device. ADBOEN must be deasserted for a write transfer. When DACKA is asserted, each rising edge of cl ock transfers a 16-bit data word to the external device. Port B Master Mode Read operation functio ns similarly since data transfers occur every clock edge if DACKB is asserted.
The AHA3580 monitors the input FIFO status signals, AFF_FE and AAF_AE, at Port A and controls the transfer via the DACKA signal, thus avoiding data loss and/or FIFO corruption. When ADBOEN is asserted during a read transfer, the external FAS466 device drives the 16-bit data and parity onto the ADATA[15:0] and APARITY[1:0] for transfers into the AHA3580 device.
When AFF_FE is asserted, data can not be transferred (DACKx will not be asserted). When AAF_FE is asserted, data is trans ferred e very other clock while sampling AFF_FE.
The AHA3580 Port B asserts BFF_FE when the FIFO is empty during a write transfer or ful l during a read transfer i ndi cating that no more data may be transferred. Port B a sserts BAF_AE when the FIFO is almost empty during a write trans fer or almost full during a read transfer. When BAF_AE is asserted, transfers should be done every other clock while checking the status of the BFF_FE signal to determine if another t ra nsf er ca n be done. DREQB will remain asserted during the entire transfer.
1.4.1.2 INITIATOR SYNCHRONOUS DMA MODE
This mode is compatible with the SCSI DMA Initiator Synchronous mode of the AIC-43C97C device from ST Microelectronics. The SCSI controller should be programmed for two clock wide trans fer cycles, 16-bit interface, and synchronous mode. The maximum transfer rate in this mode is 40 Mega transfers per second with an 80 MHz clock, or 80 Mbytes per second.
During a decompressi on or decompression pa ss through operation data is t ransferred from Port A to the external SCSI controller. The AHA device drives the data on the ADATA[15:0] and asserts DREQA. The external device accepts the data and responds by asserting a DACKA. Multiple DREQA pulses along with data may occur before the first DACKA gets asserted.
During a compression or compression pass through operation data is transferred from the external SCSI control ler to Port A. In this mode the AHA device generates a DREQA pulse. The external device responds by driving the data onto the bus and asserting the DACKA signal. The external device may receive multiple DREQA pulses before responding with the first data word and a DACKA pulse.
The AHA device will stop generating DREQA pulses if the n umber generated is 16 greater than the number of DACKA pulses received. The total number of DACKA pulses must match to total number of DREQA pulses.
Port B Initiator Synchronous DMA Mode is similar except it opera tes as a Slave port and the DMA count is programmed in the e xternal device. During a decompression or decompression pass through operation data is transferr ed from the external device to Port B. The external devi ce dri v es the dat a on the BDATA[15:0] and as ser ts DREQB. The AHA3580 accepts the data and responds by asserting DACKB. Multiple DREQB pulses along with data may o ccur before the first DACKB gets asser ted .
PS3580-1100 Page 3 of 42
Advanced Hardware Architectures, Inc.
During a compression or compression pass through operation data is transfe rred from Port B to the external device. In this mode the external device generates a DREQB pulse. The AHA device responds by driving the data onto the bus and asserting the DACKB signal. The AHA device may receive multiple DREQA pulses, up to a maximum of 16, before respondi ng with the first data word a nd a DACKB pulse.
The total number of DACKB pulses mus t match the total num ber of DREQB pulses. The exte rnal device may not generate a DREQB if the DREQB count is 16 greater than the DACKB count.
1.4.2 DATA EXPANSION DURING
COMPRESSION
Data expansion occurs when the size of the data increases during a compression operation. This typically occurs when the data is compress ed prior to input into the chi p.The EXPAND status bit is set if the Port B Transfer Count is larger than the Port A T ransfer Cou nt reg ister. If data expansion caused the Port B T rans fer Count to exceed its maximum 4- byte value then the BTC Overflow Error status gets set. Worst case expansion allowable by the algorithm is 12.5% or (9/8 ti mes the uncomp ressed Record Length).

1.4.3 MULTIPLE RECORDS

The AHA3580 device has two provisions to manage compressing a block of data into multiple records: automatic segmentation into multiple records at the Port A interface and the Reset history buffer command. During compression operation,
the Port A interface autom atically partitions the uncompressed data into equal length records according to the Record Count and Record Length registers. The two sets of registers determine the number of records and length of each record in the data transfer operati on. When compressing multiple records the devi ce retains the con tents of the hist ory buffer between records. This usually improves compression ratio by al lowing data from the current record to match against data from the previous record. During decompress ion, t he previ ous re cord must be decompressed prior to the current record unless the history buffer is reset just before compressing the curr ent record. For example, Figure 2 shows three records with a history buffer reset before record three. In this case, record three can be decompressed without previously decompressing records one and two. However, decompressing record two requires deco mpressing rec ord one fi rst.
When process ing multiple rec ords (Record Count is greater tha n on e), the Rec ord Length must be greater than 0x22.

1.4.4 BYTE ALIGNMENT

Both the Port A and Po rt B interfaces support the insertion and re moval of padding byte s to align data transfers to any byte bounda ry wit hin a t wo-byte or four-byte wide memory system. Figure 3 shows the four padding possibilities. In this figure, padding bytes are designated P designated D
. Four bits w i thin the command
i
register are used to specify the desired input and output padding for a given command.
Pad bytes are no t counted by any of the counters.
, and normal data bytes are
i
Figure 2: Multiple Record Compression
History
Buffer Reset
Port A
Uncompressed
Data
Port B
Compressed
Data
Page 4 of 42 PS3580-1100
RECORD 1
Compressed
RECORD 1
History Buffer Reset
(optional)
RECORD 2 RECORD 3
Compressed
RECORD 2
Compressed
RECORD 3
Advanced Hardware Architectures, Inc.
Figure 3: Port A Interface Input Padding
D11D10D9D
n+8
D7D6D5D
n+4
D3D2D1D
n
D10D9D8D
n+8
D6D5D4D
n+4
D2D1D
n
Port A Data Transfers
ADATA
8 4 0
Part (a): Zero Bytes of Padding
[15:8] [7:0]
D
1
D
3
D
5
D
7
Port A Data Transfers
ADATA
7 3
0
Part (b): One Byte of Padding
[15:8] [7:0]
D
0
D
2
D
4
D
6
Port A Data Transfers
ADATA
D9D8D7D
n+8
D
0
D
2
D
4
D
6
D5D4D3D
n+4
D1D
n
0
6 2
Part (c): Two Bytes of Padding
[15:8] [7:0]
P
1
D
1
D
3
D
5
P D D D
0 0 2 4
Port A Data Transfers
ADATA
D8D7D6D
n+8
P
0
D
1
D
3
D
5
D4D3D2D
n+4
D
n
0
5 1
Part (d): Three Bytes of Padding
[15:8] [7:0]
P
1
D
0
D
2
D
4
P P D D
0 2 1 3

2.0 COMPRESSION OPERA TION

2.1 COMPRESSION PASS THROUGH

Compression Pass Through mode allows data to enter the Port A Interface, transfer through the ALDC core and exit through the Port B Interface unchanged. Pass through mode uses the P ort A Transfer counter , Port B T ransfer count er and Record Length and Record Count re gi st e rs . T he DONE status bit an d interrupt (if not masked) are set when the transfer completes.

2.2 COMPRESSION

During compression operation, uncompressed data flows into the Port A Interface, is compressed by the compression engine , and the compressed data transferred out of the Port B Interface.
The device contains a Content Addressable Memory (CAM). The CAM is the history buffer during compression operation. The compressor appends an end marker control code to the end of the compressed data. I t also pads the end of a transfer to a byte boundary with zeroes.
The compression engine constantly monitors the performance of compression for expansion during compression operation. When the Port B Transfer Count is la r ger th an t he Port A Transfer Count the EXP AND bit in the Status 0 register is set indicating data expansion during compression operation.
Port A Interface count increments with each byte received and when this count equals the transfer size, all bytes in this transfer have been received into Port A.
A compression oper ation is comple te whe n t he last byte transfer s out of the Port B Int erface and the Record Lengt h is zero and the Recor d Count is one, thus setting the DONE status bit and generating a Done Interrupt if it is not masked.
PS3580-1100 Page 5 of 42
Advanced Hardware Architectures, Inc.

3.0 DECOMPRESSION OPERATION

3.1 DECOM PRESSION P ASS THR OUGH

Decompression Pass Through mode allows data to enter the Port B Interface, transfer through the ALDC core and exit through the Port A Interface unchanged. Pass through mode uses the Port A Transfer counter, Port B Transfer counter, Record Length and Record Count registers. The DONE status bit and interrupt (i f not masked) are set when the transfer completes.

3.2 DECOMPRESSION

During Decompression mode, compressed data flows into the Port B Interface and is decompress ed. The resulting uncompressed data is transfer red out of the Port A Interface.
A decompression operation is complete when the last byt e transfers out of the Port A In terface, thus setting the DONE status bit and generating a Done Interrupt if it is not masked.
Decoder Control Code Errors are generated if invalid control codes are detected in the compressed data stream. This error is reported in the Error Status register.
Multiple records can be decompressed by programming the Record Count register. The Record Count register decrements every time an End of Record is decoded.

3.3 DECOMPRESSION OUTPUT DISABLED MODE

Decompression output disabled mode allows the user to program the number of records into the Data Disable Count register to decompress while discarding the output. The device then switches to normal decompression mode and continues to decompress the remaining records determined by the remainin g number of records in the Record Count register , a nd trans fers this data out of Por t A.
4.0 MICROPROCESSOR INTER-
FACE AND REGISTER ACCESS

4.1 MICROPROCESSOR INTERFACE

Microprocessor Interface configuration is determined by the MMODE pin. If MMODE is tied high, transfers are cont rolled by a ch ip select sign al (CSN) and a read/wri te signal (RWN), if MMODE is tied low, transfers are controlled by separate read (READN) and write (WRITEN) signals. Refer to Section 10.0 Timing Specifications for timing diagrams.

Table 1: Microprocessor Interface Cont r o l Sig nals

PIN NAME MMODE TIED LOW MMODE TIED HIGH
MCIN[0] READN CSN MCIN[1] WRITEN RWN WAITN WAITN WAITN
ADDR[0]
ADDR[0] = 0 selects register bits 7:0 ADDR[0] = 1 selects register bits 15:8

4.1.1 INTERRUPTS

IREQN is th e hardware interrupt signal. IREQN is a standard TTL output. When active, it indicates an interrupt is set in the device. The microprocessor can determine the cause of the interrupt by reading the Interrupt Status register.
Masking individual interrupts with the Interrupt M ask register disables particular interrupts from causing the interrupt signal pin to assert (IREQN).
state when either a hardware or software reset occurs, new compression operation begins, or by writing a zero to the Interrupt Status bit.
get set even if the Interrupt Mask bits are set. The exceptions are the One Byte at Port B, End of Record at Port B, One Byte at Port A, and End of Record at Port A. If these interrupt s are masked, this status informat ion can only be provided at the end of transfer, not at end of records because the ALDC core does not identify end of records in the data stream.
ADDR[0] = 0 selects register bits 15:8 ADDR[0] = 1 selects register bits 7:0
The interrupt signals are reset to their inactive
In general, t he Interrupt Status and Status bits
Page 6 of 42 PS3580-1100
Advanced Hardware Architectures, Inc.

4.1.2 RESETS

There is a hardware reset signal and a software reset. When the RESETN signal is asserted all registers are reset, current oper ations a re cance lled, and the history buf fer is cleared . The s oftware reset via the Command register does not affect the
Configuration registers (ACNF or BCNF), Identification register (ID), the Polarity registers
(APOL or BPOL), or the Command register (CMND). Al l other registers are reset, cu rrent operations cancelled and the history buffer cleared.
Section 6.0 Register Description lists the register values after a hardware reset, software reset command, and after a transfer command.
A new transfer command doe s not reset the data path; therefor e, a hardware re set or softwar e reset is generally required prior to issuing a new transfer command.

4.1.3 PORT A INTERFACE FIFO ACCESS

It is possible to access the Port A Interface FIFO from the microprocessor interface. This allows the uncompressed data strea m to be altered from the microprocessor. This may be useful to properly handle exception conditions. Both read and write accesses are available. Only the Port A Interface FIFO is accessible from the microprocessor interface. In order to access the FIFO from the microprocessor int erface, dat a transfers on the Port A interface must be suspended. The DMA device attached to the Port A interface must deactivate the DREQA line before attempting to access t he FIFO from the microprocessor interface. Unpredictable results occ ur if DREQA is active during FIFO access from the microprocessor interface.
Two registers are used to control access to the FIFO: the Port A FIFO Contr ol (AFCT) register and the Port A FIFO Data (AFIF) register. AFIF is a two-byte register used to hold data to be written to the Port A Interface FIFO during compression operations and to hold data read from the Port A Interface FIFO during decompression operations. Two bits within AFCT are defined: Access Port A FIFO (ACCF) and Request Port A FIFO (REQF). The Access Port A FIFO bit must be set for the entire duration of a read or write access to the Port A FIFO. This bit controls whether the Port A FIFO is accessed from the Port A interface or the microprocessor int erface. The REQF bit is used as a semaphore to reques t a read or a writ e to the P ort A Interface FIFO. Read or write is determined by the current command being executed. The FIF O can be read only during deco mpression commands and ca n be written only during compression commands.
Writing to the Port A Interface FIFO, assuming a compression or compression bypass operation is being executed, requires the following:
1) Suspend transfers on Port A Interface
(DREQA input must be deasserted).
2) Write a Select Port A Command.
3) Set ACCF.
4) Place data to be written to the original data
interface FIFO in AFIF.
5) Set REQF.
6) Read REQF until REQF returns to a zero.
7) Repeat steps 3 to 5 as necessary.
8) Clear ACCF and resume DMA operations.
Reading from the Port A Interface FIFO, assuming a decompression bypass, decompression or decompression output disabled operation is being executed, requires the following:
1) Suspend transfers on Port A Interface
(DREQA input must be deasserted).
2) Write a Select Port A Command.
3) Set ACCF.
4) Set REQF.
5) Read REQF until REQF returns zero.
REQF is reset when two bytes have been read
from the Port A Interface FIFO and placed in
AFIF.
6) Read data from AFIF.
7) Repeat steps 3 to 5 as necessary.
8) Clear ACCF and resume DMA operations.
All Port A interface status indicators are updated exactly as if the data is read from or written to the Port A interface data bus. For instance:
The Port A Interface Transfer Count (ATC)
will increment as b ytes are transferred through
the microprocessor interface.
All Status bits (STAT0 and STAT1) and
Interrupt Status bits (INTS) will operate when
data is transferred through the microprocessor
interface.
Padding bytes are supported at command
boundaries.
Padding bytes may have to be inserted to
ensure that the last transfer from the
microprocessor ends on an even-byte
boundary.
PS3580-1100 Page 7 of 42
Advanced Hardware Architectures, Inc.

4.2 REGISTER ACCESS

MMODE determines whe ther ADDR[0] selects even or odd addressed registers. When MMODE = 1 and ADDR[0]=0, odd addressed registers are accessible. MMODE=1 causes ADDR[0] input signal to be inverte d.
The registers may not be stable if PAUSED is not set. Registers should onl y be written when they are stable.
When writing to registers that are defined as 16-bit registers, both bytes must be written before the register is updated. When writing the 16-bit Command register, the command is executed when the most significant byte is written. ADDR[0] selects between the upper and lower bytes of 16-bit registers.
Registers in the ALDC core require long er to access than the external microprocessor interface permits. Therefore, if back to back writes to the same address ever occur, they must be separated by a minimum of 8 clocks.

4.3 PAUSING / RESUME

(DACKx) deasserts. When a port is in master mode, the PAUSED status bit will get set even if xCO UT (DREQx) is asserted. However, in this case, several transfers could occur before the interface pauses and DREQx remains deassert ed. Status updat es and no more transfers will occur. Once paused and the last transfer is complete, the data busses are put in high impedance. Operat ion is continued by issuing a resume command
Registers in the ALDC core req uir e lo nger to access than the externa l mic ropr oces sor int erf ace permits. Therefore, th ese registers must be prefetched for external reads . T o assure that the val ues read from these registers are curr ent , it is recommended that a Pause command be issued and Pau sed Status read prior to reading these reg ist ers . When a pause command is received, it takes up to 40 clock cycles to update these regist ers. The PAUSED status bit is not set until the registers are updated. Additional microprocessor accesses dur ing t his time will delay the prefetched reads and paused stat us. Registers that must be prefetched includ e th e Compressed Bytes
Processed, Error Status, Interrupt Status, Record Count and Data Disable Count regi ste rs.
When a Pause command is issued or an unmasked data transfer interrupt occurs, the device pauses at the next break in the DMA handshaking. The following unmasked int errupts cause the device to pause: ODT (Output Disable Terminated), EORPA (End of Record at Port A), BP A ( One Byte at Port A), EORPB (End of Recor d at Port B), BPB (One Byte at Port B), BCMP (Port B Interface Compare), and EORD (End of Record at Decoder). When a port is in sl ave mode, it pauses after xCOUT

Table 2: Port A Interface Signals

SIGNAL
NAME
ACIN DACKA DREQA 7 I
ACOUT DREQA DACKA 5 O
ADBOEN deasserted ADBOEN 3 O
AFF_FE not used AFF_FE 1 I
AAF_AE not used AAF_AE 0 I
AIC-43C97C FAS466

Table 3: Port B Interface Signals

SIGNAL
NAME
BCIN DACKB DREQB 7 I
BCOUT DREQB DACKB 5 O
BDBOEN BDBOEN deasserted 3 I
BFF_FE BFF_FE not used 1 O
BAF_AE BAF_AE not used 0 O
FAS466 AIC-43C97C

5.0 PORT A AND PORT B CONFIGURATION

Port A and Port B are both 16-bit bidirectional data ports with pa rity checki ng and gener ation. The ports are controlled by the configuration registers ACNF[15:0] and BCNF[15:0], and polarity registers APOL[7:0] and BPOL[7:0].
APOL
bit
BPOL
bit
DIRECTION
DIRECTION
Page 8 of 42 PS3580-1100
Advanced Hardware Architectures, Inc.

6.0 REGISTER DESCRIPTION

ADDR[4:0]
N
REGISTER RESET VALUE P
O
MMODE
0x0A 0x0B BTCL0 Port B Transfer Count, Byte 0 R 1 0x00 0x00 0x00 16 0x0B 0x0A BTCL1 Port B Transfer Count, Byte 1 R 1 0x00 0x00 0x00 16 0x0A 0x0B AFCT Port A FIFO C o n t rol R/W 2 0x00 0x00 0x00 17 0x0B 0x0A res Reserved 2
0x0A 0x0B CBPL0
0x0B 0x0A 0x0C 0x0D ERRS Error Stat u s R 1 0x00 0x00 0x00 18
0x0D 0x0C res Reserved 0x0E 0x0F INTS0 Interrupt Status, Byte 0 R/W 1 0x00 0x00 0x00 18
MMODE
= 0
0x00 0x01 STAT0 Stat u s , B y te 0 R 1 0x00 0x00 0x80 10 0x01 0x00 STAT1 Status, Byte 1 R 1, 4 0x0C 0x0C 0000UU00 11 0x00 0x01 ACNF0 Por t A Config u r a t ion, Byt e 0 R/W 2 0x00 unchanged unchanged 12 0x01 0x00 ACNF1 Por t A Config u r a t ion, Byt e 1 R/W 2 0x00 unchanged unchanged 12 0x00 0x01 BCNF0 Port B C o n f igurati o n , B yte 0 R/W 3 0x00 unchanged unchanged 12 0x01 0x00 BCNF1 Port B C o n f igurati o n , B yte 1 R/W 3 0x00 unchanged unchanged 13 0x02 0x03 ID0 Identification 0 R 1 0x80 0x80 0x80 13 0x03 0x02 ID1 Identification 1 R 1 0x35 0x35 0x35 13 0x02 0x03 APOL Port A Polarity R/W 2 0xFF unchanged unchanged 13 0x03 0x02 res Reserved 0x02 0x03 BPOL Port B P o l arity R/W 3 0xDF unchanged unchanged 14 0x03 0x02 res Reserved
0x04 0x05 ATCH0 Port A Transfer Count, Byte 2 R 1 0x00 0x00 0x00 14 0x05 0x04 ATCH1 Port A Transfer Count, Byte 3 R 1 0x00 0x00 0x00 14 0x04 0x05 0x05 0x04 RCH1 Record Count, Byte 3 R/W 2 0x00 0x00 0x00 15 0x04 0x05 BCCH0 Port B Compare Count, Byte 2 R/W 3 0x00 0x00 0x00 15 0x05 0x04 BCCH1 Port B Compare Count, Byte 3 R/W 3 0x00 0x00 0x00 15 0x06 0x07 ATCL0 Port A Transfer Count, Byte 0 R 1 0x00 0x00 0x00 14 0x07 0x06 ATCL1 Port A Transfer Count, Byte 1 R 1 0x00 0x00 0x00 14
0x06 0x07 0x07 0x06 RCL1 Record Count, Byte 1 R/W 2 0x00 0x00 0x06 0x07 BCCL0 Port B Compare Count, Byte 0 R/W 3 0x00 0x00 0x00 15 0x07 0x06 BCCL1 Port B Compare Count, Byte 1 R/W 3 0x00 0x00 0x00 15 0x08 0x09 BTCH0 Port B Transfer Count, Byte 2 R 1 0x00 0x00 0x00 16 0x09 0x08 BTCH1 Port B Transfer Count, Byte 3 R 1 0x00 0x00 0x00 16 0x08 0x09 0x09 0x08 AFIF1 Po rt A F IF O D a ta A c c es s , By t e 1 R/W 2 0x00 0x00 0x00 16
0x08 0x09 CBPH0
0x09 0x08
0x0F 0x0E INTS1 Interrupt Status, Byte 1 R/W 1 0x00 0x00 0x00 19 0x10 0x11
0x11 0x10 CMND 1 C o m m a n d 1 R/W 0x00 0xA0 0x00 20 0x12 0x13 0x13 0x12 res Reserved 0x14 0x15 RLH0 Record Length, B y t e 2 R/W 0x00 0x00 unchanged 21 0x15 0x14 RLH1 Record Length, B y t e 3 R/W 0x00 0x00 unchanged 21
MNEMONIC REGISTER NAME R/W
= 1
RCH0 Record Count, Byte 2 R/W 2 0x00 0x00 0x00
RCL0 Record Count, Byte 0 R/W 2 0x00 0x00
AFIF0 Por t A F IF O D at a A cc e s s, B y te 0 R/W 2 0x00 0x00 0x00
Compressed Bytes Processed, Byte 2
CBPH1
CBPL1
CMND0 Command 0
res Reserved
Compressed Bytes Processed, Byte 3
Compressed Bytes Processed, Byte 0 Compressed Bytes Processed, Byte 1
R/W
T
HARDW ARE
E S
R 3 0x00 0x00 0x00 17
R 3 0x00 0x00 0x00
R 3 0x00 0x00 0x00 17
R 3 0x00 0x00 0x00
RESET
0x00 0x00 0x00
RESET
COMMAND
NEW TRANSFER COMMAND
0x00 15 0x00
A G E
#
15
15
16
17
17
20
PS3580-1100 Page 9 of 42
Advanced Hardware Architectures, Inc.
ADDR[4:0]
N
REGISTER RESET VALUE P
O
MMODE
0x1A 0x1B DDCL0 Data Disabled Count, Byte 0 R/W 0x00 0x00 unchanged 22 0x1B 0x1A DDCL1 Data Disabled Count, Byte 1 R/W 0x00 0x00 unchanged 22
0x1C 0x1D EMSK Erro r M a sk R/W 0x00 0x00 unchanged 22 0x1D 0x1C res Reserved 0x1E 0x1F IMSK0 Inter r u p t M a s k 0 R/W 0x00 0x00 unchanged 23
Notes:
1) When CMND is not a Selection Command.
2) When CMND is a Select Port A Configuration Command.
3) When CMND is a Select Port B Configuration Command.
4) U identifies a bit that is unchanged.
MMODE
= 0
0x16 0x17 RLL0 Record L e n g th, Byte 0 R/W 0x00 0x00 unchanged 21 0x17 0x16 RLL1 Record L e n g th, Byte 1 R/W 0x00 0x00 unchanged 21 0x18 0x19 DDCH0 Data Disabled Count, Byte 2 R/W 0x00 0x00 unchanged 22 0x19 0x18 DDCH1 Data Disabled Count, Byte 3 R/W 0x00 0x00 unchanged 22
0x1F 0x1E IMSK1 Inte r r u p t M a s k 1 R/W 0x00 0x00 unchanged 23
MNEMONIC REGISTER NAME R/W
= 1
T E S
HARDW ARE
RESET
RESET
COMMAND
NEW TRANSFER COMMAND

6.1 STATUS 0 (STAT0)

Read Only Hardware Reset Value = 0x00 Reset Command = 0x00
A G E
#
MMODE =
01
bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0
0x00 0x01 BUSY PAUSED OUTDIS BYPASS EXP AND ANYINT ANYERR DONE
Any status bit which is active when the device pauses, due to an interrupt or Pause Command, will
remain active until there is a Resume Command. BUSY - Busy. This bit is set when a data transfer operation begins. It is cleared when the data transfer
operation completes successfully, when an unmasked error occurs, or when a reset occurs.
PAUSED - Paused. This bit is set when a data transfer operation is currently paused. It is cleared when a
paused data transfer operation is resumed, when a reset occurs, or on a new transfer.
OUTDIS - Output Disabled. This bit i s set when Port A Interfac e output is disabled. I t is cleared when Port
A Interface output is re-enabled, when a reset occurs, or on a new transfer.
BYP ASS - Bypass. This bit is set after a Start C ompression Bypass or a Start Decompression Bypass
command is written to the Command register. It is cleared after a Start Compression, Start Decompression, St art Decompress ion Output Disable, when a reset occurs , when an unmasked error occurs, or when a transfer is complete.
EXP AND - Expan sion. This bit is set when the Port B Transfer Count register is larger than the Port A
Tr ansfer Count re gister . I t may toggle many times d uring a compress ion operation. It is cleared
when another data transfer operation begins or when a reset occurs.
ANYINT - Any Interrupt. This bit is set while an unmask ed in te rr upt is active. Cleared on a new transf er,
and when all unmasked interrupts have been cleared.
ANYERR - Any Error. This bit is set when an unmasked error occurs. It is cleared when a data transfer
operation begins or when a reset occurs.
DONE - Done. This bit is s et when the current data tran sfer operation is complete. It is cleared when a
data transfer operation begins or when a reset occurs.
Page 10 of 42 PS3580-1100
Loading...
+ 32 hidden pages