Managing a memory firewall in a system-on-a-chip

The SoC architecture allows dynamic and flexible management of memory access rights by delegating control to a second master device, addressing the challenges of managing partitioned memory and low power modes, enhancing flexibility and efficiency in access rights management.

FR3129502B1Active Publication Date: 2024-08-30STMICROELECTRONICS (ALPS) SAS +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
FR2021012501
Authority / Receiving Office
FR · FR
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-11-25
Publication Date
2024-08-30
Estimated Expiration
2041-11-25

AI Technical Summary

Technical Problem

Existing systems-on-chip (SoC) face challenges in managing memory access and firewall configuration, particularly when memory is partitioned into multiple zones, and in low power modes, requiring a simpler and more flexible approach to access rights management.

Method used

A system-on-chip architecture that includes multiple master devices and slave resources, with an interconnection system, where a first master device defines initial access rights and can delegate management to a second master device, which can further partition memory zones and set specific access rights, using a firewall verification mechanism to ensure authorized transactions.

Benefits of technology

Enables dynamic and flexible management of memory access rights, allowing local control by the memory owner, simplifying task scheduling and compatibility with low-consumption modes without reconfiguring through the first master device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000020_0000
    Figure 00000020_0000
  • Figure 00000021_0000
    Figure 00000021_0000
  • Figure 00000021_0001
    Figure 00000021_0001
Patent Text Reader

Abstract

A first master device (CPU1) defines initial access rights for a memory area of ​​a slave resource (IMM1) and delegates, at least temporarily, access management for this memory area to a second master device (CPU2). This second device defines specific access rights for this memory area based on the initial access rights associated with that memory area and access rights rules. Verification means (RISU1) check whether a transaction destined for this memory area is indeed authorized to access it using the access rights associated with that memory area and in effect at the time the transaction is received. These access rights may include the initial access rights, specific access rights, or other access rights. (See Figure 1 for abbreviations.)
Need to check novelty before this filing date? Find Prior Art

Description

Description Title of the invention: Memory firewall management in a system-on-a-chip

[0001] — Implementation and embodiment methods relate to integrated circuits, including systems-on-chip (SoC: System on Chip), for example a micro- controller (multi-core or single-core), or a microprocessor, for example the managing the operation of such a system-on-a-chip, and more specifically the management access to memory partitioned into several memory areas and the management of the firewall configuration for such a memory.

[0002] =— In order to help ensure the reliability of a system-on-a-chip, it may be required to restrict access of one or more master equipment to slave resources specific. Such a characteristic is designated by a person skilled in the art as Anglo-Saxon term for “firewall or insulation”.

[0003] It is also possible to make managing these access restrictions simple to to implement and to put in place, particularly in the case where this management is dynamic, for example when it depends on the applications envisaged for the system on a chip, for example applications envisioned on the multiple cores of the chip.

[0004] It is still possible to propose a system-on-a-chip, for example a micro- controller or microprocessor, enabling all use cases arising from the various system-on-chip users as well as all configurations of a in a flexible manner, and including in particular a low power mode fashion).

[0005] The French patent application published under No. 3103586 describes an example of a system on a chip offering the advantages mentioned above.

[0006] — That being said, there is still a need to improve such a system-on-a-chip in particular regarding memory access management and configuration management of its firewall, especially when this memory is partitioned into several memory areas.

[0007] — More generally, there is a need to simplify the configuration of the par- a memory fire, internal to a system-on-a-chip or external but coupled to the system on chip, particularly when modifying access rights to a part of the memory, or when the system-on-a-chip is in a low-power mode (low power).

