![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
sym53c875/875e pci-ultra scsi i/o processor data manual version 4.0 t42984i toler ant a ctive n egation t echnology increasing scsi reliability ?
the product(s) described in this publication is a licensed product of symbios logic inc. scripts is a trademark and tolerant is a registered trademark of symbios logic inc. it is the policy of symbios logic to improve products as new technology, components, software, and ?mware become available. symbios logic, therefore, reserves the right to change speci?ations without notice. the products in this manual are not intended for use in life-support appliances, devices, or systems. use of these products in such applications without the written consent of the appropriate symbios logic of?er is prohibited copyright ?995 by symbios logic inc. all rights reserved printed in u.s.a. we use comments from our readers to improve symbios product literature. please e-mail any comments regarding technical documentation to pubs@symbios.com. sym53c875/875e data manual i preface preface this manual assumes some prior knowledge of current and proposed scsi and pci standards. for back- ground information, please contact: ansi 11 west 42nd street new york, ny 10036 (212) 642-4900 ask for document number x3.131-1994 (scsi-2) global engineering documents 15 inverness way east englewood, co 80112 (800) 854-7179 or (303) 397-7956 (outside u.s.) fax (303) 397-2740 ask for document number x3.131-1994 (scsi-2) or x3.253 (scsi-3 parallel interface) endl publications 14426 black walnut court saratoga, ca 95070 (408) 867-6642 document names: scsi bench reference, scsi encyclopedia, scsi tutor prentice hall 113 sylvan avenue englewood cliffs, nj 07632 (800) 947-7700 ask for document number isbn 0-13-796855-8, scsi: understanding the small computer system interface symbios logic electronic bulletin board (719) 533-7235 scsi electronic bulletin board (719) 533-7950 symbios logic internet anonymous ftp site ftp.symbios.com (204.131.200.1) directory: /pub/symchips/scsi symbios logic world wide web home page http://www.symbios.com/t10 pci special interest group 2575 n. e. katherine hillsboro, or 97214 (800) 433-5177; (503) 693-6232 (international); fax (503) 693-8344 symbios logic pci-scsi programming guide ii sym53c875/875e data manual revision record revision record page no. date remarks n/a 6/95 rev 1.0 1-2, 1-4, 1-5, 2-3, 2-12, 2-13, 2-14, 2-17, 3-3, 3-7, 3-12, 3-13, 4-15, 5-10, 5-11, 5-15, 5-16, 5-21, 5-23, 5-35, 5-38, 5-48, 5-49, 5-51, 6-6, 7-2, 7-4, 7-9, 7-32, 7-33, 7-34 3/96 rev 2.0 fast-20 changed to ultra scsi throughout, except for name of fast-20 enable bit; added scsi clock doubler 2-20, 5-8, 5-12, 5-13, appendix c, added appendix d, reformatted appendix a. 9/96 rev 3.0 - minor copy changes throughout 1-1, 1-2, 1-4, 2-1, 2-6, 2-27, 3-6, 3-7, 3-9, 3-10, 3-12, 3-13, 3-14, 3-15, 4-5, 4-6, 4-19, 5-3, 5-4, 5-55, 5-56, 6-12, 7-12 thru 7-2 2/98 rev 4.0 - minor copy changes throughout sym53c875/875e data manual iii contents contents preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . i revision record . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ii chapter 1 introduction what is covered in this manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 general description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 package and feature options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 benefits of ultra scsi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 tolerant technology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3 sym53c875 benefits summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3 scsi performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3 pci performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4 integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4 ease of use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4 flexibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4 reliability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5 testability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5 figure 1-1:sym53c875 external memory interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6 figure 1-2:sym53c875 chip block diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6 chapter 2 functional description scsi core . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1 dma core . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1 scripts processor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1 internal scripts ram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2 sdms: the total scsi solution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2 designing an ultra scsi system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2 using the scsi clock doubler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3 prefetching scripts instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3 op code fetch burst capability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4 external memory interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4 external memory support 2-4 pci cache mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5 load/store instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5 iv sym53c875/875e data manual contents 3.3 volt/5 volt pci interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5 additional access to general purpose pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5 jtag boundary scan testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-6 big and little endian support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-6 loopback mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-7 parity options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-7 bits used for parity control and generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-8 scsi parity control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-9 scsi parity errors and interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-9 dma fifo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-10 figure 2-1:dma fifo sections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-10 data paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-10 figure 2-2:sym53c875 host interface data paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-12 scsi bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-13 differential mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-13 figure 2-3:differential wiring diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-15 terminator networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-16 figure 2-4:regulated termination . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-17 (re)select during (re)selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-18 synchronous operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-18 determining the data transfer rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-18 ultra scsi synchronous data transfers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-19 figure 2-5:determining the synchronous transfer rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-20 interrupt handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-21 polling and hardware interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-21 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-21 fatal vs. non-fatal interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-22 masking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-22 stacked interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-23 halting in an orderly fashion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-23 sample interrupt service routine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-24 chained block moves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-24 wide scsi send bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-24 wide scsi receive bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-24 swide register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-25 sym53c875/875e data manual v contents sodl register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-25 chained block move scripts instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-25 figure 2-6: block move and chained block move instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-26 power management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-27 power state d0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-27 power state d3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-27 chapter 3 pci functional description pci addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1 pci bus commands and functions supported . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1 table 3-1:pci bus commands and encoding types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2 pci cache mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3 support for pci cache line size register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3 selection of cache line size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3 alignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3 memory move misalignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4 memory write and invalidate command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4 memory read line command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5 memory read multiple command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5 configuration registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6 figure 3-1: pci configuration register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7 register 00h vendor id read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-8 register 02h device id read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-8 register 04h command read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-8 figure 3-2: command register layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9 register 06h status read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9 figure 3-3: status register layout. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-10 register 08h revision id read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-10 vi sym53c875/875e data manual contents register 09h class code read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-10 register 0ch cache line size read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11 register 0dh latency timer read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11 register 0eh header type read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11 register 10h base address zero (i/o) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11 register 14h base address one (memory) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11 register 18h ram base address read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11 register 2ch subsystem vendor id (ssvid) read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-12 register 2eh subsystem id (ssid) read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-12 register 30h expansion rom base address read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-12 register 34h capability pointer read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-12 register 3ch interrupt line read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-13 register 3dh interrupt pin read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-13 register 3eh min_gnt read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-13 register 3fh max_lat read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-13 register 40h capability id read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-13 register 41h next item pointer read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-13 sym53c875/875e data manual vii contents register 42h power management capabilities read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-14 register 44h power management control/status read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-14 register 46h pmcsr bse read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-15 register 47h data read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-15 chapter 4 signal descriptions figure 4-1: sym53c875 pin diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1 figure 4-2: sym53c875j pin diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2 figure 4-3: sym53c875n pin diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3 figure 4-4: sym53c875jb pin diagram (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4 table 4-1: sym53c875, sym53c875j, sym53c875e, and sym53c875je power and ground pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5 table 4-2: sym53c875n power and ground pins. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-6 table 4-3: sym53c875jb and SYM53C875JBE power and ground pins . . . . . . . . . . . . . . . . . . . . . . 4-6 figure 4-5: sym53c875 functional signal grouping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-7 table 4-4: system pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8 table 4-5: address and data pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-9 table 4-6: interface control pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-11 table 4-7: arbitration pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-12 table 4-8: error reporting pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-12 table 4-9: scsi pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-13 table 4-10: additional interface pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-15 table 4-11: external memory interface pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-17 table 4-12: tag pins sym53c875j/sym53c875n/53c875jb only) . . . . . . . . . . . . . . . . . . . . . . . 4-18 mad bus programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-19 table 4-13: subsystem data configuration table for the sym53c875e (pci rev id 0x26) . . . . . . . 4-19 table 4-14: subsystem data configuration table for the sym53c875 (pci rev id 0x04), revision g only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-19 table 4-15: external memory support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-20 viii sym53c875/875e data manual contents chapter 5 scsi operating registers table 5-1: operating register addresses and descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1 figure 5-1: sym53c875 register address map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4 register 00 (80). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . scsi control zero (scntl0) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-5 register 01 (81) scsi control one (scntl1) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-7 register 02 (82) scsi control two (scntl2) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-9 register 03 (83) scsi control three (scntl3) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-10 register 04 (84) scsi chip id (scid) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-12 register 05 (85) scsi transfer (sxfer) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-12 table 5-2: examples of synchronous transfer periods for scsi-1 transfer rates . . . . . . . . . . . . 5-13 table 5-3: example transfer periods for fast scsi-2 and ultra scsi transfer rates . . . . . . . . . . . 5-13 register 06 (86) scsi destination id (sdid) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-15 register 07 (87) general purpose (gpreg) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-15 register 08 (88) scsi first byte received (sfbr) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-16 register 09 (89) scsi output control latch (socl) read /write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-16 register 0a (09) scsi selector id (ssid) read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-17 register 0b (8b) scsi bus control lines (sbcl) read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-17 register 0c (8c) dma status (dstat) read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-18 register 0d (8d) scsi status zero (sstat0) read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-19 sym53c875/875e data manual ix contents register 0e (8e) scsi status one (sstat1) read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-20 register 0f (8f) scsi status two (sstat2) (read only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-21 registers 10-13 (90-93) data structure address (dsa) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-22 register 14 (94) interrupt status (istat) (read/write) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-23 register 18 (98) chip test zero (ctest0) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-25 register 19 (99) chip test one (ctest1) read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-25 register 1a (9a) chip test two (ctest2) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-26 register 1b (9b) chip test three (ctest3) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-27 registers 1c-1f (9c-9f) temporary (temp) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-28 register 20 (a0) dma fifo (dfifo) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-28 register 21 (a1) chip test four (ctest4) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-29 register 22 (a2) chip test five (ctest5) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-30 register 23 (a3) chip test six (ctest6) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-31 registers 24-26 (a4-a6) dma byte counter (dbc) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-32 register 27 (a7) dma command (dcmd) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-32 registers 28-2b (a8-ab) dma next address (dnad) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-33 registers 2c-2f (ac-af) dma scripts pointer (dsp) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-33 x sym53c875/875e data manual contents registers 30-33 (b0-b3) dma scripts pointer save (dsps) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-34 registers 34-37 (b4-b7) scratch register a (scratch a) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-34 register 38 (b8) dma mode (dmode) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-35 register 39 (b9) dma interrupt enable (dien) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-36 register 3a (ba) scratch byte register (sbr) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-37 register 3b (bb) dma control (dcntl) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-37 register 3c-3f (bc-bf) adder sum output (adder) read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-39 register 40 (c0) scsi interrupt enable zero (sien0) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-39 register 41 (c1) scsi interrupt enable one (sien1) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-41 register 42 (c2) scsi interrupt status zero (sist0) read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-41 register 43 (c3) scsi interrupt status one (sist1) read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-43 register 44 (c4) scsi longitudinal parity (slpar) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-43 register 45 (c5) scsi wide residue (swide) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-44 register 46 (c6) memory access control (macntl) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-45 register 47 (c7) general purpose pin control (gpcntl) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-45 register 48 (c8) scsi timer zero (stime0) read /write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-46 register 49 (c9) scsi timer one (stime1) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-47 sym53c875/875e data manual xi contents register 4a (ca) response id zero (respid0) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-49 register 4b (cb) response id one(respid1) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-49 register 4c (cc) scsi test zero (stest0) read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-49 register 4d (cd) scsi test one (stest1) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-50 register 4e (ce) scsi test two (stest2) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-51 register 4f (cf) scsi test three (stest3) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-53 register 50-51 (d0-d1) scsi input data latch (sidl) read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-54 registers 54-55 (d4-d5) scsi output data latch (sodl) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-55 registers 58-59 (d8-d9) scsi bus data lines (sbdl) read only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-55 registers 5c-5f (dc-df) scratch register b (scratchb) (read/write) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-56 registers 60h-7fh (e0h-ffh) scratch registers c-j (scratchc-scratchj) read/write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-56 chapter 6 instruction set of the i/o processor scsi scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1 sample operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2 figure 6-1: scripts overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3 block move instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-4 first dword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-4 figure 6-2: block move instruction register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-5 second dword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-7 i/o instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-8 first dword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-8 figure 6-3: i/o instruction register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-9 second dword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-12 read/write instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-13 xii sym53c875/875e data manual contents first dword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-13 second dword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-13 read-modify-write cycles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-13 figure 6-4: read/write instruction register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-14 move to/from sfbr cycles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-14 table 6-1: read/write instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-15 transfer control instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-16 first dword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-16 figure 6-5: transfer control instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-17 second dword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-20 memory move instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-20 read/write system memory from a script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-21 second dword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-21 third dword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-21 figure 6-6:memory move instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-22 load and store instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-23 first dword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-23 second dword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-24 figure 6-7: load and store instruction format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-24 chapter 7 electrical characteristics dc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-1 table 7-1: absolute maximum stress ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-1 table 7-2: operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-1 table 7-3: scsi signals - sd(15-0)/, sdp(1-0)/, sreq/ sack/ . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2 table 7-4: scsi signals - smsg, si_o/, sc_d/, satn/, sbsy/, ssel/, srst/ . . . . . . . . . . . . . . 7-2 table 7-5: input signals - clk, sclk, gnt/, idsel, rst/, testin, diffsens, big_lit/ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2 table 7-6: capacitance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-3 table 7-7: output signal - mac/_testout, req/ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-3 table 7-8: output signals - irq/, sdir(15-0), sdirp0, sdirp1, bsydir, seldir, rstdir, tgs, igs, mas/(1-0), mce/, moe/, mwe/. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-3 table 7-9: output signal - serr/ 7-4 table 7-10: bidirectional signals - ad(31-0), c_be/(3-0), frame/, irdy/, trdy/, devsel/, stop/, perr/, par, . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-4 table 7-11: bidirectional signals - gpio0_fetch/, gpio1_master/, gpio2_mas2/, gpio3, gpio4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-4 table 7-12: bidirectional signals - mad(7-0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-5 table 7-13: input signals ?di, tms, tck (53c875j, 53c875jb, 53c875n only) . . . . . . . . . 7-5 table 7-14: output signal ?tdo (53c875, 53c875jb, 53c875n only) . . . . . . . . . . . . . . . . . . 7-5 tolerant technology electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-6 table 7-15: tolerant technology electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-6 figure 7-1: rise and fall time test conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-7 figure 7-2: scsi input filtering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-7 figure 7-3: hysteresis of scsi receiver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-8 sym53c875/875e data manual xiii contents figure 7-4: input current as a function of input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-8 figure 7-4: output current as a function of output voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-8 ac characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-9 figure 7-6: clock timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-9 figure 7-7: reset input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-10 figure 7-8: interrupt output. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-10 pci and external memory interface timing diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-11 timing diagrams included in this section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-11 pci and external memory interface timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-34 table 7-16 sym53c875 pci and external memory interface timings. . . . . . . . . . . . . . . . . . . . . . . . 7-34 scsi timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-35 figure 7-31: initiator asynchronous send . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-35 figure 7-32: initiator asynchronous receive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-35 figure 7-33: target asynchronous send . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-36 figure 7-34: target asynchronous receive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-36 figure 7-35: initiator and target synchronous transfers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-37 table 7-17: scsi-1 transfers (single-ended, 5.0 mb/s) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-37 table 7-18: scsi-1 transfers (differential, 4.17 mb/s) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-37 table 7-19: scsi-2 fast transfers (10.0 mb/s (8-bit transfers) or 20.0 mb/s (16-bit transfers), 40 mhz clock) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-38 table 7-20: scsi-2 fast transfers (10.0 mb/s (8-bit transfers) or 20.0 mb/s (16-bit transfers), 50 mhz clock) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-38 appendix a register summary configuration registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 scsi operating registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 appendix b mechanical drawings appendix c external memory interface diagram examples appendix d engineering notes index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . index-1 symbios, inc. sales locations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 for literature on any symbios, inc. product or service, call our hotline toll-free 1-800-856-3093 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 xiv sym53c875/875e data manual contents introduction what is covered in this manual sym53c875/875e data manual 1-1 chapter 1 introduction what is covered in this manual this manual combines information on the sym53c875 and sym53c875e, which are pci- ultra scsi i/o processors. the sym53c875e is a minor modi?ation of the existing sym53c875 product. it has all the functionality of the sym53c875 with the addition of features to enable it to comply with microsoft s pc 97 hard- ware design guide. speci?ally, the sym53c875e has a power management support enhancement. because there are only slight differ- ences between them, the sym53c875 and sym53c875e are referred to as sym53c875 throughout this data manual. only the new enhancements are referred to as sym53c875e. it is intended for system designers and program- mers who are using this device to design a scsi port for pci-based personal computers, worksta- tions, or embedded applications. this chapter includes general information about the sym53c875 and other members of the sym53c8xx family of pci-scsi i/o processors. chapter 2 describes the main functional areas of the chip in more detail, including the interfaces to the scsi bus. chapter 3 describes the chip s con- nection to the pci bus, including the pci com- mands and con?uration registers supported. chapter 4 contains the pin diagrams and de?i- tions of each signal. chapter 5 describes each bit in the operating registers, organized by address. chapter 6 de?es all of the scsi scripts instructions that are supported by the sym53c875. chapter 7 contains the electrical characteristics and ac timings for the chip. the appendixes contain a register summary, a mechan- ical drawing of the sym53c875, and several example interface drawings to connect the sym53c875 to an external rom. this data manual assumes the user is familiar with the current and proposed standards for scsi and pci. for additional background information on these topics, please refer to the list of reference materials provided in the preface of this docu- ment. general description the sym53c875 pci-scsi i/o processor brings high-performance i/o solutions to host adapter, workstation, and general computer designs, mak- ing it easy to add scsi to any pci system. it pro- vides a local memory bus for local storage of the device s bios rom in ?sh memory or standard eproms. most versions of the sym53c875 also support big and little endian byte addressing to accommodate a variety of data con?urations. the sym53c875 supports programming of local flash memory for updates to bios or scripts programs. the sym53c875 is a pin-for-pin replacement for the sym53c825 pci-scsi i/o processor, with added support for the scsi-3 ultra standard as well as other new features. some software enhancements are needed to take advantage of the features and ultra scsi transfer rates supported by the sym53c875. the sym53c875 performs ultra scsi transfers or fast 8- or 16- bit scsi transfers in single-ended or differential mode, and improves performance by optimizing pci bus utili- zation. a system diagram showing the connections of the sym53c875 with an external rom or ?sh 1-2 sym53c875/875e data manual introduction package and feature options memory is pictured in figure 1-1. a block diagram of the sym53c875 is pictured in figure 1-2 on page 1-6. the sym53c875 integrates a high-performance scsi core, a pci bus master dma core, and the symbios scsi scripts processor to meet the ?xibility requirements of scsi-3 and ultra scsi standards. it is designed to implement multi- threaded i/o algorithms with a minimum of pro- cessor intervention, solving the protocol overhead problems of previous intelligent and non-intelli- gent adapter designs. the sym53c875 is fully supported by the symbios scsi device management system (sdms ), a software package that supports the advanced scsi protocol interface (aspi) and the ansi common access method (cam). sdms provides bios and driver support for hard disk, tape, removable media products, and cd-rom under the major pc operating systems. package and feature options the sym53c875 is available in three versions with different packaging and feature options. the sym53c875 is packaged in a 160-pin plastic quad ?t pack. the sym53c875j is identical to the sym53c875 with additional pins that support jtag boundary scan testing. the jtag boundary scan signals replace the testin, mac/ _testout, big_lit/, and sdirp1 pins. the sym53c875n includes all of the signals in the sym53c875, with the additions of the jtag pins and four additional signals for extended parity checking and generation. it is packaged in a 208- pin plastic quad ?t pack.the sym53c875jb is identical to the sym53c875j, but is packaged in a 169-pin ball grid array. the devices that have been upgraded to include the power management fea- tures are: sym53c875e, sym53c875je, and SYM53C875JBE. bene?s of ultra scsi ultra scsi is an extension of the scsi-3 standard that expands the bandwidth of the scsi bus and allows faster synchronous scsi transfer rates. when enabled, ultra scsi performs 20 mega- transfers during an i/o operation, which results in approximately doubling the synchronous transfer rates of fast scsi-2. the sym53c875 can per- form 8-bit, ultra scsi synchronous transfers as fast as 20 mb/s. this advantage is most noticeable in heavily loaded systems, or large-block size appli- cations such as video on-demand and image pro- cessing. one advantage of ultra scsi is that it signi?antly improves scsi bandwidth while preserving exist- ing hardware and software investments. the sym53c875 is compatible with all existing sym53c825 and sym53c825a software; the only changes required are to enable the chip to perform synchronous negotiations for ultra scsi rates. the sym53c875 can use the same board socket as an sym53c825, with the addition of an 80mhz sclk or enabling the internal scsi clock doubler to provide the correct frequency when transferring synchronous scsi data at 50 nanosec- ond transfer rates. some changes to existing cabling or system designs may be needed to main- tain signal integrity at ultra scsi synchronous transfer rates. these design issues are discussed in chapter 2. introduction tolerant technology sym53c875/875e data manual 1-3 tolerant technology the sym53c875 features tolerant?technol- ogy, which includes active negation on the scsi drivers and input signal ?tering on the scsi receivers. active negation causes the scsi request, acknowledge, data, and parity signals to be actively driven high rather than passively pulled up by terminators. active negation is enabled by setting bit 7 in the stest3 register. tolerant receiver technology improves data integrity in unreliable cabling environments, where other devices would be subject to data corruption. tolerant receivers ?ter the scsi bus signals to eliminate unwanted transitions, without the long signal delay associated with rc-type input ?ters. this improved driver and receiver technology helps eliminate double clocking of data, the single biggest reliability issue with scsi operations. tolerant input signal ?tering is a built-in feature of the sym53c875 and all symbios fast scsi devices. on the sym53c875, the user may select a ?tering period of 30 or 60 ns, with bit 1 in the stest2 register. the bene?s of tolerant include increased immunity to noise when the signal is going high, better performance due to balanced duty cycles, and improved fast scsi transfer rates. in addition, tolerant scsi devices do not cause glitches on the scsi bus at power up or power down, so other devices on the bus are also protected from data corruption. tolerant is compatible with both the alternative one and alternative two termination schemes proposed by the american national stan- dards institute. sym53c875 bene?s summary scsi performance n includes 4kb internal ram for scripts instruction storage n performs wide, ultra scsi synchronous transfers as fast as 40 mb/s n scsi synchronous offset increased from 8 to 16 levels n supports variable block size and scatter/gather data transfers. n performs sustained memory-to-memory dma transfers faster than 47 mb/s (@ 33 mhz)) n minimizes scsi i/o start latency n performs complex bus sequences without interrupts, including restore data pointers n reduces isr overhead through a unique interrupt status reporting method n performs fast and wide scsi bus transfers in single-ended and differential mode n 10 mb/s asynchronous (20 mb/s with ultra scsi) n 20 mb/s synchronous (40 mb/s with ultra scsi) n load and store scripts instruction increases performance of data transfers to and from chip registers n supports target disconnect and later reconnect with no interrupt to the system processor n supports multi-threaded i/o algorithms in scsi scripts with fast i/o context switching n expanded register move instruction supports additional arithmetic capability 1-4 sym53c875/875e data manual introduction sym53c875 bene?s summary n complies with pci bus power management speci?ation (sym53c875e) revision 1.0 pci performance n complies with pci 2.1 speci?ation n bursts 2, 4, 8, 16, 32, 64, or 128 dwords across pci bus n supports 32-bit word data bursts with variable burst lengths. n pre-fetches up to 8 dwords of scripts instructions n bursts scripts op code fetches across the pci bus n performs zero wait-state bus master data bursts faster than 110 mb/s (@ 33 mhz) n supports pci cache line size register n supports pci write and invalidate, read line, and read multiple commands integration n 3.3v/5v pci interface n full 32-bit pci dma bus master n can be used as a third-party pci bus dma controller by using memory to memory move instructions n high performance scsi core n integrated scripts processor ease of use n up to one megabyte of add-in memory support for bios and scripts storage n direct pci-to-scsi connection n reduced scsi development effort n easily adapted to the advanced scsi protocol interface (aspi) or the ansi common access method (cam), with sdms software. n compiler-compatible with existing sym53c7xx and sym53c8xx family scripts n direct connection to pci, and scsi single- ended and differential buses n development tools and sample scsi scripts available n maskable and pollable interrupts n wide scsi, a or p cable, and up to 16 devices supported n three programmable scsi timers: select/ reselect, handshake-to-handshake, and general purpose. the time-out period is programmable from 100 m s to greater than 25.6 seconds n sdms software for complete pc-based operating system support n support for relative jumps n scsi selected as id bits for responding with multiple ids flexibility n high level programming interface (scsi scripts) n programs local memory bus flash memory n big/little endian support n selectable 88- or 536-byte dma fifo for backward compatibility n tailored scsi sequences execute from main system ram or internal scripts ram n flexible programming interface to tune i/o performance or to adapt to unique scsi devices n support for changes in the logical i/o interface de?ition n low level access to all registers and all scsi bus signals n fetch, master, and memory access control pins introduction sym53c875 bene?s summary sym53c875/875e data manual 1-5 n separate scsi and system clocks n scsi clock doubler bits enable ultra scsi transfer rates with a 40 mhz scsi clock n selectable irq pin disable bit n 32 additional scratch pad registers n ability to route system clock to scsi clock reliability n 2 kv esd protection on scsi signals n typical 300 mv scsi bus hysteresis n protection against bus re?ctions due to impedance mismatches n controlled bus assertion times (reduces rfi, improves reliability, and eases fcc certi?ation) n latch-up protection greater than 150 ma n voltage feed through protection (minimum leakage current through scsi pads) n 25% of pins are power and ground n power and ground isolation of i/o pads and internal chip logic n tolerant technology provides: n active negation of scsi data, parity, request, and acknowledge signals for improved fast scsi transfer rates. n input signal ?tering on scsi receivers improves data integrity, even in noisy cabling environments. n jtag boundary scan support (sym53c875j, sym53c875jb, sym53c875n only) n extended pci parity checking and generation (sym53c875n only) n extended scsi parity checking testability n all scsi signals accessible through programmed i/o n scsi loopback diagnostics n scsi bus signal continuity checking n support for single-step mode operation n test mode (and tree) to check pin continuity to the board (most package options) n jtag boundary scan support (sym53c875j, sym53c875jb, sym53c875n only) 1-6 sym53c875/875e data manual introduction sym53c875 bene?s summary figure 1-1: sym53c875 external memory interface figure 1-2: sym53c875 chip block diagram v pp v pp translator v pp sym53c875 pci bus scsi bus gpio4 mwe/ moe/ mce/ mad7-0 mas0/ mas1/ gpio2_mas2/ (optional) hct374 hct374 hct374 d7-0 a7-0 a15-8 a19-16 rom or flash memory big_lit (optional) pci master and slave control block data fifo 536 bytes pci scsi fifo and scsi control block tolerant drivers and receivers scsi scripts processor operating registers config registers scsi bus memory control local memory bus external memory scripts ram functional description scsi core sym53c875/875e data manual 2-1 chapter 2 functional description the sym53c875 is composed of three functional blocks: the scsi core, the dma core, and the scripts processor. the sym53c875 is fully supported by the scsi device management sys- tem (sdms ), a complete software package that supports the symbios product line of scsi proces- sors and controllers. the pci bus power manage- ment support (sym53c875e) is discussed at the end of this chapter. scsi core the scsi core supports the 8- or 16-bit data bus. it supports ultra scsi synchronous transfer rates up to 40 mb/s, scsi synchronous transfer rates up to 20 mb/s, and asynchronous transfer rates up to 10 mb/s on a 16-bit wide scsi bus. the scsi core can be programmed with scsi scripts, making it easy to ne tune the system for speci? mass storage devices or scsi-3 requirements. the scsi core offers low-level register access or a high-level control interface. like ?st generation scsi devices, the sym53c875 scsi core can be accessed as a register-oriented device. the ability to sample and/or assert any signal on the scsi bus can be used in error recovery and diagnostic proce- dures. in support of loopback diagnostics, the scsi core may perform a self-selection and oper- ate as both an initiator and a target. the sym53c875 scsi core is controlled by the integrated scripts processor through a high- level logical interface. commands controlling the scsi core are fetched out of the main host mem- ory or local memory. these commands instruct the scsi core to select, reselect, disconnect, wait for a disconnect, transfer information, change bus phases and, in general, implement all aspects of the scsi protocol. the scripts processor is a special high-speed processor optimized for scsi protocol. dma core the dma core is a bus master dma device that attaches directly to the industry standard pci bus. the dma core is tightly coupled to the scsi core through the scripts processor, which supports uninterrupted scatter/gather memory operations. the sym53c875 supports 32-bit memory and automatically supports misaligned dma transfers. a 536-byte fifo allows the sym53c875 to sup- port 2, 4, 8, 16, 32, 64, or 128 longword bursts across the pci bus interface. scripts processor the scsi scripts processor allows both dma and scsi commands to be fetched from host memory or internal scripts ram. algorithms written in scsi scripts control the actions of the scsi and dma cores and are executed from 32-bit system ram. the scripts processor exe- cutes complex scsi bus sequences independently of the host cpu. the scripts processor can begin a scsi i/o operation in approximately 500 ns. this compares with 2-8 ms required for traditional intelligent host adapters. algorithms may be designed to tune scsi bus performance, to adjust to new bus device types (such as scanners, communication gateways, etc.), or to incorporate changes in the scsi-2 or scsi-3 logical bus de?itions without sacri?ing i/o performance. scsi scripts are hardware- independent, so they can be used interchangeably on any host or cpu system bus. 2-2 sym53c875/875e data manual functional description sdms: the total scsi solution internal scripts ram the sym53c875 has 4 kb (1024 x 32 bits) of internal, general purpose ram. the ram is designed for scripts program storage, but is not limited to this type of information. when the chip fetches scripts instructions or table indirect information from the internal ram, these fetches remain internal to the chip and do not use the pci bus. other types of access to the ram by the sym53c875 use the pci bus, as if they were external accesses. the mad5 pin enables the 4k internal ram. to disable the internal ram, con- nect a 4.7k w resistor between the mad5 pin and v ss . the ram can be relocated by the pci system bios anywhere in 32-bit address space. the ram base address register in pci con?uration space contains the base address of the internal ram. this register is similar to the rom base address register in pci con?uration space. to simplify loading of scripts instructions, the base address of the ram will appear in the scratchb regis- ter when bit 3 of the ctest2 register is set. the ram is byte-accessible from the pci bus and will be visible to any bus-mastering device on the bus. external accesses to the ram (i.e., by the cpu) follow the same timing sequence as a standard slave register access, except that the target wait states required will drop from 5 to 3. a complete set of development tools is available for writing custom drivers with scsi scripts. for more information on the scsi scripts instruc- tions supported by the sym53c875, see chapter 6, ?nstruction set of the i/o processor. sdms: the total scsi solution for users who do not need to develop custom driv- ers, symbios provides a total scsi solution in pc environments with the scsi device management system (sdms ). sdms provides bios driver support for hard disk, tape, and removable media peripherals for the major pc-based operating sys- tems. sdms includes a scsi bios to manage all scsi functions related to the device. it also provides a series of scsi device drivers that support most major operating systems. sdms supports a multi- threaded i/o application programming interface (api) for user-developed scsi applications. sdms supports both the aspi and cam scsi software speci?ations. designing an ultra scsi system migrating an existing single-ended scsi design from scsi-2 to ultra scsi requires minor soft- ware modi?ations as well as consideration for some hardware design guidelines. since ultra scsi is based on existing scsi standards, it can use existing software programs as long as the soft- ware is able to negotiate for ultra scsi synchro- nous transfer rates. in the area of hardware, the primary area of con- cern in single-ended systems is to maintain signal integrity at high data transfer rates. to assure reli- able operation at ultra scsi transfer speeds, fol- low the system design parameters recommended in the scsi-3 ultra parallel interface standard, which is available from the scsi bbs referenced at the beginning of this manual. chapter 7 con- tains ultra scsi timing information. in addition functional description prefetching scripts instructions sym53c875/875e data manual 2-3 to the guidelines in the draft standard, make the following software and hardware adjustments to accommodate ultra scsi transfers: n set the fast-20 enable bit to enable ultra scsi transfers. n set the tolerant enable bit, bit 7 in the stest3 register whenever the ultra enable bit is set. n do not extend the sreq/sack ?tering period with stest2 bit 1. using the scsi clock doubler the sym53c875 can double the frequency of a 40-50 mhz scsi clock, allowing the system to perform ultra scsi transfers in systems that do not have 80 mhz clock input. this option is user- selectable with bit settings in the stest1, stest3, and scntl3 registers. at power-on or reset, the doubler is disabled and powered down. follow these steps to use the clock doubler: 1. set the sclk doubler enable bit (stest1, bit 3) 2. wait 20 m s 3. halt the scsi clock by setting the halt scsi clock bit (stest3 bit 5) 4. set the clock conversion factor using the scf and ccf ?lds in the scntl3 register 5. set the sclk doubler select bit (stest1, bit2) 6. clear the halt scsi clock bit prefetching scripts instructions when enabled (by setting the prefetch enable bit in the dcntl register), the prefetch logic in the sym53c875 fetches 8 dwords of instructions. the prefetch logic automatically determines the maxi- mum burst size that it can perform, based on the burst length as determined by the values in the dmode register. if the unit cannot perform bursts of at least four dwords, it will disable itself. while the sym53c875 is prefetching scripts instructions, the pci cache line size register value does not have any effect and the read line, read multiple, and write and invalidate com- mands will not be used. the sym53c875 may ?sh the contents of the prefetch unit under certain conditions, listed below, to ensure that the chip always operates from the most current version of the software. when one of these conditions apply, the contents of the prefetch unit are ?shed automatically. 1. on every memory move instruction. the memory move instruction is often used to place modi?d code directly into memory. to make sure that the chip executes all recent modi?ations, the prefetch unit ?shes its contents and loads the modi?d code every time a instruction is issued. to avoid inadvertently ?shing the prefetch unit contents, use the no flush option for all memory move operations that do not modify code within the next 8 dwords. for more information on this instruction, refer to chapter 6 in the section on memory move instructions. 2. on every store instruction. the store instruction may also be used to place modi?d code directly into memory. to avoid inadvertently ?shing the prefetch unit contents, use the no flush option for all store operations that do not modify code within the next 8 dwords. 2-4 sym53c875/875e data manual functional description external memory interface 3. on every write to the dsp. 4. on all transfer control instructions when the transfer conditions are met. this is necessary because the next instruction to be executed is not the sequential next instruction in the prefetch unit. 5. when the pre-fetch flush bit (dcntl bit 6) is set. the unit ?shes whenever this bit is set. the bit is self-clearing. op code fetch burst capability setting the burst op code fetch enable bit in the dmode register (38h) causes the sym53c875 to burst in the ?st two longwords of all instruction fetches. if the instruction is a memory-to-memory move, the third longword will be accessed in a sep- arate ownership. if the instruction is an indirect type, the additional longword will be accessed in a subsequent bus ownership. if the instruction is a table indirect block move, the sym53c875 will use two accesses to obtain the four longwords required, in two bursts of two longwords each. note: this feature is only useful if pre-fetching is disabled. external memory interface the sym53c875 supports up to one megabyte of external memory in binary increments from 16 kb, to allow the use of expansion rom for add-in pci cards. the device also supports ?sh rom updates through the add-in interface and the gpio4 pin (used to control v pp , the power supply for programming external memory). this interface is designed for low-speed operations such as down- loading instruction code from rom; it is not intended for dynamic activities such as executing instructions. system requirements include the sym53c875, two or three external 8-bit address holding regis- ters (hct273 or hct374), and the appropriate memory device. the 4.7 k w pull-down resistors on the mad bus require hc or hct external components to be used. if in-system ?sh rom updates are required, a 7406 (high voltage open collector inverter), an mtd4p05, and several pas- sive components are also needed. the memory size and speed is determined by pull-down resistors on the 8-bit bidirectional memory bus at power up. the sym53c875 senses this bus shortly after the release of the reset signal and con?ures the rom base address register and the memory cycle state machines for the appropriate conditions. the external memory interface works with a vari- ety of rom sizes and speeds. an example set of interface drawings is in appendix c. the sym53c875 supports a variety of sizes and speeds of expansion rom, using pull-down resis- tors on the mad(3-0) pins. the encoding of pins mad(3-1) allows the user to de?e how much external memory is available to the sym53c875. table 2-1 shows the memory space associated with the possible values of mad(3-1). the mad(3-1) pins are fully de?ed in chapter 4, ?ignal descriptions. table 2-1: external memory support mad(3-1) available memory space 000 16 kb 001 32 kb 010 64 kb 011 128 kb 100 256 kb 101 512 kb 110 1024 kb 111 no external memory present functional description pci cache mode sym53c875/875e data manual 2-5 to use one of the con?urations mentioned above in a host adapter board design, put 4.7 k w pull- down resistors on the mad pins corresponding to the available memory space. for example, to con- nect to a 32 kb external rom, use pull-downs on mad(3) and mad(2). if the external memory interface is not used, then no external resistors are necessary since there are internal pull-ups on the mad bus. the internal pull-up resistors are dis- abled when external pull-down resistors are detected, to reduce current drain. the sym53c875 allows the system to determine the size of the available external memory using the expansion rom base address register in pci con?uration space. for more information on how this works, refer to the pci speci?ation or the expansion rom base address register description in chapter 3. mad(0) is the slow rom pin. when pulled down, it enables two extra clock cycles of data access time to allow use of slower memory devices. the exter- nal memory interface also supports updates to ?sh memory. the 12 volt power supply for ?sh memory, v pp , is enabled and disabled with the gpio4 pin and the gpio4 control bit. for more information on the gpio4 pin, refer to chapter 4. pci cache mode the sym53c875 supports the pci speci?ation for an 8-bit cache line size register located in pci con?uration space. the cache line size reg- ister provides the ability to sense and react to non- aligned addresses corresponding to cache line boundaries. in conjunction with the cache line size register, the pci commands read line, read multiple, and write and invalidate are each soft- ware enabled or disabled to allow the user full ?x- ibility in using these commands. for more information on pci cache mode operations, refer to chapter 3. load/store instructions the sym53c875 supports the load/store instruction type, which simpli?s the movement of data between memory and the internal chip regis- ters. it also enables the sym53c875 to transfer bytes to addresses relative to the dsa register. for more information on the load and store instruc- tions, refer to chapter 6. 3.3 volt/5 volt pci interface the sym53c875 can attach directly to a 3.3 volt or a 5 volt pci interface, due to separate v dd pins for the pci bus drivers. this allows the devices to be used on the universal board recommended by the pci special interest group. additional access to general purpose pins the sym53c875 can access the gpio0 and gpio1 general purpose pins through register bits in the pci con?uration space, instead of using the gpcntl register in the operating register space to control these pins. in the symbios sdms software, the con?uration bits control pins as the clock and data lines, respectively. to access the gpio1-0 pins through the con?u- ration space, connect a 4.7 k w resistor between the mad(7) pin and v ss . mad(7) contains an internal pull-up that is sensed shortly after chip reset. if the pin is sensed high, gpio1-0 access is disabled; if it is low, gpio1-0 access is enabled. additionally, if gpio1-0 access has been enabled through the mad(7) pin and if gpio0 and/or gpio1 are sensed low after chip reset, gpio1-0 access will be disabled. if gpio1-0 access through con?uration space is enabled, the gpio0 and gpio1 pins cannot be controlled from the gpcntl and gpreg registers, but will be observable from the gpreg register. when gpio1-0 access is enabled, the serial interface 2-6 sym53c875/875e data manual functional description jtag boundary scan testing control register at con?uration addresses 34-35h controls the gpio0 and gpio1 pins. for more information on gpio1-0 access, refer to the serial interface control register description in chapter 3. for more information on the gpio pins, see chapter 4. this does not apply to the sym53c875e. note: the symbios sdms software controls the gpio0 and gpio1 pins via the gpcntl and gpreg registers. therefore, if using sdms, do not connect a 4.7 k w resistor between mad(7) and vss. jtag boundary scan testing the sym53c875j/53c875n/53c875jb include support for jtag boundary scan testing in accor- dance with the ieee 1149.1 speci?ation, with one exception that is discussed in this section. the device can accept all required boundary scan instructions, as well as the optional clamp, highz, and idcode instructions. the sym53c875j/53c875n/53c875jb use an 8-bit instruction register to support all boundary scan instructions. the data registers included in the device are the boundary data register, the idcode register, and the bypass register. the device can handle a 10 mhz tck frequency for tdo and tdi. due to design constraints, the rst/ pin (system reset) will always tri-state the scsi pins when it is asserted. this action cannot be controlled by the boundary scan logic, and thus is not compliant with the speci?ation. there are two solutions that resolve this issue: 1. use the rst/ pin as a boundary scan compliance pin. when the pin is deasserted, the device is boundary scan compliant and when asserted, the device is non-compliant. to maintain compliance, the rst/ pin must be driven high. 2. when rst/ is asserted during boundary scan testing, the expected output on the scsi pins must be a high-z condition, and not what is contained in the boundary scan data registers for the scsi pin output cells. because of package limitations, the sym53c875j/ 53c875jb replaces the testin, mac/ _testout, big_lit/, and sdirp1 signals with the jtag boundary scan signals. the sym53c875n includes support for these signals in addition to the jtag pins. big and little endian support the sym53c875/53c875n supports both big and little endian byte ordering through pin selec- tion. the sym53c875j/53c875jb operates in little endian mode only (the big_lit pin is replaced by one of the jtag boundary scan sig- nals). in big endian mode, the ?st byte of an aligned scsi-to-pci transfer will be routed to lane three and succeeding transfers will be routed to descending lanes. this mode of operation also applies to data transfers over the add-in rom interface. the byte of data accessed at location 0000h from memory is routed to lane three, and the data at location 0003h is routed to byte lane 0. in little endian mode, the ?st byte of an aligned scsi to pci transfer will be routed to lane zero and succeeding transfers will be routed to ascend- ing lanes. this mode of operation also applies to the add-in rom interface. the byte of data accessed at location 0000h from memory is routed to lane zero, and the data at location 0003h is routed to byte lane 3. the big_lit pin gives the sym53c875 the ?xi- bility of operating with either big or little endian byte orientation. internally, in either mode, the actual byte lanes of the dma fifo and registers are not modi?d. the sym53c875 supports slave accesses in big or little endian mode. functional description loopback mode sym53c875/875e data manual 2-7 when a dword is accessed, no repositioning of the individual bytes is necessary since dwords are addressed by the address of the least signi?ant byte. scripts always uses dwords in 32-bit sys- tems, so compatibility is maintained between sys- tems using different byte orientations. when less than a dword is accessed, individual bytes must be repositioned. internally, the sym53c875 adjusts the byte control logic of the dma fifo and regis- ter decodes to access the appropriate byte lanes. the registers will always appear on the same byte lane, but the address of the register will be reposi- tioned. big/little endian mode selection has the most effect on individual byte access. internally, the sym53c875 adjusts the byte control logic of the dma fifo and register decodes to enable the appropriate byte lane. the registers will always appear on the same byte lane, but the address of the register will be repositioned. data to be transferred between system memory and the scsi bus always starts at address zero and continues through address ? - there is no byte ordering in the chip. the ?st byte in from the scsi bus goes to address 0, the second to address 1, etc. going out onto the scsi bus, address zero is the ?st byte out on the scsi bus, address 1 is the second byte, etc. the only difference is that in a little endian system, address 0 will be on byte lane 0, and in big endian mode address zero will be on byte lane 3. correct scripts will be generated if the scripts compiler is run on a system that has the same byte ordering as the target system. any scripts patching in memory must patch the instruction with the byte ordering that the scripts processor expects. software drivers for the sym53c875 should access registers by their logical name (i.e., scntl0) rather than by their address. the logical name should be equated to the register s big endian address in big endian mode (scntl0 = 03h), and its little endian address in little endian mode (scntl0 = 00h). this way, there is no change to the software when moving from one mode to the other; only the equate statement set- ting the operating modes needs to be changed. addressing of registers from within a scripts instruction is independent of bus mode. internally, the sym53c875 always operates in little endian mode. loopback mode the sym53c875 loopback mode allows testing of both initiator and target functions and, in effect, lets the chip communicate with itself. when the loopback enable bit is set in the stest1 register, the sym53c875 allows control of all scsi sig- nals, whether the sym53c875 is operating in ini- tiator or target mode. for more information on this mode of operation, refer to the symbios logic pci-scsi programming guide . parity options the sym53c875 implements a ?xible parity scheme that allows control of the parity sense, allows parity checking to be turned on or off, and has the ability to deliberately send a byte with bad parity over the scsi bus to test parity error recov- ery procedures. table 2-2 de?es the bits that are involved in parity control and observation. table 2- 3 describes the parity control function of the enable parity checking and assert scsi even parity bits in the scntl0 register. table 2-4 describes the options available when a parity error occurs. the sym53c875n has four additional parity pins for checking incoming data on the pci bus. these pins are assigned to each byte of the pci address/ data bus, and work in addition to the par (pci parity) pin. in pci master read or slave write oper- ations, each byte of incoming data on the pci bus is checked against its corresponding parity line, in addition to the normal parity checking against the pci par signal. in pci master write or slave read operations, parity is generated for each byte. this 2-8 sym53c875/875e data manual functional description parity options extra parity checking is always enabled for the sym53c875n. the host system must support these pins. this feature is not register selectable. a parity error on any byte parity pin for pci master read or slave write operations will cause a fatal dma interrupt; scripts will stop running. this interrupt can be masked with the ebpe interrupt enable bit, bit 1 in the dien register. these addi- tional parity pins in no way affect the generation or checking of the pci speci?d parity line. table 2-2: bits used for parity control and generation bit name location description assert satn/ on parity errors scntl0, bit 1 causes the sym53c875 to automatically assert satn/ when it detects a parity error while operating as an initiator. enable parity checking scntl0, bit 3 enables the sym53c875 to check for parity errors. the sym53c875 checks for odd parity. this bit also checks for par- ity errors on the four additional parity pins on the sym53c875n. assert even scsi parity scntl1, bit 2 determines the scsi parity sense generated by the sym53c875 to the scsi bus. disable halt on satn/ or a parity error (target mode only) scntl1, bit 5 causes the sym53c875 not to halt operations when a parity error is detected in target mode. enable parity error interrupt sien0, bit 0 determines whether the sym53c875 will generate an interrupt when it detects a scsi parity error. parity error sist0, bit 0 this status bit is set whenever the sym53c875 has detected a parity error on the scsi bus. status of scsi parity signal sstat0, bit 0 this status bit represents the active high current state of the scsi sdp0 parity signal. scsi sdp1 signal sstat2, bit 0 this bit represents the active high current state of the scsi sdp1 parity signal. latched scsi parity sstat 2, bit 3 and sstat1, bit 3 these bits re?ct the scsi odd parity signal corresponding to the data latched into the sidl register. master parity error enable ctest4, bit 3 enables parity checking during master data phases. master data parity error dstat, bit 6 set when the sym53c875 as a master detects that a target device has signalled a parity error during a data phase. master data parity error interrupt enable dien, bit 6 by clearing this bit, a master data parity error will not cause irq/ to be asserted, but the status bit will be set in the dstat register. extended byte par- ity error interrupt enable (sym53c875n only) dien, bit 1 by clearing this bit, an extended byte parity error will not cause irq/ to be asserted, but the status bit will be set in the dstat register. functional description parity options sym53c875/875e data manual 2-9 table 2-3: scsi parity control epc aesp description 0 0 will not check for parity errors. parity is generated when send- ing scsi data. asserts odd parity when sending scsi data. 0 1 will not check for parity errors. parity is generated when send- ing scsi data. asserts even parity when sending scsi data. 1 0 checks for odd parity on scsi data received. parity is generated when sending scsi data. asserts odd parity when sending scsi data. 1 1 checks for odd parity on scsi data received. parity is generated when sending scsi data. asserts even parity when sending scsi data. key: epc = enable parity checking (bit 3 scntl0) asep = assert scsi even parity (bit 2 scntl1) this table only applies when the enable parity checking bit is set. table 2-4: scsi parity errors and interrupts dhp par description 0 0 will halt when a parity error occurs in target or initiator mode and will not generate an interrupt. 0 1 will halt when a parity error occurs in target mode and will gen- erate an interrupt in target or initiator mode. 1 0 will not halt in target mode when a parity error occurs until the end of the transfer. an interrupt will not be generated. 1 1 will not halt in target mode when a parity error occurs until the end of the transfer. an interrupt will be generated. key: dhp = disable halt on satn/ or parity error (bit 5 scntl1) par = parity error (bit 0 sien0) 2-10 sym53c875/875e data manual functional description dma fifo dma fifo the dma fifo is 4 bytes wide by 134 transfers deep. the dma fifo is illustrated in figure 2-1. to assure compatibility with older products in the sym53c8xx family, the user may set the dma fifo size to 88 bytes by clearing the dma fifo size bit, bit 5 in the ctest5 register. data paths the data path through the sym53c875 is depen- dent on whether data is being moved into or out of the chip, and whether scsi data is being trans- ferred asynchronously or synchronously. figure 2-2 shows how data is moved to/from the scsi bus in each of the different modes. the following steps determine if any bytes remain in the data path when the chip halts an operation: asynchronous scsi send 1. if the dma fifo size is set to 88 bytes, look at the dfifo and dbc registers and calculate if there are bytes left in the dma fifo. to make this calculation, subtract the seven least signi?ant bits of the dbc register from the 7- bit value of the dfifo register. and the result with 7fh for a byte count between zero and 88. if the dma fifo size is set to 536 bytes (using bit 5 of the ctest5 register), subtract the 10 least signi?ant bits of the dbc register from the 10-bit value of the dma fifo byte offset counter, which consists of bits 1-0 in the ctest5 register and bits 7-0 of the dma fifo register. and the result with 3ffh for a byte count between 0 and 536. 2. read bit 5 in the sstat0 and sstat2 registers to determine if any bytes are left in the sodl register. if bit 5 is set in the sstat0 or sstat2, then the least signi?ant byte or the most signi?ant byte in the sodl register is full, respectively. checking this bit also reveals bytes left in the sodl register from a chained move operation with an odd byte count. figure 2-1: dma fifo sections 134 transfers deep 32 bits wide 8 bits byte lane 3 8 bits byte lane 2 8 bits byte lane 1 8 bits byte lane 0 . . . . . . functional description dma fifo sym53c875/875e data manual 2-11 synchronous scsi send 1. if the dma fifo size is set to 88 bytes, look at the dfifo and dbc registers and calculate if there are bytes left in the dma fifo. to make this calculation, subtract the seven least signi?ant bits of the dbc register from the 7- bit value of the dfifo register. and the result with 7fh for a byte count between zero and 88. if the dma fifo size is set to 536 bytes (using bit 5 of the ctest5 register), subtract the 10 least signi?ant bits of the dbc register from the 10-bit value of the dma fifo byte offset counter, which consists of bits 1-0 in the ctest5 register and bits 7-0 of the dma fifo register. and the result with 3ffh for a byte count between 0 and 536. 2. read bit 5 in the sstat0 and sstat2 registers to determine if any bytes are left in the sodl register. if bit 5 is set in the sstat0 or sstat2, then the least signi?ant byte or the most signi?ant byte in the sodl register is full, respectively. checking this bit also reveals bytes left in the sodl register from a chained move operation with an odd byte count. 3. read bit 6 in the sstat0 and sstat2 registers to determine if any bytes are left in the sodr register. if bit 6 is set in the sstat0 or sstat2, then the least signi?ant byte or the most signi?ant byte in the sodr register is full, respectively. asynchronous scsi receive 1. if the dma fifo size is set to 88 bytes, look at the dfifo and dbc registers and calculate if there are bytes left in the dma fifo. to make this calculation, subtract the seven least signi?ant bits of the dbc register from the 7- bit value of the dfifo register. and the result with 7fh for a byte count between 0 and 88. if the dma fifo size is set to 536 bytes (using bit 5 of the ctest5 register), subtract the 10 least signi?ant bits of the dbc register from the 10-bit value of the dma fifo byte offset counter, which consists of bits 1-0 in the ctest5 register and bits 7-0 of the dma fifo register. and the result with 3ffh for a byte count between 0 and 536. 2. read bit 7 in the sstat0 and sstat2 register to determine if any bytes are left in the sidl register. if bit 7 is set in the sstat0 or sstat2, then the least signi?ant byte or the most signi?ant byte is full, respectively. 3. if any wide transfers have been performed using the chained move instruction, read the wide scsi receive bit (scntl2, bit 0) to determine whether a byte is left in the swide register. 2-12 sym53c875/875e data manual functional description dma fifo synchronous scsi receive 1. if the dma fifo size is set to 88 bytes, subtract the seven least signi?ant bits of the dbc register from the 7-bit value of the dfifo register. and the result with 7fh for a byte count between 0 and 88. if the dma fifo size is set to 536 bytes (using bit 5 of the ctest5 register), subtract the 10 least signi?ant bits of the dbc register from the 10-bit value of the dma fifo byte offset counter, which consists of bits 1-0 in the ctest5 register and bits 7-0 of the dma fifo register. and the result with 3ffh for a byte count between 0 and 536. 2. read bits 7-4 of the sstat1 register and bit 4 of the sstat2 register, the binary representation of the number of valid bytes in the scsi fifo, to determine if any bytes are left in the scsi fifo. 3. if any wide transfers have been performed using the chained move instruction, read the wide scsi receive bit (scntl2, bit 0) to determine whether a byte is left in the swide register. figure 2-2: sym53c875 host interface data paths pci interface dma fifo (32-bits x 16) sodl register scsi interface asynchronous scsi send pci interface dma fifo (32-bits x 16) sidl register scsi interface asynchronous scsi receive pci interface dma fifo (32-bits x 16) sodl register sodr register synchronous scsi send pci interface dma fifo (32-bits x 16) scsi fifo (8 or 16 bits x 16) scsi interface synchronous scsi receive scsi interface swide register swide register functional description scsi bus interface sym53c875/875e data manual 2-13 scsi bus interface the sym53c875 supports both single-ended and differential operation. all scsi signals are active low. the sym53c875 contains the single-ended output drivers and can be connected directly to the scsi bus. each out- put is isolated from the power supply to ensure that a powered-down sym53c875 has no effect on an active scsi bus (cmos ?oltage feed- through phenomena). tolerant technology pro- vides signal ?tering at the inputs of sreq/ and sack/ to increase immunity to signal re?ctions. differential mode in differential mode, the sdir (15-0), sdirp (1-0), igs, tgs, rstdir, bsydir, and seldir signals control the direction of external differential-pair transceivers. the sym53c875 is placed in differential mode by setting the dif bit, bit 5 of the stest2 register (4eh). setting this bit tri-states the bsy/, sel/, and rst/ pads so they can be used as pure input pins. in addition to the standard scsi lines, the following signals are used during differential operation by the sym53c875: see figure 2-3 for an example differential wiring diagram, in which the sym53c875 is connected to the ti 75lbc976 differential transceiver. the recommended value of the pull-up resistor on the req/, ack/, msg/, c/d/, i/o/, atn/, sd0-7/, and sdp0/ lines is 680 w when the active nega- tion portion of symbios tolerant technology is not enabled. when tolerant is enabled, the rec- ommended resistor value on the req/, ack/, sd7-0/, and sdp0/ signals is 1.5 k w . the electri- cal characteristics of these pins change when toler- ant is enabled, permitting a higher resistor value. to interface the sym53c875 to the sn75976a, connect the dir pins, as well as igs and tgs, of the sym53c875 directly to the transceiver enables (nde/re/). these signals control the direction of the channels on the sn75976a. the scsi bi-directional control and data pins (sd7-0/, sdp0/, req/, ack/, msg/, i_o/, c_d/, and atn/) of the sym53c875 connect to the bi-directional data pins (na) of the sn75976a with a pull-up resistor. the pull-up value should be no lower than the transceiver i ol can tolerate, but not so high as to cause rc timing problems. the three remaining pins, sel/, bsy/, and rst/ are connected to the sn75976a with a pull-down signal function bsydir, seldir, rstdir active high signals used to enable the differential drivers as outputs for scsi signals bsy/, sel/, and rst/, respectively sdir(15-0), sdirp(1-0) active high signals used to control direction of the differential drivers for scsi data and par- ity lines, respectively igs active high signal used to control direction of the differential driver for initiator group sig- nals atn/ and ack/ tgs active high signal used to control direction of the differential drivers for target group signals msg/, c/d/, i/o/, and req/ diffsens input to the sym53c875 used to detect the presence of a single-ended device on a differ- ential system. if a logical zero is detected on this pin, then it is assumed that a single-ended device is on the bus and all scsi outputs will be tri-stated to avoid damage to the trans- ceiver. 2-14 sym53c875/875e data manual functional description scsi bus interface resistor. the pull-down resistors are required when the pins (na) of the sn75976a are con?ured as inputs. when the data pins are inputs, the resistors provide a bias voltage to both the sym53c875 pins (sel/, bsy/, and rst/) and the sn75976a data pins. because the sel/, bsy/, and rst/ pins on the sym53c875 are inputs only, this con?u- ration allows for the sel/, bsy/, and rst/ scsi signals to be asserted on the scsi bus. the differ- ential pairs on the scsi bus are reversed when connected to the sn75976a, due to the active low nature of the scsi bus. note: the sn75976a differential transceiver must be used to achieve ultra scsi transfer rates. 8-bit/16-bit scsi and the differential interface in an 8-bit scsi bus, the sd15-8 pins on the sym53c875 should be pulled up with a 1.5 k w resistor or terminated like the rest of the scsi bus lines. this is very important, as errors may occur during reselection if these lines are left ?ating. in the sym53c875j and sym53c875jb , the sdirp1 pin is replaced by the tck jtag signal. if the device is used in a wide differential system, use the sdirp0 pin to control the direction of the differ- ential transceiver for both the sp0 and sp1 signals. the sdirp0 signal is capable of driving both direction inputs from a transceiver. functional description scsi bus interface sym53c875/875e data manual 2-15 figure 2-3: differential wiring diagram sd8-15/, sdp1/ sdirp0 sdir7 sdir6 sdir5 sdir4 sdir3 sdir2 sdir1 sdir0 sdp0/ sd7/ sd6/ sd5/ sd4/ sd3/ sd2/ sd1/ sd0/ diffsens seldir bsydir rstdir sel/ bsy/ rst/ req/ ack/ msg/ c/d/ i/o/ atn/ tgs igs 1a 1de/re 2a 2de/re 3a 3de/re 4a 4de/re 5a 5de/re 6a 6de/re 7a 7de/re 8a 8de/re 9a 9de/re cde0 cde1 cde2 bsr cre 1b+ 1b- 2b+ 2b- 3b+ 3b- 4b+ 4b- 5b+ 5b- 6b+ 6b- 7b+ 7b- 8b+ 8b- 9b+ 9b- sn75976a sd0/ sd1/ sd2/ sd3/ sd4/ sd5/ sd5/ sd7/ sdp0/ sdir0 sdir1 sdir2 sdir3 sdir4 sdir5 sdir6 sdir7 sdirp0 1a 1de/re 2a 2de/re 3a 3de/re 4a 4de/re 5a 5de/re 6a 6de/re 7a 7de/re 8a 8de/re 9a 9de/re cde0 cde1 cde2 bsr cre 1b+ 1b- 2b+ 2b- 3b+ 3b- 4b+ 4b- 5b+ 5b- 6b+ 6b- 7b+ 7b- 8b+ 8b- 9b+ 9b- sn75976a diffsens v dd seldir bsydir rstdir sel/ bsy/ rst/ req/ ack/ msg/ c_d/ i_o/ atn/ -sel (42) +sel (41) -bsy (34) +bsy (33) -rst (38) +rst (37) -req (46) +req (45) -ack (36) +ack (35) -msg (40) +msg (39) -c/d (44) +c/d (43) -i/o (48) +i/o (47) -atn (30) +atn (29) -db0 (4) +db0 (3) -db1 (6) +db1 (5) -db2 (8) +db2 (7) -db3 (10) +db3 (9) -db4 (12) +db4 (11) -db5 (14) +db5 (13) -db6 (16) +db6 (15) -db7 (18) +db7 (17) -dbp (20) +dbp (19) 1.5 k 1.5 k sym53c8xx scsi bus v dd 1.5 k v dd v dd 1.5 k v dd 1.5 k v dd 1.5 k diffsens (pin 21) schottky diode diffsens diffsens 1.5 k note: use the sn75976a to achieve ultra scsi transfer rates. 2-16 sym53c875/875e data manual functional description scsi bus interface terminator networks the terminator networks provide the biasing needed to pull signals to an inactive voltage level, and to match the impedance seen at the end of the cable with the characteristic impedance of the cable. terminators must be installed at the extreme ends of the scsi chain, and only at the ends; no system should ever have more or less than two ter- minators installed and active. scsi host adapters should provide a means of accommodating termi- nators. the terminators should be socketed, so that if not needed they may be removed, or there should be a means of disabling them with software. single-ended cables can use a 220 w pull-up to the terminator power supply (term-power) line and a 330 w pull-down to ground. because of the high- performance nature of the sym53c875, regu- lated (or active) termination is recommended. figure 2-4 shows a unitrode active terminator. for additional information, refer to the scsi-2 speci- ?ation. tolerant active negation can be used with either termination network. note: if the sym53c875 is to be used in a design with only an 8-bit scsi bus, all 16 data lines still must be terminated or pulled high. note: active termination is required for ultra scsi synchronous transfers. functional description scsi bus interface sym53c875/875e data manual 2-17 figure 2-4: regulated termination terml1 terml2 terml3 terml4 terml5 terml6 terml7 terml8 terml9 terml10 terml11 terml12 terml13 terml14 terml15 terml16 terml17 terml18 uc5601qp 20 21 22 23 24 25 26 27 28 3 4 5 6 7 8 9 10 11 c1 c2 sd0 (j1.40) sd1 (j1.41) sd2 (j1.42) sd3 (j1.43) sd4 (j1.44) sd5 (j1.45) sd6 (j1.46) sd7 (j1.47) sdp0 (j1.48) atn (j1.55) bsy (j1.57) ack (j1.58) rst (j1.59) msg (j1.60) sel (j1.61) c/d (j1.62) req (j1.63) i/o (j1.64) reg_out disconnect 2.85v 2 19 term1 term2 term3 term4 term5 term6 term7 term8 term9 10 9 8 7 3 2 1 16 15 sd15 (j1.38) sd14 (j1.37) sd13 (j1.36) sd12 (j1.35) sd11 (j1.68) sd10 (j1.67) sd9 (j1.66) sd8 (j1.65) sdp1 (j1.39) uc5603dp 6 disconnect 14 reg_out c3 (uc5610 for fast-20) (uc5614 for fast-20) key c1 10 m f smt c2 0.1 m f smt c3 2.2 m f smt j1 68-pin, high density "p" connector 2-18 sym53c875/875e data manual functional description synchronous operation (re)select during (re)selection in multi-threaded scsi i/o environments, it is not uncommon to be selected or reselected while try- ing to perform selection/reselection. this situation may occur when a scsi controller (operating in initiator mode) tries to select a target and is rese- lected by another. the select scripts instruc- tion has an alternate address to which the scripts will jump when this situation occurs. the analogous situation for target devices is being selected while trying to perform a reselection. once a change in operating mode occurs, the initi- ator scripts should start with a set initiator instruction or the target scripts should start with a set target instruction. the selection and reselection enable bits (scid bits 5 and 6, respectively) should both be asserted so that the sym53c875 may respond as an initiator or as a target. if only selection is enabled, the sym53c875 cannot be reselected as an initiator. there are also status and interrupt bits in the sist0 and sien0 registers, respectively, indicat- ing that the sym53c875 has been selected (bit 5) and reselected (bit 4). synchronous operation the sym53c875 can transfer synchronous scsi data in both initiator and target modes. the sxfer register controls both the synchronous off- set and the transfer period. it may be loaded by the cpu before scripts execution begins, from within scripts via a table indirect i/o instruc- tion, or with a read-modify-write instruction. the sym53c875 can receive data from the scsi bus at a synchronous transfer period as short as 50 ns, regardless of the transfer period used to send data. the sym53c875 can receive data at one-fourth of the divided sclk frequency. depending on the sclk frequency, the negoti- ated transfer period, and the synchronous clock divider, the sym53c875 can send synchronous data at intervals as short as 50 ns for ultra scsi, 100 ns for fast scsi and 200 ns for scsi-1. determining the data transfer rate synchronous data transfer rates are controlled by bits in two different registers of the sym53c875. a brief description of the bits is provided below. figure 2-5 illustrates the clock division factors used in each register, and the role of the register bits in determining the transfer rate. scntl3 register, bits 6 4 (scf2 0) the scf2-0 bits select the factor by which the fre- quency of sclk is divided before being presented to the synchronous scsi control logic. the output from this divider controls the rate at which data can be received; this rate must not exceed 80 mhz. the receive rate of synchronous scsi data is 1/4 of the scf divider output. for example, if sclk is 80mhz and the scf value is set to divide by two, then the maximum rate at which data can be received is 10 mhz (80/(2*4) = 10). functional description synchronous operation sym53c875/875e data manual 2-19 scntl3 register, bits 2 0 (ccf2 0) the ccf2-0 bits select the factor by which the frequency of sclk is divided before being pre- sented to the asynchronous scsi core logic. this divider must be set according to the input clock frequency in the table. sxfer register, bits 7 5 (tp2 0) the tp2-0 divider bits determine the scsi syn- chronous transfer period when sending synchro- nous scsi data in either initiator or target mode. this value further divides the output from the scf divider. achieving optimal scsi send rates to achieve optimal synchronous scsi send tim- ings, the scf divisor value should be set high, to divide the clock as much as possible before pre- senting the clock to the tp divider bits in the sxfer register. the tp2-0 divider value should be as low as possible. for example, with a 80 mhz clock to achieve a 20 mb/s ultra scsi send rate, the scf bits can be set to divide by 1 (001) and the tp bits to divide by 4 (000). to set for a 10 mb/s send rate for fast scsi-2, the scf bits can be set to divide by 2 (011) and the tp bits set to divide by 4 (000). ultra scsi synchronous data transfers ultra scsi is simply an extension of current fast scsi-2 synchronous transfer speci?ations. it allows synchronous transfer periods to be negoti- ated down as low as 50 ns, which is half the 100 ns period allowed under fast scsi-2. this will allow a maximum transfer rate of 40 mb/s on a 16-bit scsi bus. the sym53c875 requires an 80mhz scsi clock input to perform ultra scsi transfers. in addition, the following bit values affect the chip s ability to support ultra scsi synchronous transfer rates: 1. clock conversion factor bits, scntl3 register bits 2-0 and synchronous clock conversion factor bits, scntl3 register bits 6-4. these ?lds now support a value of 101 (binary), allowing the sclk frequency to be divided down by 4. this allows systems using an 80 mhz clock or the internal clock doubler to operate at fast scsi-2 transfer rates as well as ultra scsi rates, if needed. 2. ultra mode enable bit, scntl3 register bit 7. setting this bit enables ultra scsi synchronous transfers in systems that have an 80 mhz clock or use the internal scsi clock doubler. 2-20 sym53c875/875e data manual functional description synchronous operation figure 2-5: determining the synchronous transfer rate tp2 tp1 tp0 xferp divisor 0004 0015 0106 0117 1008 1019 11010 11111 ccf2 ccf1 ccf0 ccf divisor 0 011 0 1 0 1.5 0 112 1 003 0 003 1 014 sclk scf ccf synchronous asynchronous (to scsi divider divider divider scsi logic this point must not exceed 80 mhz this point must not exceed 25 mhz scf2 scf1 scf0 scf divisor 0011 0101.5 0112 1003 0003 1014 example (8-bit scsi bus): sclk=80 mhz, scf=1 ( ? 1), xferp=4 ( ? 4), ccf = 5 ( ? 4), scsi send rate =(sclk ? scf) ? xferp = (80 ? 1) ? 4 = 20 mb/s scsi receive rate = (sclk ? scf) ? 4 = (80 ? 1) ? 4 = 20 mb/s receive clock bus) send clock clock doubler divide by 4 functional description interrupt handling sym53c875/875e data manual 2-21 interrupt handling the scripts processor in the sym53c875 per- forms most functions independently of the host microprocessor. however, certain interrupt situa- tions must be handled by the external micropro- cessor. this section explains all aspects of interrupts as they apply to the sym53c875. polling and hardware interrupts the external microprocessor is informed of an interrupt condition by polling or hardware inter- rupts. polling means that the microprocessor must continually loop and read a register until it detects a bit set that indicates an interrupt. this method is the fastest, but it wastes cpu time that could be used for other system tasks. the preferred method of detecting interrupts in most systems is hardware interrupts. in this case, the sym53c875 will assert the interrupt request (irq/) line that will interrupt the microprocessor, causing the micro- processor to execute an interrupt service routine. a hybrid approach would use hardware interrupts for long waits, and use polling for short waits. registers the registers in the sym53c875 that are used for detecting or de?ing interrupts are the istat, sist0, sist1, dstat, sien0, sien1, dcntl, and dien. istat the istat is the only register that can be accessed as a slave during scripts operation, therefore it is the register that is polled when polled interrupts are used. it is also the ?st regis- ter that should be read when the irq/ pin has been asserted in association with a hardware interrupt. the intf (interrupt on the fly) bit should be the ?st interrupt serviced. it must be written to one to be cleared. this interrupt must be cleared before servicing any other interrupts. if the sip bit in the istat register is set, then a scsi-type interrupt has occurred and the sist0 and sist1 registers should be read. if the dip bit in the istat regis- ter is set, then a dma-type interrupt has occurred and the dstat register should be read. scsi- type and dma-type interrupts may occur simulta- neously, so in some cases both sip and dip may be set. sist0 and sist1 the sist0 and sist1 registers contain the scsi- type interrupt bits. reading these registers will determine which condition or conditions caused the scsi-type interrupt, and will clear that scsi interrupt condition. if the sym53c875 is receiv- ing data from the scsi bus and a fatal interrupt condition occurs, the sym53c875 will attempt to send the contents of the dma fifo to memory before generating the interrupt. if the sym53c875 is sending data to the scsi bus and a fatal scsi interrupt condition occurs, data could be left in the dma fifo. because of this, the dma fifo empty (dfe) bit in dstat should be checked. if this bit is clear, set the clf (clear dma fifo) and csf (clear scsi fifo) bits before continuing. the clf bit is bit 2 in ctest3. the csf bit is bit 1 in stest3. dstat the dstat register contains the dma-type interrupt bits. reading this register will determine which condition or conditions caused the dma- type interrupt, and will clear that dma interrupt condition. bit 7 in dstat, dfe, is purely a status bit; it will not generate an interrupt under any cir- cumstances and will not be cleared when read. dma interrupts will ?sh neither the dma nor scsi fifos before generating the interrupt, so the dfe bit in the dstat register should be checked after any dma interrupt. if the dfe bit is clear, then the fifos must be cleared by setting the clf (clear dma fifo) and csf (clear scsi fifo) bits, or ?shed by setting the flf (flush dma fifo) bit. 2-22 sym53c875/875e data manual functional description interrupt handling sien0 and sien1 the sien0 and sien1 registers are the interrupt enable registers for the scsi interrupts in sist0 and sist1. dien the dien register is the interrupt enable register for dma interrupts in dstat. dcntl when bit 1 in this register is set, the irq/ pin will not be asserted when an interrupt condition occurs. the interrupt is not lost or ignored, but merely masked at the pin. clearing this bit when an interrupt is pending will immediately cause the irq/ pin to assert. as with any register other than istat, this register cannot be accessed except by a scripts instruction during scripts execution. fatal vs. non-fatal interrupts a fatal interrupt, as the name implies, always causes scripts to stop running. all non-fatal interrupts become fatal when they are enabled by setting the appropriate interrupt enable bit. inter- rupt masking will be discussed later in this section. all dma interrupts (indicated by the dip bit in istat and one or more bits in dstat being set) are fatal. some scsi interrupts (indicated by the sip bit in the istat and one or more bits in sist0 or sist1 being set) are non-fatal. when the sym53c875 is operating in initiator mode, only the function complete (cmp), selected (sel), reselected (rsl), general purpose timer expired (gen), and handshake to handshake timer expired (hth) interrupts are non-fatal. when operating in target mode cmp, sel, rsl, target mode: satn/ active (m/a), gen, and hth are non-fatal. refer to the description for the disable halt on a parity error or satn/ active (target mode only) (dhp) bit in the scntl1 register to con?ure the chip s behavior when the satn/ interrupt is enabled during target mode operation. the interrupt on the fly interrupt is also non- fatal, since scripts can continue when it occurs. the reason for non-fatal interrupts is to prevent scripts from stopping when an interrupt occurs that does not require service from the cpu. this prevents an interrupt when arbitration is complete (cmp set), when the sym53c875 has been selected or reselected (sel or rsl set), when the initiator has asserted atn (target mode: satn/ active), or when the general purpose or hand- shake to handshake timers expire. these inter- rupts are not needed for events that occur during high-level scripts operation. masking masking an interrupt means disabling or ignoring that interrupt. interrupts can be masked by clear- ing bits in the sien0 and sien1 (for scsi inter- rupts) registers or dien (for dma interrupts) register. how the chip will respond to masked interrupts depends on: whether polling or hard- ware interrupts are being used; whether the inter- rupt is fatal or non-fatal; and whether the chip is operating in initiator or target mode. if a non-fatal interrupt is masked and that condi- tion occurs, scripts will not stop, the appropri- ate bit in the sist0 or sist1 will still be set, the sip bit in the istat will not be set, and the irq/ pin will not be asserted. see the section on non- fatal vs. fatal interrupts for a list of the non-fatal interrupts. if a fatal interrupt is masked and that condition occurs, then scripts will still stop, the appropri- ate bit in the dstat, sist0, or sist1 register will be set, and the sip or dip bits in the istat will be set, but the irq/ pin will not be asserted. when the chip is initialized, enable all fatal inter- rupts if you are using hardware interrupts. if a fatal interrupt is disabled and that interrupt condition occurs, scripts will halt and the system will never know it unless it times out and checks the istat after a certain period of inactivity. functional description interrupt handling sym53c875/875e data manual 2-23 if you are polling the istat instead of using hard- ware interrupts, then masking a fatal interrupt will make no difference since the sip and dip bits in the istat inform the system of interrupts, not the irq/ pin. masking an interrupt after irq/ is asserted will not cause irq/ to be deasserted. stacked interrupts the sym53c875 stacks interrupts if they occur one after the other. if the sip or dip bits in the istat register are set (?st level), then there is already at least one pending interrupt, and any future interrupts will be stacked in extra registers behind the sist0, sist1, and dstat registers (second level). when two interrupts have occurred and the two levels of the stack are full, any further interrupts will set additional bits in the extra regis- ters behind sist0, sist1, and dstat. when the ?st level of interrupts are cleared, all the inter- rupts that came in afterward will move into the sist0, sist1, and dstat. after the ?st inter- rupt is cleared by reading the appropriate register, the irq/ pin will be deasserted for a minimum of three clks; the stacked interrupt(s) will move into the sist0, sist1, or dstat; and the irq/ pin will be asserted once again. since a masked non-fatal interrupt will not set the sip or dip bits, interrupt stacking will not occur. a masked, non-fatal interrupt will still post the interrupt in sist0, but will not assert the irq/ pin. since no interrupt is generated, future inter- rupts will move right into the sist0 or sist1 instead of being stacked behind another interrupt. when another condition occurs that generates an interrupt, the bit corresponding to the earlier masked non-fatal interrupt will still be set. a related situation to interrupt stacking is when two interrupts occur simultaneously. since stack- ing does not occur until the sip or dip bits are set, there is a small timing window in which multi- ple interrupts can occur but will not be stacked. these could be multiple scsi interrupts (sip set), multiple dma interrupts (dip set), or multiple scsi and multiple dma interrupts (both sip and dip set). as previously mentioned, dma interrupts will not attempt to ?sh the fifos before generating the interrupt. it is important to set either the clear dma fifo (clf) and clear scsi fifo (csf) bits if a dma interrupt occurs and the dma fifo empty (dfe) bit is not set. this is because any future scsi interrupts will not be posted until the dma fifo is clear of data. these ?ocked out scsi interrupts will be posted as soon as the dma fifo is empty. halting in an orderly fashion when an interrupt occurs, the sym53c875 will attempt to halt in an orderly fashion. n if the interrupt occurs in the middle of an instruction fetch, the fetch will be completed, except in the case of a bus fault. execution will not begin, but the dsp will point to the next instruction since it is updated when the current instruction is fetched. n if the dma direction is a write to memory and a scsi interrupt occurs, the sym53c875 will attempt to ?sh the dma fifo to memory before halting. under any other circumstances only the current cycle will be completed before halting, so the dfe bit in dstat should be checked to see if any data remains in the dma fifo. n scsi sreq/sack handshakes that have begun will be completed before halting. n the sym53c875 will attempt to clean up any outstanding synchronous offset before halting. n in the case of transfer control instructions, once instruction execution begins it will continue to completion before halting. n if the instruction is a jump/call when/if 2-24 sym53c875/875e data manual functional description chained block moves sample interrupt service routine the following is a sample of an interrupt service routine for the sym53c875. it can be repeated if polling is used, or should be called when the irq/ pin is asserted if hardware interrupts are used. 1. read istat. 2. if the intf bit is set, it must be written to a one to clear this status. 3. if only the sip bit is set, read sist0 and sist1 to clear the scsi interrupt condition and get the scsi interrupt status. the bits in the sist0 and sist1 tell which scsi interrupt(s) occurred and determine what action is required to service the interrupt(s). 4. if only the dip bit is set, read the dstat to clear the interrupt condition and get the dma interrupt status. the bits in the dstat will tell which dma interrupt(s) occurred and determine what action is required to service the interrupt(s). 5. if both the sip and dip bits are set, read sist0, sist1, and dstat to clear the scsi and dma interrupt condition and get the interrupt status. if using 8-bit reads of the sist0, sist1, and dstat registers to clear interrupts, insert a 12 clk delay between the consecutive reads to ensure that the interrupts clear properly. both the scsi and dma interrupt conditions should be handled before leaving the isr. it is recommended that the dma interrupt be serviced before the scsi interrupt, because a serious dma interrupt condition could in?ence how the scsi interrupt is acted upon. 6. when using polled interrupts, go back to step 1 before leaving the interrupt service routine, in case any stacked interrupts moved in when the ?st interrupt was cleared. when using hardware interrupts, the irq/ pin will be asserted again if there are any stacked interrupts. this should cause the system to re- enter the interrupt service routine. chained block moves since the sym53c875 has the capability to trans- fer 16-bit wide scsi data, a unique situation occurs when dealing with odd bytes. the chained move (chmov) scripts instruction along with the wide scsi send (wss) and wide scsi receive (wsr) bits in the scntl2 register are used to facilitate these situations. the chained block move instruction is illustrated in figure 2-6. wide scsi send bit the wss bit is set whenever the scsi core is sending data (data out for initiator or data in for target) and the core detects a partial transfer at the end of a chained block move scripts instruc- tion (this ?g will not be set if a normal block move instruction is used). under this condition, the scsi core does not send the low-order byte of the last partial memory transfer across the scsi bus. instead, the low-order byte is temporarily stored in the lower byte of the sodl register and the wss ?g is set. the hardware uses the wss ?g to determine what behavior must occur at the start of the next data send transfer. when the wss ?g is set at the start of the next transfer, the ?st byte (the high-order byte) of the next data send transfer is ?arried with the stored low-order byte in the sodl register; and the two bytes are sent out across the bus, regardless of the type of block move instruction (normal or chained). the ?g is automatically cleared when the ?arried word is sent. the ?g can alternately be cleared through scripts or by the microprocessor. additionally, this bit can be used by the micropro- cessor or scripts for error detection and recov- ery purposes. wide scsi receive bit the wsr bit is set whenever the scsi core is receiving data (data in for initiator or data out for target) and the core detects a partial transfer at the end of a block move or chained block move functional description chained block moves sym53c875/875e data manual 2-25 scripts instruction. when wsr is set, the high order byte of the last scsi bus transfer is not transferred to memory. instead, the byte is tempo- rarily stored in the swide register. the hardware uses the wsr bit to determine what behavior must occur at the start of the next data receive transfer. the bit is automatically cleared at the start of the next data receive transfer. the bit can alternatively be cleared by the microprocessor or through scripts. the bit can also be used by the micro- processor or scripts for error detection and recovery purposes. swide register this register is used to store data for partial byte data transfers. for receive data, the swide regis- ter holds the high-order byte of a partial scsi transfer which has not yet been transferred to memory. this stored data may be a residue byte (and therefore ignored) or it may be valid data that will be transferred to memory at the beginning of the next block move instruction. sodl register for send data, the low-order byte of the sodl register holds the low-order byte of a partial mem- ory transfer which has not yet been transferred across the scsi bus. this stored data is usually ?arried with the ?st byte of the next data send transfer, and both bytes are sent across the scsi bus at the start of the next data send block move command. chained block move scripts instruction a chained block move scripts instruction is primarily used to transfer consecutive data send or data receive blocks. using the chained block move instruction facilitates partial receive transfers and allows correct partial send behavior without addi- tional op code overhead. behavior of the chained block move instruction varies slightly for sending and receiving data. for receive data (data in for initiator or data out for target), a chained block move instruction indi- cates that if a partial transfer occurred at the end of the instruction, the wsr ?g is set.the high order byte of the last scsi transfer is stored in the swide register rather than transferred to mem- ory. the contents of the swide register should be the ?st byte transferred to memory at the start of the chained block move data stream. since the byte count always represents data transfers to/from memory (as opposed to the scsi bus), the byte transferred out of the swide register is one of the bytes in the byte count. if the wsr bit is clear when a receive data chained block move instruc- tion is executed, the data transfer occurs similar to that of the regular block move instruction. whether the wsr bit is set or clear, when a normal block move instruction is executed, the contents of the swide register will be ignored and the transfer takes place normally. for ? consecutive wide data receive block move instructions, the 2nd through the nth block move instructions should be chained block moves. for send data (data out for initiator or data in for target), a chained block move instruction indicates that if a partial transfer terminates the chained block move instruction, the last low-order byte (the partial memory transfer) should be stored in the lower byte of the sodl register and not sent across the scsi bus. without the chained block move instruction, the last low-order byte would be sent across the scsi bus. the starting byte count represents data bytes transferred from memory but not to the scsi bus when a partial transfer exists. for example, if the instruction is an initiator chained block move data out of ?e bytes (and wss is not previously set), ?e bytes will be trans- ferred out of memory to the scsi core, four bytes will be transferred from the scsi core across the scsi bus, and one byte will be temporarily stored in the lower byte of the sodl register waiting to be married with the ?st byte of the next block move instruction. regardless of whether a chained block move or normal block move instruction is used, if the wss bit is set at the start of a data send command, the ?st byte of the data send command is assumed to be the high-order byte and is ?ar- 2-26 sym53c875/875e data manual functional description chained block moves ried with the low-order byte stored in the stored in the lower byte of the sodl register before the two bytes are sent across the scsi bus. for ? consecutive wide data send block move com- mands, the ?st through the (nth - 1) block move instructions should be chained block moves. notes: chmov 5, 3 when data_out: moves ?e bytes from address 03 in the host memory to the scsi bus (bytes 03, 04, 05, and 06 are moved and byte 07 remains in the low order byte of the scsi output data latch register and is married with the ?st byte of the fol- lowing move instruction). move 5, 9 when data_out: moves ?e bytes from address 09 in the host memory to the scsi bus. figure 2-6: block move and chained block move instructions 00 04 08 0c 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 10 11 12 13 32 bits host memory 04 05 06 03 07 09 0a 0b 0c 0d 16 bits scsi bus functional description power management sym53c875/875e data manual 2-27 power management the sym53c875e complies with the pci bus power management interface speci?ation, revi- sion 1.0. the pci function power states are de?ed in that speci?ation: d0, d1, d2, and d3. d0 and d3 are required by speci?ation, and d1 and d2 are optional. d0 is the maximum powered state, and d3 is the minimum powered state. power state d3 is further categorized as d3hot or d3cold. a function that is powered off is said to be in the d3cold power state. the power states for the scsi function are inde- pendently controlled through two power state bits that are located in the pci con?uration space register 44h. the bits are encoded as: 00b - power state d0, 01b - reserved, 10b - reserved, and 11b - power state d3. power states d1 and d2 are not discussed because they have not been imple- mented as a new feature. the power states--d0 and d3--are described below in conjunction with each scsi function. power state actions are separate for each function. power state d0 power state d0 is the maximum power state and is the power-up default state for each function. power state d3 power state d3 is the minimum power state, which includes subsettings called d3hot and d3cold. the devices are considered to be in power state d3cold when power is removed from them. d3cold can transition to d0 by applying vcc and resetting the device. d3hot allows the device to transition to d0 via software. to obtain power reduction in d3hot, the scsi clock and the scsi clock doubler phase lock loop (pll) are dis- abled. furthermore, the function s soft reset is continually asserted while in power state d3, which clears all pending interrupts and tri-states the scsi bus. in addition, the function s pci com- mand register is cleared. 2-28 sym53c875/875e data manual functional description power management pci functional description pci addressing sym53c875/875e data manual 3-1 chapter 3 pci functional description pci addressing there are three types of pci-de?ed address space: n con?uration space n memory space n i/o space con?uration space is a contiguous 256 x 8-bit set of addresses dedicated to each ?lot or ?tub on the bus. decoding c_be/(3-0) determines if a pci cycle is intended to access con?uration register space. the idsel bus signal is a ?hip select that allows access to the con?uration register space only. a con?uration read/write cycle without idsel will be ignored. the eight lower order addresses are used to select a speci? 8-bit register. ad(10-8) are decoded as well, but they must be zero or the sym53c875 will not respond. accord- ing to the pci speci?ation, ad(10-8) are to be used for multifunction devices. the host processor uses the pci con?uration space to initialize the sym53c875. the lower 128 bytes of the sym53c875 con?u- ration space holds system parameters while the upper 128 bytes map into the sym53c875 oper- ating registers. for all pci cycles except con?ura- tion cycles, the sym53c875 registers are located on the 256-byte block boundary de?ed by the base address assigned through the con?ured reg- ister. the sym53c875 operating registers are available in both the upper and lower 128-byte portions of the 256-byte space selected. at initialization time, each pci device is assigned a base address (in the case of the sym53c875, the upper 24 bits of the address are selected) for mem- ory accesses and i/o accesses. on every access, the sym53c875 compares its assigned base addresses with the value on the address/data bus during the pci address phase. if there is a match of the upper 24 bits, the access is for the sym53c875 and the low order eight bits de?e the register to be accessed. a decode of c_be/ (3-0) determines which registers and what type of access is to be performed. pci de?es memory space as a contiguous 32-bit memory address that is shared by all system resources, including the sym53c875. base address register one determines which 256-byte memory area this device will occupy. pci de?es i/o space as a contiguous 32-bit i/o address that is shared by all system resources, including the sym53c875. base address register zero determines which 256-byte i/o area this device will occupy. pci bus commands and functions supported bus commands indicate to the target the type of transaction the master is requesting. bus com- mands are encoded on the c_be/(3-0) lines dur- ing the address phase. pci bus command encoding and types appear in table 3-1. the i/o read command is used to read data from an agent mapped in i/o address space. all 32 address bits are decoded. the i/o write command is used to write data to an agent when mapped in i/o address space. all 32 address bits are decoded. pci functional description pci bus commands and functions supported 3-2 sym53c875/875e data manual the memory read, memory read multiple, and memory read line commands are used to read data from an agent mapped in memory address space. all 32 address bits are decoded. the memory write and memory write and invali- date commands are used to write data to an agent when mapped in memory address space. all 32 address bits are decoded. table 3-1: pci bus commands and encoding types c_be(3-0) command type supported as master supported as slave 0000 special interrupt acknowledge no no 0001 special cycle no no 0010 i/o read cycle yes yes 0011 i/o write cycle yes yes 0100 reserved n/a 0101 reserved n/a 0110 memory read yes yes 0111 memory write yes yes 1000 reserved n/a 1001 reserved n/a 1010 con?uration read no yes 1011 con?uration write no yes 1100 memory read multiple yes** no (defaults to 0110) 1101 dual address cycle no no 1110 memory read line yes* no (defaults to 0110) 1111 memory write and invalidate yes*** no (defaults to 0111) * this operation is selectable by bit 3 in the dmode operating register ** this operation is selectable by bit 2 in the dmode operating register ***this operation is selectable by bit 0 in the ctest3 operating register pci functional description pci cache mode sym53c875/875e data manual 3-3 pci cache mode the sym53c875 supports the pci speci?ation for an 8-bit cache line size register located in pci con?uration space. the cache line size reg- ister provides the ability to sense and react to non- aligned addresses corresponding to cache line boundaries. in conjunction with the cache line size register, the pci commands read line, read multiple, and write and invalidate are each soft- ware enabled or disabled to allow the user full ?x- ibility in using these commands. support for pci cache line size register the sym53c875 supports the pci speci?ation for an 8-bit cache line size register in pci con?- uration space; it can sense and react to non-aligned addresses corresponding to cache line boundaries. selection of cache line size the cache logic will select a cache line size based on the values for the burst size in the dmode register, bit 2 in the ctest5 register, and the pci cache line size register. note: the sym53c875 will not automatically use the value in the pci cache line size register as the cache line size value. the chip scales the value of the cache line size register down to the nearest binary burst size allowed by the chip (2, 4, 8, 16, 32, 64, or 128), compares this value to the burst size de?ed by the values of the dmode register and bit 2 of the ctest5 register, then selects the smallest as the value for the cache line size. the sym53c875 will use this value for all burst data transfers. alignment the sym53c875 uses the calculated line size value to monitor the current address for alignment to the cache line size. when it is not aligned, the chip attempts to align to the cache boundary by using a ?mart aligning scheme. this means that it will attempt to use the largest burst size possible that is less than the cache line size, to reach the cache boundary quickly with no over?w. this process is a stepping mechanism that will step up to the highest possible burst size based on the cur- rent address. the stepping process begins at a 4-dword bound- ary. the sym53c875 will ?st try to align to a 4- dword boundary (0x00, 0x010, 0x020, etc.) by using single dword transfers (no bursting). once this boundary has been reached the chip will evalu- ate the current alignment to various burst sizes allowed, and will select the largest possible as the next burst size, while not exceeding the cache line size. the chip will then issue this burst, and re- evaluate the alignment to various burst sizes, again selecting the largest possible while not exceeding the cache line size, as the next burst size. this step- ping process continues until the chip reaches the cache line size boundary or runs out of data. once a cache line boundary is reached, the chip will use the cache line size as the burst size from then on, except in the case of multiples (explained below). the alignment process is ?ished at this point. example: cache line size - 16, current address = 0x01 the chip is not aligned to a 4-dword cache bound- ary (the stepping threshold), so it issues four sin- gle-dword transfers (the ?st is a 3-byte transfer). at address 0x10, the chip is aligned to a 4-dword boundary, but not aligned to any higher burst size boundaries that are less than the cache line size. so, the part will issue a burst of 4. at this point, the address is 0x20, and the chip will evaluate that it is aligned not only to a 4-dword boundary, but also to an 8-dword boundary. it will select the highest, 8, and burst 8 dwords. at this point, the address is 0x40, which is a cache line size bound- ary. alignment stops, and the burst size from then on is switched to 16. pci functional description pci cache mode 3-4 sym53c875/875e data manual memory move misalignment the sym53c875 will not operate in a cache alignment mode when a memory move instruc- tion type is issued and the read and write addresses are different distances from the nearest cache line boundary. for example, if the read address is 0x21f and the write address is 0x42f, and the cache line size is eight (8), the addresses are byte aligned, but they are not the same distance from the nearest cache boundary. the read address is 1 byte from the cache boundary 0x220 and the write address is 17 bytes from the cache boundary 0x440. in this situation, the chip will not align to cache boundaries and will operate as an sym53c825. memory write and invalidate command the memory write and invalidate command is identical to the memory write command, except that it additionally guarantees a minimum transfer of one complete cache line; i.e., the master intends to write all bytes within the addressed cache line in a single pci transaction unless interrupted by the target. this command requires implementation of the pci cache line size register at address 0ch in pci con?uration space. the sym53c875 enables memory write and invalidate cycles when bit 0 in the ctest3 register (wrie) and bit 4 in the pci command register are set. this will cause memory write and invalidate commands to be issued when the following conditions are met: 1. the clse bit, wrie bit, and pci con?uration command register, bit 4 must be set. 2. the cache line size register must contain a legal burst size (2, 4, 8, 16, 32, 64, or 128) value and that value must be less than or equal to the dmode burst size. 3. the chip must have enough bytes in the dma fifo to complete at least one full cache line burst. 4. the chip must be aligned to a cache line boundary. when these conditions have been met, the sym53c875 will issue a write and invalidate command instead of a memory write command during all pci write cycles. multiple cache line transfers the write and invalidate command can write mul- tiple cache lines of data in a single bus ownership. the chip issues a burst transfer as soon as it reaches a cache line boundary. the size of the transfer will not automatically be the cache line size, but rather a multiple of the cache line size as allowed for in the revision 2.1 of the pci speci? cation. the logic will select the largest multiple of the cache line size based on the amount of data to transfer, with the maximum allowable burst size being that determined from the dmode burst size bits and ctest 5, bit 2. if multiple cache line size transfers are not desired, the dmode burst size can be set to exactly the cache line size and the chip will only issue single cache line trans- fers. after each data transfer, the chip re-evaluates the burst size based on the amount of remaining data to transfer and again selects the highest possible multiple of the cache line size, no larger than the dmode burst size. the most likely scenario of this scheme is that the chip will select the dmode burst size after alignment, and issue bursts of this size. the burst size will, in effect, throttle down toward the end of a long memory move or block move transfer until only the cache line size burst size is left; the chip will ?ish the transfer with this burst size. latency in accordance with the pci speci?ation, the chip's latency timer will be ignored when issuing a write and invalidate command such that when a latency time-out has occurred, the sym53c875 will continue to transfer up until a cache line boundary. at that point, the chip will relinquish the bus, and ?ish the transfer at a later time using pci functional description pci cache mode sym53c875/875e data manual 3-5 another bus ownership. if the chip is transferring multiple cache lines it will continue to transfer until the next cache boundary is reached. pci target retry during a write and invalidate transfer, if the target device issues a retry (stop with no trdy, indi- cating that no data was transferred), the sym53c875 will relinquish the bus and immedi- ately try to ?ish the transfer on another bus own- ership. the chip will issue another write and invalidate command on the next ownership, in accordance with the pci speci?ation. pci target disconnect during a write and invalidate transfer, if the target device issues a disconnect the sym53c875 will relinquish the bus and immediately try to ?ish the transfer on another bus ownership. the chip will not issue another write and invalidate command on the next ownership unless the address is aligned. memory read line command this command is identical to the memory read command, except that it additionally indicates that the master intends to fetch a complete cache line. this command is intended to be used with bulk sequential data transfers where the memory system and the requesting master might gain some perfor- mance advantage by reading up to a cache line boundary rather than a single memory cycle.the read line mode function that exists in the previ- ous sym53c8xx chips has been modi?d in the sym53c875 to re?ct the pci cache line size reg- ister speci?ations. the functionality of the enable read line bit (bit 3 in dmode) has been modi- ?d to more resemble the write and invalidate mode in terms of conditions that must be met before a read line command will be issued. how- ever, the read line option will operate exactly like the previous sym53c8xx chips when cache mode has been disabled by a clse bit reset or when certain conditions exist in the chip (explained below). the read line mode is enabled by setting bit 3 in the dmode register. if cache mode is disabled, read line commands will be issued on every read data transfer, except op code fetches, as in previ- ous sym53c8xx chips. if cache mode has been enabled, a read line com- mand will be issued on all read cycles, except op code fetches, when the following conditions have been met: 1. the clse and enable read line bits must be set. 2. the cache line size register must contain a legal burst size value (2, 4, 8, 16, 32, 64, or 128) and that value must be less than or equal to the dmode burst size. 3. the number of bytes to be transferred at the time a cache boundary has been reached must be equal to or greater than the dmode burst size. 4. the chip must be aligned to a cache line boundary. when these conditions have been met, the chip will issue a read line command instead of a memory read during all pci read cycles. other- wise, it will issue a normal memory read com- mand. memory read multiple command this command is identical to the memory read command except that it additionally indicates that the master may intend to fetch more than one cache line before disconnecting. the sym53c875 supports pci read multiple functionality and will issue read multiple commands on the pci bus when the read multiple mode is enabled. this mode is enabled by setting bit 2 of the dmode register (ermp). if cache mode has been enabled, pci functional description con?uration registers 3-6 sym53c875/875e data manual a read multiple command will be issued on all read cycles, except op code fetches, when the fol- lowing conditions have been met: 1. the clse and ermp bits must be set. 2. the cache line size register must contain a legal burst size value (2, 4, 8, 16, 32, 64, or 128) and that value must be less than or equal to the dmode burst size. 3. the number of bytes to be transferred at the time a cache boundary has been reached must be at least twice the full cache line size. 4. the chip must be aligned to a cache line boundary. when these conditions have been met, the chip will issue a read multiple command instead of a memory read during all pci read cycles. burst size selection the read multiple command reads in multiple cache lines of data in a single bus ownership. the number of cache lines to be read is a multiple of the cache line size as allowed for in the revision 2.1 of the pci speci?ation. the logic will select the largest multiple of the cache line size based on the amount of data to transfer, with the maximum allowable burst size being determined from the dmode burst size bits and ctest 5, bit 2. read multiple with read line enabled when both the read multiple and read line modes have been enabled, the read line com- mand will not be issued if the above conditions are met. instead, a read multiple command will be issued, even though the conditions for read line have been met. if the read multiple mode is enabled and the read line mode has been disabled, read multiple com- mands will still be issued if the read multiple con- ditions are met. unsupported pci commands the sym53c875 does not respond to reserved commands, special cycle, dual address cycle, or interrupt acknowledge commands as a slave. it will never generate these commands as a master. con?uration registers the con?uration registers are accessible only by the system bios during pci con?uration cycles. the lower 128 bytes hold con?uration data while the upper 128 bytes hold the sym53c875 operat- ng registers, which are described in chapter five, ?perating registers. these registers can be accessed by scripts or the host processor, if necessary. note: the con?uration register descriptions provide general information only, to indicate which pci con?uration addresses are supported in the sym53c875. for detailed information, refer to the pci speci?ation. figure 3-1 shows the pci con?uration registers implemented by the sym53c875/875e. all pci-compliant devices, such as the sym53c875, must support the vendor id, device id, command, and status registers. support of other pci-compliant registers is optional. in the sym53c875, registers that are not supported are not writable and will return all zeroes when read. only those registers and bits that are currently supported by the sym53c875 are described in this chapter. for more detailed information on pci registers, please see the pci speci?ation. pci functional description con?uration registers sym53c875/875e data manual 3-7 1 i/o base is supported 2 memory base is supported note: addresses 40h - 7f are not supported for the sym53c875. addresses 48h - 7f are not supported for the sym53c875e. all unsupported registers are not writable and will return all zeroes when read. reserved registers will also return zeroes when read. 3 this register powers up enabled and can be disabled by pull- down resistors on the mad5 pin. 4 if expansion memory is enabled through pull-down resistors on the mad(7-0) bus. 31 16 15 0 device id vendor id = 1000h 00h status command 04h class code rev id 08h not supported header type latency timer cache line size 0ch base address zero (i/o) 1, 10h base address one (memory) 2 , 14h base address two (memory) scripts ram 3 18h not supported 1ch not supported 20h not supported 24h reserved 28h subsystem id subsystem vendor id 2ch expansion rom base address 4 30h reserved capabilities pointer 34h reserved 38h max_lat min_gnt interrupt pin interrupt line 3ch power management capabilities next item pointer capability id 40h data bridge support ext pwr. mgmt. control/status register 44h note: shaded areas are reserved or represent the sym53c875e capabilities. figure 3-1: pci con?uration register map pci functional description con?uration registers 3-8 sym53c875/875e data manual register 00h vendor id read only this ?ld identi?s the manufacturer of the device. the symbios logic vendor id is 1000h. register 02h device id read only this ?ld identi?s the particular device. the sym53c875 device id is 000fh. register 04h command read/write the command register, illustrated in figure 3-2, provides coarse control over a device s ability to generate and respond to pci cycles. when a zero is written to this register, the sym53c875 is logi- cally disconnected from the pci bus for all accesses except con?uration accesses. in the sym53c875, bits 3, 5, 7, and 9 are not implemented. bits 10 through 15 are reserved. bits 15-9 reserved bit 8 serr/ enable this bit enables the serr/ driver. serr/ is disabled when this bit is clear. the default value of this bit is zero. this bit and bit 6 must be set to report address parity errors. bit 7 reserved bit 6 enable parity error response this bit allows the sym53c875 to detect par- ity errors on the pci bus and report these errors to the system. only data parity checking is enabled. the sym53c875 always generates parity for the pci bus. bits 5 reserved bit 4 write and invalidate mode this bit, when set, will cause memory write and invalidate cycles to be issued on the pci bus after certain conditions have been met. for more information on these conditions, refer to the section "memory write and invalidate command". to enable write and invalidate mode, bit 0 in the ctest3 register (operating register set) must also be set. bit 3 reserved bit 2 enable bus mastering this bit controls the sym53c875 s ability to act as a master on the pci bus. a value of zero disables the device from generating pci bus master accesses. a value of one allows the sym53c875 to behave as a bus master. the sym53c875 must be a bus master in order to fetch scripts instructions and transfer data. bit 1 enable memory space this bit controls the sym53c875 s response to memory space accesses. a value of zero dis- ables the device response. a value of one allows the sym53c875 to respond to memory space accesses at the address speci?d by base address one. bit 0 enable i/o space this bit controls the sym53c875 s response to i/o space accesses. a value of zero disables the response. a value of one allows the sym53c875 to respond to i/o space accesses at the address speci?d in base address zero. pci functional description con?uration registers sym53c875/875e data manual 3-9 register 06h status read/write the status register, illustrated in figure 3-3, is used to record status information for pci bus- related events. in the sym53c875, bits 0 through 3 are reserved and bits 5, 6, 7, and 11 are not implemented by the sym53c875. reads to this register behave normally. writes are slightly different in that bits can be cleared, but not set. a bit is reset whenever the register is written, and the data in the corresponding bit location is a one. for instance, to clear bit 15 and not affect any other bits, write the value 8000h to the register. bit 15 detected parity error (from slave) this bit will be set by the sym53c875 when- ever it detects a data parity error, even if parity error handling is disabled. bit 14 signaled system error this bit is set whenever a device asserts the serr/ signal. bit 13 master abort (from master ) this bit should be set by a master device when- ever its transaction (except for special cycle) is terminated with master-abort. all master devices should implement this bit. bit 12 received target abort (from maste r) this bit should be set by a master device when- ever its transaction is terminated with a target abort. all master devices should implement this bit. bit 11 reserved bits 10-9 devsel/ timing these bits encode the timing of devsel/. these are encoded as 00b for fast, 01b for medium, 10b for slow with 11b reserved. these bits are read-only and should indicate the slowest time that a device asserts devsel/ figure 3-2: command register layout 9876543210 serr/ enable not implemented enable parity response not implemented write and invalidate mode not implemented enable bus mastering enable memory space enable i/o space 15 14 13 12 1110 not implemented reserved reserved reserved reserved reserved reserved pci functional description con?uration registers 3-10 sym53c875/875e data manual for any bus command except con?uration read and con?uration write. in the sym53c875, 01b is supported. bit 8 data parity reported this bit is set when the following three condi- tions are met: 1) the bus agent asserted perr/ itself or observed perr/ asserted; 2) the agent setting this bit acted as the bus mas- ter for the operation in which the error occurred; 3) the parity error response bit in the command register is set. bits 7-5 reserved bit 4 new capabilities (nc) this bit applies to the sym53c875e only and is set to indicate the presence of a list of extended capabilities such as pci power man- agement. this bit is read only. bits 3-0 reserved register 08h revision id read only this register speci?s device and revision identi? ers. the value of the sym53c875e is 26h and 04 for the sym53c875. register 09h class code read only this register is used to identify the generic func- tion of the device. the upper byte of this register is a base class code, the middle byte is a subclass code, and the lower byte identi?s a speci? regis- ter-level programming interface. the value of this register is 010000h, which indicates a scsi con- troller. figure 3-3: status register layout 9876543210 data parity reported reserved (not supported) reserved reserved new capabilities reserved reserved reserved reserved 15 14 13 12 1110 devsel timing 00 = fast, 01 = medium, 10 = slow reserved (not supported) received target abort (from master) detected parity error (from slave) signaled system error received master abort (from master) pci functional description con?uration registers sym53c875/875e data manual 3-11 register 0ch cache line size read/write this register speci?s the system cache line size in units of 32-bit words. cache mode is enabled and disabled by the cache line size enable (clse) bit, bit 7 in the dcntl register. setting this bit causes the sym53c875 to align to cache line boundaries before allowing any bursting, except during memory moves in which the read and write addresses are not aligned to a burst size boundary. for more information on this register, see the sec- tion "support for pci cache line size register". register 0dh latency timer read/write the latency timer register speci?s, in units of pci bus clocks, the value of the latency timer for this pci bus master. the sym53c875 supports this timer. all eight bits are writable, allowing latency values of 0-255 pci clocks. use the follow- ing equation to calculate an optimum latency value for the sym53c875: latency = 2 + (burst size * (typical wait states +1)) . values greater than optimum are also acceptable. register 0eh header type read only this register identi?s the layout of bytes 10h through 3fh in con?uration space and also whether or not the device contains multiple func- tions. the value of this register is 00h. register 10h base address zero (i/o) read/write this 32-bit register has bit zero hardwired to one. bit 1 is reserved and must return a zero on all reads, and the other bits are used to map the device into i/o space. register 14h base address one (memory) read/write this register has bit 0 hardwired to zero. for detailed information on the operation of this regis- ter, refer to the pci speci?ation. register 18h ram base address read/write this register holds the memory base address of the 4 kb internal ram. the user can read this regis- ter through the scratchb register in the oper- ating register set when bit 3 of the ctest2 register is set. pci functional description con?uration registers 3-12 sym53c875/875e data manual register 2ch subsystem vendor id (ssvid) read only this register supports subsystem identi?ation, which has a default value of 0000h in the sym53c875 and 1000h in the sym53c875e (see mad bus programming in chapter 4). to write to this register, connect a 4.7 k w resistor between the mad(6) pin and v ss and leave the mad(4) pin unconnected. the mad(6) and mad(4) pins have internal pull-up resistors and are sensed shortly after the deassertion of chip reset. in revisions before rev. g of the sym53c875, the mad(6) and mad(4) pins do not support the ssid and ssvid con?urations, and only values of 0000h can be found in the sub- system data register. register 2eh subsystem id (ssid) read only this register supports subsystem identi?ation, which has a default value of 0000h in the sym53c875 and 1000h in the sym53c875e (see mad bus programming in chapter 4). to write to this register, connect a 4.7 k w resistor between the mad(6) pin and v ss and leave the mad(4) pin unconnected. the mad(6) and mad(4) pins have internal pull-up resistors and are sensed shortly after the deassertion of chip reset. in revisions before rev. g of the sym53c875, the mad(6) and mad(4) pins do not support the ssid and ssvid con?urations, and only values of 0000h can be found in the sub- system data register. register 30h expansion rom base address read/write this four-byte register handles the base address and size information for expansion rom. it func- tions exactly like the base address zero and base address one registers, except that the encoding of the bits is different. the upper 21 bits correspond to the upper 21 bits of the expansion rom base address. the expansion rom enable bit, bit 0, is the only bit de?ed in this register. this bit is used to con- trol whether or not the device accepts accesses to its expansion rom. when the bit is set, address decoding is enabled, and a device can be used with or without an expansion rom depending on the system con?uration. to access the external mem- ory interface, the memory space bit in the com- mand register must also be set. the host system detects the size of the external memory by ?st writing the expansion rom base address register with all ones and then reading back the register. the sym53c875 will respond with zeros in all don t care locations. the ones in the remaining bits represent the binary version of the external memory size. for example, to indicate an external memory size of 32 kb, this register, when written with ones and read back, will return ones in the upper 17 bits. register 34h capability pointer read only this register provides an offset into the function s pci con?uration space for the location of the ?st item in the capabilities linked list. only the sym53c875e sets this register to 40h. the capa- bility pointer replaces the general purpose pin control register in earlier revisions of the sym53c875. pci functional description con?uration registers sym53c875/875e data manual 3-13 register 3ch interrupt line read/write this register is used to communicate interrupt line routing information. post software will write the routing information into this register as it initiates and con?ures the system. the value in this regis- ter tells which input of the system interrupt con- troller(s) the device s interrupt pin has been connected to. values in this register are speci?d by system architecture. register 3dh interrupt pin read only this register tells which interrupt pin the device uses. its value is set to 01h, for the inta/ signal. register 3eh min_gnt read only register 3fh max_lat read only these registers are used to specify the desired set- tings for latency timer values. min_gnt is used to specify how long a burst period the device needs. max_lat is used to specify how often the device needs to gain access to the pci bus. the value speci?d in these registers is in units of 0.25 microseconds. values of zero indicate that the device has no major requirements for the settings of latency timers. the sym53c875 sets the min_gnt register to 11h and the max_lat register to 40h. register 40h capability id read only this register indicates the type of the current data structure (linked list item). the default value for this register is 01h, indicating the power manage- ment data structure. only the sym53c875e sets this register to 01h. register 41h next item pointer read only this register describes the location of the next item in the function s capability list. the default value for this register is 00h, indicating that power man- agement is the last capability in the linked list of extended capabilities. this register applies to the sym53c875e only. pci functional description con?uration registers 3-14 sym53c875/875e data manual register 42h power management capabilities read only this register applies to the sym53c875e only and indicates the power management capabilities. bits 15-11 pme support (pmes) this ?ld is always set to 00000b because the sym53c875e does not provide a pme signal. bit 10 d2 support (d2s) this device does not support the d2 power management state, and this bit is set to zero. bit 9 d1 support (d1s) this device does not support the d1 power management state, and this bit is set to zero. bits 8-6 reserved bit 5 device speci? initialization (dsi) this bit is set to 0 to indicate that the device requires no special initialization before the generic class device driver is able to use it. bit 4 auxiliary power source (aps) because the device does not provide a pme signal, this bit always returns a 0. this indi- cates that no auxiliary power source is required to support the pme signal in the d3cold power management state. bit 3 pme clock (pmec) this bit always returns a zero value because the devices do not provide a pme signal. bits 2-0 version (ver) this ?ld is set to 001b to indicate that the device complies with revision 1.0 of the pci power management interface speci?ation. register 44h power management control/status read/write this register applies to the sym53c875e only and indicates the power management control and status descriptions. bit 15 pme status (pst) the device always returns a zero for this bit, indicating that pme signal generation is not supported from d3cold. bits 14-13 data scale (dscl) this device does not support the data register, therefore this ?ld is always set to 00b. bits 12-9 data select (dslt) this device does not support the data reg- ister, therefore this ?ld is always set to 0000b. bit 8 pme enable (pen) this device always returns a zero for this bit to indicate that pme assertion is disabled. bits 7-2 reserved bits 1-0 power state (pws) this two bit ?ld determines the current power state for the function and is used to set the function to a new power state. the de?ition of the ?ld values are: 00b - d0 01b - reserved 10b - reserved 11b - d3hot pci functional description con?uration registers sym53c875/875e data manual 3-15 register 46h pmcsr bse read only this register applies to the sym53c875e only and can support pci bridge speci? functionality, if required. the default value always returns 00h. register 47h data read only this register applies to the sym53c875e only and provides an optional mechanism for the func- tion to report state-dependent operating data. the sym53c875e returns 00h as the default value. pci functional description con?uration registers 3-16 sym53c875/875e data manual signal descriptions sym53c875/875e data manual 4-1 chapter 4 signal descriptions this chapter presents the sym53c875 pin con?uration and signal de?itions using tables and illustra- tions. figure 4-1 through figure 4-4 are the pin diagrams for all versions of the sym53c875 and figure 4-5 is the functional signal grouping. the pin de?itions are presented in table 4-1 through table 4-12. the sym53c875 is a pin-for-pin replacement for the sym53c825. the decoupling capacitor arrangement shown above is recommended to maximize the bene?s of the internal split ground system. capacitor values between 0.01 and 0.1 m f should provide adequate noise isolation. because of the number of high current drivers on the sym53c875, a multi-layer pc board with power and ground planes is required. figure 4-1: sym53c875 pin diagram ad24 ad25 v ss ad26 ad27 v dd-i ad28 ad29 v ss ad30 ad31 v dd-c req/ gnt/ v ss-c clk rst/ serr/ big_lit/ mce/ moe/ mwe/ v dd mas0/ mas1/ sdir12 sdir13 v ss sdir14 sdir15 sdirp1 sdir0 v dd sdir1 sdir2 sdir3 sdir4 v ss sdir5 sdir6 c_be3/ idsel ad23 v ss ad22 ad21 ad20 v dd-i ad19 v ss ad18 ad17 ad16 v ss c_be2/ frame/ irdy/ v ss trdy/ devsel/ v dd-i stop/ v ss perr/ par c_be1/ v ss ad15 ad14 ad13 v ss ad12 v dd-i ad11 ad10 ad9 v ss ad8 c_be0/ ad7 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 sym53c875 pci-scsi i/o processor 160-pin quad flat pack (top view) ad6 v ss ad5 ad4 v dd-i ad3 ad2 v ss ad1 ad0 v dd-c irq/ gpio0_fetch/ gpio1_master/ v ss-c sclk testin mac/_testout mad7 mad6 mad5 mad4 v dd mad3 mad2 mad1 mad0 gpio2_mas2/ v ss gpio3 gpio4 diffsens tgs v dd igs seldir rstdir bsydir v ss sdir11 sdir7 sdirp0 v dd sd12/ sd13/ sd14/ v ss-s sd15/ sdp1/ sd0/ sd1/ v ss-s sd2/ sd3/ sd4/ sd5/ v ss-s sd6/ sd7/ sdp0/ satn/ v ss-s sbsy/ sack/ srst/ smsg/ ssel/ v ss-s sc_d/ sreq/ si_o/ sd8/ v ss-s sd9/ sd10/ sd11/ v dd sdir8 sdir9 sdir10 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 signal descriptions 4-2 sym53c875/875e data manual the decoupling capacitor arrangement shown above is recommended to maximize the bene?s of the internal split ground system. capacitor values between 0.01 and 0.1 m f should provide adequate noise isolation. because of the number of high current drivers on the sym53c875, a multi-layer pc board with power and ground planes is required. figure 4-2: sym53c875j pin diagram ad24 ad25 v ss ad26 ad27 v dd-i ad28 ad29 v ss ad30 ad31 v dd-c req/ gnt/ v ss-c clk rst/ serr/ tdi mce/ moe/ mwe/ v dd mas0/ mas1/ sdir12 sdir13 v ss sdir14 sdir15 tck sdir0 v dd sdir1 sdir2 sdir3 sdir4 v ss sdir5 sdir6 c_be3/ idsel ad23 v ss ad22 ad21 ad20 v dd-i ad19 v ss ad18 ad17 ad16 v ss c_be2/ frame/ irdy/ v ss trdy/ devsel/ v dd-i stop/ v ss perr/ par c_be1/ v ss ad15 ad14 ad13 v ss ad12 v dd-i ad11 ad10 ad9 v ss ad8 c_be0/ ad7 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 sym53c875j (jtag) pci-scsi i/o processor 160-pin quad flat pack (top view) ad6 v ss ad5 ad4 v dd-i ad3 ad2 v ss ad1 ad0 v dd-c irq/ gpio0_fetch/ gpio1_master/ v ss-c sclk tms tdo mad7 mad6 mad5 mad4 v dd mad3 mad2 mad1 mad0 gpio2_mas2/ v ss gpio3 gpio4 diffsens tgs v dd igs seldir rstdir bsydir v ss sdir11 sdir7 sdirp0 v dd sd12/ sd13/ sd14/ v ss-s sd15/ sdp1/ sd0/ sd1/ v ss-s sd2/ sd3/ sd4/ sd5/ v ss-s sd6/ sd7/ sdp0/ satn/ v ss-s sbsy/ sack/ srst/ smsg/ ssel/ v ss-s sc_d/ sreq/ si_o/ sd8/ v ss-s sd9/ sd10/ sd11/ v dd sdir8 sdir9 sdir10 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 signal descriptions sym53c875/875e data manual 4-3 the decoupling capacitor arrangement shown above is recommended to maximize the bene?s of the internal split ground system. capacitor values between 0.01 and 0.1 m f should provide adequate noise isolation. because of the number of high current drivers on the sym53c875, a multi-layer pc board with power and ground planes is required. figure 4-3: sym53c875n pin diagram 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 208 207 206 205 204 203 202 201 200 199 198 197 196 195 194 193 192 191 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 160 159 158 157 pci-scsi i/o processor 208-pin quad flat pack 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 sym53c875n 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 nc nc nc nc nc c_be3/ idsel bytepar2 ad23 v ss ad22 ad21 ad20 v dd-i ad19 v ss ad18 ad17 ad16 v ss c_be2/ frame/ irdy/ v ss trdy/ devsel/ v dd-i stop/ vss perr/ par c_be1/ v ss bytepar1 ad15 ad14 ad13 v ss ad12 v dd-i ad11 ad10 ad9 v ss ad8 c_be0/ bytepar0 ad7 nc nc nc nc nc nc nc nc nc ad6 v ss ad5 ad4 v dd-i ad3 ad2 v ss ad1 ad0 v dd-c irq/ gpio0_fetch gpio1_master/ v ss-c sclk testin tms mac/_testout td0 mad7 mad6 mad5 mad4 v dd mad3 mad2 mad1 mad0 gpio2_mas2/ v ss gpio3 gpio4 diffsens tgs v dd igs seldir rstdir bsydir v ss sdir11 nc nc nc nc nc nc nc nc nc nc nc sdir7 sdirp0 v dd sd12/ sd13 sd14/ v ss-s sd15/ sdp1/ sd0/ sd1/ v ss-s sd2/ sd3/ sd4/ sd5/ v ss-s sd6/ sd7/ sdp0/ satn/ v ss-s sbsy/ sack/ srst/ smsg/ ssel/ v ss-s sc_d/ sreq/ si_o/ sd8/ v ss-s sd9/ sd10/ sd11/ v dd sdir8 sdir9 sdir10 nc nc nc nc nc nc nc nc nc nc ad24 ad25 v ss ad26 ad27 v dd-i ad28 ad29 v ss ad30 ad31 bytepar3 v dd-c req/ gnt/ v ss-c clk rst/ serr/ tdi big_lit/ mce/ moe/ mwe/ v dd mas0/ mas1/ sdir12 sdir13 v ss sdir14 sdir15 tck sdirp1 sdir0 v dd sdir1 sdir2 sdir3 sdir4 v ss sdir5 sdir6 nc nc nc nc nc signal descriptions 4-4 sym53c875/875e data manual figure 4-4: sym53c875jb pin diagram (top view) c_be3/ ad24 ad27 ad29 v dd -c clk mce/ mas0/ v ss tck sdir2 sdir5 sdir6 idsel nc v ss ad28 ad31 rst/ moe/ mas1/ sdir14 v dd v ss nc sdir7 ad21 ad23 v ss ad26 ad30 v ss -c mwe/ sdir12 sdir15 sdir1 sdir4 v dd -s sd13/ v ss v dd-i ad20 ad25 v dd-i gnt/ tdi sdir13 sdir0 sdirp0 sd12/ v ss -s sd15/ ad16 ad17 ad18 ad19 ad22 req/ serr/ v dd sdir3 sd14/ sd0/ sd1/ v ss -s irdy/ frame/ c_be2/ v ss v ss v ss nc sdp1/ sd2/ sd3/ sd4/ v ss -s sd5/ v dd- devsel/ trdy/ stop/ v ss nc nc nc sd6/ sd7/ v ss -s satn/ sdp0/ par perr/ c_be1/ v ss ad15 ad12 nc diffsens sbsy/ ssel/ smsg/ srst/ sack/ ad14 ad13 v ss ad10 v dd-i td0 v dd gpio2_mas2/ sd11/ sd8/ sreq/ sc_d/ v ss -s v dd-i ad11 v ss c_be0/ ad1 gpio1_ mad4 mad0 igs v ss sd9/ v ss -s si_o/ ad9 ad8 ad4 ad2 v dd -c v ss -c mad7 mad1 gpio4 rstdir v dd -s sdir8 sd10/ ad7 nc ad5 v ss irq/ sclk mad6 mad3 gpio3 v dd bsydir nc sdir9 ad6 v ss ad3 ad0 gpio_fetch/ tms mad5 mad2 v ss tgs seldir sdir11 sdir10 note: pins f7, g6, g7, g8,and h7 are connected to the die pad. 1 2 3 4 5 6 7 8 9 10 11 12 13 master/ a b c d e f g h j k l m n signal descriptions sym53c875/875e data manual 4-5 the pci/scsi pin de?itions are organized into the following functional groups: system, address/data, interface control, arbitration, error reporting, scsi, and optional interface. a slash (/) at the end of the signal name indicates that the active state occurs when the signal is at a low voltage. when the slash is absent, the signal is active at a high voltage. there are four signal type de?itions: i input, a standard input-only signal o totem pole output, a standard output driver t/s tri-state, a bi-directional, tri-state input/output pin s/t/s sustained tri-state, an active low tri-state signal owned and driven by one and only one agent at a time table 4-1: sym53c875, sym53c875j, sym53c875e, and sym53c875je power and ground pins symbol pin no. description v ss 4, 10, 14, 18, 23, 27, 31, 37, 42, 48, 69, 79, 123, 133, 152, 158 ground to the pci i/o pins v dd 63, 74, 84, 118, 128, 138 power supplies to the standard i/o pins v dd-i* 8, 21, 33, 45, 155 v dd pad for pci i/o pins v ss -s 88, 93, 99, 104, 109, 114 ground to the scsi bus i/o pins v ss -c 55, 146 ground to the internal logic core v dd -c 51, 149 power supplies to the internal logic core *these pins can accept a v dd source of 3.3 or 5 volts. all other v dd pins must be supplied 5 volts. signal descriptions sym53c875n power and ground pins 4-6 sym53c875/875e data manual table 4-2: sym53c875n power and ground pins symbol pin no. description v ss 10, 16, 20, 24, 29, 33, 38, 44, 59, 65, 88, 98, 164, 175, 196, 202 ground to the pci i/o pins v dd 82, 93, 148, 169, 180 power supplies to the standard i/o pins v dd-i* 14, 27, 62, 199 v dd pad for pci i/o pins v ss -s 118, 123, 129, 134, 139, 144 ground to the scsi bus i/o pins v ss -c 72, 189 ground to the internal logic core v dd -c 68, 192 power supplies to the internal logic core *these pins can accept a v dd source of 3.3 or 5 volts. all other v dd pins must be supplied 5 volts. table 4-3: sym53c875jb and SYM53C875JBE power and ground pins symbol pin no. description v ss a9, b3, b11, c3, d1, f4, f5, f6, g5, h4, j3, k3, k10, m4, n2, n9 ground to the pci i/o pins v dd b10, e8, j7, m10 power supplies to the standard i/o pins v dd-i* d2, d5, g1, j5, k1 v dd pad for pci i/o pins v ss -s d12, e13, f12, g11, j13, k12 ground to the scsi bus i/o pins v dd -s c12, l11 power supplies to the scsi bus i/o pins v ss -c l6, c6 ground to the internal logic core v dd -c a5, l5 power supplies to the internal logic core *these pins can accept a v dd source of 3.3 or 5 volts. all other v dd pins must be supplied 5 volts. signal descriptions sym53c875jb and SYM53C875JBE power and ground pins sym53c875/875e data manual 4-7 figure 4-5: sym53c875 functional signal grouping clk rst ad31-0 c_be/3-0 par frame/ trdy/ irdy/ stop/ devsel/ idsel req/ gnt/ serr/ perr/ bsydir rstdir seldir tgs igs sdirp1-0 sdir15-0 sclk sd15-0 sdp1-0 sctrl/ gpio3 gpio0_fetch/ gpio1_master/ mac/_testout irq/ big_lit/ diffsens testin/ gpio4 gpio2_mas2/ mwe/ mce/ moe/ mas0/ mas1/ mad7-0 address and data system interface control arbitration error reporting scsi additional interface device local memory bus and control signal descriptions system pins 4-8 sym53c875/875e data manual table 4-4: system pins symbol pin no. 53c875, 53c875j/ 53c875n 53c875jb type description clk 145/188/a6 i clock provides timing for all transactions on the pci bus and is an input to every pci device. all other pci signals are sam- pled on the rising edge of clk, and other timing parameters are de?ed with respect to this edge. this clock can option- ally be used as the scsi core clock; however, the sym/53c875 will not be able to achieve fast scsi transfer rates. rst/ 144/187/b6 i reset forces the pci sequencer of each device to a known state. all t/s and s/t/s signals are forced to a high impedance state, and all internal logic is reset. the rst/ input is syn- chronized internally to the rising edge of clk. the clk input must be active while rst/ is active to properly reset the device. signal descriptions address and data pins sym53c875/875e data manual 4-9 table 4-5: address and data pins symbol pin no. type description ad(31-0) 53c875 53c875j:15 0, 151, 153, 154, 156, 157, 159, 160, 3, 5, 6, 7, 9, 11, 12, 13, 28, 29, 30, 32, 34, 35, 36, 38, 40, 41, 43, 44, 46, 47, 49, 50 53c875n: 194, 195, 197, 198, 200, 201, 203, 204, 9, 11, 12, 13, 15, 17, 18, 19, 35, 36, 37, 39, 41, 42, 43, 45, 48, 58, 60, 61, 63, 64, 66, 67 53c875jb: b5, c5, a4, b4, a3, c4, d4, a2, c2, e5, c1, d3, e4, e3, e2, e1, h5, j1, j2, h6, k2, j4, l1, l2, m1, n1, m3, l3, n3, l4, k5, n4 t/s physical longword address and data are multiplexed on the same pci pins. during the ?st clock of a transaction, ad(31-0) contain a physical address. during subsequent clocks, ad(31-0) contain data. a bus transaction consists of an address phase, followed by one or more data phases. pci supports both read and write bursts. ad(7-0) de?e the least signi?ant byte, and ad(31-24) de?e the most signi?ant byte. signal descriptions address and data pins 4-10 sym53c875/875e data manual c_be(3-0)/ 53c875 53c875j:1, 15, 26, 39 53c875n: 6, 21, 32, 46 53c875jb: a1,f3, h3, k4 t/s bus command and byte enables are multiplexed on the same pci pins. during the address phase of a transaction, c_be(3-0)/ de?e the bus command. during the data phase, c_be(3-0)/ are used as byte enables. the byte enables deter- mine which byte lanes carry meaningful data. c_be(0)/ applies to byte 0, and c_be(3)/ to byte 3. par 53c875,53 c875j: 25 53c875n: 31 53c875jb: h1 t/s parity is the even parity bit that protects the ad(31-0) and c_be(3-0)/ lines. during address phase, both the address and command bits are covered. during data phase, both data and byte enables are covered. bytepar3-0 (sym53c875 n only) 193, 8, 34, 47 t/s when the pci byte parity pins are enabled, the sym53c875n checks each byte of incoming data on the pci bus against its corresponding parity line, in addition to the normal parity checking against the pci par signal. this extra parity checking/generation is not register selectable; it is always enabled for the sym53c875n. a parity error on any byte parity pin for pci master read or slave write operations will cause a fatal dma interrupt; scripts will stop run- ning. this interrupt can be masked with the extended byte parity enable bit, bit 1 of the dien register. table 4-5: address and data pins (continued) symbol pin no. type description signal descriptions interface control pins sym53c875/875e data manual 4-11 table 4-6: interface control pins symbol pin no. 53c875, 53c875j/ 53c875n/ 53c875jb type description frame/ 16/22/f2 s/t/s cycle frame is driven by the current master to indicate the begin- ning and duration of an access. frame/ is asserted to indicate a bus transaction is beginning. while frame/ is asserted, data trans- fers continue. when frame/ is deasserted, the transaction is in the ?al data phase or the bus is idle. trdy/ 19/25/g3 s/t/s target ready indicates the target agent s (selected device s) ability to complete the current data phase of the transaction. trdy/ is used with irdy/. a data phase is completed on any clock when both trdy/ and irdy/ are sampled asserted. during a read, trdy/ indicates that valid data is present on ad(31-0). during a write, it indicates the target is prepared to accept data. wait cycles are inserted until both irdy/ and trdy/ are asserted together. irdy/ 17/23/f1 s/t/s initiator ready indicates the initiating agent s (bus master s) ability to complete the current data phase of the transaction. this signal is used with trdy/. a data phase is completed on any clock when both irdy/ and trdy/ are sampled asserted. during a write, irdy/ indicates that valid data is present on ad(31-0). during a read, it indicates the master is prepared to accept data. wait cycles are inserted until both irdy/ and trdy/ are asserted together. stop/ 22/28/g4 s/t/s stop indicates that the selected target is requesting the master to stop the current transaction. devsel/ 20/26/g2 s/t/s device select indicates that the driving device has decoded its address as the target of the current access. as an input, it indicates to a master whether any device on the bus has been selected. idsel 2/7/b1 i initialization device select is used as a chip select in place of the upper 24 address lines during con?uration read and write transac- tions. signal descriptions arbitration pins 4-12 sym53c875/875e data manual table 4-7: arbitration pins symbol pin no. 53c875, 53c875j/ 53c875n/ 53c875jb type description req/ 148/191/e6 o request indicates to the arbiter that this agent desires use of the pci bus. this is a point-to-point signal. every master has its own req/. gnt/ 147/190/d6 i grant indicates to the agent that access to the pci bus has been granted. this is a point-to-point signal. every master has its own gnt/. table 4-8: error reporting pins symbol pin no. 53c875, 53c875j/ 53c875n/ 53c875jb type description perr/ 24/30/h2 s/t/s parity error may be pulsed active by an agent that detects a data parity error. perr/ can be used by any agent to signal data corrup- tions. serr/ 143/186/e7 o this open drain output pin is used to report address parity errors. on detection of a perr/ pulse, the central resource may generate a non-maskable interrupt to the host cpu, which often implies the system will be unable to continue operation once error processing is complete. signal descriptions scsi pins sym53c875/875e data manual 4-13 table 4-9: scsi pins symbol pin no. 53c875, 53c875j/ 53c875n/ 53c875jb type description sclk 56/73/m6 i sclk is used to derive all scsi-related timings. the speed of this clock is determined by the application s requirements; in some applications sclk may be sourced internally from the pci bus clock (clk). if sclk is internally sourced, then the sclk pin should be tied low. sd(15-0)/, sdp(1-0)/ 53c875, 53c875j:113, 115, 116, 117, 85, 86, 87, 89, 102, 103, 105, 106, 107, 108, 110, 111, 112, 101 53c875n: 143, 145, 146, 147, 115, 116, 117, 119, 132, 133, 135, 136, 137, 138, 140, 141, 142, 131 53c875jb: d13, e10, c13, d11, j9, l13 k11, j10, g10, g9, f13, f11, f10, f9, e12, e11, f8, g13 i/o scsi data includes the following data lines and parity signals: sd(15-0)/ (16-bit scsi data bus), and sdp(1-0)/(scsi data par- ity bits). sctrl/ 53c875, 53c875j: 92, 90, 95, 91, 97, 98, 100, 96, 94 53c875n: 122, 120, 125, 121, 127, 128, 130, 126, 124 53c875jb: j12, k13, h11, j11, h13, h9, g12, h12, h10 i/o scsi control includes the following signals: sc_d/ scsi phase line, command/data si_o/ scsi phase line, input/output smsg/ scsi phase line, message sreq/ data handshake signal from target device sack/ data handshake signal from initiator device sbsy/ scsi bus arbitration signal, busy satn/ scsi attention, the initiator is requesting a message out phase srst/ scsi bus reset ssel/ scsi bus arbitration signal, select device signal descriptions scsi pins 4-14 sym53c875/875e data manual sdir(15-0) 53c875, 53c875j: 131, 132, 134, 135, 80, 81, 82, 83, 120, 121, 122, 124, 125, 126, 127, 129 53c875n: 173, 174, 176, 177, 99, 111, 112, 113, 150, 162, 163, 165, 166, 167, 168, 170 53c875jb: c9, b9, d8, c8, n12, n13, m13, l12, b13, a13, a12, c11, e9, a11, c10, d9 o driver direction control for scsi data lines sdirp(1-0) (sdirp1 not available on 53c875j, 53c875jb) 130, 119;na, 119/171, 149 / na,d10 o driver direction control for scsi parity signals. in the sym53c875j and sym53c875jb, this pin is replaced by the tck jtag signal. if the device is used in a wide differential sys- tem, use the sdirp0 pin to control the direction of the differential transceiver for both the sp0 and sp1 signals. the sdirp0 signal is capable of driving both direction inputs from a transceiver. seldir 76/95/n11 o driver enable control for scsi sel/ signal rstdir 77/96/l10 o driver enable control for scsi rst/ signal bsydir 78/97/m11 o driver enable control for scsi bsy/ signal igs 75/94/k9 o direction control for initiator driver group tgs 73/92/n10 o direction control for target driver group table 4-9: scsi pins (continued) symbol pin no. 53c875, 53c875j/ 53c875n/ 53c875jb type description signal descriptions additional interface pins sym53c875/875e data manual 4-15 table 4-10: additional interface pins symbol pin no. 53c875, 53c875j/ 53c875n/53c875jb type description testin (not avail- able on 53c875j,53 c875jb) 57, na/74/na i test in. when this pin is driven low, the sym53c875 connects all inputs and outputs to an ?nd tree. the scsi control signals and data lines are not connected to the ?nd tree. the output of the ?nd tree is connected to the test out pin. this allows man- ufacturers to verify chip connectivity and determine exactly which pins are not properly attached. when the testin pin is driven low, internal pull-ups are enabled on all input, output, and bidirec- tional pins, all outputs and bidirectional signals will be tri-stated, and the mac/_testout pin will be enabled. connectivity can be tested by driving one of the sym53c875 pins low. the mac/ _testout pin should respond by also driving low. gpio0_ fetch/ 53/70/n5 i/o general purpose i/o pin. optionally, when driven low, this pin indicates that the next bus request will be for an op code fetch. this pin powers up as a general purpose input. this pin has two speci? purposes in the symbios sdms software. sdms uses it to toggle scsi device leds, turning on the led whenever the sym53c875 is on the scsi bus. sdms drives this pin low to turn on the led, or drives it high to turn off the led. this signal can also be used as data i/o for serial eeprom access. in this case it is used with the gpio0 pin, which serves as a clock, and the pin can be controlled from pci con?uration register 35h or observed from the gpreg operating register, at address 07h. gpio1_ master/ 54/71/k6 i/o general purpose i/o pin. optionally, when driven low, indicates that the sym53c875 is bus master. this pin powers up as a gen- eral purpose input. symbios sdms software supports use of this signal in serial eeprom applications, when enabled, in combination with the gpio0 pin. when this signal is used as a clock for serial eeprom access, the gpio1 pin serves as data, and the pin is controlled from pci con?uration register 35h. gpio4-3 71, 70/90, 89/l9, m9 i/o general purpose i/o pins. gpio4 powers up as an output. it can be used as the enable line for v pp , the 12 volt power supply to the external ?sh memory interface. gpio3 powers up as an input. symbios sdms software uses gpio3 to detect a differential board. if the pin is pulled low externally, the board will be con?- ured by sdms as a differential board. if it is pulled high or left ?ating, sdms will con?ure it as a single-ended board. the sym- bios pci to scsi host adapters use the gpio4 pin in the process of ?shing a new sdms rom. signal descriptions additional interface pins 4-16 sym53c875/875e data manual diffsens 72/91/h8 i the differential sense pin detects the presence of a single-ended device on a differential system. when external differential trans- ceivers are used and a zero is detected on this pin, all chip scsi outputs will be tri-stated to avoid damage to the transceivers. this pin should be tied high during single-ended operation. the normal value of this pin is 1. mac/_ testout (not avail- able on 53c875,53c 875jb) 58, na/76/na t/s memory access control. this pin can be programmed to indicate local or system memory accesses (non-pci applications). it is also used to test the connectivity of the sym53c875 signals using an ?nd tree scheme. the mac/_testout pin is only driven as the test out function when the testin/ pin is driven low. irq/ 52/69/m5 o interrupt. this signal, when asserted low, indicates that an inter- rupting condition has occurred and that service is required from the host cpu. the output drive of this pin is programmed as either open drain with an internal weak pull-up or, optionally, as a totem pole driver. refer to the description of dcntl register, bit 3, for additional information. big_lit/ (not avail- able on 53c875j,53 c875jb) 142, na/184/na i big_little endian select. when this pin is driven low, the sym53c875 will route the ?st byte of an aligned scsi to pci transfer to byte lane zero of the pci bus and subsequent bytes received will be routed to ascending lanes. an aligned pci to scsi transfer will route pci byte lane zero onto the scsi bus ?st, and transfer ascending byte lanes in order. when this pin is driven high, the sym53c875 will route the ?st byte of an aligned scsi-to- pci transfer to byte lane three of the pci bus and subsequent bytes received will be routed to descending lanes. an aligned pci- to-scsi transfer will route pci byte lane three onto the scsi bus ?st and transfer descending byte lanes in order. this mode of operation also applies to the external memory interface. when this pin is driven in little endian mode and the chip is performing a read from external memory, the byte of data accessed at location 00000h will be routed to pci byte lane zero and the data accessed at location 00003h will be routed to pci byte lane three. when the chip is performing a write to ?sh memory, pci byte lane zero will be routed to location 00000h and ascending byte lanes will be routed to subsequent memory locations. when this pin is driven in big endian mode and the chip is performing a read from external memory, the byte of data accessed at location 00000h will be routed to pci byte lane three and the data accessed at location 00003h will be routed to byte lane zero. when the chip is perform- ing a write to ?sh memory, pci byte lane three will be routed to location 00000h and descending byte lanes will be routed to subse- quent memory locations. table 4-10: additional interface pins (continued) symbol pin no. 53c875, 53c875j/ 53c875n/53c875jb type description signal descriptions external memory interface pins sym53c875/875e data manual 4-17 table 4-11: external memory interface pins symbol pin no. 53c875, 53c875j/ 53c875n/53c875jb type description mas0/ 137/179/a8 o memory address strobe 0. this pin is used to latch in the least sig- ni?ant address byte of an external eprom or ?sh memory. since the sym53c875 moves addresses eight bits at a time, this pin connects to the clock of an external bank of ?p-?ps which are used to assemble up to a 20-bit address for the external memory. mas1/ 136/178/b8 o memory address strobe 1. this pin is used to latch in the address byte corresponding to address bits 15-8 of an external eprom or ?sh memory. since the sym53c875 moves addresses eight bits at a time, this pin connects to the clock of an external bank of ?p- ?ps which assemble up to a 20-bit address for the external mem- ory. mad7-0 53c875, sym53c875e, sym53c875j, sym53c875je: 59, 60, 61, 62, 64, 65, 66, 67 59, 60, 61, 62, 64, 65, 66, 67 sym53c875n: 78, 79, 80, 81, 83, 84, 85, 86 sym53c875jb, SYM53C875JBE: l7, m7, n7, k7, m8, n8, l8, k8 i/o memory address/data bus. this bus is used in conjunction with the memory address strobe pins and external address latches to assemble up to a 20-bit address for an external eprom or ?sh memory. this bus will put out the most signi?ant byte ?st and ?ish with the least signi?ant bits. it is also used to write data to a ?sh memory or read data into the chip from external eprom/ ?sh memory. see mad bus programming for more details. mwe/ 139/181/c7 o memory write enable. this pin is used as a write enable signal to an external ?sh memory. moe/ 140/182/b7 o memory output enable. this pin is used as an output enable sig- nal to an external eprom or ?sh memory during read opera- tions. mce/ 141/183/a7 o memory chip enable. this pin is used as a chip enable signal to an external eprom or ?sh memory device gpio2_ mas2/ 68 /87/j8 i/o general purpose i/o pin. optionally, this pin is used as a memory address strobe 2 if an external memory with more than 16 bits of addressing is speci?d by the pull-down resistors at power up and bit 0 in the expansion rom base address register is set. signal descriptions jtag pins sym53c875j/sym53c875n/53c875jb only) 4-18 sym53c875/875e data manual table 4-12: jtag pins sym53c875j/sym 53c875n/53c875jb only) symbol pin no. 53c875j/53c875n/ 53c875jb type description tck 130/172/a10 test clock pin for jtag boundary scan. tms 57/75/n6 test mode select pin for jtag boundary scan. tdi 142/185/d7 test data in pin for jtag boundary scan. tdo 58/77/j6 test data out pin for jtag boundary scan. signal descriptions mad bus programming sym53c875/875e data manual 4-19 mad bus programming the mad(7-0) pins, in addition to serving as the address/data bus for the local memory interface, are also used to program power-up options for the chip. a particular option is programmed by connecting a 4.7k w resistor between the appropriate mad(x) pin and vss. the pull-down resistors require that hc or hct external components are used for the memory interface. n mad(7) has no functionality. do not place a pull-down resistor on this pin. n mad(6) subsystem data con?uration. please refer to the tables below for the different con?urations. n mad(5) scripts ram disable. connecting a 4.7 k w resistor between mad(5) and vss disables scripts ram. n mad(4) subsystem data con?uration. please refer to the tables below for the different con?urations. note: the chip revisions before revision g of the sym53c875 (pci rev id 0x04) do not support different subsystem data con?urations. the ssid and ssvid registers are hard wired to zero values. table 4-13: subsystem data con?uration table for the sym53c875e (pci rev id 0x26) mode mad pins offset normal 4-hi, 6-hi read/write 4-hi, 6-lo reserved 4-lo, 6-hi symbios, inc. 4-lo, 6-lo vendor id 00h 1000h 1000h - 1000h device id 02h 000fh 000fh - 000fh subsystem vendor id 2ch 1000h 0000h - 0000h subsystem id 2eh 1000h 0000h - 0000h table 4-14: subsystem data con?uration table for the sym53c875 (pci rev id 0x04), revision g only mode mad pins offset normal 4-hi, 6-hi read/write 4-hi, 6-lo reserved 4-lo, 6-hi symbios, inc. 4-lo, 6-lo vendor id 00h 1000h 1000h - 1000h device id 02h 000fh 000fh - 000fh subsystem vendor id 2ch 0000h 0000h - 1000h subsystem id 2eh 0000h 0000h - 1000h signal descriptions external memory support 4-20 sym53c875/875e data manual n the mad(3-1) pins are used to set the size of the external expansion rom device attached. encoding for these pins are listed in the following table. n the mad(0) is the slow rom pin. when pulled down, it enables two extra clock cycles of data access time to allow use of slower memory devices. n all mad pins have internal pull-up resistors. table 4-15: external memory support mad(3-1) available memory space 000 16 kb 001 32 kb 010 64 kb 011 128 kb 100 256 kb 101 512 kb 110 1024 kb 111 no external memory present scsi operating registers sym53c875/875e data manual 5-1 chapter 5 scsi operating registers this section contains descriptions of all sym53c875 operating registers. table 5-1 sum- marizes the sym53c875 operating register set. figure 5-1, the register map, lists registers by oper- ating and configuration addresses. the terms ?et? and ?ssert?are used to refer to bits that are pro- grammed to a binary one. similarly, the terms ?eassert,??lear,?and ?eset?are used to refer to bits that are programmed to a binary zero. any bits marked as reserved should always be written to ze- ro; mask all information read from them. reserved bit functions may be changed at any time. unless otherwise indicated, all bits in registers are active high, that is, the feature is enabled by setting the bit. the bottom row of every register diagram shows the default register values, which are enabled after the chip is powered on or reset. note: the only register that the host cpu can access while the sym53c875 is executing scripts is the istat register; attempts to access other registers will interfere with the operation of the chip. however, all operating registers are accessible with scripts. all read data is synchronized and stable when presented to the pci bus. note: the sym53c875 cannot fetch scripts instructions from the operating register space. instructions must be fetched from system memory or the internal scripts ram. table 5-1: operating register addresses and descriptions memory or i/o address con? memory or i/o read/write label description 00 80 r/w scntl0 scsi control 0 01 81 r/w scntl1 scsi control 1 02 82 r/w scntl2 scsi control 2 03 83 r/w scntl3 scsi control 3 04 84 r/w scid scsi chip id 05 85 r/w sxfer scsi transfer 06 86 r/w sdid scsi destination id 07 87 r/w gpreg general purpose bits 08 88 r/w sfbr scsi first byte received 09 89 r/w socl scsi output control latch 0a 8a r ssid scsi selector id 0b 8b r/w sbcl scsi bus control lines 0c 8c r dstat dma status 0d 8d r sstat0 scsi status 0 scsi operating registers 5-2 sym53c875/875e data manual 0e 8e r sstat1 scsi status 1 0f 8f r sstat2 scsi status 2 10-13 90-93 r/w dsa data structure address 14 94 r/w istat interrupt status 18 98 r/w ctest0 reserved 19 99 r/w ctest1 chip test 1 1a 9a r ctest2 chip test 2 1b 9b r ctest3 chip test 3 1c-1f 9c-9f r/w temp temporary register 20 a0 r/w dfifo dma fifo 21 a1 r/w ctest4 chip test 4 22 a2 r/w ctest5 chip text 5 23 a3 r/w ctest6 chip test 6 24-26 a4-a6 r/w dbc dma byte counter 27 a7 r/w dcmd dma command 28-2b a8-ab r/w dnad dma next address for data 2c-2f ac-af r/w dsp dma scripts pointer 30-33 b0-b3 r/w dsps dma scripts pointer save 34-37 b4-b7 r/w scratcha general purpose scratch pad a 38 b8 r/w dmode dma mode 39 b9 r/w dien dma interrupt enable 3a ba r/w sbr scratch byte register 3b bb r/w dcntl dma control 3c-3f bc-bf r adder sum output of internal adder 40 c0 r/w sien0 scsi interrupt enable 0 41 c1 r/w sien1 scsi interrupt enable 1 42 c2 r sist0 scsi interrupt status 0 43 c3 r sist1 scsi interrupt status 1 44 c4 r/w slpar scsi longitudinal parity 45 c5 r swide scsi wide residue data 46 c6 r/w macntl memory access control 47 c7 r/w gpcntl general purpose control 48 c8 r/w stime0 scsi timer 0 49 c9 r/w stime1 scsi timer 1 table 5-1: operating register addresses and descriptions (continued) memory or i/o address con? memory or i/o read/write label description scsi operating registers sym53c875/875e data manual 5-3 4a ca r/w respid0 response id 0 4b cb r/w respid1 response id 1 4c cc r stest0 scsi test 0 4d cd r stest1 scsi test 1 4e ce r/w stest2 scsi test 2 4f cf r/w stest3 scsi test 3 50-51 d0-d1 r sidl scsi input data latch 52-53 d2-d3 reserved 54-55 d4-d5 r/w sodl scsi output data latch 56-57 d6-d7 reserved 58-59 d8-d9 r sbdl scsi bus data lines 5a-5b da-db reserved 5c-5f dc-df r/w scratchb general purpose scratch pad b 60-7c e0-ff r/w scratchc-j general purpose scratch pad c-j table 5-1: operating register addresses and descriptions (continued) memory or i/o address con? memory or i/o read/write label description scsi operating registers 5-4 sym53c875/875e data manual . mem i/o con? scntl3 scntl2 scntl1 scntl0 00 80 gpreg sdid sxfer scid 04 84 sbcl ssid socl sfbr 08 88 sstat2 sstat1 sstat0 dstat 0c 8c dsa 10 90 reserved istat 14 94 ctest3 ctest2 ctest1 reserved 18 98 temp 1c 9c ctest6 ctest5 ctest4 dfifo 20 a0 dcmd dbc 24 a4 dnad 28 a8 dsp 2c ac dsps 30 b0 scratch a 34 b4 dcntl sbr dien dmode 38 b8 adder 3c bc sist1 sist0 sien1 sien0 40 c0 gpcntl macntl swide slpar 44 c4 respid1 respid0 stime1 stime0 48 c8 stest3 stest2 stest1 stest0 4c cc reserved sidl 50 d0 reserved sodl 54 d4 reserved sbdl 58 d8 scratch b 5c dc scratchc 60 e0 scratchd 64 e4 scratche 68 e8 scratchf 6c ec scratchg 70 f0 scratchh 74 f4 scratchi 78 f8 scratchj 7c fc figure 5-1: sym53c875 register address map scsi operating registers sym53c875/875e data manual 5-5 register 00 (80) scsi control zero (scntl0) read/write bit 7 arb1 (arbitration mode bit 1) bit 6 arb0 (arbitration mode bit 0) simple arbitration 1. the sym53c875 waits for a bus free condition to occur. 2. it asserts sbsy/ and its scsi id (contained in the scid register) onto the scsi bus. if the ssel/ signal is asserted by another scsi device, the sym53c875 will deassert sbsy/, deassert its id, and set the lost arbitration bit (bit 3) in the sstat0 register. 3. after an arbitration delay, the cpu should read the sbdl register to check if a higher priority scsi id is present. if no higher priority id bit is set, and the lost arbitration bit is not set, the sym53c875 has won arbitration. 4. once the sym53c875 has won arbitration, ssel/ must be asserted via the socl for a bus clear plus a bus settle delay (1.2 m s) before a low level selection can be performed. full arbitration, selection/reselection 1. the sym53c875 waits for a bus free condition. 2. it asserts sbsy/ and its scsi id (the highest priority id stored in the scid register) onto the scsi bus. 3. if the ssel/ signal is asserted by another scsi device or if the sym53c875 detects a higher priority id, the sym53c875 will deassert bsy, deassert its id, and wait until the next bus free state to try arbitration again. 4. the sym53c875 repeats arbitration until it wins control of the scsi bus. when it has won, the won arbitration bit is set in the sstat0 register, bit 2. 5. the sym53c875 performs selection by asserting the following onto the scsi bus: ssel/, the target s id (stored in the sdid register), and the sym53c875 s id (stored in the scid register). 6. after a selection is complete, the function complete bit is set in the sist0 register, bit 6. 7. if a selection time-out occurs, the selection time-out bit is set in the sist1 register, bit 2. bit 5 start (start sequence) when this bit is set, the sym53c875 will start the arbitration sequence indicated by the arbi- tration mode bits. the start sequence bit is accessed directly in low-level mode; during scsi scripts operations, this bit is con- trolled by the scripts processor. an arbitra- tion sequence should not be started if the connected (con) bit in the scntl1 register, bit 4, indicates that the sym53c875 is already connected to the scsi bus. this bit is auto- matically cleared when the arbitration sequence is complete. if a sequence is aborted, arb1 arb0 start watn epc res aap trg 76543210 default>>> 11000x00 arb1 arb0 arbitration mode 0 0 simple arbitration 0 1 reserved 1 0 reserved 1 1 full arbitration, selection/reselection scsi operating registers 5-6 sym53c875/875e data manual bit 4 in the scntl1 register should be checked to verify that the sym53c875 did not connect to the scsi bus. bit 4 watn (select with satn/ on a start sequence) when this bit is set and the sym53c875 is in initiator mode, the satn/ signal will be asserted during sym53c875 selection of a scsi target device. this is to inform the target that the sym53c875 has a message to send. if a selection time-out occurs while attempting to select a target device, satn/ will be deasserted at the same time ssel/ is deasserted. when this bit is clear, the satn/ signal will not be asserted during selection. when executing scsi scripts, this bit is controlled by the scripts processor, but it may be set manu- ally in low level mode. bit 3 epc (enable parity checking) when this bit is set, the scsi data bus is checked for odd parity when data is received from the scsi bus in either initiator or target mode. parity is also checked as data goes from the scsi fifo to the dma fifo. if a parity error is detected, bit 0 of the sist0 register is set and an interrupt may be generated. if the sym53c875 is operating in initiator mode and a parity error is detected, satn/ can optionally be asserted, but the transfer continues until the target changes phase. when this bit is cleared, parity errors are not reported. when these bits are set in the sym53c875n, the chip again checks inbound scsi parity at the scsi fifo?ma fifo interface after the data has passed through the scsi fifo. the parity bits are not passed through the dma fifo, but parity is generated before the data is sent out on the pci bus. bit 2 reserved bit 1 aap (assert satn/ on parity error) when this bit is set, the sym53c875 automat- ically asserts the satn/ signal upon detection of a parity error. satn/ is only asserted in ini- tiator mode. the satn/ signal is asserted before deasserting sack/ during the byte transfer with the parity error. the enable par- ity checking bit must also be set for the sym53c875 to assert satn/ in this manner. a parity error is detected on data received from the scsi bus. if the assert satn/ on parity error bit is cleared or the enable parity checking bit is cleared, satn/ will not be automatically asserted on the scsi bus when a parity error is received. bit 0 trg (target mode) this bit determines the default operating mode of the sym53c875. the user must manually set target or initiator mode. this can be done using the scripts language (set target or clear target). when this bit is set, the chip is a target device by default. when this bit is cleared, the sym53c875 is an initiator device by default. caution: writing this bit while not connected may cause the loss of a selection or reselection due to the chang- ing of target or initiator modes. scsi operating registers sym53c875/875e data manual 5-7 register 01 (81) scsi control one (scntl1) read/write bit 7 exc (extra clock cycle of data setup) when this bit is set, an extra clock period of data setup is added to each scsi send data transfer. the extra data setup time can provide additional system design margin, though it will affect the scsi transfer rates. clearing this bit disables the extra clock cycle of data setup time. setting this bit only affects scsi send operations. bit 6 adb (assert scsi data bus) when this bit is set, the sym53c875 drives the contents of the scsi output data latch register (sodl) onto the scsi data bus. when the sym53c875 is an initiator, the scsi i/o signal must be inactive to assert the sodl contents onto the scsi bus. when the sym53c875 is a target, the scsi i/o signal must be active for the sodl contents to be asserted onto the scsi bus. the contents of the sodl register can be asserted at any time, even before the sym53c875 is connected to the scsi bus. this bit should be cleared when executing scsi scripts. it is normally used only for diagnostics testing or operation in low level mode. bit 5 dhp (disable halt on parity error or atn) (target only) the dhp bit is only de?ed for target mode. when this bit is cleared, the sym53c875 halts the scsi data transfer when a parity error is detected or when the satn/ signal is asserted. if satn/ or a parity error is received in the middle of a data transfer, the sym53c875 may transfer up to three additional bytes before halting to synchronize between internal core cells. during synchronous operation, the sym53c875 transfers data until there are no outstanding synchronous offsets. if the sym53c875 is receiving data, any data resid- ing in the dma fifo is sent to memory before halting. when this bit is set, the sym53c875 does not halt the scsi transfer when satn/ or a parity error is received. bit 4 con (connected) this bit is automatically set any time the sym53c875 is connected to the scsi bus as an initiator or as a target. it is set after the sym53c875 successfully completes arbitra- tion or when it has responded to a bus initiated selection or reselection. this bit is also set after the chip wins simple arbitration when operat- ing in low level mode. when this bit is clear, the sym53c875 is not connected to the scsi bus. the cpu can force a connected or discon- nected condition by setting or clearing this bit. this feature would be used primarily during loopback mode. bit 3 rst (assert scsi rst/ signal) setting this bit asserts the srst/ signal. the srst/ output remains asserted until this bit is cleared. the 25 m s minimum assertion time de?ed in the scsi speci?ation must be timed out by the controlling microprocessor or a scripts loop. bit 2 aesp (assert even scsi parity (force bad parity)) when this bit is set, the sym53c875 asserts even parity. it forces a scsi parity error on each byte sent to the scsi bus from the sym53c875. if parity checking is enabled, then the sym53c875 checks data received for odd parity. this bit is used for diagnostic test- ing and should be clear for normal operation. it can be used to generate parity errors to test error handling functions. exc adb dhp con rst aesp iarb sst 76543210 default>>> 00000000 scsi operating registers 5-8 sym53c875/875e data manual bit 1 iarb (immediate arbitration) setting this bit causes the scsi core to imme- diately begin arbitration once a bus free phase is detected following an expected scsi discon- nect. this bit is useful for multi-threaded appli- cations. the arb1-0 bits in scntl0 should be set for full arbitration and selection before setting this bit. arbitration will be re-tried until won. at that point, the sym53c875 will hold bsy and sel asserted, and wait for a select or reselect sequence to be requested. the immediate arbitration bit will be reset automatically when the selection or reselection sequence is com- pleted, or times out. an unexpected disconnect condition will clear iarb without attempting arbitration. see the scsi disconnect unexpected bit (scntl2, bit 7) for more information on expected versus unexpected disconnects. during the time between the setting of the iarb bit and the completion of a select/rese- lect instruction, dma interrupts are disabled. therefore, interrupt instructions that are issued during this time period will not execute. an immediate arbitration sequence can be aborted. first, the abort bit in the istat reg- ister should be set. then one of two things will eventually happen: 1. the won arbitration bit (sstat0 bit 2) will be set. in this case, the immediate arbitration bit needs to be reset. this will complete the abort sequence and disconnect the sym53c875 from the scsi bus. if it is not acceptable to go to bus free phase immediately following the arbitration phase, a low level selection may be performed instead. 2. the abort will complete because the sym53c875 loses arbitration. this can be detected by the immediate arbitration bit being cleared. the lost arbitration bit (sstat0 bit 3) should not be used to detect this condition. no further action needs to be taken in this case. bit 0 sst (start scsi transfer) this bit is automatically set during scripts execution, and should not be used. it causes the scsi core to begin a scsi transfer, includ- ing sreq/sack handshaking. the determi- nation of whether the transfer is a send or receive is made according to the value written to the i/o bit in socl. this bit is self-reset- ting. it should not be set for low level opera- tion. caution: writing to this register while not connected may cause the loss of a selection/reselection by resetting the connected bit. scsi operating registers sym53c875/875e data manual 5-9 register 02 (82) scsi control two (scntl2) read/write bit 7 sdu (scsi disconnect unexpected) this bit is valid in initiator mode only. when this bit is set, the scsi core is not expecting the scsi bus to enter the bus free phase. if it does, an unexpected disconnect error will be generated (see the unexpected disconnect bit in the sist0 register, bit 2). during normal scripts mode operation, this bit is set auto- matically whenever the scsi core is reselected, or successfully selects another scsi device. the sdu bit should be reset with a register write (move 0x00 to scntl2) before the scsi core expects a disconnect to occur, nor- mally prior to sending an abort, abort tag, bus device reset, clear queue or release recovery message, or before deasserting sack/ after receiving a disconnect command or command complete message. bit 6 chm (chained mode) this bit determines whether or not the scsi core is programmed for chained scsi mode. this bit is automatically set by the chained block move (chmov) scripts instruction and is automatically cleared by the block move scripts instruction (move). chained mode is primarily used to transfer consecutive wide data blocks. using chained mode facilitates partial receive transfers and allows correct partial send behavior. when this bit is set and a data transfer ends on an odd byte boundary, the sym53c875 will store the last byte in the scsi wide residue data regis- ter during a receive operation, or in the scsi output data latch register during a send operation. this byte will be combined with the ?st byte from the subsequent transfer so that a wide transfer can be completed. for more information, see the ?hained mode section in chapter 2, ?unctional description. bit 5 slpmd (slpar mode bit) if this bit is clear, the slpar register functions like the sym53c825. if this bit is set, the slpar register re?cts the high or low byte of the slpar word, depending on the state of scntl2 bit 4. it also allows a seed value to be written to the slpar register. bit 4 slphben (slpar high byte enable) if this bit is clear, the low byte of the slpar word is present in the slpar register. if this bit is set, the high byte of the slpar word is present in the slpar register. bit 3 wss (wide scsi send) when read, this bit returns the value of the wide scsi send (wss) ?g. asserting this bit will clear the wss ?g. this clearing function is self-resetting. when the wss ?g is high following a wide scsi send operation, the scsi core is holding a byte of ?hain data in the sodl register. this data will become the ?st low-order byte sent when married with a high-order byte dur- ing a subsequent data send transfer. performing a scsi receive operation will clear this bit. also, performing any non-wide trans- fer will clear this bit. bit 2 vue0 (vendor unique enhance- ments bit 0) this bit is a read only value indicating whether the group code ?ld in the scsi instruction is standard or vendor unique. if reset, the bit indicates standard group codes; if set, the bit indicates vendor unique group codes. the sdu chm slpmd slphben wss vue0 vue1 wsr 76 5 4 3210 default>>> 00 0 0 0000 scsi operating registers 5-10 sym53c875/875e data manual value in this bit is reloaded at the beginning of all asynchronous target receives. the default for this bit is reset. bit 1 vue1 (vendor unique enhance- ments bit 1) this bit is used to disable the automatic byte count reload during block move instructions in the command phase. if this bit is reset, the device will reload the block move byte count if the ?st byte received is one of the standard group codes. if this bit is set, the device will not reload the block move byte count, regard- less of the group code. bit 0 wsr (wide scsi receive) when read, this bit returns the value of the wide scsi receive (wsr) ?g. setting this bit clears the wsr ?g. this clearing function is self-resetting. the wsr ?g indicates that the scsi core received data from the scsi bus, detected a possible partial transfer at the end of a chained or non-chained block move command, and temporarily stored the high-order byte in the swide register rather than passing the byte out the dma channel. the hardware uses the wsr status ?g to determine what behavior must occur at the start of the next data receive transfer. when the ?g is set, the stored data in swide may be ?esidue data, valid data for a subsequent data transfer, or overrun data. the byte may be read as normal data by starting a data receive transfer. performing a scsi send operation will clear this bit. also, performing any non-wide trans- fer will clear this bit. register 03 (83) scsi control three (scntl3) read/write bit 7 ultra (ultra enable) setting this bit enables ultra scsi synchro- nous scsi transfers in systems that have an 80 mhz clock. the default value of this bit is 0. this bit should remain cleared in systems that have a 40 mhz clock, unless the scsi clock doubler is used to increase the sclk fre- quency to at least 80 mhz. when this bit is set, the signal ?tering period for sreq/ and sack/ automatically changes to 15 ns, regardless of the value of the extend req/ack filtering bit in the stest2 regis- ter. bits 6-4 scf2-0 (synchronous clock conversion factor) these bits select a factor by which the fre- quency of sclk is divided before being pre- sented to the synchronous scsi control logic. they should be written to the same value as the clock conversion factor bits below unless fast scsi operation is desired. see the scsi transfer (sxfer) register description for examples of how the scf bits are used to cal- culate synchronous transfer periods. see the table under the description of bits 7-5 of the sxfer register for the valid combinations. note: to migrate from a fast scsi-2 system with a 40mhz clock, divide the clock by a factor of two or more to achieve the same synchronous transfer rate in a system with an 80mhz clock. note: for additional information on how the synchronous transfer rate is determined, refer to chapter 2. ultra scf2 scf1 scf0 ews ccf2 ccf1 ccf0 76543210 default>>> 00000000 scsi operating registers sym53c875/875e data manual 5-11 bit 3 ews (enable wide scsi) when this bit is clear, all information transfer phases are assumed to be eight bits, transmit- ted on sd7-0/, sdp0/. when this bit is asserted, data transfers are done 16 bits at a time, with the least signi?ant byte on sd7-0/, sdp/ and the most signi?ant byte on sd15-8/, sdp1/. command, status, and mes- sage phases are not affected by this bit. clearing this bit will also clear the wide scsi receive bit in the scntl2 register, which indicates the presence of a valid data byte in the swide register. bits 2-0 ccf2-0 (clock conversion factor) these bits select a factor by which the fre- quency of sclk is divided before being pre- sented to the scsi core. the synchronous portion of the scsi core can be run at a differ- ent clock rate for fast scsi, using the synchro- nous clock conversion factor bits. the bit encoding is displayed in the table below. all other combinations are reserved and should never be used. note: it is important that these bits be set to the proper values to guarantee that the sym53c875 meets the scsi timings as de?ed by the ansi speci?ation. note: for additional information on how the synchronous transfer rate is determined, refer to chapter 2, ?unctional description. note: to migrate from a fast scsi-2 system with a 40mhz clock, divide the clock by a factor of two or more to achieve the same synchronous transfer rate in a system with an 80mhz clock. note: if the scsi clock doubler is enabled, use the desired frequency after doubling to determine the conversion factor. scf2 ccf2 scf1 ccf1 scf0 ccf0 factor frequency scsi clock (mhz) 0 0 0 sclk/3 50.01-75 0 0 1 sclk/1 16.67-25 0 1 0 sclk/1.5 25.01-37.5 0 1 1 sclk/2 37.51-50 1 0 0 sclk/3 50.01-75 1 0 1 sclk/4 75.01-80.00 1 1 0 reserved 1 1 1 reserved scsi operating registers 5-12 sym53c875/875e data manual register 04 (84) scsi chip id (scid) read/write bit 7 reserved bit 6 rre (enable response to reselection) when this bit is set, the sym53c875 is enabled to respond to bus-initiated reselection at the chip id in the respid0 and respid1 registers. note that the sym53c875 will not automatically recon?ure itself to initiator mode as a result of being reselected. bit 5 sre (enable response to selection) when this bit is set, the sym53c875 is able to respond to bus-initiated selection at the chip id in the respid0 and respid1 registers. note that the sym53c875 will not automati- cally recon?ure itself to target mode as a result of being selected. bit 4 reserved bits 3-0 encoded chip scsi id, bits 3-0 these bits are used to store the sym53c875 encoded scsi id. this is the id which the chip will assert when arbitrating for the scsi bus. the ids that the sym53c875 will respond to when being selected or reselected are con?ured in the respid0 and respid1 registers. the priority of the 16 possible ids, in descending order is: register 05 (85) scsi transfer (sxfer) read/write note: when using table indirect i/o commands, bits 7-0 of this register will be loaded from the i/o data structure. note: for additional information on how the synchronous transfer rate is determined, refer to chapter 2, ?unctional description. bits 7-5 tp2-0 (scsi synchronous transfer period) these bits determine the scsi synchronous transfer period used by the sym53c875 when sending synchronous scsi data in either initia- tor or target mode. these bits control the pro- grammable dividers in the chip. note: for ultra scsi transfers, the ideal transfer period is 4, and 5 is acceptable. setting the transfer period to a value greater than 5 is not recommended. the synchronous transfer period the sym53c875 should use when transferring scsi data is determined as in this exam- res rre sre res enc3 enc2 enc1 enc0 76543210 default>>> x00x0000 highest lowest 7654321015141312111098 tp2 tp1 tp0 mo4 mo3 mo2 mo1 mo0 76543210 default>>> 00000000 tp2 tp1 tp0 xferp 0004 0015 0106 0117 1008 1019 11010 11111 scsi operating registers sym53c875/875e data manual 5-13 ple.the sym53c875 is connected to a hard disk which can transfer data at 10 mb/s syn- chronously. the sym53c875 s sclk is run- ning at 40 mhz. the synchronous transfer period (sxferp) is found as follows: synchronous send rate = (sclk/scf)/xferp synchronous receive rate = (sckl/scf)/4. key: sclk = scsi clock scf = scsi synchronous core frequency table 5-2: examples of synchronous transfer periods for scsi-1 transfer rates clk (mhz) scsi clk ? scntl3 bits 6-4 xferp (sxfer bits 7-5) synch. send rate (mb/s) synch. transfer period (ns) synch. receive rate (mb/s) synch. receive period (ns) 80 ? 4 4 5 200 5 200 80 ? 4 5 4 250 5 200 66.67 ? 3 4 5.55 180 5.55 180 66.67 ? 3 5 4.44 225 5.55 180 50 ? 2 4 6.25 160 6.25 160 50 ? 2 5 5 200 6.25 160 40 ? 2 4 5 200 5 200 37.50 ? 1.5 4 6.25 160 6.25 160 33.33 ? 1.5 4 5.55 180 5.55 180 25 ? 1 4 6.25 160 6.25 160 20 ? 1 4 5 200 5 200 16.67 ? 1 4 4.17 240 4.17 240 table 5-3: example transfer periods for fast scsi-2 and ultra scsi transfer rates clk (mhz) scsi clk ? scntl3 bits 6-4 xferp synch. send rate (mb/s) synch. transfer period (ns) sync. receive rate (mb/s) sync. receive period (ns) 80 ? 1 4 20.0 50 20.0 50 80 ? 2 4 10.0 100 10.0 100 66.67 ? 1.5 4 11.11 90 11.11 90 66.67 ? 1.5 5 8.88 112.5 11.11 90 50 ? 1 4 12.5 80 12.5 80 50 ? 1 5 10.0 100 12.5 80 40 ? 1 4 10.0 100 10.0 100 37.50 ? 1 4 9.375 106.67 9.375 106.67 33.33 ? 1 4 8.33 120 8.33 120 25 ? 1 4 6.25 160 6.25 160 20 ? 1 4 5 200 5 200 16.67 ? 1 4 4.17 240 4.17 240 scsi operating registers 5-14 sym53c875/875e data manual bits 4-0 mo4-mo0 (max scsi synchronous offset) these bits describe the maximum scsi syn- chronous offset used by the sym53c875 when transferring synchronous scsi data in either initiator or target mode. the following table describes the possible combinations and their relationship to the synchronous data off- set used by the sym53c875. these bits deter- mine the sym53c875 s method of transfer for data in and data out phases only; all other information transfers will occur asynchro- nously. mo4 mo3 mo2 mo1 mo0 synchronous offset 00000 0-asynchronous 000011 000102 000113 001004 001015 001106 001117 010008 010019 0101010 0101111 0110012 0110113 0111014 0111115 1000016 1 xxx1 reserved 1 x x 1 x reserved 1 x 1 x x reserved 1 1 x x x reserved scsi operating registers sym53c875/875e data manual 5-15 register 06 (86) scsi destination id (sdid) read/write bits 7-4 reserved bits 3-0 encoded destination scsi id writing these bits sets the scsi id of the intended initiator or target during scsi rese- lection or selection phases, respectively. when executing scripts, the scripts processor writes the destination scsi id to this register. the scsi id is de?ed by the user in a scripts select or reselect instruc- tion. the value written should be the binary- encoded id value. the priority of the 16 possi- ble ids, in descending order, is: register 07 (87) general purpose (gpreg) read/write bits 7-5 reserved bits 4-0 gpio4-gpio0 (general purpose) these bits can be programmed through the gpcntl register to become inputs, outputs or to perform special functions. as an output, these pins can be used to enable or disable external terminators. these signals can also be programmed as live inputs and sensed through a scripts register to register move instruc- tion. gpio(3-0) default as inputs and gpio4 defaults as an output pin. when con?ured as inputs, an internal pull-up is enabled. gpio4 can be used to enable or disable v pp , the 12-volt power supply to the external ?sh memory. this bit powers up with the power to the external memory disabled. sdms use of gpio pins symbios sdms software uses gpio3 to detect a differential board. if the pin is pulled low externally, the board will be con?ured by sdms as a differential board. if it is pulled high or left ?ating, sdms will con?ure it as a single-ended board. the symbios pci to scsi host adapters use the gpio4 pin in the process of ?shing a new sdms rom. symbios sdms software uses the gpio0 pin to toggle scsi device leds, turning on the led whenever the sym53c875 is on the scsi bus. sdms drives this pin low to turn on the led, or drives it high to turn off the led. sdms uses the gpio1-0 pins to support serial eeprom access. when serial eeprom access is enabled, gpio1 is used as a clock and gpio0 is used as data. res res res res enc3 enc2 enc1 enc0 76543210 default>>> xxxx 0000 highest lowest 7654321015141312111098 res res res gpio4 gpio3 gpio2 gpio1 gpio0 76543210 default>>> xxx0xxxx scsi operating registers 5-16 sym53c875/875e data manual register 08 (88) scsi first byte received (sfbr) read/write this register contains the first byte received in any asynchronous information transfer phase. for ex- ample, when the sym53c875 is operating in initi- ator mode, this register contains the first byte received in the message in, status, and data in phases. when a block move instruction is executed for a particular phase, the first byte received is stored in this register?even if the present phase is the same as the last phase. the first byte received value for a particular input phase is not valid until after a move instruction is executed. this register is also the accumulator for register read-modify-writes with the sfbr as the destina- tion. this allows bit testing after an operation. the sfbr is not writable via the cpu, and there- fore not by a memory move. the load instruction may not be used to write to this register. however, it can be loaded via scripts read/write opera- tions. to load the sfbr with a byte stored in sys- tem memory, the byte must first be moved to an intermediate sym53c875 register (such as the scratch register), and then to the sfbr. this register will also contain the state of the lower eight bits of the scsi data bus during the selection phase if the com bit in the dcntl register is clear. register 09 (89) scsi output control latch (socl) read /write bit 7 req(assert scsi req/ signal) bit 6 ack(assert scsi ack/ signal) bit 5 bsy(assert scsi bsy/ signal) bit 4 sel(assert scsi sel/ signal) bit 3 atn(assert scsi atn/ signal) bit 2 msg(assert scsi msg/ signal) bit 1 c/d(assert scsi c_d/ signal) bit 0 i/o(assert scsi i_o/ signal) this register is used primarily for diagnostic testing or programmed i/o operation. it is con- trolled by the scripts processor when exe- cuting scsi scripts. socl should only be used when transferring data via programmed i/o. some bits are set (1) or reset (0) when executing scsi scripts. do not write to the register once the sym53c875 starts executing normal scsi scripts. 1b7 1b6 1b5 1b4 1b3 1b2 1b1 1b0 76543210 default>>> 00000000 req ack bsy sel atn msg c/d i/o 76543210 default>>> 00000000 scsi operating registers sym53c875/875e data manual 5-17 register 0a (09) scsi selector id (ssid) read only bit 7 val (scsi valid) if val is asserted, the two scsi ids were detected on the bus during a bus-initiated selection or reselection, and the encoded desti- nation scsi id bits below are valid. if val is deasserted, only one id was present and the contents of the encoded destination id are meaningless. bits 6-4 reserved bits 3-0 encoded destination scsi id reading the ssid register immediately after the sym53c875 has been selected or rese- lected returns the binary-encoded scsi id of the device that performed the operation. these bits are invalid for targets that are selected under the single initiator option of the scsi-1 speci?ation. this condition can be detected by examining the val bit above. register 0b (8b) scsi bus control lines (sbcl) read only bit 7 req (sreq/ status) bit 6 ack (sack/ status) bit 5 bsy (sbsy/ status) bit 4 sel (ssel/ status) bit 3 atn (satn/ status) bit 2 msg (smsg/ status) bit 1 c/d (sc_d/ status) bit 0 i/o (si_o/ status) when read, this register returns the scsi con- trol line status. a bit will be set when the corre- sponding scsi control line is asserted. these bits are not latched; they are a true representa- tion of what is on the scsi bus at the time the register is read. the resulting read data is syn- chronized before being presented to the pci bus to prevent parity errors from being passed to the system. this register can be used for diagnostics testing or operation in low level mode. val res res res enid3 enid2 enid1 enid0 76543210 default>>> 0xxx0000 req ack bsy sel atn msg c/d i/o 76543210 default>>> xxxxxxxx scsi operating registers 5-18 sym53c875/875e data manual register 0c (8c) dma status (dstat) read only reading this register will clear any bits that are set at the time the register is read, but will not neces- sarily clear the register because additional inter- rupts may be pending (the sym53c875 stacks interrupts). the dip bit in the istat register will also be cleared. dma interrupt conditions may be individually masked through the dien register. when performing consecutive 8-bit reads of the dstat, sist0 and sist1 registers (in any or- der), insert a delay equivalent to 12 clk periods between the reads to ensure that the interrupts clear properly. see chapter 2, ?unctional description,? for more information on interrupts. bit 7 dfe (dma fifo empty) this status bit is set when the dma fifo is empty. it may be used to determine if any data resides in the fifo when an error occurs and an interrupt is generated. this bit is a pure sta- tus bit and will not cause an interrupt. bit 6 mdpe (master data parity error) this bit is set when the sym53c875 as a mas- ter detects a data parity error, or a target device signals a parity error during a data phase. this bit is completely disabled by the master parity error enable bit (bit 3 of ctest4). bit 5 bf (bus fault) this bit is set when a pci bus fault condition is detected. a pci bus fault can only occur when the sym53c875 is bus master, and is de?ed as a cycle that ends with a bad address or target abort condition. bit 4 abrt (aborted) this bit is set when an abort condition occurs. an abort condition occurs when a software abort command is issued by setting bit 7 of the istat register. bit 3 ssi (single step interrupt) if the single-step mode bit in the dcntl register is set, this bit will be set and an inter- rupt generated after successful execution of each scripts instruction. bit 2 sir (scripts interrupt instruction received) this status bit is set whenever an interrupt instruction is evaluated as true. bit 1 ebpi (extended byte parity error interrupt) (53c875n only) this bit is set whenever the sym53c875 detects a parity error on one of the four addi- tional parity pins on the sym53c875n. bit 0 iid (illegal instruction detected) this status bit will be set any time an illegal or reserved instruction op code is detected, whether the sym53c875 is operating in single-step mode or automatically executing scsi scripts. any of the following condi- tions during instruction execution will also cause this bit to be set: 1. the sym53c875 is executing a wait disconnect instruction and the scsi req line is asserted without a disconnect occurring. 2. a block move instruction is executed with 000000h loaded into the dbc register, indicating that zero bytes are to be moved. 3. during a transfer control instruction, the compare data (bit 18) and compare phase (bit 17) bits are set in the dbc register while the sym53c875 is in target mode. dfe mdpe bf abrt ssi sir res iid 76543210 default>>> 100000x0 scsi operating registers sym53c875/875e data manual 5-19 4. during a transfer control instruction, the carry test bit (bit 21) is set and either the compare data (bit 18) or compare phase (bit 17) bit is set. 5. a transfer control instruction is executed with the reserved bit 22 set. 6. a transfer control instruction is executed with the wait for valid phase bit (bit 16) set while the chip is in target mode. 7. a load/store instruction is issued with the memory address mapped to the operating registers of the chip, not including rom or ram. 8. a load/store instruction is issued when the register address is not aligned with the memory address 9. a load/store instruction is issued with bit 5 in the dcmd register clear or bits 3 or 2 set. 10. a load/store instruction when the count value in the dbc register is not set at 1 to 4. 11. a load/store instruction attempts to cross a dword boundary. 12. a memory move instruction is executed with one of the reserved bits in the dcmd register set. 13. a memory move instruction is executed with the source and destination addresses not byte-aligned. register 0d (8d) scsi status zero (sstat0) read only bit 7 ilf (sidl least signi?ant byte full) this bit is set when the least signi?ant byte in the scsi input data latch register (sidl) contains data. data is transferred from the scsi bus to the scsi input data latch regis- ter before being sent to the dma fifo and then to the host bus. the sidl register con- tains scsi data received asynchronously. syn- chronous data received does not ?w through this register. bit 6 orf (sodr least signi?ant byte full) this bit is set when the least signi?ant byte in the scsi output data register (sodr, a hid- den buffer register which is not accessible) contains data. the sodr register is used by the scsi logic as a second storage register when sending data synchronously. it cannot be read or written by the user. this bit can be used to determine how many bytes reside in the chip when an error occurs. bit 5 olf (sodl least signi?ant byte full) this bit is set when the least signi?ant byte in the scsi output data latch (sodl) contains data. the sodl register is the interface between the dma logic and the scsi bus. in synchronous mode, data is transferred from the host bus to the sodl register, and then to the scsi output data register (sodr, a hid- den buffer register which is not accessible) before being sent to the scsi bus. in asyn- chronous mode, data is transferred from the host bus to the sodl register, and then to the scsi bus. the sodr buffer register is not ilf orf olf aip loa woa rst sdp0/ 76543210 default>>> 00000000 scsi operating registers 5-20 sym53c875/875e data manual used for asynchronous transfers. this bit can be used to determine how many bytes reside in the chip when an error occurs. bit 4 aip (arbitration in progress) arbitration in progress (aip = 1) indicates that the sym53c875 has detected a bus free con- dition, asserted bsy, and asserted its scsi id onto the scsi bus. bit 3 loa (lost arbitration) when set, loa indicates that the sym53c875 has detected a bus free condi- tion, arbitrated for the scsi bus, and lost arbi- tration due to another scsi device asserting the sel/ signal. bit 2 woa (won arbitration) when set, woa indicates that the sym53c875 has detected a bus free condi- tion, arbitrated for the scsi bus, and won arbitration. the arbitration mode selected in the scntl0 register must be full arbitration and selection for this bit to be set. bit 1 rst/ (scsi rst/ signal) this bit reports the current status of the scsi rst/ signal, and the rst signal (bit 6) in the istat register. this bit is not latched and may be changing as it is read. bit 0 sdp0/ (scsi sdp0/ parity signal) this bit represents the active high current sta- tus of the scsi sdp0/ parity signal. this signal is not latched and may be changing as it is read. register 0e (8e) scsi status one (sstat1) read only bits 7-4 ff3-ff0 (fifo flags) these four bits, along with sstat2 bit 4, de?e the number of bytes or words that cur- rently reside in the sym53c875 s scsi syn- chronous data fifo. these bits are not latched and they will change as data moves through the fifo. ff3 ff2 ff1 ff0 sdp0l msg c/d i/o 76543210 default>>> 0000 xxxx ff4 (sstat2 bit 4) ff3 ff2 ff1 ff0 bytes or words in the scsi fifo 00000 0 00001 1 00010 2 00011 3 00100 4 00101 5 00110 6 00111 7 01000 8 01001 9 0101010 0101111 0110012 0110113 0111014 0111115 1000016 scsi operating registers sym53c875/875e data manual 5-21 bit 3 sdp0l (latched scsi parity) this bit re?cts the scsi parity signal (sdp0/), corresponding to the data latched in the scsi input data latch register (sidl). it changes when a new byte is latched into the least signi?ant byte of the sidl register. this bit is active high, in other words, it is set when the parity signal is active. bit 2 msg (scsi msg/ signal) bit 1 c/d (scsi c_d/ signal) bit 0 i/o (scsi i_o/ signal) these scsi phase status bits are latched on the asserting edge of sreq/ when operating in either initiator or target mode. these bits are set when the corresponding signal is active. they are useful when operating in low level mode. register 0f (8f) scsi status two (sstat2) (read only) bit 7 ilf1 (sidl most signi?ant byte full) this bit is set when the most signi?ant byte in the scsi input data latch register (sidl) contains data. data is transferred from the scsi bus to the scsi input data latch regis- ter before being sent to the dma fifo and then to the host bus. the sidl register con- tains scsi data received asynchronously. syn- chronous data received does not ?w through this register. bit 6 orf1 (sodr most signi?ant byte full) this bit is set when the most signi?ant byte in the scsi output data register (sodr, a hid- den buffer register which is not accessible) contains data. the sodr register is used by the scsi logic as a second storage register when sending data synchronously. it is not accessible to the user. this bit can be used to determine how many bytes reside in the chip when an error occurs. bit 5 olf1 (sodl most signi?ant byte full) this bit is set when the most signi?ant byte in the scsi output data latch (sodl) contains data. the sodl register is the interface between the dma logic and the scsi bus. in synchronous mode, data is transferred from the host bus to the sodl register, and then to the scsi output data register (sodr, a hid- den buffer register which is not accessible) before being sent to the scsi bus. in asyn- chronous mode, data is transferred from the host bus to the sodl register, and then to the scsi bus. the sodr buffer register is not ilf1 orf1 olf1 ff4 spl1 res ldsc sdp1 76543210 default>>> 0000xx1x scsi operating registers 5-22 sym53c875/875e data manual used for asynchronous transfers. this bit can be used to determine how many bytes reside in the chip when an error occurs. bit 4 ff4 (fifo flags bit 4) this is the most signi?ant bit in the scsi fifo flags ?ld, with the rest of the bits in sstat1. for a complete description of this ?ld, see the de?ition for sstat1 bits 7-4. bit 3 spl1(latched scsi parity for sd15-8) this active high bit re?cts the scsi odd par- ity signal corresponding to the data latched into the most signi?ant byte in the sidl reg- ister. bit 2 diffsense sense if this bit is reset, the correct cable type has been connected for the differential operation. if this bit is set, a single-ended cable has been connected to the device s diffsense pin. bit 1 ldsc (last disconnect) used in conjunction with the connected (con) bit in scntl1, this status bit allows the user to detect the case in which a target device disconnects, and then some scsi device selects or reselects, the sym53c875. if the connected bit is asserted and the ldsc bit is asserted, a disconnect has occurred. this bit is set when the connected bit in scntl1 is off. this bit is cleared when a block move instruction is executed while the connected bit in scntl1 is on. bit 0 sdp1 (scsi sdp1 signal) this bit represents the active-high current state of the scsi sdp1 parity signal. it is unlatched and may be changing as it is read. registers 10-13 (90-93) data structure address (dsa) read/write this 32-bit register contains the base address used for all table indirect calculations. the dsa register is usually loaded prior to starting an i/o, but it is possible for a scripts memory move to load the dsa during the i/o. during any memory-to-memory move operation, the contents of this register are preserved. the power-up value of this register is indeterminate. scsi operating registers sym53c875/875e data manual 5-23 register 14 (94) interrupt status (istat) (read/write) this is the only register that can be accessed by the host cpu while the sym53c875 is executing scripts (without interfering in the operation of the sym53c875). it may be used to poll for inter- rupts if hardware interrupts are disabled. there may be stacked interrupts pending; read this regis- ter after servicing an interrupt to check for stacked interrupts. for more information on interrupt han- dling refer to chapter 2, ?unctional description. bit 7 abrt (abort operation) setting this bit aborts the current operation being executed by the sym53c875. if this bit is set and an interrupt is received, reset this bit before reading the dstat register to prevent further aborted interrupts from being gener- ated. the sequence to abort any operation is: 1. set this bit. 2. wait for an interrupt. 3. read the istat register. 4. if the scsi interrupt pending bit is set, then read the sist0 or sist1 register to determine the cause of the scsi interrupt and go back to step 2. 5. if the scsi interrupt pending bit is clear, and the dma interrupt pending bit is set, then write 00h value to this register. 6. read the dstat register to verify the aborted interrupt and to see if any other interrupting conditions have occurred. bit 6 srst (software reset) setting this bit resets the sym53c875. all operating registers are cleared to their respec- tive default values and all scsi signals are deasserted. setting this bit does not cause the scsi rst/ signal to be asserted. this reset will not clear the 53c700 compatibility bit or any of the pci con?uration registers. this bit is not self-clearing; it must be cleared to clear the reset condition (a hardware reset will also clear this bit). bit 5 sigp (signal process) sigp is a r/w bit that can be written at any time, and polled and reset via ctest2. the sigp bit can be used in various ways to pass a ?g to or from a running scripts instruc- tion. the only scripts instruction directly affected by the sigp bit is wait for selection/ reselection. setting this bit causes that instruction to jump to the alternate address immediately. the instructions at the alternate jump address should check the status of sigp to determine the cause of the jump. the sigp bit may be used at any time and is not restricted to the wait for selection/ reselection condition. bit 4 sem (semaphore) this bit can be set by the scripts processor using a scripts register write instruction. the bit may also be set by an external proces- sor while the sym53c875 is executing a scripts operation. this bit enables the sym53c875 to notify an external processor of a prede?ed condition while scripts are running. the external processor may also notify the sym53c875 of a prede?ed condi- tion and the scripts processor may take action while scripts are executing. abrt srst sigp sem con intf sip dip 76543210 default>>> 00000000 scsi operating registers 5-24 sym53c875/875e data manual bit 3 con (connected) this bit is automatically set any time the sym53c875 is connected to the scsi bus as an initiator or as a target. it will be set after successfully completing selection or when the sym53c875 has responded to a bus-initiated selection or reselection. it will also be set after the sym53c875 wins arbitration when oper- ating in low level mode. when this bit is clear, the sym53c875 is not connected to the scsi bus. bit 2 intf (interrupt on the fly) this bit is asserted by an intfly instruction during scripts execution. scripts pro- grams will not halt when the interrupt occurs. this bit can be used to notify a service routine, running on the main processor while the scripts processor is still executing a scripts program. if this bit is set, when the istat register is read it will not automatically be cleared. to clear this bit, it must be written to a one. the reset operation is self-clearing. note: if the intf bit is set but sip or dip is not set, do not attempt to read the other chip status registers. an interrupt-on-the-? interrupt must be cleared before servicing any other interrupts indicated by sip or dip. note: this bit must be written to one in order to clear it after it has been set. bit 1 sip (scsi interrupt pending) this status bit is set when an interrupt condi- tion is detected in the scsi portion of the sym53c875. the following conditions will cause a scsi interrupt to occur: n a phase mismatch (initiator mode) or satn/ becomes active (target mode) n an arbitration sequence completes n a selection or reselection time-out occurs n the sym53c875 was selected n the sym53c875 was reselected n a scsi gross error occurs n an unexpected disconnect occurs n a scsi reset occurs n a parity error is detected n the handshake-to-handshake timer is expired n the general purpose timer is expired. to determine exactly which condition(s) caused the interrupt, read the sist0 and sist1 registers. bit 0 dip (dma interrupt pending) this status bit is set when an interrupt condi- tion is detected in the dma portion of the sym53c875. the following conditions will cause a dma interrupt to occur: n a pci parity error is detected n a bus fault is detected n an abort condition is detected n a scripts instruction is executed in single-step mode n a scripts interrupt instruction is executed n an illegal instruction is detected. to determine exactly which condition(s) caused the interrupt, read the dstat register. scsi operating registers sym53c875/875e data manual 5-25 register 18 (98) chip test zero (ctest0) read/write this was a general purpose read/write register in previous sym53c8xx family chips. although it is still a read/write register, symbios reserves the right to use these bits for future 53c8xx family en- hancements. register 19 (99) chip test one (ctest1) read only bits 7-4 fmt3-0 (byte empty in dma fifo) these bits identify the bottom bytes in the dma fifo that are empty. each bit corre- sponds to a byte lane in the dma fifo. for example, if byte lane three is empty, then fmt3 will be set. since the fmt ?gs indi- cate the status of bytes at the bottom of the fifo, if all fmt bits are set, the dma fifo is empty. bits 3-0 ffl3-0 (byte full in dma fifo) these status bits identify the top bytes in the dma fifo that are full. each bit corresponds to a byte lane in the dma fifo. for example, if byte lane three is full then ffl3 will be set. since the ffl ?gs indicate the status of bytes at the top of the fifo, if all ffl bits are set, the dma fifo is full. fmt3 fmt2 fmt1 fmt0 ffl3 ffl2 ffl1 ffl0 76543210 default>>> 11110000 scsi operating registers 5-26 sym53c875/875e data manual register 1a (9a) chip test two (ctest2) read/write bit 7 ddir (data transfer direction) this status bit indicates which direction data is being transferred. when this bit is set, the data will be transferred from the scsi bus to the host bus. when this bit is clear, the data will be transferred from the host bus to the scsi bus. bit 6 sigp (signal process) this bit is a copy of the sigp bit in the istat register (bit 5). the sigp bit is used to signal a running scripts instruction. when this reg- ister is read, the sigp bit in the istat register is cleared. bit 5 cio (con?ured as i/o) this bit is de?ed as the con?uration i/o enable status bit. this read-only bit indicates if the chip is currently enabled as i/o space. note: both bits 4 and 5 may be set if the chip is dual-mapped. bit 4 cm (con?ured as memory) this bit is de?ed as the con?uration mem- ory enable status bit. this read-only bit indi- cates if the chip is currently enabled as memory space. note: both bits 4 and 5 may be set if the chip is dual-mapped. bit 3 srtch (scratcha/b operation) this bit controls the operation of the scratcha and scratchb registers. when it is set, scratchb contains the ram base address value from the pci con?uration ram base address register. this is the base address for the 4 kb internal ram. in addi- tion, the scratcha register displays the memory-mapped based address of the chip operating registers. when this bit is clear, the scratcha and scratchb registers return to normal operation. note: bit 3 is the only writable bit in this register. all other bits are read only. when modifying this register, all other bits must be written to zero. do not execute a read- modify-write to this register. bit 2 teop (scsi true end of process) this bit indicates the status of the sym53c875 s internal teop signal. the teop signal acknowledges the completion of a transfer through the scsi portion of the sym53c875. when this bit is set, teop is active. when this bit is clear, teop is inactive. bit 1 dreq (data request status) this bit indicates the status of the sym53c875 s internal data request signal (dreq). when this bit is set, dreq is active. when this bit is clear, dreq is inactive. bit 0 dack (data acknowledge status) this bit indicates the status of the sym53c875 s internal data acknowledge sig- nal (dack/). when this bit is set, dack/ is inactive. when this bit is clear, dack/ is active. ddir sigp cio cm srtch teop dreq dack 76543210 default>>> 00xx0001 scsi operating registers sym53c875/875e data manual 5-27 register 1b (9b) chip test three (ctest3) read/write bits 7-4 v3-v0 (chip revision level) these bits identify the chip revision level for software purposes. the value should be the same as the lower nibble of the pci revision id register, at address 08h in con?uration space. bit 3 flf (flush dma fifo) when this bit is set, data residing in the dma fifo is transferred to memory, starting at the address in the dnad register. the internal dmawr signal, controlled by the ctest5 register, determines the direction of the trans- fer. this bit is not self clearing; once the sym53c875 has successfully transferred the data, this bit should be reset. note: polling of fifo ?gs is allowed during ?sh operations. bit 2 clf (clear dma fifo) when this bit is set, all data pointers for the dma fifo are cleared. any data in the fifo is lost. this bit automatically resets after the sym53c875 has successfully cleared the appropriate fifo pointers and registers. note: this bit does not clear the data visible at the bottom of the fifo. bit 1 fm (fetch pin mode) when set, this bit causes the fetch/ pin to deassert during indirect and table indirect read operations. fetch/ will only be active during the op code portion of an instruction fetch. this allows scripts to be stored in a prom while data tables are stored in ram. if this bit is not set, fetch/ will be asserted for all bus cycles during instruction fetches. bit 0 wrie (write and invalidate enable) this bit, when set, causes memory write and invalidate commands to be issued on the pci bus after certain conditions have been met. these conditions are described in detail in chapter 3. v3 v2 v1 v0 flf clf fm wrie 76543210 default>>> xxxx 0000 scsi operating registers 5-28 sym53c875/875e data manual registers 1c-1f (9c-9f) temporary (temp) read/write this 32-bit register stores the return instruction address pointer from the call instruction. the ad- dress pointer stored in this register is loaded into the dsp register when a return instruction is exe- cuted. this address points to the next instruction to be executed. do not write to this register while the sym53c875 is executing scripts. during any memory-to-memory move operation, the contents of this register are preserved. the power-up value of this register is indeterminate. register 20 (a0) dma fifo (dfifo) read/write bits 7-0 bo7-bo0 (byte offset counter) these bits, along with bits 1-0 in the ctest5 register, indicate the amount of data trans- ferred between the scsi core and the dma core. it may be used to determine the number of bytes in the dma fifo when an interrupt occurs. these bits are unstable while data is being transferred between the two cores; once the chip has stopped transferring data, these bits are stable. since the dfifo register counts the number of bytes transferred between the dma core and the scsi core, and the dbc register counts the number of bytes transferred across the host bus, the difference between these two counters represents the number of bytes remaining in the dma fifo. the following steps will determine how many bytes are left in the dma fifo when an error occurs, regardless of the direction of the trans- fer: 1. if the dma fifo size is set to 88 bytes, subtract the seven least signi?ant bits of the dbc register from the 7-bit value of the dfifo register. if the dma fifo size is set to 536 bytes (using bit 5 of the ctest5 register), sub- tract the 10 least signi?ant bits of the dbc register from the 10-bit value of the dma fifo byte offset counter, which consists of bits 1-0 in the ctest5 register and bits 7-0 of the dma fifo register. bo7 bo6 bo5 bo4 bo3 bo2 bo1 bo0 76543210 default>>> x0000000 scsi operating registers sym53c875/875e data manual 5-29 2. if the dma fifo size is set to 88 bytes, and the result with 7fh for a byte count between zero and 64. if the dma fifo size is set to 536 bytes, and the result with 3ffh for a byte count between 0 and 536. note: to calculate the total number of bytes in both the dma fifo and scsi logic, see the section on data paths in chapter 2, ?unctional description. register 21 (a1) chip test four (ctest4) read/write bit 7 bdis (burst disable) when set, this bit will cause the sym53c875 to perform back-to-back cycles for all transfers. when reset, the sym53c875 will perform back-to-back transfers for op code fetches and burst transfers for data moves. bit 6 zmod (high impedance mode) setting this bit causes the sym53c875 to place all output and bidirectional pins into a high-impedance state. in order to read data out of the sym53c875, this bit must be cleared. this bit is intended for board-level testing only. do not set this bit during normal system oper- ation. bit 5 zsd (scsi data high impedance) setting this bit causes the sym53c875 to place the scsi data bus sd(15-0) and the par- ity lines sdp(1-0) in a high-impedance state. in order to transfer data on the scsi bus, this bit must be cleared. bit 4 srtm (shadow register test mode) setting this bit allows access to the shadow reg- isters used by memory-to-memory move oper- ations. when this bit is set, register accesses to the temp and dsa registers are directed to the shadow copies stemp (shadow temp) and sdsa (shadow dsa). the registers are shadowed to prevent them from being over- written during a memory-to-memory move operation. the dsa and temp registers con- tain the base address used for table indirect calculations, and the address pointer for a call or return instruction, respectively. this bit is bdis zmod zsd srtm mpee fbl2 fbl1 fbl0 76543210 default>>> 00000000 scsi operating registers 5-30 sym53c875/875e data manual intended for manufacturing diagnostics only and should not be set during normal opera- tions. bit 3 mpee (master parity error enable) setting this bit enables parity checking during master data phases. a parity error during a bus master read is detected by the sym53c875. a parity error during a bus master write is detected by the target, and the sym53c875 is informed of the error by the perr/ pin being asserted by the target. when this bit is reset, the sym53c875 will not interrupt if a master parity error occurs. this bit is reset at power up. bits 2-0 fbl2-fbl0 (fifo byte control) these bits steer the contents of the ctest6 register to the appropriate byte lane of the 32- bit dma fifo. if the fbl2 bit is set, then fbl1 and fbl0 determine which of four byte lanes can be read or written. when cleared, the byte lane read or written is determined by the current contents of the dnad and dbc regis- ters. each of the four bytes that make up the 32-bit dma fifo can be accessed by writing these bits to the proper value. for normal operation, fbl2 must equal zero. register 22 (a2) chip test five (ctest5) read/write bit 7 adck (clock address incrementor) setting this bit increments the address pointer contained in the dnad register. the dnad register is incremented based on the dnad contents and the current dbc value. this bit automatically clears itself after incrementing the dnad register. bit 6 bbck (clock byte counter) setting this bit decrements the byte count con- tained in the 24-bit dbc register. it is decre- mented based on the dbc contents and the current dnad value. this bit automatically clears itself after decrementing the dbc regis- ter. bit 5 dfs (dma fifo size) this bit controls the size of the dma fifo. when clear, the dma fifo will appear to be only 88 bytes deep. when set, the dma fifo size will increase to 536 bytes. using an 88- byte fifo allows software written for other sym53c8xx family chips to properly calcu- late the number of bytes residing in the chip after a target disconnect. the default value of this bit is zero. bit 4 masr (master control for set or reset pulses) this bit controls the operation of bit 3. when this bit is set, bit 3 asserts the corresponding signals. when this bit is reset, bit 3 deasserts the corresponding signals. this bit and bit 3 should not be changed in the same write cycle. fbl2 fbl1 fbl0 dma fifo byte lane pins 0 x x disabled n/a 1 0 0 0 d(7-0) 1 0 1 1 d(15-8) 1 1 0 2 d(23-16) 1 1 1 3 d(31-24) adck bbck dfs masr ddir bl2 bo9 bo8 76543210 default>>> 00000xxx scsi operating registers sym53c875/875e data manual 5-31 bit 3 ddir (dma direction) setting this bit either asserts or deasserts the internal dma write (dmawr) direction sig- nal depending on the current status of the masr bit in this register. asserting the dmawr signal indicates that data will be transferred from the scsi bus to the host bus. deasserting the dmawr signal transfers data from the host bus to the scsi bus. bit 2 bl2 (burst length bit 2) this bit works with bits 6 and 7 in the dmode register to determine the burst length. for complete de?itions of this ?ld, refer to the descriptions of dmode bits 6 and 7. this bit is disabled if an 88-byte fifo is selected by clearing the dma fifo size bit. bits 1-0 bo9-8 these are the upper two bits of the dma fifo byte offset counter. the entire ?ld is described under the dfifo register, bits 7-0. register 23 (a3) chip test six (ctest6) read/write bits 7-0 df7-df0 (dma fifo) writing to this register writes data to the appropriate byte lane of the dma fifo as determined by the fbl bits in the ctest4 register. reading this register unloads data from the appropriate byte lane of the dma fifo as determined by the fbl bits in the ctest4 register. data written to the fifo is loaded into the top of the fifo. data read out of the fifo is taken from the bottom. to pre- vent dma data from being corrupted, this reg- ister should not be accessed before starting or restarting scripts operation. this register should only be written when testing the dma fifo using the ctest4 register. writes to this register while the test mode is not enabled will have unexpected results. df7 df6 df5 df4 df3 df2 df1 df0 76543210 default>>> 00000000 scsi operating registers 5-32 sym53c875/875e data manual registers 24-26 (a4-a6) dma byte counter (dbc) read/write this 24-bit register determines the number of bytes to be transferred in a block move instruction. while sending data to the scsi bus, the counter is decremented as data is moved into the dma fifo from memory. while receiving data from the scsi bus, the counter is decremented as data is written to memory from the sym53c875. the dbc counter is decremented each time that data is trans- ferred on the pci bus. it is decremented by an amount equal to the number of bytes that were transferred. the maximum number of bytes that can be trans- ferred in any one block move command is 16,777,215 bytes. the maximum value that can be loaded into the dbc register is ffffffh. if the instruction is a block move and a value of 000000h is loaded into the dbc register, an illegal instruc- tion interrupt will occur if the sym53c875 is not in target mode, command phase. the dbc register is also used to hold the least sig- nificant 24 bits of the first dword of a script fetch, and to hold the offset value during table indi- rect i/o scripts. for a complete description, see chapter six, ?nstruction set of the i/o proces- sor.?the power-up value of this register is indeter- minate. register 27 (a7) dma command (dcmd) read/write this 8-bit register determines the instruction for the sym53c875 to execute. this register has a dif- ferent format for each instruction. for complete de- scriptions, see chapter 6, ?nstruction set of the i/o processor. scsi operating registers sym53c875/875e data manual 5-33 registers 28-2b (a8-ab) dma next address (dnad) read/write this 32-bit register contains the general purpose address pointer. at the start of some scripts op- erations, its value is copied from the dsps register. its value may not be valid except in certain abort conditions. the default value of this register is zero. this register should not be used to determine data addresses during a phase mismatch interrupt, as its value is not always correct for this use. the dbc, dfifo, and dsps registers should be used to cal- culate residual byte counts and addresses as de- scribed in the data paths section in chapter 2. registers 2c-2f (ac-af) dma scripts pointer (dsp) read/write to execute scsi scripts, the address of the first scripts instruction must be written to this regis- ter. in normal scripts operation, once the start- ing address of the script is written to this register, scripts are automatically fetched and executed until an interrupt condition occurs. in single-step mode, there is a single step interrupt after each instruction is executed. the dsp register does not need to be written with the next address, but the start dma bit (bit 2, dcntl register) must be set each time the step interrupt occurs to fetch and execute the next scripts command. when writing this register eight bits at a time, writ- ing the upper eight bits begins execution of scsi scripts. the default value of this register is zero. scsi operating registers 5-34 sym53c875/875e data manual registers 30-33 (b0-b3) dma scripts pointer save (dsps) read/write this register contains the second dword of a scripts instruction. it is overwritten each time a scripts instruction is fetched. when a scripts interrupt instruction is executed, this register holds the interrupt vector. the power-up value of this register is indeterminate. registers 34-37 (b4-b7) scratch register a (scratch a) read/write this is a general purpose, user-definable scratch pad register. apart from cpu access, only register read/write and memory moves into the scratch register will alter its contents. the sym53c875 cannot fetch scripts instructions from this location. when bit 3 in the ctest2 reg- ister is set, this register contains the memory- mapped base address of the operating registers. setting ctest2 bit 3 only causes the base address to appear in this register; any information that was previously in the register will remain intact. any writes to this register while ctest2 bit 3 is set will pass through to the actual scratcha register. the power-up value of this register is indetermi- nate. scsi operating registers sym53c875/875e data manual 5-35 register 38 (b8) dma mode (dmode) read/write bit 7-6 bl1-bl0 (burst length) these bits control the maximum number of transfers performed per bus ownership, regard- less of whether the transfers are back-to-back, burst, or a combination of both. the sym53c875 asserts the bus request (req/) output when the dma fifo can accommo- date a transfer of at least one burst size of data. bus request (req/) is also asserted during start-of-transfer and end-of-transfer cleanup and alignment, even though less than a full burst of transfers may be performed. the sym53c875 inserts a ?airness delay of four clks between burst-length transfers (as set in bl1-0) during normal operation. the fairness delay is not inserted during pci retry cycles. this gives the cpu and other bus master devices the opportunity to access the pci bus between bursts. bit 5 siom (source i/o-memory enable) this bit is de?ed as an i/o memory enable bit for the source address of a memory move or block move command. if this bit is set, then the source address is in i/o space; and if reset, then the source address is in memory space. this function is useful for register-to-memory operations using the memory move instruc- tion when the sym53c875 is i/o mapped. bits 4 and 5 of the ctest2 register can be used to determine the con?uration status of the sym53c875. bit 4 diom (destination i/o-memory enable) this bit is de?ed as an i/o memory enable bit for the destination address of a memory move or block move command. if this bit is set, then the destination address is in i/o space; and if reset, then the destination address is in memory space. this function is useful for memory- to- register operations using the memory move instruc- tion when the sym53c875 is i/o mapped. bits 4 and 5 of the ctest2 register can be used to determine the con?uration status of the sym53c875. bit 3 erl (enable read line) this bit enables a pci read line command. if pci cache mode is enabled by setting bits in the pci cache line size register, this chip issues a read line command on all read cycles if other conditions are met. for more informa- tion on these conditions, refer to chapter 3. bit 2 ermp (enable read multiple) this bit, when set, will cause read multiple commands to be issued on the pci bus after certain conditions have been met. these condi- tions are described in chapter 3. bl1 bl0 siom diom er ermp bof man 76543210 default>>> 00000000 bl2 (ctest5 bit 2) bl1 bl0 burst length 0 0 0 2- transfer burst 0 0 1 4- transfer burst 0 1 0 8-transfer burst 0 1 1 16-transfer burst 1 0 0 32-transfer burst* 1 0 1 64-transfer burst* 1 1 0 128-transfer burst* 1 1 1 reserved * only valid of the fifo size is set to 536 bytes scsi operating registers 5-36 sym53c875/875e data manual bit 1 bof (burst op code fetch enable) setting this bit causes the sym53c875 to fetch instructions in burst mode. speci?ally, the chip will burst in the ?st two dwords of all instructions using a single bus ownership. if the instruction is a memory-to-memory move type, the third dword will be accessed in a sub- sequent bus ownership. if the instruction is an indirect type, the additional dword will be accessed in a subsequent bus ownership. if the instruction is a table indirect block move type, the chip will access the remaining two dwords in a subsequent bus ownership, thereby fetch- ing the four dwords required in two bursts of two dwords each. this bit has no effect if scripts instruction prefetching is enabled. bit 0 man (manual start mode) setting this bit prevents the sym53c875 from automatically fetching and executing scsi scripts when the dsp register is written. when this bit is set, the start dma bit in the dcntl register must be set to begin scripts execution. clearing this bit causes the sym53c875 to automatically begin fetch- ing and executing scsi scripts when the dsp register is written. this bit normally is not used for scsi scripts operations. register 39 (b9) dma interrupt enable (dien) read/write this register contains the interrupt mask bits corre- sponding to the interrupting conditions described in the dstat register. an interrupt is masked by clearing the appropriate mask bit. masking an in- terrupt prevents irq/ from being asserted for the corresponding interrupt, but the status bit will still be set in the dstat register. masking an interrupt will not prevent the istat dip from being set. all dma interrupts are considered fatal, therefore scripts will stop running when this condition occurs, whether or not the interrupt is masked. set- ting a mask bit enables the assertion of irq/ for the corresponding interrupt. (a masked non-fatal in- terrupt will not prevent un-masked or fatal inter- rupts from getting through; interrupt stacking begins when either the istat sip or dip bit is set.) the sym53c875 irq/ output is latched; once as- serted, it will remain asserted until the interrupt is cleared by reading the appropriate status register. masking an interrupt after the irq/ output is as- serted will not cause irq/ to be deasserted. for more information on interrupts, see chapter 2, ?unctional description. bit 7 reserved bit 6 mdpe (master data parity error) bit 5 bf (bus fault) bit 4 abrt (aborted) bit 3 ssi (single -step interrupt) bit 2 sir (scripts interrupt instruction received bit 1 ebpe (extended byte parity enable) (sym53c875n only) bit 0 iid (illegal instruction detected) res mdpe bf abrt ssi sir res iid 76543210 default>>> x00000x0 scsi operating registers sym53c875/875e data manual 5-37 register 3a (ba) scratch byte register (sbr) read/write this is a general purpose register. apart from cpu access, only register read/write and memory moves into this register will alter its contents. the default value of this register is zero. this register was called the dma watchdog timer on previous sym53c8xx family products. register 3b (bb) dma control (dcntl) read/write bit 7 clse (cache line size enable) setting this bit enables the sym53c875 to sense and react to cache line boundaries set up by the dmode or pci cache line size regis- ter, whichever contains the smaller value. clearing this bit disables the cache line size logic and the sym53c875 monitors the cache line size via the dmode register. bit 6 pff (pre-fetch flush) setting this bit will cause the pre-fetch unit to ?sh its contents. the bit will reset after the ?sh is complete. bit 5 pfen (pre-fetch enable) setting this bit enables the pre-fetch unit if the burst size is equal to or greater than four. for more information on scripts instruction prefetching, see chapter 2. bit 4 ssm (single-step mode) setting this bit causes the sym53c875 to stop after executing each scripts instruction, and generate a single step interrupt. when this bit is clear, the sym53c875 will not stop after each instruction; instead it continues fetching and executing instructions until an interrupt condition occurs. for normal scsi scripts operation, this bit should be clear. to restart the sym53c875 after it generates a scripts step interrupt, the istat and dstat regis- ters should be read to recognize and clear the interrupt and then the start dma bit in this register should be set. clse pff pfen ssm irqm std irqd com 76543210 default>>> 00000000 scsi operating registers 5-38 sym53c875/875e data manual bit 3 irqm (irq mode) when set, this bit will enable a totem pole driver for the irq pin. when reset, this bit will enable an open drain driver for the irq pin with a internal weak pull-up. this bit is reset at power up. the bit should remain clear to retain full pci compliance. bit 2 std (start dma operation) the sym53c875 fetches a scsi scripts instruction from the address contained in the dsp register when this bit is set. this bit is required if the sym53c875 is in one of the following modes: 1. manual start mode ?bit 0 in the dmode register is set 2. single-step mode ?bit 4 in the dcntl register is set when the sym53c875 is executing scripts in manual start mode, the start dma bit needs to be set to start instruction fetches, but does not need to be set again until an interrupt occurs. when the sym53c875 is in single- step mode, the start dma bit needs to be set to restart execution of scripts after a single- step interrupt. bit 1 irqd (irq disable) setting this bit disables the irq pin; clearing the bit enables normal operation. as with any other register other than istat, this register cannot be accessed except by a scripts instruction during scripts execution. for more information on the use of this bit in inter- rupt handling, see chapter 2. bit 0 com (53c700 compatibility) when this bit is clear, the sym53c875 will behave in a manner compatible with the sym53c700; selection/reselection ids will be stored in both the ssid and sfbr registers. when this bit is set, the id will be stored only in the ssid register, protecting the sfbr from being overwritten if a selection/reselection occurs during a dma register-to-register oper- ation. this bit is not affected by a software reset. scsi operating registers sym53c875/875e data manual 5-39 register 3c-3f (bc-bf) adder sum output (adder) read only this register contains the output of the internal adder, and is used primarily for test purposes. the power-up value for this register is indeterminate. register 40 (c0) scsi interrupt enable zero (sien0) read/write this register contains the interrupt mask bits corre- sponding to the interrupting conditions described in the sist0 register. an interrupt is masked by clearing the appropriate mask bit. for more infor- mation on interrupts, see chapter 2. bit 7 m/a (scsi phase mismatch - initiator mode; scsi atn condition - target mode) in initiator mode, this bit is set when the scsi phase asserted by the target and sampled dur- ing sreq/ does not match the expected phase in the socl register. this expected phase is automatically written by scsi scripts. in target mode, this bit is set when the initiator has asserted satn/. see the disable halt on parity error or satn/ condition bit in the scntl1 register for more information on when this status is actually raised. bit 6 cmp (function complete) full arbitration and selection sequence has completed. bit 5 sel (selected) the sym53c875 has been selected by a scsi target device. the enable response to selec- tion bit in the scid register must be set for this to occur. bit 4 rsl (reselected) the sym53c875 has been reselected by a scsi initiator device. the enable response to reselection bit in the scid register must be set for this to occur. m/a cmp sel rsl sge udc rst par 76543210 default>>> 00000000 scsi operating registers 5-40 sym53c875/875e data manual bit 3 sge (scsi gross error) the following conditions are considered scsi gross errors: 1. data under?w - the scsi fifo was read when no data was present. 2. data over?w - the scsi fifo was written to while full. 3. offset under?w - in target mode, a sack/ pulse was received before the corresponding sreq/ was sent. 4. offset over?w - in initiator mode, an sreq/ pulse was received which caused the maximum offset (de?ed by the mo3- 0 bits in the sxfer register) to be exceeded. 5. in initiator mode, a phase change occurred with an outstanding sreq/sack offset. 6. residual data in scsi fifo - a transfer other than synchronous data receive was started with data left in the scsi synchronous receive fifo. bit 2 udc (unexpected disconnect) this condition only occurs in initiator mode. it happens when the target to which the sym53c875 is connected disconnects from the scsi bus unexpectedly. see the scsi dis- connect unexpected bit in the scntl2 regis- ter for more information on expected versus unexpected disconnects. any disconnect in low level mode causes this condition. bit 1 rst (scsi reset condition) the srst/ signal has been asserted by the sym53c875 or any other scsi device. this condition is edge-triggered, so multiple inter- rupts cannot occur because of a single srst/ pulse. bit 0 par (scsi parity error) the sym53c875 detected a parity error while receiving or sending scsi data. see the dis- able halt on parity error or satn/ condition bits in the scntl1 register for more informa- tion on when this condition will actually be raised. scsi operating registers sym53c875/875e data manual 5-41 register 41 (c1) scsi interrupt enable one (sien1) read/write this register contains the interrupt mask bits corre- sponding to the interrupting conditions described in the sist1 register. an interrupt is masked by clearing the appropriate mask bit. for more infor- mation on interrupts, refer to chapter 2, ?unc- tional description. bits 7-3 reserved bit 2 sto (selection or reselection time- out) the scsi device which the sym53c875 was attempting to select or reselect did not respond within the programmed time-out period. see the description of the stime0 register bits 3-0 for more information on the time-out timer. bit 1 gen (general purpose timer expired) the general purpose timer has expired. the time measured is the time between enabling and disabling of the timer. see the description of the stime1 register, bits 3-0, for more information on the general purpose timer. bit 0 hth ( handshake-to-handshake timer expired) the handshake-to-handshake timer has expired. the time measured is the scsi request-to-request (target) or acknowledge- to-acknowledge (initiator) period. see the description of the stime0 register, bits 7-4, for more information on the handshake-to- handshake timer. res res res res res sto gen hth 76543210 default>>> xxxxx000 register 42 (c2) scsi interrupt status zero (sist0) read only reading the sist0 register returns the status of the various interrupt conditions, whether they are en- abled in the sien0 register or not. each bit set in- dicates that the corresponding condition has occurred. reading the sist0 will clear the inter- rupt status. reading this register will clear any bits that are set at the time the register is read, but will not neces- sarily clear the register because additional inter- rupts may be pending (the sym53c875 stacks interrupts). scsi interrupt conditions may be indi- vidually masked through the sien0 register. when performing consecutive 8-bit reads of the dstat, sist0, and sist1 registers (in any or- der), insert a delay equivalent to 12 clk periods between the reads to ensure the interrupts clear properly. also, if reading the registers when both the istat sip and dip bits may not be set, the sist0 and sist1 registers should be read before the dstat register to avoid missing a scsi inter- rupt. for more information on interrupts, refer to chapter 2, ?unctional description. bit 7 m/a (initiator mode: phase mis- match; target mode: satn/ active) in initiator mode, this bit is set if the scsi phase asserted by the target does not match the instruction. the phase is sampled when sreq/ is asserted by the target. in target mode, this bit is set when the satn/ signal is asserted by the initiator. bit 6 cmp (function complete) this bit is set when an arbitration only or full arbitration sequence has completed. m/a cmp sel rsl sge udc rst par 76543210 default>>> 00000000 scsi operating registers 5-42 sym53c875/875e data manual bit 5 sel (selected) this bit is set when the sym53c875 is selected by another scsi device. the enable response to selection bit must have been set in the scid register (and the respid register must hold the chip s id) for the sym53c875 to respond to selection attempts. bit 4 rsl (reselected) this bit is set when the sym53c875 is rese- lected by another scsi device. the enable response to reselection bit must have been set in the scid register (and the respid register must hold the chip s id) for the sym53c875 to respond to reselection attempts. bit 3 sge (scsi gross error) this bit is set when the sym53c875 encoun- ters a scsi gross error condition. the fol- lowing conditions can result in a scsi gross error condition: 1. data under?w - the scsi fifo register was read when no data was present. 2. data over?w - too many bytes were written to the scsi fifo or the synchronous offset caused the scsi fifo to be overwritten. 3. offset under?w - the sym53c875 is operating in target mode and a sack/ pulse is received when the outstanding offset is zero. 4. offset over?w - the other scsi device sent a sreq/ or sack/ pulse with data which exceeded the maximum synchronous offset de?ed by the sxfer register. 5. a phase change occurred with an outstanding synchronous offset when the sym53c875 was operating as an initiator. 6. residual data in the synchronous data fifo - a transfer other than synchronous data receive was started with data left in the synchronous data fifo. bit 2 udc (unexpected disconnect) this bit is set when the sym53c875 is operat- ing in initiator mode and the target device unexpectedly disconnects from the scsi bus. this bit is only valid when the sym53c875 operates in the initiator mode. when the sym53c875 operates in low level mode, any disconnect will cause an interrupt, even a valid scsi disconnect. this bit will also be set if a selection time-out occurs (it may occur before, at the same time, or stacked after the sto interrupt, since this is not considered an expected disconnect). bit 1 rst (scsi rst/ received) this bit is set when the sym53c875 detects an active srst/ signal, whether the reset was generated external to the chip or caused by the assert srst/ bit in the scntl1 register. this sym53c875 scsi reset detection logic is edge-sensitive, so that multiple interrupts will not be generated for a single assertion of the srst/ signal. bit 0 par (parity error) this bit is set when the sym53c875 detects a parity error while receiving scsi data. the enable parity checking bit (bit 3 in the scntl0 register) must be set for this bit to become active. the sym53c875 always gen- erates parity when sending scsi data. scsi operating registers sym53c875/875e data manual 5-43 register 43 (c3) scsi interrupt status one (sist1) read only reading the sist1 register returns the status of the various interrupt conditions, whether they are en- abled in the sien1 register or not. each bit that is set indicates the corresponding condition has oc- curred. reading the sist1 will clear the interrupt condi- tion. bits 7-3 reserved bit 2 sto (selection or reselection time-out) the scsi device which the sym53c875 was attempting to select or reselect did not respond within the programmed time-out period. see the description of the stime0 register, bits 3- 0, for more information on the time-out timer. bit 1 gen (general purpose timer expired) this bit is set when the general purpose timer has expired. the time measured is the time between enabling and disabling of the timer. see the description of the stime1 register, bits 3-0, for more information on the general purpose timer. bit 0 hth (handshake-to-handshake timer expired) this bit is set when the handshake-to-hand- shake timer has expired. the time measured is the scsi request-to-request (target) or acknowledge-to-acknowledge (initiator) period. see the description of the stime0 register, bits 7-4, for more information on the handshake-to-handshake timer. register 44 (c4) scsi longitudinal parity (slpar) read/write the slpar register consists of two multiplexed bytes; other register bit settings determine what is displayed at this memory location at any given time. when bit 5 in the scntl2 (slpmd) register is cleared, the chip xors the high and low bytes of the slpar register together to give a single-byte value which is displayed in the slpar register. if the slpmd bit is set, then the slpar register shows either the high byte or the low byte of the slpar word. the slpar high byte enable bit, scntl2 bit 4, determines which byte of the slpar register is visible on the slpar register at any given time. if this bit is cleared, the slpar reg- ister contains the low byte of the slpar word; if it is set, the slpar register contains the high byte of the slpar word. this register performs a bytewise longitudinal par- ity check on all scsi data received or sent through the scsi core. if one of the bytes received or sent (usually the last) is the set of correct even parity bits, slpar should go to zero (assuming it started at zero). as an example, suppose that the following three data bytes and one check byte are received from the scsi bus (all signals are shown active high): a one in any bit position of the final slpar value would indicate a transmission error. the slpar register can also be used to generate the check bytes for scsi send operations. if the slpar register contains all zeros prior to sending res res res res res sto gen hth 76543210 default>>> xxxxx000 data bytes running slpar --- 00000000 1. 11001100 11001100 (xor of word 1) 2. 01010101 10011001 (xor of word 1 and 2) 3. 00001111 10010110 (xor of word 1, 2 and 3) even parity >>>10010110 4. 10010110 00000000 scsi operating registers 5-44 sym53c875/875e data manual a block move, it will contain the appropriate check byte at the end of the block move. this byte must then be sent across the scsi bus. note: writing any value to this register resets it to zero. the longitudinal parity checks are meant to provide an added measure of scsi data integrity and are entirely optional. this register does not latch scsi selection/reselection ids under any circumstances. the default value of this register is zero. register 45 (c5) scsi wide residue (swide) read/write after a wide scsi data receive operation, this reg- ister will contain a residual data byte if the last byte received was never sent across the dma bus. it represents either the first data byte of a subsequent data transfer, or it is a residue byte which should be cleared when an ignore wide residue message is received. it may also be an overrun data byte. the power-up value of this register is indeterminate. scsi operating registers sym53c875/875e data manual 5-45 register 46 (c6) memory access control (macntl) read/write bits 7-4 typ3-0 (chip type) these bits identify the chip type for software purposes. this data manual applies to devices that have these bits set to 07h. bits 3 through 0 of this register are used to deter- mine if an external bus master access is to local or far memory. when bits 3 through 0 are set, the cor- responding access is considered local and the mac/_testout pin is driven high. when these bits are clear, the corresponding access is to far memory and the mac/_testout pin is driven low. this function is enabled after a transfer con- trol scripts instruction is executed. bit 3 dwr (datawr) this bit is used to de?e if a data write is con- sidered local memory access. bit 2 drd (datard) this bit is used to de?e if a data read is con- sidered local memory access. bit 1 pscpt (pointer scripts) this bit is used to de?e if a pointer to a scripts indirect or table indirect fetch is considered local memory access. bit 0 scpts (scripts) this bit is used to de?e if a scripts fetch is considered local memory access. register 47 (c7) general purpose pin control (gpcntl) read/write this register is used to determine if the pins con- trolled by the general purpose register (gpreg) are inputs or outputs. bits 4-0 in gpcntl corre- spond to bits 4-0 in the gpreg register. when the bits are enabled as inputs, an internal pull-up is also enabled. bit 7 master enable the internal bus master signal will be pre- sented on gpio1 if this bit is set, regardless of the state of bit 1 (gpio1_en). bit 6 fetch enable the internal op code fetch signal will be pre- sented on gpio0 if this bit is set, regardless of the state of bit 0 (gpio0_en). bit 5 reserved bits 4-2 gpio4_en gpio2_en (gpio enable) the general purpose control bits correspond to bits 4-2 in the gpreg register and pins 60, 59, and 57. gpio4 powers up as a general purpose output, and gpio3-2 power up as general purpose inputs. bits 1-0 gpio1_en gpio0_en (gpio enable) these bits power up set, causing the gpio1 and gpio0 pins to become inputs. resetting these bits causes gpio1-0 to become outputs. typ3 typ2 typ1 typ0 dwr drd pscpt scpts 76543210 default>>> 01110000 me fe res gpio4 gpio3 gpio2 gpio1 gpio0 76543210 default>>> 00x01111 scsi operating registers 5-46 sym53c875/875e data manual register 48 (c8) scsi timer zero (stime0) read /write bits 7-4 hth (handshake-to-handshake timer period) these bits select the handshake-to-handshake time-out period, the maximum time between scsi handshakes (sreq/ to sreq/ in target mode, or sack/ to sack/ in initiator mode). when this timing is exceeded, an interrupt is generated and the hth bit in the sist1 regis- ter is set. the following table contains time-out periods for the handshake-to-handshake timer, the selection/reselection timer (bits 3- 0), and the general purpose timer (stime1 bits 3-0). for a more detailed explanation of interrupts, refer to chapter 2, ?unctional description. bits 3-0 sel (selection time-out) these bits select the scsi selection/reselection time-out period. when this timing (plus the 200 m s selection abort time) is exceeded, the sto bit in the sist1 register is set. for a more detailed explanation of interrupts, refer to chapter 2, ?unctional description. hth hth hth hrh sel sel sel sel 76543210 default>>> 00000000 hth 7-4, sel 3-0, gen 3-0 minimum time-out) 40 mhz/80 mhz 50 mhz 0000 disabled disabled 0001 125 m s 100 m s 0010 250 m s 200 m s 0011 500 m s 400 m s 0100 1 ms 800 m s 0101 2 ms 1.6 ms 0110 4 ms 3.2 ms 0111 8 ms 6.4 ms 1000 16 ms 12.8 ms 1001 32 ms 25.6 ms 1010 64 ms 51.2 ms 1011 128 ms 102.4 ms these values will be correct if the ccf bits in the scntl3 register are set according to the valid combinations in the bit description. 1100 256 ms 204.8 ms 1101 512 ms 409.6 ms 1110 1.024 sec 819.2 ms 1111 2.048 sec 1.6384 sec hth 7-4, sel 3-0, gen 3-0 minimum time-out) 40 mhz/80 mhz 50 mhz these values will be correct if the ccf bits in the scntl3 register are set according to the valid combinations in the bit description. scsi operating registers sym53c875/875e data manual 5-47 register 49 (c9) scsi timer one (stime1) read/write bit 7 reserved bit 6 hthba (handshake-to-handshake timer bus activity enable) setting this bit causes this timer to begin test- ing for scsi req/ack activity as soon as sbsy/ is asserted, regardless of the agents par- ticipating in the transfer. bit 5 gensf (general purpose timer scale factor) setting this bit causes this timer to shift by a factor of 16. bit 4 hthsf (handshake to handshake timer scale factor) setting this bit causes this timer to shift by a factor of 16. bits 3-0 gen3-0 (general purpose timer period) res hthba gensf hthsf gen3 gen2 gen1 gen0 76543210 default>>> x0000000 hth 7-4, sel 3-0, gen 3-0 minimum time-out (50 mhz clock) gensf= 0 gensf=1 0000 disabled disabled 0001 100 m s 1.6 ms 0010 200 m s 3.2 ms 0011 400 m s 6.4 ms 0100 800 m s 12.8 ms 0101 1.6 ms 25.6 ms 0110 3.2 ms 51.2 ms 0111 6.4 ms 102.4 ms 1000 12.8 ms 204.8 ms 1001 25.6 ms 409.6 ms 1010 51.2 ms 819.2 ms 1011 102.4 ms 1.6 sec 1100 204.8 ms 3.2 sec 1101 409.6 ms 6.4 sec these values will be correct if the ccf bits in the scntl3 register are set according to the valid combinations in the bit description. 1110 819.2 ms 12.8 sec 1111 1.6 sec 25.6 sec hth 7-4, sel 3-0, gen 3-0 minimum time-out (80 mhz clock) gensf= 0 gensf=1 0000 disabled disabled 0001 125 m s 2 ms 0010 250 m s 4 ms 0011 500 m s 8 ms 0100 1 m s 16 ms 0101 2 ms 32 ms 0110 4 ms 64 ms 0111 8 ms 128 ms 1000 16 ms 256 ms 1001 32 ms 512 ms 1010 64 ms 1 sec 1011 128 ms 2 sec 1100 256 ms 4.1 sec 1101 512 ms 8.2 sec 1110 1.024 sec 16.4 sec 1111 2.048 sec 32.8 sec these values will be correct if the ccf bits in the scntl3 register are set according to the valid combinations in the bit description. hth 7-4, sel 3-0, gen 3-0 minimum time-out (50 mhz clock) gensf= 0 gensf=1 these values will be correct if the ccf bits in the scntl3 register are set according to the valid combinations in the bit description. scsi operating registers 5-48 sym53c875/875e data manual these bits select the period of the general pur- pose timer. the time measured is the time between enabling and disabling of the timer. when this timing is exceeded, the gen bit in the sist1 register is set. refer to the table under stime0, bits 3-0, for the available time-out periods. note: to reset a timer before it has expired and obtain repeatable delays, the time value must be written to zero ?st, and then written back to the desired value. this is also required when changing from one time value to another. see chapter 2, ?unctional description, for an explanation of how interrupts will be generated when the timers expire. scsi operating registers sym53c875/875e data manual 5-49 register 4a (ca) response id zero (respid0) read/write register 4b (cb) response id one(respid1) read/write respid0 and respid1 contain the selection or reselection ids. in other words, these two 8-bit reg- isters contain the id that the chip responds to on the scsi bus. each bit represents one possible id with the most significant bit of respid1 repre- senting id 15 and the least significant bit of respid0 representing id 0. the scid register still contains the chip id used during arbitration. the chip can respond to more than one id because more than one bit can be set in the respid1 and respid0 registers. however, the chip can arbi- trate with only one id value in the scid register. register 4c (cc) scsi test zero (stest0) read only bits 7-4 ssaid (scsi selected as id) these bits contain the encoded value of the scsi id that the sym53c875 was selected or reselected as during a scsi selection or rese- lection phase. these bits are read only and contain the encoded value of 0-15 possible ids that could be used to select the sym53c875. during a scsi selection or reselection phase when a valid id has been put on the bus, and the sym53c875 responds to that id, the ?elected as id is written into these bits. these bits are used with the respid registers to allow response to multiple ids on the bus. bit 3 slt (selection response logic test) this bit is set when the sym53c875 is ready to be selected or reselected. this does not take into account the bus settle delay of 400 ns. this bit is used for functional test and fault purposes. bit 2 art (arbitration priority encoder test) this bit will always be set when the sym53c875 exhibits the highest priority id asserted on the scsi bus during arbitration. it is primarily used for chip level testing, but it may be used during low level mode operation to determine if the sym53c875 has won arbi- tration. bit 1 soz (scsi synchronous offset zero) this bit indicates that the current synchronous sreq/sack offset is zero. this bit is not latched and may change at any time. it is used in low level synchronous scsi operations. ssaid3 ssaid2 ssaid1 ssaid0 slt art soz som 76543210 default>>> 00000x11 scsi operating registers 5-50 sym53c875/875e data manual when this bit is set, the sym53c875, as an initiator, is waiting for the target to request data transfers. if the sym53c875 is a target, then the initiator has sent the offset number of acknowledges. bit 0 som (scsi synchronous offset maximum) this bit indicates that the current synchronous sreq/sack offset is the maximum speci?d by bits 3-0 in the scsi transfer register. this bit is not latched and may change at any time. it is used in low level synchronous scsi opera- tions. when this bit is set, the sym53c875, as a target, is waiting for the initiator to acknowl- edge the data transfers. if the sym53c875 is an initiator, then the target has sent the offset number of requests. register 4d (cd) scsi test one (stest1) read/write bit 7 sclk this bit, when set, will disable the external sclk (scsi clock) pin, and the chip will use the pci clock as the internal scsi clock. if a transfer rate of 10 mb/s (or 20 mb/s on a wide scsi bus) is to be achieved on the scsi bus, this bit must be reset and at least a 40 mhz external sclk must be provided. bit 6 siso (scsi isolation mode) this bit allows the sym53c875 to put the scsi bi-directional and input pins into a low power mode when the scsi bus is not in use. when this bit is set, the scsi bus inputs are logically isolated from the scsi bus. bits 5-0 reserved bits 6-4 reserved bit 3 sclk doubler enable (dblen) set this bit to bring the scsi clock doubler out of the powered-down state. the default value of this bit is clear (scsi clock doubler powered down). set bit 2 after setting this bit, to double the sclk frequency. bit 2 sclk doubler select (dblsel) set this bit after powering up the scsi clock doubler to double the sclk frequency. this bit has no effect unless bit 3 is set. bits1-0 reserved sclk siso res res res res res res 76543210 default>>> 00xxxxxx scsi operating registers sym53c875/875e data manual 5-51 doubling the scsi clk frequency the sym53c875 scsi clock doubler doubles a 40 mhz scsi clock, increasing the frequency to 80 mhz. follow these steps to use the clock dou- bler: 1. set the sclk doubler enable bit (stest1, bit 3) 2. wait 20 m s 3. halt the scsi clock by setting the halt scsi clock bit (stest3 bit 5) 4. set the clock conversion factor using the scf and ccf ?lds in the scntl3 register 5. set the sclk doubler select bit (stest1, bit2) 6. clear the halt scsi clock bit register 4e (ce) scsi test two (stest2) read/write bit 7 sce (scsi control enable) this bit, when set, allows all scsi control and data lines to be asserted through the socl and sodl registers regardless of whether the sym53c875 is con?ured as a target or initia- tor. note: this bit should not be set during normal operation, since it could cause contention on the scsi bus. it is included for diagnostic purposes only. bit 6 rof (reset scsi offset) setting this bit clears any outstanding synchro- nous sreq/sack offset. this bit should be set if a scsi gross error condition occurs, to clear the offset when a synchronous transfer does not complete successfully. the bit auto- matically clears itself after resetting the syn- chronous offset. bit 5 dif (scsi differential mode) setting this bit allows the sym53c875 to interface properly to external differential trans- ceivers. its only real effect is to tri-state the sbsy/, ssel/, and srst/ pads so that they can be used as pure inputs. clearing this bit enables single-ended mode operation. this bit should be set in the initialization routine if the differential pair interface is used. bit 4 slb (scsi loopback mode) setting this bit allows the sym53c875 to per- form scsi loopback diagnostics. that is, it enables the scsi core to simultaneously per- form as both initiator and target. sce rof dif slb szm aws ext low 76543210 default>>> 00000000 scsi operating registers 5-52 sym53c875/875e data manual bit 3 szm (scsi high-impedance mode) setting this bit places all the open-drain 48 ma scsi drivers into a high-impedance state. this is to allow internal loopback mode operation without affecting the scsi bus. bit 2 aws (always wide scsi) when this bit is set, all scsi information transfers will be done in 16-bit wide mode. this includes data, message, command, status and reserved phases. this bit should normally be deasserted since 16-bit wide message, com- mand, and status phases are not supported by the scsi speci?ations. bit 1 ext (extend sreq/sack filter- ing) symbios tolerant scsi receiver technology includes a special digital ?ter on the sreq/ and sack/ pins which will cause glitches on deasserting edges to be disregarded. setting this bit will increase the ?tering period from 30ns to 60ns on the deasserting edge of the sreq/ and sack/ signals. note: this bit must never be set during fast scsi (greater than 5m transfers per second) operations, because a valid assertion could be treated as a glitch. note: this bit does not affect the ?tering period when the ultra enable bit in the scntl3 register is set. when the sym53c875 is executing ultra scsi transfers, the ?tering period is automatically set at 15 ns. bit 0 low (scsi low level mode) setting this bit places the sym53c875 in low level mode. in this mode, no dma operations occur, and no scripts execute. arbitration and selection may be performed by setting the start sequence bit as described in the scntl0 register. scsi bus transfers are performed by manually asserting and polling scsi signals. clearing this bit allows instructions to be exe- cuted in scsi scripts mode. note: it is not necessary to set this bit for access to the scsi bit-level registers (sodl, sbcl, and input registers). scsi operating registers sym53c875/875e data manual 5-53 register 4f (cf) scsi test three (stest3) read/write bit 7 te (tolerant enable) setting this bit enables the active negation por- tion of symbios tolerant technology. active negation causes the scsi request, acknowl- edge, data, and parity signals to be actively deasserted, instead of relying on external pull- ups, when the sym53c875 is driving these signals. active deassertion of these signals will occur only when the sym53c875 is in an information transfer phase. when operating in a differential environment or at fast scsi tim- ings, tolerant active negation should be enabled to improve setup and deassertion times. active negation is disabled after reset or when this bit is cleared. for more information on symbios tolerant technology, refer to chapter 1. note: this bit must be set if the enable fast 20 bit in scntl3 is set. bit 6 str (scsi fifo test read) setting this bit places the scsi core into a test mode in which the scsi fifo can be easily read. reading the least signi?ant byte of the sodl register will cause the fifo to unload. the functions are summarized in the table below. bit 5 hsc (halt scsi clock) asserting this bit causes the internal divided scsi clock to come to a stop in a glitchless manner. this bit may be used for test purposes or to lower i dd during a power down mode. this bit is used when the scsi clock doubler is operating. for additional information on the clock doubler, please see chapter 2. bit 4 dsi (disable single initiator response) if this bit is set, the sym53c875 will ignore all bus-initiated selection attempts that employ the single-initiator option from scsi-1. in order to select the sym53c875 while this bit is set, the sym53c875 s scsi id and the ini- tiator s scsi id must both be asserted. this bit should be asserted in scsi-2 systems so that a single bit error on the scsi bus will not be interpreted as a single initiator response. bit 3 s16 (16-bit system) if this bit is set, all devices in the scsi system implementation are assumed to be 16 bits. this causes the sym53c875 to always check the parity bit for scsi ids 15-8 during bus-initi- ated selection or reselection, assuming parity checking has been enabled. if an 8-bit scsi device attempts to select the sym53c875 while this bit is set, the sym53c875 will ignore the selection attempt, because the parity bit for ids 15-8 will be undriven. see the description of the enable parity checking bit in the scntl0 register for more information. bit 2 ttm (timer test mode) asserting this bit facilitates testing of the selec- tion time-out, general purpose, and hand- shake-to-handshake timers by greatly reducing all three time-out periods. setting this bit starts all three timers and if the respective bits in the sien1 register are asserted, the sym53c875 will generate interrupts at time-out. this bit is intended for internal manufacturing diagnosis and should not be used. te str hsc dsi s16 ttm csf stw 76543210 default>>> 00000000 register name register operation fifo bits fifo function sodl read 15-0 unload sodl0 read 7-0 unload sodl1 read 15-8 none scsi operating registers 5-54 sym53c875/875e data manual bit 1 csf (clear scsi fifo) setting this bit will cause the ?ull ?gs for the scsi fifo to be cleared. this empties the fifo. this bit is self-resetting. in addition to the scsi fifo pointers, the sidl, sodl, and sodr full bits in the sstat0 and sstat2 are cleared. bit 0 stw (scsi fifo test write) setting this bit places the scsi core into a test mode in which the fifo can easily be read or written. while this bit is set, writes to the least signi?ant byte of the sodl register will cause the entire word contained in this register to be loaded into the fifo. writing the least signi? cant byte of the sodl register will cause the fifo to load. these functions are summarized in the table below: register 50-51 (d0-d1) scsi input data latch (sidl) read only this register is used primarily for diagnostic testing, programmed i/o operation, or error recovery. data received from the scsi bus can be read from this register. data can be written to the sodl register and then read back into the sym53c875 by read- ing this register to allow loopback testing. when re- ceiving scsi data, the data flows into this register and out to the host fifo. this register differs from the sbdl register; sidl contains latched data and the sbdl always contains exactly what is currently on the scsi data bus. the power-up value of this register is indeterminate. register name register operation fifo bits fifo function sodl write 15-0 load sodl0 write 7-0 load sodl1 write 15-8 none scsi operating registers sym53c875/875e data manual 5-55 registers 54-55 (d4-d5) scsi output data latch (sodl) read/write this register is used primarily for diagnostic testing or programmed i/o operation. data written to this register is asserted onto the scsi data bus by set- ting the assert data bus bit in the scntl1 regis- ter. this register is used to send data via programmed i/o. data flows through this register when sending data in any mode. it is also used to write to the synchronous data fifo when testing the chip. the power-up value of this register is in- determinate. registers 58-59 (d8-d9) scsi bus data lines (sbdl) read only this register contains the scsi data bus status. even though the scsi data bus is active low, these bits are active high. the signal status is not latched and is a true representation of exactly what is on the data bus at the time the register is read. this regis- ter is used when receiving data via programmed i/o. this register can also be used for diagnostic testing or in low level mode. if the chip is in wide mode (scntl3 bit 3, stest2 bit 2) and sbdl is read, both byte lanes are checked for parity regardless of phase. when in a non-data phase, this will cause a parity error inter- rupt to be generated because upper byte lane parity is invalid. scsi operating registers 5-56 sym53c875/875e data manual registers 5c-5f (dc-df) scratch register b (scratchb) (read/write) this is a general purpose user definable scratch pad register. apart from cpu access, only register read/write and memory moves directed at the scratch register will alter its contents. the sym53c875 cannot fetch scripts instructions from this location.when bit 3 in the ctest2 reg- ister is set, this register contains the base address for the 4 kb internal ram. setting ctest2 bit 3 only causes the base address to appear in the scratchb register; any information that was previously in the register will remain intact. any writes to this register while the bit is set will pass through to the actual scratchb register. the power-up values are indeterminate. registers 60h-7fh (e0h-ffh) scratch registers c-j (scratchc-scratchj) read/write these registers are general-purpose scratch regis- ters for user-defined functions. the sym53c875 cannot fetch scripts instructions from this loca- tion.the power-up value of these registers is inde- terminate. instruction set of the i/o processor scsi scripts sym53c875/875e data manual 6-1 chapter 6 instruction set of the i/o processor after power up and initialization of the sym53c875, the chip may be operated in the low level register interface mode, or using scsi scripts. with the low level register interface, the user has access to the dma control logic and the scsi bus control logic. an external processor has access to the scsi bus signals and the low level dma sig- nals, which allows creation of complicated board level test algorithms. the low level interface is use- ful for backward compatibility with scsi devices that require certain unique timings or bus sequences to operate properly. another feature allowed at the low level is loopback testing. in loopback mode, the scsi core can be directed to talk to the dma core to test internal data paths all the way out to the chip s pins. scsi scripts to operate in the scsi scripts mode, the sym53c875 requires only a scripts start address. the start address must be at a longword (four byte) boundary. this will align all the follow- ing scripts at a longword boundary since all scripts are 8 or 12 bytes long. instructions are fetched until an interrupt instruction is encoun- tered, or until an unexpected event (such as a hardware error) causes an interrupt to the external processor. once an interrupt is generated, the sym53c875 halts all operations until the interrupt is serviced. then, the start address of the next scripts instruction may be written to the dma scripts pointer register to restart the automatic fetching and execution of instructions. the scsi scripts mode of execution allows the sym53c875 to make decisions based on the sta- tus of the scsi bus, which off-loads the micropro- cessor from servicing the numerous interrupts inherent in i/o operations. given the rich set of scsi-oriented features included in the instruction set, and the ability to re-enter the scsi algorithm at any point, this high level interface is all that is required for both normal and exception conditions. switching to low level mode for error recovery should never be required. the following types of scripts instructions are implemented in the sym53c875: n block move?sed to move data between the scsi bus and memory n i/o or read/write?auses the sym53c875 to trigger common scsi hardware sequences, or to move registers n transfer control?llows scripts instructions to make decisions based on real time scsi bus conditions n memory move?auses the sym53c875 to execute block moves between different parts of main memory n load and store?rovides a more ef?ient way to move data to/from memory from/to an internal register in the chip without using the memory move instruction each instruction consists of two or three 32-bit words. the ?st 32-bit word is always loaded into the dcmd and dbc registers, the second into the dsps register. the third word, used only by memory move instructions, is loaded into the temp shadow register. in an indirect i/o or move instruction, the ?st two 32-bit op code fetches will be followed by one or two more 32-bit fetch cycles. instruction set of the i/o processor scsi scripts 6-2 sym53c875/875e data manual sample operation the following example describes execution of a scripts instruction. this sample operation is for a block move instruction. 1. the host cpu, through programmed i/o, gives the dma scripts pointer (dsp) register (in the operating register ?e) the starting address in main memory that points to a scsi scripts program for execution. 2. loading the dsp register causes the sym53c875 to fetch its ?st instruction at the address just loaded. this will be from main memory or the internal ram, depending on the address. 3. the sym53c875 typically fetches two longwords (64 bits) and decodes the high order byte of the ?st longword as a scripts instruction. if the instruction is a block move, the lower three bytes of the ?st longword are stored and interpreted as the number of bytes to be moved. the second longword is stored and interpreted as the 32-bit beginning address in main memory to which the move is directed. 4. for a scsi send operation, the sym53c875 waits until there is enough space in the dma fifo to transfer a programmable size block of data. for a scsi receive operation, it waits until enough data is collected in the dma fifo for transfer to memory. at this point, the sym53c875 requests use of the pci bus again to transfer the data. 5. when the sym53c875 is granted the pci bus, it will execute (as a bus master) a burst transfer (programmable size) of data, decrement the internally stored remaining byte count, increment the address pointer, and then release the pci bus. the sym53c875 stays off the pci bus until the fifo can again hold (for a write) or has collected (for a read) enough data to repeat the process. the process repeats until the internally stored byte count has reached zero. the sym53c875 releases the pci bus and then performs another scripts instruction fetch cycle, using the incremented stored address maintained in the dma scripts pointer register. execution of scripts instruc- tions continues until an error condition occurs or an interrupt scripts instruction is received. at this point, the sym53c875 interrupts the host cpu and waits for further servicing by the host system. it can execute independent block move instructions specifying new byte counts and start- ing locations in main memory. in this manner, the sym53c875 performs scatter/gather operations on data without requiring help from the host pro- gram, generating a host interrupt, or requiring an external dma controller to be programmed. instruction set of the i/o processor scsi scripts sym53c875/875e data manual 6-3 figure 6-1: scripts overview system processor system memory sym53c875 scsi bus scsi initiator write example ? select atn 0, alt_addr ? move from identify_msg_buf, when msg_out ? move from cmd_buf, when cmd ? move from data_buf, when data_out ? move from stat_in_buf, when status ? move from msg_in_buf, when msg_in ? move scntl2&7f to scntl2 ? clear ack ? wait disconnect alt2 ? int 10 s y s t e m b u s write dsp fetch scripts data table byte count address byte count address byte count address byte count address write dsa instruction set of the i/o processor block move instructions 6-4 sym53c875/875e data manual block move instructions for block move instructions, bits 5 and 4 (siom and diom) in the dmode register determine whether the source/destination address resides in memory or i/o space. when data is being moved onto the scsi bus, siom controls whether that data comes from i/o or memory space. when data is being moved off of the scsi bus, diom con- trols whether that data goes to i/o or memory space. first dword bits 31-30 instruction type-block move bit 29 indirect addressing when this bit is cleared, user data is moved to or from the 32-bit data start address for the block move instruction. the value is loaded into the chip s address register and incre- mented as data is transferred. the address of the data to be moved is in the second dword of this instruction. when set, the 32-bit user data start address for the block move is the address of a pointer to the actual data buffer address. the value at the 32-bit start address is loaded into the chip s dnad register via a third longword fetch (4- byte transfer across the host computer bus). direct the byte count and absolute address are as follows. indirect use the fetched byte count, but fetch the data address from the address in the instruction. once the data pointer address is loaded, it is executed as when the chip operates in the direct mode. this indirect feature allows a table of data buffer addresses to be speci?d. using the symbios scsi scripts assembler, the table offset is placed in the script at com- pile time. then at the actual data transfer time, the offsets are added to the base address of the data address table by the external processor. the logical i/o driver builds a structure of addresses for an i/o rather than treating each address individually. this feature makes it pos- sible to locate scsi scripts in a prom. note: indirect and table indirect addressing cannot be used simultaneously; only one addressing method may be used at a time. bit 28 table indirect when this bit is set, the 24-bit signed value in the start address of the move is treated as a rel- ative displacement from the value in the dsa register. both the transfer count and the source/destination address are fetched from this address. use the signed integer offset in bits 23-0 of the second four bytes of the instruction, added to the value in the dsa register, to fetch ?st the byte count and then the data address. the signed value is combined with the data struc- ture base address to generate the physical address used to fetch values from the data structure. sign-extended values of all ones for negative values are allowed, but bits 31-24 are ignored. note: indirect and table indirect addressing cannot be used simultaneously; only one addressing method may be used at a time. command byte count address of data command byte count address of pointer to data command not used don t care table offset instruction set of the i/o processor block move instructions sym53c875/875e data manual 6-5 prior to the start of an i/o, the data structure base address register (dsa) should be loaded with the base address of the i/o data structure. the address may be any address on a long word boundary. after a table indirect op code is fetched, the dsa is added to the 24-bit signed offset value from the op code to generate the address of the required data; both positive and negative off- sets are allowed. a subsequent fetch from that address brings the data values into the chip. for a move instruction, the 24-bit byte count is fetched from system memory. then the 32- bit physical address is brought into the sym53c875. execution of the move begins at this point. scripts can directly execute operating sys- tem i/o data structures, saving time at the beginning of an i/o operation. the i/o data structure can begin on any longword boundary and may cross system segment boundaries. there are two restrictions on the placement of pointer data in system memory: the eight bytes of data in the move instruction must be con- tiguous, as shown below; and indirect data fetches are not available during execution of a memory-to-memory dma operation. figure 6-2: block move instruction register 24-bit block move byte counter i/o c/d msg/ op code table indirect addressing indirect addressing (53c700 compatible) 0 - instruction type - block move 0 - instruction type - block move dcmd register dbc register 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 dsps register 00 byte count physical data address instruction set of the i/o processor block move instructions 6-6 sym53c875/875e data manual bit 27 op code this 1-bit ?ld de?es the instruction to be executed as a block move (move). target mode 1. the sym53c875 veri?s that it is connected to the scsi bus as a target before executing this instruction. 2. the sym53c875 asserts the scsi phase signals (smsg/, sc_d/, and si_o/) as de?ed by the phase field bits in the instruction. 3. if the instruction is for the command phase, the sym53c875 receives the ?st command byte and decodes its scsi group code. a) if the scsi group code is either group 0, group 1, group 2, or group 5, and if the vendor unique enhancement 1 (vue1) bit (scntl2 bit 1) is clear, then the sym53c875 overwrites the dbc register with the length of the command descriptor block: 6, 10, or 12 bytes. b) if the vendor unique enhancement 1 (vue1) bit (scntl2 bit 1) is set, the sym53c875 receives the number of bytes in the byte count regardless of the group code. c) if the vendor unique enhancement 1 bit is clear and group code is vendor unique, the sym53c875 receives the number of bytes in the count. d) if any other group code is received, the dbc register is not modi?d and the sym53c875 will request the number of bytes speci?d in the dbc register. if the dbc register contains 000000h, an illegal instruction interrupt is generated. 4. the sym53c875 transfers the number of bytes speci?d in the dbc register starting at the address speci?d in the dnad register. if the op code bit is set and a data transfer ends on an odd byte boundary, the sym53c875 will store the last byte in the scsi wide residue data register during a receive operation. this byte will be combined with the ?st byte from the subsequent transfer so that a wide transfer can be completed. 5. if the satn/ signal is asserted by the initiator or a parity error occurred during the transfer, the transfer can optionally be halted and an interrupt generated. the disable halt on parity error or atn bit in the scntl1 register controls whether the sym53c875 will halt on these conditions immediately, or wait until completion of the current move. initiator mode 1. the sym53c875 veri?s that it is connected to the scsi bus as an initiator before executing this instruction. 2. the sym53c875 waits for an unserviced phase to occur. an unserviced phase is de?ed as any phase (with sreq/ asserted) for which the sym53c875 has not yet transferred data by responding with a sack/. 3. the sym53c875 compares the scsi phase bits in the dcmd register with the latched scsi phase lines stored in the sstat1 register. these phase lines are latched when sreq/ is asserted. 4. if the scsi phase bits match the value stored in the sstat1 register, the sym53c875 will transfer the number of bytes speci?d in the dbc register starting at the address pointed to by the dnad register. if the op code bit is cleared and a data transfer ends on an odd byte opc instruction de?ed 0move 1 chmov opc instruction de?ed 0 chmov 1move instruction set of the i/o processor block move instructions sym53c875/875e data manual 6-7 boundary, the sym53c875 will store the last byte in the scsi wide residue data register during a receive operation, or in the scsi output data latch register during a send operation. this byte will be combined with the ?st byte from the subsequent transfer so that a wide transfer can be completed. 5. if the scsi phase bits do not match the value stored in the sstat1 register, the sym53c875 generates a phase mismatch interrupt and the instruction is not executed. 6. during a message out phase, after the sym53c875 has performed a select with attention (or satn/ has been manually asserted with a set atn instruction), the sym53c875 will deassert satn/ during the ?al sreq/sack handshake. 7. when the sym53c875 is performing a block move for message in phase, it will not deassert the sack/ signal for the last sreq/sack handshake. the sack signal must be cleared using the clear sack i/o instruction. bits 26-24 scsi phase this 3-bit ?ld de?es the desired scsi infor- mation transfer phase. when the sym53c875 operates in initiator mode, these bits are com- pared with the latched scsi phase bits in the sstat1 register. when the sym53c875 operates in target mode, the sym53c875 asserts the phase de?ed in this ?ld. the fol- lowing table describes the possible combina- tions and the corresponding scsi phase. bits 23-0 transfer counter this 24-bit ?ld speci?s the number of data bytes to be moved between the sym53c875 and system memory. the ?ld is stored in the dbc register. when the sym53c875 trans- fers data to/from memory, the dbc register is decremented by the number of bytes trans- ferred. in addition, the dnad register is incremented by the number of bytes trans- ferred. this process is repeated until the dbc register has been decremented to zero. at that time, the sym53c875 fetches the next instruction. if bit 28 is set, indicating table indirect addressing, this ?ld is not used. the byte count is instead fetched from a table pointed to by the dsa register. second dword bits 31-0 start address this 32-bit ?ld speci?s the starting address of the data to be moved to/from memory. this ?ld is copied to the dnad register. when the sym53c875 transfers data to or from mem- ory, the dnad register is incremented by the number of bytes transferred. when bit 29 is set, indicating indirect address- ing, this address is a pointer to an address in memory that points to the data location. when bit 28 is set, indicating table indirect address- ing, the value in this ?ld is an offset into a table pointed to by the dsa. the table entry contains byte count and address information. msg c/d i/o scsi phase 0 0 0 data out 0 0 1 data in 0 1 0 command 0 1 1 status 1 0 0 reserved out 1 0 1 reserved in 1 1 0 message out 1 1 1 message in instruction set of the i/o processor i/o instructions 6-8 sym53c875/875e data manual i/o instructions first dword bits 31-30 instruction type - i/o instruction bits 29-27 op code the following op code bits have different meanings, depending on whether the sym53c875 is operating in initiator or target mode. note: op code selections 101-111 are considered read/write instructions and are described in that section. target mode reselect instruction 1. the sym53c875 arbitrates for the scsi bus by asserting the scsi id stored in the scid register. if the sym53c875 loses arbitration, then it tries again during the next available arbitration cycle without reporting any lost arbitration status. 2. if the sym53c875 wins arbitration, it attempts to reselect the scsi device whose id is de?ed in the destination id ?ld of the instruction. once the sym53c875 has won arbitration, it fetches the next instruction from the address pointed to by the dsp register. therefore, the scripts can move on to the next instructions before the reselection has completed. it will continue executing scripts until a script that requires a response from the initiator is encountered. 3. if the sym53c875 is selected or reselected before winning arbitration, it fetches the next instruction from the address pointed to by the 32-bit jump address ?ld stored in the dnad register. the sym53c875 should manually be set to initiator mode if it is reselected, or to target mode if it is selected. disconnect instruction the sym53c875 disconnects from the scsi bus by deasserting all scsi signal outputs. wait select instruction 1. if the sym53c875 is selected, it fetches the next instruction from the address pointed to by the dsp register. 2. if reselected, the sym53c875 fetches the next instruction from the address pointed to by the 32-bit jump address ?ld stored in the dnad register. the sym53c875 should manually be set to initiator mode when reselected. 3. if the cpu sets the sigp bit in the istat register, the sym53c875 will abort the wait select instruction and fetch the next instruction from the address pointed to by the 32-bit jump address ?ld stored in the dnad register. set instruction when the sack/ or satn/ bits are set, the corre- sponding bits in the socl register are set. sack/ or satn/ should not be set except for testing pur- poses. when the target bit is set, the corresponding bit in the scntl0 register is also set. when the carry bit is set, the corresponding bit in the arith- metic logic unit (alu) is set. note: none of the signals are set on the scsi bus in target mode. clear instruction when the sack/ or satn/ bits are set, the corre- sponding bits are cleared in the socl register. sack/ or satn/ should not be set except for test- ing purposes. when the target bit is set, the corre- sponding bit in the scntl0 register is cleared. when the carry bit is set, the corresponding bit in the alu is cleared. note: none of the signals are reset on the scsi bus in target mode. opc2 opc1 opc0 instruction de?ed 0 0 0 reselect 0 0 1 disconnect 0 1 0 wait select 0 1 1 set 1 0 0 clear instruction set of the i/o processor i/o instructions sym53c875/875e data manual 6-9 figure 6-3: i/o instruction register encoded destination id 0 encoded destination id 1 encoded destination id 2 encoded destination id 3 reserved reserved reserved reserved select with atn/ set/clear ack/ set/clear atn/ set/clear target mode res table indirect mode relative address mode op code bit 0 op code bit 1 op code bit 2 1 - instruction type - i/o 0 - instruction type - i/o dcmd register dbc register 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 dsps register res res res set/clear carry second 32-bit word of the i/o instruction 32-bit jump address instruction set of the i/o processor i/o instructions 6-10 sym53c875/875e data manual initiator mode select instruction 1. the sym53c875 arbitrates for the scsi bus by asserting the scsi id stored in the scid register. if the sym53c875 loses arbitration, it tries again during the next available arbitration cycle without reporting any lost arbitration status. 2. if the sym53c875 wins arbitration, it attempts to select the scsi device whose id is de?ed in the destination id ?ld of the instruction. once the sym53c875 has won arbitration, it fetches the next instruction from the address pointed to by the dsp register. therefore, the scripts can move to the next instruction before the selection has completed. it will continue executing scripts until a script that requires a response from the target is encountered. 3. if the sym53c875 is selected or reselected before winning arbitration, it fetches the next instruction from the address pointed to by the 32-bit jump address ?ld stored in the dnad register. the sym53c875 should manually be set to initiator mode if it is reselected, or to target mode if it is selected. 4. if the select with satn/ ?ld is set, the satn/ signal is asserted during the selection phase. wait disconnect instruction the sym53c875 waits for the target to perform a ?egal disconnect from the scsi bus. a ?egal disconnect occurs when sbsy/ and ssel/ are inactive for a minimum of one bus free delay (400 ns), after the sym53c875 has received a disconnect message or a command complete message. wait reselect instruction 1. if the sym53c875 is selected before being reselected, it fetches the next instruction from the address pointed to by the 32-bit jump address ?ld stored in the dnad register. the sym53c875 should be manually set to target mode when selected. 2. if the sym53c875 is reselected, it fetches the next instruction from the address pointed to by the dsp register. 3. if the cpu sets the sigp bit in the istat register, the sym53c875 will abort the wait reselect instruction and fetch the next instruction from the address pointed to by the 32-bit jump address ?ld stored in the dnad register. set instruction when the sack/ or satn/ bits are set, the corre- sponding bits in the socl register are set. when the target bit is set, the corresponding bit in the scntl0 register is also set. when the carry bit is set, the corresponding bit in the alu is set. clear instruction when the sack/or satn/ bits are set, the corre- sponding bits are cleared in the socl register. when the target bit is set, the corresponding bit in the scntl0 register is cleared. when the carry bit is set, the corresponding bit in the alu is cleared. bit 26 relative addressing mode when this bit is set, the 24-bit signed value in the dnad register is used as a relative dis- placement from the current dsp address. this bit should only be used in conjunction with the select, reselect, wait select, and wait reselect instructions. the select and reselect instruc- tions can contain an absolute alternate jump address or a relative transfer address. opc2 opc1 opc0 instruction de?ed 0 0 0 select 0 0 1 wait disconnect 0 1 0 wait reselect 0 1 1 set 1 0 0 clear instruction set of the i/o processor i/o instructions sym53c875/875e data manual 6-11 bit 25 table indirect mode when this bit is set, the 24-bit signed value in the dbc register is added to the value in the dsa register, used as an offset relative to the value in the data structure base address (dsa) register. the scntl3 value, scsi id, synchronous offset and synchronous period are loaded from this address. prior to the start of an i/o, the dsa should be loaded with the base address of the i/o data structure. the address may be any address on a longword boundary. after a table indirect op code is fetched, the dsa is added to the 24-bit signed offset value from the op code to generate the address of the required data; both positive and negative offsets are allowed. a subsequent fetch from that address brings the data values into the chip. scripts can directly execute operating sys- tem i/o data structures, saving time at the beginning of an i/o operation. the i/o data structure can begin on any longword boundary and may cross system segment boundaries. there are two restrictions on the placement of data in system memory: 1. the i/o data structure must lie within the 8 mb above or below the base address. 2. an i/o command structure must have all four bytes contiguous in system memory, as shown below. the offset/period bits are ordered as in the sxfer register. the con?uration bits are ordered as in the scntl3 register. this bit should only be used in conjunction with the select, reselect, wait select, and wait reselect instructions. bits 25 and 26 may be set individually or in combination: direct uses the device id and physical address in the instruction. table indirect uses the physical jump address, but fetches data using the table indirect method. relative uses the device id in the instruction, but treats the alternate address as a relative jump con? id offset/ period (00) bit 25 bit 26 direct 0 0 table indirect 0 1 relative 1 0 table relative 1 1 com- mand id not used not used absolute alternate address command table offset absolute alternate address com- mand id not used not used alternate jump offset instruction set of the i/o processor i/o instructions 6-12 sym53c875/875e data manual table relative treats the alternate jump address as a relative jump and fetches the device id, synchronous off- set, and synchronous period indirectly. adds the value in bits 23-0 of the ?st four bytes of the scripts instruction to the data structure base address to form the fetch address. bit 24 select with atn/ this bit speci?s whether satn/ will be asserted during the selection phase when the sym53c875 is executing a select instruction. when operating in initiator mode, set this bit for the select instruction. if this bit is set on any other i/o instruction, an illegal instruction interrupt is generated. bit 23-20 reserved bits 19-16 encoded scsi destination id this 4-bit ?ld speci?s the destination scsi id for an i/o instruction. bits 15-11reserved bit 10 set/clear carry this bit is used in conjunction with a set or clear instruction to set or clear the carry bit. setting this bit with a set instruction asserts the carry bit in the alu. setting this bit with a clear instruction deasserts the carry bit in the alu. bit 9 set/clear target mode this bit is used in conjunction with a set or clear instruction to set or clear target mode. setting this bit with a set instruction con?- ures the sym53c875 as a target device (this sets bit 0 of the scntl0 register). setting this bit with a clear instruction con?ures the sym53c875 as an initiator device (this clears bit 0 of the scntl0 register). bits 8-7 reserved bit 6 set/clear sack/ bits 5-4 reserved bit 3 set/clear satn/ these two bits are used in conjunction with a set or clear instruction to assert or deassert the corresponding scsi control signal. bit 6 controls the scsi sack/ signal; bit 3 controls the scsi satn/ signal. setting either of these bits will set or reset the corresponding bit in the socl register, depending on the instruction used. the set instruction is used to assert sack/ and/or satn/ on the scsi bus. the clear instruction is used to deassert sack/ and/or satn/ on the scsi bus. since sack/ and satn/ are initiator signals, they will not be asserted on the scsi bus unless the sym53c875 is operating as an initi- ator or the scsi loopback enable bit is set in the stest2 register. the set/clear scsi ack/atn instruction would be used after message phase block move operations to give the initiator the opportunity to assert attention before acknowledging the last message byte. for example, if the initiator wishes to reject a message, an assert scsi atn instruction would be issued before a clear scsi ack instruction. bits 2-0 reserved second dword bits 31-0 start address this 32-bit ?ld contains the memory address to fetch the next instruction if the selection or reselection fails. if relative or table relative addressing is used, this value is a 24-bit signed offset relative to the current dsp register value. command table offset alternate jump offset instruction set of the i/o processor read/write instructions sym53c875/875e data manual 6-13 read/write instructions the read/write instruction supports addition, subtraction, and comparison of two separate values within the chip. it performs the desired operation on the speci?d register and the sfbr register, then stores the result back to the speci?d register or the sfbr. first dword bits 31-30 instruction type - read/write instruction the read/write instruction uses operator bits 26 through 24 in conjunction with the op code bits to determine which instruction is currently selected. bits 29-27 op code the combinations of these bits determine if the instruction is a read/write or an i/o instruc- tion. op codes 000 through 100 are considered i/o instructions. bits 26-24 operator these bits are used in conjunction with the op code bits to determine which instruction is currently selected. refer to table 6-1 for ?ld de?itions. bit 23 use data8/sfbr when this bit is set, sfbr will be used instead of the data8 value during a read-modify-write instruction (see table 6-1). this allows the user to add two register values. bits 22-16 register address - a(6-0) register values may be changed from scripts in read-modify-write cycles or move to/from sfbr cycles. a(6-0) select an 8-bit source/destination register within the sym53c875. bits 15-8 immediate data this 8-bit value is used as a second operand in logical and arithmetic functions. bits 7-0 reserved second dword bits 31-0 destination address this ?ld contains the 32-bit destination address where the data is to be moved. read-modify-write cycles during these cycles the register is read, the selected operation is performed, and the result is written back to the source register. the add operation can be used to increment or decrement register values (or memory values if used in conjunction with a memory-to-register move operation) for use as loop counters. subtraction is not available when sfbr is used instead of data8 in the instruction syntax. to sub- tract one value from another when using sfbr, ?st xor the value to subtract (subtrahend) with 0xff, and add 1 to the resulting value. this creates the 2 s compliment of the subtrahend. the two val- ues can then be added to obtain the difference. instruction set of the i/o processor read/write instructions 6-14 sym53c875/875e data manual move to/from sfbr cycles all operations are read-modify-writes. however, two registers are involved, one of which is always the sfbr. the possible functions of this instruc- tion are: n write one byte (value contained within the scripts instruction) into any chip register. n move to/from the sfbr from/to any other register. n alter the value of a register with and/or/ add/xor/shift left/shift right operators. n after moving values to the sfbr, the compare and jump, call, or similar instructions may be used to check the value. n a move-to-sfbr followed by a move-from- sfbr can be used to perform a register to register move. figure 6-4: read/write instruction register a0 a1 a2 a3 a4 a5 a6 use data8/sfbr operator 0 immediate data operator 1 operator 2 op code bit 0 op code bit 1 op code bit 2 1 - instruction type - r/w 0 - instruction type - r/w dcmd register dbc register 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 dsps register reserved (must be 0) register address instruction set of the i/o processor read/write instructions sym53c875/875e data manual 6-15 table 6-1: read/write instructions operator op code 111 read modify write op code 110 move to sfbr op code 101 move from sfbr 000 move data into register. syntax: ?ove data8 to rega move data into sfbr regis- ter. syntax: ?ove data8 to sfbr move data into register. syntax: ?ove data8 to rega 001* shift register one bit to the left and place the result in the same register. syntax: ?ove rega shl rega shift register one bit to the left and place the result in the sfbr register. syntax: ?ove rega shl sfbr shift the sfbr register one bit to the left and place the result in the register. syntax: ?ove sfbr shl rega 010 or data with register and place the result in the same register. syntax: ?ove rega | data8 to rega or data with register and place the result in the sfbr register. syntax: ?ove rega | data8 to sfbr or data with sfbr and place the result in the regis- ter. syntax: ?ove sfbr | data8 to rega 011 xor data with register and place the result in the same register. syntax: ?ove rega xor data8 to rega xor data with register and place the result in the sfbr register. syntax: ?ove rega xor data8 to sfbr xor data with sfbr and place the result in the regis- ter. syntax: ?ove sfbr xor data8 to rega 100 and data with register and place the result in the same register. syntax: ?ove rega & data8 to rega and data with register and place the result in the sfbr register. syntax: ?ove rega & data8 to sfbr and data with sfbr and place the result in the regis- ter. syntax: ?ove sfbr & data8 to rega 101* shift register one bit to the right and place the result in the same register. syntax: ?ove rega shr rega shift register one bit to the right and place the result in the sfbr register. syntax: ?ove rega shr sfbr shift the sfbr register one bit to the right and place the result in the register. syntax: ?ove sfbr shr rega 110 add data to register without carry and place the result in the same register. syntax: ?ove rega + data8 to rega add data to register without carry and place the result in the sfbr register. syntax: ?ove rega + data8 to sfbr add data to sfbr without carry and place the result in the register. syntax: ?ove sfbr + data8 to rega 111 add data to register with carry and place the result in the same register. syntax: ?ove rega + data8 to rega with carry add data to register with carry and place the result in the sfbr register. syntax: ?ove rega + data8 to sfbr with carry add data to sfbr with carry and place the result in the register. syntax: ?ove sfbr + data8 to rega with carry notes: 1. substitute the desired register name or address for ?ega in the syntax examples 2. data8 indicates eight bits of data 3. use sfbr instead of data8 to add two register values. * data is shifted through the carry bit and the carry bit is shifted into the data byte instruction set of the i/o processor transfer control instructions 6-16 sym53c875/875e data manual transfer control instructions first dword bits 31-30 instruction type - transfer control instruction bits 29-27 op code this 3-bit ?ld speci?s the type of transfer control instruction to be executed. all transfer control instructions can be conditional. they can be dependent on a true/false comparison of the alu carry bit or a comparison of the scsi information transfer phase with the phase ?ld, and/or a comparison of the first byte received with the data compare ?ld. each instruction can operate in initiator or tar- get mode. jump instruction 1. the sym53c875 can do a true/false comparison of the alu carry bit, or compare the phase and/or data as de?ed by the phase compare, data compare and true/false bit ?lds. if the comparisons are true, the sym53c875 loads the dsp register with the contents of the dsps register. the dsp register now contains the address of the next instruction. 2. if the comparisons are false, the sym53c875 fetches the next instruction from the address pointed to by the dsp register, leaving the instruction pointer unchanged. call instruction 1. the sym53c875 can do a true/false comparison of the alu carry bit, or compare the phase and/or data as de?ed by the phase compare, data compare, and true/false bit ?lds. if the comparisons are true, the sym53c875 loads the dsp register with the contents of the dsps register and that address value becomes the address of the next instruction. when the sym53c875 executes a call instruction, the instruction pointer contained in the dsp register is stored in the temp reg- ister. since the temp register is not a stack and can only hold one longword, nested call instructions are not allowed. 2. if the comparisons are false, the sym53c875 fetches the next instruction from the address pointed to by the dsp register and the instruction pointer is not modi?d. opc2 opc1 opc0 instruction de?ed 0 0 0 jump 0 0 1 call 0 1 0 return 0 1 1 interrupt 1 x x reserved instruction set of the i/o processor transfer control instructions sym53c875/875e data manual 6-17 figure 6-5: transfer control instructions wait for valid phase compare phase compare data jump if: true=1, false=0 interrupt on the fly carry test 0 (reserved) relative addressing mode i/o mask for compare c/d msg op code bit 0 op code bit 1 op code bit 2 0 - instruction type - transfer control 1- instruction type - transfer control dcmd register dbc register 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 dsps register data to be compared with the scsi first byte received instruction set of the i/o processor transfer control instructions 6-18 sym53c875/875e data manual return instruction 1. the sym53c875 can do a true/false comparison of the alu carry bit, or compare the phase and/or data as de?ed by the phase compare, data compare, and true/false bit ?lds. if the comparisons are true, then the sym53c875 loads the dsp register with the contents of the dsps register. that address value becomes the address of the next instruction. when a return instruction is executed, the value stored in the temp register is returned to the dsp register. the sym53c875 does not check to see whether the call instruction has already been executed. it will not generate an interrupt if a return instruction is executed without previously executing a call instruc- tion. 2. if the comparisons are false, then the sym53c875 fetches the next instruction from the address pointed to by the dsp register and the instruction pointer will not be modi?d. interrupt instructions interrupt a) the sym53c875 can do a true/false comparison of the alu carry bit, or compare the phase and/or data as de?ed by the phase compare, data compare, and true/false bit ?lds. if the comparisons are true, then the sym53c875 generates an interrupt by asserting the irq/ signal. b) the 32-bit address ?ld stored in the dsps register (not dnad as in 53c700) can contain a unique interrupt service vector. when servicing the interrupt, this unique status code allows the isr to quickly identify the point at which the interrupt occurred. c) the sym53c875 halts and the dsp register must be written to start any further operation. interrupt on-the-fly a) the sym53c875 can do a true/false comparison of the alu carry bit or compare the phase and/or data as de?ed by the phase compare, data compare, and true/false bit ?lds. if the comparisons are true, and the interrupt on the fly bit is set (bit 20), the sym53c875 will assert the interrupt on the fly bit (istat bit 2). bits 26-24 scsi phase this 3-bit ?ld corresponds to the three scsi bus phase signals which are compared with the phase lines latched when sreq/ is asserted. comparisons can be performed to determine the scsi phase actually being driven on the scsi bus. the following table describes the possible combinations and their correspond- ing scsi phase. these bits are only valid when the sym53c875 is operating in initiator mode; when the sym53c875 is operating in the target mode, these bits should be cleared. bit 23 relative addressing mode when this bit is set, the 24-bit signed value in the dsps register is used as a relative offset from the current dsp address (which is point- ing to the next instruction, not the one cur- rently executing). relative mode does not apply to return and interrupt scripts. msg c/d i/o scsi phase 0 0 0 data out 0 0 1 data in 0 1 0 command 0 1 1 status 1 0 0 reserved out 1 0 1 reserved in 1 1 0 message out 1 1 1 message in instruction set of the i/o processor transfer control instructions sym53c875/875e data manual 6-19 jump/call an absolute address start execution at the new absolute address. jump/call a relative address start execution at the current address plus (or minus) the relative offset. the scripts program counter is a 32-bit value pointing to the script currently being executed by the sym53c875. the next address is formed by adding the 32-bit pro- gram counter to the 24-bit signed value of the last 24 bits of the jump or call instruction. because it is signed (twos compliment), the jump can be forward or backward. a relative transfer can be to any address within a 16-mb segment. the program counter is combined with the 24-bit signed offset (using addition or subtraction) to form the new exe- cution address. scripts programs may contain a mixture of direct jumps and relative jumps to provide maximum versatility when writing scripts. for example, major sections of code can be accessed with far calls using the 32-bit physical address, then local labels can be called using relative transfers. if a script is written using only relative transfers it would not require any run time alteration of physical addresses, and could be stored in and executed from a prom. bit 21 carry test when this bit is set, decisions based on the alu carry bit can be made. true/false com- parisons are legal, but data compare and phase compare are illegal. bit 20 interrupt on the fly when this bit is set, the interrupt instruction will not halt the scripts processor. once the interrupt occurs, the interrupt on the fly bit (istat bit 2) will be asserted. bit 19 jump if true/false this bit determines whether the sym53c875 should branch when a comparison is true or when a comparison is false. this bit applies to phase compares, data compares, and carry tests. if both the phase compare and data compare bits are set, then both compares must be true to branch on a true condition. both compares must be false to branch on a false condition. bit 18 compare data when this bit is set, the ?st byte received from the scsi data bus (contained in sfbr regis- ter) is compared with the data to be com- pared field in the transfer control instruction. the wait for valid phase bit controls when this compare will occur. the jump if true/false bit determines the condition (true or false) to branch on. bit 17 compare phase when the sym53c875 is in initiator mode, this bit controls phase compare operations. when this bit is set, the scsi phase signals (latched by sreq/) are compared to the phase field in the transfer control instruction; if they match, the comparison is true. the wait for valid phase bit controls when the compare will occur. when the sym53c875 is operating in target mode this bit, when set, tests for an active scsi satn/ signal. command condition codes absolute alternate address command condition codes don t care alternate jump offset bit 19 result of compare action 0 false jump taken 0 true no jump 1 false no jump 1 true jump taken instruction set of the i/o processor memory move instructions 6-20 sym53c875/875e data manual bit 16 wait for valid phase if the wait for valid phase bit is set, the sym53c875 waits for a previously unserviced phase before comparing the scsi phase and data. if the wait for valid phase bit is clear, the sym53c875 compares the scsi phase and data immediately. bits 15-8 data compare mask the data compare mask allows a script to test certain bits within a data byte. during the data compare, any mask bits that are set cause the corresponding bit in the sfbr data byte to be ignored. for instance, a mask of 01111111b and data compare value of 1xxxxxxxb allows the scripts processor to determine whether or not the high order bit is set while ignoring the remaining bits. bits 7-0 data compare value this 8-bit ?ld is the data to be compared against the scsi first byte received (sfbr) register. these bits are used in conjunction with the data compare mask field to test for a particular data value. second dword bits 31-0 jump address this 32-bit ?ld contains the address of the next instruction to fetch when a jump is taken. once the sym53c875 has fetched the instruc- tion from the address pointed to by these 32 bits, this address is incremented by 4, loaded into the dsp register and becomes the current instruction pointer. memory move instructions for memory move instructions, bits 5 and 4 (siom and diom) in the dmode register determine whether the source or destination addresses reside in memory or i/o space. by set- ting these bits appropriately, data may be moved within memory space, within i/o space, or between the two address spaces. the memory move instruction is used to copy the speci?d number of bytes from the source address to the destination address. allowing the sym53c875 to perform memory moves frees the system processor for other tasks and moves data at higher speeds than available from current dma controllers. up to 16 mb may be transferred with one instruction. there are two restrictions: 1. both the source and destination addresses must start with the same address alignment (a(1-0) must be the same). if source and destination are not aligned, then an illegal instruction interrupt will occur. for the pci cache line size register setting to take effect, the source and destination must be the same distance from a cache line boundary. 2. indirect addresses are not allowed. a burst of data is fetched from the source address, put into the dma fifo and then written out to the destination address. the move continues until the byte count decrements to zero, then another script is fetched from system memory. the dsps and dsa registers are additional hold- ing registers used during the memory move; how- ever, the contents of the dsa register are preserved. bits 31-39instruction type?emory move bits 28-25 reserved these bits are reserved and must be zero. if any of these bits is set, an illegal instruction interrupt will occur. instruction set of the i/o processor memory move instructions sym53c875/875e data manual 6-21 bit 24 no flush note: this bit has no effect unless the pre-fetch enable bit in the dcntl register is set. for information on scripts instruction prefetching, see chapter 2. when this bit is set, the sym53c875 performs a memory move without ?shing the prefetch unit. when this bit is clear, the memory move instruc- tion automatically ?shes the prefetch unit. the no flush option should be used if the source and destination are not within four instructions of the current memory move instruction. bits 23-0 transfer count the number of bytes to be transferred is stored in the lower 24 bits of the ?st instruction word. read/write system memory from a script by using the memory move instruction, single or multiple register values may be transferred to or from system memory. because the sym53c875 will respond to addresses as de?ed in the base i/o or base mem- ory registers, it could be accessed during a mem- ory move operation if the source or destination address decodes to within the chip s register space. if this occurs, the register indicated by the lower seven bits of the address is taken to be the data source or destination. in this way, register values can be saved to system memory and later restored, and scripts can make decisions based on data values in system memory. the sfbr is not writable via the cpu, and there- fore not by a memory move. however, it can be loaded via scripts read/write operations. to load the sfbr with a byte stored in system mem- ory, the byte must ?st be moved to an intermedi- ate sym53c875 register (for example, a scratch register), and then to the sfbr. the same address alignment restrictions apply to register access operations as to normal memory-to- memory transfers. second dword bits 31-0, dsps register these bits contain the source address of the memory move. third dword bits 31-0, temp register these bits contain the destination address for the memory move. instruction set of the i/o processor memory move instructions 6-22 sym53c875/875e data manual figure 6-6: memory move instructions 24-bit memory move byte counter no flush 0 (reserved) 0 (reserved) 0 (reserved) 0 (reserved) 0 - instruction type - memory move 1 - instruction type - memory move 1 - instruction type - memory move dcmd register dbc register 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 dsps register 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 temp register instruction set of the i/o processor load and store instructions sym53c875/875e data manual 6-23 load and store instructions the load and store instructions provide a more ef?ient way to move data from/to memory to/from an internal register in the chip without using the normal memory move instruction. the load and store instructions are represented by two-dword op codes. the ?st dword contains the dcmd and dbc register values. the second dword contains the dsps value. this is either the actual memory location of where to load or store, or the offset from the dsa, depending on the value of bit 28 (dsa relative). a maximum of 4 bytes may be moved with these instructions. the register address and memory address must have the same byte alignment, and the count set such that it does not cross dword boundaries. the destination memory address in the store instruction and the source memory address of the load instruction may not map back to the operating register set of the chip. this excludes the scripts ram and rom memory spaces. if it does, a pci read/write cycle will occur (the data does not actually transfer to/from the chip), and the chip will issue an interrupt (illegal instruction detected) immediately following. the siom and diom bits in the dmode regis- ter determine whether the destination or source address of the instruction is in memory space or i/o space, as illustrated in the following table. the load/store utilizes the pci commands for i/o read and i/o write to access the i/o space. first dword bits 31-29, instruction type these bits should be 111, indicating the load and store instruction. bit 28, dsa relative when this bit is clear, the value in the dsps is the actual 32-bit memory address to perform the load/store to/from. when this bit is set, the chip determines the memory address to per- form the load/store to/from by adding the 24- bit signed offset value in the dsps to the dsa. bits 27-26, reserved bit 25, no flush (store instruction only) note: this bit has no effect unless the pre-fetch enable bit in the dcntl register is set. for information on scripts instruction prefetching, see chapter 2. when this bit is set, the sym53c875 performs a store without ?shing the prefetch unit. when this bit is clear, the store instruction automatically ?shes the prefetch unit. no flush should be used if the source and destina- tion are not within four instructions of the cur- rent store instruction. this bit has no effect on the load instruction. bit 24, load/store when this bit is set, the instruction is a load. when cleared, it is a store. bit 23, reserved bits 22-16, register address a6-a0 select the register to load/store to/from within the sym53c875. note: it is not possible to load the sfbr register, although it is possible to store the sfbr contents to another location. bits 15-3, reserved bits 2-0, byte count this value is the number of bytes to load/store. bits a1, a0 number of bytes allowed to load/ store 00 one, two, three or four 01 one, two, or three 10 one or two 11 one bit source destination siom (load) memory register diom (store) register memory instruction set of the i/o processor load and store instructions 6-24 sym53c875/875e data manual second dword bits 31-0, memory/io address / dsa offset this is the actual memory location of where to load or store, or the offset from the dsa register value. figure 6-7: load and store instruction format a0 a1 a2 a3 a4 a5 a6 0 (reserved) load/store no flush 0 - reserved 0 - reserved dsa relative 1 1 instruction type - load and store 1 dcmd register dbc register 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 dsps register - memory/ i/o address/dsa offset reserved (must be 0) register address byte count (number of bytes to load/store) electrical characteristics dc characteristics sym53c875/875e data manual 7-1 chapter 7 electrical characteristics dc characteristics table 7-1: absolute maximum stress ratings symbol parameter min max unit test conditions t stg storage temperature -55 150 c- v dd supply voltage -0.5 7.0 v - v in input voltage v ss - 0.5 v dd + 0.5 v - i lp * latch-up current 150 - ma - esd** electrostatic discharge - 2k v mil-std 883c, method 3015.7 stresses beyond those listed above may cause permanent damage to the device. these are stress ratings only; functional operation of the device at these or any other conditions beyond those indicated in the operating conditions section of the manual is not implied. * -2v < v pin < 8v ** scsi pins only table 7-2: operating conditions symbol parameter min max unit test conditions v dd supply voltage 4.75 5.25 v - i dd supply current (dynamic) supply current (static) - - 130 1 ma ma - - t a operating free air 0 70 c- u ja thermal resistance (junc- tion to ambient air) -67 c/w - conditions that exceed the operating limits may cause the device to function incorrectly 7-2 sym53c875/875e data manual electrical characteristics dc characteristics table 7-3: scsi signals - sd(15-0)/, sdp(1-0)/, sreq/ sack/ symbol parameter min max unit test conditions v ih input high voltage 2.0 v dd + 0.5 v - v il input low voltage v ss - 0.5 0.8 v - v oh * output high voltage 2.5 3.5 v 2.5 ma v ol output low voltage v ss 0.5 v 48 ma i oz tristate leakage -10 10 m a- *tolerant active negation enabled table 7-4: scsi signals - smsg, si_o/, sc_d/, satn/, sbsy/, ssel/, srst/ symbol parameter min max unit test conditions v ih input high voltage 2.0 v dd + 0.5 v - v il input low voltage v ss - 0.5 0.8 v - v ol output low voltage v ss 0.5 v 48 ma i oz tristate leakage (srst/ only) -10 -500 10 -50 m a- table 7-5: input signals - clk, sclk, gnt/, idsel, rst/, testin, diffsens, big_lit/ symbol parameter min max unit test conditions v ih input high voltage 2.0 v dd + 0.5 v - v il input low voltage v ss - 0.5 0.8 v - i in input leakage -10 10 m a- note: sclk and big_lit/,have 100 m a pull-ups, and gnt/ and idsel have 25 m a pull-ups, that are enabled when testin is low. testin has a 100 m a pull-up that is always enabled. electrical characteristics dc characteristics sym53c875/875e data manual 7-3 table 7-6: capacitance symbol parameter min max unit test conditions c i input capacitance of input pads - 7 pf - c io input capacitance of i/o pads -10pf- table 7-7: output signal - mac/_testout, req/ symbol parameter min max unit test conditions v oh output high voltage 2.4 v dd v -16 ma v ol output low voltage v ss 0.4 v 16 ma i oz tristate leakage -10 10 m a- note: req/ has a 100 m a pull-up that is enabled when testin is low table 7-8: output signals - irq/, sdir(15-0), sdirp0, sdirp1, bsydir, seldir, rstdir, tgs, igs, mas/(1-0), mce/, moe/, mwe/ symbol parameter min max unit test conditions v oh output high voltage 2.4 v dd v -4 ma* v ol output low voltage v ss 0.4 v 4 ma* i oz tristate leakage -10 10 m a- note: irq/, mas/(1-0), mce/, moe/, and mwe/ have a 100 m a pull-up that is enabled when testin is low. irq/ can be enabled with a register bit as an open drain output with an internal 100 m a pull-up. *for irq/, test conditions are 8ma 7-4 sym53c875/875e data manual electrical characteristics dc characteristics table 7-9: output signal - serr/ symbol parameter min max unit test conditions v ol output low voltage v ss 0.4 v 16 ma i oz tristate leakage -10 10 m a- table 7-10: bidirectional signals - ad(31-0), c_be/(3-0), frame/, irdy/, trdy/, devsel/, stop/, perr/, par, symbol parameter min max unit test conditions v ih input high voltage 2.0 v dd + 0.5 v - v il input low voltage v ss - 0.5 0.8 v - v oh output high voltage 2.4 v dd v 16 ma v ol output low voltage v ss 0.4 v 16 ma i oz tristate leakage -10 10 m a- note: all the signals in this table have 25 m a pull-ups that are enabled when testin is low table 7-11: bidirectional signals - gpio0_fetch/, gpio1_master/, gpio2_mas2/, gpio3, gpio4 symbol parameter min max unit test conditions v ih input high voltage 2.0 v dd + 0.5 v - v il input low voltage v ss - 0.5 0.8 v - v oh output high voltage 2.4 v dd v -16 ma v ol output low voltage v ss 0.4 v 16 ma i oz tristate leakage -10 10 m a- note: all the signals in this table have 100 m a pull-ups that are enabled when testin is low electrical characteristics dc characteristics sym53c875/875e data manual 7-5 table 7-12: bidirectional signals - mad(7-0) symbol parameter min max unit test conditions v ih input high voltage 2.0 v dd + 0.5 v - v ih input high voltage - external memory pull- downs 3.85 v dd + 0.5 v - v il input low voltage v ss - 0.5 0.8 v - v il input low voltage - exter- nal memory pull-downs v ss - 0.5 1.35 v - v oh output high voltage 2.4 v dd v -4 ma v ol output low voltage v ss 0.4 v 4 ma i oz tristate leakage -10 10 m a- note: all the signals in this table have 100 m a pull-ups that are enabled when testin is low table 7-13: input signals ?di, tms, tck (sym53c875j, sym53c875jb, sym53c875n only) symbol parameter min max unit test conditions v ih input high voltage 3.85 v dd + 0.5 v - v il input low voltage v ss - 0.5 1.35 v - i in input leakage -800 -200 m a- table 7-14: output signal ?tdo (sym53c875, sym53c875jb, sym53c875n only) symbol parameters min max units test conditions v oh output high voltage v dd - 0.5 v dd v -4 ma v ol output low voltage v ss 0.5 v 4 ma i oz tristate leakage -10 10 m a- 7-6 sym53c875/875e data manual electrical characteristics tolerant technology electrical characteristics tolerant technology electrical characteristics table 7-15: tolerant technology electrical characteristics symbol parameter min max units test conditions v oh 1 output high voltage 2.5 3.5 v i oh = 2.5 ma v ol output low voltage 0.1 0.5 v i ol = 48 ma v ih input high voltage 2.0 7.0 v - v il input low voltage -0.5 0.8 v referenced to v ss v ik input clamp voltage -0.66 -0.77 v v dd = 4.75; i i = -20 ma v th threshold, high to low 1.1 1.3 v - v tl threshold, low to high 1.5 1.7 v - v th - v tl hysteresis 200 400 mv - i oh 1 output high current 2.5 24 ma v oh = 2.5 v i ol output low current 100 200 ma v ol = 0.5 v i osh 1 short-circuit output high current - 625 ma output driving low, pin shorted to v dd supply 2 i osl short-circuit output low current - 95 ma output driving high, pin shorted to v ss supply i lh input high leakage - 10 m a -0.5 < v dd < 5.25 v pin = 2.7 v i ll input low leakage - -10 m a -0.5 < v dd < 5.25 v pin = 0.5 v r i input resistance 20 - m w scsi pins 3 c p capacitance per pin - 10 pf pqfp t r 1 rise time, 10% to 90% 9.7 18.5 ns figure 7-1 note: these values are guaranteed by periodic characterization; they are not 100% tested on every device. 1 active negation outputs only: data, parity, sreq/, sack/ 2 single pin only; irreversible damage may occur if sustained for one second 3 scsi reset pin has 10 k w pull-up resistor electrical characteristics tolerant technology electrical characteristics sym53c875/875e data manual 7-7 t f fall time, 90% to 10% 5.2 14.7 ns figure 7-1 dv h /dt slew rate, low to high 0.15 0.49 v/ns figure 7-1 dv l /dt slew rate, high to low 0.19 0.67 v/ns figure 7-1 esd electrostatic discharge 2 - kv mil-std-883c; 3015-7 latch-up 100 - ma - filter delay 20 30 ns figure 7-2 extended ?ter delay 40 60 ns figure 7-2 figure 7-1: rise and fall time test conditions figure 7-2: scsi input filtering table 7-15: tolerant technology electrical characteristics (continued) symbol parameter min max units test conditions note: these values are guaranteed by periodic characterization; they are not 100% tested on every device. 1 active negation outputs only: data, parity, sreq/, sack/ 2 single pin only; irreversible damage may occur if sustained for one second 3 scsi reset pin has 10 k w pull-up resistor 20 pf + - 2.5 v 47 w t 1 v tn req/ or ack/ input *t 1 is the input filtering period 7-8 sym53c875/875e data manual electrical characteristics tolerant technology electrical characteristics figure 7-3: hysteresis of scsi receiver figure 7-4: input current as a function of input voltage figure 7-5: output current as a function of output voltage input voltage (volts) received logic level 1.7 1.5 1.3 1.1 1 0 +40 +20 0 -20 -40 -40481216 input current (milliamperes) input voltage (volts) 8.2 v 14.4 v -0.7 v output active hi-z 100 80 60 40 20 0 0 12345 output source current (milliamperes) output voltage (volts) 0 -200 -400 -600 -800 012345 output sink current (milliamperes) output voltage (volts) electrical characteristics ac characteristics sym53c875/875e data manual 7-9 ac characteristics the ac characteristics described in this section apply over the entire range of operating conditions (refer to the dc characteristics section). chip timings are based on simulation at worst case voltage, tempera- ture, and processing. timings were developed with a load capacitance of 50 pf. figure 7-6: clock timing symbol parameter min max units t 1 bus clock cycle time 30 dc ns scsi clock cycle time (sclk)* 12.5 60 ns t 2 clk low time** 12 - ns sclk low time** 5 - ns t 3 clk high time** 12 - ns sclk high time** 5 - ns t 4 clk slew rate 1 - v/ns sclk slew rate 1 - v/ns * this parameter must be met to insure scsi timings are within speci?ation **duty cycle not to exceed 60/40 clk/sclk t 1 t 3 t 4 t 2 1.4 v 7-10 sym53c875/875e data manual electrical characteristics ac characteristics figure 7-7: reset input symbol parameter min max units t 1 reset pulse width 10 - t clk t 2 reset deasserted setup to clk high 0 - ns t 3 mad setup time to clk high (for con?uring the mad bus only) 20 - ns t 4 mad hold time from clk high (for con?uring the mad bus only) 20 - ns figure 7-8: interrupt output symbol parameter min max units t 1 clk high to irq/ low 20 - ns t 2 clk high to irq/ high 40 - ns t 3 irq/ deassertion time 3 - clks clk t 1 t 2 rst/ valid data mad* *when enabled t t 3 4 clk irq/ t 1 t 2 t 3 electrical characteristics pci and external memory interface timing diagrams sym53c875/875e data manual 7-11 pci and external memory interface timing diagrams figure 7-9 through figure 7-30 represent signal activity when the sym53c825a accesses the pci bus. the timings for the pci and external memory buses are listed on page 7-34. this section includes timing diagrams for access to three groups of external memory con?urations. the ?st group applies to systems with memory size of 64 kb and above; one byte read or write cycle, and fast or normal roms. the sec- ond group applies to systems with memory size of 64 kb and above, one-byte read or write cycles, and slow roms. the third group applies to systems with memory size of 64 kb or less, one-byte read or write cycles, and normal or fast rom. note: multiple byte accesses to the external memory bus increase the read or write cycle by 11 clocks for each additional byte. timing diagrams included in this section target cycles n pci con?uration register read n pci con?uration register write n operating register/scripts ram read n operating register/scripts ram write n external memory read n external memory write initiator cycles n op code fetch, non-burst n burst op code fetch n back-to-back read n back-to-back write n burst read n burst write external memory cycles n read cycle, normal/fast memory ( 3 64k), single-byte access n write cycle, normal/fast memory ( 3 64k), single-byte access n read cycle, normal/fast memory ( 3 64k), multiple-byte access n write cycle, normal/fast memory ( 3 64k), multiple-byte access n read cycle, slow memory (> 64k n write cycle, slow memory (> 64 k) n read cycle, normal/fast memory ( 3 64 k) n write cycle, normal/fast memory ( 3 64 k) n read cycle, slow memory ( 64 k) n write cycle, slow memory ( 64k) 7-12 sym53c875/875e data manual electrical characteristics pci and external memory interface timing diagrams figure 7-9: pci con?uration register read clk (driven by system) frame/ (driven by system) ad/ (driven by master-addr; 53c875-data) c_be/ (driven by master) addr in par (driven by master-addr; 53c875-data) irdy/ (driven by master) trdy/ (driven by 53c875) stop/ (driven by 53c875) devsel/ (driven by 53c875) idsel (driven by master) t 1 t 1 t 2 t 2 t 1 t 1 t 1 t 2 t 1 t 2 t 3 t 3 t 2 t 3 out t 3 in t 2 cmd byte enable data out t 2 electrical characteristics pci and external memory interface timing diagrams sym53c875/875e data manual 7-13 figure 7-10: pci con?uration register write clk (driven by system) frame/ (driven by master) ad/ (driven by master) data in c_be/ (driven by master) par/ (driven by master) irdy/ (driven by master) trdy/ (driven by 53c875) stop/ (driven by 53c875) devsel/ (driven by 53c875) idsel (driven by master) t 1 t 1 2 t 1 t 1 t 1 t 2 t 1 t 2 t 3 t 3 t 2 t 2 t 2 1 t t 2 t cmd 2 t byte enable addr in 7-14 sym53c875/875e data manual electrical characteristics pci and external memory interface timing diagrams figure 7-11: operating register/scripts ram read clk (driven by system) frame/ (driven by master) ad (driven by master-addr; 53c875-data) c_be/ (driven by master) par irdy/ (driven by master) trdy (driven by 53c875) stop/ devsel/ (driven by 53c875) (driven by 53c875) t 3 t 3 t 3 t 2 t 2 t 1 t 2 t 1 2 t t 1 t 2 (driven by master-addr; 53c875-data) t 3 t 3 addr in t 1 cmd 2 t byte enable data out out in t 1 electrical characteristics pci and external memory interface timing diagrams sym53c875/875e data manual 7-15 figure 7-12: operating register/scripts ram write clk (driven by system) frame/ (driven by master) ad/ (driven by master) c_be/ (driven by master) par/ (driven by master) irdy/ (driven by master) trdy/ (driven by 53c875) stop/ devsel/ (driven by 53c875) (driven by 53c875) t 3 t 3 t 3 t 2 t 2 t 2 t 1 t 1 t 2 t 1 t 1 2 t t 1 t 1 t 2 t 2 t 1 addr in t 2 cmd data in byte enable 7-16 sym53c875/875e data manual electrical characteristics pci and external memory interface timing diagrams figure 7-13: external memory read mad (addr driven by 53c875; data driven by memory) gpio2_mas2/ (driven by 53c875) mas1/ (driven by 53c875) mas0/ (driven by 53c875) mce/ (driven by 53c875) moe/ (driven by 53c875) mwe/ (driven by 53c875) t 11 t 12 t 13 t 14 t 15 t 16 t 17 t 19 clk (driven by system) frame/ (driven by master) ad (driven by master-addr; 53c875-data) c_be/ (driven by master) par irdy/ (driven by master) trdy (driven by 53c875) stop/ devsel/ (driven by 53c875) (driven by 53c875) t 3 t 3 t 3 t 2 t 2 t 1 t 2 t 1 2 t t 1 t 2 (driven by master-addr; 53c875-data) 3 addr in t 1 cmd 2 t in t 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 middle order address low order address t t 3 data out high order address data in byte enable out electrical characteristics pci and external memory interface timing diagrams sym53c875/875e data manual 7-17 figure 7-14: external memory write mad (driven by 53c875) gpio2_mas2/ (driven by 53c875) mas1/ (driven by 53c875) mas0/ (driven by 53c875) mce/ (driven by 53c875) moe/ (driven by 53c875) mwe/ (driven by 53c875) t 11 t 12 t 13 t 24 t 22 t 25 clk (driven by system) frame/ (driven by master) ad (driven by master-addr; 53c875-data) c_be/ (driven by master) par irdy/ (driven by master) trdy (driven by 53c875) stop/ devsel/ (driven by 53c875) (driven by 53c875) t 3 t 3 t 3 t 2 t 1 t 2 t 1 2 t t 1 t 2 (driven by master-addr; 53c875-data) t 1 addr in t 1 cmd 2 t in in t 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 t 2 t 2 t 1 high order address low order address middle order address data out t 20 t 23 t 26 t 21 data in byte enable t 2 7-18 sym53c875/875e data manual electrical characteristics pci and external memory interface timing diagrams figure 7-15: op code fetch, non-burst clk gpio0_fetch/ gpio1_master/ req/ gnt/ frame/ c_be/ par/ t 7 ad/ t 9 t 3 (driven by system) (driven by 53c875)* (driven by 53c875)* (driven by 53c875) (driven by arbiter) (driven by 53c875) (driven by 53c875-addr; target-data) (driven by 53c875) irdy/ (driven by target) (driven by 53c875-addr; target-data) trdy/ stop/ devsel/ (driven by 53c875) (driven by target) (driven by target) t 8 t 10 t 1 t 2 data in addr out addr out cmd cmd be be t 6 t 4 t 5 data in t 3 t 3 t 1 t 3 t 2 t 3 t 1 t 1 t 2 t 3 t 2 electrical characteristics pci and external memory interface timing diagrams sym53c875/875e data manual 7-19 figure 7-16: burst op code fetch clk gpio0_fetch/ gpio1_master/ req/ gnt/ frame/ c_be/ par/ t 7 ad/ t 9 t 3 (driven by system) (driven by 53c875)* (driven by 53c875)* (driven by 53c875) (driven by arbiter) (driven by 53c875) (driven by 53c875-addr; target-data) (driven by 53c875) irdy/ (driven by target) (driven by 53c875-addr; target-data) trdy/ stop/ devsel/ (driven by 53c875) (driven by target) (driven by target) t 8 t 10 t 1 t 2 data in addr out cmd cmd be t 6 t 4 t 5 data in t 3 t 3 t 1 t 3 t 2 t 3 t 1 t 1 t 2 t 3 t 2 out in in t 3 7-20 sym53c875/875e data manual electrical characteristics pci and external memory interface timing diagrams figure 7-17: back to back read clk gpio0_fetch/ gpio1_master/ req/ gnt/ frame/ c_be/ par/ t 5 ad/ (driven by system) (driven by 53c875)* (driven by 53c875) (driven by 53c875) (driven by arbiter) (driven by 53c875) (driven by 53c875-addr; target-data) (driven by 53c875) irdy/ (driven by target) (driven by 53c875-addr; target-data) trdy/ stop/ devsel/ (driven by 53c875) (driven by target) (driven by target) data in addr out t out addr data in t 9 t 6 t 3 t 2 t 1 t 10 1 t 2 t 2 t 1 t 3 t 3 t 1 cmd be be t 4 t 3 t 2 t 3 out in out in cmd electrical characteristics pci and external memory interface timing diagrams sym53c875/875e data manual 7-21 figure 7-18: back to back write clk gpio0_fetch/ gpio1_master/ req/ gnt/ frame/ c_be/ par/ t 4 ad/ (driven by system) (driven by 53c875)* (driven by 53c875)* (driven by 53c875) (driven by arbiter) (driven by 53c875) (driven by 53c875) (driven by 53c875) irdy/ (driven by target) (driven by 53c875) trdy/ stop/ devsel/ (driven by 53c875) (driven by target) (driven by target) t 9 t 6 t 3 t 10 t 1 t 5 t 3 t 3 addr out data out cmd cmd t 3 be be t 3 t 2 t 1 t 2 t 3 addr out data out t 3 t 3 7-22 sym53c875/875e data manual electrical characteristics pci and external memory interface timing diagrams figure 7-19: burst read gpio0_ fetch / (driven by 53c875) gpio1_ master/ (driven by 53c875) req/ (driven by 53c875) gnt/ (driven by arbiter) frame (driven by 53c875) ad (driven by 53c875-addr, target-data) c_be/ (driven by 53c875) par (driven by 53c875 for address, by target for data irdy/ (driven by 53c875) trdy/ (driven by target) stop/ (driven by target) devsel/ (driven by target) clk t 10 t 9 t 6 t 4 t 3 t 3 t 1 t 2 t 5 data in data in addr out cmd be cmd be addr out data in be t 3 out t 3 in t 1 out in out in t 1 t 2 addr out t 1 t 2 t 2 t 3 t 3 in cmd electrical characteristics pci and external memory interface timing diagrams sym53c875/875e data manual 7-23 figure 7-20: burst write gpio0_ fetch / (driven by 53c875) gpio1_ master/ (driven by 53c875) req/ (driven by 53c875) gnt/ (driven by arbiter) frame (driven by 53c875) ad (driven by 53c875) c_be/ (driven by 53c875) par (driven by 53c875) irdy/ (driven by 53c875) trdy/ (driven by target) stop/ (driven by target) devsel/ (driven by target) clk (driven by system) t 10 t 9 t 6 t 4 t 3 t 3 t 3 t 1 t 2 t 2 t 5 addr out t 3 data out addr out data out addr out data out cmd be be cmd be t 3 t 1 t 3 data out t 3 t 3 cmd 7-24 sym53c875/875e data manual electrical characteristics pci and external memory interface timing diagrams figure 7-21: read cycle, normal/fast memory ( 3 64 kb), single byte access mad (addr driven by 53c875; data driven by memory) mas2/ (driven by 53c875) mas1/ (driven by 53c875) mas0/ (driven by 53c875) mce/ (driven by 53c875) moe/ (driven by 53c875) mwe/ (driven by 53c875) clk high order address middle order address low order address valid read data t 11 t 12 t 13 t 14f t 15f t 16f t 17 t 18 t 19 electrical characteristics pci and external memory interface timing diagrams sym53c875/875e data manual 7-25 figure 7-22: write cycle, normal/fast memory ( 3 64 kb), single byte access mad (driven by 53c875) mas2/ (driven by 53c875) mas1/ (driven by 53c875) mas0/ (driven by 53c875) mce/ (driven by 53c875) moe/ (driven by 53c875) mwe/ (driven by 53c875) clk t 12 high order address middle address low address valid write data t 11 t 13 t 20 t 21 t 22f t 23 t 24f t 25 t 26 7-26 sym53c875/875e data manual electrical characteristics pci and external memory interface timing diagrams figure 7-23: read cycle, normal/fast memory ( 3 64 kb), multiple byte access mad (addr driven by 53c875; data driven by memory) gpio2_mas2/ (driven by 53c875) mas1/ (driven by 53c875) mas0/ (driven by 53c875) mce/ (driven by 53c875) moe/ (driven by 53c875) mwe/ (driven by 53c875) clk (driven by system) frame/ (driven by master) ad (driven by master-addr; 53c875-data) c_be/ (driven by master) par irdy/ (driven by master) trdy (driven by 53c875) stop/ devsel/ (driven by 53c875) (driven by 53c875) (driven by master-addr; 53c875-data) middle order address data out out high order address addr in cmd 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2 8 29 30 31 32 33 byte enable low order address data in low order address data in in electrical characteristics pci and external memory interface timing diagrams sym53c875/875e data manual 7-27 figure 7-24: write cycle, normal/fast memory ( 3 64 kb), multiple byte access mad (driven by 53c875) gpio2_mas2/ (driven by 53c875) mas1/ (driven by 53c875) mas0/ (driven by 53c875) mce/ (driven by 53c875) moe/ (driven by 53c875) mwe/ (driven by 53c875) clk (driven by system) frame/ (driven by master) ad (driven by master-addr; 53c875-data) c_be/ (driven by master) par irdy/ (driven by master) trdy (driven by 53c875) stop/ devsel/ (driven by 53c875) (driven by 53c875) (driven by master-addr; 53c875-data) addr in cmd in in middle order address 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 low order address high order address data in byte enable data out low order address data out 7-28 sym53c875/875e data manual electrical characteristics pci and external memory interface timing diagrams figure 7-25: read cycle, slow memory ( 3 64 kb) mad (address driven by 53c875 data driven by memory mas2/ (driven by 53c875) mas1/ (driven by 53c875) mas0/ (driven by 53c875) mce/ (driven by 53c875) moe/ (driven by 53c875) mwe/ (driven by 53c875) clk high order address middle address low order address valid readdata t 11 t 12 t 13 t 19 t 17 t 15s t 14s t 16s t 18 electrical characteristics pci and external memory interface timing diagrams sym53c875/875e data manual 7-29 figure 7-26: write cycle, slow memory ( 3 64 kb) mad (driven by 53c875) mas2/ (driven by 53c875) mas1/ (driven by 53c875) mas0/ (driven by 53c875) mce/ (driven by 53c875) moe/ (driven by 53c875) mwe/ (driven by 53c875) clk high order address middle address low order address t 11 t 12 t 13 t 24s t 23 t 22s t 20 t 25 t 26 t 21 valid write data 7-30 sym53c875/875e data manual electrical characteristics pci and external memory interface timing diagrams figure 7-27: read cycle, normal/fast memory ( 3 64k) mad (address driven by 53c875, data driven by memory mas2/ (driven by 53c875) mas1/ (driven by 53c875) mas0/ (driven by 53c875) mce/ (driven by 53c875) moe/ (driven by 53c875) mwe/ (driven by 53c875) clk high order addr low order address valid read data t 11 t 12 t 13 t 19 t 17 t 15f t 14f t 16f t 18 electrical characteristics pci and external memory interface timing diagrams sym53c875/875e data manual 7-31 figure 7-28: write cycle, normal/fast memory ( 3 64k) mad (driven by 53c875) mas2/ (driven by 53c875) mas1/ (driven by 53c875) mas0/ (driven by 53c875) mce/ (driven by 53c875) moe/ (driven by 53c875) mwe/ (driven by 53c875) clk high order address low order address valid write data t 11 t 12 t 13 t 20 t 21 t 22f t 23 t 24f t 25 t 26 7-32 sym53c875/875e data manual electrical characteristics pci and external memory interface timing diagrams figure 7-29: read cycle, slow memory ( 64k) mad (address driven by 53c875 data driven by memory) mas2/ (driven by 53c875) mas1/ (driven by 53c875) mas0/ (driven by 53c875) mce/ (driven by 53c875) moe/ (driven by 53c875) mwe/ (driven by 53c875) clk high order address low order address valid readdata t 11 t 12 t 13 t 19 t 17 t 15s t 14s t 16s t 18 electrical characteristics pci and external memory interface timing diagrams sym53c875/875e data manual 7-33 figure 7-30: write cycle, slow memory ( 64k) mad (driven by 53c875) mas2/ (driven by 53c875) mas1/ (driven by 53c875) mas0/ (driven by 53c875) mce/ (driven by 53c875) moe/ (driven by 53c875) mwe/ (driven by 53c875) clk high order address low order address t 11 t 12 t 13 t 24s t 23 t 22s t 20 t 25 t 26 t 21 valid write data 7-34 sym53c875/875e data manual electrical characteristics pci and external memory interface timings pci and external memory interface timings table 7-16: sym53c875 pci and external memory interface timings symbol parameter min max unit t 1 shared signal input setup time 7 - ns t 2 shared signal input hold time 0 - ns t 3 clk to shared signal output valid - 11 ns t 4 side signal input setup time 10 - ns t 5 side signal input hold time 0 - ns t 6 clk to side signal output valid - 12 ns t 7 clk high to fetch/ low - 20 ns t 8 clk high to fetch/ high - 20 ns t 9 clk high to master/ low - 20 ns t 10 clk high to master/ high - 20 ns t 11 address setup to mas/ high 25 - ns t 12 address hold from mas/ high 15 - ns t 13 mas/ pulse width 25 - ns t 14f mce/ low to data clocked in (fast memory) 160 - ns t 14s mce/ low to data clocked in (slow memory) 220 - ns t 15f address valid to data clocked in (fast memory) 205 - ns t 15s address valid to data clocked in (slow memory) 265 - ns t 16f moe/ low to data clocked in (fast memory) 100 - ns t 16s moe/ low to data clocked in (slow memory) 160 - ns t 17 data hold from address, moe/, mce/ change 0 - ns t 18 next address out from moe/, mce/ high 50 - ns t 19 data setup to clk high 5 - ns t 20 data setup to mwe/ low 30 - ns t 21 data hold from mwe/ high 20 - ns t 25 mce/ low to mwe/ low 25 - ns t 26 mwe/ high to mce/ high 25 - ns electrical characteristics scsi timings sym53c875/875e data manual 7-35 scsi timings figure 7-31: initiator asynchronous send symbol parameter min max units t 1 sack/ asserted from sreq/ asserted 5 - ns t 2 sack/ deasserted from sreq/ deasserted 5 - ns t 3 data setup to sack/ asserted 55 - ns t 4 data hold from sreq/ deasserted 20 - ns figure 7-32: initiator asynchronous receive symbol parameter min max units t 1 sack/ asserted from sreq/ asserted 5 - ns t 2 sack/ deasserted from sreq/ deasserted 5 - ns t 3 data setup to sreq/ asserted 0 - ns t 4 data hold from sack/ asserted 0 - ns valid n valid n+1 n+1 n+1 sreq/ sack/ sd15-sd0, sdp1/, sdp0/ t 1 t 2 n t 4 n t 3 valid n valid n+1 n n n+1 n+1 sreq/ sack/ sd15-sd0, sdp1/, sdp0/ t 4 t 3 t 1 t 2 7-36 sym53c875/875e data manual electrical characteristics scsi timings figure 7-33: target asynchronous send symbol parameter min max units t 1 sreq/ deasserted from sack/ asserted 5 - ns t 2 sreq/ asserted from sack/ deasserted 5 - ns t 3 data setup to sreq/ asserted 55 - ns t 4 data hold from sack/ asserted 20 - ns figure 7-34: target asynchronous receive symbol parameter min max units t 1 sreq/ deasserted from sack/ asserted 5 - ns t 2 sreq/ asserted from sack/ deasserted 5 - ns t 3 data setup to sack/ asserted 0 - ns t 4 data hold from sreq/ deasserted 0 - ns valid n valid n+1 n+1 n+1 sreq/ sack/ sd15-sd0, sdp1/, sdp0/ t 1 t 2 n t 4 t 3 n valid n valid n+1 n n n+1 n+1 sreq/ sack/ sd15-sd0, sdp1/, sdp0/ t 4 t 3 t 1 t 2 electrical characteristics scsi timings sym53c875/875e data manual 7-37 figure 7-35: initiator and target synchronous transfers table 7-17: scsi-1 transfers (single-ended, 5.0 mb/s) symbol parameter min max units t 1 send sreq/ or sack/ assertion pulse width 90 - ns t 2 send sreq/ or sack/ deassertion pulse width 90 - ns t 1 receive sreq/ or sack/ assertion pulse width 90 - ns t 2 receive sreq/ or sack/ deassertion pulse width 90 - ns t 3 send data setup to sreq/ or sack/ asserted 55 - ns t 4 send data hold from sreq/ or sack/ asserted 100 - ns t 5 receive data setup to sreq/ or sack/ asserted 0 - ns t 6 receive data hold from sreq/ or sack/ asserted 45 - ns send data sd15-sd0, sdp1/, sdp0/ sreq/ or sack/ receive data sd15-sd0, sdp1/, sdp0/ valid n valid n+1 valid n valid n+1 n n+1 t 6 t 5 t 1 t 2 t 4 t 3 7-38 sym53c875/875e data manual electrical characteristics scsi timings table 7-18: scsi-1 transfers (differential, 4.17 mb/s) symbol parameter min max units t 1 send sreq/ or sack/ assertion pulse width 96 - ns t 2 send sreq/ or sack/ deassertion pulse width 96 - ns t 1 receive sreq/ or sack/ assertion pulse width 84 - ns t 2 receive sreq/ or sack/deassertion pulse width 84 - ns t 3 send data setup to sreq/ or sack/ asserted 65 - ns t 4 send data hold from sreq/ or sack/ asserted 110 - ns t 5 receive data setup to sreq/ or sack/ asserted 0 - ns t 6 receive data hold from sreq/ or sack/ asserted 45 - ns table 7-19: scsi-2 fast transfers (10.0 mb/s (8-bit transfers) or 20.0 mb/s (16-bit transfers), 40 mhz clock) symbol parameter min max units t 1 send sreq/ or sack/ assertion pulse width 35 - ns t 2 send sreq/ or sack/ deassertion pulse width 35 - ns t 1 receive sreq/ or sack/ assertion pulse width 20 - ns t 2 receive sreq/ or sack/ deassertion pulse width 20 - ns t 3 send data setup to sreq/ or sack/ asserted 33 - ns t 4 send data hold from sreq/ or sack/ asserted 45 - ns t 5 receive data setup to sreq/ or sack/ asserted 0 - ns t 6 receive data hold from sreq/ or sack/ asserted 10 - ns electrical characteristics scsi timings sym53c875/875e data manual 7-39 table 7-20: scsi-2 fast transfers (10.0 mb/s (8-bit transfers) or 20.0 mb/s (16-bit transfers), 50 mhz clock) symbol parameter min max unit t 1 send sreq/ or sack/ assertion pulse width 35 - ns t 2 send sreq/ or sack/ deassertion pulse width 35 - ns t 1 receive sreq/ or sack/ assertion pulse width 20 - ns t 2 receive sreq/ or sack/ deassertion pulse width 20 - ns t 3 send data setup to sreq/ or sack/ asserted 33 - ns t 4 send data hold from sreq/ or sack/ asserted 40** - ns t 5 receive data setup to sreq/ or sack/ asserted 0 - ns t 6 receive data hold from sreq/ or sack/ asserted 10 - ns *transfer period bits (bits 6-4 in the sxfer register) are set to zero and the extra clock cycle of data setup bit (bit 7 in scntl1) is set. **analysis of system con?uration is recommended due to reduced driver skew margin in differential systems note: for fast scsi, set the tolerant enable bit (bit 7 in stest3). table 7-21: ultra scsi single-ended transfers (20.0 mb/s (8-bit transfers) or 40.0 mb/s (16-bit transfers), 80 mhz clock ) symbol parameter min max unit t 1 send sreq/ or sack/ assertion pulse width 16 - ns t 2 send sreq/ or sack/ deassertion pulse width 16 - ns t 1 receive sreq/ or sack/ assertion pulse width 10 - ns t 2 receive sreq/ or sack/ deassertion pulse width 10 - ns t 3 send data setup to sreq/ or sack/ asserted 12 - ns t 4 send data hold from sreq/ or sack/ asserted 17 - ns t 5 receive data setup to sreq/ or sack/ asserted 0 - ns t 6 receive data hold from sreq/ or sack/ asserted 6 - ns *transfer period bits (bits 6-4 in the sxfer register) are set to zero and the extra clock cycle of data setup bit (bit 7 in scntl1) is set. note: for fast scsi, set the tolerant enable bit (bit 7 in stest3). during ultra scsi transfers, the value of the extend req/ ack filtering bit (stest2, bit 1) has no effect. 7-40 sym53c875/875e data manual electrical characteristics scsi timings table 7-22: ultra scsi differential transfers (20.0 mb/s (8-bit transfers) or 40.0 mb/s (16-bit transfers), 80 mhz clock) symbol parameter min max unit t 1 send sreq/ or sack/ assertion pulse width 16 - ns t 2 send sreq/ or sack/ deassertion pulse width 16 - ns t 1 receive sreq/ or sack/ assertion pulse width 10 - ns t 2 receive sreq/ or sack/ deassertion pulse width 10 - ns t 3 send data setup to sreq/ or sack/ asserted 16 - ns t 4 send data hold from sreq/ or sack/ asserted 21 - ns t 5 receive data setup to sreq/ or sack/ asserted 0 - ns t 6 receive data hold from sreq/ or sack/ asserted 6 - ns *transfer period bits (bits 6-4 in the sxfer register) are set to zero and the extra clock cycle of data setup bit (bit 7 in scntl1) is set. note: for fast scsi, set the tolerant enable bit (bit 7 in stest3). during ultra scsi transfers, the value of the extend req/ ack filtering bit (stest2, bit 1) has no effect. register summary con?uration registers sym53c875/875e data manual a-1 appendix a register summary con?uration registers register 00h vendor id read onl y register 02h device id read only register 04h command read/write bit 15-9 reserved bit 8 serr/enable (se) bit 7 reserved bit 6 enable parity error response (eper) bit 5 reserved bit 4 write and invalidate enable (wie) bit 3 reserved bit 2 enable bus mastering (ebm) bit 1 enable memory space (ems) bit 0 enable i/o space (eis) register 06h status read/write bit 15 detected parity error (dpe) (from slave) bit 14 signaled system error (sse) bit 13 received master abort (rma) (from master) bit 12 received target abort (rta) (from master) bit 11 reserved bit 10-9 devsel/timing (dt) bit 8 data parity reported (dpr) bit 7-5 reserved bit 4 new capabilities (nc) bit 3-0 reserved register 08h revision id read onl y register 09h class code read only vid vid vid vid 15-12 11-8 7-4 3-0 default>>> 1 0 0 0 did did did did 15-12 11-8 7-4 3-0 default>>> 000f res se res eper res wie res ebm ems eis 15-9 8 7 6 543210 default>>> 000 0 000000 dpe sse rma rta res dt dpr res nc res 15 14 13 12 11 10-9 8 7-5 4 3-0 default>>> 000 0 000000 rid rid rid rid rid rid rid rid 76 5 43210 default>>> sym53c875e 00100110 default>>> sym53c875 00000100 cc cc cc cc cc cc 23-20 19-16 15-12 11-8 7-4 3-0 default>>> 010000 register summary con?uration registers a-2 sym53c875/875e data manual register 0ch cache line size read/write register 0dh latency timer read/write register 0eh header type read only register 10h base address zero (i/o) read/write register 14h base address one (memory) read/write register 18h base address two (memory) scripts rams read/write register 2ch subsystem vendor id read only register 2eh subsystem vendor id read only cls cls c ls cls cls cls cls cls 76 5 43210 default>>> 00000000 lt lt lt lt lt lt lt lt 76 5 43210 default>>> 00000000 ht ht 7-4 3-0 default>>> 00 baz baz baz baz baz baz baz baz 31-28 27-24 23-20 19-16 15-12 11-8 7-4 3-0 default>>> xxxxxxx xxx1 bao bao bao bao bao bao bao bao 31-28 27-24 23-20 19-16 15-12 11-8 7-4 3-0 default>>> xxxxxxx xxx0 bat bat bat bat bat bat bat bat 31-28 27-24 23-20 19-16 15-12 11-8 7-4 3-0 default>>> xxxxxxx xxx0 svid svid svid svid 15-12 11-8 7-4 3-0 default>>> sym53c875e 1000 default>>> sym53c875 0000 sid sid sid sid 15-12 11-8 7-4 3-0 default>>> sym53c875e 1000 default>>> sym53c875 0000 register summary con?uration registers sym53c875/875e data manual a-3 register 30h expansion rom base address read/write register 34h capabilities pointer read only register 3ch interrupt line read/write register 3dh interrupt pin read only register 3eh min_gnt read only register 3fh max_lat read only register 40h capability id read only register 41h next item pointer read only register 42h power management capabilities read only bits 15-11 pme support (pmes) bit 10 d2 support (d2s) - not supported bit 9 d1 support (d1s)- not supported bits 8-6 reserved bit 5 device speci? initialization (dsi) bit 4 auxiliary power source (aps) bit 3 pme clock (pmec) bit 2-0 version (ver) erba erba erba erba erba erba erba erba 31-28 27-24 23-20 19-16 15-12 11-8 7-4 3-0 default>>> 00000000 cp cp cp cp cp cp cp cp 76 5 43210 default>>> 01000000 il il il il il il il il 76 5 43210 default>>> 00000000 ip ip ip ip ip ip ip ip 76 5 43210 default>>> 00000001 mg mg mg mg mg mg mg mg 76 5 43210 default>>> 00010001 ml ml ml ml ml ml ml ml 76 5 43210 default>>> 01000000 cid cid cid cid cid cid cid cid 76543210 default>>> 00000001 np np np np np np np np 76 5 43210 default>>> 00000000 pmes d2s d1s res dsi aps pmec ver 15-11 10 9 8-6 5 4 3 2-0 default>>> 00000001 register summary con?uration registers a-4 sym53c875/875e data manual register 44h power management control/status read/write bit 15 pme status (pst)b1 (arbitration mode bit 1) bits 14-13 data scale (dscl) bits 12-9 data select (dslt) bit 8 pme enable (pen) bits 7-2 reserved bits 1-0 power state (pws) register 46h pmcsr bse read only register 47h data read only pst dscl dslt pen res pws 15 14-13 12-9 8 7-2 1-0 default>>> 000000 bse bse bse bse bse bse bse bse 76 5 43210 default>>> 00000000 data data data data data data data data 76 5 43210 default>>> 00000000 register summary scsi operating registers sym53c875/875e data manual a-5 scsi operating registers register 00 (80) scsi control zero (scntl0) read/write bit 7 b1 (arbitration mode bit 1) bit 6 arb0 (arbitration mode bit 0) bit 5 start (start sequence) bit 4 watn (select with satn/ on a start sequence) bit 3 epc (enable parity checking) bit 2 reserved bit 1 aap (assert satn/ on parity error) bit 0 trg (target mode) register 01 (81) scsi control one (scntl1) read/write bit 7 exc (extra clock cycle of data setup) bit 6 adb (assert scsi data bus) bit 5 dhp (disable halt on parity error or atn) ( target only) bit 4 con (connected) bit 3 rst (assert scsi rst/ signal) bit 2 aesp (assert even scsi parity (force bad parity) bit 1 iarb (immediate arbitration) bit 0 sst (start scsi transfer) register 02 (82) scsi control two (scntl2) read/write bit 7 sdu (scsi disconnect unexpected) bit 6 chm (chained mode) bit 5 slpmd (slpar mode bit) bit 4 slphben (slpar high byte enable) bit 3 wss (wide scsi send) bit 2 vue0 (vendor unique enhancements bit 0) bit 1 vue1 (vendor unique enhancements bit 1) bit 0 wsr (wide scsi receive) register 03 (83) scsi control three (scntl3) read/write bit 7 reserved bits 6-4 scf2-0 (synchronous clock conversion factor) bit 3 ews (enable wide scsi) bits 2-0 ccf2-0 (clock conversion factor) register 04 (84) scsi chip id (scid) read/write bit 7 reserved bit 6 rre (enable response to reselection) bit 5 sre (enable response to selection) bit 4 reserved bits 3-0 encoded chip scsi id, bits 3-0 arb1 arb0 start watn epc res aap trg 76543210 default>>> 11000x00 exc adb dhp con rst aesp iarb sst 76543210 default>>> 00000000 sdu chm slpmd slphben wss vue0 vue1 wsr 76 5 4 3210 default>>> 00 0 0 0000 res scf2 scf1 scf0 ews ccf2 ccf1 ccf0 7 6543210 default>>> 0 0000000 res rre sre res enc3 enc2 enc1 enc0 76543210 default>>> x00x0000 register summary scsi operating registers a-6 sym53c875/875e data manual register 05 (85) scsi transfer (sxfer) read/write bits 7-5 tp2-0 (scsi synchronous transfer period) bits 4-0 mo4-mo0 (max scsi synchronous offset) register 06 (86) scsi destination id (sdid) read/write bits 7-4 reserved bits 3-0 encoded destination scsi id register 07 (87) general purpose (gpreg) read/write bits 7-5 reserved bits 4-0 gpio4-gpio0 (general purpose) register 08 (88) scsi first byte received (sfbr) read/write register 09 (89) scsi output control latch (socl) read /write bit 7 req(assert scsi req/ signal) bit 6 ack(assert scsi ack/ signal) bit 5 bsy(assert scsi bsy/ signal) bit 4 sel(assert scsi sel/ signal) bit 3 atn(assert scsi atn/ signal) bit 2 msg(assert scsi msg/ signal) bit 1 c/d(assert scsi c_d/ signal) bit 0 i/o(assert scsi i_o/ signal) register 0a (09) scsi selector id (ssid) read only bit 7 val (scsi valid) bits 6-4 reserved bits 3-0 encoded destination scsi id register 0b (8b) scsi bus control lines (sbcl) read only bit 7 req (sreq/ status) bit 6 ack (sack/ status) bit 5 bsy (sbsy/ status) bit 4 sel (ssel/ status) bit 3 atn (satn/ status) bit 2 msg (smsg/ status) bit 1 c/d (sc_d/ status) bit 0 i/o (si_o/ status) tp2 tp1 tp0 mo4 mo3 mo2 mo1 mo0 76543210 default>>> 00000000 res res res res enc3 enc2 enc1 enc0 76543210 default>>> xxxx 0000 res res res gpio4 gpio3 gpio2 gpio1 gpio0 76543210 default>>> xxx0xxxx 1b7 1b6 1b5 1b4 1b3 1b2 1b1 1b0 76543210 default>>> 00000000 req ack bsy sel atn msg c/d i/o 76543210 default>>> 00000000 val res res res enid3 enid2 enid1 enid0 76543210 default>>> 0xxx0000 req ack bsy sel atn msg c/d i/o 76543210 default>>> xxxxxxxx register summary scsi operating registers sym53c875/875e data manual a-7 register 0c (8c) dma status (dstat) read only bit 7 dfe (dma fifo empty) bit 6 mdpe (master data parity error) bit 5 bf (bus fault) bit 4 abrt (aborted) bit 3 ssi (single step interrupt) bit 2 sir (scripts interrupt instruction received) bit 1 ebpi (extended byte parity error interrupt) bit 0 iid (illegal instruction detected) register 0d (8d) scsi status zero (sstat0) read only bit 7 ilf (sidl least signi?ant byte full)) bit 6 orf (sodr least signi?ant byte full) bit 5 olf (sodl least signi?ant byte full) bit 4 aip (arbitration in progress) bit 3 loa (lost arbitration) bit 2 woa (won arbitration) bit 1 rst/(scsi rst/signal) bit 0 sdp0/scsi sdp0/ parity signal) register 0e (8e) scsi status one (sstat1) read only bits 7-4 ff3-ff0 (fifo flags) bit 3 sdp0l (latched scsi parity) bit 2 msg (scsi msg/signal) bit 1 c/d (scsi c_d/signal bit 0 i/o (scsi i_o/signal) register 0f (8f) scsi status two (sstat2) read only bit 7 ilf1 (sidl most signi?ant byte full)) bit 6 orf1 (sodr most signi?ant byte full) bit 5 olf1 (sodl most signi?ant byte full) bit 4 ff4 (fifo flags bit 4) bit 3 spl1 (latched scsi parity for sd15-8) bit 2 diffsense sense bit 1 ldsc (last disconnect) bit 0 sdp1 (scsi sdp1 signal) registers 10-13 (90-93) data structure address (dsa) read/write register 14 (94) interrupt status (istat) read/write bit 7 abrt (abort operation) bit 6 srst (software reset) bit 5 sigp (signal process) bit 4 sem (semaphore) bit 3 con (connected) bit 2 intf (interrupt on the fly) bit 1 sip (scsi interrupt pending) bit 0 dip (dma interrupt pending) register 18 (98) chip test zero (ctest0) read/write dfe mdpe bf abrt ssi sir res1 iid 76543210 default>>> 100000x0 ilf orf olf aip loa woa rst sdp0/ 76543210 default>>> 00000000 ff3 ff2 ff1 ff0 sdp0l msg c/d i/o 76543210 default>>> 0000 xxxx req ack bsy sel atn msg c/d i/o 76543210 default>>> 00000000 abrt srst sigp sem con intf sip dip 76543210 default>>> 00000000 register summary scsi operating registers a-8 sym53c875/875e data manual register 19 (99) chip test one (ctest1) read only bits 7-4 fmt3-0 (byte empty in dma fifo) bits 3-0 ffl3-0 (byte full in dma fifo) register 1a (9a) chip test two (ctest2) read/write bit 7 ddir (data transfer direction) bit 6 sigp (signal process) bit 5 cio (con?ured as i/o) bit 4 cm (con?ured as memory) bit 3 srtch (scratcha/b operation) bit 2 teop (scsi true end of process) bit 1 dreq (data request status) bit 0 dack (data acknowledge status) register 1b (9b) chip test three (ctest3) read/write bits 7-4 v3-v0 (chip revision level) bit 3 flf (flush dma fifo) bit 2 clf (clear dma fifo) bit 1 fm (fetch pin mode) bit 0 wrie (write and invalidate enable) registers 1c-1f (9c-9f) temporary (temp) read/write register 20 (a0) dma fifo (dfifo) read/write bits 7-0 bo7-bo0 (byte offset counter) register 21 (a1) chip test four (ctest4) read/write bit 7 bdis (burst disable) bit 6 zmod (high impedance mode) bit 5 zsd (scsi data high impedance) bit 4 srtm (shadow register test mode) bit 3 mpee (master parity error enable) bits 2-0 fbl2-fbl0 (fifo byte control register 22 (a2) chip test five (ctest5) read/write bit 7 adck (clock address incrementor) bit 6 bbck (clock byte counter) bit 5 dfs (dma fifo size) bit 4 masr (master control for set or reset pulses) bit 3 ddir (dma direction) bit 2 bl2 (burst length bit 2) bits 1-0 bo9-8 fmt3 fmt2 fmt1 fmt0 ffl3 ffl2 ffl1 ffl0 76543210 default>>> 11110000 ddir sigp cio cm srtch teop dreq dack 76543210 default>>> 00xx0001 v3 v2 v1 v0 flf clf fm wrie 76543210 default>>> xxxx 0000 bo7 bo6 bo5 bo4 bo3 bo2 bo1 bo0 76543210 default>>> x0000000 bdis zmod zsd srtm mpee fbl2 fbl1 fbl0 76543210 default>>> 00000000 adck bbck dfs masr ddir bl2 bo9 bo8 76543210 default>>> 00000xxx register summary scsi operating registers sym53c875/875e data manual a-9 register 23 (a3) chip test six (ctest6) read/write bits 7-0 df7-df0 (dma fifo) registers 24-26 (a4-a6) dma byte counter (dbc) read/write register 27 (a7) dma command (dcmd) read /write registers 28-2b (a8-ab) dma next address (dnad) read/write registers 2c-2f (ac-af) dma scripts pointer (dsp) read/write registers 30-33 (b0-b3) dma scripts pointer save (dsps) read/write registers 34-37 (b4-b7) scratch register a (scratch a) read/write register 38 (b8) dma mode (dmode) read/write bit 7-6 bl1-bl0 (burst length) bit 5 siom (source i/o-memory enable) bit 4 diom (destination i/o-memory enable) bit 3 erl (enable read line) bit 2 ermp (enable read multiple) bit 1 bof (burst op code fetch enable) bit 0 man (manual start mode) register 39 (b9) dma interrupt enable (dien) read/write bit 7 reserved bit 6 mdpe (master data parity error) bit 5 bf (bus fault) bit 4 abrt (aborted) bit 3 ssi (single -step interrupt) bit 2 sir (scripts interrupt instruction received bit 1 reserved bit 0 iid (illegal instruction detected) register 3a (ba) scratch byte register (sbr) read/write df7 df6 df5 df4 df3 df2 df1 df0 76543210 default>>> 00000000 bl1 bl0 siom diom er ermp bof man 76543210 default>>> 00000000 res mdpe bf abrt ssi sir res iid 76543210 default>>> x00000x0 register summary scsi operating registers a-10 sym53c875/875e data manual register 3b (bb) dma control (dcntl) read/write bit 7 clse (cache line size enable) bit 6 pff (pre-fetch flush) bit 5 pfen (pre-fetch enable) bit 4 ssm (single-step mode) bit 3 irqm (irq mode) bit 2 std (start dma operation) bit 1 irqd (irq disable) bit 0 com (53c700 compatibility) register 3c-3f (bc-bf) adder sum output (adder) read only register 40 (c0) scsi interrupt enable zero (sien0) read/write bit 7 m/a (scsi phase mismatch - initiator mode; scsi atn condition - target mode) bit 6 cmp (function complete) bit 5 sel (selected) bit 4 rsl (reselected) bit 3 sge (scsi gross error) bit 2 udc (unexpected disconnect) bit 1 rst (scsi reset condition) bit 0 par (scsi parity error) register 41 (c1) scsi interrupt enable one (sien1) read/write bits 7-3 reserved bit 2 sto (selection or reselection time-out) bit 1 gen (general purpose timer expired) bit 0 hth ( handshake-to-handshake timer expired) register 42 (c2) scsi interrupt status zero (sist0) read only bit 7 m/a (initiator mode: phase mismatch; target mode: satn/ active) bit 6 cmp (function complete) bit 5 sel (selected) bit 4 rsl (reselected) bit 3 sge (scsi gross error) bit 2 udc (unexpected disconnect) bit 1 rst (scsi rst/ received) bit 0 par (parity error) register 43 (c3) scsi interrupt status one (sist1) read only bits 7-3 reserved bit 2 sto (selection or reselection time-out) bit 1 gen (general purpose timer expired) bit 0 hth (handshake-to-handshake timer expired) register 44 (c4) scsi longitudinal parity (slpar) read/write register 45 (c5) scsi wide residue (swide) read/write clse pff pfen ssm irqm std irqd com 76543210 default>>> 00000000 m/a cmp sel rsl sge udc rst par 76543210 default>>> 00000000 res res res res res sto gen hth 76543210 default>>> xxxxx000 m/a cmp sel rsl sge udc rst par 76543210 default>>> 00000000 res res res res res sto gen hth 76543210 default>>> xxxxx000 register summary scsi operating registers sym53c875/875e data manual a-11 register 46 (c6) memory access control (macntl) read/write bits 7-4 typ3-0 (chip type) bit 3 dwr (datawr) bit 2 drd (datard) bit 1 pscpt (pointer scripts) bit 0 scpts (scripts) register 47 (c7) general purpose pin control (gpcntl) read/write bit 7 master enable bit 6 fetch enable bit 5 reserved bits 4-2 gpio4_en gpio2_en (gpio enable) bits 1-0 gpio1_en gpio0_en (gpio enable) register 48 (c8) scsi timer zero (stime0) read /write bits 7-4 hth (handshake-to-handshake timer period) bits 3-0 sel (selection time-out) register 49 (c9) scsi timer one (stime1) read/write bit 7 reserved bit 6 hthba (handshake-to-handshake timer bus activity enable) bit 5 gensf (general purpose timer scale factor) bit 4 hthsf (handshake to handshake timer scale factor) bits 3-0 gen3-0 (general purpose timer period) register 4a (ca) response id zero (respid0) read/write register 4b (cb) response id one(respid1) read/write register 4c (cc) scsi test zero (stest0) read only bits 7-4 ssaid (scsi selected as id) bit 3 slt (selection response logic test) bit 2 art (arbitration priority encoder test) bit 1 soz (scsi synchronous offset zero) bit 0 som (scsi synchronous offset maximum) typ3 typ2 typ1 typ0 dwr drd pscpt scpts 76543210 default>>> 01100000 me fe res gpio4 gpio3 gpio2 gpio1 gpio0 76543210 default>>> 00x01111 hth hth hth hrh sel sel sel sel 76543210 default>>> 00000000 res hthba gensf hthsf gen3 gen2 gen1 gen0 76543210 default>>> x0000000 ssaid3 ssaid2 ssaid1 ssaid0 slt art soz som 76543210 default>>> 00000x11 register summary scsi operating registers a-12 sym53c875/875e data manual register 4d (cd) scsi test one (stest1) read/write bit 7 sclk bit 6 siso (scsi isolation mode) bits 5-0 reserved register 4e (ce) scsi test two (stest2) read/write bit 7 sce (scsi control enable) bit 6 rof (reset scsi offset) bit 5 dif (scsi differential mode) bit 4 slb (scsi loopback mode) bit 3 szm (scsi high-impedance mode) bit 2 aws (always wide scsi) bit 1 ext (extend sreq/sack filtering) bit 0 low (scsi low level mode) register 4f (cf) scsi test three (stest3) read/write bit 7 te (tolerant enable) bit 6 str (scsi fifo test read) bit 5 hsc (halt scsi clock) bit 4 dsi (disable single initiator response) bit 3 s16 (16-bit system) bit 2 ttm (timer test mode) bit 1 csf (clear scsi fifo) bit 0 stw (scsi fifo test write) register 50-51 (d0-d1) scsi input data latch (sidl) read only registers 54-55 (d4-d5) scsi output data latch (sodl) read/write registers 58-59 (d8-d9) scsi bus data lines (sbdl) read only registers 5c-5f (dc-df) scratch register b (scratchb) read/write registers 60h-7fh (e0h-ffh) scratch registers c-j (scratchc-scratchj) read/write sclk siso res res res res res res 76543210 default>>> 00xxxxxx sce rof dif slb szm aws ext low 76543210 default>>> 00000000 te str hsc dsi s16 ttm csf stw 76543210 default>>> 00000000 mechanical drawings sym53c875/875e data manual b-1 appendix b mechanical drawings figure b-1: sym53c875, 53c875j mechanical drawing pin 160 pin 40 pin 80 pin 120 pin 1 indicator 28.00 ?0.10 31.90 ?0.25 0.8 ?0.15 seating plane 0.15 .65 typ 3.42 ?0.25 0.25 min 28.00 ?0.10 31.90 ?0.25 160-pin plastic quad flat package (qfp) 0.33 max 0.22 min + 0.08 ?0.02 0 7 mechanical drawings b-2 sym53c875/875e data manual figure b-2:sym53c875n mechanical drawing pin 208 pin 52 pin 104 pin 157 pin 1 indicator 28.00 ?0.10 31.90 ?0.25 0.8 ?0.15 seating plane 0.15 .50 typ 3.42 ?0.25 0.25 min 28.00 ?0.10 31.90 ?0.25 208-pin plastic quad flat package (qfp) 0.25 max 0.18 min + 0.08 ?0.02 0 7 25.50 25.50 4.07 max mechanical drawings sym53c875/875e data manual b-3 figure b-3:sym53c875jb (169-pin bga) mechanical drawing 0.60 .10 2.50 max 0.10 to 2.50 mold compound printed circuit board die solder ball side view top view 23.00 .20 23.00 .20 pin 1 2.15 to 3.50 mold compound printed wiring board 13 12 11 10 9 8 7 6 5 4 3 2 1 a b c d e f g h j k l m n pin 1 corner 0.75 .15 1.50 bottom view 2.50 all dimensions in millimeters mechanical drawings b-4 sym53c875/875e data manual external memory interface diagram examples sym53c875/875e data manual c-1 figure c -1:64 k interface with 200 ns memory sym53c875 27c128 hct374 hct374 moe/ mce/ mad7-0 bus d(7-0) a(7-0) a(13-8) mad0 mad1 mad2 mad3 4.7k 4.7k 4.7k 4.7k v ss mas0/ mas1/ 8 6 d0 d7 ck q0 q7 oe do qo d5 q5 ck oe mad bus sense logic enabled for 16 kb of slow memory (200 ns device @ 33mhz) oe ce appendix c external memory interface diagram examples external memory interface diagram examples c-2 sym53c875/875e data manual figure c -2:64 k interface with 150 ns memory sym53c875 27c512-15/ 28f512-15/ socket hct374 hct374 moe/ mce/ mad7-0 bus d(7-0) a(7-0) a(15-8) mad1 mad3 4.7k 4.7k v ss mas0/ mas1/ 8 8 d0 d7 ck q0 q7 oe do qo d7 q7 ck oe mad bus sense logic enabled for 64 kb of fast memory (150 ns device @ 33mhz) oe ce mwe/ gpio4 + 12v v pp control v pp optional - for flash memory only, not required for eeproms we external memory interface diagram examples sym53c875/875e data manual c-3 figure c -3:256 k interface with 150 ns memory sym53c875 27c020-15/ 28f020-15/ socket hct374 hct374 moe/ mce/ mad7-0 bus d(7-0) a(7-0) a(15-8) mad1 mad2 4.7k 4.7k v ss mas0/ mas1/ 8 2 d0 d7 ck q0 q7 oe do qo d7 q7 ck oe mad bus sense logic enabled for 256 kb of fast memory (150 ns device @ 33mhz). the hct374s may be replaced with hct377s. oe ce mwe/ gpio4 + 12v v pp control v pp optional - for flash memory only, not required for eeproms we hct377 do qo d1 q1 ck e 8 mad1-0 bus a(17-16) external memory interface diagram examples c-4 sym53c875/875e data manual figure c -4:512 k interface with 150 ns memory sym53c875 27c010-15/28f010-15 sockets hct374 hct374 moe/ mce/ mad7-0 bus d(7-0) a(7-0) a(15-8) mad0 mad2 4.7k 4.7k v ss mas0/ mas1/ 8 3 d0 d7 ck q0 q7 oe do qo d7 q7 ck oe mad bus sense logic enabled for 512 kb of slow memory (150 ns devices, additional time required for hct139 @ 33mhz). the hct374s may be replaced with hct377s. oe mwe/ gpio4 + 12v v pp control v pp optional - for flash memory only, not required for eeproms we hct377 do qo d2 q2 ck e 8 mad2-0 bus a16 a0 a16 oe we a0 a16 oe we a0 a16 oe we a0 a16 d0 d7 d0 d7 d0 d7 d0 d7 hct139 a yo b y3 gb y1 y2 ce ce ce ce a17 a18 engineering notes sym53c875/875e data manual d-1 the system engineering notes included in this appendix apply to the sym53c875. sen 882 requirements for upgrading to revision f sym53c875 sen 883 pci pad power up sequence appendix d engineering notes engineering notes d-2 sym53c875/875e data manual sym53c875/875e data manual i-1 index index numerics 3.3/5 volt pci interface , 2-5 53c700 compatibility bit , 5-38 a abort operation bit , 5-23 aborted bit , 5-18 , 5-36 absolute maximum stress ratings , 7-1 active negation see tolerant technology active termination , 2-16 adder register , 5-39 adder sum output register , 5-39 additional interface pins , 4-15 alwys wide scsi bit , 5-52 arbitation in progress bit , 5-20 arbitration arbitration in progress bit , 5-20 arbitration mode bits , 5-5 arbitration pins , 4-12 immediate arbitration bit , 5-8 lost arbitration bit , 5-20 won arbitration bit , 5-20 arbitration mode bits , 5-5 arbitration priority encoder test bit , 5-49 assert even scsi parity bit , 5-7 assert satn/ on parity error bit , 5-6 assert scsi ack/ signal bit , 5-16 assert scsi atn/ signal bit , 5-16 assert scsi bsy/ signal bit , 5-16 assert scsi c_d/ signal bit , 5-16 assert scsi data bus bit , 5-7 assert scsi i_o signal bit , 5-16 assert scsi msg/ signal bit , 5-16 assert scsi req/ signal bit , 5-16 assert scsi rst/ signal bit , 5-7 assert scsi sel/ signal bit , 5-16 b big and little endian support , 2-6 block move instructions , 6-4 burst disable bit , 5-29 burst length bits , 5-31 , 5-35 burst op code fetch enable bit , 5-36 bus fault bit , 5-18 , 5-36 byte empty in dma fifo bit , 5-25 byte full in dma fifo bit , 5-25 byte offset counter bits , 5-28 , 5-31 c cache line size enable bit , 5-37 cache mode, see pci cache mode , 3-3 chained block moves , 2-24 2-27 sodl register , 2-25 swide register , 2-25 wide scsi receive bit , 2-24 wide scsi send bit , 2-24 chained mode bit , 5-9 chip revision level bits , 5-27 chip test five register , 5-30 chip test four register , 5-29 chip test one register , 5-25 chip test six register , 5-31 chip test two register , 5-26 chip test zero register , 5-25 chip type bits , 5-45 clear dma fifo bit , 5-27 clear scsi fifo bit , 5-54 clock address incrementor bit , 5-30 clock byte counter bit , 5-30 clock conversion factor bits , 5-11 index i-2 sym53c875/875e data manual clock timing , 7-9 configuration registers. see pci configuration reg- isters configured as i/o bit , 5-26 configured as memory bit , 5-26 connected bit , 5-7 , 5-24 ctest0 register , 5-25 ctest1 register , 5-25 ctest2 register , 5-26 ctest4 register , 5-29 ctest5 register , 5-30 ctest6 register , 5-31 d data acknowledge status bit , 5-26 data path , 2-10 data request status bit , 5-26 data structure address register , 5-22 data transfer direction bit , 5-26 datard bit , 5-45 datawr bit , 5-45 dbc register , 5-32 dblen bit 3 , 5-50 dblsel bit 2 , 5-50 dcmd register , 5-32 dcntl register , 5-37 destination i/o-memory enable bit , 5-35 dfifo register , 5-28 dien register , 5-36 dif bit , 5-51 differential mode diffsens pin , 4-16 direction control pins , 4-14 operation , 2-13 scsi differential mode bit , 5-51 disable halt on parity error or atn , 5-7 disable single initiator response bit , 5-53 dma byte counter register , 5-32 dma command register , 5-32 dma control register , 5-37 dma core , 2-1 dma direction bit , 5-31 dma fifo bits , 5-31 dma fifo empty bit , 5-18 dma fifo register , 5-28 dma fifo size bit , 5-30 dma interrupt enable register , 5-36 dma interrupt pending bit , 5-24 dma mode register , 5-35 dma next address register , 5-33 dma scripts pointer register , 5-33 dma scripts pointer save register , 5-34 dma status register , 5-18 dmode register , 5-35 dnad register , 5-33 dsa register , 5-22 dsp register , 5-33 dsps register , 5-34 dstat register , 5-18 e enable parity checking bit , 5-6 enable read line bit , 5-35 enable read multiple bit , 5-35 enable response to reselection bit , 5-12 enable response to selection bit , 5-12 enable wide scsi bit , 5-11 encoded chip scsi id , 5-12 encoded destination scsi id bit , 5-17 encoded destination scsi id bits , 5-15 error reporting pins , 4-12 extend sreq/sack filtering bit , 5-52 external memory interface , 2-4 configuration , 2-5 sym53c875/875e data manual i-3 index diagram , 1-6 flash rom updates , 2-4 gpio4 bit , 5-15 memory sizes supported , 2-4 multiple byte accesses , 7-11 pins , 4-17 slow memory , 2-5 system requirements , 2-4 extra clock cycle of data setup bit , 5-7 f fast-20 benefits , 1-2 clock conversion factor bits , 5-11 designing a fast-20 system , 2-2 fast-20 enable bit , 5-10 synchronous clock conversion factor bits , 5- 10 synchronous transfer period bits , 5-12 fast-20 enable bit , 5-10 fetch enable , 5-45 fetch pin mode bit , 5-27 fifo byte control bits , 5-30 fifo flags bits , 5-20 , 5-22 flush dma fifo bit , 5-27 function complete bit , 5-39 , 5-41 g general description , 1-1 general purpose pin control register , 5-45 general purpose register , 5-15 general purpose timer expired bit , 5-41 , 5-43 general purpose timer period bits , 5-47 general purpose timer scale factor bit , 5-47 gpcntl register , 5-45 gpio enable bit , 5-45 gpio4-0 bits , 5-15 gpreg register , 5-15 h halt scsi clock bit , 5-53 handshake-to-handshake timer bus activity en- able bit , 5-47 handshake-to-handshake timer expired bit , 5- 41 , 5-43 handshake-to-handshake timer period bit , 5-46 high impedance mode bit , 5-29 i i/o instructions , 6-8 illegal instruction detected bit , 5-18 immediate arbitration bit , 5-8 instruction prefetching , 2-3 pre-fetch enable bit , 5-37 pre-fetch flush bit , 5-37 prefetch unit flushing , 2-3 instructions block move , 6-4 i/o , 6-8 load and store , 6-23 memory move , 6-20 read/write , 6-13 transfer control , 6-16 interface control pins , 4-11 internal ram, see also scripts ram , 2-2 interrupt on the fly bit , 5-24 interrupt output , 7-10 interrupt status register , 5-23 interrupts fatal vs. non-fatal interrupts , 2-22 halting , 2-23 irq disable bit , 2-22 masking , 2-22 sample interrupt service routine , 2-24 stacked interrupts , 2-23 irq disable bit , 5-38 irq mode bit , 5-38 index i-4 sym53c875/875e data manual istat register , 5-23 j jtag support , 2-6 l last disconnect bit , 5-22 latched scsi parity bit , 5-20 latched scsi parity for sd15-8 bit , 5-22 load and store instructions , 6-23 no flush option , 6-23 prefetch unit and store instructions , 2-3 , 6-23 lost arbitration bit , 5-20 m macntl register , 5-45 mad bus programming , 4-19 mad(0) , 4-20 mad(3-1) , 4-20 mad(4) , 4-19 mad(5) , 4-19 mad(6) , 4-19 mad(7) , 4-19 manual start mode bit , 5-36 master control for set or reset pulses bit , 5-30 master data parity error bit , 5-18 , 5-36 master enable bit , 5-45 master parity error enable bit , 5-30 max scsi synchronous offset bits , 5-14 memory access control register , 5-45 memory move instructions , 6-20 and scripts instruction prefetching , 2-3 no flush option , 2-3 memory read line command , 3-5 memory read multiple command , 3-5 memory write and invalidate command , 3-4 write and invalidate mode bit , 3-8 n ncr tolerant technology electrical characteristics , 7-6 no flush memory move instruction , 6-21 o op code fetch bursting , 2-4 operating conditions , 7-1 operating registers adder sum output , 5-39 chip test five , 5-30 chip test four , 5-29 chip test one , 5-25 chip test six , 5-31 chip test three , 5-27 chip test two , 5-26 chip test zero , 5-25 data structure address , 5-22 dma byte counter , 5-32 dma command , 5-32 dma control , 5-37 dma fifo , 5-28 dma interrupt enable , 5-36 dma mode , 5-35 dma next address , 5-33 dma scripts pointer , 5-33 dma scripts pointer save , 5-34 dma status , 5-18 general information , 5-1 general purpose , 5-15 general purpose pin control , 5-45 interrupt status , 5-23 memory access control , 5-45 register address map , 5-4 response id one , 5-49 response id zero , 5-49 scratch byte , 5-37 scratch register a , 5-34 sym53c875/875e data manual i-5 index scratch register b , 5-56 scsi bus control lines , 5-17 scsi bus data lines , 5-55 scsi chip id , 5-12 scsi control one register , 5-7 scsi control register two , 5-9 scsi control three , 5-10 scsi control zero , 5-5 scsi destination id , 5-15 scsi first byte received , 5-16 scsi input data latch , 5-54 scsi interrupt enable one , 5-41 scsi interrupt enable zero , 5-39 scsi interrupt status one , 5-43 scsi interrupt status zero , 5-41 scsi longitudinal parity , 5-43 scsi output control latch , 5-16 scsi output data latch , 5-55 scsi selector id , 5-17 scsi status one , 5-20 scsi status two , 5-21 scsi status zero , 5-19 scsi test one , 5-50 scsi test three , 5-53 scsi test two , 5-51 scsi test zero , 5-49 scsi timer one , 5-47 scsi timer zero , 5-46 scsi transfer , 5-12 scsi wide residue , 5-44 temporary stack , 5-28 p package and feature options , 1-2 parity , 2-7 2-9 parity error bit , 5-42 pci cache mode , 3-3 cache line size enable bit , 5-37 cache line size register , 3-11 enable read multiple bit , 5-35 memory read line command , 3-5 memory read multiple command , 3-5 memory write and invalidate command , 3-4 write and invalidate mode bit , 3-8 write and invalidate enable bit , 5-27 pci commands , 3-1 pci configuration registers subsystem data , 3-12 pci configuration registers , 3-6 3-13 base address one (memory) , 3-11 base address zero (i/o) , 3-11 cache line size , 3-11 class code , 3-10 command , 3-8 data , 3-15 device id , 3-8 expansion rom base address , 3-12 header type , 3-11 interrupt line , 3-13 interrupt pin , 3-13 latency timer , 3-11 max_lat , 3-13 min_gnt , 3-13 next item pointer , 3-13 power management control/status , 3-14 revision id , 3-10 status , 3-9 subsystem id (ssid) , 3-12 subsystem vendor id (ssvid) , 3-12 vendor id , 3-8 pci configuration space , 3-1 pci i/o space , 3-1 pci memory space , 3-1 pci timings , 7-34 phase mismatch bit , 5-41 pins index i-6 sym53c875/875e data manual additional interface pins , 4-15 arbitration pins , 4-12 error reporting pins , 4-12 external memory interface pins , 4-17 interface control pins , 4-11 scsi pins , 4-13 pointer scripts bit , 5-45 power and ground pins , 4-5 , 4-6 power management power state d0 , 2-27 power state d3 , 2-27 pre-fetch enable bit , 5-37 pre-fetch flush bit , 5-37 r ram, see also scripts ram , 2-2 read/write instructions , 6-13 register addresses operating registers 00h , 5-5 01h , 5-7 02h , 5-9 03h , 5-10 04h , 5-12 05h , 5-12 06h , 5-15 07h , 5-15 08h , 5-16 09h , 5-16 0ah , 5-17 0bh , 5-17 0ch , 5-18 0dh , 5-19 0eh , 5-20 0fh , 5-21 10-13h , 5-22 14h , 5-23 18h , 5-25 19h , 5-25 1ah , 5-26 1bh , 5-27 1c-1fh , 5-28 20h , 5-28 21h , 5-29 22h , 5-30 23h , 5-31 24-26h , 5-32 27h , 5-32 28-2bh , 5-33 2c-2fh , 5-33 30-33h , 5-34 34-37h , 5-34 38h , 5-35 39h , 5-36 3ah , 5-37 3bh , 5-37 3c-3fh , 5-39 40h , 5-39 41h , 5-41 42h , 5-41 43h , 5-43 44h , 5-43 45h , 5-44 46h , 5-45 47h , 5-45 48h , 5-46 49h , 5-47 4ah , 5-49 4bh , 5-49 4ch , 5-49 4dh , 5-50 4eh , 5-51 4fh , 5-53 50-51h , 5-54 54-55h , 5-55 58-59h , 5-55 5c-5fh , 5-56 60-70h , 5-56 pci configuration registers 00h , 3-8 02h , 3-8 04h , 3-8 06h , 3-9 08h , 3-10 sym53c875/875e data manual i-7 index 09h , 3-10 0ch , 3-11 0dh , 3-11 0eh , 3-11 10h , 3-11 14h , 3-11 18h , 3-11 2ch , 3-12 2eh , 3-12 30h , 3-12 34h , 3-12 3ch , 3-13 3dh , 3-13 3eh , 3-13 3fh , 3-13 40h , 3-13 41h , 3-13 42h , 3-14 44h , 3-14 46h , 3-15 47h , 3-15 register bits 53c700 compatibility , 5-38 abort operation , 5-23 aborted , 5-18 , 5-36 always wide scsi , 5-52 arbitration in progress , 5-20 arbitration mode , 5-5 arbitration priority encoder test , 5-49 assert even scsi parity (force bad parity)) , 5- 7 assert satn/ on parity error , 5-6 assert scsi ack/ signal , 5-16 assert scsi atn/ signal , 5-16 assert scsi bsy/ signal , 5-16 assert scsi c_d/ signal , 5-16 assert scsi data bus , 5-7 assert scsi i_o/ signal , 5-16 assert scsi msg/ signal , 5-16 assert scsi req/ signal) , 5-16 assert scsi rst/ signal , 5-7 assert scsi sel/ signal , 5-16 burst disable , 5-29 burst length , 5-31 , 5-35 burst op code fetch enable , 5-36 bus fault , 5-18 , 5-36 byte empty in dma fifo , 5-25 byte full in dma fifo , 5-25 byte offset counter , 5-28 , 5-31 cache line size enable , 5-37 chained mode , 5-9 chip revision level , 5-27 chip type , 5-45 clear dma fifo , 5-27 clear scsi fifo , 5-54 clock address incrementor , 5-30 clock byte counter , 5-30 clock conversion factor , 5-11 configured as i/o , 5-26 configured as memory , 5-26 connected , 5-7 , 5-24 data acknowledge status , 5-26 data request status , 5-26 data transfer direction , 5-26 datard , 5-45 datawr , 5-45 destination i/o-memory enable , 5-35 disable halt on parity error or atn , 5-7 disable single initiator response , 5-53 dma direction , 5-31 dma fifo , 5-31 dma fifo empty , 5-18 dma fifo size , 5-30 dma interrupt pending , 5-24 enable parity checking , 5-6 enable read line , 5-35 enable read multiple , 5-35 enable response to reselection , 5-12 enable response to selection , 5-12 index i-8 sym53c875/875e data manual enable wide scsi , 5-11 encoded chip scsi id, bits 3-0 , 5-12 encoded destination scsi id , 5-15 , 5-17 extend sreq/sack filtering , 5-52 extra clock cycle of data setup , 5-7 fast-20 enable , 5-10 fetch enable , 5-45 fetch pin mode , 5-27 fifo byte control , 5-30 fifo flags , 5-20 , 5-22 flush dma fifo , 5-27 function complete , 5-39 , 5-41 general purpose timer expired , 5-41 , 5-43 general purpose timer period , 5-47 general purpose timer scale factor , 5-47 gpio enable , 5-45 gpio4-0 , 5-15 halt scsi clock , 5-53 handshake-to-handshake timer bus activity enable , 5-47 handshake-to-handshake timer expired , 5- 41 , 5-43 handshake-to-handshake timer period , 5-46 high impedance mode , 5-29 illegal instruction detected , 5-18 illegal instruction detected , 5-36 immediate arbitration , 5-8 interrupt on the fly , 5-24 irq disable , 5-38 irq mode , 5-38 last disconnect , 5-22 latched scsi parity , 5-20 latched scsi parity for sd15-8 , 5-22 lost arbitration , 5-20 manual start mode , 5-36 master control for set or reset pulses , 5-30 master data parity error , 5-18 , 5-36 master enable , 5-45 master parity error enable , 5-30 max scsi synchronous offset , 5-14 parity error , 5-42 phase mismatch , 5-41 pointer scripts , 5-45 pre-fetch enable , 5-37 pre-fetch flush , 5-37 reselected , 5-39 , 5-42 reset scsi offset , 5-51 sack/ status , 5-17 satn/ status , 5-17 sbsy/ status , 5-17 sc_d/ status , 5-17 sclk , 5-50 sclk doubler enable bit , 5-50 sclk doubler select bit , 5-50 scratcha/b operation , 5-26 scripts , 5-45 scripts interrupt instruction received , 5- 18 scripts interrupt instruction received , 5-36 scsi c_d/ signal , 5-21 scsi control enable , 5-51 scsi data high impedance , 5-29 scsi differential mode , 5-51 scsi disconnect unexpected , 5-9 scsi fifo test read , 5-53 scsi fifo test write , 5-54 scsi gross error , 5-40 , 5-42 scsi high-impedance mode , 5-52 scsi i_o/ signal , 5-21 scsi interrupt pending , 5-24 scsi isolation mode , 5-50 scsi loopback mode , 5-51 scsi low level mode , 5-52 scsi msg/ signal , 5-21 scsi parity error , 5-40 scsi phase mismatch - initiator mode , 5-39 sym53c875/875e data manual i-9 index scsi reset condition , 5-40 scsi rst/ received , 5-42 scsi rst/ signal , 5-20 scsi sdp0/ parity signal , 5-20 scsi sdp1 signal , 5-22 scsi selected as id , 5-49 scsi synchronous offset maximum , 5-50 scsi synchronous offset zero , 5-49 scsi synchronous transfer period , 5-12 scsi true end of process , 5-26 scsi valid , 5-17 select with satn/ on a start sequence , 5-6 selected , 5-39 , 5-42 selection or reselection time-out , 5-41 , 5-43 selection response logic test , 5-49 selection time-out , 5-46 semaphore , 5-23 shadow register test mode , 5-29 si_o/ status , 5-17 sidl least significant byte full , 5-19 sidl most significant byte full , 5-21 signal process , 5-23 , 5-26 single step interrupt , 5-18 single-step interrupt , 5-36 single-step mode , 5-37 slpar high byte enable , 5-9 slpar mode , 5-9 smsg/ status , 5-17 sodl least significant byte full , 5-19 sodl most significant byte full , 5-21 sodr least significant byte full , 5-19 sodr most significant byte full , 5-21 software reset , 5-23 source i/o-memory enable , 5-35 sreq/ status , 5-17 ssel/ status , 5-17 start dma operation , 5-38 start scsi transfer , 5-8 start sequence , 5-5 synchronous clock conversion factor , 5-10 target mode , 5-6 timer test mode , 5-53 tolerant enable , 5-53 unexpected disconnect , 5-40 , 5-42 wide scsi receive , 5-10 wide scsi send , 5-9 won arbitration , 5-20 write and invalidate enable , 5-27 registers see operating registers reselected bit , 5-39 , 5-42 reset input , 7-10 reset scsi offset bit , 5-51 respid0 register , 5-49 respid1 register , 5-49 response id one register , 5-49 response id zero register , 5-49 revision level bits , 5-27 s sack/ status bit , 5-17 satn/ active , 5-41 satn/ active bit , 5-41 satn/ status bit , 5-17 sbcl register , 5-17 sbdl register , 5-55 sbr register , 5-37 sbsy status bit , 5-17 sc_d/ status bit , 5-17 scid register , 5-12 sclk bit , 5-50 scntl0 register , 5-5 scntl1 register , 5-7 scntl2 register , 5-9 scntl3 register , 5-10 index i-10 sym53c875/875e data manual scratch register , 5-37 scratcha register , 5-34 scratcha/b operation bit , 5-26 scratchb register , 5-56 scripts bit , 5-45 scripts interrupt instruction received bit , 5- 18 scripts processor , 2-1 instruction prefetching , 2-3 internal ram for instruction storage , 2-2 performance , 2-1 scripts ram , 2-2 scratcha/b operation bit , 5-26 scsi core , 2-1 differential mode , 2-13 pins , 4-13 termination , 2-16 timings , 7-35 tolerant technology , 1-3 scsi atn condition - target mode , 5-39 scsi atn condition bit , 5-39 scsi bus control lines register , 5-17 scsi bus data lines register , 5-55 scsi bus interface , 2-13 2-18 scsi c_d/ signal bit , 5-21 scsi chip id register , 5-12 scsi clk frequency doubling , 5-51 scsi control enable bit , 5-51 scsi control one register , 5-7 scsi control three register , 5-10 scsi control two register , 5-9 scsi control zero register , 5-5 scsi core , 2-1 scsi data high impedance bit , 5-29 scsi destination id register , 5-15 scsi device management system (sdms) , 2-2 scsi differential mode bit , 5-51 scsi disconnect unexpected bit , 5-9 scsi fifo test read bit , 5-53 scsi fifo test write bit , 5-54 scsi first byte received register , 5-16 scsi gross error bit , 5-40 , 5-42 scsi high-impedance mode bit , 5-52 scsi i_o/ signal bit , 5-21 scsi input data latch register , 5-54 scsi instructions block move , 6-4 i/o , 6-8 load/store , 6-23 memory move , 6-20 read/write , 6-13 transfer control , 6-16 scsi interrupt enable one register , 5-41 scsi interrupt enable zero register , 5-39 scsi interrupt pending bit , 5-24 scsi interrupt status one register , 5-43 scsi interrupt status zero register , 5-41 scsi isolation mode bits , 5-50 scsi longitudinal parity register , 5-43 scsi loopback mode bit , 5-51 scsi low level mode bit , 5-52 scsi msg/ signal bit , 5-21 scsi output control latch register , 5-16 scsi output data latch register , 5-55 scsi parity error bit , 5-40 scsi phase mismatch bit , 5-39 scsi reset condition bit , 5-40 scsi rst/ received bit , 5-42 scsi rst/ signal bit , 5-20 scsi scripts operation , 6-1 sample instruction , 6-2 sym53c875/875e data manual i-11 index scsi sdp0/ parity signal bit , 5-20 scsi sdp1 signal bit , 5-22 scsi selected as id bits , 5-49 scsi selector id register , 5-17 scsi status one register , 5-20 scsi status two register , 5-21 scsi status zero register , 5-19 scsi synchronous offset maximun , 5-50 scsi synchronous offset zero bit , 5-49 scsi test one register , 5-50 scsi test three register , 5-53 scsi test two register , 5-51 scsi test zero register , 5-49 scsi timer one register , 5-47 scsi timer zero register , 5-46 scsi timings , 7-35 7-38 scsi transfer register , 5-12 scsi true end of process bit , 5-26 scsi valid bit , 5-17 scsi wide residue register , 5-44 sdid register , 5-15 select with satn/ on a start sequence bit , 5-6 selected bit , 5-39 , 5-42 selection or reselection time-out bit , 5-41 , 5-43 selection response logic test bits , 5-49 semaphore bit , 5-23 sfbr register , 5-16 shadow register test mode bit , 5-29 si_o/ status bit , 5-17 sidl least significant byte full bit , 5-19 sidl most significant byte full bit , 5-21 sidl register , 5-54 sien0 register , 5-39 sien1 register , 5-41 sigp bit , 5-23 , 5-26 single step interrupt bit , 5-18 single-ended operation , 2-13 single-step interrupt bit , 5-36 single-step mode bit , 5-37 sist0 register , 5-41 sist1 register , 5-43 slpar high byte enable , 5-9 slpar mode bit , 5-9 slpar register , 5-43 smsg/ status bit , 5-17 socl least significant byte full bit , 5-19 socl register , 5-16 sodl most significant byte full bit , 5-21 sodl register , 5-55 sodr least significant byte full bit , 5-19 sodr most significant byte full bit , 5-21 software reset bit , 5-23 source i/o-memory enable bit , 5-35 sreq/ status bit , 5-17 ssel/ status bit , 5-17 ssid register , 5-17 sstat0 register , 5-19 sstat1 register , 5-20 sstat2 register , 5-21 stacked interrupts , 2-23 start dma operation bit , 5-38 start scsi transfer , 5-8 start sequence bit , 5-5 stest0 register , 5-49 stest1 register , 5-50 stest2 register , 5-51 stest3 register , 5-53 stime0 register , 5-46 stime1 register , 5-47 swide register , 5-44 sxfer register , 5-12 sym53c770 index i-12 sym53c875/875e data manual doubling the scsi clk frequency , 5-51 synchronous clock conversion factor bits , 5-10 synchronous data transfer rates , 2-18 synchronous transfer period bits , 5-12 t target mode bit , 5-6 temp register , 5-28 temporary register , 5-28 termination , 2-16 timer test mode bit , 5-53 timings back-to-back read , 7-19 back-to-back write , 7-21 burst op code fetch , 7-19 burst read , 7-21 burst write , 7-21 clock , 7-9 configuration register read , 7-12 configuration register write , 7-12 interrupt output , 7-10 pci , 7-34 read cycle, 16 kb rom , 7-30 read cycle, normal/fast memory, multiple byte access , 7-26 read cycle, slow memory , 7-26 reset input , 7-10 scsi , 7-35 target read, from external memory , 7-15 target read, not from external memory , 7-12 target write, not to external memory , 7-15 target write, to external memory , 7-15 write cycle, 16 kb rom , 7-31 write cycle, normal/fast memory, multiple byte access , 7-26 write cycle, slow memory , 7-26 tolerant enable bit , 5-53 tolerant technology , 1-3 benefits , 1-3 extend sreq/sack filtering bit , 5-52 tolerant enable bit , 5-53 transfer control instructions , 6-16 and scripts instruction prefetching , 2-4 transfer rate , 1-3 synchronous , 2-18 u unexpected disconnect bit , 5-40 , 5-42 w watn/ bit , 5-6 what is covered in this manual , 1-1 wide scsi always wide scsi bit , 5-52 chained block moves , 2-24 chained mode bit , 5-9 enable wide scsi bit , 5-11 swide register , 5-44 wide scsi receive bit , 5-10 wide scsi send bit , 5-9 wide scsi receive bit , 5-10 wide scsi send bit , 5-9 won arbitration bit , 5-20 write and invalidate enable bit , 5-27 north american sales locations western sales area 1731 technology drive, suite 610 san jose, ca 95110 (408) 441-1080 3300 irvine avenue, suite 255 newport beach, ca 92660 (714) 474-7095 eastern sales area 2850 metro drive, suite 510 bloomington, mn 55425 (612) 876-0800 12377 merit dr., suite 400 dallas, tx 75251 (972) 503-3205 92 montvale avenue, suite 3500 stoneham, ma 02180-3623 (617) 438-0043 30 mansell court, suite 220 roswell, ga 30076 (404) 641-8001 international sales locations european sales headquarters westendstrasse 193\ii 80686 muenchen germany +49-89-547470-0 asia/paci? sales headquarters no. 6 raf?s boulevard #02-256 marina square singapore, 039594 +65 - 3376 323 symbios, inc. sales locations for literature on any symbios, inc. product or service, call our hotline toll-free 1-800-856-3093 ?symbios logic inc. printed in the u.s.a. t42984i 0298-1mh sym53c875/875e pci-ultra scsi i/o processor data manual version 4.0 symbios logic |
Price & Availability of SYM53C875JBE
![]() |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |