US20080288687A1 - Information processing device and processor - Google Patents

Information processing device and processor Download PDF

Info

Publication number
US20080288687A1
US20080288687A1 US12/176,714 US17671408A US2008288687A1 US 20080288687 A1 US20080288687 A1 US 20080288687A1 US 17671408 A US17671408 A US 17671408A US 2008288687 A1 US2008288687 A1 US 2008288687A1
Authority
US
United States
Prior art keywords
master device
address
access
request control
slave device
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/176,714
Inventor
Yuki Kondoh
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
Yuki Kondoh
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 Yuki Kondoh filed Critical Yuki Kondoh
Priority to US12/176,714 priority Critical patent/US20080288687A1/en
Publication of US20080288687A1 publication Critical patent/US20080288687A1/en
Assigned to RENESAS ELECTRONICS CORPORATION reassignment RENESAS ELECTRONICS CORPORATION MERGER (SEE DOCUMENT FOR DETAILS). Assignors: RENESAS TECHNOLOGY CORP.
Priority to US12/892,645 priority patent/US9798679B2/en
Priority to US15/791,687 priority patent/US10289569B2/en
Priority to US16/397,358 priority patent/US10983924B2/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/14Protection against unauthorised use of memory or access to memory
    • G06F12/1416Protection against unauthorised use of memory or access to memory by checking the object accessibility, e.g. type of access defined by the memory independently of subject rights
    • G06F12/1425Protection against unauthorised use of memory or access to memory by checking the object accessibility, e.g. type of access defined by the memory independently of subject rights the protection being physical, e.g. cell, word, block
    • G06F12/1441Protection against unauthorised use of memory or access to memory by checking the object accessibility, e.g. type of access defined by the memory independently of subject rights the protection being physical, e.g. cell, word, block for a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/14Protection against unauthorised use of memory or access to memory
    • G06F12/1416Protection against unauthorised use of memory or access to memory by checking the object accessibility, e.g. type of access defined by the memory independently of subject rights
    • G06F12/1425Protection against unauthorised use of memory or access to memory by checking the object accessibility, e.g. type of access defined by the memory independently of subject rights the protection being physical, e.g. cell, word, block

