US20090085626A1 - Semiconductor integrated circuit and method for controlling semiconductor integrated circuit - Google Patents

Semiconductor integrated circuit and method for controlling semiconductor integrated circuit Download PDF

Info

Publication number
US20090085626A1
US20090085626A1 US12/232,162 US23216208A US2009085626A1 US 20090085626 A1 US20090085626 A1 US 20090085626A1 US 23216208 A US23216208 A US 23216208A US 2009085626 A1 US2009085626 A1 US 2009085626A1
Authority
US
United States
Prior art keywords
circuit
master
bus
semiconductor integrated
slave
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.)
Abandoned
Application number
US12/232,162
Inventor
Shigeyuki Ueno
Hiroyuki Nakajima
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.)
Renesas Electronics Corp
Original Assignee
NEC Electronics Corp
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 NEC Electronics Corp filed Critical NEC Electronics Corp
Assigned to NEC ELECTRONICS CORPORATION reassignment NEC ELECTRONICS CORPORATION ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: NAKAJIMA, HIROYUKI, UENO, SHIGEYUKI
Publication of US20090085626A1 publication Critical patent/US20090085626A1/en
Assigned to RENESAS ELECTRONICS CORPORATION reassignment RENESAS ELECTRONICS CORPORATION CHANGE OF NAME (SEE DOCUMENT FOR DETAILS). Assignors: NEC ELECTRONICS CORPORATION
Priority to US13/619,403 priority Critical patent/US8621262B2/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/36Handling requests for interconnection or transfer for access to common bus or bus system
    • G06F13/362Handling requests for interconnection or transfer for access to common bus or bus system with centralised access control
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • G06F15/7807System on chip, i.e. computer system on a single chip; System in package, i.e. computer system on one or more chips in a single package

