US20010048619A1 - Control circuit and semiconductor device including same - Google Patents

Control circuit and semiconductor device including same Download PDF

Info

Publication number
US20010048619A1
US20010048619A1 US09/834,963 US83496301A US2001048619A1 US 20010048619 A1 US20010048619 A1 US 20010048619A1 US 83496301 A US83496301 A US 83496301A US 2001048619 A1 US2001048619 A1 US 2001048619A1
Authority
US
United States
Prior art keywords
internal
command
control circuit
rom
address
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.)
Granted
Application number
US09/834,963
Other versions
US6442058B2 (en
Inventor
Yasumichi Mori
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.)
Sharp Corp
Original Assignee
Individual
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 Individual filed Critical Individual
Assigned to SHARP KABUSHIKI KAISHA reassignment SHARP KABUSHIKI KAISHA ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: MORI, YASUMICHI
Publication of US20010048619A1 publication Critical patent/US20010048619A1/en
Application granted granted Critical
Publication of US6442058B2 publication Critical patent/US6442058B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/22Microcontrol or microprogram arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/38Concurrent instruction execution, e.g. pipeline or look ahead
    • G06F9/3818Decoding for concurrent execution
    • G06F9/3822Parallel decoding, e.g. parallel decode units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/22Microcontrol or microprogram arrangements
    • G06F9/26Address formation of the next micro-instruction ; Microprogram storage or retrieval arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/22Microcontrol or microprogram arrangements
    • G06F9/26Address formation of the next micro-instruction ; Microprogram storage or retrieval arrangements
    • G06F9/261Microinstruction address formation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/22Microcontrol or microprogram arrangements
    • G06F9/26Address formation of the next micro-instruction ; Microprogram storage or retrieval arrangements
    • G06F9/262Arrangements for next microinstruction selection
    • G06F9/268Microinstruction selection not based on processing results, e.g. interrupt, patch, first cycle store, diagnostic programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30145Instruction analysis, e.g. decoding, instruction word fields
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30181Instruction operation extension or modification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30181Instruction operation extension or modification
    • G06F9/30196Instruction operation extension or modification using decoder, e.g. decoder per instruction set, adaptable or programmable decoders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/38Concurrent instruction execution, e.g. pipeline or look ahead
    • G06F9/3802Instruction prefetching
    • G06F9/3814Implementation provisions of instruction buffers, e.g. prefetch buffer; banks