Definitions

  • the memory writing 850 from the image input section 810 , and the memory writing 852 from the image processor section 820 must be performed in parallel. Therefore, switching must be performed to prevent conflicts arising from both accesses ( 850 and 852 ) to the memory area (at the same time).
  • FIG. 11 is a memory map of the system shown in FIG. 10 .
  • the section shown in area 910 is the area for the memory 830 .
  • the image input section 810 In order to operate the image input section 810 and the image processor section 820 in parallel and avoid conflicts in the memory area, the image input section 810 must write in area 921 of area 910 and the image processor section 820 must write in area 920 thereof within a time period T. In the same way, the respective areas 922 and 921 must be written in T+1, and the areas 920 and 922 must be written in T+2.
  • the present invention therefore, has the object of providing a device to detect and block illegal address accessing with a small circuit overhead.
  • the unique features of the present invention to achieve this and other objects will become apparent from the description provided in the present specification and the accompanying drawings.
  • the first illegal address blocking circuit contains a range setting register that is set with an address prohibit range.
  • FIG. 1 is a simplified view of the overall system structure of the present embodiment. Though there are no particular restrictions, the components are all formed on one semiconductor substrate.
  • the reference numeral 100 denotes the system bus within the processor, and it is composed of control lines, data lines and address lines shared by multiple devices.
  • the reference numerals 110 and 120 denote bus master devices for accessing other devices via the system bus 100 .
  • the reference numeral 130 denotes a slave device for accepting requests via the system bus 100 of the master devices 110 , 120 and sending back responses to the system bus 100 .
  • the example for this system configuration comprises two bus master devices made up of an audio processing IP and an image processing IP.
  • the respective processing results from these bus master devices are written into the slave device constituting the serial interface.
  • FIG. 2 is a diagram showing the connections of the system bus 100 itself, as well as the interconnections between the system bus 100 and the connecting lines 114 , 124 , and 131 .
  • the connecting line 114 connecting the bus master device 110 and the system bus 100 is composed of a request control line 210 , a read/write enable signal line 211 , an address line 212 , a write data line 213 , and a read data line 214 .
  • an “H” here indicates a request and an “L” indicates no request.
  • the read/write enable signal line 211 identifiers a read request with a “H” and a write request with an “L”, and the address line 212 provides the address for reading/writing.
  • the write data is output from the write data line 213 .
  • the data is input from the read data line 214 .
  • the connecting line 124 that connects the bus master device 120 to the system bus 100 has the same structure as the connecting line 114 .
  • the request control lines 210 through 214 respectively correspond in function to the lines 220 through 224 .
  • the connecting line 131 which connects the slave device 130 with the system bus 100 , is composed of a request control line 230 , a read/write enable signal line 231 , an address line 232 , a write data line 233 , and a read data line 234 .
  • an output from the request control line 210 is conveyed to the request control line 230 .
  • Data from the write data line 233 is input to the slave device via the connecting line 131 , or data is output to the read data line 234 .
  • FIG. 3 is a schematic diagram showing the illegal address access blocking circuit 113 contained in the bus master device 110 of the present invention.
  • the illegal address access blocking circuit 123 contained in the bus master device 120 is identical in structure.
  • the signal lines 310 through 314 comprise the connecting line 112 , and they respectively correspond to the signal lines 210 through 214 that comprise the connecting line 114 to the bus.
  • the reference numeral 320 denotes an illegal address access detector.
  • the bus master device 110 along with the registers 321 and 322 constitute the range setting register that sets the address range for accessing the slave device 130 .
  • the upper limit value of the address range within which access to the bus master device 110 is allowed is stored in the register 321 and the lower limit value is stored in the register 322 .
  • these registers can be set by way of the control line 112 . These registers may also be set by software processing when the power is turned on, or they may be set automatically when it is detected that the power has been turned on.
  • the registers 321 , 322 as well as the comparators 323 , 326 are one set. Needless to say, however, when there are many slave devices, the number of registers and comparators can be increased according to the number of slave devices. Also, the address locations within the registers 321 , 322 may be configured to store all bits representing the address, or they may be configured to store only a portion. In other words, these can be set within a range where access control is needed.
  • FIG. 4 is a timing chart showing the operation which is carried out when normal address accessing and illegal address accessing have occurred in a processor having an illegal address access blocking function.
  • the reference numerals 700 and 710 in the figure indicate one clock period. During this period, the request control signals 310 , 210 , the address line 312 , as well as the internal signals 325 , 326 , 327 of the illegal address access blocking device 320 transition to different states.
  • the value 701 of address line 312 is within the range set in the registers 321 , 322 .
  • the signals 325 , 326 are set to “H” at this time, and the signal 327 also is set to “H”. Therefore, a signal level of request control signal 310 equivalent to “H” is also output to the request control line 210 .
  • An illegal address access blocking device of this type can be implemented with a small number of circuits comprising a minimum structure made up of two registers, two comparators, and two AND gates per a bus master device, such as one peripheral IP. This illegal address access blocking device also will prevent product defects due to software bugs and provides early detection.
  • FIG. 5 through FIG. 7 show another embodiment of the present invention.
  • This embodiment utilizes a switching type (On-chip Star Topological Network) as the system bus structure.
  • This switching type bus structure (On-chip Star Topological Network), for example, has a structure where the connections between the bus master device and slave device are controlled by a selector. Utilizing this type of structure allows the system bus to operate at higher speeds.
  • a switching type bus structure On-chip Star Topological Network
  • This type of structure has a structure where the connections between the bus master device and slave device are controlled by a selector. Utilizing this type of structure allows the system bus to operate at higher speeds.
  • the sections of the embodiment differing from the first embodiment will be described. Needless to say, the items described for the first embodiment are also applicable to the second embodiment.
  • FIG. 5 is a diagram showing a simplified form of the system structure as applied to the present invention.
  • the reference numeral 400 denotes a switching type system bus (On-chip Start Topological Network) within the processor.
  • the reference numerals 410 and 420 denote the bus master devices, and 430 denotes the slave device.
  • the bus master devices 410 , 420 and the slave device 430 are respectively connected to the system bus 400 by the connecting lines 411 , 421 , and 431 . This method, as with the first embodiment, applies no restrictions on the type or number of connected devices.
  • FIG. 6 is a diagram showing connections of the system bus 400 itself and the connections between the system bus 400 and the connecting lines 411 , 421 and 431 .
  • the connecting line 411 connecting the system bus 400 and the bus master device 410 is composed of a request control line 510 , a read/write enable signal line 511 , an address line 512 , a write data line 513 , a read data line 514 , and a (request) acceptance notification line 515 .
  • the description of the lines 510 through 514 matches the lines 210 through 214 in the first embodiment.
  • the signal line 515 indicates whether or not a request from the request control line 510 was accepted.
  • the connecting line 421 connecting the system bus 400 and the bus master device 420 has a structure identical to the connecting line 411 .
  • the connecting line 431 connecting the slave device 430 with the system bus 400 is composed of a request control line 530 , a read/write enable signal line 531 , an address line 532 , a write data line 533 , and a read data line 534 .
  • the description of each signal line is the same as the lines 230 through 234 of the first embodiment.
  • Reference numeral 540 denotes the request signal selector (switch).
  • the request control lines 510 , 520 , and the address lines 512 , 522 are input to the request signal selector (switch) 540 , and the selector control signal lines 541 , 542 , and 543 , as well as the request control line 530 signals, are output from this selector (switch) 540 .
  • the selector control signal line 543 is “L”
  • the read/write enable signal line 511 signal is then output to the read/write enable signal line 531 .
  • the signal from the selector control signal line 543 is “H”
  • the signal from control line 521 is output to the control line 531 .
  • the signals on line 512 or 522 are output along address line 532 according to the state of the selector control signal line 542 , or the signals on address 513 and 523 are respectively output along the data line 533 according to the state of the selector control signal 541 in the same way.
  • the connections between the bus master device 410 , 420 and the slave device 430 are switched in this way. This type of configuration allows the system bus 400 to operate at high speed.
  • the reference numeral 610 identifies the illegal address access detector.
  • the reference numerals 611 and 612 respectively identify the registers for that detector circuit and reference numerals 613 , 614 identify the comparators.
  • the circuit of this illegal address access detector is the same as that of the illegal address access detector 320 of the first embodiment.
  • the signal line 617 is set to an “H” value.
  • the register 611 and the register 612 can also read/write values by way of the signal line 411 .
  • the processor PC carries out external access by using an external bus interface circuit EXIF that is connected to the bus state controller 5 by way of the processor internal main network (or internal bus IBUS).
  • the external bus interface circuit EXIF is connected to the external memory MEM.
  • the bus state controller BSC outputs strobe signals RAS, CAS and a write enable signal WE to the memory MEM installed externally.
  • the processor internal main network (or internal bus IBUS) is the bus type (network typology).
  • the illegal address access blocking circuit (IABU) of the present invention is therefore installed in the CPU, direct memory access controller DMAC, dedicated image processor IP (device) MPEG4, or dedicated audio processor IP (device) MP3 that make up the bus master device. Illegal address accessing can therefore be blocked with a small number of circuits, product defects due to software bugs can be prevented, and early stage detection can be achieved.
  • processor internal main network or internal bus IBUS
  • illegal accessing can be prevented by installing an illegal address access blocking circuit in the processor internal main network (IBUS), and there is no need to install illegal address access blocking circuits in the direct memory access controller DMAC (and other circuit in the bus master device) so that the required circuits surface area can be reduced.
  • the circuits for all types of devices are pre-designed and stored as an IP in design tools. Then, during the actual circuit design stage, these devices that are stored in the design tools and which are needed to make the required product can be combined to create an LSI circuit.
  • the illegal address access blocking circuit of the present invention can be stored as one IP in the design tool. In this way, the stored illegal address access blocking circuit can be connected easily between each device and the system bus.

