USRE36482E - Data processor and data processing system and method for accessing a dynamic type memory using an address multiplexing system - Google Patents

Data processor and data processing system and method for accessing a dynamic type memory using an address multiplexing system Download PDF

Info

Publication number
USRE36482E
USRE36482E US08/729,132 US72913296A USRE36482E US RE36482 E USRE36482 E US RE36482E US 72913296 A US72913296 A US 72913296A US RE36482 E USRE36482 E US RE36482E
Authority
US
United States
Prior art keywords
address
data
iaddend
iadd
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
US08/729,132
Inventor
Shiro Baba
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to US08/729,132 priority Critical patent/USRE36482E/en
Application granted granted Critical
Publication of USRE36482E publication Critical patent/USRE36482E/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/06Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication
    • G06F12/0646Configuration or reconfiguration
    • G06F12/0653Configuration or reconfiguration with centralised address assignment

Definitions

  • This invention relates to data processing technology, and more particularly to technology which is especially effective when applied to a microprocessor.
  • a microcomputer system is constructed of a microprocessor, storage devices such as a ROM (read-only memory) and a RAM (random access memory), an input/output interface (I/O), etc.
  • storage devices such as a ROM (read-only memory) and a RAM (random access memory), an input/output interface (I/O), etc.
  • I/O input/output interface
  • any of prior-art microprocessors has been constructed so as to be capable of direct access to the ROM and the static RAM.
  • RAS row address strobe
  • CAS column address strobe
  • RFSH signal RFSH
  • a certain prior-art microprocessor has a built-in refresh counter which generates the refresh address of the dynamic RAM. Even with such a microprocessor, the RAS signal and the CAS signal must be produced by the external circuits.
  • An object of this invention is to provide a microprocessor which facilitates the design of a system employing a dynamic RAM and which can reduce the packaging area of the system.
  • Another object of this invention is to provide a microprocessor of high versatility in which the capacity and number of dynamic RAMs to be used, the positions of dynamic RAM areas in an address space, and so forth can be freely changed.
  • a microprocessor comprises therein a refresh counter which generates a refresh address, a control signal forming circuit which forms control signals, such as RAS signal and CAS signal, required for accessing a dynamic RAM, and a register which designates either access to the dynamic RAM or access to a static RAM (or a ROM), an address outputting mode being alterable in accordance with the content of the register, whereby not only the static RAM but also the dynamic RAM can be accessed, and the latter can be refreshed without disposing any external circuit, to facilitate the design of a system and to reduce the packaging area of the system.
  • a refresh counter which generates a refresh address
  • a control signal forming circuit which forms control signals, such as RAS signal and CAS signal, required for accessing a dynamic RAM
  • a register which designates either access to the dynamic RAM or access to a static RAM (or a ROM), an address outputting mode being alterable in accordance with the content of the register, whereby not only the static RAM but also the dynamic RAM can be accessed, and the latter
  • the above register comprises registers which designate the address ranges and capacities of the dynamic RAMs to be used, namely, the number of bits of address signals, thereby to provide a microprocessor of high versatility in which the capacities or number of the dynamic RAMs to be used can be changed freely to some extent.
  • FIG. 1 is a block diagram showing an embodiment of a microprocessor according to the present invention
  • FIG. 2 is a memory map showing an example of the state of address spaces divided by address setting registers
  • FIG. 3 is a timing chart showing the timings of address signals and control signals in the case of accessing a dynamic RAM
  • FIG. 4 is a circuit diagram of an address multiplexor
  • FIG. 5 is a circuit diagram of a control signal generator
  • FIGS. 6 and 7 are circuit diagrams of an inverter circuit and a clocked inverter circuit respectively;
  • FIGS. 8, 9, 10 and 11 are timing charts of circuits in FIGS. 4 and 5;
  • FIG. 12 is a connection diagram of external memories
  • FIG. 13 is a circuit diagram of another embodiment.
  • FIG. 1 is a circuit block diagram of one embodiment in the case of applying the present invention to a 16-bit microprocessor.
  • a portion enclosed with a chain line A is formed on a single semiconductor substrate such as single-crystal silicon by known semiconductor production technology.
  • circuit symbol CPU shown by circuit symbol CPU is a microprocessor portion.
  • this microprocessor portion CPU the practicable arrangement of which is not directly pertinent to the present invention, is not illustrated in detail, it is constructed of for example execution unit EXEC which is composed of an arithmetic-logic unit, dedicated registers such as a program counter, a stack pointer, a status register, and general-purpose registers for use as work areas, and a controller CONT which is composed of an instruction register to which microprogram instructions read out from an external memory not shown are successively input.
  • micro ROMs in which microinstructions corresponding to respective macroinstructions are stored, and so on.
  • the execution unit EXEC is operated in a proper sequence which is determined by control signals delivered from the controller CONT. Thus, desired data processing is executed. Coupled to the controller CONT are external terminals CT which are supplied with interrupt signals and reset signals.
  • an oscillator OSC and a clock pulse generator CPG are provided.
  • the oscillator OSC has its oscillation frequency determined by a circuit element, such as quartz vibrator or ceramics vibrator not shown, which is coupled between external terminals XT 1 and XT 2 .
  • the clock pulse generator CPG receives the oscillation output of the oscillator OSC and properly divides its frequency, thereby to form a system clock ⁇ .
  • a refresh counter RC which generates a refresh address of a dynamic RAM
  • an address multiplexor MPX which selects either the address from the refresh counter RC or an address that is delivered from the execution unit EXEC to an address bus line A-BUS
  • a control signal generator CSG which controls the operation of the address multiplexor MPX.
  • the refresh counter RC is operated by the operating clock signal ⁇ of the system, and outputs a synchronizing signal RFSH indicative of the timing of refresh about once every 2 milliseconds.
  • the refresh counter RC also forms address signals for accessing the respective memory rows of the dynamic RAM, within the cycle of the synchronizing signal RFSH.
  • the synchronizing signal RFSH is also fed to the microprocessor portion CPU and the control signal generator CSG.
  • the microprocessor portion CPU When the synchronizing signal RFSH has been generated, the microprocessor portion CPU is prohibited from accessing the address bus A-BUS Simultaneously therewith, switching control signals to be described in detail later are supplied from the control signal generator CSG to the address multiplexor MPX.
  • the multiplexor MPX selects the refresh address supplied from the refresh counter RC, instead of the address signals on the address bus A-BUS.
  • the address signals selected by the multiplexor MPX are output to an external address bus A-BUSE through an address buffer A-BFF.
  • the synchronizing signal RFSH supplied from the refresh counter RC to the control signal generator CSG is externally fed as the signal RFSH indicative of the refresh timing.
  • a plurality of address spaces to correspond to a plurality of different types of memories and data indicating the attributes of the respective memories are set in the microprocessor in order to permit the memories to be simultaneously coupled to external address terminals AT.
  • the embodiment is provided for discriminating the plurality of address spaces with two address setting registers AR 1 and AR 2 , two comparators COMP 1 and COMP 2 which compare the contents of the address setting registers AR 1 and AR 2 with the address delivered from the microprocessor portion CP onto the address bus A-BUS and decide the relations of magnitudes thereof, respectively, and a decision circuit DCD which decides which address range the address signal on the address bus A-BUS falls within, by reference to the outputs of the two comparators COMP 1 and COMP 2 .
  • Each of the address setting registers AR 1 AR 2 has its operation controlled by the control signal delivered from the execution unit EXEC of the microprocessor portion CPU, and has address data written therein through a data bus D-BUS.
  • the data to be written into the address setting registers AR 1 and AR 2 is stored along with programs to be executed by the shown microprocessor, in an unshown ROM the address terminals of which are coupled to the external address bus lines A-BUSE and the data output terminals of which are coupled to external data bus D-BUSE.
  • the data is set in the address setting registers AR 1 AR 2 as follows by way of example.
  • the data to be written into the register AR 1 is read out from the unshown ROM and is once written into an unshown working resister within the execution unit EXEC through a data buffer D-BFF as well as the internal data bus lines D-BUS. Subsequently, the data of the working register is output to the internal data bus D-BUS, and the control signal for writing the data into the register AR 1 is output from the execution unit EXEC. Thus, the data of the data bus line D-BUS is written into the register AR 1 . Also the register AR 2 has the data written thereinto according to a similar operating sequence.
  • the whole memory space can be divided in three in accordance with the data set in the two address setting registers AR 1 and AR 2 .
  • the address data of the address setting register AR 1 signifies the head address of the second address space among the first to third address spaces
  • that of the address setting register AR 2 signifies the head address of the third address space.
  • the data of the register AR 1 makes it possible to identify the boundary between the first address space and the second address space
  • that of the register AR 2 makes it possible to identify the boundary between the second address space and the third address space.
  • the first address space is set to an address range from “000000” to "3FFFFF”
  • the second address space is set to an address range from "40000” to "AFFFFF”
  • the third address space is set to a range from "B00000” to "FFFFFF”
  • the ranges of the address data supplied from the CPU to the address bus lines A-BUS are decided by the comparators COMP 1 , COMP 2 and the decision circuit DCD.
  • the comparator COMP 1 compares the address data of the address bus lines A-BUS with the data set in the register AR 1 . This comparator COMP 1 outputs "1" if the address data of the address bus lines A-BUS is greater than that of the register AR 1 , and it outputs "0" if not.
  • the comparator COMP 2 outputs "1" if the address data of the address bus lines A-BUS is greater than that of the register AR 2 , and it outputs "0" if not.
  • the decision circuit DCD is, in effect, constructed of a decoder which decodes the outputs of the comparators COMP 1 and COMP 2 .
  • the decision circuit DCD On the basis of the outputs of the comparators COMP 1 and COMP 2 , the decision circuit DCD provides three sorts of control signals which indicate the address spaces of the data of the address bus lines A-BUS.
  • the output of the decision circuit DCD is used as the operation control signals of selecting circuits SEL 1 and SEL 2 to be described later.
  • registers CR 1 -CR 3 each including stages B 0 -B 2 in which the data indicating the property of the memory corresponding to the address range is written.
  • the configuration registers CR 1 to CR 3 have the setting of data therein controlled by the CPU. That is, the data for the configuration registers CR 1 to CR 3 is supplied through the data bus D-BUS.
  • bit B 0 is used for data which corresponds to the addressing mode of the memory to be externally connected through the external bus lines A-BUSE and D-BUSE, and the bits B 1 and B 2 are used for data which corresponds to the storage capacity of the memory to be externally connected.
  • the bit B 0 is set at "1" for a memory of the address multiplexing system such as a dynamic RAM, in other words, for a memory to which two kinds of address data items such as a row-group address and a column-group address are to be supplied in time division, and it is set at "0" or a memory to which two kinds of address data items are to be simultaneously supplied, such as a ROM or a static RAM.
  • the two bits consisting of the bits B 1 and B 2 correspond to four sorts of storage capacities.
  • the combinations of the bits B 1 and B 2 ; "00", “01”, “10” and “11” correspond respectively to the storage capacities of 16 kilobits, 64 kilobits, 256 kilobits and 1 megabit.
  • the address setting registers AR 1 and AR 2 are respectively set at "400000” and "B00000” in hexadecimal numbers and where the bits B 0 of the configuration registers CR 1 -CR 3 are respectively set at ⁇ 0 ⁇ , ⁇ 1 ⁇ and ⁇ 0 ⁇ .
  • the value ⁇ 0 ⁇ of the bit B 0 signifies the address range of the ROM or the static RAM other than the dynamic RAM
  • the value ⁇ 1 ⁇ of the bit B 0 signifies the address range of the dynamic RAM, as described before.
  • the address range of addresses "000000” to "3FFFFF” as illustrated in FIG. 2 becomes the first address space or address region ASP 1 directed to the static RAM or the ROM
  • the address range of addresses "400000” to "AFFFFF” becomes the second address space ASP 2 directed to the dynamic RAM
  • the address range of addresses "B00000” to "FFFFFF” becomes the third address space ASP 3 directed to the ROM or the static RAM.
  • the information items of the bits B 0 of the respective configuration registers CR 1 -CR 3 are passed through the selecting circuit SEL 1 whose switching operation is effected with the decision output signal of the decision circuit DCD, whereby one of the information items is selectively supplied to the control signal generator CSG.
  • the selecting circuit SEL 1 which is controlled by the output of the decision circuit DCD at that time functions to supply the control signal generator CSG with the content of the bit B 0 of the configuration register CR 1 Meanwhile, if the address on the address bus lies between "400000” and "AFFFFF", the content of the bit B 0 of the configuration register CR 2 is supplied to the control signal generator CSG, and if the address on the address bus lines between "B00000” and "FFFFFF", the content of the configuration register CR 3 is supplied to the same.
  • the decision circuit DCD, the configuration registers CR 1 -CR 3 and the selecting circuit SEL 1 constitute address decision means.
  • the control signal generator CSG forms control signals with which address data items A 0 -A 23 on the address bus A-BUS are passed through the address multiplexor MPX as they are so as to be supplied to the address buffer A-BFF, and it delivers the control signals to the address multiplexor MPX.
  • the control signal generator CSG causes a latch circuit (not shown) within the address multiplexor MPX to accept the signal of a part corresponding to upper bits (or lower bits) required for accessing the dynamic RAM, among the address data items delivered from the microprocessor portion CPU onto the address bus A-BUS, and it allows the signal of a part corresponding to the lower bits (or the upper bits) of the address, to pass through the address multiplexor MPX as it is, thereby to deliver this signal as a row address signal.
  • control signal generator CSG functions to send the upper bits (or lower bits) of the address already held in the latch circuit within the address multiplexor MPX, from the address multiplexor MPX to the address buffer A-BFF and to externally deliver them as a column address signal from the same address terminals as those of the row address signal.
  • the upper bits and the lower bits of the address are delivered out individually, namely, by the address multiplexing system.
  • a RAS signal row address strobe signal
  • the control signal generator CSG in synchronism with this row address signal as shown in FIG. 3
  • a CAS signal column address strobe signal
  • the dynamic RAM connected to the microprocessor of this embodiment is accessed in synchronism with the falling edges of the RAS signal and the CAS signal and by accepting the addresses delivered from the address buffer A-BFF at those times, whereby desired data can be read out.
  • the data bus D-BUS has the data buffer D-BFF connected thereto, the latter serving to input and output data between it and the unshown external memories through external data terminals DT as illustrated in FIG. 1.
  • the information items of the sets of the bits B 1 and B 2 in the configuration registers CR 1 -CR 3 pass through the selecting circuit SEL 2 whose switching state is controlled by the output of the decision circuit DCD, whereby one of the sets is sent to the control signal generator CSC.
  • the bits B 1 and B 2 of any of the configuration registers CR 1 -CR 3 subject to the bit B 0 being set at ⁇ 1 ⁇ are set at ⁇ 0, 0 ⁇ by way of example, they indicate that the capacity of the corresponding dynamic RAM is 16 kbits, as stated before.
  • the control signal generator CSC When supplied with the information items of the bits B 1 and B 2 of any of the configuration registers CR 1 -CR 3 , the control signal generator CSC operates subject to these bits being ⁇ 0, 0 ⁇ , to recognize 14 bits (for example, A 1 -A 14 ) in the signal on the address bus A-BUS as the formal address of the dynamic RAM and to latch half (A 8 -A 14 ) of the bits in the address multiplexor MPX and pass the remaining half (A 1 -A 7 ) therethrough without any change. Thereafter, the circuit CSG causes the address multiplexor MPX to deliver the half (A 8 -A 14 ) to the same external terminals
  • the control signal generator CSG operates to recognize 16 bits (for example. A 1 -A 16 ) in the signal on the address bus as the formal address and to latch half (A 9 -A 16 ) of the bits in the multiplexor MPX and pass the remaining half (A 1 -A 8 ) therethrough without any change.
  • the control signal generator CSG similarly operates to halve the signal of 18 bits or 20 bits and deliver it in two divided steps.
  • the bits not used for the access to the dynamic RAM are once latched in the address multiplexor MPX and are successively delivered out while the lower bits and upper bits are sequentially output as stated above.
  • An address decoder installed on a memory board forms a chip select signal on the basis of the delivered bits so as to select the dynamic RAM.
  • the signal which is supplied from the selecting circuit SEL 1 to the control signal generator CSG and which indicates the information specifying whether or not the address range is of the dynamic RAM is delivered out as a signal DRAM. Owing to this signal DRAM, whether or not the microprocessor is accessing the dynamic RAM can be known. It is also possible, for example, to use this signal as the chip select signal of the dynamic RAM or to bring the ROM or the static RAM into an unselected state with this signal.
  • FIG. 4 shows a practicable circuit arrangement of the multiplexor MPX.
  • the multiplexor MPX is constructed of latch circuits LT 1 thru LT 24 the input terminals of which are coupled to corresponding address lines A 1 thru A 20 , A 0 , and A 21 thru A 23 constituting the address bus and the data accepting timings of which are controlled by a timing signal ⁇ l , and inverter circuits IV 1 thru IV 47 .
  • inverter circuit IV 1 thru IV 47 those IV 1 thru IV 8 , IV 13 thru IV 27 , and IV 38 thru IV 47 are clocked inverter circuit the operations of which are respectively controlled by timing signals ⁇ r0 , ⁇ c0 thru ⁇ c6 , and ⁇ ref .
  • each of the clocked inverter circuits is constructed, as shown in FIG. 7, of P-channel output MOSFETS Q 3 and Q 4 which are serially connected between a power source terminal V DD and an output terminal OUT, and N-channel MOSFETs Q 5 and Q 6 which are serially connected between the output terminal OUT and the ground point of the circuit.
  • the MOSFETs Q 4 and Q 5 have their gates coupled to an input terminal IN
  • the MOSFET Q 6 has its gate coupled to a control line ⁇
  • the MOSFET Q 3 has its gate coupled to the control line ⁇ through an inverter IV 60 .
  • the clocked inverter circuit of the above arrangement is responsively brought into an operating state and supplies the output terminal OUT with an output signal which is inverted in level with respect to an input signal fed to the input terminal IN.
  • the control signal ⁇ is at a low level
  • the clocked inverter circuit is brought into a latch state. That is, the output of the clocked inverter circuit is held at a previous output level irrespective of the level of an input signal by a holding capacitance not shown, e.g., a stray capacitance coupled to the output terminal.
  • FIG. 6 shows a circuit example of the inverter circuit.
  • the clocked inverter circuits IV 5 thru IV 8 , IV 14 , IV 16 , IV 18 , and IV 22 thru IV 27 can be regarded as column selection circuits as will be understood from later description.
  • the clocked inverter circuits IV 38 thru IV 47 in FIG. 4 have their respective input terminals RA 0 thru RA 9 coupled to the output terminals of the refresh counter RC in FIG. 1.
  • the timing signals or control signals ⁇ l , ⁇ r0 , ⁇ c0 thru ⁇ c6 , and ⁇ ref for controlling the operation of the multiplexor MPX are produced from the control signal generator CSG
  • FIG. 5 is a circuit diagram of Part of the control signal generator CSG.
  • the control signal ⁇ ref which is supplied to the circuit in FIG. 5 is formed, for example, in such a way that the refresh control signal RFSH delivered from the refresh counter RC in FIG. 1 is inverted by an inverter circuit.
  • the timing signal ⁇ r0 is, in effect, regarded as an upper- (or lower-) bit select signal.
  • This timing signal ⁇ r0 is brought to the high level or "1" level in the first half of the cycle of the clock signal ⁇ (hereinbelow, termed the first cycle) if the bit signal B 0 delivered from the selecting circuit SEL 1 in FIG. 1 is "1", in other words, if the bit B 0 of the configuration register selected by the selecting circuit SEL 1 indicates the address multiplexing system, and it is brought to the high level in the first cycle and the succeeding second cycle if the bit signal B 0 is "0"
  • the timing signal ⁇ r0 is responsively brought to the low level or "0" level if the refresh control signal RFSH is at the low level, that is, it indicates the refresh operation.
  • timing signal ⁇ r0 is as follows by way of example.
  • the circuit is constructed of a pulse formation circuit which receives the output of the clock pulse generator CPG in FIG. 1, thereby to form a first clock signal having the aforementioned first cycle and a second clock signal having the aforementioned first and second cycles; a first gate circuit made up of an AND circuit which forms the logical product signal among the bit signal B 0 delivered from the selection circuit SEL 1 , the first clock signal, and the control signal RFSH a second gate circuit made up of an AND circuit which forms the logical product signal among the inverted signal of the bit signal B 0 , the second clock signal, and the control signal RFSH; and a third gate circuit which forms the logical sum signal between the outputs of the first and second gate circuits.
  • an AND circuit is composed of a NAND circuit and in inverter circuit
  • an OR circuit is composed of a NOR circuit and an inverter circuit.
  • the timing signal ⁇ c0 is regarded as a lower (or upper) bit select signal.
  • This timing signal ⁇ c0 held at the high level in the aforementioned second cycle if the bit signal B 0 output from the selection circuit SEL 1 in FIG. 1 is "1", whereas it is held at the "0" level or low level in response to the value "0" of the bit signal B 0 , as well as the low level ("0" level) of the signal RFSH.
  • the timing signal ⁇ c0 is generated by an AND circuit which forms the logical product signal among the first and second clock signals, the inverted signal of the bit signal B 0 , and the control signal RFSH.
  • a gate circuit G 11 made up of an AND circuit has its output brought to the "1" level or high level responsively when the bit signals B 1 and B 2 supplied from the selection circuit SEL 2 in FIG. 1 are “0" and "0", in other words, when the combination of the bit signals B 1 and B 2 indicates a memory requiring address signals of 14 bits, such as a 16-kilobit memory of 1-bit format.
  • a gate circuit G 12 has its output brought to the "1" level responsively when the bit signals B 1 and B 2 are "1" and "0” respectively, in other words, when they indicate a memory requiring address signals of 16 bits, such as a 64-kilobit memory of 1-bit format.
  • the outputs of gate circuits G 13 and G 14 are brought to the "1" level when the bit signals B 1 and B 2 indicate a memory requiring address signals of 18 bits, such as a 256-kilobit memory of 1-bit format, and a memory such as a 1-megabit memory, respectively.
  • a gate circuit G 1 made up of an AND circuit receives the output of the gate circuit G 11 and the timing signal ⁇ c0 . Therefore, when the bit signals B 1 and B 2 indicate the 16-kilobit memory, the output ⁇ c1 of this gate circuit G 1 is brought to the "1" level in synchronism with the timing signal ⁇ c0 .
  • a gate circuit G 2 receives the output of an OR gate circuit G 7 supplied with the output of the gate circuit G 11 or G 12 , together with the timing signal ⁇ c0 . Therefore, when the bit signals B 1 and B 2 indicate the 16-kilobit or 64-kilobit memory, the output ⁇ c2 of this gate circuit G 2 is brought to the "1" level in synchronism with the timing signal ⁇ c0 .
  • the timing signal ⁇ c3 which is output from a gate circuit G 3 is brought to the "1" level in synchronism with the timing signal ⁇ c0 when the combination of the bit signals B 1 and B 2 indicates the 16-kilobit, 64-kilobit or 256-kilobit memory
  • the timing signal ⁇ c4 which is output from a gate circuit G 4 is brought to the "1" level in synchronism with the timing signal ⁇ c0 when the bit signals B 1 and B 2 indicate the 64-kilobit, 256-kilobit or 1-megabit memory.
  • the timing signal ⁇ c5 is brought to the "1" level in synchronism with the timing signal ⁇ c0
  • the timing signal ⁇ c6 is brought to the "1" level in synchronism with the timing signal ⁇ c0 .
  • the address multiplexor MPX in FIG. 4 is operated in response to the timing signals which are output from the control signal generator CSG in FIG. 5.
  • FIG. 8 shows a timing chart in the case where the 16-kilobit DRAM is accessed.
  • the outputs a 1 thru a 7 of the multiplexor MPX are supplied to the address terminals of such a DRAM through the address buffer A-BFF and the external bus lines A-BUSE in FIG. 1.
  • the circuit operations will be described by utilizing the timing chart of FIG. 8.
  • the timing signal ⁇ l for the latch circuits LT 1 thru LT 24 is brought to the high level in synchronism with the timing at which the address signals are supplied to the address bus lines A-BUS.
  • the latch circuits LT 1 thru LT 24 accept the address signals of the address bus lines A-BUS in response to the timing signal ⁇ l .
  • the timing signal ⁇ r0 is held at the high level for a period from a time t 0 to a time t 1 in accordance with the fact that the bit signal B 0 supplied to the control signal generator CSG in FIG. 1 is "1".
  • the clocked inverter circuits IV 1 thru IV 4 and IV 19 thru IV 21 in FIG. 4 are brought into their operating states in response to the timing signal ⁇ r0 rendered the high level.
  • the outputs a 1 thru a 4 and a 5 thru a 7 of the multiplexor MPX are respectively brought to levels corresponding to the address signals A 1 thru A 7 of the address bus lines A-BUS.
  • the timing signal ⁇ c0 is brought to the high level in synchronism with the timing at which the timing signal ⁇ r0 is rendered the low level.
  • the timing signals ⁇ cl thru ⁇ c3 are brought to the high level in synchronism with the timing signal ⁇ c0 as illustrated at D in FIG. 8 because the bit signals B 1 and B 2 supplied to the control signal generator CSG in FIG. 1 are "0" and "0" indicative of the 16-kilobit memory.
  • the remaining timing signals ⁇ c4 thru ⁇ c6 are held at the low level irrespective of the timing signal ⁇ c0 as illustrated at E in FIG. 8.
  • the clocked inverter circuits IV 5 thru IV 8 in FIG. 4 are brought into their operating states in response to the timing signal ⁇ c0 rendered the high level, and those IV 14 , IV 16 and IV 18 are brought into their operating states in response to the respective timing signals ⁇ c1 , ⁇ c2 and ⁇ c3 rendered the high level.
  • the respective levels of the outputs a 1 thru a 4 of the multiplexor MPX are determined by the inverter circuits IV 5 thru IV 8 .
  • the respective levels of the outputs a 5 thru a 7 are determined by the inverter circuits IV 14 , IV 16 and IV 18 .
  • the inputs of the inverter circuits IV 5 thru IV 8 , the input of the inverter circuit IV 14 , and the inputs of the inverter circuits IV 16 and IV 18 are respectively coupled to the latch circuits LT 5 thru LT 8 , LT 9 , and LT 10 and LT 11 .
  • the outputs a 1 thru a 4 and a 5 thru a 7 of the multiplexor MPX are therefore brought to levels corresponding to the address signals A 11 thru A 14 , A 8 , A 9 and A 10 respectively as illustrated at F in FIG. 8, in response to the timing signals ⁇ c0 thru ⁇ c3 rendered the high level.
  • the timing signal ⁇ r0 for the clocked inverter circuits IV 1 thru IV 4 and IV 19 thru IV 21 is brought to the low level in synchronism with the timing at which the clocked inverter circuits IV 5 thru IV 8 , IV 14 , IV 16 and IV 18 are operated. Therefore, the inverter circuits IV 1 thru IV 4 and IV 19 thru IV 21 do not affect the output levels of the inverter circuits IV 5 thru IV 8 , IV 14 , IV 16 and IV 18 .
  • the outputs a 1 thru a 7 determined at the time t 0 are set as the row address signals for the 16-kilobit DRAM, and the outputs a 1 thru a 7 determined at the time t 1 are set as the column address signals.
  • the outputs a 1 thru a 7 are maintained at the previous levels by means of holding capacitances such as stray capacitances existent in the respective output lines even when the timing signals ⁇ c0 thru ⁇ c3 are returned from the high level to the low level thereby to bring the clocked inverter circuits IV 5 etc, into their nonoperating states. These outputs a 1 thru a 7 are updated in response to the timing signal ⁇ r0 rendered the high level again.
  • the outputs a 0 and A 15 thru a 23 which need not be address-multiplexed have their respective levels determined at the time to as illustrated at G in FIG. 8. That is, the outputs a 0 and A 15 thru a 23 have their respective levels determined by the static inverter circuits IV 34 , IV 28 thru IV 33 and IV 35 thru IV 37 which receive the outputs of the latch circuits LT 21 , LT 15 thru LT 20 and LT 22 thru LT 24 .
  • the outputs a 8 thru a 14 are brought to levels corresponding respectively to the address signals A 8 thru A 14 at the time t 0 . Since these outputs a 8 thru a 14 are not supplied to the address input terminals of the 16-kilobit DRAM, they may well be maintained at the levels corresponding to the address signals A 8 thru A 16 .
  • the address signals A 8 thru A 14 are supplied to the outputs a 1 thru a 7 after altering the order thereof properly.
  • the address signal A 8 is not supplied to the output a 1 but is supplied to the output a 5 .
  • the address signal A 9 is not supplied to the output a 2 (not shown) but is supplied to the output a 9 .
  • Such alterations merely signify that the correspondence between logic addresses indicated by the address signals A 1 thru A 14 and the physical addresses of the DRAM is changed.
  • FIG. 9 shows a timing chart in the case where the 64-kilobit DRAM is accessed.
  • the timing signals ⁇ c1 , ⁇ c5 and ⁇ c6 are held at the low level as shown at E and H in FIG. 9, in response to the respective values "1" and "0" of the bit signals B 1 and B 2 (C and D in FIG. 9) and irrespective of the timing signal ⁇ c0 (B in FIG. 9).
  • the timing signals ⁇ c2 , ⁇ c3 and ⁇ c4 are brought to the high level in synchronism with the timing signal ⁇ c0 .
  • the outputs a 1 thru a 8 of the multiplexor MPX are brought to levels corresponding to the respective address signals A 1 thru A 8 in response to the timing signal ⁇ r0 rendered the high level at a time t 0 , and they are brought to levels corresponding to the respective address signals A 9 thru A 16 in response to the timing signals ⁇ c0 and ⁇ c2 thru ⁇ c4 rendered the high level at a time t 1 .
  • the outputs a 0 and a 17 thru a 23 are brought to levels corresponding respectively to the address signals A 0 and A 17 thru A 23 .
  • FIG. 10 shows a timing chart of the refresh operation.
  • timing signals ⁇ r0 and ⁇ c0 are held at the low level as illustrated at A and B in FIG. 10.
  • the clocked inverter circuits IV 1 thru IV 8 and IV 13 thru IV 27 which are coupled to the latch circuits in FIG. 4 are brought into the non-operating states.
  • the clocked inverter circuits IV 38 thru IV 47 in FIG. 4 are responsively brought into the operating states.
  • the outputs a 1 thru a 10 of the multiplexor MPX are brought to levels corresponding to the respective address signals RA 0 thru RA 9 delivered from the refresh counter RC in FIG. 1, as illustrated at D in FIG. 10.
  • the DRAM, not shown which is coupled to the external bus lines A-BUSE in FIG. 1 is a 16-kilobit DRAM requiring row address signals of 7 bits, it is operated by the outputs a 1 thru a 7 among the outputs a 1 thru a 10 .
  • the DRAM not shown, requires row address signals of 8, 9 or 10 bits, it is operated by the outputs a 1 thru a 8 , those a 1 thru a 9 or those a 1 thru a 10 .
  • FIG. 11 shows a timing chart in the case where the SRAM or ROM which is not of the address multiplexing system is accessed.
  • timing signals ⁇ c0 and ⁇ c1 thru ⁇ c6 are all maintained at the low level as illustrated at B and C in FIG. 11.
  • the outputs a 0 thru a 23 of the multiplexor MPX are brought to levels corresponding to the respective address signals A 0 thru A 23 in response to the timing signal ⁇ r0 (A in FIG. 11) rendered the high level at a time t 0 .
  • the SRAM or ROM is accessed.
  • FIG. 12 is a connection diagram of external memories.
  • each of the external memories DM 1 and DM 2 is constructed of a dynamic RAM of 64 kbits which has address terminals A 0 -A 7 , a data output terminal DOUT, a column address strobe terminal CAS, a reference potential terminal (ground terminal) V ss , a refresh control terminal RFSH, a data input terminal DIN, a write enable terminal WE, a row address strobe terminal RAS and a power source terminal V cc .
  • Each of the memories DM 1 and DM 2 is adapted to input/output data of one bit at a time.
  • a plurality of memories are required for such data.
  • an external address bus A-BUSE is coupled to the external address terminals AT in FIG. 1, and an external data bus D-BUSE is coupled to the external data terminals DT in FIG. 1.
  • a decoder DEC forms row address strobe signals RAS 1 and RAS 2 to be supplied to the respective memories DM 1 and DM 2 , on the basis of an address signal of 1 bit supplied through the external address bus A-BUSE and a row address strobe signal supplied through the terminal RAS in FIG. 1.
  • the address terminals A 0 -A 7 of the memories DM 1 and DM 2 are fed with common address signals through the external address bus A-BUSE.
  • the memory DM 1 is selected by the signal RAS 1 and the address signals applied to the address terminals A 0 -A 7
  • the memory DM 2 is similarly selected by the signal RAS 2 and the signals of the address terminals A 0 -A 7 .
  • the column address strobe terminals CAS, refresh control terminals RFSH and write enable terminals WE of the memories DM 1 and DM 2 are respectively connected in common to terminals CAS, RFSH and WR in FIG. 1.
  • the data output terminals DOUT of the memories DM 1 and DM 2 are connected in common to the input terminal of a bus driver TSC, and the data input terminals DIN are connected to the external data bus D-BUSE, along with the output terminal of the bus driver TSC.
  • the bus driver TSC is constructed of a tri-state circuit which, subject to the low level of a read control signal RD supplied thereto, produces at its output terminal an output signal of a level corresponding to an input signal supplied to its input terminal. If the signal RD is at its high level, the output of the bus driver TSC is brought into a high impedance state.
  • the refresh counter RC is built in the microprocessor as shown in FIG. 1, and when the refresh address of this refresh counter RC is to be provided externally, the signal RFSH indicative of the corresponding timing is output. Therefore, a complicated refresh control circuit for forming the refresh signal of the dynamic RAM need not be constructed by an external circuit.
  • the microprocessor of this embodiment includes therein the register for setting the address range of the dynamic RAM, and when any address of the dynamic RAM is to be accessed, the address is automatically multiplexed within the chip.
  • the dynamic RAM can be accessed as simply as the static RAM without disposing any external circuit.
  • the read and write controls of the dynamic RAM are executed in accordance with the read control signal RD and write control signal WR which are output from the microprocessor portion CPU.
  • the address range of the dynamic RAM can be set at will by setting proper addresses in the address setting registers AR 1 and AR 2 .
  • the above embodiment is generally used in such a way that the bits B 0 of the configuration registers CR 1 -CR 3 are reset to "0" in a reset state, thereby to first establish a ROM access state and execute a program in the ROM, whereupon the address setting registers AR 1 and AR 2 are previously set in conformity with the system arrangement. It is also possible, however, to alter the set values of the address setting registers AR 1 and AR 2 in the course of the program so as to change the address range of the dynamic RAM.
  • the respective address spaces which are set by the address setting registers AR 1 AR 2 may correspond to a plurality of sorts of memories.
  • the ROM and the static RAM which have the same addressing system can correspond within a single address space. In this case, a partial address space in the single address space is caused to correspond to the ROM, and another partial address space is caused to correspond to the static RAM.
  • the configuration registers CR 1 -CR 3 are furnished with the bits B 1 and B 2 indicating the capacities of the dynamic RAMs, so that a system can be constructed using the RAMs which have any desired capacities of 16 kbits-1 Mbits.
  • those bits of each of the configuration registers CR 1 -CR 3 which indicate the capacity of the dynamic RAM are not restricted to the 2 bits B 1 and B 2 as in the embodiment, but they may well be replaced with 1 bit or with 3 or more bits.
  • 2 bits may well be used instead of the 1 bit B 0 indicating the information as to whether or not the address range of the dynamic RAM is concerned, thereby making it possible to distinguish the address ranges of the ROM and the static RAM.
  • the configuration registers CR 1 -CR 3 may well be furnished with bits which bear information other than the foregoing (for example, a bit which indicates whether a corresponding address area is read-only or read/write, a bit which indicates whether a program or data is concerned, and a bit which indicates whether a system area or a user area is concerned).
  • the two address setting registers are disposed so as to make it possible to trisect the address space owned by the microprocessor.
  • the number of the registers is not restricted to 2, but 1 register or at least 3 registers can also be disposed.
  • FIG. 13 is a circuit diagram of an address multiplexor MPX and a part of a control signal generator CSG in another embodiment.
  • timing signals ⁇ r0 , ⁇ c0 and ⁇ ref in the control signal generator CSG are respectively the same as those of the preceding embodiment.
  • an inverter circuit IV 45 and an AND gate circuit G 1 constitute a decoder which forms an output signal of high level when bit signals B 1 and B 2 are "1" and "0" respectively, namely, when the bit signals B 1 and B 2 indicates a memory such as 64-kilobit memory of 1-bit format.
  • a timing signal ⁇ r1 to be output from an OR gate circuit G 2 is brought to the high level in synchronism with the timing signal ⁇ r0 if the bit signals B 1 and B 2 indicate the 64-kilobit memory, and it is maintained at the high level irrespective of the timing signal ⁇ r0 unless the bit signals B 1 and B 2 indicate the 64-kilobit memory.
  • a timing signal ⁇ r2 to be output from an OR gate circuit G 6 is brought to the high level in synchronism with the timing signal ⁇ r0 if the bit signals B 1 and B 2 are "0" and "1" respectively, namely, if they indicate a memory such as 256-kilobit memory of 1-bit format, and it is maintained at the high level irrespective of the timing signal ⁇ r0 if they are not.
  • a timing signal ⁇ r3 to be output from an OR gate circuit G 10 is brought to the high level in synchronism with the timing signal ⁇ r0 if the bit signals B 1 and B 2 are "1" and "1", namely, if they indicate a memory such as 1-megabit memory of 1-bit format, and it is maintained at the high level if they are not.
  • a timing signal ⁇ c1 to be output from an AND gate circuit G 4 is brought to the high level, only when the bit signals B 1 and B 2 indicate the 64-kilobit memory and besides the timing signal ⁇ c0 is brought to the high level.
  • a timing signal ⁇ c2 to be output from an AND gate circuit G 8 is brought to the high level, only when the bit signals B 1 and B 2 indicate the 256-kilobit memory and besides the timing signal ⁇ c0 is brought to the high level.
  • a timing signal ⁇ c3 is brought to the high level, only when the bit signals B 1 and B 2 indicate the 1-megabit memory and besides the timing signal ⁇ c0 is brought to the high level.
  • the multiplexor MPX is constructed of clocked inverter circuits IV 0 thru IV 6 , IV 24 thru IV 30 , IV 14 , IV 31 , IV 16 , IV 32 , IV 18 , and IV 33 and static inverter circuits IV 7 thru IV 13 , IV 15 , IV 17 , and IV 19 thru IV 23 , the input terminals of which receive the address signals A 0 thru A 23 at the address bus lines A-BUS in FIG. 1, and clocked inverter circuits IV 34 thru IV 43 , the input terminals of which receive the respective outputs RA 0 thru RA 9 of the refresh counter RC in FIG. 1.
  • the address signals A 0 thru A 6 are regarded as the row address signals, and those A 7 thru A 13 are regarded as the column address signals.
  • the outputs a 0 thru a 6 of the multiplexor MPX are supplied to the address terminals of the DRAM.
  • the outputs a 0 thru a 6 are rendered levels corresponding to the address signals A 0 thru A 6 when the timing signal ⁇ r0 is rendered the high level, because the inverter circuits IV 0 thru IV 6 are brought into their operating states in response to this high level, and they are rendered levels corresponding to the address signals A 7 thru A 13 when the timing signal ⁇ c0 is rendered the high level, because the inverter circuits IV 24 thru IV 30 are brought into their operating states in response to this high level.
  • the outputs a 7 thru a 23 of the multiplexor MPX are held at levels corresponding to the respective address signals A 7 thru A 23 .
  • the outputs a 7 thru a 13 have their respective levels determined by the static inverter circuits IV thru IV 13 .
  • the inverter circuits IV 14 , IV 16 etc are put in their operating states because the timing signals ⁇ r1 , ⁇ r2 etc, are maintained at the high level without regard to the timing signal ⁇ r0 . Therefore, the outputs a 14 , a 16 etc. are brought to levels corresponding to the address signals A 14 , A 16 etc.
  • the address signals A 0 thru A 6 and A 14 are regarded as the row address signals, and those A 7 thru A 13 and A 15 are regarded as the column address signals.
  • the address signals A 7 thru A 13 and A 15 are supplied to the outputs a 0 thru a 6 and a 14 at the timing of the timing signal ⁇ c0 . Therefore, the outputs a 0 thru a 6 and a 14 are fed to the address input terminals of the DRAM through the address buffer A-BFF in FIG. 1.
  • the address signals A 0 thru A 6 , A 14 and A 16 are regarded as the row address signals, and the address signals A 7 thru A 13 , A 15 and A 17 are regarded as the column address signals.
  • the address signals A 0 thru A 6 , A 15 and A 17 are supplied to the outputs a 0 thru a 6 , a 14 and a 16 at the timing of the timing signal ⁇ c0 . Therefore, the outputs a 0 thru a 6 , a 14 and a 16 are supplied to the address input terminals of the DRAM.
  • the address signals A 0 thru A 6 , A 14 , A 16 and A 18 are regarded as the row address signals, and those A 7 thru A 13 , A 15 , A 17 and A 19 are regarded as the column address signals.
  • the address signals A 7 thru A 13 , A 15 , A 17 and A 19 are supplied to the outputs a 0 thru a 6 , a 14 , a 16 and a 18 at the timing of the timing signal ⁇ c0 . Therefore, the outputs a 0 thru a 6 , a 14 , a 16 and a 18 are supplied to the address input/output terminals of the DRAM.
  • the timing signals ⁇ r0 and ⁇ c0 are brought to the low level and the refresh control signal ⁇ ref is brought to the high level as in the preceding embodiment.
  • the clocked inverter circuits IV 34 thru IV 43 in FIG. 13 are brought into their operating states, and the outputs RA 0 thru RA 9 of the refresh counter RC in FIG. 1 are supplied to the outputs a 0 thru a 6 , a 14 , a 16 and a 18 through these inverter circuits IV 34 thru IV 43 .
  • the timing signal ⁇ c0 in the circuit of FIG. 13 is maintained at the low level as in the preceding embodiment.
  • the timing signals ⁇ c1 thru ⁇ c3 are maintained at the low level in accordance with the timing signal ⁇ c0 .
  • the column selection circuits namely, the clocked inverter circuits IV 24 thru IV 30 and IV 31 thru IV 33 are put in their non-operating states.
  • the outputs a 0 thru a 23 are brought to levels corresponding to the address signals A 0 thru A 23 in synchronism with the timing signal ⁇ r0 .
  • the number of the clocked inverter circuits whose output terminals are connected in common with one another in order to form one output is reduced to 3.
  • a microprocessor is provided therein with a refresh counter which generates a refresh address, a control signal formation circuit which forms control signals necessary for accessing a dynamic RAM, such as a RAS signal and a CAS signal, and a register which designates either the access to the dynamic RAM or access to a static RAM (or ROM), an address outputting mode being alterable in accordance with the content of this register, so the function is achieved which makes it possible to access, not only the static RAM but also the dynamic RAM and perform refresh without disposing any external circuit, and which produces the effects that the design of a system employing the dynamic RAM is facilitated and that the packaging area of the system is reduced.
  • a refresh counter which generates a refresh address
  • a control signal formation circuit which forms control signals necessary for accessing a dynamic RAM, such as a RAS signal and a CAS signal
  • a register which designates either the access to the dynamic RAM or access to a static RAM (or ROM), an address outputting mode being alterable in accordance with the content of this register, so
  • a microprocessor is provided therein with a refresh counter which generates a refresh address, a control signal formation circuit which forms control signals necessary for accessing a dynamic RAM, such as a RAS signal and a CAS signal, and a register which designates either the access to the dynamic RAM or access to a static RAM (or ROM), an address outputting mode being alterable in accordance with the content of this register.
  • the microprocessor is furnished with registers that designate the address ranges and capacities of the dynamic RAMs to be used, in other words, the number of bits of address signals, so the function is achieved which makes it possible to change the capacities or number of the dynamic RAMs to be used freely to some extent, and which produces the effect that the versatility of the microprocessor is enhanced.
  • the address range of a dynamic RAM is made variable by a register, but it is also possible to replace the register with means to generate a fixed address and to fixedly divide an address space.
  • configuration registers CR 1 -CR 3 themselves may well be omitted so as to uniquely designate which memory an address range divided by the address setting registers AR 1 AR 2 belongs to, in accordance with the decision output of the decision circuit DCD and to operate the address multiplexor MPX is correspondence therewith.
  • the invention is made by the inventor has been principally described as to the application thereof to a microprocessor in the shape of one chip which forms the background field of utilization, the present invention is not restricted thereto but can be utilized also in case of constructing a multi-chip microprocessor.