Definitions

  • the present invention relates to a control circuit used in a microcomputer, a semiconductor memory, or the like as a command processor, and a semiconductor device including the same. More particularly, the present invention relates to a control circuit having an internal code interpretation section, which is used in a non-volatile semiconductor memory requiring a complicated internal control, and a semiconductor device including the same.
  • a control circuit having an internal code interpretation section may be used for a non-volatile semiconductor memory or the like requiring complicated internal control.
  • An internal command which can be executed directly by a control circuit is herein referred to as an “internal command”.
  • a command, which externally instructs a semiconductor memory or the like to operate, Is referred to as an “external command”.
  • an operation specified by an external command is achieved by a number of internal commands which are executed in a specified sequence.
  • Such a group of internal commands which are arranged in a specified order (a program composed of internal commands so as to achieve an operation specified by an internal command) is herein referred to as an “internal code”.
  • a semiconductor memory will be described as an example.
  • An external instruction to a semiconductor memory such as data write and data erase, corresponds to an external command.
  • the area of a semiconductor memory or the like should be as small as possible. Therefore, a control circuit including internal commands having a fixed instruction length, which leads to simplification of the circuit, is used.
  • FIG. 11 is a diagram showing a structure of a conventional control circuit 210 .
  • the control circuit 210 includes an external command register 26 , a control signal register 27 , and an internal code interpretation section 29 .
  • An external command 2 B input from the outside of the control circuit 210 is stored in the external command register 26 .
  • the control signal register 27 receives a signal 2 I output from the internal code interpretation section 29 , and outputs a control signal 2 A to the outside of the control circuit 210 .
  • the internal code interpretation section 29 includes an internal code storage section 21 , an internal command register 22 , a program counter 23 , an internal command execution section 24 , and an external command recognition section 25 .
  • the internal code storage section 21 (hereinafter referred to as an “internal ROM”) includes a ROM or the like in which an internal code is stored.
  • the internal ROM 21 may include a non-volatile memory.
  • the internal command register 22 is used to store an internal command 2 E read from the internal ROM 21 , and outputs an internal command 2 F.
  • the program counter 23 selects and provides the address of an internal command to be executed, from the addresses of a plurality of internal commands stored in the internal ROM 21 .
  • the internal command execution section 24 executes the internal command 2 F output from the internal command register 22 .
  • the external command recognition section 25 recognizes an operation instructed by an external command.
  • FIG. 12 is a diagram showing a structure of a semiconductor memory 220 including the control circuit 210 .
  • the semiconductor memory 220 includes an input/output buffer 201 , an input buffer 202 , an internal booster circuit 203 , a write/erase control circuit 204 , an address decoder circuit 205 , a memory array 206 , a sense circuit 207 , and a control circuit 210 .
  • the input/output buffer 201 has data buses D 0 through Dn at the input and output sides.
  • the data buses DO through Dn are used to input external commands, write data, and the like, and to output read data.
  • the input buffer 202 has address buses A 0 through An at the input side.
  • the input buffer 202 receives a chip selection signal CE# (# represents an inverted signal) and a command write enable signal WE#.
  • the internal booster circuit 203 boosts a supply voltage Vpp.
  • the memory array 206 is used to store information.
  • the sense circuit 207 reads out information from the memory array 206 .
  • the circuits 203 , 204 and 207 are controlled in accordance with the control signal 2 A output from the control circuit 210 so that information is written to or erased from the memory array 206 .
  • the control signal 2 A is input to the internal booster circuit 203 , the write/erase control circuit 204 and the sense circuit 207 .
  • the internal booster circuit 203 is controlled so that the start or end of a boost is controlled in accordance with the control signal 2 A, or the boosted potential of the supply voltage Vpp is determined.
  • the external command 2 B stored in the external command register 26 is output from the external command register 26 to the external command recognition section 25 .
  • the external command recognition section 25 recognizes whether the external command 2 B can be executed by the control circuit 210 . When it is determined that the external command 2 B can be executed by the control circuit 210 , the external command recognition section 25 outputs a leading address 2 C of an internal code required for an operation specified by the external command 25 .
  • the program counter 23 selects and provides the address of an internal command to be executed, from a plurality of internal command addresses stored in the internal ROM 21 .
  • the internal ROM 21 outputs an internal command corresponding to a leading address 2 D of the internal code stored in the program counter 23 (in this case, the address 2 D is identical to the address 2 C), i.e., a leading internal command 2 E in the internal code to be executed, to the internal command register 22 in which the internal command is in turn stored.
  • the internal command execution section 24 executes a specified operation, control, or the like in accordance with an internal command 2 F output from the internal command register 22 .
  • the internal command execution section 24 outputs a signal 21 to update a value stored in the control signal register 27 if required, or outputs an address 2 G of an internal command to be executed to the program counter 23 in order to store an internal code 2 E to be executed in the internal command register 22 .
  • control circuit 210 achieves an operation specified by the external command 2 B by a plurality of internal commands stored in the internal ROM 21 being output to the internal command execution section 24 in a specified sequence, and being executed sequentially.
  • control circuit 210 the implementation of a new external code, the change of an existing external code, and the like can be achieved by changing an internal code stored in the internal ROM 21 . Therefore, the control circuit 210 is used for general purposes.
  • control circuit 210 can be used for general purposes by changing the internal code stored in the internal ROM 21 .
  • the control circuit 210 contributes to reutilization of design resources, thereby reducing the development time of a device having a high level of performance and reliability.
  • a longer internal command sequence (a greater capacity of internal code) than a conventional one needs to be stored in the internal ROM 21 using a semiconductor memory or the like including the control circuit 210 , in order to: (1) achieve various types of specification; (2) implement an external command requiring a complicated internal operation; or (3) correspond an internal code to a number of external commands.
  • Examples of factors which restrict the capacity of an internal ROM include the number of bits in a program counter, the instruction length (bit length) of an internal command, and the number of bits of an internal command register.
  • the program counter needs to indicate one address in an address space in the internal ROM as described above. For example, when the program counter has a 16-bit structure, the address space (the addresses of the internal ROM) which the counter can point to is in the range of 0000H to FFFFH. Even if the internal ROM has an address space which exceeds such a range, an internal command at an address outside the range cannot be read out. In this case, the available capacity of the internal ROM is limited to 2 16 words (64 k words: 65536 lines of internal commands).
  • an internal command has a predetermined number of bits (instruction length).
  • An internal command having a width of N bits is herein referred to as an N-bit instruction.
  • Any type of an internal command includes an operation code of several bits indicating the type of an operation (calculation, control, or the like) in the executing part of the internal command.
  • a typical internal command includes an instruction which directly specifies an address in the internal ROM of a command to be executed (the instruction is generally referred to as a jump instruction or a call instruction). This command is essential in a conditional branch in an algorithm achieved by an internal code.
  • a jump instruction includes at least the above-described operation code portion, and the address in the internal ROM of an internal command to be executed.
  • the control circuit 210 adopting a 16-bit instruction if the operation code portion is one bit, the address space is a space indicated only by 15-bit addresses. Therefore, when a target range of branches of a jump instruction is all internal commands within an internal code, the available capacity of the internal ROM is 215 words (32 k words: 32768 lines of internal commands).
  • a control circuit adopting an N-bit instruction needs to include an internal command register having at least a capacity of N bits. Therefore, the number of bits in the internal command register restricts the instruction length of an internal command, and further restricts the capacity of an internal available ROM.
  • the capacity of the internal ROM is restricted depending on the circuit configuration thereof.
  • the number of bits in a program counter, the instruction length (bit length) of an internal command, and the number of bits in the internal command register may be increased to a required level.
  • an internal command execution portion and an internal command register need to be modified, the width of a signal bit line or the like between each component circuit needs to be increased depending on the instruction length of an internal command, and the like.
  • an increase in the physical capacity of an internal ROM leads to a considerable level of modification of hardware and an increase in the area of a chip.
  • the development environment of software such as a translating program (e.g., assembler) may be changed.
  • the instruction length of an internal command also needs to be increased when the number of bits in a program counter is increased or when the number of bits in an internal command register is increased.
  • control circuit 210 when the control circuit 210 is used, the removal of restrictions on the capacity of an internal ROM leads to a considerable level of modification of the control circuit which causes an increase in the development time of a device or an increase in the area of a chip. Further, a conventional development environment or a past design resource may be sacrificed. In other words, when the control circuit 210 is reused to reduce the development time of a device, the restriction on the capacity of an internal ROM cannot be removed.
  • a control circuit comprises an external command recognition section for recognizing an external command, the external command being an operation command input from outside the control circuit, an internal ROM bank including a plurality of storage regions (e g., ROM regions), the internal ROM bank being used to store an internal code for achieving operations specified by the external command recognized by the external command recognition section, an internal ROM selection section for selecting a required storage region from the plurality of storage regions of the internal ROM bank in accordance with the external command recognized by the external command recognition section, a program counter for selecting and indicating an address of an internal command to be executed from a plurality of addresses of internal commands stored in the internal ROM bank, an internal command register for storing the internal command read from the internal ROM bank, and an internal command execution section for executing the internal command stored in the internal command register.
  • an external command recognition section for recognizing an external command, the external command being an operation command input from outside the control circuit
  • an internal ROM bank including a plurality of storage regions (e g., ROM regions), the internal ROM bank
  • the internal ROM selection section can switch the selected storage region depending on a result of a comparison of the address indicated by the program counter with a specific address.
  • the internal ROM selection section further includes an address register, and the specific address can be changed by setting an arbitrary value in the address register.
  • a semiconductor device comprises a control circuit.
  • the control circuit comprises an external command recognition section for recognizing an external command, the external command being an operation command input from outside the control circuit, an internal ROM bank including a plurality of storage regions, the internal ROM bank being used to store an internal code for achieving operations specified by the external command recognized by the external command recognition section, an internal ROM selection section for selecting a required storage region from the plurality of storage regions of the internal ROM bank in accordance with the external command recognized by the external command recognition section, a program counter for selecting and indicating an address of an internal command to be executed from a plurality of addresses of internal commands stored in the internal ROM bank, an internal command register for storing the internal command read from the internal ROM bank, and an internal command execution section for executing the internal command stored in the internal command register.
  • the internal ROM selection section can switch the selected storage region depending on a result of a comparison of the address indicated by the program counter with a specific address.
  • the internal ROM selection section further includes an address register, and the specific address can be changed by setting an arbitrary value in the address register.
  • a storage region in which an internal code required for achievement of an operation specified by an external command is stored can be selected from an internal ROM bank including a plurality of storage regions Therefore, the capacity of an internal ROM can be increased without an increase in the number of bits in a program counter, the instruction length (bit length) of an internal command, and/or the number of bits in an internal command register, unlike conventional control circuits.
  • the capacity of an internal ROM is restricted by the number of bits in a program counter, the instruction length (bit length) of an internal command, and/or the number of bits in an internal command register, so that if there is an address space of the internal ROM which exceeds the restricted capacity, an internal command at an address falling within the exceeding portion cannot be read out.
  • the internal ROM bank is divided into a plurality of regions so that, the address space of each selected region of the internal ROM can be utilized in a range corresponding to the same capacity as that of a conventional internal ROM.
  • the plurality of storage regions may not necessarily be of the same size.
  • the capacity of each storage region may be set to a minimum value.
  • an internal ROM selection section, a comparator circuit, an address register, and the like having a simple structure can be achieved, so that a configuration of the control circuit is not complicated.
  • Each of the plurality of regions in the internal ROM is herein referred to as an internal ROM bank.
  • a comparator circuit or the like is provided in an internal ROM selection section so that the address of an internal command to be executed, indicated by a program counter, is compared with a specific address.
  • a storage region is selected so that an internal command can be shared by a plurality of internal codes. Therefore, a storage region can be physically reduced.
  • an address register is provided in an internal ROM selection section and the address register is set to an arbitrary value.
  • the address of an internal command to be executed is compared with the value of the address register.
  • a storage region is selected so that the internal command shared by a plurality of internal codes can be provided in an arbitrary storage region.
  • field-proven design resources are utilized so as to reduce the development time of a semiconductor device, such as a microcomputer and a memory.
  • the invention described herein makes possible the advantages of providing: a control circuit in which the capacity of an internal ROM can be increased without a considerable level of modification of the control circuit and an increase in the area of a chip, and the development time of an application device can be reduced by utilizing existing design resources; and a semiconductor device including the control circuit.
  • FIG. 1 is a diagram showing a structure of a control circuit 110 according to Example 1 of the present invention.
  • FIGS. 2A and 2B are diagrams used for explaining an operation of an external command recognition section 15 in the control circuit 110 of Example 1.
  • FIG. 3 is a diagram showing a structure of an internal ROM selection section 18 in the control circuit 110 of Example 1.
  • FIG. 4 is a diagram showing a structure of an internal ROM bank 11 in the control circuit 110 of Example 1.
  • FIG. 5 is a diagram showing a configuration of a control circuit 110 a according to Example 2 of the present invention.
  • FIG. 6 is a diagram showing a structure of an internal code.
  • FIG. 7 is a diagram showing a structure of an internal ROM selection section 18 a in the control circuit 110 a of Example 2.
  • FIG. 8 is a diagram showing a structure of an internal code having a structure obtained by modifying the structure of the internal code of FIG. 6.
  • FIG. 9 is a diagram showing another structure of the internal ROM selection section 18 a in the control circuit 110 a of Example 2.
  • FIG. 10 is a diagram showing a semiconductor memory 120 including the control circuit 110 of Example 1.
  • FIG. 11 is a diagram showing a structure of a conventional control circuit 210 .
  • FIG. 12 is a diagram showing a semiconductor memory 220 including the conventional control circuit 210 .
  • FIG. 1 is a diagram showing a structure of a control circuit 110 according to Example 1 of the present invention.
  • the control circuit 110 includes an external command register 16 , a control signal register 17 , and an internal code interpretation section 20 .
  • the external command register 16 is used to store an external command 1 B input from the outside of the control circuit 110 .
  • the control signal register 17 outputs a control signal 1 A to the outside of the control circuit 110 .
  • the internal code interpretation section 20 includes an internal ROM bank 11 , an internal command register 12 , a program counter 13 , an internal command execution section 14 , an external command recognition section 15 , and an internal ROM selection section 18 .
  • the internal code storage section 11 (hereinafter referred to as an “internal ROM bank”) includes a ROM in which an internal code is stored, and the like, and is divided into a plurality of regions.
  • the internal command register 12 is used to store an internal command 1 B read from the internal ROM bank 11 .
  • the program counter 13 indicates the address of an internal command to be executed of an internal code stored in the internal ROM bank 11 .
  • the internal command execution section 14 executes an internal command 1 F stored in the internal command register 12 .
  • the external command recognition section 15 recognizes an operation instructed by an external command.
  • the internal ROM selection section 18 selects a required ROM region from the plurality of ROM regions included in the internal ROM bank 11 in accordance with the external command recognized by the external command recognition section 15 .
  • the internal ROM selection section 18 receives a signal 1 H for identifying the external command recognized by the external command recognition section 15 , and outputs an internal ROM switching signal 1 I to the internal ROM bank 11 .
  • an internal ROM switching signal 1 I a ROM region in which an internal code required for achievement of an operation specified by the external command 1 B is stored, is selected from the plurality of ROM regions included in the internal ROM bank 11 .
  • the external command 1 B has the same structure as that of the conventional external command 2 B.
  • the external command register 16 and the program counter 13 each have the same structure as that of the conventional external command register 26 and the program counter 23 , respectively.
  • the control circuit 110 is assumed to implement a plurality of external commands ⁇ , ⁇ and ⁇ .
  • internal codes ⁇ , ⁇ and ⁇ are referred to as internal codes ⁇ , ⁇ and ⁇ , respectively.
  • the internal codes ⁇ and ⁇ are stored in ROM region 0 in the internal ROM bank 11 and the internal code ⁇ is stored in ROM region 1 in the internal ROM bank 11 .
  • One of the internal codes ⁇ , ⁇ and ⁇ may be included partially or totally in the other internal code.
  • the internal codes ⁇ , ⁇ and ⁇ may include the same command.
  • the number of external commands to be implemented is not restricted.
  • the number of internal codes included in the same ROM region is not restricted.
  • the capacities (sizes) of the ROM regions may be different from each other.
  • the external command register 16 included in the control circuit 110 receives the external command 1 B.
  • the external command 1 B stored in the external command register 16 is output from the external command register 16 to the external command recognition section 15 .
  • the external command recognition section 15 determines whether the external command 1 B is a command which can be executed in the control circuit 110 . Specifically, the external command recognition section 15 determines whether the external command 1 B is an external command implemented in the control circuit 110 , based on the operation code portion of the external command 1 B or the external command 1 B itself.
  • FIGS. 2A and 2B are diagrams used for explaining an operation of the external command recognition section 15 in the control circuit 110 of Example 1.
  • Implemented external commands are indicated as ⁇ , ⁇ and ⁇ , and each command includes a 2-bit operation code (b 0 , b 1 ) as shown in FIG. 2A.
  • the external command a includes an operation code (0, 1).
  • the external command ⁇ includes an operation code (1, 0).
  • the external command y includes an operation code (1, 1).
  • the external command 1 B corresponds to one of the three external commands ( ⁇ , ⁇ or ⁇ )
  • the external command recognition section 15 having a circuit configuration shown in FIG.
  • an external command EN signal ( ⁇ EN, ⁇ EN and ⁇ EN) corresponding to an external command to be “H” (corresponding to the signal 1 H for recognizing an external command in FIG. 1).
  • the leading address (16 bits in this case) of an internal code corresponding to each external command includes RomA 0 through RomA 15 (corresponding to a signal 1 D) which are output to the program counter 13 .
  • the external command recognition section 15 When the external command 1 B is determined to be a valid command, the external command recognition section 15 output the signal 1 H for identifying the recognized external command to the internal ROM selection section 18 .
  • the internal ROM selection section 18 selects a ROM region in which an internal code required for achievement of an operation specified by the external command 1 B is stored, from the plurality of ROM regions included in the internal ROM bank 11 .
  • the external command recognition section 15 outputs a leading address 1 C of the internal code required for achievement of an operation specified by the external command 1 B to the program counter 13 .
  • the program counter 13 selects and provides the address of an internal command to be executed from the addresses of the plurality of commands stored in the internal ROM bank 11 .
  • an internal command specified by the leading address 1 C is stored in a ROM region selected by the internal ROM selection section 18 (e.g., ROM region 0 described later).
  • an internal command (the leading command 1 E of an internal code to be executed) corresponding to the leading address 1 D (identical to 1 C in this case) of an internal code stored in the program counter 13 is output to the internal command register 12 in which the internal command is in turn stored.
  • FIG. 3 is a diagram showing a structure of the internal ROM selection section 18 in the control circuit 110 of Example 1.
  • the internal ROM selection section 18 causes only the external command ⁇ EN signal included in the signal 1 H for identifying an external command to be “H”.
  • the external command ⁇ EN signal is generated by decoding an operation code (bit sequence) included in the external command ⁇ by the external recognition section 15 .
  • the external command ⁇ EN signal indicates that the input external command is the external command ⁇ .
  • the internal ROM selection section 18 outputs the internal ROM switching signal 1 I in which only the ROM region OEN signal for selecting the ROM region 0 is “H”.
  • FIG. 4 is a diagram showing a structure of the internal ROM bank 11 in the control circuit 110 of Example 1.
  • the internal ROM bank 11 activates an address decoder circuit at the ROM 0 side. Thereafter, the internal ROM bank 11 outputs the internal command 1 E (stored in the selected ROM region), which corresponds to the address 1 D provided by the program counter 13 , to the internal command register 12 . For example, the leading internal command of the internal code a stored in the selected ROM region 0 is output to the internal command register 12 .
  • the internal command execution section 14 includes a register file, a variety of operation sections, and the like, and performs a specified operation, control, or the like in accordance with the internal command 1 F stored in the internal command register 12 .
  • the internal command execution section 14 if required, outputs the signal 1 J such that a value stored in the control signal register 17 is updated. Thereafter, the internal command execution section 14 , if required, outputs the address 1 G of an internal command to be executed to the program counter 13 such that the internal code 1 E to be executed is stored in the internal register 12 .
  • the internal ROM selection section 18 selects a ROM region, in which an internal code corresponding to the external command 1 B is stored, from a plurality of ROM regions in the internal ROM bank 11 , thereby obtaining the control circuit 110 .
  • FIG. 5 shows a configuration of a control circuit 110 a according to Example 2 of the present invention.
  • components having the same function as those of Example 1 are indicated by the same reference numerals as those in FIG. 1.
  • An address 1 D of an internal command to be executed is input from a program counter 13 to an internal ROM selection section 18 a .
  • the internal ROM selection section 18 a Similar to Example 1, the internal ROM selection section 18 a outputs a signal 11 for selecting a ROM region storing an internal code to be executed from a plurality of ROM regions included in an internal ROM bank 11 , in accordance with an external command 1 B input to the control circuit 110 a .
  • the internal ROM selection section 18 a compares the address 1 D of the internal command to be executed, indicated by the program counter 13 , with a specific address using a comparator circuit or the like.
  • the internal ROM selection section 18 a can output the signal 1 I for selecting a ROM region storing the internal code to be executed from a plurality of ROM regions included in the internal ROM bank 11 when the address 1 D is greater than or equal to a specific address.
  • the comparison of the address 1 D with the specific address is not limited to this example. Alternatively, a ROM region may be changed when the address 1 D is smaller than or equal to the specific address or when the address 1 D is in a specific range.
  • a typical internal code includes a logical group of a plurality of internal commands (generally referred to as a subroutine). Among the plurality of internal commands, a general-purpose command is included in each internal code.
  • FIG. 6 shows a structure of an internal code in the internal ROM bank 11 .
  • Internal ROM region 0 including the internal codes ⁇ and ⁇ , includes subroutines a, b, c, d, e and f.
  • ROM region 1 including another internal code ⁇ , includes subroutines a, b, c, g, h and i.
  • the subroutines a, b and c overlap between both ROM regions, wasting a certain amount of physical ROM region.
  • a ROM region located at greater than or equal to a specific address can be shared by another ROM region in the structure of the control circuit 110 a of Example 2, resulting in substantially no waste ROM region.
  • FIG. 7 shows a structure of the internal ROM selection section 18 a in the control circuit 110 a of Example 2.
  • the internal ROM selection section 18 a causes A 15 , which corresponds to a signal at the 16 th bit position from the lower end of the address 1 D of an internal command to be executed, to be “H”.
  • the internal ROM selection section 18 a has a structure in which an OR circuit receiving A 15 is inserted into the circuit of FIG. 3 for generating the ROM region 0 EN signal.
  • the internal ROM selection section 18 a can output an internal ROM switching signal 1 I which is the ROM region 0 EN signal being “H”. Therefore, even when the address 1 D is 8000H or more, ROM region 0 can be selected, not depending on a ROM region selected when the address 1 D is 7FFFH or less.
  • the overlapping subroutines a, b and c shown in FIG. 6 may be provided at the address 8000H or thereafter as shown in FIG. 8, for example.
  • FIG. 8 shows a structure of an internal code having a structure obtained by modifying the structure of the internal code of FIG. 6. By specifying an address to be compared, the comparator circuit can be substantially omitted or simplified as shown in FIG. 7.
  • the specified address to be compared with the address of the above-described internal command is not necessarily fixed.
  • FIG. 9 shows another structure of the internal ROM selection section 18 a of the control circuit 110 a of Example 2.
  • the internal ROM selection section 18 a is provided with an address comparator section 19 a including an address register 19 and a known comparator circuit so that the address comparator section 19 a can compare an address stored in the address register 19 with the address 1 D of an internal command to be executed. Therefore, when the address 1 D is greater, an output signal L of the address comparator section 19 a is “H” so that ROM region 0 is selected.
  • the result of the comparison of an address stored in the address register 19 with the address 1 D of an internal command is not limited to the above-described example.
  • the address 1 D is smaller, or when the address 1 D is in a specific range, a selected ROM region is switched.
  • FIG. 10 is a diagram showing a semiconductor memory 120 including the control circuit 110 of Example 1.
  • the semiconductor memory 120 includes an input/output buffer 101 , an input buffer 102 , an internal booster circuit 103 , a write/erase control circuit 104 , an address decoder circuit 105 , a memory array 106 , a sense circuit 107 , and a control circuit 110 .
  • the input/output buffer 101 has data buses D 0 through Dn at the input and output sides.
  • the data buses D 0 through Dn are used to input external commands, write data, and the like, and to output read data.
  • the input buffer 102 has address buses A 0 through An at the input side.
  • the input buffer 102 receives a chip selection signal CE# (# represents an inverted signal) and a command write enable signal WE#.
  • the internal booster circuit 103 boosts a supply voltage Vpp.
  • the memory array 106 is used to store information.
  • the sense circuit 107 reads out information from the memory array 106 .
  • the circuits 103 , 104 and 107 are controlled in accordance with the control signal 1 A output from the control circuit 110 so that information is written to or erased from the memory array 106 .
  • the control signal 1 A is input to the internal booster circuit 103 , the write/erase control circuit 104 and the sense circuit 107 ,
  • the internal booster circuit 103 is controlled so that the start or end of a boost is controlled in accordance with the control signal 1 A, or the boosted potential of the supply voltage Vpp is determined.
  • a ROM region in which an internal code required for achievement of an operation specified by an external command is stored can be selected from an internal ROM bank. Therefore, the capacity of an internal ROM can be increased without a considerable level of modification of the control circuit and an increase in the area of a chip, and the development time of an application device can be reduced by utilizing existing design resources.
  • a comparator circuit or the like is provided in an internal ROM selection section so that the address of an internal command to be executed indicated by a program counter is compared with a specific address.
  • a ROM region is selected so that an internal command can be shared by a plurality of internal codes. Therefore, the ROM region is physically reduced, thereby reducing the area of a control circuit.
  • an address register is provided in an internal ROM selection section so that the address register is set to an arbitrary value.
  • the address of an internal command to be executed is compared with the value of the address register.
  • a ROM region is selected so that the internal command shared by a plurality of internal codes can be provided in an arbitrary ROM region.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Microcomputers (AREA)
  • Read Only Memory (AREA)
  • Executing Machine-Instructions (AREA)
  • Stored Programmes (AREA)