Abstract

A semiconductor device including: a first slave device; a first master device outputting a first request control signal and a first access address signal; a second master device outputting a second request control signal and a second access address signal; a system bus connected to the first slave device, the first master device and the second master device, and selecting and outputting either the first request control signal or the second request control signal when the first request control signal is outputted from the first master device and the second request control signal is outputted from the second master device; and a range setting register holding an address range of which an access of the first master device is permitted, wherein the system bus blocks the first request control signal if the first access address signal is out of the address range.

Description

    CROSS REFERENCE TO RELATED APPLICATION
  • This is a continuation of U.S. application Ser. No. 10/838,240, filed May 5, 2004. This application relates to and claims priority from Japanese Patent Application No. 2003-127638, filed on May 6, 2003. The entirety of the contents and subject matter of all of the above is incorporated herein by reference.
  • FIELD OF THE INVENTION
  • The present invention relates to information processing devices and, in particular, to processors utilized in central processing devices in computers.
  • BACKGROUND OF THE INVENTION
  • Modern processors, especially in microcomputers built into equipment, utilize a system with a one chip processor made up of a CPU for general processing tasks and a multiple peripheral IP for special processing tasks all mounted on a single chip. This type of system typically has a structure where multiple devices, such as the CPU and the peripheral IP, are connected to a bus within a processor. These types of systems, in particular, contain multiple bus master devices for issuing access requests to the bus.
  • The bus master device in a processor containing a CPU sometimes accesses the bus unintentionally due to: (1) software bugs, (2) hardware bugs, and (3) temporary hardware problems (such as software errors on the α line). This type of access is called illegal address accessing. Product defects due to software bugs caused by illegal address accessing are especially numerous in built-in equipment applications.
  • To illustrate those cases in an application of the present invention where illegal address accessing has occurred, an example will be considered here which involves a system with multiple bus masters for image input and processing. The system structure is shown in FIG. 10. Here, the reference numeral 810 denotes the image input section and numeral 830 denotes the memory. The image input section 810 and the memory 830 are both connected to the system bus 800. The image input section 810, for example, loads images from a camera and stores that data in the memory 830 by operating a bus master. The numeral 850 indicates the flow of data during that operation.
  • The reference numeral 820 denotes the image processor section for performing color correction and noise elimination. The image processor section 820 loads image data from the memory 830 and writes back the processing results. The numerals 851 and 852 respectively indicate the flow of data.
  • The memory writing 850 from the image input section 810, and the memory writing 852 from the image processor section 820 must be performed in parallel. Therefore, switching must be performed to prevent conflicts arising from both accesses (850 and 852) to the memory area (at the same time).
  • FIG. 11 is a memory map of the system shown in FIG. 10. The section shown in area 910 is the area for the memory 830. In order to operate the image input section 810 and the image processor section 820 in parallel and avoid conflicts in the memory area, the image input section 810 must write in area 921 of area 910 and the image processor section 820 must write in area 920 thereof within a time period T. In the same way, the respective areas 922 and 921 must be written in T+1, and the areas 920 and 922 must be written in T+2.
  • The above-mentioned memory area switching which is employed to avoid conflicts in the memory area is especially important in systems having multiple bus masters. When conflicts in the memory area occur, for example, due to control software bugs, the problem occurs that image data cannot be processed correctly.
  • The CPU core typifying the bus master device contains a device called the MMU (Memory Management Unit). The MMU both detects and blocks illegal address accessing. However, the peripheral IP generally does not contain an MMU. A typical MMU used here with a peripheral IP also converts virtual addresses within the CPU core into actual addresses so that using the MMU for blocking illegal address accessing requires a large overhead in terms of the number of circuits and the software overhead to handle these circuits. The MMU therefore cannot be used for detecting and blocking illegal address accessing from a peripheral IP.
  • SUMMARY OF THE INVENTION
  • The present invention, therefore, has the object of providing a device to detect and block illegal address accessing with a small circuit overhead. The unique features of the present invention to achieve this and other objects will become apparent from the description provided in the present specification and the accompanying drawings.
  • A brief description of a typical embodiment of the invention is as follows. An information processing device has a first bus master device and a first slave device, and a bus is connected to that first bus master device and first slave device, wherein when the first bus master device accesses the first slave device, a first illegal address blocking circuit detects and blocks illegal access from the first bus master device.
  • More preferably, the first illegal address blocking circuit contains a range setting register that is set with an address prohibit range.
  • Still more preferably, range setting register is constituted by a first register holding an upper address limit for addresses assigned to the first slave device and a second register holding a lower address limit, and the first illegal address blocking circuit contains a comparator circuit to determine if the address output from the first bus master device is included in the address range defined by the values contained in the first register and the second register.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • FIG. 1 is a block diagram showing the system structure of a first embodiment of the present invention;
  • FIG. 2 is schematic diagram showing device connections and the bus configuration of the first embodiment;
  • FIG. 3 is a schematic diagram of the illegal address access blocking circuit of the first embodiment;
  • FIG. 4 is a timing diagram showing the operation of the illegal address access blocking circuit;
  • FIG. 5 is a block showing the system structure of a second embodiment of the present invention;
  • FIG. 6 is a schematic diagram showing device connections and the bus structure of the second embodiment;
  • FIG. 7 is a schematic diagram of the illegal address access blocking circuit of the second embodiment;
  • FIG. 8 is a block diagram of the processor for the illegal address access blocking circuit;
  • FIG. 9 is a block diagram of the processor for the illegal address access blocking circuit of the second embodiment;
  • FIG. 10 is a block diagram of a system with multiple bus masters; and
  • FIG. 11 is a diagram of the memory map for the system shown in FIG. 10.
  • DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
  • Preferred embodiments of the information processing device of the present invention will be described with reference to the accompanying drawings. Though there are no special restrictions, the circuit elements comprising each block of an embodiment are known semiconductor integrated circuits, such as bipolar transistors and CMOS (complementary metal-oxide semiconductor) devices, formed on a single semiconductor substrate of monocrystalline silicon.
  • First Embodiment
  • A first embodiment of the present invention is shown in FIG. 1 through FIG. 3. This embodiment utilizes a bus configuration with multiple devices jointly using control lines, data lines and address lines as the system bus structure.
  • FIG. 1 is a simplified view of the overall system structure of the present embodiment. Though there are no particular restrictions, the components are all formed on one semiconductor substrate. The reference numeral 100 denotes the system bus within the processor, and it is composed of control lines, data lines and address lines shared by multiple devices. The reference numerals 110 and 120 denote bus master devices for accessing other devices via the system bus 100. The reference numeral 130 denotes a slave device for accepting requests via the system bus 100 of the master devices 110, 120 and sending back responses to the system bus 100.
  • The example for this system configuration comprises two bus master devices made up of an audio processing IP and an image processing IP. In this system, the respective processing results from these bus master devices are written into the slave device constituting the serial interface.
  • The present embodiment is also assumed to be a system with two bus master devices and one slave device. However, the method of the present invention is not limited by the type or number of devices. The reference numerals 111 and 121 respectively denote main circuits of the bus master device. The reference numerals 113 and 123 denote the illegal address access blocking circuits of the present invention. These illegal address access blocking circuits 113 and 123 are connected to the main circuits 111, 113 of the bus master devices via connecting lines 112, 122. These illegal address access blocking circuits 113 and 123 also are connected to the system bus 100 via the connecting lines 114, 124. The slave device 130 is connected to the system bus 100 via the connecting line 131. Though described later, when the bus master device is accessing the slave device, the illegal address access blocking circuits 113 and 123 function to detect illegal accessing of the bus master devices and block access.
  • FIG. 2 is a diagram showing the connections of the system bus 100 itself, as well as the interconnections between the system bus 100 and the connecting lines 114, 124, and 131.
  • The connecting line 114 connecting the bus master device 110 and the system bus 100 is composed of a request control line 210, a read/write enable signal line 211, an address line 212, a write data line 213, and a read data line 214.
  • Though there are no particular restrictions on the request control line 210, an “H” here indicates a request and an “L” indicates no request. When the request control line 210 is “H”, then the read/write enable signal line 211 identifiers a read request with a “H” and a write request with an “L”, and the address line 212 provides the address for reading/writing. During a write request, the write data is output from the write data line 213. During a read request, the data is input from the read data line 214.
  • The connecting line 124 that connects the bus master device 120 to the system bus 100 has the same structure as the connecting line 114. The request control lines 210 through 214 respectively correspond in function to the lines 220 through 224.
  • The connecting line 131, which connects the slave device 130 with the system bus 100, is composed of a request control line 230, a read/write enable signal line 231, an address line 232, a write data line 233, and a read data line 234. Here for example, an output from the request control line 210 is conveyed to the request control line 230. Data from the write data line 233 is input to the slave device via the connecting line 131, or data is output to the read data line 234.
  • FIG. 3 is a schematic diagram showing the illegal address access blocking circuit 113 contained in the bus master device 110 of the present invention. The illegal address access blocking circuit 123 contained in the bus master device 120 is identical in structure. The signal lines 310 through 314 comprise the connecting line 112, and they respectively correspond to the signal lines 210 through 214 that comprise the connecting line 114 to the bus.
  • The reference numeral 320 denotes an illegal address access detector. The bus master device 110 along with the registers 321 and 322 constitute the range setting register that sets the address range for accessing the slave device 130. The upper limit value of the address range within which access to the bus master device 110 is allowed is stored in the register 321 and the lower limit value is stored in the register 322. Though not specified in the drawing, these registers can be set by way of the control line 112. These registers may also be set by software processing when the power is turned on, or they may be set automatically when it is detected that the power has been turned on.
  • The reference numerals 323 and 324, respectively, denote comparators. The comparator 323 compares the values of the address line 312 and the content of the register 321. When the value of the address line 312 is the larger value, the comparator 323 outputs an “H” to the signal line 325. The comparator 324 compares the values of the address line 312 and the content of the register 322. When the value of the address line 312 is the smaller value, the comparator 324 outputs an “H” to the signal line 326. Therefore, the signal line 327 holding the logic sum of the signal line 325 and the signal line 326, outputs an “H” when the value of the address line 312 is within the range specified by the register 321 and the register 322.
  • The reference numeral 330 denotes an illegal address blocking section (circuit). When the output of the control line 327 is “H”, or, in other words, when the value of the address line 312 is within the range specified by the register 321 and the register 322, then the output from the request control line 310 is output unchanged to the request control line 210. Conversely, when the output of the signal line 327 is “L”, or, in other words, when the value of the address line 312 is outside the allowable access range, the output from the request control line 210 is “L” and illegal address accessing is blocked, even if the output from the request control line 310 is “H”. The logic seen on signal line 327 is sent unchanged to the signal line 315, and the bus master device main circuit 111 is notified of the blocking of an illegal address access. Illegal address accessing can be prevented in this way. In the present embodiment, the registers 321, 322 as well as the comparators 323, 326 are one set. Needless to say, however, when there are many slave devices, the number of registers and comparators can be increased according to the number of slave devices. Also, the address locations within the registers 321, 322 may be configured to store all bits representing the address, or they may be configured to store only a portion. In other words, these can be set within a range where access control is needed. For example, if it is desired to detect illegal addresses in a range from H'08000000 to H'0BFFFFFF within the address space of the corresponding slave device, then only the upper eight bits need to be set. Making this setting makes it possible to reduce the size of the registers 321, 322 and the comparators 323, 326 to achieve a smaller surface area (save space). A configuration where the registers 321, 322 are settable to 32 bits may also be used. In this case, a narrower range can be set for detecting an illegal address, and it can easily be used with multiple slave devices having different address range sizes.
  • FIG. 4 is a timing chart showing the operation which is carried out when normal address accessing and illegal address accessing have occurred in a processor having an illegal address access blocking function. The reference numerals 700 and 710 in the figure indicate one clock period. During this period, the request control signals 310, 210, the address line 312, as well as the internal signals 325, 326, 327 of the illegal address access blocking device 320 transition to different states.
  • During the period 700, the value 701 of address line 312 is within the range set in the registers 321, 322. The signals 325, 326 are set to “H” at this time, and the signal 327 also is set to “H”. Therefore, a signal level of request control signal 310 equivalent to “H” is also output to the request control line 210.
  • In the period 701, the value 702 is set to a value higher than the lower limit value set in the register 322. At this time, the signal 327 is set to “L” when the signal 326 is set to “L”. The request control signal line 210 therefore is set to “L” at the request control signal 310 setting to “H”, so that illegal address accessing is blocked. There are no particular restrictions on action taken when it is determined that illegal address accessing has occurred. For example, a signal line can notify the master device 110 of an interrupt, and action then taken by the master device, or the interrupt, can be detected by software and action can be taken.
  • An illegal address access blocking device of this type can be implemented with a small number of circuits comprising a minimum structure made up of two registers, two comparators, and two AND gates per a bus master device, such as one peripheral IP. This illegal address access blocking device also will prevent product defects due to software bugs and provides early detection.
  • Second Embodiment
  • FIG. 5 through FIG. 7 show another embodiment of the present invention. This embodiment utilizes a switching type (On-chip Star Topological Network) as the system bus structure. This switching type bus structure (On-chip Star Topological Network), for example, has a structure where the connections between the bus master device and slave device are controlled by a selector. Utilizing this type of structure allows the system bus to operate at higher speeds. Hereafter, mainly the sections of the embodiment differing from the first embodiment will be described. Needless to say, the items described for the first embodiment are also applicable to the second embodiment.
  • FIG. 5 is a diagram showing a simplified form of the system structure as applied to the present invention. The reference numeral 400 denotes a switching type system bus (On-chip Start Topological Network) within the processor. The reference numerals 410 and 420 denote the bus master devices, and 430 denotes the slave device. The bus master devices 410, 420 and the slave device 430 are respectively connected to the system bus 400 by the connecting lines 411, 421, and 431. This method, as with the first embodiment, applies no restrictions on the type or number of connected devices.
  • FIG. 6 is a diagram showing connections of the system bus 400 itself and the connections between the system bus 400 and the connecting lines 411, 421 and 431. The connecting line 411 connecting the system bus 400 and the bus master device 410 is composed of a request control line 510, a read/write enable signal line 511, an address line 512, a write data line 513, a read data line 514, and a (request) acceptance notification line 515. The description of the lines 510 through 514 matches the lines 210 through 214 in the first embodiment. The signal line 515 indicates whether or not a request from the request control line 510 was accepted. The connecting line 421 connecting the system bus 400 and the bus master device 420 has a structure identical to the connecting line 411.
  • The connecting line 431 connecting the slave device 430 with the system bus 400 is composed of a request control line 530, a read/write enable signal line 531, an address line 532, a write data line 533, and a read data line 534. The description of each signal line is the same as the lines 230 through 234 of the first embodiment.
  • Reference numeral 540 denotes the request signal selector (switch). The request control lines 510, 520, and the address lines 512, 522 are input to the request signal selector (switch) 540, and the selector control signal lines 541, 542, and 543, as well as the request control line 530 signals, are output from this selector (switch) 540. When the signal from the selector control signal line 543 is “L”, the read/write enable signal line 511 signal is then output to the read/write enable signal line 531. Conversely, when the signal from the selector control signal line 543 is “H”, the signal from control line 521 is output to the control line 531.
  • The signals on line 512 or 522 are output along address line 532 according to the state of the selector control signal line 542, or the signals on address 513 and 523 are respectively output along the data line 533 according to the state of the selector control signal 541 in the same way. The connections between the bus master device 410, 420 and the slave device 430 are switched in this way. This type of configuration allows the system bus 400 to operate at high speed.
  • FIG. 7 is a diagram showing the internal structure of the control circuit 540. The reference numeral 600 is a decoder which outputs an “H” signal to the signal line 601 when the value on the address line 522 indicates the slave device 430. Therefore, when a request is output to the slave device 430 from the bus master device 420 on the control signal lines 541, 542, 543, the selector outputs a control signal on the 420 side.
  • When the address destination indicated by the value on line 522 does not indicate the slave device 430, then an “L” signal is output to the signal line 525 and an “H” is output to the signal line 602. In the opposite case, an “L” is output to the signal line 602, and an “H” is output on the signal line 525.
  • The reference numeral 610 identifies the illegal address access detector. The reference numerals 611 and 612 respectively identify the registers for that detector circuit and reference numerals 613, 614 identify the comparators. The circuit of this illegal address access detector is the same as that of the illegal address access detector 320 of the first embodiment. When the value on the address line 512 is within the range specified by the register 611 and the register 612, the signal line 617 is set to an “H” value. The register 611 and the register 612 can also read/write values by way of the signal line 411.
  • The reference numeral 620 identifies the illegal address blocking section (or circuit) and is identical to the blocking section 330 of the first embodiment. The blocking section 620 blocks (masks) the request control line 510 when the output from the control line 617 is “L”. Illegal address accessing from the bus master device 410 can be blocked in this way. This blocking of the signal line 602 signal by the output from the signal line 617 to prevent illegal address accessing is reported to the bus master device 410. The bus master device 410 receives this notification and performs the necessary processing.
  • The bus master devices 410, 420 must always access the slave device by way of the selector on the system bus 400 so that installing the illegal address blocking circuit in the selector control circuit allows it to be implemented in a small surface area. FIG. 8 is an embodiment in which the invention is applied to a specific processor PC. The processor PC contains a CPU (central processing unit) for controlling the entire processor PC. The MMU (Memory Management Unit) converts the virtual address inside the CPU core to a physical address and also contains a function to block illegal address accessing. In the processor PC in the present embodiment, the bus master device is composed of a CPU, a direct memory access controller DMAC, a dedicated image processor IP (device) MPEG4, and a dedicated audio processor IP (device) MP3. The processor PC carries out external access by using an external bus interface circuit EXIF that is connected to the bus state controller 5 by way of the processor internal main network (or internal bus IBUS). The external bus interface circuit EXIF is connected to the external memory MEM. The bus state controller BSC outputs strobe signals RAS, CAS and a write enable signal WE to the memory MEM installed externally.
  • The processor PC contains a clock pulse generator CPG, an interrupt control circuit INTC, a serial communication interface controller SCI, a real-time clock circuit RTC and a timer TMU, which serve as internal peripheral circuits connected to the processor internal main network (or internal bus IBUS). These peripheral circuits are accessed by the CPU or the direct memory access controller DMAC, or the dedicated image processor IP (device) MPEG4, or the dedicated audio processor IP (device) MP3 by way of the processor internal main network (or internal bus IBUS). A clock signal synchronized with the system clock is output from the clock pulse generator CPG. This processor PC performs operations, such as loading external data, while synchronized with this system clock signal.
  • The bus state controller BSC determines the access data size, access time, and wait state according to the circuit for access (address area to be accessed) by the CPU or direct memory access controller DMAC, and it also controls the bus access to the external memory MEM. The bus state controller BSC also arbitrates competing requests for bus use from external sections and from the direct memory access controller DMAC.
  • Here, the processor internal main network (or internal bus IBUS) is the bus type (network typology). The illegal address access blocking circuit (IABU) of the present invention is therefore installed in the CPU, direct memory access controller DMAC, dedicated image processor IP (device) MPEG4, or dedicated audio processor IP (device) MP3 that make up the bus master device. Illegal address accessing can therefore be blocked with a small number of circuits, product defects due to software bugs can be prevented, and early stage detection can be achieved. When the processor internal main network (or internal bus IBUS) is of the switch type, illegal accessing can be prevented by installing an illegal address access blocking circuit in the processor internal main network (IBUS), and there is no need to install illegal address access blocking circuits in the direct memory access controller DMAC (and other circuit in the bus master device) so that the required circuits surface area can be reduced.
  • In circuit design in recent years, the circuits for all types of devices (such as CPU and DMAC) are pre-designed and stored as an IP in design tools. Then, during the actual circuit design stage, these devices that are stored in the design tools and which are needed to make the required product can be combined to create an LSI circuit. In this case, the illegal address access blocking circuit of the present invention can be stored as one IP in the design tool. In this way, the stored illegal address access blocking circuit can be connected easily between each device and the system bus.
  • FIG. 9 is a block diagram of a processor representative of the second embodiment of the present invention. This drawing differs from FIG. 8 in that a processor internal peripheral network (or PBUS) is connected to the peripheral circuit (slave device) separate from the processor internal main network (IBUS). The processor internal peripheral network (PBUS) and processor internal main network (IBUS) are connected by way of a bus state controller BSC. Using this type of structure allows the peripheral circuits that constitute the slave device to connect to the bus master device by way of a bus state controller containing a direct memory access controller DMAC. The processor PC in FIG. 8 has a structure where the peripheral circuits are directly accessed by way of the processor internal main network (IBUS) so, that the illegal address access blocking circuit must be installed in each slave device within each bus master device. However, in the present embodiment, the peripheral circuit is connected to the bus master device by way of the bus state controller so that the illegal address access blocking circuits can be concentrated in the bus state controller and, therefore, take up a smaller area than the processor PC in FIG. 8.
  • The present invention was described will reference to specific embodiments, however a range of diverse adaptations are possible without departing from the objects of the invention. For example, the values indicating the address range can be hardwired in without installing a register.