Definitions

  • the present invention relates to a semiconductor integrated circuit and a method for controlling a semiconductor integrated circuit.
  • IP integrated property
  • a master circuit is a circuit that instructs other circuits to execute given processing.
  • Examples of a master circuit include a central processing unit (CPU), a digital signal processor (DSP) and other signal-processing circuits (such as an image processing circuit).
  • a slave circuit is a circuit that executes a given processing in response to an instruction issued by others.
  • An example of a slave circuit is a semiconductor storage device (hereinafter referred to as a memory when appropriate).
  • a given slave circuit is previously assigned to a given master circuit. In this case, the slave circuit assigned to the master circuit is unavailable when the master circuit is in an inactive state (in a shutdown state or a sleep state).
  • the number of unavailable slave circuits increases as the number of master circuits in an inactive state increases. This may result in a significant decrease in the use efficiency of system resources. In other words, a slave circuit assigned to a certain master circuit becomes unavailable when the certain master circuit goes into an inactive state. Accordingly, the use efficiency of system recourses decreases.
  • the semiconductor integrated circuit according to the present invention includes a first slave circuit, a first master circuit, and a second master circuit.
  • the first slave circuit previously assigned to the first master circuit is reassigned to the second master circuit in accordance with the operational status of the first master circuit.
  • the first slave circuit By reassigning the first slave circuit previously assigned to the first master circuit to the second master circuit in accordance with the operational status of the first master circuit, the first slave circuit can be used not only by the first master circuit but also by the second master circuit. Accordingly, the use efficiency of system resources is improved.
  • the method for controlling the semiconductor integrated circuit according to the present invention is a method for controlling a semiconductor integrated circuit having a first and a second master circuits and at least one slave circuit.
  • the slave circuit previously assigned to the first master circuit is reassigned to the second circuit when the operational status of the first master circuit is detected to be in an inactive state.
  • the slave circuit By reassigning the first slave circuit previously assigned to the first master circuit to the second master circuit when the operational status of the first master circuit is inactive, the slave circuit can be used not only by the first master circuit but also by the second master circuit. Accordingly, the use efficiency of system resources of the semiconductor integrated circuit is improved.
  • FIG. 1 is a schematic block diagram of a semiconductor integrated circuit 50 .
  • FIG. 2 is an explanatory diagram for describing the order of superiority of the circuit blocks.
  • FIG. 3 is a schematic timing diagram for describing the operation of the semiconductor integrated circuit 50 .
  • FIG. 4 is a schematic block diagram of a semiconductor integrated circuit 51 .
  • FIG. 5 is a general block diagram of the semiconductor integrated circuit 52 .
  • FIG. 6 is a general timing diagram illustrating the operation of a master module.
  • FIG. 7 is a general timing diagram illustrating the operation of the semiconductor integrated circuit 52 .
  • FIG. 1 shows a schematic block diagram of a semiconductor integrated circuit 50 .
  • FIG. 2 shows an explanatory diagram for describing the order of superiority of the circuit blocks.
  • FIG. 3 shows a schematic timing diagram for describing the operation of the semiconductor integrated circuit 50 .
  • the semiconductor integrated circuit 50 includes master circuits 1 to 5 , a slave circuit 6 , a system controller 7 , a master status register 8 , a bus controller 9 and a bus 10 .
  • the semiconductor integrated circuit 50 i-s a monolithic semiconductor device.
  • the semiconductor integrated circuit 50 is made multi-functional based on SoC (System on Chip) technology.
  • the master circuits 1 to 5 instruct other circuits to execute a predetermined processing.
  • the master circuits may be, for example, a CPU (Central Processing Unit), a DSP (Digital Signal Processor) or other signal-processing circuits (such as an image processing circuit).
  • a master ID (master identifier) is previously set for each of the master circuits 1 to 5 .
  • the master circuits 1 to 5 are connected to the bus controller 9 via the bus 10 .
  • the master circuits 4 and 5 are small-scale CPUs (miniature CPU) with a smaller circuit size than the master circuits 1 to 3 .
  • the master circuit 4 has an interface circuit (input/output circuit) 11 that is connected to the bus 10 .
  • the master circuit 5 also has an interface circuit (input/output circuit) 12 that is connected to the bus 10 .
  • the master circuit 4 may be called CPU 1 and the master circuit 5 may be called CPU 2 in the following descriptions.
  • the slave circuit 6 executes a predetermined processing in response to an instruction from outside.
  • a slave circuit may be, for example, a memory.
  • the slave circuit 6 determines which master circuit has made an access, based on its master ID.
  • the slave circuit 6 is divided into three regions. Specifically, the slave circuit 6 includes an M1 region (slave circuit) 14 as a first region, an M2 region (slave circuit) 15 as a second region, and an M3 region (slave circuit) 16 as a third region.
  • the M1 region 14 is assigned for the master circuit 1 . In other words, the M1 region 14 is a dedicated region for the master circuit 1 .
  • the slave circuit 6 determines, based on a master ID, if an access to the M1 region 14 is made by the master circuit 1 .
  • the slave circuit 6 permits an access to the M1 region 14 if a master ID transmitted via the bus 10 is the one previously set in the master circuit 1 .
  • the slave circuit 6 denies an access to the M1 region 14 if the value of the master ID transmitted via the bus 10 is not the one set in the master circuit 1 , but the one set in a master circuit other than the master circuit 1 .
  • the M2 region 15 is assigned to the master circuit 2
  • the M3 region 16 is assigned to the master circuit 3 .
  • the above-mentioned explanation on the access control to the M1 region 14 also applies to the M2 region 15 and to the M3 region 16 .
  • the slave circuit 6 is divided to form the M1 region 14 , the M1 region 14 alone is assumed to work as a slave circuit. The same applies to the M2 region 15 and to the M3 region 16 .
  • the system controller 7 is a master circuit that controls the whole system of the semiconductor integrated circuit 50 . That is to say, as shown in FIG. 2 , the system controller 7 is a circuit block of the most significant hierarchy that controls the master circuits 1 to 5 . In addition, as shown in FIG. 2 , the master circuits 1 to 5 form a circuit block of the intermediate hierarchy that controls the slave circuit 6 . The slave circuit 6 is a circuit block of the lowest hierarchy that operates in response to instructions from the master circuits 1 to 5 .
  • the system controller 7 controls each of the master circuits 1 to 5 .
  • the system controller 7 not only controls start and restart of the master circuit 1 and start and end of processing by the master circuit 1 , but also gives instructions to the other master circuits concurrently.
  • the system controller 7 is connected to the interface circuit 11 of the CPU 1 .
  • the system controller 7 is able to issue commands to the master circuit 4 via the interface circuit 11 and access the internal resources of the master circuit 4 .
  • the system controller 7 is also able to carry out the similar operations via the interface circuit 12 .
  • the system controller 7 checks the operation status of each of the master circuits 1 to 5 by referring to the master status register 8 .
  • the system controller 7 changes the bus setting based on the operation status of each of the master circuits 1 to 5 , and reassigns a slave circuit previously assigned to a given master circuit to another master circuit.
  • the system controller 7 reassigns the M2 region 15 previously assigned to the master circuit 2 to the CPU 1 when the master circuit 2 is in an inactive state.
  • the M2 region 15 is utilized by the CPU 1 even when the master circuit 2 is in an inactive state, thereby improving the use efficiency of system resources of the semiconductor integrated circuit 50 as a whole.
  • a value “0” is previously set for the system controller 7 as a master ID.
  • the master data register 8 is a register having multiple bits. Each bit holds a status value that indicates the operation status of each master circuit. More specifically, a status value is set to a given bit in the master status register 8 , the status value indicating if the status of the master circuit 1 is in an active state (operational state) or in an inactive state (shutdown or sleep state). For example, the master circuit 1 is in an operational state when the status value is 1 (level H); the master circuit 1 is in either a shutdown or sleep state when the status value is 0 (level L).
  • an active state (hereinafter referred to as an operational state as needed) is a state in which a master circuit can issue a command to the other circuits to execute a certain processing. Also note that an inactive state not only includes a sleep state but also a state in which the function of the master circuits is substantially stopped, such as a shutdown state.
  • the bus controller 9 includes a control register 13 .
  • the bus setting is changed by changing the hold value set in the control register 13 . This operation changes the master ID that is transmitted to the slave circuit, thereby enabling a signal transfer between a master circuit and a slave circuit, a combination not initially used.
  • the bus controller 9 includes the control register 13 which is a register that includes multiple bits. A signal value is set in the control register 13 , the signal value indicating a method for controlling the signal transfer between a master circuit and a slave circuit.
  • the bus controller 9 can change the bus setting in a way that an access request is processed in a slave circuit by regarding the access request, which is actually sent from the master circuit 4 , as an access request sent from the master circuit 2 .
  • the system controller 7 changes the setting of the hold value set in the above-mentioned control register 13 .
  • the bus setting is changed, and the access request is processed by regarding the access request, which is actually issued by the master circuit 4 , as an access request issued by the master circuit 2 .
  • the bus 10 is a transmission line for signals and includes an address bus, data bus and a control line. Connected to the bus 10 are the master circuit 5 to 10 , the slave circuit 6 , the system controller 7 , the master status register 8 and the bus controller 9 .
  • the master circuit 1 is in an operational state
  • the master circuit 2 is in an operational state
  • the master circuit 3 is in an operational state
  • the CPU 1 is in a sleep state
  • the CPU 2 is in a sleep state.
  • an operational state is indicated as RUN
  • a sleep state is indicated as SLEEP.
  • the master circuit 2 goes into a sleep state.
  • a status value in the master status register 8 , indicating the operation status of the master circuit 2
  • a value indicating that the master circuit 2 is in an inactive state is set.
  • the system controller 7 changes the bus setting and reassigns the M2 region 15 previously assigned to the master circuit 2 to the CPU 1 . More specifically, the system controller 7 changes the hold value in the control register 13 from a value indicating the master circuit 2 to a value indicating the CPU 1 . Thereby, an access request from the CPU 1 is processed at the slave circuit 6 as an access request from the master circuit 2 .
  • 2 is transmitted to the slave circuit 6 as a master ID, and the M2 region 15 of the slave circuit 6 is made available to the CPU 1 .
  • the system controller 7 causes the CPU 1 go into the operational state by starting the CPU 1 and instructing the CPU 1 to start processing.
  • a status value in the master status register 8 , indicating the operation status of the CPU 1 , a value indicating that the CPU 1 is in an active state is set.
  • the CPU 1 goes into a sleep state.
  • a status value in the master status register 8 , indicating the operation status of the CPU 1
  • a value indicating that CPU 1 is in an inactive state is set.
  • the system controller 7 initiates the bus setting and reassigns the M2 region 15 previously assigned to the CPU 1 to the master circuit 2 . More specifically, the system controller 7 puts the hold value in the control register 13 back to a value indicating the master circuit 2 , which is the initial value.
  • the master ID transmitted to the slave circuit 6 is changed from 2 to 4 . After this, an access request issued from the CPU 1 to the slave circuit 6 is recognized as an access request issued from the CPU 1 at the slave circuit 6 ; the access request will not be processed as one from the master circuit 2 .
  • the state of the master circuit 2 never changes from a sleep state to an operational state between the time t 1 to the time t 2 . This is because the system controller 7 does not start the master circuit 2 at least while the M2 region 15 is assigned to the CPU 1 .
  • the end of processing by the CPU 1 may be detected by a way that the system controller 7 checks the operation status of the CPU 1 via the interface circuit 11 .
  • the end of processing by the CPU 1 may be detected by a way that the system controller 7 receives a process end notification from the CPU 1 via the bus 10 .
  • the master circuit 3 goes into a sleep state.
  • a status value in the master status register 8 , indicating the operation status of the master circuit 3
  • a value indicating that the master circuit 3 is in an inactive state is set.
  • the system controller 7 changes the bus setting and reassigns the M3 region 16 previously assigned to the master circuit 3 to the CPU 1 .
  • the slave circuit 6 processes an access request from the CPU 1 as an access request from the master circuit 3 . That is to say, The M3 region 16 is made available to the CPU 1 .
  • the system controller 7 puts the CPU 1 in an operational state after changing the bus setting.
  • a status value in the master status register 8 , indicating the operation status of the CPU 1 , a value indicating that the CPU 1 is in an active state is set.
  • the CPU 1 goes into a sleep state.
  • a status value in the master status register 8 , indicating the operation status of the CPU 1
  • a value indicating that the CPU 1 is in an inactive state is set.
  • the system controller 7 Upon detecting the end of processing by the CPU 1 , the system controller 7 initiates the bus setting and reassigns the M3 region 16 previously assigned to the CPU 1 to the master circuit 3 . Thereafter, the M3 region 16 does not process an access from the CPU 1 as an access from the master circuit 3 .
  • the master circuit 1 and the master circuit 2 are in a sleep state.
  • a status value in the master status register 8 , indicating the operation status of the master circuit 1
  • a value indicating that the master circuit 1 is in an inactive state is set.
  • the system controller 7 initiates the bus setting and reassigns the M1 region 14 previously assigned to the master circuit 1 to the CPU 1 .
  • the system controller 7 initiates the bus setting and reassigns the M2 region 15 previously assigned to the master circuit 2 to the CPU 2 .
  • the slave circuit 6 processes an access request issued from the CPU 1 as an access request issued from the master circuit 1 .
  • the slave circuit 6 processes an access request issued from the CPU 2 as an access request issued from the master circuit 2 . That is to say, the master ID transmitted to the slave circuit 6 is changed, and the M1 region 14 of the slave circuit 6 is made available to the CPU 1 . Also, the M2 region 15 of the slave circuit 6 is made available to the CPU 2 .
  • the system controller 7 puts the CPU 1 and CPU 2 in an active state.
  • a status value in the master status register 8 , indicating the operation status of the CPU 1 , a value indicating that the CPU 1 is in an active state is set.
  • the CPU 1 and the CPU 2 go into a sleep state.
  • a state value in the master status register 8 , indicating the operation status of the CPU 1
  • a value indicating that the CPU 1 is in an inactive state is set.
  • a state value in the master status register 8 , indicating the operation status of the CPU 2
  • a value indicating that the CPU 2 is in an inactive state is set.
  • the system controller 7 Upon detecting the end of processing by the CPU 1 and by the CPU 2 , the system controller 7 initiates the bus setting and reassigns the M1 region 14 previously assigned to the CPU 1 to the master circuit 1 and reassigns the M2 region 15 previously assigned to the CPU 2 to the master circuit 2 . Thereafter, the M1 region 14 does not process an access from the CPU 1 as an access from the master circuit 1 . Also, the M2 region 15 does not process an access from the CPU 2 as an access from the master circuit 2 .
  • the system controller changes the bus setting. Based on this change of the bus setting, the master ID transmitted to the slave circuit is changed. Then, the slave circuit previously assigned to the master circuit that has gone into an inactive state is reassigned to another master circuit. Thereby, the slave circuit previously assigned to the master circuit that has gone into an inactive state is made available to the master circuit to which the slave circuit is now assigned. Accordingly, the use efficiency of system resources is improved.
  • system controller initiates the bus setting and reassigns the slave circuit previously assigned to another circuit to the original master circuit. This prevents the interruption to the primary operation of the semiconductor integrated circuit.
  • FIG. 4 shows a schematic block diagram of a semiconductor integrated circuit 51 .
  • the semiconductor integrated circuit 51 according to this embodiment is different from the semiconductor integrated circuit 50 according to the first embodiment in that the semiconductor integrated circuit 51 includes an external terminal 21 and a system controller 20 .
  • the system controller 20 is connected to the interface circuit 11 of the CPU 1 via the external terminal 21 .
  • the system controller 20 is connected to the interface circuit 12 of the CPU 2 via the external terminal 21 .
  • the system controller 20 is mounted outside a semiconductor chip on which the semiconductor integrated circuit 51 is mounted. Note that the system controller 20 may be monolithically formed with the semiconductor integrated circuit 51 .
  • the above-mentioned change of bus setting and initiation of bus setting are executed by the CPU 1 and the CPU 2 that are controlled by the system controller 20 .
  • the CPU 1 which is started by the system controller 20 , monitors the operation statuses of the other master circuits by referring to the master status register 8 . If the master circuit is in a sleep state, the CPU 1 changes the bus setting and assigns the M1 region 14 to the CPU 2 . This enables the CPU 2 , which is started by the system controller 20 , to use the M1 region 14 . Thereby, the slave circuit previously assigned to the master circuit in an inactive state is made available to the master circuit to which the slave circuit is now assigned. Accordingly, the use efficiency of system resources in the semiconductor integrated circuit 51 is improved.
  • the CPU 1 Upon detecting that the processing by the CPU 2 is ended, the CPU 1 , which has been started by the system controller 20 , initiates the bus setting and reassigns the M1 region 14 previously assigned to the CPU 2 to the master circuit 1 . Thereafter, the slave circuit 6 does not process an access request issued from the CPU 2 as an access request issued from the master circuit 1 .
  • change of bus setting and initiation of bus setting are executed by the CPU 1 that is controlled by the system controller 20 . That is to say, changing of bus setting and initiation of bus setting do not have to be executed by a system controller inside a semiconductor integrated circuit.
  • FIG. 5 shows a schematic block diagram of a semiconductor integrated circuit 52 .
  • FIG. 6 shows a schematic timing diagram illustrating the operation of a master module.
  • FIG. 7 shows a schematic timing diagram illustrating the operation of the semiconductor integrated circuit 52 .
  • the semiconductor integrated circuit 52 according to this embodiment is different from the semiconductor integrated circuit 50 according to the first embodiment in that the semiconductor integrated circuit 52 includes a master module 30 and a mode control register 35 . Note that the master circuits 4 and 5 are omitted from the drawings.
  • the master module 30 is a circuit module including multiple master circuits.
  • the master ID “ 6 ” is preset in the master module 30 .
  • the master module 30 includes an IP circuit (functional circuit) 31 and a master circuit 32 .
  • the IP circuit 31 is a master circuit that carries out predetermined functions.
  • the master circuit 32 is a small-scale CPU that has smaller circuit size then the IP circuit 31 .
  • the master circuit 32 is occasionally called a CPU 3 .
  • the IP circuit 31 includes a hardware (for example, an ALU: Arithmetic and Logic Unit) 36 and a memory 37 .
  • the CPU 3 is able to access the hardware 36 and the memory 37 , which are located inside the IP circuit 31 , via an interface in the IP circuit 31 .
  • the CPU 3 includes an interface circuit (input/output circuit) 38 .
  • the IP circuit 31 is connected to the bus 10 via a bus 34 , and the CPU 3 is connected to the bus 10 via the bus 34 .
  • the CPU 3 is also connected to a slave circuit (the hardware 36 and the memory 37 ) inside the IP circuit 31 via a bus 33 .
  • An interface circuit 38 of the CPU 3 is connected to the bus 10 .
  • the CPU 3 is connected to the system controller 7 via the bus 10 .
  • the mode control register 35 is connected to the system controller 7 via the bus 10 .
  • the mode control register 35 holds a predetermined value corresponding to the setting condition of the bus 33 and the bus 34 .
  • the bus 34 is controlled so as to enable the CPU 3 to access the bus 10 and not to enable the IP circuit 31 to access the bus 10 .
  • the hold value in the mode control register 35 is 0 (level L)
  • the bus 34 is controlled so as to enable the IP circuit 31 to access the bus 10 and not to enable the CPU 3 to access the bus 10 .
  • the mode control register 35 in response to the change of the hold value in the mode control register 35 , the mode control register 35 exclusively (selectively) enables either the IP circuit 31 or the CPU 3 to access the bus 10 .
  • the CPU 3 when in an operational state, the CPU 3 is accessible to the slave circuit inside the IP circuit 31 via the bus 33 that is in an active state.
  • the mode control register 35 outputs to the buses 33 and 34 a mode signal corresponding to the hold value in the mode control register 35 .
  • the operation of the master module 30 is described with reference to FIG. 6 .
  • the IP circuit 31 is in an operational (RUN) state, the mode signal is level L, and the CPU 3 is in a sleep state.
  • the IP circuit 31 goes into a sleep state.
  • a state value in the master status register 8 , indicating the operation status of the master module 30 , a value indicating that the master module 30 is in an inactive state is set. It is assumed here that the operation statuses of the IP circuit 31 and the master circuit 32 can be determined by referring to the status value indicating the operation status of the master module 30 . Needless to say, a status value may be assigned to each of the IP circuit 31 and the master circuit 32 .
  • the system controller 7 sets the hold value in the mode control register 35 to level H and the mode signal to level H. This enables the CPU 3 to access the slave circuit inside the IP circuit 31 via the bus 33 . Additionally, the CPU 3 is enabled to access the bus 10 via the bus 34 .
  • the system controller 7 also starts the CPU 3 . Consequently, the master module 30 is set so as to operate independently. In other words, the CPU becomes accessible to the bus 10 . Meanwhile, the CPU does not have to be started via the interface circuit 38 .
  • the CPU 3 performs a different function which is not implemented in the IP circuit 31 . This makes the master module 30 a multi-functional module.
  • the CPU 3 can use via the bus 33 the slave circuit (the hardware 36 and the memory 37 ) inside the IP circuit 31 that is in a sleep state.
  • the use efficiency of system resources in the semiconductor integrated circuit 52 improves as the CPU 3 utilizes the slave circuit inside the IP circuit 31 .
  • the system controller 7 may directly access the IP circuit 31 .
  • the CPU 3 goes into a sleep state.
  • the system controller 7 Upon detecting the end of processing by the CPU 3 , the system controller 7 initiates the setting of the mode control register 35 . That is to say, the system controller 7 puts the hold value in the mode control register back to level L and sets the mode signal back to level L. Accordingly, the master module 30 is set so that the IP circuit 31 can operate independently.
  • the IP circuit 31 goes into an operational state.
  • a status value in the master status register 8 , indicating the operation status of the master module 30 , a value indicating that the master module 30 is in an active state is set.
  • a different function is added to the master module 30 by causing the CPU 3 to function when the IP circuit 31 is not functioning.
  • the use efficiency of system resources in the semiconductor integrated circuit 52 improves as the CPU 3 can utilize the slave circuit (the hardware 36 and the memory 37 ) inside the IP circuit 31 .
  • the master circuit 1 When the time is t 0 , the master circuit 1 is in an operational (RUN) state, the master circuit 2 is in an operational (RUN) state, the master circuit 3 is in an operational (RUN) state, the IP circuit 31 is in an operational (RUN) state, and the mode signal is level L and the CUP 3 is in a sleep state.
  • the master circuit 2 goes into a sleep state, and the master module 30 also goes into a sleep state.
  • a state value in the master status register 8 , indicating the operation status of the master circuit 2 , a value indicating that the master circuit 2 is in an inactive state is set. The same applies to the master module 30 .
  • the system controller 7 changes the bus setting and reassigns the M2 region 15 previously assigned to the master circuit 2 to the master module 30 .
  • the slave circuit 6 processes an access request issued from the master module 30 as an access request issued from the master circuit 2 . That is to say, the M2 region 15 is made available to the master module 30 .
  • the system controller 7 After changing the bus setting, the system controller 7 sets the hold value in the mode control register 35 to level H and the mode signal to level H. The system controller 7 also starts the CPU 3 . This allows CPU 3 to perform a different function which is not implemented in the IP circuit 31 while the IP circuit 31 is in a sleep state. That is, a multi-functional master module is achieved.
  • the slave circuit (the hardware 36 and the memory 37 ) inside the IP circuit 31 that is in a sleep state is made available to the CPU 3 connected thereto via the bus 33 .
  • This improves the use efficiency of system resources in the IP circuit 31 .
  • the CPU 3 because the setting of the bus 10 has been changed, the CPU 3 is able to access the M2 region 15 via the bus 10 . That is to say, even when the operation status of the master module 30 is altered with the change in the hold value in the mode control register 35 , the M2 region 15 can be set in a state in which the M2 region 15 may be useable by the CPU 3 . This further improves the use efficiency of system resources in the semiconductor integrated circuit 52 .
  • the CPU 3 goes into a sleep state.
  • the system controller Upon detecting the end of processing by the CPU 3 , the system controller initiates the bus setting and reassigns the M2 region 15 previously assigned to the master module 30 to the master circuit 2 . This operation initiates the master ID that is transmitted to the slave circuit 6 . Thereafter, an access request issued from the master module 30 is not processed as an access request issued from the master circuit 2 .
  • the system controller 7 also initiates the setting of the mode control register 35 . That is to say, the system controller 7 sets the hold value in the mode control register 35 back to level L and the mode signal back to level L. Consequently, the master module 30 is set so that the IP circuit 31 is able to operate independently.
  • the IP circuit 31 goes into an operational state.
  • a state value in the master status register 8 , indicating the operation status of the master module 30 , a value indicating that the master module 30 is in an active state is set.
  • a multi-functional master module is achieved by using the CPU 3 .
  • the CPU 3 can access the slave circuit (the hardware 36 and the memory 37 ) in the IP circuit 31 via the bus 33 that is in an active state. Accordingly, the use efficiency of system resources inside the master module 30 is improved.
  • the bus setting is changed, and the M2 region 15 previously assigned to the master circuit 2 is reassigned to the master module 30 . Then the M2 region 15 is made available to the CPU 3 . By this, the slave circuit previously assigned to the master circuit that is in an inactive state becomes available to the CPU 3 as well. Accordingly, the use efficiency of system resources inside the semiconductor integrated circuit 52 is further improved.