Abstract

A control circuit comprises an external command recognition section for recognizing an external command, the external command being an operation command input from outside the control circuit, an internal ROM bank including a plurality of storage regions, the internal ROM bank being used to store an internal code for achieving operations specified by the external command recognized by the external command recognition section, an internal ROM selection section for selecting a required storage region from the plurality of storage regions of the internal ROM bank in accordance with the external command recognized by the external command recognition section, a program counter for selecting and indicating an address of an internal command to be executed from a plurality of addresses of internal commands stored in the internal ROM bank, an internal command register for storing the internal command read from the internal ROM bank, and an internal command execution section for executing the internal command stored in the internal command register.

Description

    BACKGROUND OF THE INVENTION
  • 1. Field of the Invention [0001]
  • The present invention relates to a control circuit used in a microcomputer, a semiconductor memory, or the like as a command processor, and a semiconductor device including the same. More particularly, the present invention relates to a control circuit having an internal code interpretation section, which is used in a non-volatile semiconductor memory requiring a complicated internal control, and a semiconductor device including the same. [0002]
  • 2. Description of the Related Art [0003]
  • Recent advances of semiconductor technology and increasing variety of its applications lead to further complication and diversification of the specification of a microcomputer, a semiconductor memory, and the like. The development of a high-performance, highly-reliable device in a short time is a challenge. To address such a challenge, a circuit block in an existing device is preferably reused so as to reduce the development time. Particularly, since a typical control circuit is a collection of complicated circuits, the reuse of an existing circuit significantly contributes to a reduction in the development time. [0004]
  • A control circuit having an internal code interpretation section may be used for a non-volatile semiconductor memory or the like requiring complicated internal control. An internal command which can be executed directly by a control circuit is herein referred to as an “internal command”. A command, which externally instructs a semiconductor memory or the like to operate, Is referred to as an “external command”. Typically, an operation specified by an external command is achieved by a number of internal commands which are executed in a specified sequence. Such a group of internal commands which are arranged in a specified order (a program composed of internal commands so as to achieve an operation specified by an internal command) is herein referred to as an “internal code”. [0005]
  • A semiconductor memory will be described as an example. An external instruction to a semiconductor memory, such as data write and data erase, corresponds to an external command. A series of internal commands included in a semiconductor memory, which are sequentially executed so as to achieve data write or data erase, corresponds to an internal code. In particular, the area of a semiconductor memory or the like should be as small as possible. Therefore, a control circuit including internal commands having a fixed instruction length, which leads to simplification of the circuit, is used. [0006]
  • FIG. 11 is a diagram showing a structure of a [0007] conventional control circuit 210. The control circuit 210 includes an external command register 26, a control signal register 27, and an internal code interpretation section 29. An external command 2B input from the outside of the control circuit 210 is stored in the external command register 26. The control signal register 27 receives a signal 2I output from the internal code interpretation section 29, and outputs a control signal 2A to the outside of the control circuit 210. The internal code interpretation section 29 includes an internal code storage section 21, an internal command register 22, a program counter 23, an internal command execution section 24, and an external command recognition section 25. The internal code storage section 21 (hereinafter referred to as an “internal ROM”) includes a ROM or the like in which an internal code is stored. The internal ROM 21 may include a non-volatile memory. The internal command register 22 is used to store an internal command 2E read from the internal ROM 21, and outputs an internal command 2F. The program counter 23 selects and provides the address of an internal command to be executed, from the addresses of a plurality of internal commands stored in the internal ROM 21. The internal command execution section 24 executes the internal command 2F output from the internal command register 22. The external command recognition section 25 recognizes an operation instructed by an external command.
  • FIG. 12 is a diagram showing a structure of a [0008] semiconductor memory 220 including the control circuit 210. The semiconductor memory 220 includes an input/output buffer 201, an input buffer 202, an internal booster circuit 203, a write/erase control circuit 204, an address decoder circuit 205, a memory array 206, a sense circuit 207, and a control circuit 210. The input/output buffer 201 has data buses D0 through Dn at the input and output sides. The data buses DO through Dn are used to input external commands, write data, and the like, and to output read data. The input buffer 202 has address buses A0 through An at the input side. The input buffer 202 receives a chip selection signal CE# (# represents an inverted signal) and a command write enable signal WE#. The internal booster circuit 203 boosts a supply voltage Vpp. The memory array 206 is used to store information. The sense circuit 207 reads out information from the memory array 206.
  • In the [0009] semiconductor memory 220, the circuits 203, 204 and 207 are controlled in accordance with the control signal 2A output from the control circuit 210 so that information is written to or erased from the memory array 206. The control signal 2A is input to the internal booster circuit 203, the write/erase control circuit 204 and the sense circuit 207. For example, the internal booster circuit 203 is controlled so that the start or end of a boost is controlled in accordance with the control signal 2A, or the boosted potential of the supply voltage Vpp is determined.
  • An operation of the [0010] control circuit 210 will be described.
  • The [0011] external command 2B stored in the external command register 26 is output from the external command register 26 to the external command recognition section 25. The external command recognition section 25 recognizes whether the external command 2B can be executed by the control circuit 210. When it is determined that the external command 2B can be executed by the control circuit 210, the external command recognition section 25 outputs a leading address 2C of an internal code required for an operation specified by the external command 25. The program counter 23 selects and provides the address of an internal command to be executed, from a plurality of internal command addresses stored in the internal ROM 21. The internal ROM 21 outputs an internal command corresponding to a leading address 2D of the internal code stored in the program counter 23 (in this case, the address 2D is identical to the address 2C), i.e., a leading internal command 2E in the internal code to be executed, to the internal command register 22 in which the internal command is in turn stored. The internal command execution section 24 executes a specified operation, control, or the like in accordance with an internal command 2F output from the internal command register 22. The internal command execution section 24 outputs a signal 21 to update a value stored in the control signal register 27 if required, or outputs an address 2G of an internal command to be executed to the program counter 23 in order to store an internal code 2E to be executed in the internal command register 22.
  • As described above, the [0012] control circuit 210 achieves an operation specified by the external command 2B by a plurality of internal commands stored in the internal ROM 21 being output to the internal command execution section 24 in a specified sequence, and being executed sequentially.
  • In the [0013] control circuit 210, the implementation of a new external code, the change of an existing external code, and the like can be achieved by changing an internal code stored in the internal ROM 21. Therefore, the control circuit 210 is used for general purposes.
  • When a semiconductor memory having a new operating specification is developed, the configuration of the control circuit of the semiconductor memory is used, as it is, by changing an internal code. Now it is assumed that an attempt is made to develop a new semiconductor memory adopting a write architecture different from a conventional one. Although peripheral circuits, such as the [0014] address decoder circuit 205 and the write/erase control circuit 204, need to be newly developed, a control circuit for controlling the peripheral circuit can be used only by changing the internal code so that the peripheral circuit is operated in a desired manner, without modification of the basic structure.
  • As described above, the [0015] control circuit 210 can be used for general purposes by changing the internal code stored in the internal ROM 21. The control circuit 210 contributes to reutilization of design resources, thereby reducing the development time of a device having a high level of performance and reliability.
  • A longer internal command sequence (a greater capacity of internal code) than a conventional one needs to be stored in the [0016] internal ROM 21 using a semiconductor memory or the like including the control circuit 210, in order to: (1) achieve various types of specification; (2) implement an external command requiring a complicated internal operation; or (3) correspond an internal code to a number of external commands.
  • Examples of factors which restrict the capacity of an internal ROM include the number of bits in a program counter, the instruction length (bit length) of an internal command, and the number of bits of an internal command register. [0017]
  • Hereinafter, the number of bits in a program counter will be described. [0018]
  • To select one internal command from an internal ROM and output the internal command to an internal command register, the program counter needs to indicate one address in an address space in the internal ROM as described above. For example, when the program counter has a 16-bit structure, the address space (the addresses of the internal ROM) which the counter can point to is in the range of 0000H to FFFFH. Even if the internal ROM has an address space which exceeds such a range, an internal command at an address outside the range cannot be read out. In this case, the available capacity of the internal ROM is limited to [0019] 2 16 words (64 k words: 65536 lines of internal commands).
  • Next, the instruction length (bit length) of an internal command will be described. [0020]
  • When an architecture having a fixed instruction length is adopted, an internal command has a predetermined number of bits (instruction length). An internal command having a width of N bits is herein referred to as an N-bit instruction. Any type of an internal command includes an operation code of several bits indicating the type of an operation (calculation, control, or the like) in the executing part of the internal command. Further, a typical internal command includes an instruction which directly specifies an address in the internal ROM of a command to be executed (the instruction is generally referred to as a jump instruction or a call instruction). This command is essential in a conditional branch in an algorithm achieved by an internal code. For example, a jump instruction includes at least the above-described operation code portion, and the address in the internal ROM of an internal command to be executed. In this case, when the [0021] control circuit 210 adopting a 16-bit instruction is used, if the operation code portion is one bit, the address space is a space indicated only by 15-bit addresses. Therefore, when a target range of branches of a jump instruction is all internal commands within an internal code, the available capacity of the internal ROM is 215 words (32 k words: 32768 lines of internal commands).
  • The number of bits in an internal command register will be described. [0022]
  • A control circuit adopting an N-bit instruction needs to include an internal command register having at least a capacity of N bits. Therefore, the number of bits in the internal command register restricts the instruction length of an internal command, and further restricts the capacity of an internal available ROM. [0023]
  • As described above, when the [0024] control circuit 210 is used, the capacity of the internal ROM is restricted depending on the circuit configuration thereof. To remove the restriction, the number of bits in a program counter, the instruction length (bit length) of an internal command, and the number of bits in the internal command register may be increased to a required level.
  • For example, if the instruction length of each internal command is longer but the lines of internal commands are the same, the physical capacity of an internal ROM required for storage of the internal commands is increased. For example, when an internal code having 1024 lines (1 K words) of internal commands are stored in an internal ROM, a control circuit adopting a 12-bit instruction requires an internal ROM having a capacity of 12 Kbits. Similarly, a control circuit adopting a 16-bit instruction requires an internal ROM having a capacity of 16 Kbits. An increase in the physical capacity of an internal ROM means an increase in the area of a chip. Further, an internal command execution portion and an internal command register need to be modified, the width of a signal bit line or the like between each component circuit needs to be increased depending on the instruction length of an internal command, and the like. Thus, an increase in the physical capacity of an internal ROM leads to a considerable level of modification of hardware and an increase in the area of a chip. Moreover, when the instruction length of an internal command is increased, the development environment of software, such as a translating program (e.g., assembler), may be changed. The instruction length of an internal command also needs to be increased when the number of bits in a program counter is increased or when the number of bits in an internal command register is increased. [0025]
  • As described above, when the [0026] control circuit 210 is used, the removal of restrictions on the capacity of an internal ROM leads to a considerable level of modification of the control circuit which causes an increase in the development time of a device or an increase in the area of a chip. Further, a conventional development environment or a past design resource may be sacrificed. In other words, when the control circuit 210 is reused to reduce the development time of a device, the restriction on the capacity of an internal ROM cannot be removed.
  • SUMMARY OF THE INVENTION
  • According to one aspect of the present invention, a control circuit comprises an external command recognition section for recognizing an external command, the external command being an operation command input from outside the control circuit, an internal ROM bank including a plurality of storage regions (e g., ROM regions), the internal ROM bank being used to store an internal code for achieving operations specified by the external command recognized by the external command recognition section, an internal ROM selection section for selecting a required storage region from the plurality of storage regions of the internal ROM bank in accordance with the external command recognized by the external command recognition section, a program counter for selecting and indicating an address of an internal command to be executed from a plurality of addresses of internal commands stored in the internal ROM bank, an internal command register for storing the internal command read from the internal ROM bank, and an internal command execution section for executing the internal command stored in the internal command register. [0027]
  • In one embodiment of this invention, the internal ROM selection section can switch the selected storage region depending on a result of a comparison of the address indicated by the program counter with a specific address. [0028]
  • In one embodiment of this invention, the internal ROM selection section further includes an address register, and the specific address can be changed by setting an arbitrary value in the address register. [0029]
  • According to another aspect of the present invention, a semiconductor device comprises a control circuit. The control circuit comprises an external command recognition section for recognizing an external command, the external command being an operation command input from outside the control circuit, an internal ROM bank including a plurality of storage regions, the internal ROM bank being used to store an internal code for achieving operations specified by the external command recognized by the external command recognition section, an internal ROM selection section for selecting a required storage region from the plurality of storage regions of the internal ROM bank in accordance with the external command recognized by the external command recognition section, a program counter for selecting and indicating an address of an internal command to be executed from a plurality of addresses of internal commands stored in the internal ROM bank, an internal command register for storing the internal command read from the internal ROM bank, and an internal command execution section for executing the internal command stored in the internal command register. [0030]
  • In one embodiment of this invention, the internal ROM selection section can switch the selected storage region depending on a result of a comparison of the address indicated by the program counter with a specific address. [0031]
  • In one embodiment of this invention, the internal ROM selection section further includes an address register, and the specific address can be changed by setting an arbitrary value in the address register. [0032]
  • Hereinafter, functions of the present invention will be described. [0033]
  • As described above, according to the present invention, a storage region in which an internal code required for achievement of an operation specified by an external command is stored, can be selected from an internal ROM bank including a plurality of storage regions Therefore, the capacity of an internal ROM can be increased without an increase in the number of bits in a program counter, the instruction length (bit length) of an internal command, and/or the number of bits in an internal command register, unlike conventional control circuits. Conventionally, the capacity of an internal ROM is restricted by the number of bits in a program counter, the instruction length (bit length) of an internal command, and/or the number of bits in an internal command register, so that if there is an address space of the internal ROM which exceeds the restricted capacity, an internal command at an address falling within the exceeding portion cannot be read out. In the present invention, the internal ROM bank is divided into a plurality of regions so that, the address space of each selected region of the internal ROM can be utilized in a range corresponding to the same capacity as that of a conventional internal ROM. The plurality of storage regions may not necessarily be of the same size. The capacity of each storage region may be set to a minimum value. Further, an internal ROM selection section, a comparator circuit, an address register, and the like having a simple structure can be achieved, so that a configuration of the control circuit is not complicated. Each of the plurality of regions in the internal ROM is herein referred to as an internal ROM bank. [0034]
  • Further, according to the present invention, a comparator circuit or the like is provided in an internal ROM selection section so that the address of an internal command to be executed, indicated by a program counter, is compared with a specific address. In accordance with a result of the comparison, a storage region is selected so that an internal command can be shared by a plurality of internal codes. Therefore, a storage region can be physically reduced. [0035]
  • Furthermore, according to the present invention, an address register is provided in an internal ROM selection section and the address register is set to an arbitrary value. The address of an internal command to be executed is compared with the value of the address register. In accordance with the result of the comparison, a storage region is selected so that the internal command shared by a plurality of internal codes can be provided in an arbitrary storage region. [0036]
  • With the control circuit of the present invention, field-proven design resources are utilized so as to reduce the development time of a semiconductor device, such as a microcomputer and a memory. [0037]
  • Thus, the invention described herein makes possible the advantages of providing: a control circuit in which the capacity of an internal ROM can be increased without a considerable level of modification of the control circuit and an increase in the area of a chip, and the development time of an application device can be reduced by utilizing existing design resources; and a semiconductor device including the control circuit. [0038]
  • These and other advantages of the present invention will become apparent to those skilled in the art upon reading and understanding the following detailed description with reference to the accompanying figures.[0039]
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • FIG. 1 is a diagram showing a structure of a [0040] control circuit 110 according to Example 1 of the present invention.
  • FIGS. 2A and 2B are diagrams used for explaining an operation of an external [0041] command recognition section 15 in the control circuit 110 of Example 1.
  • FIG. 3 is a diagram showing a structure of an internal [0042] ROM selection section 18 in the control circuit 110 of Example 1.
  • FIG. 4 is a diagram showing a structure of an [0043] internal ROM bank 11 in the control circuit 110 of Example 1.
  • FIG. 5 is a diagram showing a configuration of a [0044] control circuit 110 a according to Example 2 of the present invention.
  • FIG. 6 is a diagram showing a structure of an internal code. [0045]
  • FIG. 7 is a diagram showing a structure of an internal [0046] ROM selection section 18 a in the control circuit 110 a of Example 2.
  • FIG. 8 is a diagram showing a structure of an internal code having a structure obtained by modifying the structure of the internal code of FIG. 6. [0047]
  • FIG. 9 is a diagram showing another structure of the internal [0048] ROM selection section 18 a in the control circuit 110 a of Example 2.
  • FIG. 10 is a diagram showing a semiconductor memory [0049] 120 including the control circuit 110 of Example 1.
  • FIG. 11 is a diagram showing a structure of a [0050] conventional control circuit 210.
  • FIG. 12 is a diagram showing a [0051] semiconductor memory 220 including the conventional control circuit 210.
  • DESCRIPTION OF THE PREFERRED EMBODIMENTS
  • Hereinafter, the present invention will be described by way of illustrative examples with reference to the accompanying drawings. [0052]
  • EXAMPLE 1
  • FIG. 1 is a diagram showing a structure of a [0053] control circuit 110 according to Example 1 of the present invention.
  • The [0054] control circuit 110 includes an external command register 16, a control signal register 17, and an internal code interpretation section 20. The external command register 16 is used to store an external command 1B input from the outside of the control circuit 110. The control signal register 17 outputs a control signal 1A to the outside of the control circuit 110.
  • The internal [0055] code interpretation section 20 includes an internal ROM bank 11, an internal command register 12, a program counter 13, an internal command execution section 14, an external command recognition section 15, and an internal ROM selection section 18. The internal code storage section 11 (hereinafter referred to as an “internal ROM bank”) includes a ROM in which an internal code is stored, and the like, and is divided into a plurality of regions. The internal command register 12 is used to store an internal command 1B read from the internal ROM bank 11. The program counter 13 indicates the address of an internal command to be executed of an internal code stored in the internal ROM bank 11. The internal command execution section 14 executes an internal command 1F stored in the internal command register 12. The external command recognition section 15 recognizes an operation instructed by an external command. The internal ROM selection section 18 selects a required ROM region from the plurality of ROM regions included in the internal ROM bank 11 in accordance with the external command recognized by the external command recognition section 15.
  • The internal [0056] ROM selection section 18 receives a signal 1H for identifying the external command recognized by the external command recognition section 15, and outputs an internal ROM switching signal 1I to the internal ROM bank 11. In accordance with the internal ROM switching signal 1I, a ROM region in which an internal code required for achievement of an operation specified by the external command 1B is stored, is selected from the plurality of ROM regions included in the internal ROM bank 11.
  • Note that the [0057] external command 1B has the same structure as that of the conventional external command 2B. The external command register 16 and the program counter 13 each have the same structure as that of the conventional external command register 26 and the program counter 23, respectively.
  • Next, an operation of the [0058] control circuit 110 will be described. The control circuit 110 is assumed to implement a plurality of external commands α, β and γ. Note that in the following description, internal codes required for achievement of the commands α, β and γ are referred to as internal codes α, β and γ, respectively. The internal codes α and β are stored in ROM region 0 in the internal ROM bank 11 and the internal code γ is stored in ROM region 1 in the internal ROM bank 11. One of the internal codes α, β and γ may be included partially or totally in the other internal code. The internal codes α, β and γ may include the same command. Further, the number of external commands to be implemented is not restricted. The number of internal codes included in the same ROM region is not restricted. The capacities (sizes) of the ROM regions may be different from each other.
  • The [0059] external command register 16 included in the control circuit 110 receives the external command 1B. The external command 1B stored in the external command register 16 is output from the external command register 16 to the external command recognition section 15. The external command recognition section 15 determines whether the external command 1B is a command which can be executed in the control circuit 110. Specifically, the external command recognition section 15 determines whether the external command 1B is an external command implemented in the control circuit 110, based on the operation code portion of the external command 1B or the external command 1B itself.
  • FIGS. 2A and 2B are diagrams used for explaining an operation of the external [0060] command recognition section 15 in the control circuit 110 of Example 1. Implemented external commands are indicated as α, β and γ, and each command includes a 2-bit operation code (b0, b1) as shown in FIG. 2A. For example, the external command a includes an operation code (0, 1). The external command γ includes an operation code (1, 0). The external command y includes an operation code (1, 1). When the external command 1B corresponds to one of the three external commands (α, β or γ), the external command recognition section 15, having a circuit configuration shown in FIG. 2B, causes an external command EN signal (αEN, βEN and γEN) corresponding to an external command to be “H” (corresponding to the signal 1H for recognizing an external command in FIG. 1). The leading address (16 bits in this case) of an internal code corresponding to each external command includes RomA0 through RomA15 (corresponding to a signal 1D) which are output to the program counter 13.
  • When the [0061] external command 1B is determined to be a valid command, the external command recognition section 15 output the signal 1H for identifying the recognized external command to the internal ROM selection section 18. The internal ROM selection section 18 selects a ROM region in which an internal code required for achievement of an operation specified by the external command 1B is stored, from the plurality of ROM regions included in the internal ROM bank 11.
  • The external [0062] command recognition section 15 outputs a leading address 1C of the internal code required for achievement of an operation specified by the external command 1B to the program counter 13. The program counter 13 selects and provides the address of an internal command to be executed from the addresses of the plurality of commands stored in the internal ROM bank 11. In this case, an internal command specified by the leading address 1C is stored in a ROM region selected by the internal ROM selection section 18 (e.g., ROM region 0 described later).
  • In the selected ROM region (e.g., [0063] ROM region 0 described later) in the internal ROM bank 11, an internal command (the leading command 1E of an internal code to be executed) corresponding to the leading address 1D (identical to 1C in this case) of an internal code stored in the program counter 13 is output to the internal command register 12 in which the internal command is in turn stored.
  • FIG. 3 is a diagram showing a structure of the internal [0064] ROM selection section 18 in the control circuit 110 of Example 1.
  • The internal [0065] ROM selection section 18 causes only the external command αEN signal included in the signal 1H for identifying an external command to be “H”. The external command αEN signal is generated by decoding an operation code (bit sequence) included in the external command α by the external recognition section 15. The external command αEN signal indicates that the input external command is the external command α. Thereafter, the internal ROM selection section 18 outputs the internal ROM switching signal 1I in which only the ROM region OEN signal for selecting the ROM region 0 is “H”.
  • FIG. 4 is a diagram showing a structure of the [0066] internal ROM bank 11 in the control circuit 110 of Example 1.
  • When the ROM region [0067] 0EN signal is caused to be “H”, the internal ROM bank 11 activates an address decoder circuit at the ROM 0 side. Thereafter, the internal ROM bank 11 outputs the internal command 1E (stored in the selected ROM region), which corresponds to the address 1D provided by the program counter 13, to the internal command register 12. For example, the leading internal command of the internal code a stored in the selected ROM region 0 is output to the internal command register 12.
  • The internal command execution section [0068] 14 includes a register file, a variety of operation sections, and the like, and performs a specified operation, control, or the like in accordance with the internal command 1F stored in the internal command register 12. The internal command execution section 14, if required, outputs the signal 1J such that a value stored in the control signal register 17 is updated. Thereafter, the internal command execution section 14, if required, outputs the address 1G of an internal command to be executed to the program counter 13 such that the internal code 1E to be executed is stored in the internal register 12.
  • As described above, according to Example 1, the internal [0069] ROM selection section 18 selects a ROM region, in which an internal code corresponding to the external command 1B is stored, from a plurality of ROM regions in the internal ROM bank 11, thereby obtaining the control circuit 110.
  • EXAMPLE 2
  • FIG. 5 shows a configuration of a [0070] control circuit 110 a according to Example 2 of the present invention. In FIG. 5, components having the same function as those of Example 1 are indicated by the same reference numerals as those in FIG. 1. An address 1D of an internal command to be executed is input from a program counter 13 to an internal ROM selection section 18 a. Similar to Example 1, the internal ROM selection section 18 a outputs a signal 11 for selecting a ROM region storing an internal code to be executed from a plurality of ROM regions included in an internal ROM bank 11, in accordance with an external command 1B input to the control circuit 110 a. The internal ROM selection section 18 a compares the address 1D of the internal command to be executed, indicated by the program counter 13, with a specific address using a comparator circuit or the like. The internal ROM selection section 18 a can output the signal 1I for selecting a ROM region storing the internal code to be executed from a plurality of ROM regions included in the internal ROM bank 11 when the address 1D is greater than or equal to a specific address. The comparison of the address 1D with the specific address is not limited to this example. Alternatively, a ROM region may be changed when the address 1D is smaller than or equal to the specific address or when the address 1D is in a specific range.
  • A typical internal code includes a logical group of a plurality of internal commands (generally referred to as a subroutine). Among the plurality of internal commands, a general-purpose command is included in each internal code. [0071]
  • FIG. 6 shows a structure of an internal code in the [0072] internal ROM bank 11. Internal ROM region 0, including the internal codes α and β, includes subroutines a, b, c, d, e and f. ROM region 1, including another internal code γ, includes subroutines a, b, c, g, h and i. When the internal codes α and β and the internal code γ are stored in different ROM regions, the subroutines a, b and c overlap between both ROM regions, wasting a certain amount of physical ROM region.
  • To avoid this, a ROM region located at greater than or equal to a specific address can be shared by another ROM region in the structure of the [0073] control circuit 110 a of Example 2, resulting in substantially no waste ROM region.
  • FIG. 7 shows a structure of the internal [0074] ROM selection section 18 a in the control circuit 110 a of Example 2. When the address of an internal command is 8000H (the specific address), the internal ROM selection section 18 a causes A15, which corresponds to a signal at the 16th bit position from the lower end of the address 1D of an internal command to be executed, to be “H”. As shown in FIG. 7, the internal ROM selection section 18 a has a structure in which an OR circuit receiving A15 is inserted into the circuit of FIG. 3 for generating the ROM region 0EN signal. With such a structure, the internal ROM selection section 18 a can output an internal ROM switching signal 1I which is the ROM region 0EN signal being “H”. Therefore, even when the address 1D is 8000H or more, ROM region 0 can be selected, not depending on a ROM region selected when the address 1D is 7FFFH or less.
  • In this case, the overlapping subroutines a, b and c shown in FIG. 6 may be provided at the [0075] address 8000H or thereafter as shown in FIG. 8, for example.
  • FIG. 8 shows a structure of an internal code having a structure obtained by modifying the structure of the internal code of FIG. 6. By specifying an address to be compared, the comparator circuit can be substantially omitted or simplified as shown in FIG. 7. [0076]
  • Further, the specified address to be compared with the address of the above-described internal command is not necessarily fixed. [0077]
  • FIG. 9 shows another structure of the internal [0078] ROM selection section 18 a of the control circuit 110 a of Example 2. The internal ROM selection section 18 a is provided with an address comparator section 19 a including an address register 19 and a known comparator circuit so that the address comparator section 19 a can compare an address stored in the address register 19 with the address 1D of an internal command to be executed. Therefore, when the address 1D is greater, an output signal L of the address comparator section 19 a is “H” so that ROM region 0 is selected.
  • Note that the result of the comparison of an address stored in the [0079] address register 19 with the address 1D of an internal command is not limited to the above-described example. When the address 1D is smaller, or when the address 1D is in a specific range, a selected ROM region is switched.
  • EXAMPLE 3
  • FIG. 10 is a diagram showing a semiconductor memory [0080] 120 including the control circuit 110 of Example 1. The semiconductor memory 120 includes an input/output buffer 101, an input buffer 102, an internal booster circuit 103, a write/erase control circuit 104, an address decoder circuit 105, a memory array 106, a sense circuit 107, and a control circuit 110. The input/output buffer 101 has data buses D0 through Dn at the input and output sides. The data buses D0 through Dn are used to input external commands, write data, and the like, and to output read data. The input buffer 102 has address buses A0 through An at the input side. The input buffer 102 receives a chip selection signal CE# (# represents an inverted signal) and a command write enable signal WE#. The internal booster circuit 103 boosts a supply voltage Vpp. The memory array 106 is used to store information. The sense circuit 107 reads out information from the memory array 106.
  • In the semiconductor memory [0081] 120, the circuits 103, 104 and 107 are controlled in accordance with the control signal 1A output from the control circuit 110 so that information is written to or erased from the memory array 106. The control signal 1A is input to the internal booster circuit 103, the write/erase control circuit 104 and the sense circuit 107, For example, the internal booster circuit 103 is controlled so that the start or end of a boost is controlled in accordance with the control signal 1A, or the boosted potential of the supply voltage Vpp is determined.
  • As described above, according to the present invention, a ROM region in which an internal code required for achievement of an operation specified by an external command is stored, can be selected from an internal ROM bank. Therefore, the capacity of an internal ROM can be increased without a considerable level of modification of the control circuit and an increase in the area of a chip, and the development time of an application device can be reduced by utilizing existing design resources. [0082]
  • Further, according to the present invention, a comparator circuit or the like is provided in an internal ROM selection section so that the address of an internal command to be executed indicated by a program counter is compared with a specific address. In accordance with a result of the comparison, a ROM region is selected so that an internal command can be shared by a plurality of internal codes. Therefore, the ROM region is physically reduced, thereby reducing the area of a control circuit. [0083]
  • Furthermore, according to the present invention, an address register is provided in an internal ROM selection section so that the address register is set to an arbitrary value. The address of an internal command to be executed is compared with the value of the address register. In accordance with a result of the comparison, a ROM region is selected so that the internal command shared by a plurality of internal codes can be provided in an arbitrary ROM region. [0084]
  • Various other modifications will be apparent to and can be readily made by those skilled in the art without departing from the scope and spirit of this invention. Accordingly, it is not intended that the scope of the claims appended hereto be limited to the description as set forth herein, but rather that the claims be broadly construed. [0085]

Claims (6)

What is claimed is:
1. A control circuit, comprising:
an external command recognition section for recognizing an external command, the external command being an operation command input from outside the control circuit;
an internal ROM bank including a plurality of storage regions, the internal ROM bank being used to store an internal code for achieving operations specified by the external command recognized by the external command recognition section;
an internal ROM selection section for selecting a required storage region from the plurality of storage regions of the internal ROM bank in accordance with the external command recognized by the external command recognition section;
a program counter for selecting and indicating an address of an internal command to be executed from a plurality of addresses of internal commands stored in the Internal ROM bank;
an internal command register for storing the internal command read from the internal ROM bank; and
an internal command execution section for executing the internal command stored in the internal command register.
2. A control circuit according to
claim 1
, wherein the internal ROM selection section can switch the selected storage region depending on a result of a comparison of the address indicated by the program counter with a specific address.
3. A control circuit according to
claim 2
, wherein the internal ROM selection section further includes an address register, and the specific address can be changed by setting an arbitrary value in the address register.
4. A semiconductor device comprising a control circuit, the control circuit comprising:
an external command recognition section for recognizing an external command, the external command being an operation command input from outside the control circuit;
an internal ROM bank including a plurality of storage regions, the internal ROM bank being used to store an internal code for achieving operations specified by the external command recognized by the external command recognition section;
an internal ROM selection section for selecting a required storage region from the plurality of storage regions of the internal ROM bank in accordance with the external command recognized by the external command recognition section;
a program counter for selecting and indicating an address of an internal command to be executed from a plurality of addresses of internal commands stored in the internal ROM bank;
an internal command register for storing the internal command read from the internal ROM bank: and an internal command execution section for executing the internal command stored in the internal command register.
5. A semiconductor device according to
claim 4
, wherein the internal ROM selection section can switch the selected storage region depending on a result of a comparison of the address indicated by the program counter with a specific address.
6. A semiconductor device according to
claim 5
, wherein the internal ROM selection section further includes an address register, and the specific address can be changed by setting an arbitrary value in the address register.
US09/834,963 2000-04-21 2001-04-13 Control circuit and semiconductor device including same Expired - Fee Related US6442058B2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2000121845A JP2001306316A (en) 2000-04-21 2000-04-21 Control circuit and semiconductor device using the same
JP2000-121845 2000-04-21