Claims (7)

1. A semiconductor device comprising:
a first slave device;
a first master device outputting a first request control signal from the first master device to the first slave device and a first access address signal assigned to the first slave device when the first master device accesses to the first slave device;
a second master device outputting a second request control signal from the second master device to the first slave device and a second access address signal assigned to the first slave device when the second master device accesses to the first slave device;
a system bus connected to the first slave device, the first master device and the second master device, and selecting and outputting either the first request control signal or the second request control signal when the first request control signal is outputted from the first master device and the second request control signal is outputted from the second master device; and
a range setting register holding an address range of which an access of the first master device is permitted,
wherein the system bus blocks the first request control signal if the first access address signal is out of the address range.
2. The semiconductor device according to claim 1,
wherein the range setting register comprises a first register to hold an upper limit address, and a second register holding a lower limit address assigned to the first slave device, and
wherein the system bus includes a comparator to compare whether the address outputted by the first master device is within the range shown in the first register and the second register.
3. The semiconductor device according to claim 1,
wherein the system bus comprises a selector for switching the connection states of the first slave device, the first master device and the second master device, and a selector control circuit for controlling the selector.
4. The semiconductor device according to claim 1,
wherein the system bus comprises a first illegal address access blocking circuit to detect and block illegal access by the first master device during accessing of the first slave device.
5. The semiconductor device according to claim 4,
wherein the first illegal address access blocking circuit further detects and blocks illegal access by the second master device during accessing of the first slave device by the second master device.
6. The semiconductor device according to claim 1, comprising:
a second slave device connected to the system bus,
wherein the system bus comprises a second illegal address access blocking circuit to detect and block illegal access by the first master device during accessing of the second slave device.
7. The semiconductor device according to claim 1,
wherein an information held in the range setting register is rewritable by the first master device.
US12/176,714 2003-05-06 2008-07-21 Information processing device and processor Abandoned US20080288687A1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
US12/176,714 US20080288687A1 (en) 2003-05-06 2008-07-21 Information processing device and processor
US12/892,645 US9798679B2 (en) 2003-05-06 2010-09-28 Information processing device and processor
US15/791,687 US10289569B2 (en) 2003-05-06 2017-10-24 Information processing device and processor
US16/397,358 US10983924B2 (en) 2003-05-06 2019-04-29 Information processing device and processor

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2003127638A JP2004334410A (en) 2003-05-06 2003-05-06 Information processing apparatus and processor
JP2003-127638 2003-05-06
US10/838,240 US7404054B2 (en) 2003-05-06 2004-05-05 Information processing device and processor
US12/176,714 US20080288687A1 (en) 2003-05-06 2008-07-21 Information processing device and processor

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US10/838,240 Continuation US7404054B2 (en) 2003-05-06 2004-05-05 Information processing device and processor

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US12/892,645 Continuation US9798679B2 (en) 2003-05-06 2010-09-28 Information processing device and processor

