In a one-directional internal circuit such as a first-in first-out (FIFO), switchover switches are provided between the internal input/output ports and external ports thereof, and the switches are controlled by a mode signal, thereby enabling a bidirectional data transmission within one chip.

Patent
   4825098
Priority
Dec 17 1986
Filed
Dec 08 1987
Issued
Apr 25 1989
Expiry
Dec 08 2007
Assg.orig
Entity
Large
11
5
all paid
1. A bidirectional semiconductor device comprising:
only one one-directional internal circuit having an internal input port and an internal output
first and second external input/output ports; and
switching means for connecting said internal input port to one of said first and second external input/output ports and connecting said internal output port to said other port in accordance with a mode signal.
2. A device as set forth in claim 1, wherein said one directional internal circuit further has a plurality of internal control ports,
said device further comprising:
a plurality of external control ports, connectable to said internal control ports; and
means, connected to said external control ports, for generating said mode signal for controlling said switching means, in accordance with the presence or absence of an overlap between at least two of said external control ports after the application of a power supply or after an initial set,
said switching means further connecting said internal control ports to said external control ports in accordance with said mode signal.
3. A device as set forth in claim 2, wherein said mode signal generating means comprises:
an overlap detector, connected to first and second ports of said external control ports, for detecting an overlap between the signals thereof;
a change detector, connected to said first port of said external control ports, for detecting a fall or rise thereof;
a flip-flop, connected to said overlap detector and to said change detector, said flip-flop being reset by the output of said change detector and set by the output of said overlap detector, thereby generating said mode signal.
4. A device as set forth in claim 1, wherein said one directional internal circuit further has a plurality of internal control ports,
said device further comprising:
a plurality of external control ports, connectable to said internal control ports; and
means, connected to said external control ports, for generating said mode signal for controlling said switching means, in accordance with a sequence between at least two of said external control ports after an application of a power supply or after an initial set,
said switching means further connecting said internal control ports to said external control ports in accordance with said mode signal.
5. A device as set forth in claim 4, wherein said mode signal generating means comprises:
a first flip-flop, connected to first and second ports of said external control ports, for detecting a change at the signal of said second port after a signal at said first port is changed;
a gate, connected to a third port of said external control ports and to the output of said first flip-flop, for passing a signal at said third port therethrough in accordance with an output of said first flip-flop; and
a second flip-flop, connected to said first external control port and to an output of said gate, said second flip-flop being reset by a signal at said first port and set by an output of said gate, thereby generating said mode signal.
6. A device as set forth in claim 1, wherein said one-directional internal circuit comprises a first-in first-out memory (FIFO).
7. A device as set forth in claim 1, wherein said one-directional internal circuit comprises a last-in first-out memory (LIFO).
8. A device as set forth in claim 1, wherein said one-directional internal circuit comprises a shift register.

(1) Field of the Invention

The present invention relates to a bidirectional semiconductor device which enables a one-directional circuit such as a first-in first-out (FIFO) memory to carry out bidirectional data transmission.

(2) Description of the Related Art

Generally, a two-port buffer (chip) such as a FIFO memory, a last-in first-out (LIFO) memory, and a shift register has an input port and an output port, thereby establishing a one-directional data transmission from the input port to the output port. In the prior art, terminals corresponding to these input ports and output ports are fixed, and if one-directional FIFO's having these fixed input/output pins are used for a bidirectional data transmission, at least two FIFO's are required. As a result, the number of chips on a printed board is increased to increase the area of the board occupied by mounting the chips thereon (hereafter, board occupied area), and in addition, the input/output (I/O) connections on the printed board become complex. Note that the complexity of the I/O connections also increases the mounting density of the printed board because of the area occupied thereby, and deteriorates the electrical characteristics of the device due to the stray capacity of the connections.

Therefore, an object of the present invention is to provide a bidirectional semiconductor device by which the board occupied area on a printed circuit board is reduced and the I/O connections simplified.

According to the present invention, only one one-directional internal circuit, such as an FIFO memory, is provided. This one-directional internal circuit has an internal input port and an internal output port. The internal input port is connectable to either an A-side input/output terminal I/O (A) (external input/output port) or a B-side input/output terminal I/O (B) (external input/output port). The same holds true for the internal output port. The switching of such connections is carried out by a switching means, so that the internal input port is connected to one of the terminals I/O (A) and I/O (B), and the internal output port is connected to the other terminal. As a result, a switchover of bidirectional transmission between data transmission of the A-side input/output terminal I/O (A) →the internal circuit→the B-side input/output terminal I/O (B) and data transmission of the B-side input/output terminal I/O (B)→the internal circuit→the A-side input/output terminal I/O (A) is carried out by the switching means .