[0008] = According to one aspect, a system-on-a-chip comprising several is proposed master equipment, for example, when the system forms in particular a micro- controller, at least one microprocessor and usually several microprocessors, a direct memory access (DMA: Direct Memory Access…) controller without these examples being exhaustive. The system-on-a-chip also includes several slave resources. As a non-limiting example, a slave resource may belong to the group formed by at least one device, for example a PC (“Inter Integrated Circuit”) type device, an SPI (“Serial Peripheral Interface”) type device, a UART (“Universal Asynchronous Receiver Transmitter”) type device, or a real-time clock (RTC “Real Time Clock”), a feature of a device, for example an alarm line of the RTC device. The system-on-chip also includes at least one slave resource containing a memory device including at least one first memory area. The term "memory device" should be taken here in a very broad sense encompassing, for example, a means of internal memory within the system-on-chip, or a memory interface internal to the system-on-chip and intended to be coupled to a means of external memory to the system-on-chip, for example, DDR SRAM ("Double Data Rate Synchronous Dynamic Random Access Memory"). The system-on-chip also includes an interconnection system (known to those skilled in the art under the Anglo-Saxon term "interconnect") coupled between master equipment and slave resources and capable of routing transactions (for example, write or read transactions) between master equipment and slave resources. Among the master equipment, a first master equipment, for example but not limited to, a microprocessor, is configured to define (for example when executing a user program after a cold boot phase) initial access rights for this first memory area, and to delegate, at least temporarily, the management of access to said at least a first memory area to a second master equipment. This second master equipment, preferably different from the first master equipment, is configured to define, for said at least one first memory area, specific access rights based on the initial access rights associated with this first memory area and access rights rules. These access rights rules can be incorporated in software into the program executed by the second master device and can also be hard-coded. The system also includes verification means (acting as a firewall) configured to check whether a transaction destined for at least one first memory area is indeed authorized to access that first memory area using access rights associated with this memory area and in effect at the time of receipt of said transaction. The so-called access rights in force include initial access rights or special access rights, or other access rights. Indeed, as we will see in more detail below, it is possible that the second master device assigns specific access rights for the entire first memory area. That being said, according to one possible embodiment, at least a first memory area can be partitioned into several memory sub-areas and the second master device which has been delegated for this first memory area is configured to assign respective access rights for these memory sub-areas. Thus these memory sub-zones can be disjoint, adjoining or not, or overlapping. The access rights to memory sub-areas can be specific access rights, while a memory sub-area located between two memory sub-areas with specific access rights may, for example, retain its initial access rights that were defined by the first master equipment. Similarly, since the delegation may be temporary, it is possible, as we will see below, that the first master equipment withdraws this delegation and takes back control of the management of access rights of this first memory area. In this case, it can retain the initial access rights or define other access rights, different from the initial and specific access rights. Similarly, it is possible to activate or deactivate the firewall, temporarily for example. Thus, if the firewall is not activated, there is no filter on access rights and any transaction, emanating from any master equipment, can then, for example, access the first memory area. Delegating firewall management, and therefore access rights management, to a second master device makes it possible to easily change access rights to a memory area within the framework of task scheduling, to easily share a buffer with another execution memory region, or to be compatible with a low-power operating mode in which the first master device would be in standby and where it would nevertheless be necessary to manage local memory access to a memory. Thus it is possible, for example by respecting rules, to bypass certain firewall parameters that were programmed at initialization by the first master device, without it being necessary to go back through the first master device. In other words, unlike prior art systems-on-a-chip, one can to allow local firewall control of a memory or memory area by the "owner" of the memory himself, that is to say the one who will in particular use this memory, in this case the second master device. The memory device can include several first memory areas and the first master device can be configured to define initial access rights for each first memory area, and to delegate respectively, at least temporarily, the management of access to the first memory areas to several second master devices, different or not. As previously stated, the first master device can also be configured to, after delegating access management of a first memory area to the corresponding second master device, withdraw this delegation and resume access management to this first memory area, or possibly give delegation again to another second master device. The first master device can also be configured so that, after removing a delegation, it is not allowed to grant a new delegation for managing access to the first memory area concerned. According to one embodiment, the memory device may include at least one second memory area and the first master equipment may further be configured to define initial access rights for this second memory area and not to be allowed to delegate access management to this or these second memory areas. The different memory areas can be regions defined by a start memory address and an end memory address. The different memory areas can also be memory pages. According to another aspect, a method is proposed for managing access to at least one memory device of a system-on-a-chip, the system-on-a-chip comprising several master devices, several slave resources, and a coupled interconnect circuit between the master devices and the slave resources capable of routing transactions between master devices and slave resources, at least one slave resource containing said at least one memory device including at least one first memory area, the method comprising: -have initial access rights defined for this first memory area by a primary master device, - to delegate, at least temporarily, from the first master device to a second master device, the management of access to said at least one first memory area, -to have this second master device define, for at least one first memory area, specific access rights based on the initial access rights associated with this first memory area and access rights rules, and -verify if a transaction intended for said at least a first memory area, is indeed authorized to access this first memory area using access rights associated with this memory area and in force at the time of receipt of said transaction, the access rights in force including initial access rights or special access rights, or other access rights. According to an implementation mode in which the memory device includes several first memory areas, the process comprises: -have the first master device define initial access rights for each first memory area, and - to have the first master equipment delegate, at least temporarily, the management of access to the first memory areas to several second master equipment. According to an implementation mode in which the first corresponding memory area includes several sub-first memory areas, the process comprises: -have each second master device manage access to these sub-first memory areas. According to one implementation method, the process further includes having a first master equipment withdraw this delegation after it has delegated the management of access to a first memory area to the corresponding second master equipment, and having the first master equipment resume the management of access to this first memory area. According to an embodiment in which the memory device includes at least one second memory area, the method further comprises: -have the first master device define initial access rights for this second memory area and do not allow the first master device to delegate access management to this or these second memory areas. The system-on-a-chip can form a microcontroller or a microprocessor. Other advantages and features of the invention will become apparent upon examination of the detailed description of embodiments and implementations, which are by no means limiting, and the accompanying drawings in which: [Fig.1] [Fig.2] [Fig.3] [Fig.4] [Fig. 5] [Fig.6] [Fig.7] [Fig.8] [Fig.9] [Fig.10] [Fig.11] [Fig.12] schematically illustrate the methods of implementation and realization of the invention. The invention applies to any type of system-on-chip comprising several master devices, several slave resources, and a coupled interconnection circuit between the master devices and the slave resources and capable of routing transactions between master devices and slave resources. The invention applies in particular to a system-on-chip such as that described in French patent application no. 3103586 mentioned above, some general characteristics of which, relating in particular to the configuration scheme, the identification of master equipment and slave resources, as well as the structure of the transactions, will be repeated below. However, a person skilled in the art may refer for all useful purposes to this French patent application, the content of which is incorporated, by reference, into the present patent application. In [Fig.1], the reference MCU designates a system on chip (“System On Chip”) forming here a microcontroller, although this example is not limiting. The MCU system-on-chip includes several master devices, of which only three, referenced CPU1, CPU2, CPU3, are represented here for simplification purposes. In this example, the master devices CPU1, CPU2 and CPU3 are microprocessors and the other master devices could be, for example, Direct Memory Access (DMA) type master devices or USB controllers or a PCI express type master device, without this list of examples being exhaustive. The MCU system-on-chip also includes several slave resources, of which only four, referenced IMM1, PH3, PH4, PHS, are represented here for simplification purposes. In general, a slave resource belongs to the group formed by at least one device, a device feature, an internal system-on-chip memory means MCU, an internal system-on-chip memory interface intended to be coupled to an external system-on-chip memory means. Thus, in the illustrated example, the IMMI1 slave resource is a memory device, and more specifically an internal system-on-chip memory. Slave resources PH3, PH4 and PHS are peripherals, for example a UART type device, a PC controller, an SPI controller. The structure of master equipment and slave resources is classic and well-known. The MCU system-on-chip also includes an INTC interconnect circuit capable of routing transactions between master equipment and slave resources. The structure of such an interconnection circuit, which is generally a multilayer interconnection circuit, as well as the protocol enabling the exchange and routing of transactions within the interconnection circuit, are well known to those skilled in the art. This could, for example, refer to: -to the article by Venkateswara Rao et al. entitled "A Frame work on AMBA bus based Communication Architecture to improve the Real Time Computing Performance in MPSoC", International Journal of Computer Applications (0975-8887), Volume 91 - No. 5, April 2014, Or -to a general presentation of these interconnection circuits carried out in 2015 by A. Gerstlauer and available at the internet address http: / / users.ece.utexas.edu / -gerstl / ee382v_f14 / lectures / lecture_12.pdf. Furthermore, as an indication but not an exhaustive list, one can use for example the interconnect circuit marketed by the company ARM under the reference NIC-400 (version R0p3). The system-on-chip also includes, associated with each master device and each slave resource, a set of configuration registers comprising several configuration registers intended to store configuration information respectively, the meaning of which will be discussed in more detail below. The RGCMI reference designates the configuration register set associated with the CPUI master equipment. The reference RGCM2 designates the configuration register set associated with the master equipment CPU2. The reference RGCM3 designates the configuration register set assigned to the master equipment CPU3. The RGCSI reference designates the set of configuration registers assigned to the IMMI slave resource. The reference RGSC3 designates the configuration register set associated with the PH3 peripheral. The reference RGCS4 designates the set of configuration registers assigned to the peripheral PH4 peripheral. The RGCSS reference designates the set of configuration registers assigned to the PHS5 device. Furthermore, this example includes an RDS register, called a designation register, the functionality of which will be discussed in more detail later, but it can already be indicated that it is used to designate a master equipment, as the first master equipment, having the quality of a managing master equipment. The different sets of configuration registers are represented here within an RIFC controller. That being said, they could be placed outside the controller. The MCU system-on-chip also includes, associated with each master device, an elementary management unit RIMU1, RIMU2, RIMU3. We will return in more detail to the structure and functionality of these elementary management units, but we can already say that they are part of the means of addition intended to add to any transaction issued by a master equipment, a CID identification information and possibly a security information and / or a privilege information. The system-on-chip also includes, associated with each slave resource, an elementary verification module RISU1, RISU3, RISU4, RISUS, the structure and functionality of which will also be discussed in more detail below. We can already say that these basic verification modules are part of the verification means intended to check if a transaction intended for a slave resource is indeed authorized to access that slave resource. The different RIMU elementary management units and the different RISU elementary verification modules are respectively connected to the corresponding configuration register sets by specific links, for example metal traces. While the RISUi elementary verification modules have been shown on [Fig.1] outside the corresponding devices, it is entirely possible to provide for one or more devices having their corresponding elementary verification module integrated into the device itself. As will be seen in more detail below, the RISUI module and the associated RGCS1 registers act as a firewall for the IMM memory], the management of this firewall initially entrusted to the first master equipment or manager equipment, can under certain conditions be delegated, at least temporarily, for certain memory areas of the IMM 1 memory, to a second master equipment. But before going into detail, let's briefly review some of the system-on-a-chip's features and characteristics. Those skilled in the art may be able to... Refer to the aforementioned French patent application for further details. Other functionalities and features of the system-on-chip, not necessary for the implementation of the invention, such as the possibility of changing management equipment, described in the aforementioned French patent application and which may nevertheless be implemented in the present system-on-chip, will not be described here for the sake of simplification. The MCU system-on-chip includes processing means, distributed among the various elements described in reference to [Fig.1], and configured to allow a system-on-chip user to implement within the system-on-chip, during a configuration phase, a configuration scheme defined by the set of configuration information that will be stored in the various sets of configuration registers. Before going into more detail about the constitution of this configuration information, we can already note that the user has the possibility of implementing a static or dynamic configuration. We assume here, as an example, that the configuration scheme corresponds to an initial scheme remaining valid during the use or operating phase of the system on chip (static configuration). More specifically, as an example, the first master manager device is configured to, in response to an initial system-on-chip boot or cold boot, perform a boot phase after which this first master manager device is configured to at least allow the implementation of the initial configuration scheme. The designation of the first master management device can be fixed during the implementation of the MCU system-on-chip, for example by hard-coding. Alternatively, the user can use the programmable RDS designation register to designate the first master management equipment. As an example, a boot ROM is configured to store a boot program that can only be executed by the first master managing equipment, for example the CPUI microprocessor, during the first boot or cold boot of the system-on-chip. An INP input ([Fig.1]) can be configured to receive a user program. This user program can, for example, be stored on an SD card cooperating with said INP input. This user program is received from the INP input and stored in program memory. This user program contains at least some instructions representative of the initial configuration scheme. In this example, the first master manager device (e.g., the CPUI1 microprocessor) is configured to, after its startup phase, execute the user program in order to implement the initial configuration scheme. While a microprocessor, for example the CPU microprocessor, has been described here as the first master managing equipment, it is entirely possible, alternatively, that the first master managing equipment includes a hardware logic circuit. We now refer more specifically to [Fig.2] to illustrate an example of a set of configuration information defining an SCH configuration scheme, which may be the initial scheme or a modified initial configuration scheme. For the sake of simplicity, only a few configuration details are cited here, from those mentioned in the aforementioned French patent application. The configuration information set can therefore include, for each master device, a CID identification number. This identification number allows the master device to be identified from the list of master devices. This CID identification information can be, for example, a numeric word. The configuration information set of a master device may also include SEC security information, for example a bit, indicating, according to the logical value of the bit, whether that master device is configured in secure mode or not. The configuration information set for a master device may also include PRV privilege information, for example a bit, indicating according to the logical value of the bit whether that master device is configured in privileged mode or not. This privilege information can include several bits if multiple levels of privileged modes are planned. This configuration information associated with the master equipment is stored (step 120) in the corresponding configuration register set RGCMi. With regard to a slave resource, the configuration information set associated with it may include, for example for a non-inaccessible slave resource, IFLT filtering information, for example a bit, intended to indicate, based solely on the CID identification information of the master equipment, whether this slave resource can be accessed by any master equipment or by only one or more master equipment. Thus, for example, if the filtering information has the logical value "O", this means that there is no filtering applied to the credentials and therefore a slave resource can be accessed by any master equipment. It should be noted that several master devices may have the same CID identification information. This is the case, for example, when these master devices include a micro- processor and one or more master devices controllable by this microprocessor. In this case, a compartment is then formed, designated by the CID identification information. All master devices in this compartment can then, for example, have access to the same memory resources. It is also possible that a master device controlled by a microprocessor may, for security reasons, not have the same identification information as the microprocessor. This is the case, for example, with PCI-E type devices. In this case, this allows access to certain memory resources of this PCI-E type master device to be restricted. The configuration information set defining the configuration scheme may further include, for the non-inaccessible slave resource, a first IACI access information intended to indicate, in the case where the IFLT filtering information (IFLT=1 for example) indicates that the slave resource in question can be accessed by only one or more master devices, that this slave resource can be accessed by one or more master devices having the same CID identification information. In this case, of course, the configuration information set includes this corresponding CID identification information. As mentioned above, this CID identification information can relate to a single master device or to several master devices in the same compartment. The configuration information set defining the SCH configuration scheme may also include, for this non-inaccessible slave resource, a second access information (IAC2) intended to indicate, in the case where the IFLT filtering information (IFLT=1) indicates that the slave resource can be accessed by only one or more master devices, that this slave resource can be accessed by master devices with different CIDs. In this case, the configuration information set for this slave resource includes, for example, a list (CID1..CID4) of the corresponding master device credentials. Such a slave resource, which can be accessed by several master devices sequentially or simultaneously, can be, for example, a memory device. The configuration information set defining the SCH configuration scheme for this slave resource may also include ISEC security information, for example a bit, intended to indicate whether this slave resource is accessible by a secure master device or not. Similarly, the configuration information set may include for this slave resource a privilege information, for example a bit, IPRV, intended to indicate whether this slave resource is accessible by a master device in privileged mode or not. All this configuration information assigned to a slave resource is stored (step 121) in the corresponding configuration register set RGCSi. It should be noted here that the first master management equipment, for example the CPU microprocessor, is configured to be in secure mode and privileged mode at the end of its startup phase. We now refer more specifically to figures 3 and following to describe in more detail the characteristics and functionalities relating to the management of access rights of the IMMI memory as well as the characteristics and management of its RISUI firewall. As illustrated in [Fig.3], the IMMI1 memory is partitioned here into three memory areas, namely two first memory areas ZM1A and ZM1B and a second memory area ZM2. Each of these memory areas can be defined by a start address and an end address. Alternatively, particularly when the IMM memory is internal memory, these memory areas can be defined by one or more memory pages. In the configuration scheme, the first master CPUI device defines (step 40) initial DACI access rights for each of the memory areas ZM1A, ZM1B and ZM2. Examples of initial access rights are illustrated in [Fig.5]. More specifically, for the second memory area ZM2, the initial access rights DCAI2 specify that the memory area can be accessed by the first master device CPUI configured in non-secure mode (NS), in privileged mode (P) and that this access can be a read / write (R / W) access. The initial access rights DCAI2 also provide that the second memory area ZM2 can be addressed by the master equipment CPU2 configured in insecure mode, in non-privileged mode and with read / write (R / W) access. With regard to the first memory area ZM 1 A, the initial access rights DCAIIA provide that this first memory area can be accessed by the master equipment CPU1 configured in insecure mode and in privileged mode with read / write (R / W) access. With regard to the other first memory area ZM1B, the initial access rights DCAIIB provide that this other first memory area can be accessed by the master equipment CPU1 configured in secure mode and privileged mode with read / write (R / W) access. These access rights are recorded, via the corresponding configuration information, in the RGCS1 register set assigned to the IMM1 slave resource. If we now return more specifically to [Fig.4], we see that in this implementation mode, there is provided for example a register called here a delegation register, associated with each of the memory areas ZM1 A, ZMIB and ZM2. And, these delegation registers RODC2, RODCIA, RGDCIB, for example located in the RIFC configuration controller, are intended to contain a DCEN bit, whose logical value will determine whether or not the management of access rights of the corresponding memory area can be delegated to another master device. As an indication, if the value of this bit is equal to 0, then access rights management cannot be delegated, while if the value of this bit is equal to 1, it can be delegated. In the example in [Fig.4], the RGDC2 register contains the DCEN bit with the logic value 0 while the RGDCIA and RGDCIB registers contain the DCEN bit with the logic value 1. This means that, with regard to the second memory area ZM2, the management of its access rights which were initially entrusted to the first master equipment CPU1 for example, cannot, in this example configuration, be delegated to another master equipment (step 41). However, with regard to the first memory area ZM1 A, the management of its access rights can be delegated to another master equipment (step 42) for example to the microprocessor CPU1 configured in non-secure mode. Similarly, with regard to the first memory area ZMIB, the management of its access rights can be delegated (step 43) to the master equipment CPU2 configured in secure mode. Thus, the master equipment CPU1, configured in non-secure mode (NS), can define specific access rights DACPIA for the first memory area ZM1A, while the master equipment CPU2, configured in secure mode (S), can define specific access rights DACPIB for the memory area ZMI1B. For example, as illustrated in [Fig.6], the development of 50 specific DACPIA access rights by the master equipment CPU1 configured in insecure mode, is carried out from the initial DACIIA access rights and RGL access rights rules. As an example, the special access rights DACPIA may thus provide that the memory area ZM1A can be accessed by the first master device CPUI, configured in non-secure mode (NS), in non-privileged mode (NP) with read / write (R / W) access or by the master device CPU3, configured in non-secure mode (NS), in non-privileged mode (NP) with read-only (RO) access. As illustrated in [Fig.7] as an example, the elaboration 60 has special access rights DACP1B, associated with the memory area ZM1B, by the master equipment CPU2 configured in secure mode {S) is carried out from the initial access rights DACIIB and the RGL rules. The specific access rights DACP1IB can thus provide access by the master equipment CPUI1 configured in secure mode (S), in non-privileged mode (NP) with read / write access (R / W) or access by the master equipment CPU2, configured in secure mode, in non-privileged mode (NP), with read / write access (R / W). These different access rights are materialized by the corresponding bits and the identification information of the corresponding master equipment is stored in the RGCS1 register set associated with the IMM1 memory. And, for example, it is the RIFC configuration controller that replaces the initial access rights with the specific access rights, in response to a command from the master equipment that has been delegated to modify these access rights. Figure 8 illustrates an example of RGL rules represented here in table form. The left column lists the different secure (S), privileged (P), insecure (NS) and non-privileged (NP) configurations that can be provided for in the initial DACI access rights. The rest of the table indicates for a particular DACP access right whether the S,P or S,NP, or NS,P or NS,NP configuration is allowed or not. If it is allowed, this is indicated by the symbol OK and if it is not allowed it is indicated by the symbol NOK. In other words, if the initial DACI access rights of a memory area provide access in secure mode (S) and in non-privileged mode (NP), it will not be possible for the master equipment that has received the delegation to modify access rights to assign access, for example, in secure mode (S) and privileged mode (P). However, it will be able to allow access in secure (S) and non-privileged (NP) mode, or access in insecure (NS) and non-privileged (NP) mode. Of course, these RGL rules are only a non-limiting example and other examples of rules are possible. As schematically illustrated in [Fig.9], it is entirely possible that the delegation of access rights management by the first master equipment CPU1, for example, to the master equipment CPU2, for example, is only temporary. More specifically, delegation 70 can, for example, intervene in the presence of a particular CNDO condition, such as the reception of a particular instruction from the user program or the reception of a control signal without these examples are not exhaustive. And, this delegation can end, for example, when a CNDI condition is met, such as the end of the execution of a subroutine or the receipt of another control signal, without these examples being limiting. In this case, the end of delegation 71 can result, for example, in a resumption of the management of the IMMI1 memory firewall by the first master device CPU1 which had initiated the initial access rights. We now refer more specifically to [Fig. 10] to describe an example of the content of a TR transaction. In general, here, each TR transaction issued by a master device includes an ADR addressing field whose content is intended to address the slave resource receiving that transaction. More specifically, as illustrated in [Fig.10], each TR transaction includes the CID identification information of the master equipment issuing that transaction, the SEC security information, an EXE indication to indicate whether or not that transaction contains an execution instruction, the PRV privilege information, RW information indicating whether it is a read or write transaction, the ADR addressing field, and a DATA data field. The addition means, comprising for each master equipment EM, the associated elementary management unit RIMUi which is linked to the corresponding configuration register set RGCMI, are configured to add to each transaction issued by a master equipment at least the identification information of that master equipment CID. The appending means are further configured to add to each transaction issued by a master device the SEC security information and / or the privilege information if these two pieces of information are not already present in the transaction issued by the master device. The TR transaction is then delivered on the bus linked to the INTC interconnect circuit. In terms of materials, this basic RIMUi management unit can include a logic circuit. As illustrated very schematically in [Fig.11], the RISUI elementary verification module is configured to access all the configuration information assigned to the IMMI1 slave resource stored in the corresponding configuration register set RGCS1, and defining for the different memory areas of the IMM 1 memory, the initial access rights DACI and specific access rights DACP. The updating of the RGCS1 registers with the initial DACI access rights and possibly the specific DACP access rights is carried out by the security controller. configuration, via a BS1 bus, for example an AHB type bus (“Advanced High performance Bus”), and an AHBI bus interface. The TR transactions issued by the various master devices, CPU1, CPU2, are transmitted on the BS2 bus and then to the RISUI1 elementary verification module. This module then checks whether or not the transaction can access the considered memory area of ​​IMM1 memory based on the content of the RGCS1 register. The invention is not limited to the methods of implementation and realization that have just been described but encompasses all variants thereof. Thus, as illustrated in [Fig. 12], the second master device that has been delegated (here, the CPU1 device in unsecured mode) can also partition the first memory area ZM1A into several (here, three) memory sub-areas ZM1A1, ZM1A2, and ZM1A3, which are shown here as separate and adjacent. However, these memory sub-areas could also be separate or overlapping. The access rights to its memory sub-areas ZM1A1 and ZM1A3 may, for example, be special access rights, while the memory sub-area ZM1 A2 located between the two memory sub-areas ZM1A1 and ZM1A3, which are affected by special access rights, may, for example, retain its initial access rights that had been defined by the first master equipment.