Publications (1)

Publication Number Publication Date
US20080288687A1 true US20080288687A1 (en) 2008-11-20

Family

ID=33410440

Family Applications (5)

Application Number Title Priority Date Filing Date
US10/838,240 Active 2025-03-20 US7404054B2 (en) 2003-05-06 2004-05-05 Information processing device and processor
US12/176,714 Abandoned US20080288687A1 (en) 2003-05-06 2008-07-21 Information processing device and processor
US12/892,645 Active US9798679B2 (en) 2003-05-06 2010-09-28 Information processing device and processor
US15/791,687 Active US10289569B2 (en) 2003-05-06 2017-10-24 Information processing device and processor
US16/397,358 Active US10983924B2 (en) 2003-05-06 2019-04-29 Information processing device and processor

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US10/838,240 Active 2025-03-20 US7404054B2 (en) 2003-05-06 2004-05-05 Information processing device and processor

Family Applications After (3)

Application Number Title Priority Date Filing Date
US12/892,645 Active US9798679B2 (en) 2003-05-06 2010-09-28 Information processing device and processor
US15/791,687 Active US10289569B2 (en) 2003-05-06 2017-10-24 Information processing device and processor
US16/397,358 Active US10983924B2 (en) 2003-05-06 2019-04-29 Information processing device and processor