The present invention will be more clearly understood from the description as set forth below and in contrast with the prior art with reference to the accompanying drawings, wherein:

FIG. 1 is a schematic view showing a prior art one-directional device;

FIG. 2 is a block circuit diagram showing a prior art bidirectional device;

FIG. 3 is a circuit diagram illustrating a first embodiment of the bidirectional semiconductor device according to the present invention;

FIG. 4 is a detailed circuit diagram of the circuit of FIG. 3;

FIGS. 5A through 5D are logic circuit diagrams of the switches of FIG. 4;

FIG. 6 is a detailed circuit diagram of the FIFO of FIG. 4;

FIGS. 7A through 7G are timing diagrams explaining the operation of the circuit of FIG. 6;

FIG. 8 is a circuit diagram illustrating a second embodiment of the bidirectional semiconductor memory device according to the present invention;

FIG. 9 is a circuit diagram of the mode setting circuit of FIG. 8;

FIG. 10 is a circuit diagram of the flip-flop of FIG. 9;

FIGS. 11A through 11E and FIGS. 12A through 12E are timing diagrams explaining the operation of the circuit of FIG. 9;

FIG. 13 is a circuit diagram illustrating a third embodiment of the bidirectional semiconductor memory device according to the present invention;

FIG. 14 is a circuit diagram of the mode setting circuit of FIG. 13;

FIG. 15 is a circuit diagram of the flip-flop of FIG. 14; and

FIGS. 16A through 16F and FIGS. 17A through 17F are timing diagrams explaining the operation of the circuit of FIG. 14.

First, the prior art bidirectional semiconductor device will be explained with reference to FIGS. 1 and 2.

In FIG. 1, which illustrates a prior art one-directional device, i.e., a FIFO memory, a write control signal W is fixed to a first pin, input data IN (I0 to I8) is fixed to second to sixth pins and 24-th to 27-th pins, a read control signal R is fixed to a 15-th pin, and output data OUT (O0 to O8) is fixed to 9-th to 13-th pins and 16-th to 19-th pins. Note that VCC and VSS designate power supplies, and other terminals are designated "Full", "Empty" and the like.

If one-directional FIFO's having the fixed input/output output pins are used for bidirectional data transmission, two FIFO's are connected as illustrated in FIG. 2. As a result, an FIFO (1) is used for data transmission from A-side to B-side, and an FIFO (2) is used for data transmission from B-side to A-side.

However, when a bidirectional device is constructed as illustrated in FIG. 2, the number of chips on a printed circuit board is increased to increase the board occupied area, and in addition, the input/output (I/O) connections on the printed board become complex. The complexity of the I/O connections also increases the mounting density of the printed board, because of the area occupied thereby, and deteriorates the electrical characteristics due to the stray capacity of the connections.

In FIG. 3, which illustrates a first embodiment of the present invention, a one-directional internal circuit has an internal input port IN and an internal output port OUT. The internal input port IN is connectable to either an A-side external input/output terminal I/O (A) or a B-side external input/output terminal I/O (B). The same holds true for the internal output port OUT. The switching of such connections is carried out by a switching means, so that the internal input port IN is connected to one of the external ports I/O (A) and I/O (B), and the internal output port OUT is connected to the other external port.

Also, referring to FIG. 4, which is a detailed circuit diagram of FIG. 3, a frame indicated by a dotted-solid line designates one chip. In this chip, only one FIFO memory is provided as the one-directional internal circuit. At the FIFO memory, internal ports such as a write control port W, a read control port R, an input port IN, an output port OUT, and a reset port RSTi are provided. Also provided in the periphery of the chip, are A-side external ports such as a write/read control port W/R (A) and an input/output port I/O (A), and B-side external ports such as a write/read control port W/R (B), an input/output port I/O (B), and a reset port RST for the connections to the exterior. The external reset port RST is fixed to the internal reset port RSTi. Further, a first switch SW1 is provided between the external ports W/R (A), W/R (B) and the internal port W; a second switch SW2 is provided between the external ports W/R (A), W/R (B) and the internal port R; a third switch SW3 is provided between the external ports I/O (A), I/O (B) and the internal port IN; and a fourth switch SW4 is provided between the external ports I/O (A), I/O (B) and the internal port OUT. These switches SW1 to SW4 are operated simultaneously by a mode signal M supplied from the exterior of the chip.