Abstract

A microprocessor has a register in which attributive data corresponding to a memory to be coupled to the microprocessor is written, and a control circuit which controls address signals to be supplied to the memory in accordance with the attributive data. The attributive data is composed of range data for discriminating ranges of address data supplied to an address bus, system data indicative of addressing systems of the memories corresponding to the respective address ranges, and bit number data indicative of numbers of address bits of the memories. Thus, in a case where the memory to be accessed is of an address multiplexing system as in a dynamic RAM, the address data of the address bus is divided into row address data and column address data, which are then supplied to the memory in time division.

Description

This application is a .Iadd.continuation of application Ser. No. 08/071,235, filed on Jun. 4, 1993 now abandoned; which is a reissue of application Ser. No. 07/560,230, filed Jun. 25, 1990, now U.S. Pat. No. 5,021,951; which is a .Iaddend.continuation of application Ser. No. 442,304, filed on Nov. 28, 1989, .Iadd.now abandoned, .Iaddend.which is a continuation of application Ser. No. 240,602 filed Sept. 6, 1988, .Iadd.now abandoned, .Iaddend.which is a continuation of U.S. Ser. No. 799,795 filed Nov. 20, 1985.Iadd., now U.S. Pat. No. 4,792,891.Iaddend..
BACKGROUND OF THE INVENTION
This invention relates to data processing technology, and more particularly to technology which is especially effective when applied to a microprocessor.
A microcomputer system is constructed of a microprocessor, storage devices such as a ROM (read-only memory) and a RAM (random access memory), an input/output interface (I/O), etc. In this case;, the use of a dynamic RAM is better than the use of a static RAM because of the merit that the system can be arranged less expensively.
Since, however, the dynamic RAM requires an address multiplexing system and requires a refresh operation, the control thereof is more troublesome than those of the ROM and the static RAM. Therefore, any of prior-art microprocessors has been constructed so as to be capable of direct access to the ROM and the static RAM. When arranging the system to use a dynamic RAM, it has been necessary to dispose complicated external circuits including circuits for forming RAS (row address strobe) signal, CAS (column address strobe) signal and a signal RFSH, which indicates a refresh timing, which are required for operating the dynamic RAM on the basis of clock signals or control signals delivered from the microprocessor (refer to `Microcomputer` published by CQ Shuppan Kabushiki-Kaisha, No. 6, 1982, pp. 87-89).
In this manner, the use of the dynamic RAM for the prior-art microprocessor has led to the problems that the design of the system becomes difficult and that the packaging area of the system becomes large.
A certain prior-art microprocessor has a built-in refresh counter which generates the refresh address of the dynamic RAM. Even with such a microprocessor, the RAS signal and the CAS signal must be produced by the external circuits.
SUMMARY OF THE INVENTION
An object of this invention is to provide a microprocessor which facilitates the design of a system employing a dynamic RAM and which can reduce the packaging area of the system.
Another object of this invention is to provide a microprocessor of high versatility in which the capacity and number of dynamic RAMs to be used, the positions of dynamic RAM areas in an address space, and so forth can be freely changed.
The aforementioned and other objects and novel features of this invention will become apparent from the description of the specification and the accompanying drawings.
Typical aspects of performance of this invention will be summarized below.
A microprocessor comprises therein a refresh counter which generates a refresh address, a control signal forming circuit which forms control signals, such as RAS signal and CAS signal, required for accessing a dynamic RAM, and a register which designates either access to the dynamic RAM or access to a static RAM (or a ROM), an address outputting mode being alterable in accordance with the content of the register, whereby not only the static RAM but also the dynamic RAM can be accessed, and the latter can be refreshed without disposing any external circuit, to facilitate the design of a system and to reduce the packaging area of the system.
In addition, the above register comprises registers which designate the address ranges and capacities of the dynamic RAMs to be used, namely, the number of bits of address signals, thereby to provide a microprocessor of high versatility in which the capacities or number of the dynamic RAMs to be used can be changed freely to some extent.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram showing an embodiment of a microprocessor according to the present invention;
FIG. 2 is a memory map showing an example of the state of address spaces divided by address setting registers;
FIG. 3 is a timing chart showing the timings of address signals and control signals in the case of accessing a dynamic RAM;
FIG. 4 is a circuit diagram of an address multiplexor;
FIG. 5 is a circuit diagram of a control signal generator;
FIGS. 6 and 7 are circuit diagrams of an inverter circuit and a clocked inverter circuit respectively;
FIGS. 8, 9, 10 and 11 are timing charts of circuits in FIGS. 4 and 5;
FIG. 12 is a connection diagram of external memories; and
FIG. 13 is a circuit diagram of another embodiment.
PREFERRED EMBODIMENTS [Embodiment 1]
FIG. 1 is a circuit block diagram of one embodiment in the case of applying the present invention to a 16-bit microprocessor. In the figure, a portion enclosed with a chain line A is formed on a single semiconductor substrate such as single-crystal silicon by known semiconductor production technology.
In FIG. 1, shown by circuit symbol CPU is a microprocessor portion. Although this microprocessor portion CPU, the practicable arrangement of which is not directly pertinent to the present invention, is not illustrated in detail, it is constructed of for example execution unit EXEC which is composed of an arithmetic-logic unit, dedicated registers such as a program counter, a stack pointer, a status register, and general-purpose registers for use as work areas, and a controller CONT which is composed of an instruction register to which microprogram instructions read out from an external memory not shown are successively input. micro ROMs in which microinstructions corresponding to respective macroinstructions are stored, and so on.
The execution unit EXEC is operated in a proper sequence which is determined by control signals delivered from the controller CONT. Thus, desired data processing is executed. Coupled to the controller CONT are external terminals CT which are supplied with interrupt signals and reset signals.
In order to control the operating timings of the microprocessor portion CPU, an oscillator OSC and a clock pulse generator CPG are provided. The oscillator OSC has its oscillation frequency determined by a circuit element, such as quartz vibrator or ceramics vibrator not shown, which is coupled between external terminals XT1 and XT2. The clock pulse generator CPG receives the oscillation output of the oscillator OSC and properly divides its frequency, thereby to form a system clock φ.
In this embodiment on the same semiconductor substrate as that of the microprocessor portion CPU, there are disposed a refresh counter RC which generates a refresh address of a dynamic RAM, an address multiplexor MPX which selects either the address from the refresh counter RC or an address that is delivered from the execution unit EXEC to an address bus line A-BUS, and a control signal generator CSG which controls the operation of the address multiplexor MPX.
The refresh counter RC is operated by the operating clock signal φ of the system, and outputs a synchronizing signal RFSH indicative of the timing of refresh about once every 2 milliseconds. The refresh counter RC also forms address signals for accessing the respective memory rows of the dynamic RAM, within the cycle of the synchronizing signal RFSH. The synchronizing signal RFSH is also fed to the microprocessor portion CPU and the control signal generator CSG.
When the synchronizing signal RFSH has been generated, the microprocessor portion CPU is prohibited from accessing the address bus A-BUS Simultaneously therewith, switching control signals to be described in detail later are supplied from the control signal generator CSG to the address multiplexor MPX. In accordance with the switching control signals, the multiplexor MPX selects the refresh address supplied from the refresh counter RC, instead of the address signals on the address bus A-BUS. The address signals selected by the multiplexor MPX are output to an external address bus A-BUSE through an address buffer A-BFF.
Further, the synchronizing signal RFSH supplied from the refresh counter RC to the control signal generator CSG is externally fed as the signal RFSH indicative of the refresh timing.
According to this embodiment, though it is not especially restricted, a plurality of address spaces to correspond to a plurality of different types of memories and data indicating the attributes of the respective memories are set in the microprocessor in order to permit the memories to be simultaneously coupled to external address terminals AT.
Although not especially restricted, the embodiment is provided for discriminating the plurality of address spaces with two address setting registers AR1 and AR2, two comparators COMP1 and COMP2 which compare the contents of the address setting registers AR1 and AR2 with the address delivered from the microprocessor portion CP onto the address bus A-BUS and decide the relations of magnitudes thereof, respectively, and a decision circuit DCD which decides which address range the address signal on the address bus A-BUS falls within, by reference to the outputs of the two comparators COMP1 and COMP2. Each of the address setting registers AR1 AR2 has its operation controlled by the control signal delivered from the execution unit EXEC of the microprocessor portion CPU, and has address data written therein through a data bus D-BUS.
The data to be written into the address setting registers AR1 and AR2 is stored along with programs to be executed by the shown microprocessor, in an unshown ROM the address terminals of which are coupled to the external address bus lines A-BUSE and the data output terminals of which are coupled to external data bus D-BUSE.
The data is set in the address setting registers AR1 AR2 as follows by way of example.
Upon start of the execution of a program for the data setting, the data to be written into the register AR1 is read out from the unshown ROM and is once written into an unshown working resister within the execution unit EXEC through a data buffer D-BFF as well as the internal data bus lines D-BUS. Subsequently, the data of the working register is output to the internal data bus D-BUS, and the control signal for writing the data into the register AR1 is output from the execution unit EXEC. Thus, the data of the data bus line D-BUS is written into the register AR1. Also the register AR2 has the data written thereinto according to a similar operating sequence.
Although no special restriction is intended, the respective contents of the address setting registers AR1 AR2 can be read out through the data bus D-BUS.
The whole memory space can be divided in three in accordance with the data set in the two address setting registers AR1 and AR2. Although not especially restricted, L, the address data of the address setting register AR1 signifies the head address of the second address space among the first to third address spaces, and that of the address setting register AR2 signifies the head address of the third address space.
That is, the data of the register AR1 makes it possible to identify the boundary between the first address space and the second address space, and that of the register AR2 makes it possible to identify the boundary between the second address space and the third address space.
For example, if the address data items of the address setting registers AR1 and AR2 are "400000" and "B00000" in hexadecimal numbers respectively, the first address space is set to an address range from "000000" to "3FFFFF", and the second address space is set to an address range from "40000" to "AFFFFF" Likewise, the third address space is set to a range from "B00000" to "FFFFFF"
The ranges of the address data supplied from the CPU to the address bus lines A-BUS are decided by the comparators COMP1, COMP2 and the decision circuit DCD.
The comparator COMP1 compares the address data of the address bus lines A-BUS with the data set in the register AR1. This comparator COMP1 outputs "1" if the address data of the address bus lines A-BUS is greater than that of the register AR1, and it outputs "0" if not.
Likewise, the comparator COMP2 outputs "1" if the address data of the address bus lines A-BUS is greater than that of the register AR2, and it outputs "0" if not.
Thus, the combinations of the outputs of the comparators COMP1 and COMP2 are brought into one-to-one correspondence with the address spaces of the address data of the address bus lines A-BUS.
The decision circuit DCD is, in effect, constructed of a decoder which decodes the outputs of the comparators COMP1 and COMP2. On the basis of the outputs of the comparators COMP1 and COMP2, the decision circuit DCD provides three sorts of control signals which indicate the address spaces of the data of the address bus lines A-BUS. The output of the decision circuit DCD is used as the operation control signals of selecting circuits SEL1 and SEL2 to be described later.
In correspondence with the three address spaces or ranges divided by the address data set in the address setting registers AR1 AR2, there are disposed registers (hereinbelow, termed `configuration registers`) CR1 -CR3 each including stages B0 -B2 in which the data indicating the property of the memory corresponding to the address range is written. Similarly to the address setting registers AR1 AR2, the configuration registers CR1 to CR3 have the setting of data therein controlled by the CPU. That is, the data for the configuration registers CR1 to CR3 is supplied through the data bus D-BUS.
In each of these configuration registers CR1 -CR3, the bit B0 is used for data which corresponds to the addressing mode of the memory to be externally connected through the external bus lines A-BUSE and D-BUSE, and the bits B1 and B2 are used for data which corresponds to the storage capacity of the memory to be externally connected.
Although not especially restricted, the bit B0 is set at "1" for a memory of the address multiplexing system such as a dynamic RAM, in other words, for a memory to which two kinds of address data items such as a row-group address and a column-group address are to be supplied in time division, and it is set at "0" or a memory to which two kinds of address data items are to be simultaneously supplied, such as a ROM or a static RAM.
The two bits consisting of the bits B1 and B2 correspond to four sorts of storage capacities. By way of example, the combinations of the bits B1 and B2 ; "00", "01", "10" and "11" correspond respectively to the storage capacities of 16 kilobits, 64 kilobits, 256 kilobits and 1 megabit.
Now, by way of example, let's consider a case where the address setting registers AR1 and AR2 are respectively set at "400000" and "B00000" in hexadecimal numbers and where the bits B0 of the configuration registers CR1 -CR3 are respectively set at `0`, `1` and `0`. Here, the value `0` of the bit B0 signifies the address range of the ROM or the static RAM other than the dynamic RAM, and the value `1` of the bit B0 signifies the address range of the dynamic RAM, as described before. Thus, in a case where the contents of the address setting registers AR1 AR2 and the registers CR1 to CR3 are respectively set as stated above, the address range of addresses "000000" to "3FFFFF" as illustrated in FIG. 2 becomes the first address space or address region ASP1 directed to the static RAM or the ROM, the address range of addresses "400000" to "AFFFFF" becomes the second address space ASP2 directed to the dynamic RAM, and the address range of addresses "B00000" to "FFFFFF" becomes the third address space ASP3 directed to the ROM or the static RAM.
The information items of the bits B0 of the respective configuration registers CR1 -CR3 are passed through the selecting circuit SEL1 whose switching operation is effected with the decision output signal of the decision circuit DCD, whereby one of the information items is selectively supplied to the control signal generator CSG. More specifically, if the address delivered onto the address bus A-BUS lies between "000000" and "3FFFFF", the selecting circuit SEL1 which is controlled by the output of the decision circuit DCD at that time functions to supply the control signal generator CSG with the content of the bit B0 of the configuration register CR1 Meanwhile, if the address on the address bus lies between "400000" and "AFFFFF", the content of the bit B0 of the configuration register CR2 is supplied to the control signal generator CSG, and if the address on the address bus lines between "B00000" and "FFFFFF", the content of the configuration register CR3 is supplied to the same.
The decision circuit DCD, the configuration registers CR1 -CR3 and the selecting circuit SEL1 constitute address decision means.
When the information of the bit B0 supplied from the selecting circuit SEL1 is `0`, the control signal generator CSG forms control signals with which address data items A0 -A23 on the address bus A-BUS are passed through the address multiplexor MPX as they are so as to be supplied to the address buffer A-BFF, and it delivers the control signals to the address multiplexor MPX. On the other hand, when the information of the bit B0 supplied thereto is `1`, the control signal generator CSG causes a latch circuit (not shown) within the address multiplexor MPX to accept the signal of a part corresponding to upper bits (or lower bits) required for accessing the dynamic RAM, among the address data items delivered from the microprocessor portion CPU onto the address bus A-BUS, and it allows the signal of a part corresponding to the lower bits (or the upper bits) of the address, to pass through the address multiplexor MPX as it is, thereby to deliver this signal as a row address signal. Subsequently, the control signal generator CSG functions to send the upper bits (or lower bits) of the address already held in the latch circuit within the address multiplexor MPX, from the address multiplexor MPX to the address buffer A-BFF and to externally deliver them as a column address signal from the same address terminals as those of the row address signal.
Thus, when the address range of the dynamic RAM has been accessed, the upper bits and the lower bits of the address are delivered out individually, namely, by the address multiplexing system. Moreover, in the above case, when the row address signal is output from the address multiplexor MPX, a RAS signal (row address strobe signal) of low level is formed and delivered by the control signal generator CSG in synchronism with this row address signal as shown in FIG. 3, and when the column address signal is output from the address multiplexor MPX, a CAS signal (column address strobe signal) of low level is formed and delivered.
The dynamic RAM connected to the microprocessor of this embodiment is accessed in synchronism with the falling edges of the RAS signal and the CAS signal and by accepting the addresses delivered from the address buffer A-BFF at those times, whereby desired data can be read out.
The data bus D-BUS has the data buffer D-BFF connected thereto, the latter serving to input and output data between it and the unshown external memories through external data terminals DT as illustrated in FIG. 1.
In contrast, when an address signal outside the address range of the dynamic RAM has been output from the microprocessor portion CPU, the address signal passes through the address multiplexor MPX without any change and is delivered out as it is.
Further, the information items of the sets of the bits B1 and B2 in the configuration registers CR1 -CR3 pass through the selecting circuit SEL2 whose switching state is controlled by the output of the decision circuit DCD, whereby one of the sets is sent to the control signal generator CSC. When the bits B1 and B2 of any of the configuration registers CR1 -CR3 subject to the bit B0 being set at `1` are set at `0, 0` by way of example, they indicate that the capacity of the corresponding dynamic RAM is 16 kbits, as stated before. In addition, when they are `0, 1`, they indicate the capacity of 64 kbits; when they are `1, 0`, they indicate the capacity of 256 kbits: and when they are `1, 1`, they indicate the capacity of 1 Mbit.
When supplied with the information items of the bits B1 and B2 of any of the configuration registers CR1 -CR3, the control signal generator CSC operates subject to these bits being `0, 0`, to recognize 14 bits (for example, A1 -A14) in the signal on the address bus A-BUS as the formal address of the dynamic RAM and to latch half (A8 -A14) of the bits in the address multiplexor MPX and pass the remaining half (A1 -A7) therethrough without any change. Thereafter, the circuit CSG causes the address multiplexor MPX to deliver the half (A8 -A14) to the same external terminals
Subject to the bits B1 and B2 being `0, 1`, the control signal generator CSG operates to recognize 16 bits (for example. A1 -A16) in the signal on the address bus as the formal address and to latch half (A9 -A16) of the bits in the multiplexor MPX and pass the remaining half (A1 -A8) therethrough without any change. Subject to the bits B1 and B2 being `1, 0` or `1, 1`, the control signal generator CSG similarly operates to halve the signal of 18 bits or 20 bits and deliver it in two divided steps.
In the address signal A0 -A23 delivered from the microprocessor portion CPU the bits not used for the access to the dynamic RAM are once latched in the address multiplexor MPX and are successively delivered out while the lower bits and upper bits are sequentially output as stated above. An address decoder installed on a memory board, for example, forms a chip select signal on the basis of the delivered bits so as to select the dynamic RAM.
Further, in this embodiment, the signal which is supplied from the selecting circuit SEL1 to the control signal generator CSG and which indicates the information specifying whether or not the address range is of the dynamic RAM is delivered out as a signal DRAM. Owing to this signal DRAM, whether or not the microprocessor is accessing the dynamic RAM can be known. It is also possible, for example, to use this signal as the chip select signal of the dynamic RAM or to bring the ROM or the static RAM into an unselected state with this signal.
FIG. 4 shows a practicable circuit arrangement of the multiplexor MPX.
The multiplexor MPX is constructed of latch circuits LT1 thru LT24 the input terminals of which are coupled to corresponding address lines A1 thru A20, A0, and A21 thru A23 constituting the address bus and the data accepting timings of which are controlled by a timing signal φl, and inverter circuits IV1 thru IV47.
Among the inverter circuit IV1 thru IV47, those IV1 thru IV8, IV13 thru IV27, and IV38 thru IV47 are clocked inverter circuit the operations of which are respectively controlled by timing signals φr0, φc0 thru φc6, and φref.
Although not especially restricted, each of the clocked inverter circuits is constructed, as shown in FIG. 7, of P-channel output MOSFETS Q3 and Q4 which are serially connected between a power source terminal VDD and an output terminal OUT, and N-channel MOSFETs Q5 and Q6 which are serially connected between the output terminal OUT and the ground point of the circuit. The MOSFETs Q4 and Q5 have their gates coupled to an input terminal IN, the MOSFET Q6 has its gate coupled to a control line φ, and the MOSFET Q3 has its gate coupled to the control line φ through an inverter IV60.
When a control signal supplied to the control line φ (hereinbelow, written as `control signal φ`) is at a high level, the clocked inverter circuit of the above arrangement is responsively brought into an operating state and supplies the output terminal OUT with an output signal which is inverted in level with respect to an input signal fed to the input terminal IN. When the control signal φ is at a low level, the clocked inverter circuit is brought into a latch state. That is, the output of the clocked inverter circuit is held at a previous output level irrespective of the level of an input signal by a holding capacitance not shown, e.g., a stray capacitance coupled to the output terminal.
FIG. 6 shows a circuit example of the inverter circuit. In FIG. 4, the clocked inverter circuits IV5 thru IV8, IV14, IV16, IV18, and IV22 thru IV27 can be regarded as column selection circuits as will be understood from later description.
The clocked inverter circuits IV38 thru IV47 in FIG. 4 have their respective input terminals RA0 thru RA9 coupled to the output terminals of the refresh counter RC in FIG. 1.
The timing signals or control signals φl, φr0, φc0 thru φc6, and φref for controlling the operation of the multiplexor MPX are produced from the control signal generator CSG
FIG. 5 is a circuit diagram of Part of the control signal generator CSG.
The control signal φref which is supplied to the circuit in FIG. 5 is formed, for example, in such a way that the refresh control signal RFSH delivered from the refresh counter RC in FIG. 1 is inverted by an inverter circuit.
The timing signal φr0 is, in effect, regarded as an upper- (or lower-) bit select signal.
This timing signal φr0 is brought to the high level or "1" level in the first half of the cycle of the clock signal φ (hereinbelow, termed the first cycle) if the bit signal B0 delivered from the selecting circuit SEL1 in FIG. 1 is "1", in other words, if the bit B0 of the configuration register selected by the selecting circuit SEL1 indicates the address multiplexing system, and it is brought to the high level in the first cycle and the succeeding second cycle if the bit signal B0 is "0" The timing signal φr0 is responsively brought to the low level or "0" level if the refresh control signal RFSH is at the low level, that is, it indicates the refresh operation.
Though not shown, a circuit for forming such a timing signal φr0 is as follows by way of example.
The circuit is constructed of a pulse formation circuit which receives the output of the clock pulse generator CPG in FIG. 1, thereby to form a first clock signal having the aforementioned first cycle and a second clock signal having the aforementioned first and second cycles; a first gate circuit made up of an AND circuit which forms the logical product signal among the bit signal B0 delivered from the selection circuit SEL1, the first clock signal, and the control signal RFSH a second gate circuit made up of an AND circuit which forms the logical product signal among the inverted signal of the bit signal B0, the second clock signal, and the control signal RFSH; and a third gate circuit which forms the logical sum signal between the outputs of the first and second gate circuits. As is well known in the LSI technology, an AND circuit is composed of a NAND circuit and in inverter circuit, and an OR circuit is composed of a NOR circuit and an inverter circuit.
The timing signal φc0 is regarded as a lower (or upper) bit select signal.
This timing signal φc0 held at the high level in the aforementioned second cycle if the bit signal B0 output from the selection circuit SEL1 in FIG. 1 is "1", whereas it is held at the "0" level or low level in response to the value "0" of the bit signal B0, as well as the low level ("0" level) of the signal RFSH.
By way of example, the timing signal φc0 is generated by an AND circuit which forms the logical product signal among the first and second clock signals, the inverted signal of the bit signal B0, and the control signal RFSH.
Referring to FIG. 5, a gate circuit G11 made up of an AND circuit has its output brought to the "1" level or high level responsively when the bit signals B1 and B2 supplied from the selection circuit SEL2 in FIG. 1 are "0" and "0", in other words, when the combination of the bit signals B1 and B2 indicates a memory requiring address signals of 14 bits, such as a 16-kilobit memory of 1-bit format. A gate circuit G12 has its output brought to the "1" level responsively when the bit signals B1 and B2 are "1" and "0" respectively, in other words, when they indicate a memory requiring address signals of 16 bits, such as a 64-kilobit memory of 1-bit format. Likewise, the outputs of gate circuits G13 and G14 are brought to the "1" level when the bit signals B1 and B2 indicate a memory requiring address signals of 18 bits, such as a 256-kilobit memory of 1-bit format, and a memory such as a 1-megabit memory, respectively.
A gate circuit G1 made up of an AND circuit receives the output of the gate circuit G11 and the timing signal φc0. Therefore, when the bit signals B1 and B2 indicate the 16-kilobit memory, the output φc1 of this gate circuit G1 is brought to the "1" level in synchronism with the timing signal φc0.
A gate circuit G2 receives the output of an OR gate circuit G7 supplied with the output of the gate circuit G11 or G12, together with the timing signal φc0. Therefore, when the bit signals B1 and B2 indicate the 16-kilobit or 64-kilobit memory, the output φc2 of this gate circuit G2 is brought to the "1" level in synchronism with the timing signal φc0.
Likewise, the timing signal φc3 which is output from a gate circuit G3 is brought to the "1" level in synchronism with the timing signal φc0 when the combination of the bit signals B1 and B2 indicates the 16-kilobit, 64-kilobit or 256-kilobit memory, and the timing signal φc4 which is output from a gate circuit G4 is brought to the "1" level in synchronism with the timing signal φc0 when the bit signals B1 and B2 indicate the 64-kilobit, 256-kilobit or 1-megabit memory.
If the bit signals B1 and B2 indicate the 256-kilobit or 1-megabit memory, the timing signal φc5 is brought to the "1" level in synchronism with the timing signal φc0, and if the bit signals B1 and B2 indicate the 1-megabit memory, the timing signal φc6 is brought to the "1" level in synchronism with the timing signal φc0.
The address multiplexor MPX in FIG. 4 is operated in response to the timing signals which are output from the control signal generator CSG in FIG. 5.
FIG. 8 shows a timing chart in the case where the 16-kilobit DRAM is accessed. In the case of using the 16-kilobit DRAM, the outputs a1 thru a7 of the multiplexor MPX are supplied to the address terminals of such a DRAM through the address buffer A-BFF and the external bus lines A-BUSE in FIG. 1. Now, the circuit operations will be described by utilizing the timing chart of FIG. 8.
The timing signal φl for the latch circuits LT1 thru LT24 is brought to the high level in synchronism with the timing at which the address signals are supplied to the address bus lines A-BUS. The latch circuits LT1 thru LT24 accept the address signals of the address bus lines A-BUS in response to the timing signal φl.
As illustrated at A in FIG. 8, the timing signal φr0 is held at the high level for a period from a time t0 to a time t1 in accordance with the fact that the bit signal B0 supplied to the control signal generator CSG in FIG. 1 is "1".
The clocked inverter circuits IV1 thru IV4 and IV19 thru IV21 in FIG. 4 are brought into their operating states in response to the timing signal φr0 rendered the high level. Thus, as illustrated at F in FIG. 8, the outputs a1 thru a4 and a5 thru a7 of the multiplexor MPX are respectively brought to levels corresponding to the address signals A1 thru A7 of the address bus lines A-BUS.
As illustrated at B in Fi. 8, the timing signal φc0 is brought to the high level in synchronism with the timing at which the timing signal φr0 is rendered the low level.
The timing signals φcl thru φc3 are brought to the high level in synchronism with the timing signal φc0 as illustrated at D in FIG. 8 because the bit signals B1 and B2 supplied to the control signal generator CSG in FIG. 1 are "0" and "0" indicative of the 16-kilobit memory. The remaining timing signals φc4 thru φc6 are held at the low level irrespective of the timing signal φc0 as illustrated at E in FIG. 8.
The clocked inverter circuits IV5 thru IV8 in FIG. 4 are brought into their operating states in response to the timing signal φc0 rendered the high level, and those IV14, IV16 and IV18 are brought into their operating states in response to the respective timing signals φc1, φc2 and φc3 rendered the high level.
Therefore, the respective levels of the outputs a1 thru a4 of the multiplexor MPX are determined by the inverter circuits IV5 thru IV8. Similarly, the respective levels of the outputs a5 thru a7 are determined by the inverter circuits IV14, IV16 and IV18.
The inputs of the inverter circuits IV5 thru IV8, the input of the inverter circuit IV14, and the inputs of the inverter circuits IV16 and IV18 are respectively coupled to the latch circuits LT5 thru LT8, LT9, and LT10 and LT11. The outputs a1 thru a4 and a5 thru a7 of the multiplexor MPX are therefore brought to levels corresponding to the address signals A11 thru A14, A8, A9 and A10 respectively as illustrated at F in FIG. 8, in response to the timing signals φc0 thru φc3 rendered the high level.
As illustrated at A in FIG. 8, the timing signal φr0 for the clocked inverter circuits IV1 thru IV4 and IV19 thru IV21 is brought to the low level in synchronism with the timing at which the clocked inverter circuits IV5 thru IV8, IV14, IV16 and IV18 are operated. Therefore, the inverter circuits IV1 thru IV4 and IV19 thru IV21 do not affect the output levels of the inverter circuits IV5 thru IV8, IV14, IV16 and IV18.
Owing to the above operations, the outputs a1 thru a7 determined at the time t0 are set as the row address signals for the 16-kilobit DRAM, and the outputs a1 thru a7 determined at the time t1 are set as the column address signals.
The outputs a1 thru a7 are maintained at the previous levels by means of holding capacitances such as stray capacitances existent in the respective output lines even when the timing signals φc0 thru φc3 are returned from the high level to the low level thereby to bring the clocked inverter circuits IV5 etc, into their nonoperating states. These outputs a1 thru a7 are updated in response to the timing signal φr0 rendered the high level again.
The outputs a0 and A15 thru a23 which need not be address-multiplexed have their respective levels determined at the time to as illustrated at G in FIG. 8. That is, the outputs a0 and A15 thru a23 have their respective levels determined by the static inverter circuits IV34, IV28 thru IV33 and IV35 thru IV37 which receive the outputs of the latch circuits LT21, LT15 thru LT20 and LT22 thru LT24.
Though not especially restricted, the outputs a8 thru a14 are brought to levels corresponding respectively to the address signals A8 thru A14 at the time t0. Since these outputs a8 thru a14 are not supplied to the address input terminals of the 16-kilobit DRAM, they may well be maintained at the levels corresponding to the address signals A8 thru A16.
In case of the arrangement of FIG. 4, to the end of simplifying the circuit arrangement, the address signals A8 thru A14 are supplied to the outputs a1 thru a7 after altering the order thereof properly. For example, the address signal A8 is not supplied to the output a1 but is supplied to the output a5. The address signal A9 is not supplied to the output a2 (not shown) but is supplied to the output a9. Such alterations, however, merely signify that the correspondence between logic addresses indicated by the address signals A1 thru A14 and the physical addresses of the DRAM is changed.
FIG. 9 shows a timing chart in the case where the 64-kilobit DRAM is accessed.
In this case, the timing signals φc1, φc5 and φc6 are held at the low level as shown at E and H in FIG. 9, in response to the respective values "1" and "0" of the bit signals B1 and B2 (C and D in FIG. 9) and irrespective of the timing signal φc0 (B in FIG. 9). As shown at F and G in FIG. 9, the timing signals φc2, φc3 and φc4 are brought to the high level in synchronism with the timing signal φc0.
As illustrated at I in FIG. 9, the outputs a1 thru a8 of the multiplexor MPX are brought to levels corresponding to the respective address signals A1 thru A8 in response to the timing signal φr0 rendered the high level at a time t0, and they are brought to levels corresponding to the respective address signals A9 thru A16 in response to the timing signals φc0 and φc2 thru φc4 rendered the high level at a time t1.
As illustrated at J in FIG. 9, the outputs a0 and a17 thru a23 are brought to levels corresponding respectively to the address signals A0 and A17 thru A23.
FIG. 10 shows a timing chart of the refresh operation.
In this case, the timing signals φr0 and φc0 are held at the low level as illustrated at A and B in FIG. 10. The clocked inverter circuits IV1 thru IV8 and IV13 thru IV27 which are coupled to the latch circuits in FIG. 4 are brought into the non-operating states.
When the refresh control signal φref is rendered the high level at a time to as shown at C in FIG. 10, the clocked inverter circuits IV38 thru IV47 in FIG. 4 are responsively brought into the operating states. As a result, the outputs a1 thru a10 of the multiplexor MPX are brought to levels corresponding to the respective address signals RA0 thru RA9 delivered from the refresh counter RC in FIG. 1, as illustrated at D in FIG. 10. In a case where the DRAM, not shown, which is coupled to the external bus lines A-BUSE in FIG. 1 is a 16-kilobit DRAM requiring row address signals of 7 bits, it is operated by the outputs a1 thru a7 among the outputs a1 thru a10. Likewise, in a case where the DRAM, not shown, requires row address signals of 8, 9 or 10 bits, it is operated by the outputs a1 thru a8, those a1 thru a9 or those a1 thru a10.
FIG. 11 shows a timing chart in the case where the SRAM or ROM which is not of the address multiplexing system is accessed.
In this case, the timing signals φc0 and φc1 thru φc6 are all maintained at the low level as illustrated at B and C in FIG. 11.
As illustrated at D in FIG. 11, the outputs a0 thru a23 of the multiplexor MPX are brought to levels corresponding to the respective address signals A0 thru A23 in response to the timing signal φr0 (A in FIG. 11) rendered the high level at a time t0. Thus, the SRAM or ROM is accessed.
FIG. 12 is a connection diagram of external memories. Though not especially restricted, each of the external memories DM1 and DM2 is constructed of a dynamic RAM of 64 kbits which has address terminals A0 -A7, a data output terminal DOUT, a column address strobe terminal CAS, a reference potential terminal (ground terminal) Vss, a refresh control terminal RFSH, a data input terminal DIN, a write enable terminal WE, a row address strobe terminal RAS and a power source terminal Vcc. Each of the memories DM1 and DM2 is adapted to input/output data of one bit at a time. Herein, when it is necessary to input/output data of a plurality of bits at the same time, a plurality of memories are required for such data.
Referring to the figure, an external address bus A-BUSE is coupled to the external address terminals AT in FIG. 1, and an external data bus D-BUSE is coupled to the external data terminals DT in FIG. 1.
A decoder DEC forms row address strobe signals RAS1 and RAS2 to be supplied to the respective memories DM1 and DM2, on the basis of an address signal of 1 bit supplied through the external address bus A-BUSE and a row address strobe signal supplied through the terminal RAS in FIG. 1.
The address terminals A0 -A7 of the memories DM1 and DM2 are fed with common address signals through the external address bus A-BUSE.
Thus, the memory DM1 is selected by the signal RAS1 and the address signals applied to the address terminals A0 -A7, while the memory DM2 is similarly selected by the signal RAS2 and the signals of the address terminals A0 -A7.
The column address strobe terminals CAS, refresh control terminals RFSH and write enable terminals WE of the memories DM1 and DM2 are respectively connected in common to terminals CAS, RFSH and WR in FIG. 1.
The data output terminals DOUT of the memories DM1 and DM2 are connected in common to the input terminal of a bus driver TSC, and the data input terminals DIN are connected to the external data bus D-BUSE, along with the output terminal of the bus driver TSC.
The bus driver TSC is constructed of a tri-state circuit which, subject to the low level of a read control signal RD supplied thereto, produces at its output terminal an output signal of a level corresponding to an input signal supplied to its input terminal. If the signal RD is at its high level, the output of the bus driver TSC is brought into a high impedance state.
According to this embodiment, the refresh counter RC is built in the microprocessor as shown in FIG. 1, and when the refresh address of this refresh counter RC is to be provided externally, the signal RFSH indicative of the corresponding timing is output. Therefore, a complicated refresh control circuit for forming the refresh signal of the dynamic RAM need not be constructed by an external circuit.
Besides, the microprocessor of this embodiment includes therein the register for setting the address range of the dynamic RAM, and when any address of the dynamic RAM is to be accessed, the address is automatically multiplexed within the chip.
Therefore, even in case of constructing a system in which the static RAM and the dynamic RAM coexist, the dynamic RAM can be accessed as simply as the static RAM without disposing any external circuit.
In that case, the read and write controls of the dynamic RAM are executed in accordance with the read control signal RD and write control signal WR which are output from the microprocessor portion CPU.
Moreover, with this embodiment, the address range of the dynamic RAM can be set at will by setting proper addresses in the address setting registers AR1 and AR2.
The above embodiment is generally used in such a way that the bits B0 of the configuration registers CR1 -CR3 are reset to "0" in a reset state, thereby to first establish a ROM access state and execute a program in the ROM, whereupon the address setting registers AR1 and AR2 are previously set in conformity with the system arrangement. It is also possible, however, to alter the set values of the address setting registers AR1 and AR2 in the course of the program so as to change the address range of the dynamic RAM.
Thus, it becomes possible to construct, for example, a system in which the address area of the ROM and that of the dynamic RAM overlap, the overlap area being used as the ROM area or the RAM area as is necessary. In addition, the respective address spaces which are set by the address setting registers AR1 AR2 may correspond to a plurality of sorts of memories. By way of example, the ROM and the static RAM which have the same addressing system can correspond within a single address space. In this case, a partial address space in the single address space is caused to correspond to the ROM, and another partial address space is caused to correspond to the static RAM.
Further, in the embodiment, the configuration registers CR1 -CR3 are furnished with the bits B1 and B2 indicating the capacities of the dynamic RAMs, so that a system can be constructed using the RAMs which have any desired capacities of 16 kbits-1 Mbits. In this regard, those bits of each of the configuration registers CR1 -CR3 which indicate the capacity of the dynamic RAM are not restricted to the 2 bits B1 and B2 as in the embodiment, but they may well be replaced with 1 bit or with 3 or more bits.
Likewise, 2 bits may well be used instead of the 1 bit B0 indicating the information as to whether or not the address range of the dynamic RAM is concerned, thereby making it possible to distinguish the address ranges of the ROM and the static RAM. The configuration registers CR1 -CR3 may well be furnished with bits which bear information other than the foregoing (for example, a bit which indicates whether a corresponding address area is read-only or read/write, a bit which indicates whether a program or data is concerned, and a bit which indicates whether a system area or a user area is concerned).
In the embodiment, the two address setting registers are disposed so as to make it possible to trisect the address space owned by the microprocessor. However, the number of the registers is not restricted to 2, but 1 register or at least 3 registers can also be disposed.
While the embodiment has been explained as to the application of this invention to the 16-bit microprocessor, the invention is also applicable to an 8-bit microprocessor.
[Embodiment 2]
FIG. 13 is a circuit diagram of an address multiplexor MPX and a part of a control signal generator CSG in another embodiment.
In this embodiment, timing signals φr0, φc0 and φref in the control signal generator CSG are respectively the same as those of the preceding embodiment.
In the control signal generator CSG, an inverter circuit IV45 and an AND gate circuit G1 constitute a decoder which forms an output signal of high level when bit signals B1 and B2 are "1" and "0" respectively, namely, when the bit signals B1 and B2 indicates a memory such as 64-kilobit memory of 1-bit format.
A timing signal φr1 to be output from an OR gate circuit G2 is brought to the high level in synchronism with the timing signal φr0 if the bit signals B1 and B2 indicate the 64-kilobit memory, and it is maintained at the high level irrespective of the timing signal φr0 unless the bit signals B1 and B2 indicate the 64-kilobit memory.
A timing signal φr2 to be output from an OR gate circuit G6 is brought to the high level in synchronism with the timing signal φr0 if the bit signals B1 and B2 are "0" and "1" respectively, namely, if they indicate a memory such as 256-kilobit memory of 1-bit format, and it is maintained at the high level irrespective of the timing signal φr0 if they are not.
Likewise, a timing signal φr3 to be output from an OR gate circuit G10 is brought to the high level in synchronism with the timing signal φr0 if the bit signals B1 and B2 are "1" and "1", namely, if they indicate a memory such as 1-megabit memory of 1-bit format, and it is maintained at the high level if they are not.
A timing signal φc1 to be output from an AND gate circuit G4 is brought to the high level, only when the bit signals B1 and B2 indicate the 64-kilobit memory and besides the timing signal φc0 is brought to the high level.
Likewise, a timing signal φc2 to be output from an AND gate circuit G8 is brought to the high level, only when the bit signals B1 and B2 indicate the 256-kilobit memory and besides the timing signal φc0 is brought to the high level. Further, a timing signal φc3 is brought to the high level, only when the bit signals B1 and B2 indicate the 1-megabit memory and besides the timing signal φc0 is brought to the high level.
The multiplexor MPX is constructed of clocked inverter circuits IV0 thru IV6, IV24 thru IV30, IV14, IV31, IV16, IV32, IV18, and IV33 and static inverter circuits IV7 thru IV13, IV15, IV17, and IV19 thru IV23, the input terminals of which receive the address signals A0 thru A23 at the address bus lines A-BUS in FIG. 1, and clocked inverter circuits IV34 thru IV43, the input terminals of which receive the respective outputs RA0 thru RA9 of the refresh counter RC in FIG. 1.
In accordance with this embodiment, in case of using a DRAM which requires 7-bit row address signals and 7-bit column address signals, the address signals A0 thru A6 are regarded as the row address signals, and those A7 thru A13 are regarded as the column address signals. In this case, the outputs a0 thru a6 of the multiplexor MPX are supplied to the address terminals of the DRAM.
The outputs a0 thru a6 are rendered levels corresponding to the address signals A0 thru A6 when the timing signal φr0 is rendered the high level, because the inverter circuits IV0 thru IV6 are brought into their operating states in response to this high level, and they are rendered levels corresponding to the address signals A7 thru A13 when the timing signal φc0 is rendered the high level, because the inverter circuits IV24 thru IV30 are brought into their operating states in response to this high level. At this time, the outputs a7 thru a23 of the multiplexor MPX are held at levels corresponding to the respective address signals A7 thru A23. By way of example, the outputs a7 thru a13 have their respective levels determined by the static inverter circuits IV thru IV13. The inverter circuits IV14, IV16 etc, are put in their operating states because the timing signals φr1, φr2 etc, are maintained at the high level without regard to the timing signal φr0. Therefore, the outputs a14, a16 etc. are brought to levels corresponding to the address signals A14, A16 etc.
In case of using a DRAM which requires 8-bit row address signals and 8-bit column address signals, the address signals A0 thru A6 and A14 are regarded as the row address signals, and those A7 thru A13 and A15 are regarded as the column address signals. The address signals A7 thru A13 and A15 are supplied to the outputs a0 thru a6 and a14 at the timing of the timing signal φc0. Therefore, the outputs a0 thru a6 and a14 are fed to the address input terminals of the DRAM through the address buffer A-BFF in FIG. 1.
In case of using a DRAM which requires 9-bit row address signals and 9-bit column address signals, the address signals A0 thru A6, A14 and A16 are regarded as the row address signals, and the address signals A7 thru A13, A15 and A17 are regarded as the column address signals. The address signals A0 thru A6, A15 and A17 are supplied to the outputs a0 thru a6, a14 and a16 at the timing of the timing signal φc0. Therefore, the outputs a0 thru a6, a14 and a16 are supplied to the address input terminals of the DRAM.
In case of using a DRAM which requires 10-bit row L address signals and 10-bit column address signals, the address signals A0 thru A6, A14, A16 and A18 are regarded as the row address signals, and those A7 thru A13, A15, A17 and A19 are regarded as the column address signals. The address signals A7 thru A13, A15, A17 and A19 are supplied to the outputs a0 thru a6, a14, a16 and a18 at the timing of the timing signal φc0. Therefore, the outputs a0 thru a6, a14, a16 and a18 are supplied to the address input/output terminals of the DRAM.
At the timing of a refresh operation, the timing signals φr0 and φc0 are brought to the low level and the refresh control signal φref is brought to the high level as in the preceding embodiment. In response to them, the clocked inverter circuits IV34 thru IV43 in FIG. 13 are brought into their operating states, and the outputs RA0 thru RA9 of the refresh counter RC in FIG. 1 are supplied to the outputs a0 thru a6, a14, a16 and a18 through these inverter circuits IV34 thru IV43.
When an SRAM or ROM is to be accessed, the timing signal φc0 in the circuit of FIG. 13 is maintained at the low level as in the preceding embodiment. The timing signals φc1 thru φc3 are maintained at the low level in accordance with the timing signal φc0. In response to them, the column selection circuits, namely, the clocked inverter circuits IV24 thru IV30 and IV31 thru IV33 are put in their non-operating states. The outputs a0 thru a23 are brought to levels corresponding to the address signals A0 thru A23 in synchronism with the timing signal φr0.
With respect to the multiplexor of the arrangement in FIG. 3, the number of the clocked inverter circuits whose output terminals are connected in common with one another in order to form one output is reduced to 3.
According to this invention, the following effects can be attained:
(1) A microprocessor is provided therein with a refresh counter which generates a refresh address, a control signal formation circuit which forms control signals necessary for accessing a dynamic RAM, such as a RAS signal and a CAS signal, and a register which designates either the access to the dynamic RAM or access to a static RAM (or ROM), an address outputting mode being alterable in accordance with the content of this register, so the function is achieved which makes it possible to access, not only the static RAM but also the dynamic RAM and perform refresh without disposing any external circuit, and which produces the effects that the design of a system employing the dynamic RAM is facilitated and that the packaging area of the system is reduced.
(2) A microprocessor is provided therein with a refresh counter which generates a refresh address, a control signal formation circuit which forms control signals necessary for accessing a dynamic RAM, such as a RAS signal and a CAS signal, and a register which designates either the access to the dynamic RAM or access to a static RAM (or ROM), an address outputting mode being alterable in accordance with the content of this register. The microprocessor is furnished with registers that designate the address ranges and capacities of the dynamic RAMs to be used, in other words, the number of bits of address signals, so the function is achieved which makes it possible to change the capacities or number of the dynamic RAMs to be used freely to some extent, and which produces the effect that the versatility of the microprocessor is enhanced.
While, in the above, the invention made by the inventor has been concretely described in conjunction with embodiments, the present invention is not restricted to the foregoing embodiments but it can be variously modified within a scope not departing from the purpose thereof. For example, in the embodiments, the address range of a dynamic RAM is made variable by a register, but it is also possible to replace the register with means to generate a fixed address and to fixedly divide an address space.
Further, the configuration registers CR1 -CR3 themselves may well be omitted so as to uniquely designate which memory an address range divided by the address setting registers AR1 AR2 belongs to, in accordance with the decision output of the decision circuit DCD and to operate the address multiplexor MPX is correspondence therewith.
While, in the above, the invention is made by the inventor has been principally described as to the application thereof to a microprocessor in the shape of one chip which forms the background field of utilization, the present invention is not restricted thereto but can be utilized also in case of constructing a multi-chip microprocessor.