Country Status (2)

Country Link
US (5) US7404054B2 (en)
JP (1) JP2004334410A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100274412A1 (en) * 2009-04-23 2010-10-28 Renesas Technology Corp. Semiconductor data processing device and data processing system

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1977363B1 (en) * 2006-01-13 2016-10-26 Freescale Semiconductor, Inc. Protection system and method of operation therein
JP4756603B2 (en) 2006-10-10 2011-08-24 ルネサスエレクトロニクス株式会社 Data processor
EP1914990A1 (en) * 2006-10-19 2008-04-23 Advanced Digital Broadcast S.A. Electronic module for digital television receiver
JP2010079765A (en) * 2008-09-29 2010-04-08 Renesas Technology Corp Information processing apparatus
JPWO2010097925A1 (en) * 2009-02-26 2012-08-30 株式会社日立製作所 Information processing device
JP5433349B2 (en) 2009-08-27 2014-03-05 ルネサスエレクトロニクス株式会社 Data processor
JP6273733B2 (en) * 2013-09-20 2018-02-07 富士通株式会社 Arithmetic processing device, information processing device, control method for information processing device, and control program for information processing device
JP6364847B2 (en) * 2014-03-19 2018-08-01 日本電気株式会社 Main memory access control device, main memory access control system, main memory access control method, and main memory access control program
US20170060783A1 (en) * 2015-09-01 2017-03-02 Mediatek Inc. Apparatus for performing secure memory allocation control in an electronic device, and associated method
CN110248861B (en) 2018-01-07 2023-05-30 辉达公司 Guiding a vehicle using a machine learning model during vehicle maneuvers

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US2003A (en) * 1841-03-12 Improvement in horizontal windivhlls
US5396471A (en) * 1993-03-29 1995-03-07 Kabushiki Kaisha Toshiba Data protection circuit
US5448703A (en) * 1993-05-28 1995-09-05 International Business Machines Corporation Method and apparatus for providing back-to-back data transfers in an information handling system having a multiplexed bus
US5875310A (en) * 1996-05-24 1999-02-23 International Business Machines Corporation Secondary I/O bus with expanded slot capacity and hot plugging capability
US5983306A (en) * 1996-06-28 1999-11-09 Lsi Logic Corporation PCI bridge with upstream memory prefetch and buffered memory write disable address ranges
US6175888B1 (en) * 1996-04-10 2001-01-16 International Business Machines Corporation Dual host bridge with peer to peer support
US6182178B1 (en) * 1998-06-30 2001-01-30 International Business Machines Corporation Method and system for supporting peripheral component interconnect (PCI) peer-to-peer access across a PCI host bridge supporting multiple PCI buses
US6701397B1 (en) * 2000-03-21 2004-03-02 International Business Machines Corporation Pre-arbitration request limiter for an integrated multi-master bus system