Abstract

When a master circuit is in an inactive state, a slave circuit assigned to the master circuit is not used. Accordingly, the use efficiency of system recourses is decreased. To solve the above problem, a semiconductor integrated circuit reassigns a M2 region of a slave circuit, previously assigned to a first master circuit, to a second master circuit. That is to say, the M2 region of the slave circuit previously assigned to the first master circuit is reassigned to the second master circuit based on the operational status of the first master circuit. This improves the use efficiency of system resources of the semiconductor integrated circuit.

Description

    BACKGROUND OF THE INVENTION
  • 1. Field of the Invention
  • The present invention relates to a semiconductor integrated circuit and a method for controlling a semiconductor integrated circuit.
  • 2. Background Art
  • Semiconductor integrated circuits have been remarkably improved to be more multifunctional and highly integrated in recent years. In such a semiconductor integrated circuit, multiple functional circuits (intellectual property (IP) circuits) implementing different functions are monolithically integrated.
  • Multiple master circuits and multiple slave circuits are generally mounted in such a multifunctional semiconductor integrated circuit. A master circuit is a circuit that instructs other circuits to execute given processing. Examples of a master circuit include a central processing unit (CPU), a digital signal processor (DSP) and other signal-processing circuits (such as an image processing circuit). On the other hand, a slave circuit is a circuit that executes a given processing in response to an instruction issued by others. An example of a slave circuit is a semiconductor storage device (hereinafter referred to as a memory when appropriate).
  • Systems each including master circuits and slave circuits are disclosed in Japanese Patent Application Publication Nos. Hei 6-274459, 2003-296294, 2001-166960, and Hei 2-85953. In a technique disclosed in Japanese Patent Application Publication No. Hei 6-274459, the connection relation between processors is allowed to be changed, so that the versatility of LSI is improved. In a technique disclosed in Japanese Patent Application Publication No. 2003-296294, an input/output terminal is assigned to one of multiple function modules on the basis of profile data that indicates whether each of the function modules is used or not. In a technique disclosed in Japanese Patent Application Publication No. 2001-166960, an individual region for each processor is assigned to a shared memory. Japanese Patent Application Publication No. Hei 2-85953 discloses a technique for performing a fault analysis on a master module.
  • In some semiconductor integrated circuits each including master circuits and slave circuits, a given slave circuit is previously assigned to a given master circuit. In this case, the slave circuit assigned to the master circuit is unavailable when the master circuit is in an inactive state (in a shutdown state or a sleep state).
  • In a semiconductor integrated circuit including multiple master circuits and multiple slave circuits, the number of unavailable slave circuits increases as the number of master circuits in an inactive state increases. This may result in a significant decrease in the use efficiency of system resources. In other words, a slave circuit assigned to a certain master circuit becomes unavailable when the certain master circuit goes into an inactive state. Accordingly, the use efficiency of system recourses decreases.
  • SUMMARY
  • The semiconductor integrated circuit according to the present invention includes a first slave circuit, a first master circuit, and a second master circuit. The first slave circuit previously assigned to the first master circuit is reassigned to the second master circuit in accordance with the operational status of the first master circuit.
  • By reassigning the first slave circuit previously assigned to the first master circuit to the second master circuit in accordance with the operational status of the first master circuit, the first slave circuit can be used not only by the first master circuit but also by the second master circuit. Accordingly, the use efficiency of system resources is improved.
  • The method for controlling the semiconductor integrated circuit according to the present invention is a method for controlling a semiconductor integrated circuit having a first and a second master circuits and at least one slave circuit. In this method, the slave circuit previously assigned to the first master circuit is reassigned to the second circuit when the operational status of the first master circuit is detected to be in an inactive state.
  • By reassigning the first slave circuit previously assigned to the first master circuit to the second master circuit when the operational status of the first master circuit is inactive, the slave circuit can be used not only by the first master circuit but also by the second master circuit. Accordingly, the use efficiency of system resources of the semiconductor integrated circuit is improved.
  • According to the present invention, it is possible to improve the use efficiency of system resources in a semiconductor integrated circuit with master circuits and slave circuits.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • FIG. 1 is a schematic block diagram of a semiconductor integrated circuit 50.
  • FIG. 2 is an explanatory diagram for describing the order of superiority of the circuit blocks.
  • FIG. 3 is a schematic timing diagram for describing the operation of the semiconductor integrated circuit 50.
  • FIG. 4 is a schematic block diagram of a semiconductor integrated circuit 51.
  • FIG. 5 is a general block diagram of the semiconductor integrated circuit 52.
  • FIG. 6 is a general timing diagram illustrating the operation of a master module.
  • FIG. 7 is a general timing diagram illustrating the operation of the semiconductor integrated circuit 52.
  • DESCRIPTION OF THE PREFERRED EMBODIMENTS
  • Embodiments of the present invention are described below with reference to the accompanying drawings. Each embodiment is simplified for convenience of the description. The technical scope of the present invention should not be construed narrowly based on the simplified descriptions in the drawings. The same reference numerals are denoted to the same components, and descriptions thereof are not repeated.
  • First Embodiment
  • A first embodiment is described hereinafter in connection with FIGS. 1 through 3. FIG. 1 shows a schematic block diagram of a semiconductor integrated circuit 50. FIG. 2 shows an explanatory diagram for describing the order of superiority of the circuit blocks. FIG. 3 shows a schematic timing diagram for describing the operation of the semiconductor integrated circuit 50.
  • As shown in FIG. 1, the semiconductor integrated circuit 50 includes master circuits 1 to 5, a slave circuit 6, a system controller 7, a master status register 8, a bus controller 9 and a bus 10. The semiconductor integrated circuit 50 i-s a monolithic semiconductor device. The semiconductor integrated circuit 50 is made multi-functional based on SoC (System on Chip) technology.
  • The master circuits 1 to 5 instruct other circuits to execute a predetermined processing. The master circuits may be, for example, a CPU (Central Processing Unit), a DSP (Digital Signal Processor) or other signal-processing circuits (such as an image processing circuit).
  • A master ID (master identifier) is previously set for each of the master circuits 1 to 5. A master ID=1 is set for the master circuit 1, a master ID=2 for the master circuit 2, a master ID=3 for the master circuit 3, a master ID=4 for the master circuit 4, and a master ID=5 for the master circuit 5. The master circuits 1 to 5 are connected to the bus controller 9 via the bus 10.
  • The master circuits 4 and 5 are small-scale CPUs (miniature CPU) with a smaller circuit size than the master circuits 1 to 3. The master circuit 4 has an interface circuit (input/output circuit) 11 that is connected to the bus 10. The master circuit 5 also has an interface circuit (input/output circuit) 12 that is connected to the bus 10. The master circuit 4 may be called CPU 1 and the master circuit 5 may be called CPU 2 in the following descriptions.
  • The slave circuit 6 executes a predetermined processing in response to an instruction from outside. A slave circuit may be, for example, a memory. The slave circuit 6 determines which master circuit has made an access, based on its master ID. Here, the slave circuit 6 is divided into three regions. Specifically, the slave circuit 6 includes an M1 region (slave circuit) 14 as a first region, an M2 region (slave circuit) 15 as a second region, and an M3 region (slave circuit) 16 as a third region. The M1 region 14 is assigned for the master circuit 1. In other words, the M1 region 14 is a dedicated region for the master circuit 1. The slave circuit 6 determines, based on a master ID, if an access to the M1 region 14 is made by the master circuit 1. That is to say, the slave circuit 6 permits an access to the M1 region 14 if a master ID transmitted via the bus 10 is the one previously set in the master circuit 1. On the other hand, the slave circuit 6 denies an access to the M1 region 14 if the value of the master ID transmitted via the bus 10 is not the one set in the master circuit 1, but the one set in a master circuit other than the master circuit 1. Similarly, the M2 region 15 is assigned to the master circuit 2, and the M3 region 16 is assigned to the master circuit 3. The above-mentioned explanation on the access control to the M1 region 14 also applies to the M2 region 15 and to the M3 region 16. Although the slave circuit 6 is divided to form the M1 region 14, the M1 region 14 alone is assumed to work as a slave circuit. The same applies to the M2 region 15 and to the M3 region 16.
  • The system controller 7 is a master circuit that controls the whole system of the semiconductor integrated circuit 50. That is to say, as shown in FIG. 2, the system controller 7 is a circuit block of the most significant hierarchy that controls the master circuits 1 to 5. In addition, as shown in FIG. 2, the master circuits 1 to 5 form a circuit block of the intermediate hierarchy that controls the slave circuit 6. The slave circuit 6 is a circuit block of the lowest hierarchy that operates in response to instructions from the master circuits 1 to 5.
  • The system controller 7 controls each of the master circuits 1 to 5. For example, the system controller 7 not only controls start and restart of the master circuit 1 and start and end of processing by the master circuit 1, but also gives instructions to the other master circuits concurrently.
  • The system controller 7 is connected to the interface circuit 11 of the CPU 1. The system controller 7 is able to issue commands to the master circuit 4 via the interface circuit 11 and access the internal resources of the master circuit 4. As to the CPU 2, the system controller 7 is also able to carry out the similar operations via the interface circuit 12.
  • The system controller 7 checks the operation status of each of the master circuits 1 to 5 by referring to the master status register 8. The system controller 7 changes the bus setting based on the operation status of each of the master circuits 1 to 5, and reassigns a slave circuit previously assigned to a given master circuit to another master circuit.
  • For example, the system controller 7 reassigns the M2 region 15 previously assigned to the master circuit 2 to the CPU 1 when the master circuit 2 is in an inactive state. The M2 region 15 is utilized by the CPU 1 even when the master circuit 2 is in an inactive state, thereby improving the use efficiency of system resources of the semiconductor integrated circuit 50 as a whole.
  • As shown in FIG. 1, a value “0” is previously set for the system controller 7 as a master ID. The master ID=0 set for the system controller 7 is transmitted to the bus controller 9 via the bus 10.
  • The master data register 8 is a register having multiple bits. Each bit holds a status value that indicates the operation status of each master circuit. More specifically, a status value is set to a given bit in the master status register 8, the status value indicating if the status of the master circuit 1 is in an active state (operational state) or in an inactive state (shutdown or sleep state). For example, the master circuit 1 is in an operational state when the status value is 1 (level H); the master circuit 1 is in either a shutdown or sleep state when the status value is 0 (level L).
  • Note that an active state (hereinafter referred to as an operational state as needed) is a state in which a master circuit can issue a command to the other circuits to execute a certain processing. Also note that an inactive state not only includes a sleep state but also a state in which the function of the master circuits is substantially stopped, such as a shutdown state.
  • The bus controller 9 according to the present embodiment includes a control register 13. The bus setting is changed by changing the hold value set in the control register 13. This operation changes the master ID that is transmitted to the slave circuit, thereby enabling a signal transfer between a master circuit and a slave circuit, a combination not initially used. The bus controller 9 includes the control register 13 which is a register that includes multiple bits. A signal value is set in the control register 13, the signal value indicating a method for controlling the signal transfer between a master circuit and a slave circuit. For example, when a predetermined value is set in the control register 13, the bus controller 9 can change the bus setting in a way that an access request is processed in a slave circuit by regarding the access request, which is actually sent from the master circuit 4, as an access request sent from the master circuit 2.
  • The system controller 7 changes the setting of the hold value set in the above-mentioned control register 13. This changes the bus setting so that an access request is processed by regarding the access request, which is actually issued from a master circuit, as an access request issued from another master circuit. For example, as is similar to the above specific example, when the system controller 7 sets a predetermined hold value in the control register 13, the bus setting is changed, and the access request is processed by regarding the access request, which is actually issued by the master circuit 4, as an access request issued by the master circuit 2.
  • The bus 10 is a transmission line for signals and includes an address bus, data bus and a control line. Connected to the bus 10 are the master circuit 5 to 10, the slave circuit 6, the system controller 7, the master status register 8 and the bus controller 9.
  • The operation of the semiconductor integrated circuit 50 is described below with reference to FIG. 3.
  • At time t0, the master circuit 1 is in an operational state, the master circuit 2 is in an operational state, the master circuit 3 is in an operational state, the CPU 1 is in a sleep state, and the CPU 2 is in a sleep state. In FIG. 3, an operational state is indicated as RUN, and a sleep state is indicated as SLEEP.
  • At time t1, the master circuit 2 goes into a sleep state. At this time, as a status value, in the master status register 8, indicating the operation status of the master circuit 2, a value indicating that the master circuit 2 is in an inactive state is set. In response to this change of the status value, the system controller 7 changes the bus setting and reassigns the M2 region 15 previously assigned to the master circuit 2 to the CPU 1. More specifically, the system controller 7 changes the hold value in the control register 13 from a value indicating the master circuit 2 to a value indicating the CPU 1. Thereby, an access request from the CPU 1 is processed at the slave circuit 6 as an access request from the master circuit 2. That is to say, 2 is transmitted to the slave circuit 6 as a master ID, and the M2 region 15 of the slave circuit 6 is made available to the CPU 1. After changing the bus setting, the system controller 7 causes the CPU 1 go into the operational state by starting the CPU 1 and instructing the CPU 1 to start processing. At this time, as a status value, in the master status register 8, indicating the operation status of the CPU 1, a value indicating that the CPU 1 is in an active state is set.
  • At time t2, the CPU 1 goes into a sleep state. At this time, as a status value, in the master status register 8, indicating the operation status of the CPU 1, a value indicating that CPU 1 is in an inactive state is set. In response to this change of the status value, when detecting the end of processing performed by the CPU 1, the system controller 7 initiates the bus setting and reassigns the M2 region 15 previously assigned to the CPU 1 to the master circuit 2. More specifically, the system controller 7 puts the hold value in the control register 13 back to a value indicating the master circuit 2, which is the initial value. By this, the master ID transmitted to the slave circuit 6 is changed from 2 to 4. After this, an access request issued from the CPU 1 to the slave circuit 6 is recognized as an access request issued from the CPU 1 at the slave circuit 6; the access request will not be processed as one from the master circuit 2.
  • Incidentally, the state of the master circuit 2 never changes from a sleep state to an operational state between the time t1 to the time t2. This is because the system controller 7 does not start the master circuit 2 at least while the M2 region 15 is assigned to the CPU 1.
  • In addition, there is another method for confirming the end of processing at the CPU 1 in addition to the method in which the system controller 7 checks the status value in the master status register 8. That is, the end of processing by the CPU 1 may be detected by a way that the system controller 7 checks the operation status of the CPU 1 via the interface circuit 11. Alternatively, the end of processing by the CPU 1 may be detected by a way that the system controller 7 receives a process end notification from the CPU 1 via the bus 10.
  • At time t3, the master circuit 3 goes into a sleep state. At this time, as a status value, in the master status register 8, indicating the operation status of the master circuit 3, a value indicating that the master circuit 3 is in an inactive state is set. In response to the change of the status value, the system controller 7 changes the bus setting and reassigns the M3 region 16 previously assigned to the master circuit 3 to the CPU 1. This changes the master ID transmitted to the slave circuit 6 from 4 to 3. Thereby, the slave circuit 6 processes an access request from the CPU 1 as an access request from the master circuit 3. That is to say, The M3 region 16 is made available to the CPU 1. The system controller 7 puts the CPU 1 in an operational state after changing the bus setting. As a status value, in the master status register 8, indicating the operation status of the CPU 1, a value indicating that the CPU 1 is in an active state is set.
  • At time t4, the CPU 1 goes into a sleep state. At this time, as a status value, in the master status register 8, indicating the operation status of the CPU 1, a value indicating that the CPU 1 is in an inactive state is set. Upon detecting the end of processing by the CPU 1, the system controller 7 initiates the bus setting and reassigns the M3 region 16 previously assigned to the CPU 1 to the master circuit 3. Thereafter, the M3 region 16 does not process an access from the CPU 1 as an access from the master circuit 3.
  • At time t5, the master circuit 1 and the master circuit 2 are in a sleep state. At this time, as a status value, in the master status register 8, indicating the operation status of the master circuit 1, a value indicating that the master circuit 1 is in an inactive state is set. The same applies to the master circuit 2. In response to these changes of the status values, the system controller 7 initiates the bus setting and reassigns the M1 region 14 previously assigned to the master circuit 1 to the CPU 1. In the meantime, the system controller 7 initiates the bus setting and reassigns the M2 region 15 previously assigned to the master circuit 2 to the CPU 2.
  • Thereby, the slave circuit 6 processes an access request issued from the CPU 1 as an access request issued from the master circuit 1. Likewise, the slave circuit 6 processes an access request issued from the CPU 2 as an access request issued from the master circuit 2. That is to say, the master ID transmitted to the slave circuit 6 is changed, and the M1 region 14 of the slave circuit 6 is made available to the CPU 1. Also, the M2 region 15 of the slave circuit 6 is made available to the CPU 2. After changing the bus setting, the system controller 7 puts the CPU 1 and CPU 2 in an active state. As a status value, in the master status register 8, indicating the operation status of the CPU 1, a value indicating that the CPU 1 is in an active state is set. The same applies to the CPU 2 At time t6, the CPU 1 and the CPU 2 go into a sleep state. At this time, as a state value, in the master status register 8, indicating the operation status of the CPU 1, a value indicating that the CPU 1 is in an inactive state is set. Also, as a state value, in the master status register 8, indicating the operation status of the CPU 2, a value indicating that the CPU 2 is in an inactive state is set.
  • Upon detecting the end of processing by the CPU 1 and by the CPU 2, the system controller 7 initiates the bus setting and reassigns the M1 region 14 previously assigned to the CPU 1 to the master circuit 1 and reassigns the M2 region 15 previously assigned to the CPU 2 to the master circuit 2. Thereafter, the M1 region 14 does not process an access from the CPU 1 as an access from the master circuit 1. Also, the M2 region 15 does not process an access from the CPU 2 as an access from the master circuit 2.
  • In this embodiment, as it is clear from the above descriptions, when a given master circuit goes into an inactive state, the system controller changes the bus setting. Based on this change of the bus setting, the master ID transmitted to the slave circuit is changed. Then, the slave circuit previously assigned to the master circuit that has gone into an inactive state is reassigned to another master circuit. Thereby, the slave circuit previously assigned to the master circuit that has gone into an inactive state is made available to the master circuit to which the slave circuit is now assigned. Accordingly, the use efficiency of system resources is improved.
  • In addition, the system controller initiates the bus setting and reassigns the slave circuit previously assigned to another circuit to the original master circuit. This prevents the interruption to the primary operation of the semiconductor integrated circuit.
  • Second Embodiment
  • A second embodiment is described hereinafter with reference to FIG. 4. FIG. 4 shows a schematic block diagram of a semiconductor integrated circuit 51.
  • As shown in FIG. 4, the semiconductor integrated circuit 51 according to this embodiment is different from the semiconductor integrated circuit 50 according to the first embodiment in that the semiconductor integrated circuit 51 includes an external terminal 21 and a system controller 20. The system controller 20 is connected to the interface circuit 11 of the CPU 1 via the external terminal 21. The system controller 20 is connected to the interface circuit 12 of the CPU 2 via the external terminal 21. Here, the system controller 20 is mounted outside a semiconductor chip on which the semiconductor integrated circuit 51 is mounted. Note that the system controller 20 may be monolithically formed with the semiconductor integrated circuit 51.
  • In this embodiment, the above-mentioned change of bus setting and initiation of bus setting are executed by the CPU 1 and the CPU 2 that are controlled by the system controller 20.
  • More specifically, the CPU 1, which is started by the system controller 20, monitors the operation statuses of the other master circuits by referring to the master status register 8. If the master circuit is in a sleep state, the CPU 1 changes the bus setting and assigns the M1 region 14 to the CPU 2. This enables the CPU 2, which is started by the system controller 20, to use the M1 region 14. Thereby, the slave circuit previously assigned to the master circuit in an inactive state is made available to the master circuit to which the slave circuit is now assigned. Accordingly, the use efficiency of system resources in the semiconductor integrated circuit 51 is improved.
  • Upon detecting that the processing by the CPU 2 is ended, the CPU 1, which has been started by the system controller 20, initiates the bus setting and reassigns the M1 region 14 previously assigned to the CPU 2 to the master circuit 1. Thereafter, the slave circuit 6 does not process an access request issued from the CPU 2 as an access request issued from the master circuit 1.
  • In this embodiment, as it is clear from the above descriptions, change of bus setting and initiation of bus setting are executed by the CPU 1 that is controlled by the system controller 20. That is to say, changing of bus setting and initiation of bus setting do not have to be executed by a system controller inside a semiconductor integrated circuit. In addition, it is possible to assign the M1 region 14 not to the CPU 2 but to the CPU 1 that is controlled by the system controller 20 by adopting an appropriate system configuration. In this case, CPU 1 should be able to access the master register 8 and control register 13 regardless of change of the bus setting.
  • Third Embodiment
  • A third embodiment is described below with reference to FIGS. 5 through 7. FIG. 5 shows a schematic block diagram of a semiconductor integrated circuit 52. FIG. 6 shows a schematic timing diagram illustrating the operation of a master module. FIG. 7 shows a schematic timing diagram illustrating the operation of the semiconductor integrated circuit 52.
  • The semiconductor integrated circuit 52 according to this embodiment is different from the semiconductor integrated circuit 50 according to the first embodiment in that the semiconductor integrated circuit 52 includes a master module 30 and a mode control register 35. Note that the master circuits 4 and 5 are omitted from the drawings.
  • The master module 30 is a circuit module including multiple master circuits. The master ID “6” is preset in the master module 30.
  • The master module 30 includes an IP circuit (functional circuit) 31 and a master circuit 32. The IP circuit 31 is a master circuit that carries out predetermined functions. The master circuit 32 is a small-scale CPU that has smaller circuit size then the IP circuit 31. Hereinafter, the master circuit 32 is occasionally called a CPU 3.
  • Included inside the IP circuit 31 are a hardware (for example, an ALU: Arithmetic and Logic Unit) 36 and a memory 37. The CPU 3 is able to access the hardware 36 and the memory 37, which are located inside the IP circuit 31, via an interface in the IP circuit 31. The CPU 3 includes an interface circuit (input/output circuit) 38.
  • The IP circuit 31 is connected to the bus 10 via a bus 34, and the CPU 3 is connected to the bus 10 via the bus 34. The CPU 3 is also connected to a slave circuit (the hardware 36 and the memory 37) inside the IP circuit 31 via a bus 33. An interface circuit 38 of the CPU 3 is connected to the bus 10. The CPU 3 is connected to the system controller 7 via the bus 10.
  • The mode control register 35 is connected to the system controller 7 via the bus 10. The mode control register 35 holds a predetermined value corresponding to the setting condition of the bus 33 and the bus 34. For example, when the hold value in the mode control register 35 is 1 (level H), the bus 34 is controlled so as to enable the CPU 3 to access the bus 10 and not to enable the IP circuit 31 to access the bus 10. On the other hand, when the hold value in the mode control register 35 is 0 (level L), the bus 34 is controlled so as to enable the IP circuit 31 to access the bus 10 and not to enable the CPU 3 to access the bus 10. That is to say, in response to the change of the hold value in the mode control register 35, the mode control register 35 exclusively (selectively) enables either the IP circuit 31 or the CPU 3 to access the bus 10. In addition, when in an operational state, the CPU 3 is accessible to the slave circuit inside the IP circuit 31 via the bus 33 that is in an active state. Moreover, the mode control register 35 outputs to the buses 33 and 34 a mode signal corresponding to the hold value in the mode control register 35.
  • Here, the operation of the master module 30 is described with reference to FIG. 6.
  • At time t0, the IP circuit 31 is in an operational (RUN) state, the mode signal is level L, and the CPU 3 is in a sleep state.
  • At time t1, the IP circuit 31 goes into a sleep state. At this time, as a state value, in the master status register 8, indicating the operation status of the master module 30, a value indicating that the master module 30 is in an inactive state is set. It is assumed here that the operation statuses of the IP circuit 31 and the master circuit 32 can be determined by referring to the status value indicating the operation status of the master module 30. Needless to say, a status value may be assigned to each of the IP circuit 31 and the master circuit 32.
  • In response to the change of the status value, the system controller 7 sets the hold value in the mode control register 35 to level H and the mode signal to level H. This enables the CPU 3 to access the slave circuit inside the IP circuit 31 via the bus 33. Additionally, the CPU 3 is enabled to access the bus 10 via the bus 34.
  • The system controller 7 also starts the CPU 3. Consequently, the master module 30 is set so as to operate independently. In other words, the CPU becomes accessible to the bus 10. Meanwhile, the CPU does not have to be started via the interface circuit 38.
  • The CPU 3 performs a different function which is not implemented in the IP circuit 31. This makes the master module 30 a multi-functional module. The CPU 3 can use via the bus 33 the slave circuit (the hardware 36 and the memory 37) inside the IP circuit 31 that is in a sleep state. The use efficiency of system resources in the semiconductor integrated circuit 52 improves as the CPU 3 utilizes the slave circuit inside the IP circuit 31.
  • In addition, to determine the operation status, instead of referring to the status value, of the master status register 8, indicating the operation status of the master module 3, the system controller 7 may directly access the IP circuit 31.
  • At time t2, the CPU 3 goes into a sleep state. Upon detecting the end of processing by the CPU 3, the system controller 7 initiates the setting of the mode control register 35. That is to say, the system controller 7 puts the hold value in the mode control register back to level L and sets the mode signal back to level L. Accordingly, the master module 30 is set so that the IP circuit 31 can operate independently.
  • At time t3, the IP circuit 31 goes into an operational state. As a status value, in the master status register 8, indicating the operation status of the master module 30, a value indicating that the master module 30 is in an active state is set.
  • As mentioned above, in this embodiment, a different function is added to the master module 30 by causing the CPU 3 to function when the IP circuit 31 is not functioning. The use efficiency of system resources in the semiconductor integrated circuit 52 improves as the CPU 3 can utilize the slave circuit (the hardware 36 and the memory 37) inside the IP circuit 31.
  • Here, the operation of the semiconductor integrated circuit 52 is described with reference to FIG. 7.
  • When the time is t0, the master circuit 1 is in an operational (RUN) state, the master circuit 2 is in an operational (RUN) state, the master circuit 3 is in an operational (RUN) state, the IP circuit 31 is in an operational (RUN) state, and the mode signal is level L and the CUP 3 is in a sleep state.
  • At time t1, the master circuit 2 goes into a sleep state, and the master module 30 also goes into a sleep state. At this time, as a state value, in the master status register 8, indicating the operation status of the master circuit 2, a value indicating that the master circuit 2 is in an inactive state is set. The same applies to the master module 30.
  • The system controller 7 changes the bus setting and reassigns the M2 region 15 previously assigned to the master circuit 2 to the master module 30. This changes the master ID that is transmitted to the slave circuit 6. Specifically, the slave circuit 6 processes an access request issued from the master module 30 as an access request issued from the master circuit 2. That is to say, the M2 region 15 is made available to the master module 30.
  • After changing the bus setting, the system controller 7 sets the hold value in the mode control register 35 to level H and the mode signal to level H. The system controller 7 also starts the CPU 3. This allows CPU 3 to perform a different function which is not implemented in the IP circuit 31 while the IP circuit 31 is in a sleep state. That is, a multi-functional master module is achieved.
  • Meanwhile, the slave circuit (the hardware 36 and the memory 37) inside the IP circuit 31 that is in a sleep state is made available to the CPU 3 connected thereto via the bus 33. This improves the use efficiency of system resources in the IP circuit 31. In addition, as is similar to the first embodiment, because the setting of the bus 10 has been changed, the CPU 3 is able to access the M2 region 15 via the bus 10. That is to say, even when the operation status of the master module 30 is altered with the change in the hold value in the mode control register 35, the M2 region 15 can be set in a state in which the M2 region 15 may be useable by the CPU 3. This further improves the use efficiency of system resources in the semiconductor integrated circuit 52.
  • At time t2, the CPU 3 goes into a sleep state. Upon detecting the end of processing by the CPU 3, the system controller initiates the bus setting and reassigns the M2 region 15 previously assigned to the master module 30 to the master circuit 2. This operation initiates the master ID that is transmitted to the slave circuit 6. Thereafter, an access request issued from the master module 30 is not processed as an access request issued from the master circuit 2.
  • The system controller 7 also initiates the setting of the mode control register 35. That is to say, the system controller 7 sets the hold value in the mode control register 35 back to level L and the mode signal back to level L. Consequently, the master module 30 is set so that the IP circuit 31 is able to operate independently.
  • At time t3, the IP circuit 31 goes into an operational state. At this time, as a state value, in the master status register 8, indicating the operation status of the master module 30, a value indicating that the master module 30 is in an active state is set.
  • According to this embodiment, a multi-functional master module is achieved by using the CPU 3. In addition, when the IP 31 is in an inactive state, the CPU 3 can access the slave circuit (the hardware 36 and the memory 37) in the IP circuit 31 via the bus 33 that is in an active state. Accordingly, the use efficiency of system resources inside the master module 30 is improved.
  • Like the first and second embodiments, in the semiconductor integrated circuit 52 in this embodiment, when the master circuit 2 goes into an inactive state, the bus setting is changed, and the M2 region 15 previously assigned to the master circuit 2 is reassigned to the master module 30. Then the M2 region 15 is made available to the CPU 3. By this, the slave circuit previously assigned to the master circuit that is in an inactive state becomes available to the CPU 3 as well. Accordingly, the use efficiency of system resources inside the semiconductor integrated circuit 52 is further improved.
  • It is apparent that the present invention is not limited to the above embodiments, but may be modified and changed without departing from the scope and spirit of the invention.