Claims

Claims

1. System on chip, comprising several master devices, several slave resources, an interconnection circuit (INTC) coupled between the master devices and slave resources and capable of routing transactions between master devices and slave resources, in which at least one slave resource contains a device of memory (IMM 1) including at least a first memory area (ZMI1A, ZM1B) and a first master device (CPU1) is configured to define initial access rights (DACTI) for this first zone memory, and to delegate, at least temporarily, the management of access of said at least one first memory zone to a second master device (CPU2), this second master device being configured to define for said at least one first memory zone, special access rights (DACP) from access rights initials (DACD) associated with this first memory zone and rules of access rights (RGL), and the system further includes means of verification (RISU1) configured to check whether a transaction intended to said at least one first memory zone, is authorized to access this first memory area (ZM1 A, ZM1 B) using access rights associated with this memory area and in effect at the time of the receipt of said transaction, the access rights in force including the initial access rights or specific access rights, or other access rights.

2. The system of claim 1, wherein the memory device includes multiple memory areas and the first master equipment (CPUI1) is configured to set initial access rights for each first memory zone, and to delegate respectively, to the less temporarily, the access management of the first zones memories to several second master devices.

3. A system according to claim 1 or 2, wherein at least one first memory area (ZM1 À) is partitioned into several sub- memory zones (Z / M1 A1, ZM 1 A2, ZM1 A3), and the second master equipment which has obtained delegation for this first zone memory (ZM1A) is configured to assign access rights respective for these memory sub-areas (ZM1A 1, ZM1 A2, ZM1A3).