Family Cites Families (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US670197A (en) * 1897-12-24 1901-03-19 Henry M Deming Mowing-machine.
JPS6271749A (en) 1985-09-23 1987-04-02 Nippon Denso Co Ltd Pressure controller
JPS6371749A (en) 1986-09-12 1988-04-01 Fujitsu Ltd Memory protecting system
US4899129A (en) * 1987-12-01 1990-02-06 Smart House Limited Partnership Automated appliance and energy distribution control system
US4899217A (en) 1987-12-01 1990-02-06 Smart House Limited Partnership Communication and energy control system for houses
JPH01287762A (en) 1988-05-13 1989-11-20 Mitsubishi Electric Corp Shared data memory protecting method
JPH03184182A (en) 1989-12-13 1991-08-12 Fuji Xerox Co Ltd Character output layout determination system
JPH07120329B2 (en) 1990-09-10 1995-12-20 松下電送株式会社 Bus controller
US5325499A (en) * 1990-09-28 1994-06-28 Tandon Corporation Computer system including a write protection circuit for preventing illegal write operations and a write poster with improved memory
US5659690A (en) * 1992-10-15 1997-08-19 Adaptec, Inc. Programmably configurable host adapter integrated circuit including a RISC processor
JPH09134193A (en) 1995-11-08 1997-05-20 Nippon Telegr & Teleph Corp <Ntt> Speech recognition device
JPH09297711A (en) 1996-05-01 1997-11-18 Mitsubishi Electric Corp Memory protector for memory board in multiprocessor system
JP3790323B2 (en) 1997-04-16 2006-06-28 株式会社ルネサステクノロジ Data transfer control device, microcomputer and data processing system
US6052756A (en) * 1998-01-23 2000-04-18 Oki Electric Industry Co., Ltd. Memory page management
US6233667B1 (en) 1999-03-05 2001-05-15 Sun Microsystems, Inc. Method and apparatus for a high-performance embedded memory management unit
US6311255B1 (en) * 1999-04-29 2001-10-30 International Business Machines Corporation System and method for selectively restricting access to memory for bus attached unit IDs
US6519690B1 (en) * 1999-08-23 2003-02-11 Advanced Micro Devices, Inc. Flexible address programming with wrap blocking
JP2001243174A (en) 2000-02-29 2001-09-07 Matsushita Electric Ind Co Ltd Bus system and wrong operation prevention device for bus system
US6629162B1 (en) * 2000-06-08 2003-09-30 International Business Machines Corporation System, method, and product in a logically partitioned system for prohibiting I/O adapters from accessing memory assigned to other partitions during DMA
US6772254B2 (en) * 2000-06-21 2004-08-03 International Business Machines Corporation Multi-master computer system with overlapped read and write operations and scalable address pipelining
JP2002032352A (en) 2000-07-17 2002-01-31 Mitsubishi Electric Corp Multiprocessor system
JP2002149593A (en) 2000-11-15 2002-05-24 Matsushita Electric Ind Co Ltd Hierarchical bus system
JP4529063B2 (en) * 2001-03-30 2010-08-25 ルネサスエレクトロニクス株式会社 System simulator, simulation method, and simulation program
JP2002351747A (en) 2001-05-30 2002-12-06 Hitachi Ltd Backup managing method for in-storage data of storage system and storage system equipped with means for implementing the same managing method
JP4025032B2 (en) 2001-06-26 2007-12-19 株式会社日立製作所 Disk control device and data access method thereof
JP2003085127A (en) * 2001-09-11 2003-03-20 Seiko Epson Corp Semiconductor device having dual bus, dual bus system, dual bus system having memory in common and electronic equipment using this system
JP2003114864A (en) * 2001-10-04 2003-04-18 Hitachi Ltd Data transfer control circuit
US7099983B2 (en) * 2002-11-25 2006-08-29 Lsi Logic Corporation Multi-core communications module, data communications system incorporating a multi-core communications module, and data communications process

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US2003A (en) * 1841-03-12 Improvement in horizontal windivhlls
US5396471A (en) * 1993-03-29 1995-03-07 Kabushiki Kaisha Toshiba Data protection circuit
US5448703A (en) * 1993-05-28 1995-09-05 International Business Machines Corporation Method and apparatus for providing back-to-back data transfers in an information handling system having a multiplexed bus
US6175888B1 (en) * 1996-04-10 2001-01-16 International Business Machines Corporation Dual host bridge with peer to peer support
US5875310A (en) * 1996-05-24 1999-02-23 International Business Machines Corporation Secondary I/O bus with expanded slot capacity and hot plugging capability
US5983306A (en) * 1996-06-28 1999-11-09 Lsi Logic Corporation PCI bridge with upstream memory prefetch and buffered memory write disable address ranges
US6182178B1 (en) * 1998-06-30 2001-01-30 International Business Machines Corporation Method and system for supporting peripheral component interconnect (PCI) peer-to-peer access across a PCI host bridge supporting multiple PCI buses
US6701397B1 (en) * 2000-03-21 2004-03-02 International Business Machines Corporation Pre-arbitration request limiter for an integrated multi-master bus system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100274412A1 (en) * 2009-04-23 2010-10-28 Renesas Technology Corp. Semiconductor data processing device and data processing system
US8352096B2 (en) 2009-04-23 2013-01-08 Renesas Electronics Corporation Semiconductor data processing device and data processing system

Also Published As

Publication number Publication date
US7404054B2 (en) 2008-07-22
JP2004334410A (en) 2004-11-25
US10983924B2 (en) 2021-04-20
US20190251041A1 (en) 2019-08-15
US20180046587A1 (en) 2018-02-15
US20110016244A1 (en) 2011-01-20
US20040225768A1 (en) 2004-11-11
US9798679B2 (en) 2017-10-24
US10289569B2 (en) 2019-05-14

Similar Documents

Publication Publication Date Title
US10983924B2 (en) Information processing device and processor
US5613075A (en) Method and apparatus for providing deterministic read access to main memory in a computer system
US20080126643A1 (en) Semiconductor circuit
US20050235084A1 (en) Bus system and access control method
US20060156075A1 (en) Semiconductor integrated circuit
US10691527B2 (en) System interconnect and system on chip having the same
JP4587756B2 (en) Semiconductor integrated circuit device
US5317721A (en) Method and apparatus to disable ISA devices for EISA addresses outside the ISA range
US7096307B2 (en) Shared write buffer in a peripheral interface and method of operating
US6032238A (en) Overlapped DMA line transfers
US6954873B2 (en) Implementation of wait-states
US7360129B2 (en) Simultaneous switch test mode
JP2004030161A (en) Method for controlling interrupt in computer system, computer system, semiconductor integrated circuit and program
US20040128424A1 (en) Bus control device and information processing system
JP5630886B2 (en) Semiconductor device
JP5464676B2 (en) Semiconductor device
JP2006293536A (en) Bus system
JP2008102886A (en) Bus control method and device
JP2010049718A (en) Semiconductor device
JPH06324957A (en) Bus monitoring device
JPS6159557A (en) Virtual memory controlling device
JP3517987B2 (en) Circuit for preventing double setting of direct memory access
JP2004348580A (en) Serial interface circuit and integrated semiconductor circuit
JP2002312072A (en) Information processing device and add-in board reset method
JP2011034385A (en) Semiconductor device

Legal Events

Date Code Title Description
AS Assignment

Owner name: RENESAS ELECTRONICS CORPORATION, JAPAN

Free format text: MERGER;ASSIGNOR:RENESAS TECHNOLOGY CORP.;REEL/FRAME:024736/0381

Effective date: 20100401

STCB Information on status: application discontinuation

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