Note that the internal ports IN and OUT, and the external ports I/O (A) and I/O (B) of FIG. 4, actually have a multi-bit configuration such as a 9-bit configuration as illustrated in FIG. 1, but, for simplification, such ports have a single-bit configuration in FIG. 4.

Each of the switches SW1 to SW4 of FIG. 4 will be explained with reference to FIGS. 5A to 5D.

As illustrated in FIG. 5A, the switch SW1 is comprised of NAND circuits G11, G12, and G13, and an inverter I1. Therefore, when the mode signal M is "1", the signal at the external control port W/R (A) is supplied to the write control port W of the FIFO memory, and when the mode signal M is "0", the signal at the external control port W/R (B) is supplied to the write control port W of the FIFO memory.

Similarly, as illustrated in FIG. 5B, the switch SW2 is comprised of NAND circuits G21, G22, and G23, and an inverter I2. Therefore, when the mode signal M is "1", the signal at the external control port W/R (B) is supplied to the write control port W of the FIFO memory, and when the mode signal M is "0", the signal at the external control port W/R (A) is supplied to the write control port W of the FIFO memory.

Also, as illustrated in FIG. 5C, the switch SW3 is comprised of NAND circuits G31, G32, and G33, and an inverter I3. Therefore, when the mode signal M is "1", the signal at the external port I/O (A) is supplied to the input data port IN of the FIFO memory, and when the mode signal M is "0", the signal at the external port I/O (B) is supplied to the input data port IN of the FIFO memory.

Further, as illustrated in FIG. 5D, the switch SW4 is comprised of NAND circuits G41, G42, G43, and G44, inverters I4 to I8 and CMOS buffers BF1 and BF2. Therefore, when the mode signal M is "1", the lower-side circuit of FIG. 5D is operated so that data at the output data port OUT is transmitted to the B-side port I/O (B), and when the mode signal M is "0", the upper-side circuit of FIG. 5D is operated so that data at the output data port OUT is transmitted to the A-side port I/O (A).

Thus, in summary, the following table is obtained.

______________________________________
M = "1" M = "0"
______________________________________
--W
##STR1##
##STR2##
--R
##STR3##
##STR4##
IN I/O (A) I/O (B)
OUT I/O (B) I/O (A)
______________________________________

In FIG. 6, which is a detailed circuit diagram of the FIFO memory of FIG. 4, a static memory cell MCij is provided between a write word line WLi (W), and a read word line WLi (R), and in write bit lines BLj (W), BLj (W) and read bit lines BLj (R), BLj (R). In a write mode (W="0"), write data IN is written by a write amplifier WA into the memory cell MCij between a word line such as WLi (W) selected by a write pointer WP (1) and write bit lines such as BLj (W), BLj (W) selected by a write pointer WP (2). On the other hand, in a read mode (R="0"), data of a memory cell between a read word line such as WLi (R) selected by a read pointer RP (1) and read bit lines such as BLj (R), BLj (R) selected by a read pointer RP (2) is read and is transmitted as output data OUT via a read amplifier RA.

In a write operation of the FIFO memory, as illustrated in FIGS. 7A to 7D, the write pointers WP (1) and WP (2) are counted up one by one in accordance with a write control signal W, thereby sequentially accessing the memory cells and writing data thereinto. Note that, in this case, the two write pointers serve as one write pointer WP and are reset by a reset signal RST. That is, every time one of the write pointers WP (1) and WP (2) is cycled, the other pointer is counted up by +1.

On the other hand, in a read operation of the FIFO memory, as illustrated in FIGS. 7A, and 7E to 7G, the read pointers RP (1) and RP (2) are counted up one by one in accordance with a read control signal R, thereby sequentially accessing the memory cells and reading data therefrom. Note that, also in this case, the two read pointers serve as one read pointer RP and are reset by a rest signal RST. That is, every time one of the read pointers RP (1) and RP (2) is cycled, the other pointer is counted up by +1.

In FIG. 8, which illustrates a second embodiment of the present invention, a mode setting circuit SC for generating the mode signal M is added to the elements of the first embodiment of FIG. 4. The mode setting circuit SC detects the presence or absence of an overlap at a predetermined level such as "0" level of the signals of at least two originally existing external ports such as RST and W/R (B) without additional special ports, thereby generating the mode signal M within the chip.