4. System according to one of the preceding claims, in which the first master device (CPU1) is further configured to, after having delegated the management of access to a first memory zone to the second corresponding master equipment, remove this delegation and resume management of access to this first memory area.

5. System according to one of the preceding claims, in which the memory device includes at least one second memory area (ZM2) and the first master device is further configured to define initial access rights for this second memory area and to not be authorized to delegate access management to this or these second memory zones.

6. System according to one of the preceding claims, forming a micro- controller or microprocessor.

7. Method for managing access to at least one memory device of a system on chip, the system on chip comprising several master devices, several slave resources, and a circuit interconnection (INTC) coupled between the master devices and the slave resources and capable of routing transactions between master equipment and slave resources, at least one resource slave containing said at least one memory device including at at least a first memory area, the method comprising: -have access rights defined by a first master device initials for this first memory zone, - have delegated, at least temporarily, by the first equipment master to a second master device, the management of access to said at least one first memory zone, - have this second master equipment defined for said at least a first memory zone, specific access rights from the initial access rights associated with this first memory area and access rights rules, and -check whether a transaction intended for said at least one first zone memory, is authorized to access this first memory zone in using access rights associated with this memory area and in force upon receipt of said transaction, the access rights in force including initial access rights or specific access rights, or other access rights.

8. A method according to claim 7 for a memory device including several first memory zones (ZM1 A, ZM1B), comprising: have the first master device define rights initial accesses for each first memory area, and - have delegated by the first master equipment respect- tively, at least temporarily, the management of access to first memory areas to several second devices masters.

9. A method according to either of claims 7 or 8, further comprising making withdraw by a first master equipment, after it has delegated the management of access from a first memory zone to the second corresponding master equipment, this delegation and have it taken over by the first master equipment, management of access to this first zone memory.

10. Method according to one of claims 7 to 9 for a device of memory including at least a second memory zone (ZM2), further comprising: - have access rights defined by the first master device initials for this second memory area and not allow the first master device to delegate access management to this or these second memory zones.

11. Method according to one of claims 7 to 10, in which the system on chip forms a microcontroller or microprocessor.