CMOS SyncBiFIFOTM 256 x 18 x 2 512 x 18 x 2 read and write cycle times. The SyncBiFIFOTM is a data buffer that can store or retrieve information from two sources simultaneously. Two Dual-Port FIFO memory arrays are contained in the SyncBiFIFO; one data buffer for each direction. The SyncBiFIFO has registers on all inputs and outputs. Data is only transferred into the I/O registers on clock edges, hence the interfaces are synchronous. Each Port has its own independent clock. Data transfers to the I/O registers are gated by the enable signals. The transfer direction for each port is controlled independently by a read/write signal. Individual output enable signals control whether the SyncBiFIFO is driving the data lines of a port or whether those data lines are in a high-impedance state. Bypass control allows data to be directly transferred from input to output register in either direction. The SyncBiFIFO has eight flags. The flag pins are Full, Empty, Almost-Full, and Almost-Empty for both FIFO memories. The offset depths of the Almost-Full and Almost-Empty flags can be programmed to any location. The SyncBiFIFO is fabricated using IDT's high-speed, submicron CMOS technology. FEATURES: * * * * * * * * * * * IDT72605 IDT72615 Two independent FIFO memories for fully bidirectional data transfers 256 x 18 x 2 organization (IDT72605) 512 x 18 x 2 organization (IDT72615) Synchronous interface for fast (20ns) read and write cycle times Each data port has an independent clock and read/write control Output enable is provided on each port as a three-state control of the data bus Built-in bypass path for direct data transfer between two ports Two fixed flags, Empty and Full, for both the A-to-B and the Bto-A FIFO Programmable flag offset can be set to any depth in the FIFO The synchronous BiFIFO is packaged in a 64-pin TQFP (Thin Quad Flatpack) and 68-pin PLCC Industrial temperature range (-40C to +85C) DESCRIPTION: The IDT72605 and IDT72615 are very high-speed, low-power bidirectional First-In, First-Out (FIFO) memories, with synchronous interface for fast FUNCTIONAL BLOCK DIAGRAM DA0-DA17 ENA R/WA OEA HIGH Z CONTROL INPUT REGISTER CLKA CSA A2 A1 A0 EFAB PAEAB PAFAB FFAB OUTPUT REGISTER P INTERFACE MUX MEMORY ARRAY 512 x 18 256 x 18 FLAG LOGIC MEMORY ARRAY 512 x 18 256 x 18 OEB R/WB ENB RS FLAG LOGIC EFBA PAEBA PAFBA FFBA POWER SUPPLY MUX OUTPUT REGISTER CLKB RESET LOGIC 3 7 VCC GND INPUT REGISTER HIGH Z CONTROL BYPB DB0-DB17 2704 drw 01 IDT and the IDT logo are trademarks of Integrated Device Technology, Inc. The SyncBiFIFO is a trademark of Integrated Device Technology, Inc. APRIL 2003 INDUSTRIAL TEMPERATURE RANGE 1 2003 Integrated Device Technology, Inc. All rights reserved. Product specifications subject to change without notice. DSC-2704/8 IDT72605/72615 CMOS SYNCBiFIFOTM 256 x 18x 2 and 512 x 18 x 2 INDUSTRIAL TEMPERATURE RANGE DA15 GND DA14 DA13 DA12 DA11 DA10 VCC GND DA9 DA8 DA7 DA6 DA5 GND DA4 DA3 PIN CONFIGURATIONS 9 8 7 6 5 4 3 2 68 67 66 65 64 63 62 61 1 60 10 59 11 58 12 57 13 56 14 55 15 54 16 53 17 52 18 51 19 50 20 49 21 48 22 47 23 46 24 45 25 44 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 DB15 GND DB14 DB13 DB12 DB11 DB10 VCC GND DB9 DB8 DB7 DB6 DB5 GND DB4 DB3 DA16 CA17 CLKA R/WA ENA CSA A0 A1 A2 VCC EFAB FFAB PAEAB PAFAB OEA DB17 DB16 DA2 DA1 DA0 EFBA FFBA PAEBA PAFBA GND BYPB OEB ENB R/WB CLKB RS DB0 DB1 DB2 2704 drw 02 DA1 DA0 EFBA FFBA PAEBA PAFBA GND BYBB OEB ENB R/WB CLKB RS DB0 DB1 DB2 PLCC (J68-1, order code: J) TOP VIEW PIN 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 DB3 DB4 GND DB5 DB6 DB7 DB8 DB9 DB10 DB11 DB12 DB13 DB14 GND DB15 DB16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 DA16 DA17 CLKA R/WA ENA CSA A0 A1 A2 VCC EFAB FFAB PAEAB PAFAB OEA DB17 DA2 DA3 DA4 DA5 DA6 DA7 DA8 DA9 GND VCC DA10 DA11 DA12 DA13 DA14 DA15 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 TQFP (PN64-1, order code: PF) TOP VIEW 2 2704 drw 03 IDT72605/72615 CMOS SYNCBiFIFOTM 256 x 18x 2 and 512 x 18 x 2 INDUSTRIAL TEMPERATURE RANGE PIN DESCRIPTION Symbol Name DA0-DA17 CSA R/WA Data A Chip Select A Read/Write A CLKA ENA OEA Clock A Enable A Output Enable A A0, A1, A2 Addresses DB0-DB17 Data B Read/Write B R/WB I/O I/O I I I I I I I/O I CLKB ENB OEB Clock B Enable B Output Enable B I I I EFAB AB Empty Flag O PAEAB AB Programmable Almost-Empty Flag AB Programmable Almost-Full Flag AB Full Flag O EFBA BA Empty Flag O PAEBA BA Programmable Almost-Empty Flag BA Programmable Almost-Full Flag BA Full Flag O Port B Bypass Flag Reset Power Ground O PAFAB FFAB PAFBA FFBA BYPB RS VCC GND Description Data inputs & outputs for the 18-bit Port A bus. Port A is accessed when CSA is LOW. Port A is inactive if CSA is HIGH. This pin controls the read or write direction of Port A. If R/WA is LOW, Data A input data is written into Port A. If R/WA is HIGH, Data A output data is read from Port A. In bypass mode, when R/WA is LOW, message is written into AB output register. If R/WA is HIGH, message is read from BA output register. CLKA is typically a free running clock. Data is read or written into Port A on the rising edge of CLKA. When ENA is LOW, data can be read or written to Port A. When ENA is HIGH, no data transfers occur. When R/WA is HIGH, Port A is an output bus and OEA controls the high-impedance state of DA0-DA17. If OEA is HIGH, Port A is in a high-impedance state. If OEA is LOW while CSA is LOW and R/WA is HIGH, Port A is in an active (low-impedance) state. When CSA is asserted, A0, A1, A2 and R/WA are used to select one of six internal resources. Data inputs & outputs for the 18-bit Port B bus. This pin controls the read or write direction of Port B. If R/WB is LOW, Data B input data is written into Port B. If R/WB is HIGH, Data B output data is read from Port B. In bypass mode, when R/WB is LOW, message is written into BA output register. If R/WB is HIGH, message is read from AB output register. Clock B is typically a free running clock. Data is read or written into Port B on the rising edge of CLKB. When ENB is LOW, data can be read or written to Port B. When ENB is HIGH, no data transfers occur. When R/WB is HIGH, Port B is an output bus and OEB controls the high-impedance state of DB0-DB17. If OEB is HIGH, Port B is in a high-impedance state. If OEB is LOW while R/WB is HIGH, Port B is in an active (low-impedance) state. When EFAB is LOW, the AB FIFO is empty and further data reads from Port B are inhibited. When EFAB is HIGH, the FIFO is not empty. EFAB is synchronized to CLKB. In the bypass mode, EFAB HIGH indicates that data DA0-DA17 is available for passing through. After the data DB0-DB17 has been read, EFAB goes LOW. When PAEAB is LOW, the AB FIFO is almost-empty. An almost-empty FIFO contains less than or equal to the offset programmed into PAEAB Register. When PAEAB is HIGH, the AB FIFO contains more than offset in PAEAB Register. The default offset value for PAEAB Register is 8. PAEAB is synchronized to CLKB. O When PAFAB is LOW, the AB FIFO is almost-full. An almost-full FIFO contains greater than the FIFO depth minus the offset programmed into PAFAB Register. When PAFAB is HIGH, the AB FIFO contains less than or equal to the depth minus the offset in PAFAB Register. The default offset value for PAFAB Register is 8. PAFAB is synchronized to CLKA. O When FFAB is LOW, the AB FIFO is full and further data writes into Port A are inhibited. When FFAB is HIGH, the FIFO is not full. FFAB is synchronized to CLKA. In bypass mode, FFAB tells Port A that a message is waiting in Port B's output register. If FFAB is LOW, a bypass message is in the register. If FFAB is HIGH, Port B has read the message and another message can be written into Port A. When EFBA is LOW, the BA FIFO is empty and further data reads from Port A are inhibited. When EFBA is HIGH, the FIFO is not empty. EFBA is synchronized to CLKA. In the bypass mode, EFBA HIGH indicates that data DB0-DB17 is available for passing through. After the data DA0-DA17 has been read, EFBA goes LOW on the following cycle. When PAEBA is LOW, the BA FIFO is almost-empty. An almost-empty FIFO contains less than or equal to the offset programmed into PAEBA Register. When PAEBA is HIGH, the BA FIFO contains more than offset in PAEBA Register. The default offset value for PAEBA Register is 8. PAEBA is synchronized to CLKA. O When PAFBA is LOW, the BA FIFO is almost-full. An almost-full FIFO contains greater than the FIFO depth minus the offset programmed into PAFBA Register. When PAFBA is HIGH, the BA FIFO contains less than or equal to the depth minus the offset in PAFBA Register. The default offset value for PAFBA Register is 8. PAFBA is synchronized to CLKB. O When FFBA is LOW, the BA FIFO is full and further data writes into Port B are inhibited. When FFBA is HIGH, the FIFO is not full. FFBA is synchronized to CLKB. In bypass mode, FFBA tells Port B that a message is waiting in Port A's output register. If FFBA is LOW, a bypass message is in the register. If FFBA is HIGH, Port A has read the message and another message can be written into Port B. This flag informs Port B that the synchronous BiFIFO is in bypass mode. When BYPB is LOW, Port A has placed the FIFO into bypass mode. If BYPB is HIGH, the synchronous BiFIFO passes data into memory. BYPB is synchronized to CLKB. A LOW on this pin will perform a reset of all synchronous BiFIFO functions. There are three +5V power pins for the PLCC and two for the TQFP. There are seven ground pins for the PLCC and four for the TQFP. I 3 IDT72605/72615 CMOS SYNCBiFIFOTM 256 x 18x 2 and 512 x 18 x 2 INDUSTRIAL TEMPERATURE RANGE RECOMMENDED DC OPERATING CONDITIONS ABSOLUTE MAXIMUM RATINGS(1) Symbol Industrial Unit -0.5 to +7.0 V TSTG Terminal Voltage with Respect to Ground Storage Temperature -55 to +125 C IOUT DC Output Current -50 to +50 mA VTERM Rating SYMBOL VCC NOTE: 1. Stresses greater than those listed under ABSOLUTE MAXIMUM RATINGS may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect reliability. PARAMETER MIN. TYP. MAX. UNIT Supply Voltage 4.5 5.0 5.5 V GND Supply Voltage 0 0 0 V VIH Input High Voltage 2.0 -- -- V Input Low Voltage -- -- 0.8 V Operating Temperature -40 -- 85 C VIL TA (1) NOTE: 1. 1.5V undershoots are allowed for 10ns once per cycle. DC ELECTRICAL CHARACTERISTICS (Industrial: VCC = 5V 10%, TA = -40C to +85C) IDT72615L IDT72605L Industrial tCLK = 20, 25, 35, 50ns Symbol Min. Typ. Max. Input Leakage Current (Any Input) -1 -- 1 A ILO Output Leakage Current -10 -- 10 A VOH Output Logic "1" Voltage IOUT = -2mA 2.4 -- -- V VOL Output Logic "0" Voltage IOUT = 8mA -- -- 0.4 V Active Power Supply Current -- -- 230 mA ILI (1) (2) (3) ICC Parameter NOTES: 1. Measurements with 0.4V VIN VCC. 2. OEA, OEB VIH; 0.4 VOUT VCC. 3. Tested with outputs open (IOUT = 0). Testing frequency f=20MHz. CAPACITANCE (TA = +25C, F = 1.0MHz) Symbol Max. Unit CIN(2) Input Capacitance Parameter VIN = 0V Conditions 10 pF C OUT(1,2) Output Capacitance VOUT = 0V 10 pF NOTES: 1. With output deselected. 2. Characterized values, not currently tested. 4 Unit IDT72605/72615 CMOS SYNCBiFIFOTM 256 x 18x 2 and 512 x 18 x 2 INDUSTRIAL TEMPERATURE RANGE AC TEST CONDITIONS +5V In Pulse Levels GND to 3.0V Input Rise/Fall Times 3ns Input Timing Reference Levels 1.5V Output Reference Levels 1.5V Output Load 1.1K D.U.T. See Figure 2 30pF* 680 2704 drw 04 or equivalent circuit Figure 2. Output Load * Includes jig and scope capacitances. AC ELECTRICAL CHARACTERISTICS (Industrial: VCC = 5V 10%, TA = -40C to +85C) IDT72615L20 IDT72605L20 Min. Max. -- 50 Symbol Parameter Clock frequency fCLK Industrial IDT72615L25 IDT72615L35 IDT72605L25 IDT72605L35 Min. Max. Min. Max. -- 40 -- 28 IDT72615L50 IDT72605L50 Min. Max. -- 20 Unit MHz Timing Figures -- tCLK Clock cycle time 20 -- 25 -- 35 -- 50 -- ns 4,5,6,7 tCLKH Clock HIGH time 8 -- 10 -- 14 -- 20 -- ns 4,5,6,7,12,13,14,15 tCLKL Clock LOW time 8 -- 10 -- 14 -- 20 -- ns 4,5,6,7,12,13,14,15 tRS Reset pulse width 20 -- 25 -- 35 -- 50 -- ns 3 tRSS Reset setup time 12 -- 15 -- 21 -- 30 -- ns 3 tRSR Reset recovery time 12 -- 15 -- 21 -- 30 -- ns 3 tRSF Reset to flags in initial state -- 27 -- 28 -- 35 -- 50 ns 3 tA Data access time 3 10 3 15 3 21 3 25 ns 5,7,8,9,10,11 tCS Control signal setup time(1) 6 -- 6 -- 8 -- 10 -- ns 4,5,6,7,8,9,10,11, 12, 13,14,15 tCH Control signal hold time(1) 1 -- 1 -- 1 -- 1 -- ns 4,5,6,7,10,11,12, 13, 14,15 tDS Data setup time 6 -- 6 -- 8 -- 10 -- ns 4,6,8,9,10,11 tDH Data hold time 1 -- 1 -- 1 -- 1 -- ns 4,6 3 10 3 13 3 20 3 28 ns 5,7,8,9,10,11 0 -- 0 -- 0 -- 0 -- ns 5,7,8,9,10,11 3 10 3 13 3 20 3 28 ns 5,7,10,11 (2) tOE Output Enable LOW to output data valid tOLZ Output Enable LOW to data bus at Low-Z(2) (2) tOHZ Output Enable HIGH to data bus at High-Z tFF Clock to Full Flag time -- 10 -- 15 -- 21 -- 30 ns 4,6,10,11 tEF Clock to Empty Flag time -- 10 -- 15 -- 21 -- 30 ns 5,7,8,9,10,11 tPAE Clock to Programmable Almost-Empty Flag time -- 12 -- 15 -- 21 -- 30 ns 12,14 tPAF Clock to Programmable Almost-Full Flag time -- 12 -- 15 -- 21 -- 30 ns 13,15 tSKEW1 Skew between CLKA & CLKB for Empty/Full Flags(2) 10 -- 12 -- 17 -- 20 -- ns 4,5,6,7,8,9,10,11 tSKEW2 Skew between CLKA & CLKB for Programmable Flags(2) 17 -- 19 -- 25 -- 34 -- ns 4, 7,12,13,14,15 NOTES: 1. Control signals refer to CSA, R/WA, ENA, A2, A1, A0, R/WB, ENB. 2. Minimum values are guaranteed by design. 5 IDT72605/72615 CMOS SYNCBiFIFOTM 256 x 18x 2 and 512 x 18 x 2 INDUSTRIAL TEMPERATURE RANGE FUNCTIONAL DESCRIPTION PORT A INTERFACE The SyncBiFIFO is straightforward to use in micro-processor-based systems because each port has a standard microprocessor control set. Port A interfaces with microprocessor through the three address pins (A2-A0) and a Chip Select CSA pins. When CSA is asserted, A2,A1,A0 and R/WA are used to select one of six internal resources (Table 1). With A2=0 and A1=0, A0 determines whether data can be read out of output register or be written into the FIFO (A0=0), or the data can pass through the FIFO through the bypass path (A0=1). With A2=1, four programmable flags (two AB FIFO programmable flags and two BA FIFO programmable flags) can be selected: the AB FIFO Almost-Empty flag Offset (A1=0, A0=0), AB FIFO Almost-Full flag Offset (A1=0, A0=1), BA FIFO Almost-Empty flag Offset (A1=1, A0=0), BA FIFO Almost-Full flag Offset (A1=1, A0=1). Port A is disabled when CSA is deasserted and data A is in high-impedance state. IDTs SyncBiFIFO is versatile for both multiprocessor and peripheral applications. Data can be stored or retrieved from two sources simultaneously. The SyncBiFIFO has registers on all inputs and outputs. Data is only transferred into the I/O registers on clock edges, hence the interfaces are synchronous. Two Dual-Port FIFO memory arrays are contained in the SyncBiFIFO; one data buffer for each direction. Each port has its own independent clock. Data transfers to the I/O registers are gated by the enable signals. The transfer direction for each port is controlled independently by a read/write signal. Individual output enable signals control whether the SyncBiFIFO is driving the data lines of a port or whether those data lines are in a highimpedance state. The processor connected to Port A of the BiFIFO can send or receive messages directly to the Port B device using the 18-bit bypass path. The SyncBiFIFO can be used in multiples of 18-bits. In a 36- to 36-bit configuration, two SyncBiFIFOs operate in parallel. Both devices are programmed simultaneously, 18 data bits to each device. This configuration can be extended to wider bus widths (54- to 54-bits, 72- to 72-bits, etc.) by adding more SyncBiFIFOs to the configuration. Figure 1 shows multiple SyncBiFIFOs configured for multiprocessor communication. The microprocessor or microcontroller connected to Port A controls all operations of the SyncBiFIFO. Thus, all Port A interface pins are inputs driven by the controlling processor. Port B interfaces with a second processor. The Port B control pins are inputs driven by the second processor. BYPASS PATH The bypass paths provide direct communication between Port A and Port B. There are two full 18-bit bypass paths, one in each direction. During a bypass operation, data is passed directly between the input and output registers, and the FIFO memory is undisturbed. Port A initiates and terminates all bypass operations. The bypass flag, BYPB, is asserted to inform Port B that a bypass operation is beginning. The bypass flag state is controlled by the Port A controls, although the BYPB signal is synchronized to CLKB. So, BYPB is asserted on the next rising edge of CLKB when A2A1A0=001and CSA is LOW. When Port A returns to normal FIFO mode (A2A1A0=000 or CSA is HIGH), BYPB is deasserted on the next CLKB rising edge. Once the SyncBiFIFO is in bypass mode, all data transfers are controlled by the standard Port A (R/WA, CLKA, ENA, OEA) and Port B (R/WB, CLKB, ENB, OEB) interface pins. Each bypass path can be considered as a one word deep FIFO. Data is held in each input register until it is read. Since the controls RESET Reset is accomplished whenever the Reset (RS) input is taken to a LOW state with CSA, ENA and ENB HIGH. During reset, both internal read and write pointers are set to the first location. A reset is required after power up before a write operation can take place. The AB and BA FIFO Empty Flags (EFAB, EFBA) and Programmable Almost-Empty flags (PAEAB, PAEBA) will be set to LOW after tRSF. The AB and BA FIFO Full Flags (FFAB, FFBA) and Programmable Almost- Full flags (PAFAB, PAFBA) will be set to HIGH after tRSF. After the reset, the offsets of the Almost-Empty flags and Almost- Full flags for the AB and BA FIFO offset default to 8. IDT SYNCBIFIFO DATA B DATA A CLKA CLKB CONTROL A CONTROL B CLK CLK MICROPROCESSOR A MICROPROCESSOR B DATA ADDR, I/0 RAM A CONTROL LOGIC DATA IDT SYNCBIFIFO DATA A CLKA CONTROL A CONTROL LOGIC DATA B CLKB CONTROL B SYSTEM CLOCK A RAM B SYSTEM CLOCK B NOTES: 1. Upper SyncBiFIFO only is used in 18- to 18-bit configuration. 2. Control A consists of R/WA, ENA, OEA, CSA, A2, A1, A0. Control B consists of R/WB, ENB, OEB. Figure 1. 36- to 36-bit Processor Interface Configuration 6 ADDR, I/0 2704 drw 05 IDT72605/72615 CMOS SYNCBiFIFOTM 256 x 18x 2 and 512 x 18 x 2 INDUSTRIAL TEMPERATURE RANGE TABLE 1 PORT A OPERATION CONTROL SIGNALS CSA 0 R/WA 0 ENA 0 OEA 0 Data A I/O I 0 0 0 0 0 0 1 1 0 0 1 1 1 1 0 1 0 1 0 0 1 1 X X 1 X 0 1 0 1 X X I I O O O O I O Port A Operation Data A is written on CLKA . This write cycle immediately following low-impedance cycle is prohibited. Note that even though OEA = 0, a LOW logic level on R/WA, once qualified by a rising edge on CLKA, will put Data A into a high-impedance state. Data A is written on CLKA Data A is ignored Data is read(1) from RAM array to output register on CLKA , Data A is low-impedance Data is read(1) from RAM array to output register on CLKA , Data A is high-impedance Output register does not change(2), Data A is low-impedance Output register does not change(2), Data A is high-impedance Data A is ignored(3) Data A is high-impedance(3) NOTES: 1. When A2A1A0 = 000, the next BA FIFO value is read out of the output register and the read pointer advances. If A2A1A0 = 001, the bypass path is selected and bypass data from the Port B input register is read from the Port A output register. If A2A1A00 = 1XX, a flag offset register is selected and its offset is read out through Port A output register. 2. Regardless of the condition of A2A1A0, the data in the Port A output register does not change and the BA read pointer does not advance. 3. If CSA# is HIGH, then BYPB is HIGH. No bypass occur under this condition. TABLE 2 ACCESSING PORT A RESOURCES USING CSA, A2, A1, AND A0 of each port operate independently, Port A can be reading bypass data at the same time Port B is reading bypass data. When R/WA and ENA is LOW, data on pins DA0-DA17 is written into Port A input register. Following the rising edge of CLKA for this write, the AB Full Flag (FFAB) goes LOW. Subsequent writes into Port A are blocked by internal logic until FFAB goes HIGH again. On the next CLKB rising edge, the AB Empty Flag (EFAB) goes HIGH indicating to Port B that data is available. Once R/WB is HIGH and ENB is LOW, data is read into the Port B output register. OEB still controls whether Port B is in a high-impedance state. When OEB is LOW, the output register data appears at DB0-DB17. EFAB goes LOW following the CLKB rising edge for this read. FFAB goes HIGH on the next CLKA rising edge, letting Port A know that another word can be written through the bypass path. Bypass data transfers from Port B to Port A work in a similar manner with EFBA and FFBA indicating the Port A output register state. When the Port A address changes from bypass mode (A2A1A0=001) to FIFO mode (A2A1A0=000) on the rising edge of CLKA, the data held in the Port B output register may be overwritten. Unless Port A monitors the BYPB pin and waits for Port B to clock out the last bypass word, data from the AB FIFO will overwrite data in the Port B output register. BYPB will go HIGH on the rising edge of CLKB signifying that Port B has finished its last bypass operation. Port B must read any bypass data in the output register on this last CLKB clock or it is lost and the SyncBiFIFO returns to FIFO operations. It is especially important to monitor BYPB when CLKB is much slower than CLKA to avoid this condition. BYPB will also go HIGH after CSA is brought HIGH; in this manner the Port B bypass data may also be lost. Since the Port A processor controls CSA and the bypass mode, this scenario can be handled for BA bypass data. The Port A processor must be set up to read the last bypass word before leaving bypass mode. CSA 0 0 0 A2 0 0 1 A1 0 0 0 A0 0 1 0 0 1 0 1 0 1 1 0 0 1 1 1 1 X X X Read Write BA FIFO AB FIFO 18-bit Bypass Path AB FIFO Almost-Empty Flag Offset AB FIFO Almost-Full Flag Offset BA FIFO Almost-Empty Flag Offset BA FIFO Almost-Full Flag Offset Port A Disabled PROGRAMMABLE FLAGS The IDT SyncBiFIFO has eight flags: four flags for AB FIFO (EFAB, PAEAB, PAFAB, FFAB), and four flags for BA FIFO (EFBA, PAEBA, PAFBA, FFBA). The Empty and Full flags are fixed, while the Almost-Empty and AlmostFull offsets can be set to any depth through the Flag Offset Registers (see Table 3). The flags are asserted at the depths shown in the Flag Truth Table (Table 4). After reset, the programmable flag offsets are set to 8. This means the AlmostEmpty flags are asserted at Empty +8 words deep, and the Almost-Full flags are asserted at Full -8 words deep. The PAEAB is synchronized to CLKB, while PAEAB is synchronized to CLKA; and PAEBA is synchronized to CLKA, while PAEBA is synchronized to CLKB. If the minimum time (tSKEW2) between a rising CLKB and a rising CLKA is met, the flag will change state on the current clock; otherwise, the flag may not change state until the next clock rising edge. For the specific flag timings, refer to Figures 12-15. PORT A CONTROL SIGNALS The Port A control signals pins dictate the various operations shown in Table 2. Port A is accessed when CSA is LOW, and is inactive if CSA is HIGH. R/ WA and ENA lines determine when Data A can be written or read. If R/WA and ENA are LOW, data is written into input register on the LOW-to-HIGH transition of CLKA. If R/WA is HIGH and OEA is LOW, data comes out of bus and is read from output register into three-state buffer. Refer to pin descriptions for more information. PORT B CONTROL SIGNALS The Port B control signal pins dictate the various operations shown in Table 5. Port B is independent of CSA. R/WB and ENB lines determine when Data 7 IDT72605/72615 CMOS SYNCBiFIFOTM 256 x 18x 2 and 512 x 18 x 2 INDUSTRIAL TEMPERATURE RANGE can be written or read in Port B. If R/WB and ENB are LOW, data is written into input register, and on LOW-to-HIGH transition of CLKB data is written into input register and the FIFO memory. If R/WB is HIGH and OEB is LOW, data comes out of bus and is read from output register into three-state buffer. In bypass mode, if R/WB is LOW, bypass messages are transferred into BA output register. If R/WA is HIGH, bypass messages are transferred into AB output register. Refer to pin descriptions for more information. TABLE 3 FLAG OFFSET REGISTER FORMAT 17 16 15 14 13 12 11 10 9 8 7 PAEAB Register X X X X X X X X X 17 X 16 X 15 X 14 X 13 X 12 X 11 X 10 X 9 X 8 7 PAFAB Register 17 X 16 X 15 X 14 X 13 X 12 X 11 X 10 X 9 X 8 7 PAEBA Register 17 X 16 X 15 X 14 X 13 X 12 X 11 X 10 X 9 X 8 7 PAFBA Register 6 5 4 3 2 1 0 1 0 6 5 4 3 2 1 BA FIFO Almost-Empty Flag Offset 0 AB FIFO Almost-Empty Flag Offset 6 5 4 3 2 AB FIFO Almost-Full Flag Offset 6 5 4 3 2 BA FIFO Almost-Full Flag Offset 1 0 NOTE: 1. Bit 8 must be set to 0 for the IDT72605 (256 x 18) Synchronous BiFIFO. TABLE 4 INTERNAL FLAG TRUTH TABLE Number of Words in FIFO From To 0 0 1 n n+1 D-(m+1) D-m D-1 D D EF LOW HIGH HIGH HIGH HIGH PAE LOW LOW HIGH HIGH HIGH PAF HIGH HIGH HIGH LOW LOW FF HIGH HIGH HIGH HIGH LOW NOTE: 1. n = Programmable Empty Offset (PAEAB Register or PAEBA Register) m = Programmable Full Offset (PAFAB Register or PAFBA Register) D = FIFO Depth (IDT72605 = 256 words, IDT72615= 512 words) TABLE 5 PORT B OPERATION CONTROL SIGNALS R/WB 0 ENB 0 OEB 0 Data B I/O I 0 0 1 1 1 1 0 1 0 0 1 1 1 X 0 1 0 1 I I O O O O Port B Operation Data B is written on CLKB . This write cycle immediately following output low-impedance cycle is prohibited. Note that even though OEB = 0, a LOW logic level on R/WB, once qualified by a rising edge on CLKB, will put Data B into a highimpedance state. Data B is written on CLKB . Data B is ignored Data is read(1) from RAM array to output register on CLKB Data B is low-impedance Data is read(1) from RAM array to output register on CLKB , Data B is high- impedance Output register does not change(2), Data B is low-impedance Output register does not change(2), Data B is high-impedance NOTES: 1. When A2A1A0 = 000 or 1XX, the next AB FIFO value is read out of the output register and the read pointer advances. If A2A1A0 = 001, the bypass path is selected and bypass data is read from the Port B output register. 2. Regardless of the condition of A2A1A0, the data in the Port B output register does not change and the AB read pointer does not advance. 8 IDT72605/72615 CMOS SYNCBiFIFOTM 256 x 18x 2 and 512 x 18 x 2 INDUSTRIAL TEMPERATURE RANGE tRS RS EFAB, PAEAB, EFBA, PAEBA t RSF EFAB, PAEAB, EFBA, PAEBA t RSF tRSS CSA, ENA ENB, tRSR 2704 drw 06 Figure 3. Reset Timing tCLK tCLKH tCLKL CLKA A0, A1, A2 R/WA CSA tCH tCS ENA NO OPERATION tFF tFF FFAB tDS tDH DA0-DA17 tSKEW1 CLKB READ DATA IN VALID NO READ OPERATION Figure 4. Port A (AB) Write Timing 9 2704 drw 07 IDT72605/72615 CMOS SYNCBiFIFOTM 256 x 18x 2 and 512 x 18 x 2 INDUSTRIAL TEMPERATURE RANGE tCLK tCLKH tCLKL CLKA A0, A1, A2 R/WA CSA tCH tCS ENA NO OPERATION tEF tEF EFBA tA VALID DATA DA0-DA17 tOLZ tOE tOHZ OEA tSKEW1 CLKB NO WRITE WRITE 2704 drw 08 Figure 5. Port A (BA) Read Timing tCLK tCLKH tCLKL CLKB R/WB tCH tCS ENB NO OPERATION tFF tFF FFBA tDS tDH DB0-DB17 tSKEW1 CLKA READ DATA IN VALID NO READ OPERATION Figure 6. Port B (BA) Write Timing 10 2704 drw 09 IDT72605/72615 CMOS SYNCBiFIFOTM 256 x 18x 2 and 512 x 18 x 2 INDUSTRIAL TEMPERATURE RANGE tCLK tCLKH tCLKL CLKB R/WB tCH tCS ENB NO OPERATION tEF tEF EFBA tA DB0-DB17 VALID DATA tOLZ tOHZ tOE OEB CLKA tSKEW1 NO WRITE OPERATION WRITE 2704 drw 10 Figure 7. Port B (AB) Read Timing CLKA A0, A1, A2 R/WA tCS CSA, ENA tDS DA0-DA17 D0 (First Valid Write) tSKEW1 (1) D1 D2 D3 tFRL CLKB R/WB tCS ENB tEF EFAB tA tA DB0-DB17 D0 D1 tOLZ tOE OEB 2704 drw 11 NOTE: 1. When tSKEW1 minimum specification, tFRL(Max.) = tCLK + tSKEW1 tSKEW1 < minimum specification, tFRL(Max.) = 2tCLK + tSKEW1 or tCLK + tSKEW1 The Latency Timing applies only at the Empty Boundary (EF = LOW). Figure 8. AB First Data Word Latency after Reset for Simultaneous Read and Write 11 IDT72605/72615 CMOS SYNCBiFIFOTM 256 x 18x 2 and 512 x 18 x 2 INDUSTRIAL TEMPERATURE RANGE CLKB R/WB tCS ENB tDS D0 (First valid write) DB0-DB17 D1 D2 D3 tFRL tSKEW1 (1) CLKA A0, A1, A2 R/WA tCS CSA, ENA tEF EFBA tA tA D0 DA0-DA17 D1 tOLZ tOE OEA 2704 drw 12 NOTE: 1. When tSKEW1 minimum specification, tFRL(Max.) = tCLK + tSKEW1 tSKEW1 < minimum specification, tFRL(Max.) = 2tCLK + tSKEW1 The Latency Timing apply only at the Empty Boundary (EF = LOW). Figure 9. BA First Data Word Latency after Reset for Simultaneous Read and Write 12 IDT72605/72615 CMOS SYNCBiFIFOTM 256 x 18x 2 and 512 x 18 x 2 INDUSTRIAL TEMPERATURE RANGE CLKA tCS A2, A1, A0 = 001 A0, A1, A2 R/WA tCH CSA tCS tCH ENA tFF tFF tFF FFAB FIFO FLAG BYPASS FLAG tDS DA0-DA17 DATA INPUT tSKEW1 tSKEW1 tSKEW1 CLKB R/WB tCS ENB tEF EFAB tEF tEF FIFO FLAG FIFO FLAG BYPASS FLAG BYPB tA DB0-DB17 DATA OUTPUT tOLZ tOE tOHZ OEB 2704 drw 13 NOTES: 1. When CSA is brought HIGH, AB Bypass mode will switch to FIFO mode on the following CLKA LOW-to-HIGH transition. 2. After the bypass operation is completed, the BYPB goes from LOW-to-HIGH; this will reset all bypass flags. The bypass path becomes available for the next bypass operation. 3. When A-side changed from bypass mode into FIFO mode, B-side only has one cycle to read the bypass data. On the next cycle, B-side will be forced back to FIFO mode. Figure 10. AB Bypass Timing 13 IDT72605/72615 CMOS SYNCBiFIFOTM 256 x 18x 2 and 512 x 18 x 2 INDUSTRIAL TEMPERATURE RANGE CLKB R/WB tCH tCS ENB tFF tFF tFF tFF FFBA BYPASS FLAG FIFO FLAG BYPB tDS DB0-DB17 tSKEW1 DATA INPUT tSKEW1 tSKEW1 tSKEW1 CLKA tCS tCS A2, A1, A0 = 001 A0, A1, A2 tCS CSA R/WA tCS ENA tEF EFBA FIFO FLAG tEF tEF BYPASS FLAG tEF FIFO FLAG tA DATA OUTPUT DA0-DA17 tOLZ tOE OEA tOHZ 2704 drw 14 NOTES: 1. When CSA is brought HIGH, AB Bypass mode will switch to FIFO mode on the following CLKA going LOW-to-HIGH. 2. After the bypass operation is completed, the BYPB goes from LOW-to-HIGH; this will reset all bypass flags. 3. When A-side changed from bypass mode into FIFO mode, B-side only has one cycle to read the bypass data. On the next cycle, B-side will be forced back to FIFO mode. Figure 11. BA Bypass Timing 14 IDT72605/72615 CMOS SYNCBiFIFOTM 256 x 18x 2 and 512 x 18 x 2 tCLKH INDUSTRIAL TEMPERATURE RANGE tCLKL CLKA tCH tCS ENA (R/WA = 0) WRITE PAEAB n+1 words in FIFO n words in FIFO tSKEW2 (1) tPAE tPAE (2) CLKB tCH tCS ENA (R/WB = 1) 2704 drw 15 READ NOTES: 1. tSKEW2 the minimum time between a rising CLKA edge and a rising CLKB edge for PAEAB to change during that clock cycle. If the time between the rising edge of CLKA and the rising edge of CLKB is less than tSKEW, then PAEAB may not go HIGH until the next CLKB rising edge. 2. If a read is performed on this rising edge of the read clock, there will be Empty + (n + 1) words in the FIFO when PAE goes LOW. Figure 12. AB Programmable Almost-Empty Flag Timing tCLKH tCLKL (2) CLKA tCH tCS ENA (R/WA = 0) WRITE PAFAB Full - (m+1) words in FIFO Full - m words in FIFO tPAF tPAF CLKB tCH tCS ENB (R/WB = 1) 2704 drw 16 READ NOTES: 1. tSKEW2 is the minimum time between a rising CLKB edge and a rising CLKA edge for PAFAB to change during that clock cycle. If the time between the rising edge of CLKB and the rising edge of CLKA is less than tSKEW2, then PAFAB may not go HIGH until the next CLKA rising edge. 2. If a write is performed on this rising edge of the write clock, there will be Full - (m + 1) words in the FIFO when PAF goes LOW. Figure 13. AB Programmable Almost-Full Flag Timing 15 IDT72605/72615 CMOS SYNCBiFIFOTM 256 x 18x 2 and 512 x 18 x 2 tCLKH INDUSTRIAL TEMPERATURE RANGE tCLKL CLKB tCH tCS ENB (R/WA = 0) WRITE PAEBA n+1 words in FIFO n words in FIFO tSKEW2(1) tPAE tPAE (2) CLKA tCH tCS ENA (R/WA = 1) 2704 drw 17 READ NOTES: 1. tSKEW2 is the minimum time between a rising CLKB edge and a rising CLKA edge for PAEBA to change during that clock cycle. If the time between the rising edge of CLKB and the rising edge of CLKA is less than tSKEW2, then PAEBA may not go HIGH until the next CLKA rising edge. 2. If a read is performed on this rising edge of the read clock, there will be Empty + (n - 1) words in the FIFO when PAE goes LOW. Figure 14. BA Programmable Almost-Empty Flag Timing tCLKH tCLKL (2) CLKB tCH tCS ENB (R/WA = 0) WRITE PAFBA Full - (m+1) words in FIFO Full - m words in FIFO tSKEW2(1) tPAF tPAF CLKA tCH tCS ENA (R/WA = 1) 2704 drw 18 READ NOTES: 1. tSKEW2 is the minimum time between a rising CLKB edge and a rising CLKA edge for PAFBA to change during that clock cycle. If the time between the rising edge of CLKB and the rising edge of CLKA is less than tSKEW2, then PAFBA may not go HIGH until the next CLKA rising edge. 2. If a write is performed on this rising edge of the write clock, there will be Full - (m + 1) words in the FIFO when PAF goes LOW. Figure 15. BA Programmable Almost-Full Flag Timing 16 ORDERING INFORMATION IDT X XXXXX Device Type Power XX Speed X Package X Process/ Temperature Range Blank Industrial (-40C to +85C) J PF Plastic Leaded Chip Carrier (PLCC, J68-1) Thin Quad Flat Pack (TQFP, PN64-1) 20 25 35 50 Clock Cycle Time (tCLK) in Nanoseconds L Low Power 72605 72615 256 x 18 Parallel SyncBiFIFO 512 x 18 Parallel SyncBiFIFO 2704 drw19 DATASHEET DOCUMENT HISTORY 11/02/2000 04/08/2003 pgs. 1, 2, 3, 4, 16 pg. 17. CORPORATE HEADQUARTERS 6024 Silver Creek Valley Road San Jose, CA 95138 for SALES: 800-345-7015 or 408-284-8200 fax: 408-284-2775 www.idt.com 17 for Tech Support: 408-360-1753 email: FIFOhelp@idt.com