Publications (2)

Publication Number Publication Date
US20010048619A1 true US20010048619A1 (en) 2001-12-06
US6442058B2 US6442058B2 (en) 2002-08-27

Family

ID=18632408

Family Applications (1)

Application Number Title Priority Date Filing Date
US09/834,963 Expired - Fee Related US6442058B2 (en) 2000-04-21 2001-04-13 Control circuit and semiconductor device including same

Country Status (5)

Country Link
US (1) US6442058B2 (en)
EP (1) EP1150201A3 (en)
JP (1) JP2001306316A (en)
KR (1) KR100394564B1 (en)
TW (1) TW518515B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050144919A1 (en) * 2004-01-05 2005-07-07 Honda Motor Co., Ltd. Variable speed transmission twist-grip throttle control apparatuses and methods for self-propelled mowing machine
US20090107095A1 (en) * 2007-10-26 2009-04-30 Scott Kaskawitz Variable speed transmission adjustable twist control apparatuses and methods for self-propelled mowing machine

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102004025899B4 (en) * 2004-05-27 2010-06-10 Qimonda Ag Method for activating and deactivating electronic circuit units and circuit arrangement for carrying out the method
US7859937B2 (en) * 2009-01-12 2010-12-28 Arm Limited Apparatus and method for controlling write access to a group of storage elements
JP5819440B2 (en) 2010-12-28 2015-11-24 インディアン インスティテュート オブ テクノロジー カーンプル Converged matrix factorization based whole frame image processing
US11720352B2 (en) * 2019-12-10 2023-08-08 Micron Technology, Inc. Flexible command pointers to microcode operations

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1192368A (en) * 1966-07-11 1970-05-20 Automatic Telephone & Elect Improvements in or relating to Data Processing Devices
US3713108A (en) * 1971-03-25 1973-01-23 Ibm Branch control for a digital machine
DE2136762C3 (en) * 1971-07-22 1974-03-28 Siemens Ag, 1000 Berlin U. 8000 Muenchen Device for expanding a basic program stored in a read-only memory
NL8205076A (en) * 1982-12-31 1984-07-16 Philips Nv DATA PROCESSOR UNIT EQUIPPED WITH A CONTROL PART INCLUDING AN ADDRESS GENERATOR FOR GENERATING ADDRESSES COMPOSED OF CHARACTERISTIC ADDRESS PARTS.
US4982360A (en) * 1983-09-22 1991-01-01 Digital Equipment Corporation Memory subsystem
US5581776A (en) * 1995-02-03 1996-12-03 Nokia Mobile Phones Limited Branch control system for rom-programmed processor
JP3822707B2 (en) * 1997-05-08 2006-09-20 株式会社ルネサステクノロジ IC card
JP4248624B2 (en) * 1998-07-03 2009-04-02 株式会社デンソー Electronic control device for internal combustion engine.
JP4115044B2 (en) * 1999-06-23 2008-07-09 株式会社ルネサステクノロジ Voltage generating circuit and semiconductor memory device including the same

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050144919A1 (en) * 2004-01-05 2005-07-07 Honda Motor Co., Ltd. Variable speed transmission twist-grip throttle control apparatuses and methods for self-propelled mowing machine
US20080047246A1 (en) * 2004-01-05 2008-02-28 Osborne Christopher M Variable speed transmission twist-grip throttle control apparatuses and methods for self-propelled mowing machine
US20090107095A1 (en) * 2007-10-26 2009-04-30 Scott Kaskawitz Variable speed transmission adjustable twist control apparatuses and methods for self-propelled mowing machine

Also Published As

Publication number Publication date
EP1150201A2 (en) 2001-10-31
US6442058B2 (en) 2002-08-27
JP2001306316A (en) 2001-11-02
KR20010098737A (en) 2001-11-08
TW518515B (en) 2003-01-21
EP1150201A3 (en) 2004-08-18
KR100394564B1 (en) 2003-08-14

Similar Documents

Publication Publication Date Title
US5479639A (en) Computer system with a paged non-volatile memory
CN1195303C (en) Combined program and data nonvolatile memory with concurrent program-read/data write capability
US5854937A (en) Method for reprogramming flash ROM in a personal computer implementing an EISA bus system
US20070157000A1 (en) Configuring levels of program/erase protection in flash devices
EP1063652A2 (en) Flash memory with alterable erase sector size
KR101544607B1 (en) Memory device and program method thereof
KR100265266B1 (en) Microcomputer comprsing flash eeprom and method of erasing flash eeprom
KR100604877B1 (en) Apparatus and method for controlling memory address mapping in embedded system
JP4632666B2 (en) Optimizing compiler generated program code
US6442058B2 (en) Control circuit and semiconductor device including same
US6498750B2 (en) Boot block flash memory control circuit; IC memory card and semiconductor memory device incorporating the same; and erasure method for boot block flash memory
JP2005092882A (en) Dual buffering memory system for minimizing data transmission period, and control method
US6442068B1 (en) Non-volatile memory with functional capability of burst mode read and page mode read during suspension of an operation of electrical alteration
EP3057100B1 (en) Memory device and operating method of same
US4661925A (en) Computer control memory apparatus providing variable microinstruction length
US7046536B2 (en) Programable identification circuitry
US6549482B2 (en) Method and apparatus to provide real-time access to flash memory features
KR100953062B1 (en) Method of inputting address in a non volatile memory device and method of operating the same
US7102925B2 (en) Flash memory device
US6148362A (en) Microcomputer using nonvolatile semiconductor memory to store user code/data
EP1246201A2 (en) Semiconductor memory
KR100826499B1 (en) Semi-conductor memory device comprising charge-pump and control method of the charge-pump
KR100470822B1 (en) Method for memory addressing in micro controller and Apparutus for page mapping
JPH1153338A (en) Semiconductor integrated circuit and external bus mode selection method therefor
KR200204909Y1 (en) A microcontroller including an divided internal code memory

Legal Events

Date Code Title Description
AS Assignment

Owner name: SHARP KABUSHIKI KAISHA, JAPAN

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:MORI, YASUMICHI;REEL/FRAME:011984/0784

Effective date: 20010619

CC Certificate of correction
FPAY Fee payment

Year of fee payment: 4

FPAY Fee payment

Year of fee payment: 8

REMI Maintenance fee reminder mailed
LAPS Lapse for failure to pay maintenance fees
STCH Information on status: patent discontinuation

Free format text: PATENT EXPIRED DUE TO NONPAYMENT OF MAINTENANCE FEES UNDER 37 CFR 1.362

FP Lapsed due to failure to pay maintenance fee

Effective date: 20140827