Claims (20)

1. A semiconductor integrated circuit, comprising:
a first master circuit;
a second master circuit; and
a first slave circuit being assigned to said first master circuit, wherein
said first slave circuit is reassigned to said second master circuit based on an operational status of said first master circuit.
2. The semiconductor integrated circuit according to claim 1, further comprising
a first bus coupled to at least said first master circuit, said first slave circuit and said second master circuit, wherein
said first slave circuit is reassigned to said second master circuit by changing settings of said first bus.
3. The semiconductor integrated circuit according to claim 2, wherein
a master identifier transmitted to said first slave circuit via said first bus after changing said settings of said first bus is equal to a master identifier pre-set in said first master circuit.
4. The semiconductor integrated circuit according to claim 2, further comprising
a system controller that changes said settings of said first bus.
5. The semiconductor integrated circuit according to claim 4, further comprising
a bus controller coupled to said first bus, wherein
said system controller changes settings of said first bus by changing a hold value stored in a register included in said bus controller.
6. The semiconductor integrated circuit according to claim 4, further comprising
a master status register that holds a state value indicating the operation status of at least said first master circuit, wherein
said system controller changes settings of said first bus when said state value indicates that said first master circuit is in an inactive state.
7. The semiconductor integrated circuit according to claim 4, wherein
said system controller controls stop-start of at least said first master circuit and said second master circuit.
8. The semiconductor integrated circuit according to claim 6, wherein
said system controller starts said second master circuit when said state value in said master status register indicates that said first master circuit is in an inactive state.
9. The semiconductor integrated circuit according to claim 4, wherein
said system controller is coupled to an interface circuit of said second master circuit via said first bus.
10. The semiconductor integrated circuit according to claim 4, further comprising
a third master circuit having an interface circuit to which the system controller is coupled, wherein
said system controller changes said settings of said first bus by utilizing said third master circuit.
11. The semiconductor integrated circuit according to claim 10, wherein
the system controller is coupled to said interface circuit of said third master circuit via an external terminal.
12. The semiconductor integrated circuit according to claim 1, further comprising
a second bus coupled to said first master circuit and said second master circuit.
13. The semiconductor integrated circuit according to claim 12, further comprising
a third bus coupled to said second master circuit and said first slave circuit.
14. The semiconductor integrated circuit according to claim 12, further comprising
a system controller that controls said settings of at least said second bus.
15. The semiconductor integrated circuit according to claim 14, wherein
said system controller changes settings of said second bus based on a change of a hold value in a mode control register coupled to said second bus.
16. The semiconductor integrated circuit according to claim 12, wherein
said first master circuit and said second master circuit are incorporated in a master module coupled to a first bus.
17. The semiconductor integrated circuit according to claim 16, further comprising:
a third master circuit; and
a second slave circuit that is assigned to said third master circuit, wherein
said third master circuit and said second slave circuit are further coupled to said first bus, and
said second slave circuit is reassigned to said master module based on said operational status of said third master circuit.
18. A method for controlling a semiconductor integrated circuit including a first master circuit, a second master circuit and at least one slave circuit, the method comprising:
upon detection that an operational status of said first master circuit is in an inactive state, reassigning said slave circuit, which is previously assigned to said first master circuit, to said second master circuit.
19. The method for controlling a semiconductor integrated circuit according to claim 18, wherein
said slave circuit is reassigned to said second master circuit based on a change of settings of a first bus coupled to at least said first master circuit, said slave circuit and said second master circuit.
20. The method for controlling a semiconductor integrated circuit according to claim 18, wherein
any one of said first master circuit and said second master circuit is enabled to access a first bus based on a change of settings of a second bus that is coupled to said first master circuit and said second master circuit.
US12/232,162 2007-10-01 2008-09-11 Semiconductor integrated circuit and method for controlling semiconductor integrated circuit Abandoned US20090085626A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US13/619,403 US8621262B2 (en) 2007-10-01 2012-09-14 Semiconductor integrated circuit and method for controlling semiconductor integrated circuit

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP257258/2007 2007-10-01
JP2007257258A JP5148236B2 (en) 2007-10-01 2007-10-01 Semiconductor integrated circuit and method for controlling semiconductor integrated circuit

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US13/619,403 Continuation US8621262B2 (en) 2007-10-01 2012-09-14 Semiconductor integrated circuit and method for controlling semiconductor integrated circuit