Claims (23)

I claim:
1. A .[.microprocessor.]. .Iadd.processor .Iaddend.formed on a single semiconductor substrate to be externally coupled to an external memory device, said .[.microprocessor.]. .Iadd.processor .Iaddend.comprising:
.[.a CPU;.].
an address bus .[.coupled to said CPU.]. to which an address signal including a plurality of bits is applied, said address signal defining an address in said external memory device;
a data bus .[.coupled to said CPU for inputting and outputting.]. .Iadd.to which .Iaddend.data .Iadd.is applied.Iaddend.;
.[.external data terminals coupled to said data bus;
external address terminals.]. .Iadd.an address switching device .Iaddend.coupled to said address bus .[.via address switching means.].;
.[.first register means for storing address data identifying a boundary between a first address space and a second address space of said external memory device to be coupled to said external data terminals and said external address terminals of said microprocessor, wherein said external memory device includes a first memory having said first address space defining a range of addresses assigned thereto and a second memory having said second address and defining a range of addresses assigned thereto;.].
.[.second.]. .Iadd.a .Iaddend.register.Iadd., coupled to said data bus, .Iaddend..[.means.]. for storing attributive data .[.including first means for storing attributive data.]. corresponding to an attribute of said .[.first memory.]. .Iadd.external memory device, said attributive data being stored in said register via said data bus; .Iaddend.and
.[.second means for storing attributive data corresponding to an attribute of said second memory;
comparator means coupled to said first register means and said address bus for comparing an address signal of a plurality of bits on said address bus to said address data stored in said first register and for outputting a signal indicating whether said address signal on said address bus designates an address within the first address space;
selecting means coupled to said comparator means and said second register means and responsive to an output of said comparator means for selecting either said attributive data stored in said first means or said attributive data stored in said second means of said second register means and outputting said selected attributive data; and.].
.[.control means.]. .Iadd.a controller, .Iaddend.coupled to .[.said selecting means and.]. said address switching .[.means and responsive.]. .Iadd.device, for controlling, in response .Iaddend.to said .[.selected.]. attributive data.Iadd., .Iaddend..[.for controlling.]. said address switching .[.means so.]. .Iadd.device such .Iaddend.that said address switching .[.mean.]. .Iadd.device .Iaddend.delivers said address signal on said address bus .[.to said external address terminals.]. according to an address multiplexing system.Iadd., wherein .Iaddend..[.according to which.]. a first part of said plurality of bits of said address signal and a second part of said plurality of bits of said address signal are delivered to said .[.external address terminals.]. .Iadd.external memory device.Iaddend., individually.[., when said selected attributive data indicates that said external memory device should be addressed according to said address multiplexing system.].. .[.2. A microprocessor according to claim 1, wherein said first register means is coupled to said data bus..]..[.3. A microprocessor according to claim 2, wherein said second
register means is coupled to said data bus..].4. A .[.microprocessor.]. .Iadd.processor .Iaddend.according to claim 1, wherein said address switching .[.means.]. .Iadd.device .Iaddend.includes .[.means for latching.]. .Iadd.a latch which latches .Iaddend.one of said first and second parts of said plurality .Iadd.of .Iaddend.bits of said address
signal on said address bus. 5. A .[.microprocessor.]. .Iadd.processor .Iaddend.according to claim 1, wherein said first and second parts of said plurality of bits of said address signal corresponds to first and second halves of said plurality of bits of said address signal, and wherein said first and second halves of said plurality of bits of said address signal are both delivered to same terminals in .[.said.]. external address terminals .[.when said selected attributive data indicates that said external memory device should be addressed according to the address
multiplexing system.]. .Iadd.coupled to said address bus.Iaddend.. 6. A .[.microprocessor.]. .Iadd.processor .Iaddend.according to claim 1, wherein said address .[.switching means allows said address signals to pass therethrough to be supplied to said address bus at said external address terminals when said selected attributive data indicates that said external memory device is not to be addressed according to said address multiplexing system.]. .Iadd.bus is coupled to a CPU and said data bus is coupled to said CPU and wherein said CPU is formed on said single
semiconductor substrate.Iaddend.. 7. A .[.microprocessor.]. .Iadd.processor .Iaddend.according to claim 1, further comprising:
.Iadd.external data terminals; and .Iaddend.
.Iadd.a.Iaddend. data buffer coupled between said data bus and said
external data terminals. 8. A .[.microcomputer.]. .Iadd.processor .Iaddend.according to claim 1, further comprising:
a refresh .[.address formation means coupled to said address switching means.]. .Iadd.circuit .Iaddend.for providing .[.refresh address data and.]. a refresh timing signal for .[.the.]. .Iadd.said .Iaddend.external memory device .[.which is to be addressed according to said address multiplexing system;
wherein said control means controls said address witching means in response to said refresh timing signal so that said address switching means provides said refresh address data to said external address terminal.]..
A .[.microcomputer.]. .Iadd.processor .Iaddend.according to claim 1, wherein said first and second parts of said plurality of bits of said address signal correspond to row and column address signals of said external memory device, respectively, wherein said .[.control means.]. .Iadd.controller .Iaddend.includes .[.means for providing.]. .Iadd.a circuit which provides .Iaddend.a row address strobe signal and a column address strobe signal, said row address strobe signal being provided in synchronism with an output of said row address signal, said column address strobe signal being provided in synchronism with an output of said column address signal, .Iadd.and .Iaddend.wherein said .[.microprocessor.]. .Iadd.processor .Iaddend.further comprises:
first and second terminals at which said row and .[.second.]. .Iadd.column
.Iaddend.address strobe signals are received, respectively. 10. A .[.microcomputer.]. .Iadd.processor .Iaddend.according to claim 1, wherein said attributive data stored in said .[.first and second means each.]. .Iadd.register .Iaddend.includes information indicating a memory capacity of .[.the corresponding memory in the.]. .Iadd.said .Iaddend.external memory device, and wherein said .[.control means.]. .Iadd.controller .Iaddend.controls said address switching .[.means.]. .Iadd.device .Iaddend.in response to the information regarding the memory capacity in the .[.selected.]. attributive data .Iadd.such that a bit number of respective first and second parts of said address signal to be applied to
said external memory device is based on said information.Iaddend.. 11. A microcomputer system comprising:
an external memory device including at least one dynamic RAM of a first memory part and a second memory part other than said dynamic RAM, said external memory device having a first address space defining a range of addresses assigned to said at least one dynamic RAM of said first memory part and a second address space defining a range of addresses assigned to said second memory part; and
a microprocessor coupled to said external memory device for accessing said external memory device said microprocessor including.Iadd.: .Iaddend.
a CPU coupled to an address bus and to a data bus,
address switching means coupled between said address bus and a plurality of external address terminals for switching said address bus between said plurality of external address terminals,
first register means for storing address data identifying a boundary between said first and second address space,
second register means for storing addressing system data including first means for storing addressing system data of said first memory part and second means for storing addressing system data of said second memory part,
comparator means coupled to said address bus and said first register means and responsive to an address signal of a plurality of bits supplied from said CPU to said address bus for comparing said address signal with said address data stored in said first register means and for outputting a signal indicating whether said address signal designates an address within said first address space of said first memory part,
selecting means coupled to said comparator means and said second register .Iadd.means .Iaddend.and responsive to an output of said comparator means for selecting addressing system data of said first memory part when said output of said comparator means indicates that said address signal designates an address within said first address space of said first memory part and control means.Iadd., .Iaddend.coupled to said selecting means and said address switching means.Iadd., .Iaddend..[.and responsive.]. .Iadd.for controlling, in response .Iaddend.to said selected .[.address.]. .Iadd.addressing .Iaddend.system data.Iadd., .Iaddend..[.for controlling.]. said address switching means .[.to deliver.]. .Iadd.such that said address switching means delivers .Iaddend.said address signal .[.to said external address terminals.]. .Iadd.on said address bus .Iaddend.according to an address multiplexing system.Iadd., wherein .Iaddend..[.according to which.]. a first part of said plurality of bits of said address signal and a second part of said plurality of bits of said address signal are delivered to said external address terminals,
individually. 12. A microcomputer system according to claim 11, wherein
said first register means has inputs coupled to said data bus. 13. A microcomputer system according to claim 11, wherein said second register
means has inputs coupled to said data bus. 14. A microcomputer system according to claim 11, wherein said second memory part includes a static
type RAM. 15. A microcomputer system according to claim 11, wherein said
second memory part includes a ROM. 16. A microcomputer system according to claim 11, further comprising:
a refresh address formation means coupled to said address switching means for forming refresh address data for the dynamic RAM of said first memory part and for providing a refresh timing signal to .[.the.]. .Iadd.said at least one .Iaddend.dynamic RAM of said first memory part;
wherein said control means controls said address switching means in response to said refresh timing signal so that said address switching means provides said refresh address data to said external address
terminals. 17. A microprocessor according to claim 11, further comprising:
wherein said first and second parts of said plurality of bits of said address signal correspond to row and column address signals of said at least one dynamic RAM, respectively;
wherein said control means includes means for providing a row address strobe signal and a column address strobe signal to said at least one dynamic RAM;
wherein said row address strobe signal is provided in synchronism with an output of said row address signal; and
wherein said column address strobe signal is provided in synchronism with
an output of said column address signal. 18. A microcomputer system of claim 11, wherein said first and second parts of said plurality of bits of said address signal correspond to first and second halves of said plurality of bits of said address signal, and wherein said first and second halves of said plurality of bits of said address .[.signals.]. .Iadd.signal .Iaddend.are both delivered to same terminals in said external address terminals when said selected .[.attributive.]. .Iadd.addressing system .Iaddend.data indicates that said external memory device should be addressed according to the address multiplexing system.
. The microcomputer system of claim 11, wherein said address switching means allows said address .[.signals.]. .Iadd.signal .Iaddend.to pass therethrough to be supplied to said address .[.but.]. .Iadd.bus .Iaddend.at said external address terminals when said selected .[.attributive.]. .Iadd.addressing system .Iaddend.data indicates that the external memory device is not to be addressed according to said address
multiplexing system. 20. The microcomputer system of claim 11, wherein said address switching means includes means for latching one of said first and second parts of said plurality of bits of said address signal on said
address bus. 21. The microcomputer system according to claim 11, wherein .[.said attributive data stored in.]. said first and second .Iadd.register .Iaddend.means each .[.includes.]. .Iadd.further stores .Iaddend.information indicating a memory capacity of the corresponding memory in the external memory device, and wherein said control means controls said address switching means in response to the information regarding the memory capacity .Iadd.stored .Iaddend.in the selected .[.attributive data.]. .Iadd.one of said first and second register means.Iaddend.. .Iadd.22. A processor according to claim 10, wherein said
register has a plurality of bits for the information. .Iaddend..Iadd.23. A processor for accessing an address space including first addresses assigned to a dynamic type memory and second addresses assigned to a memory other than a dynamic type memory, said processor comprising:
an address bus to which an address signal of a plurality of bits is applied, said address signal defining an address in the address space;
a data bus to which data is applied;
external address terminals;
an address switching device coupled between the address bus and the external address terminals;
a register, coupled to said data bus for storing attributive data corresponding to a memory capacity of the dynamic memory, wherein said attributive data is written to said register via said data bus; and
a controller, coupled to the address switching device, for controlling said address switching device such that said address switching device delivers said address signal on said address bus according to an address multiplexing system, wherein a first part of said plurality of bits of said address signal and a second part of said plurality of bits of said address signal are delivered to said external address terminals in time division manner when said processor accesses an address in said first addresses,
wherein said controller, responsive to said attributive data, controls said address switching device so that a bit number of respective first and second parts of said plurality of bits of said address signal is determined based on said attributive data stored in said register. .Iaddend..Iadd.24. A processor according to claim 23, wherein said first and second parts of said plurality of bits of said address signal correspond to row and column address signals of said dynamic type memory, respectively. .Iaddend..Iadd.25. A processor according to claim 24, wherein said controller includes a circuit which provides a row address strobe signal and a column address strobe signal, and
wherein said processor further comprises:
first and second external terminals coupled to receive said row and column address strobe signals, respectively, to output said row and column address strobe signals to outside of said processor. .Iaddend..Iadd.26. A processor according to claim 23, wherein said attributive data is written by a CPU to said register via said data bus. .Iaddend..Iadd.27. A processor according to claim 26, wherein said CPU is provided on a same semiconductor substrate as said processor, and wherein said CPU is coupled to said address and data buses. .Iaddend..Iadd.28. A processor according to claim 23, wherein said register has a plurality of bits for said attributive data. .Iaddend..Iadd.29. A processor according to claim 23, wherein said address switching device allows said address signal on said address bus to pass therethrough at said external address terminals when said processor accesses an address in the second addresses in an external
address space. .Iaddend..Iadd.30. A processor which is formed on a single semiconductor substrate, and which can be externally coupled to a memory, said processor comprising:
an address bus to which an address signal for the memory is supplied;
a data bus to which data is supplied;
a register including a first bit in which data corresponding to a kind of the memory is to be written and a second bit in which data corresponding to a capacity of the memory is to be written;
an address switching circuit coupled to said address bus; and
a control circuit which controls said address switching circuit,
wherein said control circuit includes a circuit which discriminates whether the memory is accessed according to an address multiplexing system based on data stored in said first bit of said register;
wherein said control circuit controls said address switching circuit such that said address switching circuit supplies first and second parts of said address signal on said address bus to the memory in time division manner when said data stored in said first bit of said register indicates that the memory is to be accessed according to said address multiplexing system,
wherein said control circuit further controls said address switching circuit such that said address switching circuit determines a bit number of respective first and second parts of said address signal based on data stored in said second bit of said resister when said data stored in said first bit of said register indicates that the memory is to be accessed according to said address multiplexing system, and
wherein said control circuit controls said address switching circuit such that said address switching circuit supplies the first and second parts of said address signal to the memory, simultaneously, when said data stored in said first bit of said resister indicates that the memory is not to be accessed according to said address multiplexing system. .Iaddend..Iadd.31. A processor according to claim 29, wherein said first and second parts of said address signal corresponds to row and column address signals, respectively. .Iaddend..Iadd.32. A processor according to claim 31, wherein said controller includes a circuit which provides a row address strobe signal and a column address strobe signal, and
wherein said processor further comprises:
first and second external terminals which are coupled to receive said row and column address strobe signals, respectively and which output said row and column address strobe signals to outside of said processor. .Iaddend..Iadd.33. A processor according to claim 32, further comprising:
a CPU coupled to said address and data buses,
wherein said data stored in said first bit of said register and said data stored in said second bit of said register are written by said CPU to said
register via said data bus. .Iaddend..Iadd.34. A method of accessing a dynamic type memory by a processor, said method comprising the steps of:
writing data corresponding to a memory capacity of a dynamic type memory to be used in a data processing system to a register via a data bus, wherein said register and said data bus are included in said processor, and wherein said register is coupled to said data bus;
after said writing step, outputting controlled row and column address signals whose bit number is controlled based on said data written in said register from said processor to the dynamic type memory in time division manner; and
accessing said dynamic type memory with said controlled row and column address signals. .Iaddend..Iadd.35. A method according to claim 34, wherein said outputting step is preformed by an address switching circuit responding to data written in the register, said address switching circuit being included in the processor. .Iaddend..Iadd.36. A method according to claim 34, wherein said writing step is performed by a CPU.
.Iaddend..Iadd. 7. A method according to claim 36, further comprising the step of:
before said writing step, reading out data from a read only memory by said CPU executing a data set program stored in the read only memory. .Iaddend..Iadd.38. A method according to claim 37, wherein said CPU is included in the processor which is formed on a semiconductor substrate. .Iaddend..Iadd.39. A method of organizing a function of a data processor included in a data processing system, said processor accesses a dynamic type random access memory using an address multiplexing system, said method comprising the steps of:
resetting a first bit of a register in the data processor to a first state in order to access a read only memory using a system other than the address multiplexing system;
reading out first data corresponding to an address access system of the dynamic type random access memory and second data corresponding to a memory capacity of the dynamic type random access memory from the read only memory to a data bus in the data processor;
setting a function of the data processor for outputting row and column address signals in time division manner to the dynamic type random access memory by writing the first data on the data bus to a first bit of the register via the data bus;
setting the function of the data processor to set a bit number of the respective row and column address signals to be supplied to the dynamic type random access memory based on the second data by writing the second data on the data bus to one or more second bits of the register via the data bus. .Iaddend..Iadd.40. A method according to claim 39, wherein said reading out step is performed by a CPU. .Iaddend..Iadd.41. A method according to claim 40, wherein said setting steps are performed by the CPU. .Iaddend..Iadd.42. A method according to claim 41, wherein the read only memory stores the first data, the second data and a program including a data set program, and wherein said setting steps are performed by the CPU executing the data set program in the program. .Iaddend..Iadd.43. A method according to claim 42, wherein the processor is formed on a semiconductor substrate. .Iaddend..Iadd.44. A method according to claim 43, wherein the CPU is provided on the semiconductor substrate. .Iaddend.
US08/729,132 1984-11-26 1996-10-11 Data processor and data processing system and method for accessing a dynamic type memory using an address multiplexing system Expired - Lifetime USRE36482E (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US08/729,132 USRE36482E (en) 1984-11-26 1996-10-11 Data processor and data processing system and method for accessing a dynamic type memory using an address multiplexing system

Applications Claiming Priority (7)

Application Number Priority Date Filing Date Title
JP59248109A JPH0642263B2 (en) 1984-11-26 1984-11-26 Data processing device
JP59-248109 1984-11-26
US06/799,795 US4792891A (en) 1984-11-26 1985-11-20 Data processor
US44230489A 1989-11-28 1989-11-28
US07/560,230 US5021951A (en) 1984-11-26 1990-07-25 Data Processor
US7123593A 1993-06-04 1993-06-04
US08/729,132 USRE36482E (en) 1984-11-26 1996-10-11 Data processor and data processing system and method for accessing a dynamic type memory using an address multiplexing system

Related Parent Applications (2)

Application Number Title Priority Date Filing Date
US07/560,230 Reissue US5021951A (en) 1984-11-26 1990-07-25 Data Processor
US7123593A Continuation 1984-11-26 1993-06-04

Publications (1)

Publication Number Publication Date
USRE36482E true USRE36482E (en) 2000-01-04

Family

ID=17173359

Family Applications (3)

Application Number Title Priority Date Filing Date
US06/799,795 Expired - Lifetime US4792891A (en) 1984-11-26 1985-11-20 Data processor
US07/560,230 Ceased US5021951A (en) 1984-11-26 1990-07-25 Data Processor
US08/729,132 Expired - Lifetime USRE36482E (en) 1984-11-26 1996-10-11 Data processor and data processing system and method for accessing a dynamic type memory using an address multiplexing system

Family Applications Before (2)

Application Number Title Priority Date Filing Date
US06/799,795 Expired - Lifetime US4792891A (en) 1984-11-26 1985-11-20 Data processor
US07/560,230 Ceased US5021951A (en) 1984-11-26 1990-07-25 Data Processor

Country Status (7)

Country Link
US (3) US4792891A (en)
EP (1) EP0183231B1 (en)
JP (1) JPH0642263B2 (en)
KR (3) KR930002323B1 (en)
DE (1) DE3587116T2 (en)
HK (1) HK28696A (en)
SG (1) SG59880G (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6327640B1 (en) * 1997-03-07 2001-12-04 Advanced Micro Devices, Inc. Overlapping peripheral chip select space with DRAM on a microcontroller with an integrated DRAM controller
US20050144369A1 (en) * 2002-02-06 2005-06-30 Koninklijke Philips Electronics N.V. Address space, bus system, memory controller and device system

Families Citing this family (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5187799A (en) * 1988-05-17 1993-02-16 Calif. Institute Of Technology Arithmetic-stack processor which precalculates external stack address before needed by CPU for building high level language executing computers
US5283885A (en) * 1988-09-09 1994-02-01 Werner Hollerbauer Storage module including a refresh device for storing start and stop refresh addresses
US5179667A (en) * 1988-09-14 1993-01-12 Silicon Graphics, Inc. Synchronized DRAM control apparatus using two different clock rates
US5193193A (en) * 1988-09-14 1993-03-09 Silicon Graphics, Inc. Bus control system for arbitrating requests with predetermined on/off time limitations
JPH02260195A (en) * 1989-03-30 1990-10-22 Mitsubishi Electric Corp Refresh control circuit
US5241665A (en) * 1990-08-31 1993-08-31 Advanced Micro Devices, Inc. Memory bank comparator system
DE69132108T2 (en) * 1990-08-31 2001-03-22 Advanced Micro Devices Inc Memory bank comparison device
US5128563A (en) * 1990-11-28 1992-07-07 Micron Technology, Inc. CMOS bootstrapped output driver method and circuit
US5206935A (en) * 1991-03-26 1993-04-27 Sinks Rod G Apparatus and method for fast i/o data transfer in an intelligent cell
US5229970A (en) * 1991-04-15 1993-07-20 Micron Technology, Inc. Circuit for synchronizing refresh cycles in self-refreshing drams having timing circuit shutdown
US5229969A (en) * 1991-04-15 1993-07-20 Micron Technology, Inc. Method for synchronizing refresh cycles in self-refreshing DRAMs having timing circuit shutdown
US5208779A (en) * 1991-04-15 1993-05-04 Micron Technology, Inc. Circuit for providing synchronous refresh cycles in self-refreshing interruptable DRAMs
JPH05113870A (en) * 1991-10-23 1993-05-07 Mitsubishi Electric Corp Sorting process processor
US6223264B1 (en) 1991-10-24 2001-04-24 Texas Instruments Incorporated Synchronous dynamic random access memory and data processing system using an address select signal
JP3134450B2 (en) * 1992-02-17 2001-02-13 日本電気株式会社 Microprocessor
US5402384A (en) * 1992-04-24 1995-03-28 Citizen Watch Co., Ltd. Dynamic ram
US5363337A (en) * 1992-07-15 1994-11-08 Micron Technology, Inc. Integrated circuit memory with variable addressing of memory cells
US5379400A (en) * 1992-08-07 1995-01-03 International Business Machines Corp. Method and system for determining memory refresh rate
US5278801A (en) * 1992-08-31 1994-01-11 Hewlett-Packard Company Flexible addressing for drams
JPH06150023A (en) 1992-11-06 1994-05-31 Hitachi Ltd Microcomputer and system thereof
JP3244340B2 (en) * 1993-05-24 2002-01-07 三菱電機株式会社 Synchronous semiconductor memory device
JPH0778106A (en) 1993-09-08 1995-03-20 Hitachi Ltd Data processing system
JP3904244B2 (en) * 1993-09-17 2007-04-11 株式会社ルネサステクノロジ Single chip data processor
KR950014089B1 (en) * 1993-11-08 1995-11-21 현대전자산업주식회사 Hidden self refresh method and device of synchronous dram
JPH07153266A (en) * 1993-11-26 1995-06-16 Mitsubishi Electric Corp Dram control circuit
JP3563768B2 (en) * 1994-05-31 2004-09-08 株式会社ルネサステクノロジ ROM program change device
US5557577A (en) * 1995-05-01 1996-09-17 Apple Computer, Inc. System and method for performing wake-up operations to a memory
US5557578A (en) * 1995-05-01 1996-09-17 Apple Computer, Inc. Dynamic memory refresh controller and method
GB2309559B (en) * 1996-01-27 2000-01-26 Motorola Israel Ltd Microprocessor and system
US5946703A (en) * 1997-02-07 1999-08-31 Silicon Integrated Systems Corp. Method for reading data in data reading and writing system
JP4722305B2 (en) 2001-02-27 2011-07-13 富士通セミコンダクター株式会社 Memory system
US7117398B2 (en) * 2002-11-22 2006-10-03 Texas Instruments Incorporated Program counter range comparator with equality, greater than, less than and non-equal detection modes
KR100653686B1 (en) * 2003-12-31 2006-12-04 삼성전자주식회사 Dynamic semiconductor memory device and operation method in power save mode of the same
US7512029B2 (en) * 2006-06-09 2009-03-31 Micron Technology, Inc. Method and apparatus for managing behavior of memory devices
KR100881196B1 (en) * 2007-05-29 2009-02-05 삼성전자주식회사 Memory device having alternative bit organizations and system including the same

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53136924A (en) * 1977-05-06 1978-11-29 Fujitsu Ltd Control system for memory device
JPS57143651A (en) * 1981-03-02 1982-09-04 Nec Corp Control system using in common the same test panel
JPS59162691A (en) * 1983-03-07 1984-09-13 Hitachi Ltd Dynamic ram
US4613953A (en) * 1983-04-22 1986-09-23 Ncr Corporation Paging register for memory devices
US4628482A (en) * 1982-05-07 1986-12-09 Hitachi, Ltd. Common memory control system with two bus masters
US4755964A (en) * 1985-04-19 1988-07-05 American Telephone And Telegraph Company Memory control circuit permitting microcomputer system to utilize static and dynamic rams
US4835733A (en) * 1985-09-30 1989-05-30 Sgs-Thomson Microelectronics, Inc. Programmable access memory
JPH0458675A (en) * 1990-06-28 1992-02-25 Toshiba Corp Binary image expansion system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE2212922B2 (en) * 1972-03-17 1976-02-05 Karl Schmidt Gmbh, 7107 Neckarsulm Assembly of steel piston crown with aluminium piston skirt - uses connecting screwring with opposite hand threads
US4332008A (en) * 1976-03-09 1982-05-25 Zilog, Inc. Microprocessor apparatus and method
DE2842548A1 (en) * 1978-09-29 1980-04-10 Siemens Ag PROGRAMMABLE MEMORY PROTECTION LOGIC FOR MICROPROCESSOR SYSTEMS
JPS5798600U (en) * 1980-12-09 1982-06-17
JPS57143652A (en) * 1981-03-02 1982-09-04 Fuji Electric Co Ltd Extension system for memory unit
JPS57203276A (en) * 1981-06-09 1982-12-13 Nippon Telegr & Teleph Corp <Ntt> Information storage device
US4433378A (en) * 1981-09-28 1984-02-21 Western Digital Chip topography for MOS packet network interface circuit
IT1142074B (en) * 1981-11-24 1986-10-08 Honeywell Inf Systems DATA PROCESSING SYSTEM WITH AUTOMATIC ALLOCATION OF THE ADDRESS IN A MODULAR MEMORY

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53136924A (en) * 1977-05-06 1978-11-29 Fujitsu Ltd Control system for memory device
JPS57143651A (en) * 1981-03-02 1982-09-04 Nec Corp Control system using in common the same test panel
US4628482A (en) * 1982-05-07 1986-12-09 Hitachi, Ltd. Common memory control system with two bus masters
JPS59162691A (en) * 1983-03-07 1984-09-13 Hitachi Ltd Dynamic ram
US4613953A (en) * 1983-04-22 1986-09-23 Ncr Corporation Paging register for memory devices
US4755964A (en) * 1985-04-19 1988-07-05 American Telephone And Telegraph Company Memory control circuit permitting microcomputer system to utilize static and dynamic rams
US4835733A (en) * 1985-09-30 1989-05-30 Sgs-Thomson Microelectronics, Inc. Programmable access memory
JPH0458675A (en) * 1990-06-28 1992-02-25 Toshiba Corp Binary image expansion system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6327640B1 (en) * 1997-03-07 2001-12-04 Advanced Micro Devices, Inc. Overlapping peripheral chip select space with DRAM on a microcontroller with an integrated DRAM controller
US20050144369A1 (en) * 2002-02-06 2005-06-30 Koninklijke Philips Electronics N.V. Address space, bus system, memory controller and device system

Also Published As

Publication number Publication date
EP0183231A2 (en) 1986-06-04
KR940002076B1 (en) 1994-03-16
DE3587116T2 (en) 1993-06-09
KR930002323B1 (en) 1993-03-29
JPS61127056A (en) 1986-06-14
JPH0642263B2 (en) 1994-06-01
EP0183231B1 (en) 1993-02-24
KR940002086B1 (en) 1994-03-17
DE3587116D1 (en) 1993-04-01
US5021951A (en) 1991-06-04
HK28696A (en) 1996-02-23
US4792891A (en) 1988-12-20
KR860004356A (en) 1986-06-20
EP0183231A3 (en) 1989-02-15
SG59880G (en) 1995-09-01

Similar Documents

Publication Publication Date Title
USRE36482E (en) Data processor and data processing system and method for accessing a dynamic type memory using an address multiplexing system
US5418924A (en) Memory controller with programmable timing
EP0329725B1 (en) Microcomputer with on-board chip selects and programmable bus stretching
US4831522A (en) Circuit and method for page addressing read only memory
JPH0212541A (en) Computing system and operation thereof
US6687811B1 (en) Processor with trace memory for storing access information on internal bus
US5832251A (en) Emulation device
US4285039A (en) Memory array selection mechanism
JPS6045828A (en) Single chip microcomputer
US5222226A (en) Single-chip microprocessor having variable memory address mapping
JP2003044303A (en) Computer system
US5155826A (en) Memory paging method and apparatus
US6115780A (en) Interrupt steering circuit for PCI bus
JPH07152721A (en) Microcomputer
EP1164490B1 (en) Re-configurable memory map for a system on a chip
US5345570A (en) Microprogram control circuit
KR950000124B1 (en) Memory access method and data process system
KR20050110006A (en) Memory management in a data processing system
US5704048A (en) Integrated microprocessor with internal bus and on-chip peripheral
EP0334523B1 (en) Microprocessor
US5396611A (en) Microprocessor use in in-circuit emulator having function of discriminating user&#39;s space and in-circuit emulator space
US7020813B2 (en) On chip debugging method of microcontrollers
JP3182906B2 (en) Microcomputer
JPH0816900B2 (en) How to build a data processing system
US5410725A (en) Data processor with microcode memory compression

Legal Events

Date Code Title Description
FPAY Fee payment

Year of fee payment: 12