The mode setting circuit SC of FIG. 8 will be explained with reference to FIG. 9. The mode setting circuit SC is comprised of an overlap detector (NOR circuit) DET1 for detecting an overlap of a low level ("0") of the external reset signal RST and a low level of an external write/read control signal R/W (B), a fall detector DET2 comprised of a delay circuit DL, an inverter I1, and a NOR circuit G2, and an RS flip-flop FF serving as a memory. This RS flip-flop FF is constructed as shown in FIG. 10. In the RS flip-flop FF, a power supply VCC is applied to a set terminal S, a ground potential is applied to a reset terminal R, the output of the overlap detector DET1 is applied to a clock terminal CK, and the output of the fall detector DET2 is applied to a clear terminal CL.

Therefore, as illustrated in FIGS. 11A through 11E, after the FIFO memory is reset by the signal RST and the flip-flop FF is reset by the output of the fall detector DET2 (RST="0038 ), even when the signal of the external control port W/R (B) is changed after the sufficient recovery of the reset signal RST, the output of the overlap detector DET1 remains at "0". As a result, the flip-flop FF remains in a reset state, and therefore, the mode signal M remains at "1". On the other hand, as illustrated in FIGS. 12A through 12E, after the FIFO memory is reset by the reset signal RST and the flip-flop FF is reset by the output of the fall detector DET2 (RST="0"), when the signal of the external control port W/R (B) is changed before the recovery of the reset signal RST, the overlap detector DET1 detects an overlap of a low level between RST and W/R (B) to change the output thereof from "0" to "1". As a result, the flip-flop FF is set so that the mode signal M becomes "0". Thus, a desired mode signal M is generated within the chip by the inputs of the originally existing external ports without adding special external ports.

Note that, in FIG. 9, the flip-flop FF is reset (cleared) by the reset signal RST, but such a reset operation can be carried out by applying the power supply if the circuit constants of the flip-flop FF are suitably set. Also, as occasion demands, the detector DET1 may detect an overlap of a high level between the two external ports, and a rise detector may be used instead of the fall detector DET2. Further, the mode signal M is set by an overlap of the signals of the two external input signals RST, W/R (B), but other external input signals can be used.

In FIG. 13, which illustrates a third embodiment of the present invention, a mode setting circuit SC' for generating the mode signal M is added to the elements of the first embodiment of FIG. 4. The mode setting circuit SC' detects the sequence of the signals of at least two originally existing external ports such as W/R (A) and W/R (B) without additional special ports, thereby generating the mode signal M within the chip.

The mode setting circuit SC' of FIG. 13 will be explained with reference to FIG. 14. The mode setting circuit SC' is comprised of two RS flip-flops FF1 and FF2 each of which is constructed as shown in FIG. 15. In the RS flip-flop FF1, a power supply VCC is applied to a set terminal S, a ground potential is applied to a reset terminal R, the reset signal RST is applied to a clear terminal CL, and the signal at the A-side external input/output control port W/R (A) is applied to a clock terminal CK. In addition, the output Q(=Ql) of the flip- flop FF1 is supplied with the signal of the B-side external input/output control port W/R (B) to a NAND circuit G1 which generates a signal φ. Further, in the flip-flop FF2, a power supply VCC is applied to a set terminal S, a ground potential is applied to a reset terminal R, a reset signal RST is applied to a clear terminal CL, and the signal φ is applied to a clock terminal CK. Then, the output Q of the flip-flop FF2 serves as the mode signal M.

Therefore, as illustrated in FIGS. 16A through 16F, after the FIFO memory is reset by the reset signal RST (RST="0"), when the pulse of the A-side input/output control port W/R (A) precedes the pulse of the B-side input/output control port W/R (B), the mode signal M remains at "1". On the other hand, as illustrated in FIGS. 17A through 17F, after the FIFO memory is reset by the reset signal RST(RST="0"), when the pulse of the B-side input/output control port W/R (B) precedes the pulse of the A-side input/output control port W/R (A), the mode signal M becomes a low level ("0"). Thus, a desired mode signal M is generated within the chip by the inputs of the originally existing external ports without adding special external ports.

Note that, in FIG. 14, the flip-flops FF1 and FF2 are reset (cleared) by the reset signal RST, but such a reset operation can be carried out by applying the power supply if the circuit constants of the flip-flops FF1 and FF2 are suitably set. Also, in this case, the mode signal M is determined by which of the A-side input/output output control port W/R (A) and the B-side input/output control port W/R (B) receives a preceding pulse. Further, in the circuit of FIG. 14, it is particularly useful in the FIFO memory to determine which of the ports W/R (A) and W/R (B) is a write-side to which a preceding pulse is applied. That is, in the FIFO memory, after resetting, there is no purpose to a read if there is no written data, and accordingly, a write instruction commonly precedes a read instruction.

Note that, in the above-mentioned embodiments, an FIFO memory is used as a one-directional circuit, however, the present invention can be applied to other circuits such as LIFO and a shift register.

As explained above, according to the present invention, since the bidirectional semiconductor device is constructed by only one one-directional circuit, the board occupied area on a printed circuit board can be reduced, and in addition, the connections thereof can be simplified.

Aoyama, Keizo

Patent Priority Assignee Title
4894558, Oct 11 1988 NEC Electronics Inc.; NEC Corporation Power saving input buffer for use with a gate array
4906870, Oct 31 1988 Atmel Corporation Low power logic array device
5216295, Aug 30 1991 GENERAL INSTRUMENT CORPORATION GIC-4 Current mode logic circuits employing IGFETS
5235543, Dec 29 1989 Intel Corporation Dual port static memory with one cycle read-modify-write
5381528, Oct 15 1992 MAXTOR CORP Demand allocation of read/write buffer partitions favoring sequential read cache
5384730, May 31 1991 TECHNOLOGY PROPERTIES LIMITED LLC Coincident activation of pass transistors in a random access memory
5424995, Jun 05 1991 Mitsubishi Denki Kabushiki Kaisha Static random access memory allowing reading angle rotation
5625590, Dec 19 1994 SAMSUNG ELECTRONICS CO , LTD Nonvolatile semiconductor memory
5831994, Sep 02 1996 Mitsubishi Denki Kabushiki Kaisha Semiconductor device testing fixture
6029253, Oct 30 1997 U S BANK NATIONAL ASSOCIATION, AS COLLATERAL AGENT Method for synchronizing data with a bi-directional buffer
6055597, Oct 30 1997 U S BANK NATIONAL ASSOCIATION, AS COLLATERAL AGENT Bi-directional synchronizing buffer system
Patent Priority Assignee Title
4481623, Nov 23 1982 Unisys Corporation Speed independent arbiter switch employing M-out-of-N codes
4621201, Mar 30 1984 INTEL CORPORATION, A DE CORP Integrated circuit redundancy and method for achieving high-yield production
4697095, Oct 05 1984 Fujitsu Limited Chip-on-chip semiconductor device having selectable terminal connections
4709173, May 17 1986 Matsushita Electric Industrial Co., Ltd. Integrated circuit having latch circuit with multiplexer selection function
4774422, May 01 1987 Digital Equipment Corporation High speed low pin count bus interface
//
Executed onAssignorAssigneeConveyanceFrameReelDoc
Nov 30 1987AOYAMA, KEIZOFUJITSU LIMITED, 1015, KAMIKODANAKA, NAKAHARA-KU, KAWASAKI-SHI, KANAGAWA 211, JAPANASSIGNMENT OF ASSIGNORS INTEREST 0047990620 pdf
Dec 08 1987Fujitsu Limited(assignment on the face of the patent)
Date Maintenance Fee Events
Sep 29 1992M183: Payment of Maintenance Fee, 4th Year, Large Entity.
Nov 10 1992ASPN: Payor Number Assigned.
Dec 22 1993ASPN: Payor Number Assigned.
Dec 22 1993RMPN: Payer Number De-assigned.
Sep 20 1996M184: Payment of Maintenance Fee, 8th Year, Large Entity.
Sep 25 2000M185: Payment of Maintenance Fee, 12th Year, Large Entity.


Date Maintenance Schedule
Apr 25 19924 years fee payment window open
Oct 25 19926 months grace period start (w surcharge)
Apr 25 1993patent expiry (for year 4)
Apr 25 19952 years to revive unintentionally abandoned end. (for year 4)
Apr 25 19968 years fee payment window open
Oct 25 19966 months grace period start (w surcharge)
Apr 25 1997patent expiry (for year 8)
Apr 25 19992 years to revive unintentionally abandoned end. (for year 8)
Apr 25 200012 years fee payment window open
Oct 25 20006 months grace period start (w surcharge)
Apr 25 2001patent expiry (for year 12)
Apr 25 20032 years to revive unintentionally abandoned end. (for year 12)