Publications (1)

Publication Number Publication Date
US20090085626A1 true US20090085626A1 (en) 2009-04-02

Family

ID=40507500

Family Applications (2)

Application Number Title Priority Date Filing Date
US12/232,162 Abandoned US20090085626A1 (en) 2007-10-01 2008-09-11 Semiconductor integrated circuit and method for controlling semiconductor integrated circuit
US13/619,403 Active US8621262B2 (en) 2007-10-01 2012-09-14 Semiconductor integrated circuit and method for controlling semiconductor integrated circuit

Family Applications After (1)

Application Number Title Priority Date Filing Date
US13/619,403 Active US8621262B2 (en) 2007-10-01 2012-09-14 Semiconductor integrated circuit and method for controlling semiconductor integrated circuit

Country Status (2)

Country Link
US (2) US20090085626A1 (en)
JP (1) JP5148236B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220269628A1 (en) * 2021-02-25 2022-08-25 Seiko Epson Corporation Circuit Device And Electronic Apparatus

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9558132B2 (en) * 2013-08-14 2017-01-31 Intel Corporation Socket management with reduced latency packet processing

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5546535A (en) * 1992-03-13 1996-08-13 Emc Corporation Multiple controller sharing in a redundant storage array
US5790775A (en) * 1995-10-23 1998-08-04 Digital Equipment Corporation Host transparent storage controller failover/failback of SCSI targets and associated units
US6578158B1 (en) * 1999-10-28 2003-06-10 International Business Machines Corporation Method and apparatus for providing a raid controller having transparent failover and failback

