SEMICONDUCTOR INTEGRATED CIRCUIT DEVICE

Abstract: In a semiconductor integrated circuit device having a memory area (M-ARY), means for changing-over address signals is provided in an address input portion, and the order of the signals to be input to an address decoder (DCR) is changed according to external control signals (epm, epm ). Alternatively, a reading output circuit is provided which reads data in bit unit different from that of the writing input circuit. Thus, data can be read and written even when the number of bits of data differs between in case of accessing a built-in memory of an LSI inside the LSI and in case of accessing it from outside the LSI.

Description: The present invention relates to a semiconductor integrated circuit device. It relates to techniques which may be applied with advantage to an address change-over system in a semiconductor memory device (hereinafter referred to as a "memory"). By way of example, the techniques may be utilized in a large-scale integrated circuit (LSI) which has a built-in rewritable Read Only Memory (ROM). In a conventional LSI such a single-chip microcomputer having a built-in Erasable Programmable ROM (EPROM) in which floating-gate avalanche injection MOS (FAMOS) FETs are used as storage elements, addresses are common to the operation of reading data from within the EPROM and the operation of writing data into the EPROM by means of an EPROM writer, and both the reading and writing of the data are performed, for example, in an 8-bit unit. Refer for example, to the "Hitachi Microcomputer Data Book, 8-bit Single Chip" p. 823 - p. 861, issued by Hitachi, Ltd., in August 1984. With enhancements in the functions of the single-chip microcomputer, the internal data bus of the LSI is sometimes configured of 16 bits so that data can be read out of the EPROM in word (16-bit) unit. In this case, unless there is some change, data cannot be written into the built-in EPROM by the use of the conventional EPROM writer for 8 bits. It is accordingly necesssary newly to develop an EPROM writer for 16 bits or to cope with the situation through software so that the data can be written using the EPROM for 8 bits. However, the method in which a new EPROM writer for 16 bits is developed is costly. On the other hand, the method in which the situation is resolved by software has the drawback that the time required for the writing operation is increased. Moreover, when the capacity of the internal data bus of the LSI having a built-in EPROM is to be enlarged into 32 bits, it will be necessary to develop another EPROM writer or to alter the software. The present invention therefore seeks to provide a memory which is suited to be built in an LSI. The present invention seeks to make it possible for data items to be read and written easily and smoothly without altering an external device (for example, the construction of a writer) or preparing software for an external device even when the number of bits of data to be read out of a memory built in an LSI differs between in case of accessing the memory inside the LSI and in case of accessing it from the outside the LSI. Therefore, the present invention provides a semiconductor integrated circuit device comprising a memory area from and into which data can be read and written, an input circuit which serves to write data into said memory area, and an output circuit which serves to read data in a bit unit different from that of the writing input circuit. In a preferred form of the present invention, this is achieved by providing a microprocessor, a data bus, a memory device containing the memory area which stores data to be supplied to the microprocessor through the databus, external terminals to which the data bus is coupled; wherein data is written into the memory device through the external terminals by a write device, and wherein the device further includes bit-number setting means coupled to the memory device, and for changing a number of bits of data which is supplied from the memory device to said microprocessor at one time and a number of bits of data which is supplied from the write device to the memory device at one time. Embodiments of the invention will now be described in detail, by way of example, with reference to the accompanying drawings, in which: Fig. 1 is a block diagram showing an embodiment of a single-chip microcomputer which includes an EPROM; Fig. 2A is a block diagram showing an embodiment of the EPROM according to the present invention included in a single-chip microcomputer; Fig. 2B is a block diagram for explaining the EPROM in Fig. 2A; Fig. 3 is a circuit diagram showing another embodiment of an address input portion in the EPROM; Fig. 4 is a circuit diagram showing still another embodiment of the address input portion of the EPROM; Fig. 5 is a block diagram showing another embodiment of an EPROM circuit according to the present invention; Fig. 6 is a block diagram showing still another embodiment of the EPROM circuit according to the present invention; and Fig. 7 is a block diagram showing yet another embodiment of the EPROM circuit according to the present invention. Shown in Fig. 1 is an embodiment in the case where the present invention is applied to a single-chip microcomputer which uses an EPROM as an on-chip ROM. In the figure, various circuit blocks enclosed with a dot-and-dash line are formed on a single semiconductor substrate by well-known techniques for semiconductor integrated circuits. That is, the circuit blocks are formed on a single chip. Although not especially restricted, the single-chip microcomputer of this embodiment comprises a microprocessor (hereinbelow, termed "CPU") 1 which controls the internal execution unit etc. thereof in accordance with programs, a ROM 2 in which the operation programs of the CPU 1, etc. are stored, a RAM (random access memory) 3 which principally offers the working space of the CPU 1, a timer circuit 4, a serial communication interface circuit (SCI) 5 which performs the serial communications between the microcomputer and external devices, and an input/output port 6. These constituent circuits are interconnected through an internal address bus 7a and an internal data bus 7b. In addition, a control circuit 8 which determines the operation mode of the microcomputer and forms internal control signals corresponding thereto on the basis of a control signal supplied from outside is provided in the chip. Although not especially restricted, the CPU 1 is constructed of a program counter in which the address of an instruction or data to be read out next is held, an instruction register into which the instructions of a program are fetched in order, a control portion which is made of a random logic circuit or a micro-ROM storing microprograms and which forms a control signal corresponding to the instruction fetched in the instruction register, and the execution unit which includes various registers such as accumulators, an ALU (arithmetic/logic unit), etc. In this embodiment, the on-chip ROM 2 is constructed of a rewritable EPROM. This EPROM 2 is connected to the data bus 7b of 16 bits, and when accessed with address signals A₀ - A n-1 provided from the CPU 1, it delivers data of 16 bits onto the data bus 7b. On the other hand, the EPROM 2 can also be accessed through the input/output port 6 by any of an EPROM writer, etc. which are disposed outside the single-chip microcomputer. Indicated by symbols D₀ - D₇ in Fig. 1 are eight data input/output terminals. In the single-chip microcomputer of this embodiment, when a write mode for the EPROM 2 is designated by mode switching control signals MODE1 and MODE2 applied to the control circuit 8, data is read out of the EPROM 2 and delivered onto the data bus 7b in 8-bit unit with address signals A₀ - A n which are supplied from the external EPROM writer. In this case, the data output terminals of the EPROM connected to, for example, the upper 8 bits of the data bus 7b are connectible also to the lower 8 bits thereof. In the write mode of the EPROM, the upper 8 bits in the 16-bit data bus 7b are rendered floating, and data is written into the EPROM 2 or is read therefrom by the use of only the lower 8 bits. In order to permit the change-over between the numbers of bits of data as described above, an EPROM input/output portion 2a which is constructed of an address change-over circuit, sense amplifiers, a train of column switches, etc. to be described later is provided at the connection part of the EPROM 2 with the address bus 7a as well as the data bus 7b. Fig. 2A shows an embodiment of the practicable circuit of the EPROM 2 which is included in the single-chip microcomputer. Although not especially restricted, the EPROM of this embodiment has an address decoder DCR supplied with complementary address signals a₁, a₁ - a n , a n which are formed through address buffers ADB₁ -ADB n receiving the address signals A₀ - A n . Here, the address signals A₀ can be supplied to a first address buffer ADB₀ and the second address buffer ADB₁ through respective switch MOSFETs Q₁₀ and Q₂₁. In addition, the address signal A₁ can be supplied to the second address buffer ADB₁ and the third address buffer ADB₂ through respective switch MOSFETs Q₁₁ and Q₂₂. Thenceforth, connections are similarly made so that each of the address signals A₂ - A n-1 can be supplied to the two address buffers ADB i and ADB i+1 through one pair of corresponding switch MOSFETs Q 1i and Q 2(i+1) (i = 1, 2, ..., n - 1). The address signal A n can be supplied to only the address buffer ADB n , and it is not supplied to any of the address buffers when the switch MOSFET Q 2n is turned "on" so as to supply the address signal A n-1 to the address buffer ADB n . Each pair of switch MOSFETs Q 1i and Q 2(i+1) have either of them brought into the "on" state by change-over signals epm and epm from the control circuit (CONT) 8. The address decoder DCR forms select signals for the word lines W₁, W₂, .... of a memory array M-ARY and select signals for column switching MOSFETs Q₃₁ - Q 3m on the data lines DL₀₁ - DL 0m , .... and DL₇₁ - DL 7m of the memory array M-ARY in accordance with the address signals which have been selectively supplied. The data lines DL₀₁ - DL 0m , .... and DL₇₁ - DL 7m are respectively connected to the corresponding ones of eight common data lines CD₀ - CD₇ through the column selecting switch MOSFETs Q₃₁ - Q 3m which receive the select signals formed by the address decoder DCR. In addition, the output signals of writing data input circuits DIB₀ - DIB₇ which receive write signals applied from corresponding read/write terminals I/O₀ - I/O₇ are respectively supplied to write circuits PG₁₀ - PG₁₇ through switch MOSFETs Q₅₁, and write signals boosted to a write voltage V pp are supplied to the common data lines CD₀ -CD₇. The output signals of the input circuits DIB₀ - DIB₇ can also be supplied to the common data lines of another memory mat through MOSFETs Q₅₂ as well as write circuits PG₂₀ - PG₂₇. Sense amplifiers SA₀ - SA₇ are respectively connected to the common data lines CD₀ - CD₇, and read data items amplified by the sense amplifiers SA₀ - SA₇ are delivered onto the internal data bus of the LSI through corresponding data buffers LDO₀ - LDO₇ which are dedicated to the reading. Further, the outputs of the sense amplifiers SA₀ - SA₇ are supplied to output buffers DOB₀ - DOB₇ through switch MOSFETs Q₄₁ so as to be deliverable to the read/write terminals I/O₀ - I/O₇, respectively. Moreover, the output buffers DOB₀ - DOB₇ are respectively supplied with the corresponding ones of the eight sense amplifiers of the other memory mat through switch MOSFETs Q₄₂, alternatively to the output signals of the sense amplifiers SA₀ - SA₇. In this embodiment, as illustrated in Fig. 2B, the output terminals of the data buffers LDO₀ -LDO₇ and the read/write terminals I/O₀ - I/O₇ are respectively connected in common to the signal lines b₀ - b₇ of the lower eight bits in the data bus 7b. It is also possible, however, that the data buffers LDO₀ - LDO₇ are connected to the internal data bus, while the read/write terminals I/O₀ -I/O₇ are connected to the external terminals of the IC. Besides, in this embodiment, the memory mats each having the construction of input/output in 8-bit unit as described above are disposed in the number of two, and the two memory mats M-M₁ and M-M₂ constitute one memory array M-ARY. Each memory mat M-M₁ (M-M₂) is furnished with the eight sense amplifiers SA₀ - SA₇ (SA₈ - SA₁₅), so that 8-bit data items can be read out in parallel as a whole. In Fig. 2A, only one M-M₁ of the two memory mats M-M₁ and M-M₂ is depicted. By the way, regarding the other memory mat M-M₂ not depicted in Fig. 2A, only the eight sense amplifiers SA₈ - SA₁₅ and succeeding data buffers LDO₈ - LDO₁₅ which are disposed in correspondence with this memory mat M-M₂ are connected as illustrated in Fig. 2A. The memory mat M-M₂ is connected to the signal lines b₈ - b₁₅ of the upper 8 bits of the internal data bus 7b through these sense amplifiers SA₈ - SA₁₅ and data buffers LDO₈ - LDO₁₅, so that when the switch MOSFETs Q₄₂ are brought into their "on" states, the output signals of the sense amplifiers SA₈ - SA₁₅ are respectively supplied to the output buffers DOB₀ - DOB₇ shown in Fig. 2A. Thus, the read data items of the memory mat M-M₂ are delivered onto the signal lines b₀ - b₇ of the lower 8 bits of the data bus 7b replacing the upper 8 bits b₈ - b₁₅ thereof. In this embodiment, each of the data buffers LDO₀ - LDO₁₅ and the output buffers DOB₀ - DOB₇ is constructed of a tristate buffer. Each of the data buffers LDO₀ - LDO₁₅ has its operation controlled by the control signal epm , while each of the output buffers DOB₀ - DOB₇ has its operation controlled by the control signal epm. More specifically, when the control signal epm is at its high level, the data buffers LDO₀ - LDO₁₅ deliver output signals conforming to the input signals thereof through the output nodes thereof. In contrast, when the control signal epm is at its low level, the data buffers LDO₀ - LDO₁₅ bring the output nodes into the high impedance states thereof irrespective of the input signals. Meanwhile, when the control signal epm is at its high level, the output buffers DOB₀ - DOB₇ deliver output signals conforming to the input signals thereof through the output nodes thereof. In contrast, when the control signal epm is at its low level, the output buffers DOB₀ - DOB₇ bring the output nodes into the high impedance states thereof irrespective of the input signals. As will be described later, the control signal epm is set at the high level when the EPROM 2 is to be accessed by an external device (for example, EPROM writer). On this occasion, the control signal epm is set at the low level. On the other hand, when the EPROM 2 is to be accessed by any device inside the LSI, such as the CPU 1, the control signal epm is set at the high level. On this occasion, the control signal epm is set at the low level. In a case where the CPU 1 within the LSI has accessed the EPROM 2 in this way, the data items of the EPROM 2 are transmitted to the data bus 7b (signal lines b₀ - b₁₅) through the data buffers LDO₀ -LDO₁₅. Besides, in a case where the EPROM 2 has been accessed by the external device of the LSI, the data items of the EPROM 2 are transmitted to the data bus 7b (signal lines b₀ - b₇) through the output buffers DOB₀ - DOB₇. In this embodiment, each of the buffers LDO₀ - LDO₁₅ and DOB₀ - DOB₇ is constructed of the tristate buffer as described before. Alternatively, it is allowed to employ an arrangement in which MOSFETs to be switched and controlled by the control signal epm are connected between the output nodes of the respective buffers LDO₀ - LDO₁₅ and the data bus 7b, while MOSFETs to be switched and controlled by the control signal epm are connected between the output nodes of the respective buffers DOB₀ - DOB₇ and the data bus 7b. In Fig. 2B, for the brevity of the illustration, the change-over circuits constructed of the switch MOSFETs Q₄₁ and Q₄₂ are denoted by OS i (i = 0 -7), and the change-over circuits constructed of the switch MOSFETs Q₅₁ and Q₅₂ are denoted by IS i (i = 0 - 7). Further, although not especially restricted, the LSI of this embodiment is furnished with the input terminals of the mode switching control signals MODE1 and MODE2 in addition to those of a program control signal PGM , an out signal OE and a chip enable signal CE . The control circuit CONT (8) forms internal control signals we, oe, ce, epm, epm etc. for the circuit blocks inside the LSI, on the basis of the aforementioned control signals. V pp indicates the write voltage referred to before. Among the internal control signals which are output from the control circuit CONT, the signal we is formed on the basis of the external control signals PGM and CE by way of example, and it affords a timing for activating the data input circuits DIB i (i = 0 - 7). In addition, the internal control signals ce and oe are formed on the basis of the external control signals OE and CE , and they afford timings for activating the sense amplifiers SA i (i = 0 - 15) and the data buffers LDO i (i = 0 - 15) as well as the output buffers DOB i (i = 0 - 7), respectively, though no special restriction is meant. In Figs. 2A and 2B, the supply of the control signal oe to these buffers is omitted for the brevity of the illustration. Further, the internal control signals epm and epm are principally formed on the basis of the mode switching control signals MODE1 and MODE2 supplied from outside, and they turn "on" either of the switch MOSFETs Q₁₀ - Q 1n and Q₂₁ - Q 2n as the address change-over means and afford a timing for activating the address buffers ADB₀ - ADB n . The LSI of this embodiment having the built-in EPROM has the EPROM write mode designated by the mode switching control signals MODE1 and MODE2 when the EPROM writer is connected thereto. Thus, the internal control signal epm is set at the high level, and the internal control signal epm at the low level. Consequently, the switch MOSFETs Q₁₀ - Q 1n are brought into the "on" states, and the switch MOSFETs Q₂₁ - Q 2n into the "off" states. Thus, the address signals A₀ - A n supplied from the external device (EPROM writer) not shown are respectively input to the address buffers ADB₀ - ADB n , to form the internal address signals a₀ - a n and a₀ - a n . On the basis of the signals a₁ - a n and a₁ - a n among these internal address signals, one of the word lines in the memory array M-ary is selected, and the sixteen data lines are connected to the sense amplifiers SA i (i = 0 - 15) as well as the write circuits PG i (i = 10 - 17, 20 - 27). Concurrently, either the groups of switch MOSFETs Q₄₁ and Q₅₁ or Q₄₂ and Q₅₂ are brought into the "on" states by the internal address signals a₀ and a₀ which are output from the address buffer ADB₀. As a result, data items are written into the memory array M-ARY through the terminals I/O₀ - I/O₇ in 8-bit unit and in parallel by the use of the EPROM writer. Reading for verification is also executed. On the other hand, when a normal operation mode (of at least two sorts) in which the internal circuit (for example, EPROM 2) is put under the control of the CPU 1 is designated by the mode switching control signals MODE1 and MODE2 supplied from outside, the internal signal epm is set at the low level, and the internal signal epm is set at the high level. Thus, the address changing-over MOSFETs Q₁₀ - Q 1n are brought into the "off" states, and those Q₂₁ - Q 2n into the "on" states. Consequently, the address signals A₀ - A n-1 supplied from the circuit inside the LSI , such as CPU 1, are respectively supplied to the address buffers ADB₁ - ADB n . That is, the address signals which are shifted one bit to the upper bit side with respect to the address signals in the EPROM writer mode are input to the address buffers of the EPROM 2. On this occasion, the address buffer ADB₀ is controlled by the internal signals epm and epm to have both the internal address signals a₀ and a₀ fixed to the low level. Thus, the sixteen data lines in the memory array M-ARY are respectively connected to the sixteen sense amplifiers SA i (i = 0 - 15), and data items of 16 bits are output from the data buffers LDO i (i = 0 - 15) onto the internal data bus 7b. On this occasion, the output buffers DOB i , write circuits PG i and input buffers DIB i are brought into the non-operating states thereof by the internal control signals oe and we though no special restriction is intended. In this manner, in the single-chip microcomputer of the embodiment, the number of bits of the input/output data of the EPROM, namely, the number of bits of the data items to be input/output in parallel can be changed-over between 8 bits and 16 bits in the modes of the EPROM designated by the mode switching control signals MODE1 and MODE2 externally supplied, namely, in the mode of writing data into the EPROM and the normal mode (read mode except the verify mode). Thus, even when the internal data bus 7b is configured of 16 bits (bits or signal lines b₀ - b₁₅), data can be written into the EPROM 2 by the use of the EPROM writer for 8 bits. Although the above embodiment has referred to the case of the internal data bus 7b configured of 16 bits, the present invention can also be applied to a case of an internal data bus configured of 32 bits by dividing the memory array into four memory mats by way of example. Shown in Fig. 3 is an example of arrangement of an address change-over portion in the case where the internal data bus 7b is of 32 bits. As seen from the figure, in this embodiment, the address signals A₀ - A n are shifted two bits to the upper bit side and then input to the address buffers ADB₂ - ADB n of the EPROM 2 in the normal mode by the switch MOSFETs Q₁₀- Q 1n and Q₂₂ - Q 2n which are respectively controlled by the internal control signals epm and epm . that is, the address signals A₀ - A n-2 are respectively input to the address buffers ADB₂ - ADB n . Meanwhile, although not shown in the figure, the memory array M-ARY is constructed of four memory mats M-M₁ thru M-M₄, from or into each of which data items of 8 bits can be read or written in parallel. When the EPROM writer has been connected, the address signals A₀ and A₁ are respectively supplied to the address buffers ADB₀ and ADB₁ and are used for the formation of select signals for selecting one of the four memory mats. That is, on this occasion, the address signals A₀ and A₁ are used as address signals for specifying one memory mat from among the memory mats M-M₁ thru M-M₄. In this embodiment, therefore, it becomes possible to change-over the input/output of data in 8-bit unit and the output of data in 32-bit unit (to change-over data). Incidentally, in both the foregoing embodiments, the MOSFETs Q₁₀ - Q 1n and Q₂₂ - Q 2n as the address change-over means are disposed at the stages preceding the respective address buffers ADB₀ - ADB n . Alternatively, the address change-over means may well be disposed at the stages succeeding these address buffers, in other words, between the address buffers and the address decoder DCR. Besides, in order to facilitate the description, the embodiments have been explained as constructing the memory array out of the plurality of mats. However, the construction of the memory array is not restricted thereto, but similar functional effects can be attained even with a memory array constructed of a single mat by applying the concept of the present invention thereto. Further, in the embodiments, the address signals are shifted to the upper bit side and then input to the address buffers ADB in the normal mode. However, the address input portion may well be constructed as shown in Fig. 4, whereby the address signals are shifted to the lower bit side and then input to the address buffers ADB in the mode of writing data into the EPROM 2. As thus far described, in the embodiments, the address input portion is furnished with the change-over means for the address signals, so that the order of the signals to be input to the address decoder DCR can be changed according to the external control signals. Thus, when the EPROM in the LSI is to be accessed from outside the LSI, the address signals having been input are supplied to the address decoder as they are, and when the EPROM is to be accessed within the LSI, the address is changed-over so that the respective bits of the address signals may be shifted one bit or two bits to the upper bit side and then supplied to the address decoder. Therefore, when the EPROM from which data is read in 16-bit unit or 32-bit unit in the internal access is to be accessed by the EPROM writer from outside, data is read or written in 8-bit unit. This produces the effect that data can be read and written easily and smoothly without altering any external device disposed outside the LSI or preparing software for the change-over of an address. By the way, in the embodiments, the groups of switch MOSFETs Q₄₁ and Q₄₂ for switching the mats are disposed between the sense amplifiers SA and the output buffers DOB, but they may well be interposed between the common data lines CD and the sense amplifiers SA. In addition, in the embodiments, the data buffers LDO₀ - LDO₇ and the output buffers DOB₀ - DOB₇ are separately disposed, but they may well be constructed of common buffers. By way of example, it is allowed to employ an arrangement in which the data buffers LDO₀ - LDO₇ are omitted and in which switching MOSFETs are additionally connected in parallel with the switching MOSFETs Q₄₁ and have their gates supplied with the control signal epm so as to be switched and controlled. In this case, to the end of permitting the output buffers DOB₀ - DOB₇ to function also as the data buffers LDO₀ - LDO₇, the output buffers DOB₀ - DOB₇ are constructed of tristate buffers whose states are controlled by the signal oe, not by the signal epm. Shown in Fig. 5 is a block diagram of another embodiment of the on-chip EPROM according to the present invention. A memory array M-ARY is so constructed that nonvolatile storage elements each having a stacked gate structure provided with a floating gate and a control gate are arranged in the shape of a matrix. The control gates of the stacked-gate transistors constituting the memory cells are coupled to word lines which are extended in the lateral direction as viewed in the figure. Besides, the drains of the stacked-gate transistors are coupled to data lines (bit lines or digit lines) which are extended in the vertical direction as viewed in the figure. The memory array M-ARY is formed of the memory matrix which is similar in construction to that of a known EPROM as stated above. The word line of the memory array M-ARY is brought into the selected state thereof by an X-selector circuit XSEL. The X-selector circuit XSEL is constructed of a decoder circuit which receives X-address signals AX and decodes them. In the write operation of the EPROM, the select level of the word line is rendered a high voltage level of, for example, about 12 V necessary for the write operation, whereas in the read operation, it is rendered a comparatively low level of, for example, about 5 V. Therefore, the X-selector circuit XSEL has the level conversion function of forming the different select levels in accordance with the write mode and the read mode of the EPROM. This embodiment is furnished with two Y-selector circuits YSEL1 and YSEL2 for writing and reading data in order that, while the write operation with a universal EPROM writer is realized, reading in the unit of any desired number of bits irrespective of the write operation may be permitted. More specifically, the data lines of the memory array M-ARY are subjected to select operations by the Y-selector circuit YSEL1 in the write mode. The writing Y-selector circuit YSEL1 is constructed of a decoder circuit (DCR) which receives writing Y-address signals AY1 and decodes them, and a column switching circuit (CW) which selects a plurality of data lines from within the memory array M-ARY in conformity with the outputs of the decoder circuit. By way of example, the universal EPROM writer not shown writes data in 8-bit (1-byte) unit, and hence, an input/output circuit IOB suited thereto is provided. In this case, the Y-selector circuit YSEL1 performs the select operation of selecting eight of the data lines of the memory array M-ARY and connecting them to the input/output circuit IOB in accordance with the designated Y-address signals AY1. The EPROM writer needs to perform the reading of the memory array M-ARY upon designating a verify mode or read mode for checking whether or not desired data has been written into the memory cells. To this end, the input/output circuit IOB is provided as stated above. For such write/read operations, column select signals which are formed by the decoder circuit (DCR) of the Y-selector circuit YSEL1 are brought for the write operation to a high voltage level of, for example, about 12 V so that write signals of high level can be transmitted to the data lines, and they are brought for the read operation to a comparatively low level of, for example, about 5 V. Therefore, the decoder circuit (DCR) has the level conversion function of forming the different select levels in accordance with the write mode and the read mode. Owing to the input/output circuit IOB and the writing Y-selector circuit YSEL1, the operation of writing data into the memory array M-ARY in 8-bit unit can be performed using the universal EPROM writer. Besides, the read operation in 8-bit unit is possible for the verify mode. In this embodiment, the reading Y-selector circuit YSEL2 is provided in order that data and information processing procedures such as microprograms, which are stored in the memory array M-ARY, may be read in the unit of any desired number of bits as stated before. The data lines of the memory array M-ARY are subjected to select operations by the Y-selector circuit YSEL2 when the read operation is performed by a circuit, such as CPU, formed on the same chip as that of the EPROM. The reading Y-selector circuit YSEL2 is constructed of a decoder circuit (DCR) which receives reading Y-address signals AY2 and decodes them, and a column selecting circuit (CW) which selects a plurality of data lines from within the memory array M-ARY in conformity with the output signals of the decoder circuit. By way of example, in a case where microprograms are stored in the memory array M-ARY and where each program word is configured of 32 bits (4 bytes), the Y-selector circuit YSEL2 suitably selects the data lines in 32-bit unit so as to perform the reading in 32-bit (4-byte) unit in conformity with the program word. That is, in accordance with the designated Y-address signals AY2, the Y-selector circuit YSEL2 selects thirty-two data lines from among the plurality of data lines of the memory array M-ARY, and it supplies the signals of the selected data lines to a read circuit RA so as to transmit them to, e. g., the microprogram decode circuit of the microprocessor CPU. The read circuit RA has sense amplifiers for amplifying (detecting) the data items on the selected data lines. Incidentally, in this case, the operation of selecting the word line in the memory array M-ARY is the same as in the case of the read operation in the verify mode described above. Since, in this embodiment, the two Y-selector circuits as data line selector circuits are arranged at both the ends of the data lines of the memory array M-ARY as illustrated in the figure, it is possible to perform the write operation employing the universal EPROM writer and the read operation in the unit of any desired number of bits irrespective of the bit unit of the write operation. The number of bits of data items which are written in parallel at one time in the write operation, and the number of bits of data items which are read in parallel at one time for the circuit (such as CPU) formed on the same chip as that of the EPROM are unequal as described above. For this reason, the write data items in the write operation are, of course, written into the EPROM as data having a specified significance or in the divided form of the program word. That is, data or a program word of 16-bit length is decomposed into two parts each having 8 bits, and data or a program word of 32-bit length is divided into four parts, whereupon such parts are written in byte unit by, e. g., the EPROM writer from outside. In the figure, symbol CTL denotes a control circuit which forms control signals epm, epm and we respectively similar to the control signals epm, epm and we described in the foregoing embodiments. The Y-selector circuit YSEL1 and the input/output circuit IOB are brought into their operating states when the control signal epm is at the high level. In contrast, the Y-selector circuit YSEL2 and the read circuit RA are brought into their operating states when the control signal epm is at the high level. Besides, the input/output circuit IOB is instructed to perform either the write operation or the read operation by the signal we. Fig. 6 shows a block diagram of another embodiment of the semiconductor memory device according to the present invention. The circuit of the embodiment in Fig. 5 needs to be provided with the two Y-selector circuits YSEL1 and YSEL2, and therefore enlarges in scale to that extent. In this embodiment shown in Fig. 6, the writing and reading Y-selector circuits can be made common. By way of example, in a case where, as in the preceding embodiment, the bit unit (the number of bits) of data items which are read for another circuit (such as CPU) formed in the identical LSI is set to be integral times (four times in the preceding example) relative to the bit unit (the number of bits) of data items which are supplied from outside the LSI in the write operation, column switching circuits are constructed in two stages. More specifically, the first column switches CW1 which are disposed in correspondence with the data lines of a memory array M-ARY operate to select the data lines in 32-bit unit (in the number of thirty-two). A first Y-decoder circuit YDCR1 is provided in correspondence with such column switches CW1. The Y-decoder circuit YDCR1 decodes address signals AY₂ - AY n of upper bits except address signals AY₀ and AY₁ of the lowest two bits, and forms select signals to be supplied to the first column switches CW1. Laid on the output side of the first column switches CW1 are first common data lines CD1 which transmit information of 32 bits. The first common data lines CD1 are, on one hand, coupled to the input terminals of a read circuit RA, through which the information can be read in the unit of 32 bits at one time for another circuit (such as CPU) formed on the same chip as that of the EPROM. The read circuit RA has its operation controlled by the control signal epm described before, and it is brought into the operating state thereof when the EPROM is accessed from the circuit formed on the same chip as that of this EPROM. The first common data lines CD1 are, on the other hand, coupled to the second column switches CW2 in order to perform a write operation (including a read operation for verification) in 8-bit unit. The second column switches CW2 operate to select every eight of the thirty-two common data lines CD1. More specifically, the second column switches CW2 select eight common data lines from among the first common data lines CD1 numbering thirty-two and couple the selected lines to second common data lines CD2 consisting of eight signal lines, in accordance with select signals which are formed by a second Y-decoder circuit YDCR2 receiving the address signals AY₀ and AY₁ of the lowest two bits. The second common data lines CD2 are coupled to a writing input/output circuit IOB which transfers data in 8-bit unit. The second decoder YDCR2 falls into the operating state thereof when the control signal epm is at the high level. On this occasion, it decodes the address signals AY₀ and AY₁. The input/output circuit IOB is also brought into the operating state thereof when the control signal is at the high level. The selection of either the write operation or the read operation is determined by the control signal we. Thus, in the write operation, the second and first Y-decoder circuits YDCR2 and YDCR1 are brought into the operating states, and write data items of 8 bits supplied from the EPROM writer disposed outside the LSI are transmitted to the memory array M-ARY through the second column switches CW2 and first column switches CW1, whereby the write operation (including the read operation for the verify mode) in 8-bit unit can be performed. In addition, when the read operation of the EPROM is performed by any circuit formed on the same chip as that of this EPROM, the second Y-decoder circuit YDCR2 is brought into the non-operating state thereof, and read signals of 32 bits delivered onto the first common data lines CD1 are output through the read circuit RA. Since, in this embodiment, the first Y-decoder circuit YDCR1 and the first column switches CW1 can be used for both the write mode and the read mode as described above, the simplification of the Y-address selector circuitry becomes possible. Fig. 7 shows a block diagram of another embodiment of the EPROM circuit according to the present invention. In this embodiment, a memory array M-ARY is divided into two memory blocks. One of the memory blocks is constructed of unit memory blocks M100 thru M131. Each of the unit memory blocks M100 - M131 is constructed of pluralities of word lines and data lines, and nonvolatile storage elements disposed at the intersection points of the word lines and data lines. For the thirty-two unit memory blocks, the word lines are laid in common. Therefore, an X-decoder circuit XDCR1 for selecting the word lines is constructed of a single circuit. Two, column switching circuits are disposed in correspondence with the thirty-two memory blocks M100 - M131. The column switches WCW1 for writing data select the data lines in such a manner that one data line is selected from each of four sets which consist of eight of the unit memory blocks M100 thru M107, M108 - M115, M116 - M123 and M124 - M131, respectively. That is, the data lines numbering eight are selected. The selected data lines are respectively connected with eight signal lines D0 thru D7 corresponding to a write circuit WA. In order to realize such a select operation, a Y-decoder circuit YDCR1W for writing data is provided. The write circuit WA corresponds to the input/output circuit IOB described before, and transfers signals (data items) between it and a universal EPROM writer. The thirty-two unit memory blocks M100 - M131 are furnished with the column switching circuit RCW1 for reading data. This column switching circuit RCW1 selects the data lines totaling thirty-two in such a manner that one data line is selected from among the plurality of data lines in each of the unit memory blocks M100 - M131, and it couples the selected data lines to thirty-two output signal lines X32, respectively. Thus, the thirty-two data lines respectively corresponding to the thirty-two unit memory blocks are selected at one time. The read circuit RA (not shown) as described before is connected to the output signal lines X32. In this way, one memory block constructed of the thirty-two unit memory blocks M100 - M131 can be subjected to the write operation (including the verify/read mode) in 8-bit unit by the use of the X-decoder circuit XDCR1 and the writing decoder circuit YDCR1W as well as the column switching circuit WCW1 corresponding thereto. In addition, the memory block constructed of the thirty-two unit memory blocks M100 - M131 can be subjected to the operation of reading data for the circuit formed on the same chip as that of the EPROM, in 32-bit unit by the use of the X-decoder circuit XDCR1 and a reading decoder circuit YDCR1R as well as the column switching circuit RCW1 corresponding thereto. The other memory block is constructed of unit memory blocks M200 thru M212 similar to the foregoing. Although not especially restricted, the other memory block constructed of these unit memory blocks M200 - M212 is furnished with an X-decoder circuit XDCR2 which serves to select word lines extended in common. Thus, the two memory blocks can be selected with their own X-address signals. Two, column switching circuits are disposed in correspondence with the memory block constructed of the thirteen unit memory blocks M200 - M212, likewise to those of the memory block constructed of the thirty-two unit memory blocks M100 - M131. The column switching circuit WCW2 for writing data selects data lines in such a manner that one data line is selected from each of eight of the thirteen unit memory blocks M200 - M212, for example, either the unit memory blocks M200 - M207 or M208 - M215 (in which the unit memory blocks M213 - M215 are not actually provided and are therefore regarded as virtual unit memory blocks), and it couples the eight selected data lines to the eight signal lines D0 - D7 corresponding to the write circuit WA described before, respectively. In this case, regarding the three virtual unit memory blocks M213 - M215, no column switches are disposed because signal lines to correspond thereto do not exist. Accordingly, in a write operation (including a verify/read mode) for the unit memory blocks M208 - M212, data items in 8-bit unit are supplied through the signal lines D0 - D7 from the write circuit WA, but those of the data items corresponding to the signal lines D5 - D7 are invalidated. In order to perform the select operation in this manner, a Y-decoder circuit YDCR2W for writing data is provided. The thirteen unit memory blocks M200 thru M212 are furnished with the column switching circuit RCW2 for reading data. This column switching circuit RCW2 selects the data lines in such a manner that one of the plurality of data lines in each of the unit memory blocks M200 - M212 is selected, and it couples the selected data lines to thirteen output signal lines X13, respectively. The read circuit RA (not shown) as described before is connected to the output signal lines X13. In this way, the other memory block constructed of the thirteen unit memory blocks M200 - M212 can be subjected to the write operation (including the verify/read mode) in 8-bit unit by the use of the X-decoder circuit XDCR2 and the writing decoder circuit YDCR2W as well as the column switching circuit WCW2 corresponding thereto. In addition, the memory block constructed of the thirteen unit memory blocks M200 - M212 can be subjected to the read operation in 13-bit unit by the use of the X-decoder circuit XDCR2 and a reading decoder circuit YDCR2R as well as the column switching circuit RCW2 corresponding thereto. As thus far described, the write circuit WA is made common to the plurality of memory blocks having the unequal numbers of unit memory blocks, thereby making it possible that, while data items are written into the respective memory blocks in 8-bit unit, data items are read out of the respective memory blocks in the units of any desired numbers of bits. In addition, the write circuit WA is controlled by the control signal we and is brought into the operating state thereof in the write operation. Although no special restriction is intended, the Y-decoders YDCR1W and YDCR2W are controlled by the control signal epm, and the Y-decoders YDCR1R and YDCR2R are controlled by the control signal epm in this embodiment as in the foregoing embodiments. Thus, the Y-decoders YDCR1W and YDCR2W are brought into the operating states thereof in the write operation (including the verify operation), whereas the Y-decoders YDCR1R and YDCR2R are brought into the operating states thereof in the read operation. With the construction of this embodiment, in a case where information items having significances different from each other, such as data and program words, are respectively configured of any desired unequal numbers of bits and are stored in the separate EPROM areas, the operations of writing the information items into the individual EPROM areas can be performed by a single universal writer. It is also permitted that a circuit (for example, CPU) formed on the same chip as that of the EPROM reads information of required bit configuration from the EPROM at will. Functional effects which are attained by the embodiments stated above, are as follows: (1) A writing input circuit, and a reading output circuit which reads data in bit unit differing from that of the writing input circuit are provided, thereby to adapt the writing input circuit to a universal EPROM writer, whereby efficient writing becomes possible, and also reading in the unit of any desired number of bits becomes possible. (2) Owing to the effect (1), a universal EPROM writer of 8 bits can be used for writing data into an on-chip EMPROM from which data is read in 16-or 32-bit unit in an internal operation, so that curtailment in a writing cost can be achieved. (3) Since the number of bits of read data can be set irrespective of a write operation, the storage capacity of the memory array of an EPROM can be efficiently used, and the substantial packaging density of the EPROM can be heightened. (4) Since the number of bits of read data can be set as desired, a semiconductor integrated circuit device having an information processing function, such as a single-chip microcomputer with a built-in EPROM, can be fabricated into multifarious systems. Although, in the above, the invention made by the inventors has been concretely described in conjunction with embodiments, it is needless to say that the present invention is not restricted to the foregoing embodiments, but that it can be variously altered within a scope not departing from the purport thereof. By way of example, in Fig. 5 or Fig. 6, the data lines of the memory array M-ARY may well be divided into a plurality of blocks so as to read data items or program words having a plurality of sorts of numbers of bits. Besides, in Fig. 7, the word lines of the two memory blocks may well be made common so as to perform a select operation by means of a single X-address decoder. In addition, the number of the memory blocks is set at a number conforming to the sorts of data, program words, etc. to be stored. Further, the external device for accessing the EPROM built in the LSI is not restricted to the EPROM writer, but it may well be any of another microcomputer, etc. In the above, the invention made by the inventors has been principally described as to the application thereof to a single-chip microcomputer with a built-in EPROM as forms the background field of utilization. However, the present invention is not restricted thereto, but it can also be utilized for an LSI for communications having a built-in EPROM, an LSI in which an EEPROM or RAM being electrically erasable or a readable and writable memory other than the EPROM is built, and a semiconductor memory in the form of a single product. In a case where an on-chip memory is a RAM, a kind of data conversion operation may well be executed by the RAM in such a way that signals are written into the RAM through a signal bus configured of, for example, 8 bits (bytes), and that the signals are read out of the RAM as data which is configured of a plurality of bytes and endowed with a specified significance through the combination of the signals.

Claims: A semiconductor integrated circuit device comprising a memory area (M-ARY,2) from and into which data can be read and written, an input circuit (10B, YSEL1) which serves to write data into said memory area, and an output circuit (RA, YSEL2) which serves to read data in a bit unit different from that of the writing input circuit. A semiconductor integrated circuit device according to claim 1, further comprising a plurality of reading output circuits which read data items in different bit units in correspondence with a plurality of individual memory blocks into which the memory area is divided. A semiconductor integrated circuit device according to claim 1 having address change-means for changing a bit order between address signals-which are supplied when the memory area is to be accessed from outside the integrated circuit device and address signals which are supplied when the memory area is to be accessed inside the integrated circuit device. A semiconductor integrated circuit device according to claim 3, wherein the address change-over means has transfer gates which are adapted to shift respective bits of the supplied address signals to either an upper bit side or a lower bit side and then apply them to either address buffers or an address decoder. A semiconductor integrated circuit device according to claim 3 or claim 4, further comprising a decoder which decodes the address signals to be supplied to the memory area, and which is preceded by the address change-over means. A semiconductor integrated circuit device according to any one of claims 3 to 5, further comprising an output buffer to which any of data items is selectively supplied, the data items being read out of a plurality of individual memory blocks into which the memory area is divided A semiconductor integrated circuit device according to claim 6, comprising, in addition to the output buffer, buffers which are equal in number to bits of the data items read out of the memory area, and a half number of buffers of which have their output terminals connected to bus signal lines common to the output buffer. A semiconductor integrated circuit device according to any one of the preceding claims, wherein said memory area is constructed of non-volatile storage elements which are electrically programmable. A semiconductor integrated circuit device according to claim 1 having a microprocessor, a memory device containing the memory area, and a bus which is coupled to both the microprocessor and the memory device; wherein the device further includes bit-number variation means coupled to the memory device and for changing a number of bits constituting data which is delivered from the memory device to the bus at one time. A semiconductor integrated circuit device according to claim 1 having a microprocessor, a data bus, a memory device containing the memory area which stores data to be supplied to the microprocessor through the data bus, external terminals to which the data bus is coupled; wherein data is written into the memory device through the external terminals by a write device, and wherein the device further includes bit-number setting means coupled to the memory device, and for changing a number of bits of data which is supplied from the memory device to said microprocessor at one time and a number of bits of data which is supplied from the write device to the memory device at one time. A semiconductor integrated circuit device according to any preceding claim wherein the data lines of the memory area are divided into a plurality of blocks thereby to read data items or program words having a plurality of bit number types. A semiconductor integrated circuit device according to claim 11 wherein the word lines of at least two memory blocks are made common thereby to perform a select operation using a single address decoder.

Inventors: FUJIMOTO, MICHIO, MATSUO, AKINORI, NAGAYAMA, YOSHIHARU, NAITO, KAZUO, WADA, MASASHI, WATANABE, MASASHI
Applicants: HITACHI VLSI ENGINEERING CORPORATION, HITACHI, LTD.
Application year: 1988
Main classification: G11C8
IPC codes: G11C8