Family Cites Families (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5301278A (en) 1988-04-29 1994-04-05 International Business Machines Corporation Flexible dynamic memory controller
JPH0285953A (en) 1988-09-22 1990-03-27 Toshiba Corp Multi-processor system
US4965717A (en) 1988-12-09 1990-10-23 Tandem Computers Incorporated Multiple processor system having shared memory with private-write capability
US5774640A (en) * 1991-10-21 1998-06-30 Tandem Computers Incorporated Method and apparatus for providing a fault tolerant network interface controller
JPH05158905A (en) * 1991-12-05 1993-06-25 Toshiba Corp Microprocessor application device having distributed processing function
JPH06274459A (en) 1993-03-17 1994-09-30 Hitachi Ltd Semiconductor integrated circuit device
US5508910A (en) 1994-09-26 1996-04-16 Forney International, Inc. Redundant analog I/O board system
US5644700A (en) 1994-10-05 1997-07-01 Unisys Corporation Method for operating redundant master I/O controllers
US5822512A (en) 1995-05-19 1998-10-13 Compaq Computer Corporartion Switching control in a fault tolerant system
US5848230A (en) 1995-05-25 1998-12-08 Tandem Computers Incorporated Continuously available computer memory systems
JP3628777B2 (en) * 1995-10-30 2005-03-16 株式会社日立製作所 External storage device
US5974562A (en) 1995-12-05 1999-10-26 Ncr Corporation Network management system extension
JPH09330106A (en) * 1996-06-10 1997-12-22 Toshiba Corp Control system with backup function
US6151684A (en) 1997-03-28 2000-11-21 Tandem Computers Incorporated High availability access to input/output devices in a distributed system
FR2762695B1 (en) 1997-04-29 1999-05-28 Bull Sa METHOD AND DEVICE FOR CONNECTING THE CENTRAL UNIT OF A DATA PROCESSING SYSTEM TO A REDUNDANT DATA STORAGE SUBSYSTEM
US5975738A (en) 1997-09-30 1999-11-02 Lsi Logic Corporation Method for detecting failure in redundant controllers using a private LUN
JPH11316626A (en) * 1998-05-06 1999-11-16 Oki Electric Ind Co Ltd Microcontroller
US6282584B1 (en) 1998-08-18 2001-08-28 International Business Machines Corporation Structure and method for reading/writing signature commands from/to a plurality of controller pairs
JP2001166960A (en) * 1999-12-10 2001-06-22 Fujitsu Ltd Multi-processor system having individual area in shared memory
US6529978B1 (en) 2000-02-23 2003-03-04 International Business Machines Corporation Computer input/output (I/O) interface with dynamic I/O adaptor processor bindings
US6578157B1 (en) * 2000-03-06 2003-06-10 Micron Technology, Inc. Method and apparatus for recovery of useful areas of partially defective direct rambus rimm components
US6766471B2 (en) * 2000-12-28 2004-07-20 International Business Machines Corporation User-level checkpoint and restart for groups of processes
US7093043B2 (en) 2001-12-27 2006-08-15 Hewlett-Packard Development Company, L.P. Data array having redundancy messaging between array controllers over the host bus
JP3964212B2 (en) 2002-01-16 2007-08-22 株式会社日立製作所 Storage system
JP2003296294A (en) 2002-04-08 2003-10-17 Hitachi Ltd Semiconductor integrated circuit
JP4216006B2 (en) 2002-06-14 2009-01-28 株式会社日立製作所 Storage device control method
US7290170B2 (en) 2004-04-07 2007-10-30 International Business Machines Corporation Arbitration method and system for redundant controllers, with output interlock and automatic switching capabilities
US7624336B2 (en) 2004-11-08 2009-11-24 International Business Machines Corporation Selection of status data from synchronous redundant devices
US7437608B2 (en) 2004-11-15 2008-10-14 International Business Machines Corporation Reassigning storage volumes from a failed processing system to a surviving processing system
JP5068056B2 (en) * 2006-10-11 2012-11-07 株式会社日立製作所 Failure recovery method, computer system and management server
US7613947B1 (en) 2006-11-30 2009-11-03 Netapp, Inc. System and method for storage takeover

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5546535A (en) * 1992-03-13 1996-08-13 Emc Corporation Multiple controller sharing in a redundant storage array
US5790775A (en) * 1995-10-23 1998-08-04 Digital Equipment Corporation Host transparent storage controller failover/failback of SCSI targets and associated units
US6578158B1 (en) * 1999-10-28 2003-06-10 International Business Machines Corporation Method and apparatus for providing a raid controller having transparent failover and failback

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220269628A1 (en) * 2021-02-25 2022-08-25 Seiko Epson Corporation Circuit Device And Electronic Apparatus
US11741035B2 (en) * 2021-02-25 2023-08-29 Seiko Epson Corporation Circuit device and electronic apparatus

Also Published As

Publication number Publication date
US20130013831A1 (en) 2013-01-10
US8621262B2 (en) 2013-12-31
JP2009087121A (en) 2009-04-23
JP5148236B2 (en) 2013-02-20

Similar Documents

Publication Publication Date Title
US7398406B2 (en) Data processor
US20080168465A1 (en) Data processing system and semiconductor integrated circuit
US7398378B2 (en) Allocating lower priority interrupt for processing to slave processor via master processor currently processing higher priority interrupt through special interrupt among processors
US7685351B2 (en) External device access apparatus
US8621262B2 (en) Semiconductor integrated circuit and method for controlling semiconductor integrated circuit
US20090177807A1 (en) Reset method for application specific integrated circuits (asic)
JP2007108993A (en) Semiconductor integrated circuit
US8239600B2 (en) Data processing system with selectable interrupt control
JP2008283492A (en) Gateway device, and on-vehicle communication system
JP2007058279A (en) Power-down shifting system
US8522060B2 (en) Computer system, method for controlling the same, and program
JP7271973B2 (en) VEHICLE CONTROL DEVICE AND OPERATING CLOCK SWITCHING METHOD
JP5336916B2 (en) Semiconductor device
JP4788004B2 (en) Information processing apparatus, PCI bus control method, and PCI bus control program
JP5644197B2 (en) Computer system and interrupt request processing method
JP2002341976A (en) Multi-power semiconductor device and method for controlling power of the same device
JP2007272358A (en) Information processor
JP2010033314A (en) Bus access circuit device and bus access method
JPH10320352A (en) Bus master transfer system
JPH07121500A (en) Microcomputer
JP2007207269A (en) Apparatus and system for image processing
JP2002222161A (en) Semiconductor device, and method of transferring data
JP2007026367A (en) Multitask os for system lsi
JP2018088096A (en) Controller and control method thereof
JP2003323334A (en) Memory access control system and memory access control method

Legal Events

Date Code Title Description
AS Assignment

Owner name: NEC ELECTRONICS CORPORATION, JAPAN

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:UENO, SHIGEYUKI;NAKAJIMA, HIROYUKI;REEL/FRAME:021572/0513

Effective date: 20080829

AS Assignment

Owner name: RENESAS ELECTRONICS CORPORATION, JAPAN

Free format text: CHANGE OF NAME;ASSIGNOR:NEC ELECTRONICS CORPORATION;REEL/FRAME:025214/0687

Effective date: 20100401

STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION