Control program, control method, and information processing apparatus

By optimizing bus access routes in a virtual environment with direct and indirect methods based on pointer availability, the simulation speed for complex SoC bus topologies is enhanced, addressing the slowdown caused by interconnects and supporting diverse simulation needs.

JP2024132456AActive Publication Date: 2024-10-01RENESAS ELECTRONICS CORP

Patent Information

Application Number
JP2023043222
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-17
Publication Date
2024-10-01
Estimated Expiration
2043-03-17

AI Technical Summary

Technical Problem

The increasing complexity of System on a Chip (SoC) bus topologies and the need for faster bus transaction simulations are hindered by the decrease in simulation speed due to the number of interconnects in existing simulation methods, particularly when accessing bus slaves that perform operations other than read or write.

Method used

A control program and method that utilizes a virtual environment with a bus master that performs direct bus access based on a held pointer and indirect access via interconnects when the pointer is not held, allowing efficient simulation by optimizing bus access routes.

Benefits of technology

This approach enables high-speed simulation of bus transactions without impairing slave operations, supporting various simulation needs including speed and accuracy, and accommodating Functional Safety and security requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024132456000001_ABST
    Figure 2024132456000001_ABST
Patent Text Reader

Abstract

To provide a control program capable of appropriately executing high-speed simulation.SOLUTION: A control program causes an information processing apparatus to execute a control method, the information processing apparatus including a virtual environment V1 for executing a simulation target program. The virtual environment V1 includes a bus master 101, an interconnect 102, and a bus slave 103 connected to the bus master 101 via the interconnect 102. The control method includes: an access processing step of causing the bus master 101 to execute the bus access to the bus slave 103 in a different route depending on whether a pointer for executing the bus access from the bus master 101 to the bus slave 103 is held in a pointer holding section 1010; and an operation executing step of causing the bus slave 103 to execute a predetermined operation triggered by the bus access from the bus master 101.SELECTED DRAWING: Figure 5
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a control program, a control method, and an information processing device, and, for example, to a control program, a control method, and an information processing device that are capable of realizing a virtual environment. [Background technology]

[0002] There is known a technique for executing software using a virtual environment and performing a simulation. As a related technique, Patent Document 1 discloses an information processing device having a virtual environment for executing an embedded program for a predetermined embedded device.

[0003] In the information processing device disclosed in Patent Document 1, when a bus access occurs to read or write to a register of a peripheral IP (Intellectual Property) during execution of a simulation of an embedded program, a virtual CPU (Central Processing Unit) sends a transaction, which is a read or write access command including the address and size of the access destination, to a virtual bus section. An access processing section of the virtual bus section receives the bus access and determines whether the access destination of the bus access exists in an access destination list. If the access destination exists in the access destination list, the access processing section determines whether the access destination is a stub area. If the access destination is a stub area, the access processing section directly accesses the stub area based on the transaction. If the access destination is not a stub area, the access processing section sends the transaction to the access destination. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2018-200495 A Summary of the Invention [Problem to be solved by the invention]

[0005] The bus topology of SoC (System on a Chip) is becoming more complex year by year, and high-speed simulation of bus transactions is becoming important. Normally, in the case of a simulator including a bus topology, bus access such as write and read is performed by sequentially calling the bus access API (Application Programming Interface) of the bus interconnect between the bus master and the bus slave (for example, b_transport in SystemC). When API access is performed from the bus master to the bus slave via the interconnect, the simulation speed decreases in proportion to the number of interconnects. There is a demand for high-speed simulation in information processing devices such as that disclosed in Patent Document 1.

[0006] Other objects and novel features will become apparent from the description of this specification and the accompanying drawings. [Means for solving the problem]

[0007] According to one embodiment, a control program according to the present disclosure is a control program for causing an information processing device having a virtual environment for executing a program to be simulated to execute a control method. The virtual environment includes a bus master, an interconnect, and a bus slave connected to the bus master via the interconnect. The control method includes an access processing step and an operation execution step. In the access processing step, the bus master accesses the bus slave via a different route depending on whether or not a pointer for performing bus access from the bus master to the bus slave is held in the holding unit. In the operation execution step, the bus slave executes a predetermined operation due to the bus access from the bus master. In the access processing step, if the pointer is held, the bus master directly accesses the bus slave based on the pointer, and if the pointer is not held, the bus master accesses the bus slave via the interconnect.

[0008] According to an embodiment, a control method according to the present disclosure is a control method executed by an information processing device having a virtual environment for executing a program to be simulated. The virtual environment includes a bus master, an interconnect, and a bus slave connected to the bus master via the interconnect. The control method includes an access processing step and an operation execution step. In the access processing step, the bus master accesses the bus slave via a different route depending on whether a pointer for performing bus access from the bus master to the bus slave is held in the holding unit. In the operation execution step, the bus slave executes a predetermined operation due to the bus access from the bus master. In the access processing step, if the pointer is held, the bus master directly accesses the bus slave based on the pointer, and if the pointer is not held, the bus master accesses the bus slave via the interconnect.

[0009] According to an embodiment, an information processing device according to the present disclosure is an information processing device having a virtual environment for executing a program to be simulated. The virtual environment includes a bus master, an interconnect, and a bus slave connected to the bus master via the interconnect. The bus master has a holding unit and an access processing unit. The holding unit holds a pointer for bus access from the bus master to the bus slave. The access processing unit performs bus access to the bus slave via a different route depending on whether the pointer is held in the holding unit. The bus slave has an operation execution unit that performs a predetermined operation due to bus access from the bus master. If the pointer is held, the access processing unit performs bus access directly to the bus slave based on the pointer, and if the pointer is not held, performs bus access to the bus slave via the interconnect. Effect of the Invention

[0010] According to the embodiment, it is possible to provide a control program, a control method, and an information processing device that are capable of appropriately performing a high-speed simulation. [Brief description of the drawings]

[0011] [Figure 1] FIG. 1 is a block diagram showing a configuration of an information processing device according to the first embodiment. [Diagram 2] FIG. 2 is a diagram illustrating a virtual environment according to the first embodiment. [Diagram 3] FIG. 3 is a diagram illustrating a bus access process according to the first embodiment. [Figure 4] FIG. 4 is a diagram illustrating a bus access process according to the first embodiment. [Diagram 5] FIG. 5 is a flowchart illustrating the flow of a bus access process according to the first embodiment. [Figure 6] FIG. 6 is a block diagram illustrating a hardware configuration of the information processing device according to the second embodiment. [Figure 7] FIG. 7 is a block diagram for explaining a software configuration according to the second embodiment. [Figure 8] FIG. 8 is a diagram showing a schematic diagram of a data flow in the software configuration shown in FIG. [Figure 9] FIG. 9 is a flowchart illustrating the flow of a bus access process according to the second embodiment. [Figure 10] FIG. 10 is a block diagram for explaining a software configuration according to the third embodiment. [Figure 11] FIG. 11 is a diagram showing a schematic diagram of a data flow in the software configuration shown in FIG. [Figure 12] FIG. 12 is a flowchart illustrating the flow of a bus access process according to the third embodiment. [Figure 13] FIG. 13 is a block diagram for explaining the software configuration according to the fourth embodiment. [Figure 14] FIG. 14 is a diagram showing a schematic diagram of a data flow in the software configuration shown in FIG. [Figure 15]FIG. 15 is a flowchart for explaining a process flow for acquiring a transit pointer for bus access from a bus master to a guard according to the fourth embodiment. [Figure 16] FIG. 16 is a flowchart illustrating the flow of a bus access process according to the fourth embodiment. [Figure 17] FIG. 17 is a diagram illustrating a virtual environment including a plurality of first interconnects according to the fourth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] To address the above-mentioned issues, a method of bus access for accelerating simulations (such as DMI access in SystemC) in which the bus master directly reads and writes values ​​to the memory pointer of the bus slave can be used. When such a method is used, the bus master can directly access the bus slave without going through an interconnect, which can speed up the simulation.

[0013] However, while such a technique can be used for bus slaves that perform read or write (e.g., ROM (Read Only Memory) or RAM (Random Access Memory)), it cannot be used for bus slaves that are configured to perform slave operations other than read or write in response to access from a bus master.

[0014] For example, consider a case where the bus slave is a timer. In this case, the bus master accesses the timer via the bus and requests the timer's memory area to start the timer. The timer executes a timer operation in response to the request from the bus master. Therefore, the above-mentioned technique that can be used for a bus slave that performs read or write cannot be applied to a bus slave such as a timer that executes operations other than read or write.

[0015] Furthermore, in recent years, slave operations for the purpose of Functional Safety (FuSa) or security are often implemented in ROM and RAM. Opportunities for ROM and RAM that are not intended for FuSa or security to be used as bus slaves are decreasing. As a result, the scope in which the above-mentioned methods can be applied is narrowing, and in recent years, it has become difficult to speed up simulations using the above-mentioned methods. This has led to a decrease in simulation speed.

[0016] For clarity of explanation, the following description and drawings are omitted and simplified as appropriate. In addition, each element shown in the drawings as a functional block performing various processes can be configured in hardware with a CPU, memory, and other circuits, and is realized in software by the CPU executing a program stored in the memory. Therefore, it is understood by those skilled in the art that these functional blocks can be realized in various forms by hardware alone, software alone, or a combination thereof, and are not limited to any one of them. In addition, the same elements are given the same symbols in each drawing, and duplicated explanations are omitted as necessary.

[0017] The program may be stored on various types of non-transitory computer readable medium or tangible storage medium. By way of example and not limitation, non-transitory computer readable medium or tangible storage medium includes RAM, ROM, flash memory, solid-state drive (SSD) or other memory technology, CD-ROM, digital versatile disc (DVD), Blu-ray® disk or other optical disk storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage device. The program may also be transmitted on various types of transitory computer readable medium or communication medium. By way of example and not limitation, transitory computer readable medium or communication medium includes electrical, optical, acoustic, or other form of propagated signal.

[0018] <Embodiment 1> (Configuration of information processing device 1000) First, a first embodiment will be described with reference to Fig. 1. Fig. 1 is a block diagram showing a configuration of an information processing device 1000 according to this embodiment. The information processing device 1000 includes a virtual environment V1 for executing a program to be simulated. The information processing device 1000 can realize the virtual environment V1 on the memory described above by executing a control program according to this embodiment.

[0019] The virtual environment V1 includes a bus master 101, an interconnect 102, and a bus slave 103 connected to the bus master 101 via the interconnect. The bus slave 103 includes an operation execution unit 1030 that executes a predetermined operation in response to a bus access from the bus master 101.

[0020] The bus master 101 includes a pointer holding unit 1010 and an access processing unit 1011. The pointer holding unit 1010 holds a pointer for performing bus access from the bus master 101 to the bus slave 103.

[0021] The access processing unit 1011 makes bus access to the bus slave 103 through a different route depending on whether or not a pointer is held in the pointer holding unit 1010. The access processing unit 1011 also causes the bus slave 103 to execute a predetermined operation. If a pointer is held in the pointer holding unit 1010, the access processing unit 1011 makes direct bus access to the bus slave 103 based on the pointer, and if no pointer is held, makes bus access to the bus slave 103 via the interconnect.

[0022] Here, the virtual environment V1 will be described with reference to Fig. 2. Fig. 2 is a diagram that illustrates the virtual environment V1. The virtual environment V1 includes a bus master 101, interconnects 102-1, 102-2, ..., 102-5, and a bus slave 103 that is connected to the bus master 101 via these interconnects. In the following description, each of the interconnects 102-1, 102-2, ..., 102-5 may be simply referred to as an interconnect 102.

[0023] The more interconnects 102 there are, the longer the time it takes for bus access from bus master 101 to bus slave 103. For example, when performing a simulation during the development stage of a program, depending on the number and configuration of interconnects 102, the time it takes for the simulation may become long, making it difficult to perform an efficient simulation.

[0024] 3 and 4 are diagrams showing a schematic diagram of a bus access process according to the present embodiment. Note that only one interconnect 102 is shown here. ts1 and ts2 shown in the diagram indicate pointers for performing bus access from the bus master 101 to the bus slave 103.

[0025] Fig. 3 shows a process F1 in which the bus access APIs of the interconnect 102 between the bus master 101 and the bus slave 103 are called in sequence. Fig. 4 shows a process F2 in which the bus master 101 directly accesses the bus slave 103 based on a pointer.

[0026] When no pointer is held in the pointer holding unit 1010, the access processing unit 1011 of the bus master 101 makes a bus access to the bus slave 103 via the interconnect 102. The operation execution unit 1030 of the bus slave 103 executes a predetermined operation in response to the bus access from the access processing unit 1011.

[0027] Furthermore, when a pointer is held in the pointer holding unit 1010, the access processing unit 1011 directly accesses the bus to the bus slave 103 based on the pointer. In response to a bus access from the bus master 101, the operation execution unit 1030 of the bus slave 103 starts a timer in accordance with the command shown in the code 1031 or 1032, for example.

[0028] In this way, when the pointer is held, the access processing unit 1011 can perform a high-speed simulation. Also, since the bus slave 103 can execute a predetermined operation in response to a bus access from the bus master 101, the above-mentioned FuSa or a bus slave with a security purpose and use can be used for the simulation.

[0029] (Bus access process flow) Next, a bus access process according to this embodiment will be described with reference to Fig. 5. Fig. 5 is a flowchart for explaining the flow of the bus access process according to this embodiment.

[0030] First, assume that during execution of a simulation using a program to be simulated, a bus access occurs from bus master 101 to bus slave 103. Access processing unit 1011 of bus master 101 refers to pointer holding unit 1010 and determines whether or not a pointer to the address in question is held in pointer holding unit 1010 (S1).

[0031] If it is determined that a pointer to the address in question is held (YES in S1), the access processing unit 1011 directly accesses the bus slave 103 by using the pointer in question (S4).

[0032] When it is determined that the pointer to the address is not held (NO in S1), the access processor 1011 makes a bus access to the bus slave 103 via the interconnect (S2). The access processor 1011 causes the bus slave 103 to execute a predetermined operation (S3). The operation execution unit 1030 of the bus slave 103 executes a predetermined operation in response to the bus access from the bus master 101.

[0033] As described above, in the virtual environment V1 realized by the information processing device 1000 according to this embodiment, the access processing unit 1011 makes bus access to the bus slave 103 via different routes depending on whether or not a pointer is held in the pointer holding unit 1010. If a pointer is held, the access processing unit 1011 makes direct bus access to the bus slave 103 based on the pointer, and if no pointer is held, makes bus access to the bus slave 103 via the interconnect 102. In this way, the information processing device 1000 according to this embodiment can appropriately perform a high-speed simulation.

[0034] <Embodiment 2> Next, a description will be given of embodiment 2. Embodiment 2 is a specific example of embodiment 1 described above.

[0035] (Configuration of information processing device 100) First, an information processing device 100 according to this embodiment will be described with reference to Fig. 6. Fig. 6 is a block diagram for explaining a hardware configuration of the information processing device 100. The information processing device 100 is an example of the above-mentioned information processing device 1000. The information processing device 100 includes a virtual environment for executing a program to be simulated.

[0036] The information processing device 100 is an example of a computer system that realizes a virtual environment of a microcomputer (not shown), for example. The information processing device 100 is connected to a display device 200 and an input device 300.

[0037] The display device 200 performs screen display according to instructions from the information processing device 100. The input device 300 inputs user instructions to the information processing device 100. The input device 300 is, for example, a keyboard that accepts input of text information from a user, or a mouse that designates an arbitrary position on the screen of the display device 200 and accepts input of instructions corresponding to an icon or the like displayed at that position. However, devices connected to the information processing device 100 are not limited to these.

[0038] The information processing device 100 includes a CPU 110, a main memory 120, and a hard disk 130. The CPU 110 is a control device that reads and executes a predetermined program. The main memory 120 is, for example, a volatile storage device such as a RAM. The hard disk 130 is a non-volatile storage device. The hard disk 130 stores an OS (Operating System) 131, a virtual environment program (control program) 132, simulation data 133, a target program 135, and the like.

[0039] The OS 131 is a basic software for operating the information processing device 100. The virtual environment program 132 is software for, for example, implementing a microcomputer, which is an embedded device, in software and simulating the execution of a target program 135 on the microcomputer. The virtual environment program 132 causes an information processing device having a virtual environment for executing a program to be simulated to execute a control method. The virtual environment includes a bus master, an interconnect, and a bus slave connected to the bus master via the interconnect. The control method includes an access processing step in which the bus master accesses the bus slave via a different route depending on whether or not a pointer for performing bus access from the bus master to the bus slave is held in the holding unit. The control method also includes an operation execution step in which the bus slave executes a predetermined operation due to the bus access from the bus master. In the access processing step, if the pointer is held, the bus master directly accesses the bus slave based on the pointer. In the access processing step, if the pointer is not held, the bus master accesses the bus slave via the interconnect.

[0040] The simulation data 133 is various data used in the simulation. The simulation data 133 may include, for example, a program that realizes each function of the simulator and information on a device that is a target of the simulation. The target program 135 is a program that is a target of the simulation. The target program 135 may be, for example, software developed to be executed on a specific embedded device. The target program 135 is executed by the virtual environment program 132 for the purpose of debugging or the like.

[0041] Here, the CPU 110 loads the OS 131, the virtual environment program 132, the simulation data 133, and the target program 135 stored in the hard disk 130 into the main memory 120. Then, the CPU 110 executes the OS 131 and the virtual environment program 132 loaded into the main memory 120. Furthermore, the CPU 110 executes the target program 135 by executing the virtual environment program 132. Therefore, it can be said that the information processing device 100 is provided with a virtual environment for executing the target program 135.

[0042] (Software configuration) Next, the software configuration according to this embodiment will be described with reference to Fig. 7 and Fig. 8. Fig. 7 is a block diagram for explaining the software configuration according to this embodiment. Fig. 8 is a diagram showing a schematic diagram of the data flow in the software configuration shown in Fig. 7. Note that the unidirectional arrows shown in this figure simply show the flow of information (data or signals, etc.) and do not exclude the two-way flow of information. The same applies to the subsequent figures. Also, Fig. 8 shows only a bus 2 as an example of an interconnect, but the number and type of interconnects are not limited to this.

[0043] FIG. 7 shows that a virtual environment program 132 runs on an OS 131 , and a target program 135 runs on the virtual environment program 132 .

[0044] The virtual environment program 132 is an example of a program for realizing the virtual environment V2 according to the present embodiment. As shown in the figure, the virtual environment V2 includes a bus master 1, a bus 2, and a peripheral IP unit 1320. The bus master 1, the bus 2, and the peripheral IP unit 1320 are each virtually realized on the main memory 120 by executing the virtual environment program 132. The bus master 1, the bus 2, and the peripheral IP unit 1320 are defined as classes, for example, and are realized by being instantiated when the virtual environment program 132 is executed.

[0045] 8, the virtual environment V2 includes a bus master 1 and a bus slave 3 connected to the bus master 1 via a bus 2. Here, the description will be given using the bus 2 as an example of an interconnect.

[0046] The bus master 1 is an example of the above-mentioned bus master 101. The bus master 1 includes a pointer request unit 10, a pointer holding unit 11, and an access processing unit 12. The bus master 1 is, for example, a CPU or a DMA (Direct Memory Access) controller, but is not limited to these.

[0047] The pointer request unit 10 functions as a pointer acquisition unit that acquires a pointer via the bus 2. When a pointer is not held in the pointer holding unit 11, the pointer request unit 10 acquires a pointer from the bus slave 3 via the bus 2. Specifically, the pointer request unit 10 outputs a pointer request to the bus slave 3 to request notification of a pointer. The pointer request unit 10 causes the pointer holding unit 11 to hold the acquired pointer.

[0048] The pointer holding unit 11 is an example of the above-mentioned pointer holding unit 1010. The pointer holding unit 11 holds a pointer for performing bus access from the bus master 1 to the bus slave 3.

[0049] The access processing unit 12 is an example of the above-mentioned access processing unit 1011. The access processing unit 12 makes a bus access to the bus slave 3 through a different route depending on whether or not a pointer is held in the pointer holding unit 11. In addition, the access processing unit 12 causes the bus slave 3 to execute a predetermined operation.

[0050] When a pointer is held in the pointer holding unit 11, the access processing unit 12 directly bus accesses the bus slave 3 based on the pointer. In Fig. 8, the flow of the bus access is indicated by an arrow A1. When a pointer is not held in the pointer holding unit 11, the access processing unit 12 bus accesses the bus slave 3 via the bus 2. Specifically, the access processing unit 12 outputs an access request for the bus slave 3 to the access transmission unit 21, and makes an access request to the bus slave 3 via the access transmission unit 21.

[0051] The bus 2 is an example of an interconnect. The bus 2 includes a pointer transmission unit 20 and an access transmission unit 21.

[0052] The pointer transmission unit 20 transmits data related to the pointer between the bus master 1 and the bus slave 3. For example, the pointer transmission unit 20 transmits a pointer request received from the bus master 1 to the bus slave 3. The pointer transmission unit 20 also transmits the pointer notified from the bus slave 3 to the pointer request unit 10.

[0053] The access transmission unit 21 transmits data related to bus access between the bus master 1 and the bus slave 3. For example, the access transmission unit 21 transmits an access request from the bus master 1 to the bus slave 3.

[0054] The peripheral IP unit 1320 includes a bus slave 3. The bus slave 3 is an example of the bus slave 103 described above. The bus slave 3 has a function of executing a predetermined operation due to a bus access from the bus master 1. The bus slave 3 may have a function corresponding to a register, for example. In this case, the bus slave 3 is a software implementation of a register, which is originally hardware. The bus slave 3 is not limited to a register, and other IPs may be used as the bus slave 3.

[0055] The bus slave 3 includes a pointer notification unit 30, a processing information holding unit 31, and an operation execution unit 32. The pointer notification unit 30 notifies the bus master 1 of a pointer via the bus 2 in response to a pointer request from the bus master 1.

[0056] The processing information holding unit 31 holds processing information related to the processing of the operation execution unit 32. For example, the processing information holding unit 31 may simply have a Read or Write function as described above. For example, when there is a write from the access processing unit 12 to the operation execution unit 32, the processing information holding unit 31 holds the written value. The processing information may be used in response to a request from the bus master 1. For example, the access processing unit 12 of the bus master 1 acquires the processing information held in the processing information holding unit 31 and determines whether or not a predetermined operation has been executed in the operation execution unit 32.

[0057] The operation execution unit 32 is an example of the above-mentioned operation execution unit 1030. The operation execution unit 32 executes a predetermined operation in response to a bus access from the bus master 1. The operation execution unit 32 has a function corresponding to, for example, an API.

[0058] Here, the predetermined operation indicates an operation performed by the operation execution unit 32 triggered by bus access from the bus master 1. The operation execution unit 32 executes the predetermined operation when the bus is accessed directly from the bus master 1 and when the bus is accessed from the bus master 1 via the bus 2. The predetermined operation is, for example, but is not limited to, starting a timer, A / D conversion, etc.

[0059] For example, a read or write process in a memory or the like having only a read or write function to which the above-mentioned method can be applied is not included in the predetermined operation caused by a bus access from the bus master 1. For example, in the above-mentioned example of processing information, the operation execution unit 32 performs a process of reading the processing information stored in the processing information storage unit 31 in response to a request from the access processing unit 12, and returning the processing information to the operation execution unit 32. However, such a simple read operation is not included in the predetermined operation caused by a bus access from the bus master 1.

[0060] (Bus access process flow) Next, a bus access process according to this embodiment will be described with reference to Fig. 9. Fig. 9 is a flowchart for explaining the flow of the bus access process according to this embodiment.

[0061] First, assume that a bus access from the bus master 1 to the bus slave 3 occurs during execution of a simulation of the target program 135. The access processing unit 12 of the bus master 1 refers to the pointer holding unit 11 and determines whether or not a pointer to the relevant address is held (S11). The pointer is information for calling an API corresponding to the operation execution unit 32 of the bus slave 3.

[0062] When it is determined that a pointer to the address is held (YES in S11), the access processing unit 12 uses the pointer to directly access the operation execution unit 32 of the bus slave 3 via the bus (S21). As a result, the operation execution unit 32 executes an operation (S19). The operation execution unit 32 also reads from and writes to the processing information holding unit 31, causing the processing information holding unit 31 to hold the processing information (S20). The processing information is, for example, a written value corresponding to the operation of the operation execution unit 32. The processing information holding unit 31 holds the processing information in a memory area.

[0063] In step S11, when it is determined that a pointer to the corresponding address is not held (NO in S11), the pointer request unit 10 of the bus master 1 outputs a pointer request to the bus slave 3 (S12). As a result, the pointer request unit 10 requests the bus slave 3 to notify it of a pointer.

[0064] The pointer transmission unit 20 of the bus 2 transmits the pointer request (S13). The pointer notification unit 30 of the bus slave 3 notifies the pointer in response to the pointer request (S14). The pointer transmission unit 20 transmits the notified pointer to the pointer request unit 10 (S15). This enables the pointer request unit 10 to obtain the pointer from the bus slave 3 via the bus 2.

[0065] The pointer request unit 10 causes the pointer holding unit 11 to hold the acquired pointer (S16). In this way, at the next bus access, the access processing unit 12 can refer to the pointer holding unit 11 and directly access the bus to the operation execution unit 32.

[0066] Furthermore, the access processing unit 12 performs bus access to the bus slave 3 via the bus 2 (S17). The access processing unit 12 outputs an access request for the bus slave 3 to the access transmission unit 21. As a result, the access processing unit 12 requests bus access to the bus slave 3. The access transmission unit 21 transmits the access request (S18).

[0067] The operation execution unit 32 receives the access request and executes the operation (S19). The operation execution unit 32 causes the processing information storage unit 31 to store a value related to the execution of the operation (S20).

[0068] The above-mentioned order of processing is an example. The order of processing can be changed as appropriate. For example, in the above description, in the case of NO in step S11, a pointer is requested and held in steps S12 to S16, and bus access to the bus slave 3 and value holding is performed in steps S17 to S20. However, the processing in steps S17 to S20 may be performed first, and then the processing in steps S12 to S16 may be performed.

[0069] As described above, in the process executed by the virtual environment program 132 according to this embodiment, in the virtual environment V2, the bus slave 3 has an operation execution unit 32 that executes a predetermined operation in response to bus access from the bus master 1. In addition, the bus master 1 has a pointer holding unit 11 that holds a pointer for performing bus access to the bus slave 3, and an access processing unit 12 that makes bus access to the bus slave via a different route depending on whether the pointer is held in the pointer holding unit 11 or not.

[0070] When a pointer is held in pointer holding unit 11, access processing unit 12 directly bus-accesses the bus slave based on the pointer, and when no pointer is held, accesses the bus slave via bus 2. Moreover, when no pointer is held, pointer request unit 10 acquires a pointer from bus slave 3 via bus 2.

[0071] In this way, at the first bus access after the start of the simulation, the bus master 1 obtains a pointer for calling an API corresponding to the operation execution unit 32 while performing bus access to the bus slave 3 via the bus 2. As a result, at the next and subsequent bus accesses, the bus master 1 can perform bus access by directly calling the API of the operation execution unit 32 using the pointer.

[0072] In this way, even if multiple interconnects exist, in the second and subsequent bus accesses, bus access is possible without impairing slave operation in the time required for one API call, regardless of the number of interconnects. As a result, the information processing device 1000 according to this embodiment can appropriately achieve high-speed bus access simulation without impairing slave operation, while maintaining the same bus configuration as the hardware.

[0073] <Embodiment 3> Next, a third embodiment will be described. The third embodiment is a modified example of the second embodiment described above. In the virtual environment V2 according to the second embodiment, in the first simulation, bus access is performed via the bus 2, which is an interconnect, and in the second and subsequent simulations, bus access is performed directly without going through the bus 2. In the virtual environment V3 according to the present embodiment, in the second and subsequent simulations, it is possible to select whether or not to go through the interconnect.

[0074] The following description will focus on the differences from the second embodiment, and will omit explanations of points that overlap with the second embodiment. The configuration of the information processing device 100a according to this embodiment is generally similar to that of the information processing device 100 according to the second embodiment (see FIG. 6), and therefore will not be illustrated. The hard disk 130 of the information processing device 100a includes a virtual environment program 132a instead of the virtual environment program 132. The information processing device 100a executes the virtual environment program 132a to realize a virtual environment V3.

[0075] (Software configuration) The software configuration according to this embodiment will be described with reference to Fig. 10 and Fig. 11. Fig. 10 is a block diagram for explaining the software configuration according to this embodiment. Fig. 11 is a diagram showing a schematic diagram of the data flow in the software configuration shown in Fig. 10.

[0076] 10, the virtual environment program 132a according to this embodiment includes a level selection unit 4 in addition to the virtual environment program 132 (see FIG. 7) according to the second embodiment. The level selection unit 4 is connected to the pointer request unit 10. The level selection unit 4 selects a simulation level from a plurality of simulation levels having different simulation speeds.

[0077] The simulation level is information indicating whether to prioritize speed or accuracy in the simulation. The simulation level is expressed in two stages, for example, "high speed" which prioritizes speed, and "high accuracy" which prioritizes accuracy. The two simulation levels correspond to the bus access paths from the bus master 1 to the bus slave 3, respectively.

[0078] The level selection unit 4, for example, receives a user input via the input device 300 and selects a simulation level. The level selection unit 4 also receives a user input and switches the simulation level. The level selection unit 4 outputs the selected simulation level to the pointer request unit 10 of the bus master 1. The pointer request unit 10 stores the selected simulation level in a storage unit (not shown). The access processing unit 12a of the bus master 1 acquires the selected simulation level from the storage unit.

[0079] The access processing unit 12a makes bus access to the bus slave 3 via a path corresponding to the level selected by the level selection unit 4. When a speed-oriented simulation level is selected by the level selection unit 4, the access processing unit 12a makes direct bus access to the bus slave 3. When a simulation level other than the speed-oriented simulation level is selected, the access processing unit 12a makes bus access to the bus slave via the bus 2. The simulation level other than the speed-oriented simulation level is, for example, an accuracy-oriented simulation level.

[0080] For example, assume that the simulation level is "high speed." The access processing unit 12a performs bus access directly from the bus master 1 to the bus slave 3 without going through the bus 2. In Fig. 11, the route for direct access to the bus slave 3 is indicated by an arrow A1.

[0081] Also, for example, it is assumed that the simulation level is “high accuracy.” The access processing unit 12a makes a bus access to the bus slave 3 via the bus 2. In this case, the access processing unit 12a makes a bus access to the bus slave 3 via the access transmission unit 21 of the bus 2 in the same manner as the access processing unit 12 of the second embodiment.

[0082] In this way, the access processing unit 12a selects a different path depending on the selected simulation level, and uses the selected path to perform bus access to the bus slave 3. In this way, the information processing device 100a can perform a simulation that places emphasis on speed or accuracy.

[0083] 10 and 11 show only one bus master 1 and one bus slave 3, but in an actual environment, multiple bus masters may access one bus slave. In such a case, in order to avoid a collision of bus accesses, the bus master with the lower priority is put into a waiting state until the bus access from the bus master with the higher priority is completed. Therefore, a waiting time occurs until the waiting state is resolved.

[0084] In such cases, it is possible to simulate the results of program execution, but it is not possible to accurately simulate the time it takes to execute the program. For example, even if it is possible to confirm that the results of program execution are correct, the time it takes to execute the program may not meet the performance target. Therefore, in such cases, it is advisable for the user to perform a simulation that prioritizes accuracy.

[0085] (Bus access process flow) Next, the bus access process according to this embodiment will be described with reference to Fig. 12. Fig. 12 is a flowchart for explaining the flow of the bus access process according to this embodiment. Note that the process for obtaining the pointer in the first simulation is the same as that in the second embodiment described with reference to Fig. 9. Here, the description will be given on the assumption that the simulation is the second or later.

[0086] First, the level selection unit 4 judges whether or not a simulation level has been selected (S31). If it is judged that a simulation level has been selected (YES in S31), the level selection unit 4 judges whether the selected simulation level is "high speed" or "high accuracy" (S32). If it is judged that the simulation level is "high speed" ("high speed" in S32), the access processing unit 12a makes a bus access directly to the bus slave 3 without going through the bus 2 (S33).

[0087] If it is determined that the simulation level is “high precision” (“high precision” in S32), or if it is determined that no simulation level has been selected (NO in S31), the access processing unit 12a accesses the bus via the bus 2 (S34).

[0088] Although the above is based on the assumption that the simulation is performed for the second or subsequent times, the level selection unit 4 may select "high speed" in the first simulation. In this case, the access processing unit 12a can directly access the bus slave 3 from the first simulation by performing the process of acquiring the pointer in the same manner as in the second embodiment.

[0089] As described above, in the process executed by the virtual environment program 132a according to the present embodiment, the level selection unit 4 selects a simulation level in the virtual environment V3. The access processing unit 12a of the bus master 1 accesses the bus slave 3 via a route corresponding to the selected simulation level.

[0090] In this way, by adding the level selection unit 4, it becomes possible to support both speed-oriented and accuracy-oriented simulations by configuration, without remaking the simulator. In particular, there is a high demand for dynamic switching between speed and accuracy simulations using a Python I / F or the like. Specifically, for example, a simulation can be executed with emphasis on speed during a simulation period that is not particularly important, such as a Linux (registered trademark) boot, and then switched to accuracy-oriented simulation after reaching a point of interest to the user. In this way, the simulation can be executed efficiently.

[0091] <Embodiment 4> Next, a fourth embodiment will be described. The fourth embodiment is a modified example of the third embodiment. The virtual environment V3 according to the third embodiment enables bus access using a corresponding two-stage path according to a selected simulation level. In the third embodiment, it is necessary to select from two extreme simulation methods: a speed-oriented simulation in which all interconnects are omitted, or an accuracy-oriented simulation in which all interconnects are included.

[0092] In recent years, the need for simulations for FuSa and security applications has been increasing. This embodiment enables high-speed simulation of bus accesses including any IP by providing a pointer notification unit, a pointer request unit, and a pointer holding unit to the IP to be simulated.

[0093] The following description will focus on the differences from the second and third embodiments, and will omit explanations of points that overlap with these embodiments as appropriate. The configuration of the information processing device 100b according to this embodiment is generally similar to that of the information processing device 100 according to the second embodiment (see FIG. 6), and therefore will not be illustrated. The hard disk 130 of the information processing device 100b is provided with a virtual environment program 132b instead of the virtual environment program 132. The information processing device 100b realizes a virtual environment V4 by executing the virtual environment program 132b. The virtual environment V4 has a plurality of interconnects.

[0094] (Software configuration) The software configuration according to this embodiment will be described with reference to Fig. 13 and Fig. 14. Fig. 13 is a block diagram for explaining the software configuration according to this embodiment. Fig. 14 is a diagram showing a schematic diagram of the data flow in the software configuration shown in Fig. 13.

[0095] As shown in FIG. 14, the virtual environment V4 has a plurality of interconnects including a first interconnect via which a bus access from the bus master 1 to the bus slave 3 is made and a second interconnect via which a bus access is not made. The first interconnect is an interconnect via which the bus access is made, and the second interconnect is an interconnect via which the bus access is not made. In a bus access from the bus master 1 to the bus slave 3, data output from the bus master 1 reaches the bus slave 3 via the first interconnect. Also, in the bus access, data output from the bus master 1 reaches the bus slave 3 without passing through the second interconnect. Here, the first interconnect is the guard 5, and the second interconnect is the bus 2.

[0096] 13, the virtual environment program 132b according to this embodiment includes a peripheral IP unit 1320a corresponding to the peripheral IP unit 1320 of the virtual environment program 132a according to the third embodiment (see FIG. 10). The peripheral IP unit 1320a includes a guard 5 in addition to a bus slave 3. The guard 5 is an example of an interconnect having a function of restricting bus access from the bus master 1 to the bus slave 3.

[0097] The guard 5 includes a pointer notification unit 50, a pointer request unit 51, a pointer holding unit 52, and an operation execution unit 53. The pointer notification unit 50 notifies a via pointer in response to a via pointer request from the pointer request unit 10a. The via pointer is information for calling an API corresponding to the operation execution unit 53 of the guard 5.

[0098] The pointer request unit 51 outputs a pointer request to the pointer notification unit 30 of the bus slave 3. As a result, the pointer request unit 51 requests notification of a pointer from the bus slave 3. In addition, the pointer request unit 51 causes the pointer retention unit 52 to retain the pointer acquired from the pointer notification unit 30.

[0099] The pointer holding unit 52 holds the pointer acquired by the pointer request unit 51. The operation execution unit 53 accesses the operation execution unit 32 of the bus slave 3. In this way, the operation execution unit 53 executes a simulation without impairing the slave operation of the necessary IP.

[0100] The level selection unit 4a may select a predetermined simulation level that does not fall under any of the above-mentioned speed-oriented and accuracy-oriented simulation levels. The level selection unit 4a further selects a simulation level related to functional safety as the predetermined simulation level. For example, the level selection unit 4a is configured to be able to select a simulation level "FuSa" related to FuSa in addition to the above-mentioned "high speed". The simulation level "FuSa" is a simulation level that emphasizes functional safety. For example, when the simulation level "FuSa" is selected, the simulation is performed by bus access via more interconnects than in the case of the simulation level "high speed". Therefore, in this case, a simulation that emphasizes functional safety over speed can be performed. Also, when the simulation level "FuSa" is selected, the simulation is performed by bus access via fewer interconnects than in the case of the simulation level "high precision". Therefore, in this case, a simulation that is faster than the case of the simulation level "high precision" can be performed. In this embodiment, three simulation levels, "high speed", "high precision", and "FuSa", can be set. Also, by selecting the interconnect to be passed through, even more simulation levels can be set.

[0101] The pointer request unit 10a of the bus master 1 also functions as a via pointer acquisition unit that acquires a via pointer from the guard 5 when a via pointer is not held in the pointer holding unit 11. When the pointer request unit 10a determines that a via pointer for the address in question is not held, it outputs a via pointer request to the guard 5. As a result, the pointer request unit 10a requests notification of a via pointer from the guard 5. The pointer request unit 10a causes the pointer holding unit 11 to hold the via pointer acquired from the guard 5.

[0102] The access processing unit 12b performs bus access to the bus slave 3 via a different route depending on whether or not a via pointer for performing bus access from the bus master 1 to the guard 5 is held in the pointer holding unit 11. In addition, the access processing unit 12b acquires the simulation level output from the level selection unit 4a via the pointer request unit 10a and a storage unit (not shown).

[0103] When the pointer and the via pointer are held in the pointer holding unit 11, the access processing unit 12b makes a bus access to the bus slave 3 via a route corresponding to the simulation level selected by the level selection unit 4a. For example, when a via pointer is held and the simulation level is "FuSa", the access processing unit 12b makes a direct bus access to the operation execution unit 53. The operation execution unit 53 also makes a bus access to the operation execution unit 32. As a result, the access processing unit 12b makes a bus access to the bus slave 3 only via the guard 5, not via the bus 2. In FIG. 14, the route for this bus access is indicated by an arrow A2.

[0104] Furthermore, when the level selection unit 4a selects a speed-oriented simulation level "high speed", the access processing unit 12b directly accesses the bus to the bus slave 3. In Fig. 14, the path for this bus access is indicated by an arrow A1.

[0105] The pointer holding unit 11 of the bus master 1 further holds a via pointer for bus access from the bus master 1 to the guard 5. The level selection unit 4a further selects a simulation level related to functional safety. When the pointer and the via pointer are held in the pointer holding unit 11, the access processing unit 12b makes bus access to the bus slave 3 via a path corresponding to the selected simulation level.

[0106] Next, the bus access process according to this embodiment will be described with reference to Fig. 15 and Fig. 16. Fig. 15 is a flowchart for explaining the process flow of acquiring a via pointer for bus access from the bus master 1 to the guard 5 according to this embodiment. Fig. 16 is a flowchart for explaining the process flow of the bus access process according to this embodiment. Note that the process for acquiring a pointer for direct bus access from the bus master 1 to the bus slave 3 is the same as that of the second embodiment described with reference to Fig. 9.

[0107] (Process flow for obtaining a via pointer) First, the flow of the process of acquiring a via pointer will be described with reference to Fig. 15. Here, the process of acquiring a via pointer for the bus master 1 to make a bus access to the guard 5 will be described.

[0108] First, assume that a bus access from the bus master 1 to the bus slave 3 occurs during execution of a simulation of the target program 135. The access processing unit 12b of the bus master 1 refers to the pointer holding unit 11 and determines whether or not a via pointer for the bus master 1 to make a bus access to the guard 5 is held (S41). The via pointer is information for calling an API corresponding to the operation execution unit 53 of the guard 5.

[0109] If it is determined that a via pointer for the address is held (YES in S41), the process ends. If it is determined that a via pointer for the address is not held (NO in S41), the pointer request unit 10a of the bus master 1 outputs a via pointer request to the guard 5 (S42). As a result, the pointer request unit 10a requests the guard 5 to notify it of the via pointer.

[0110] The pointer transmission unit 20 of the bus 2 transmits the via pointer request (S43). The pointer notification unit 50 of the guard 5 notifies the via pointer in response to the via pointer request (S44). The pointer transmission unit 20 transmits the notified via pointer to the pointer request unit 10a (S45). This enables the pointer request unit 10a to obtain the via pointer from the guard 5 via the bus 2.

[0111] The pointer request unit 10a causes the acquired transit pointer to be stored in the pointer storage unit 11 (S46). In this manner, the access processing unit 12b can refer to the pointer storage unit 11 and directly access the operation execution unit 53 via the bus.

[0112] Next, the pointer request unit 51 of the guard 5 outputs a pointer request to the pointer notification unit 30 of the bus slave 3 (S47). As a result, the pointer request unit 51 requests the bus slave 3 to notify the pointer. The pointer request unit 51 also causes the pointer obtained from the pointer notification unit 30 to be held in the pointer holding unit 52 (S48). Note that the above-mentioned processing order is an example, and the processing order can be changed as appropriate.

[0113] (Bus access process flow) Next, the flow of bus access processing according to this embodiment will be described with reference to Fig. 16. First, the level selection unit 4a judges whether or not a simulation level has been selected (S51). If it is judged that a simulation level has been selected (YES in S51), the level selection unit 4a judges whether the selected simulation level is "high speed" or "FuSa" (S52). If it is judged that the simulation level is "high speed" ("high speed" in S52), the access processing unit 12b makes a bus access directly to the bus slave 3 without going through the bus 2 (S53).

[0114] If it is determined that the simulation level is "FuSa" ("FuSa" in S52) or if it is determined that no simulation level has been selected (NO in S51), the access processing unit 12b makes bus access to the operation execution unit 53 of the guard 5, thereby making bus access to the bus slave 3 via the guard 5 (S54). The access processing unit 12b does not make access via the bus 2 between the bus master 1 and the guard 5. By accessing the operation execution unit 32, the operation execution unit 53 can perform a simulation without impairing the slave operation of the necessary IP.

[0115] As described above, in the process executed by the virtual environment program 132b according to the present embodiment, the virtual environment V4 includes the first interconnect which is a route through and the second interconnect which is not a route through. The user can select whether or not to route through an interconnect. In the virtual environment V4, the level selection unit 4a selects a simulation level related to functional safety. Also, the access processing unit 12b of the bus master 1 accesses the bus slave 3 via a route corresponding to the selected simulation level.

[0116] In this way, it is possible to select the IP to be simulated, and therefore, for example, it is possible to perform a high-speed simulation for the purpose of FuSa by omitting interconnects other than the guard 5. Also, in this embodiment, various simulations can be performed by configuration without remaking the simulator. This makes it possible to handle various simulations, such as a speed-oriented simulation that omits all interconnects between bus masters and bus slaves, a precision-oriented simulation that includes all interconnects, and a simulation that includes necessary IP.

[0117] Specifically, a Guard model is essential for a simulation that uses a Guard IP to guard against unauthorized access, but Arbiters, bus bridges, and other interconnects are not required. In this case, in addition to the bus master and bus slave, only the Guard model is simulated. On the other hand, when simulating bus traffic, only interconnects that affect bus timing, such as Arbiters, are targeted, and IPs such as Guards are excluded.

[0118] The virtual environment V4 may include a plurality of first interconnects. Fig. 17 is a diagram showing a virtual environment V4a including a plurality of first interconnects. The virtual environment V4a further includes, as the plurality of first interconnects, an ECC encoder 6 and an ECC decoder 7 that realize an ECC (Error Correction Code) function, in addition to the guard 5 described above.

[0119] ECC is an example of an IP that performs error correction. The ECC encoder 6 and the ECC decoder 7 constitute an ECC function for the bus 2. After the bus master 1 outputs data for bus access, the data output by the ECC encoder 6 is added with encoded data for detecting bit inversion, and the data is decoded just before it reaches the bus slave 3, bit inversion is detected, and correction is performed as necessary. Normally, ECC is not subject to simulation, but the ECC encoder 6 and the ECC decoder 7 can be used as intermediate targets when verifying the ECC correction algorithm, for example.

[0120] The ECC encoder 6 includes a pointer notification unit 60, a pointer request unit 61, a pointer holding unit 62, and an operation execution unit 63. The ECC decoder 7 includes a pointer notification unit 70, a pointer request unit 71, a pointer holding unit 72, and an operation execution unit 73. These functions of the ECC encoder 6 and the ECC decoder 7 correspond to the pointer notification unit 50, the pointer request unit 51, the pointer holding unit 52, and the operation execution unit 53 of the guard 5, respectively, and therefore detailed description thereof will be omitted.

[0121] The access processing unit 12b acquires the simulation level output from the level selection unit 4a via the pointer request unit 10 and a storage unit (not shown). The access processing unit 12b accesses the guard 5 via a path (A2) corresponding to the acquired simulation level. The operation execution unit 53 acquires the simulation level output from the level selection unit 4a via the pointer request unit 51 and a storage unit (not shown). The operation execution unit 53 accesses the bus slave 3 via the path (A2) corresponding to the acquired simulation level.

[0122] The multiple first interconnects may be arranged at any position between the bus master 1 and the bus slave 3. For example, at least one of the multiple first interconnects may be arranged between the bus master 1 and the second interconnect and between the second interconnect and the bus slave 3. In the example of FIG. 17, the ECC encoder 6 is arranged between the bus master 1 and the bus 2. The guard 5 and the ECC decoder 7 are each arranged between the bus 2 and the bus slave 3. According to this embodiment, an efficient simulation can be performed regardless of the arrangement of the multiple first interconnects and the second interconnect.

[0123] The information processing devices according to the first to fourth embodiments have been described above. The configurations of the information processing devices 1000, 100, 100a, and 100b described above are merely examples and may be modified as appropriate. For example, when a part or all of the components of these information processing devices are realized by a plurality of information processing devices, circuits, etc., the plurality of information processing devices, circuits, etc. may be centrally arranged or distributed. For example, the information processing devices, circuits, etc. may be realized as a client-server system, a cloud computing system, etc., each of which is connected via a communication network. In addition, the functions of the information processing devices according to the embodiments may be provided in a SaaS (Software as a Service) format.

[0124] The present invention has been specifically described above based on the embodiments, but the present invention is not limited to the above-mentioned embodiments, and it goes without saying that various modifications can be made without departing from the spirit of the present invention. In addition, the above-mentioned embodiments can be combined in any manner. For example, the present invention can be realized by combining some or all of the first to fourth embodiments. [Explanation of symbols]

[0125] 1 Bus Master 2 Bus 3 Bus Slave 4 Level selection section 4a Level selection section 5. Guard 6. ECC Encoder 7 ECC Decoder 10 Pointer request section 10a Pointer request section 11 Pointer holder 12 Access Processing Unit 12a Access processing unit 12b Access processing section 20 Pointer transmission unit 21 Access Transmission Division 30 Pointer notification section 31 Processing information storage unit 32 Operation execution unit 50 Pointer notification section 51 Pointer request section 52 Pointer holder 53 Action Execution Unit 60 Pointer notification section 61 Pointer request section 62 Pointer holder 63 Operation Execution Unit 70 Pointer notification section 71 Pointer request section 72 Pointer holder 73 Action Execution Unit 100 Information processing device 100a Information processing device 100b Information processing device 101 Bus Master 102 Interconnect 102-1~102-5 Interconnect 103 Bus Slave 120 Main memory 130 Hard Disk 132 Virtual Environment Program 132a Virtual Environment Program 132b Virtual Environment Program 133 Simulation Data 135 Target Programs 200 Display device 300 Input Device 1000 Information processing device 1010 Pointer holder 1011 Access processing unit 1030 Operation execution unit 1031 Code 1032 Code 1320 Peripheral IP Section 1320a Peripheral IP section F1 Processing F2 Processing V1 Virtual Environment V2 Virtual Environment V3 Virtual Environment V4 Virtual Environment V4a Virtual Environment

Claims

1. A control program for causing an information processing device having a virtual environment for executing a program to be simulated to execute a control method, the virtual environment comprises a bus master, an interconnect, and a bus slave connected to the bus master via the interconnect; The control method includes: an access processing step in which the bus master accesses the bus slave via a different route depending on whether a pointer for performing a bus access from the bus master to the bus slave is held in a holding unit; an operation execution step in which the bus slave executes a predetermined operation in response to a bus access from the bus master; In the access processing step, the bus master If the pointer is held, directly accessing the bus slave based on the pointer; If the pointer is not held, the bus access is made to the bus slave via the interconnect. Control program.

2. The control method includes: a pointer acquisition step in which, if the pointer is not held in the holding unit, the bus master acquires the pointer from the bus slave via the interconnect; and a pointer holding step of causing the bus master to hold the acquired pointer in the holding unit. The control program according to claim 1 .

3. The control method includes: A level selection step of selecting a simulation level from a plurality of simulation levels having different simulation speeds is further provided, In the access processing step, the bus master performs bus access to the bus slave via a path corresponding to a selected simulation level. The control program according to claim 1 or 2.

4. In the access processing step, the bus master When a speed-oriented simulation level is selected in the level selection step, a direct bus access is made to the bus slave; When a simulation level other than the speed-oriented simulation level is selected, the bus access is performed to the bus slave via the interconnect. The control program according to claim 3.

5. the virtual environment has a plurality of interconnects including a first interconnect through which a bus access from the bus master to the bus slave is passed and a second interconnect through which no bus access is passed, In the access processing step, the bus master accesses the bus slave via a different route depending on whether a via pointer for performing a bus access from the bus master to the first interconnect is held in the holding unit, and In the access processing step, when the pointer and the via pointer are held, the bus master performs bus access to the bus slave via a path corresponding to a selected simulation level. The control program according to claim 3.

6. The control method includes: a via pointer acquisition step of the bus master acquiring the via pointer from the first interconnect when the via pointer is not held in the holding unit; and a via pointer holding step in which the bus master causes the holder to hold the acquired via pointer. The control program according to claim 5 .

7. In the access processing step, the bus master When a speed-oriented simulation level is selected in the level selection step, a direct bus access is made to the bus slave; When a predetermined simulation level other than the speed-oriented simulation level is selected, a bus access is made to the bus slave via a path that passes through the first interconnect and does not pass through the second interconnect. The control program according to claim 5 .

8. The virtual environment includes an IP (Intellectual Property) unit as the first interconnect, the IP unit having a function of restricting bus access from the bus master to the bus slave. The control program according to claim 5 .

9. the virtual environment comprises a plurality of the first interconnects; At least one of the first interconnects is disposed between the bus master and the second interconnect, and at least one of the first interconnects is disposed between the second interconnect and the bus slave. The control program according to claim 5 .

10. A control method executed by an information processing device having a virtual environment for executing a program to be simulated, comprising: the virtual environment comprises a bus master, an interconnect, and a bus slave connected to the bus master via the interconnect; an access processing step in which the bus master accesses the bus slave via a different route depending on whether a pointer for performing a bus access from the bus master to the bus slave is held in a holding unit; an operation execution step in which the bus slave executes a predetermined operation in response to a bus access from the bus master; In the access processing step, the bus master If the pointer is held, directly accessing the bus slave based on the pointer; If the pointer is not held, the bus access is made to the bus slave via the interconnect. Control methods.

11. a pointer acquisition step in which, if the pointer is not held in the holding unit, the bus master acquires the pointer from the bus slave via the interconnect; and a pointer holding step of causing the bus master to hold the acquired pointer in the holding unit. The control method according to claim 10.

12. An information processing device having a virtual environment for executing a program to be simulated, the virtual environment comprises a bus master, an interconnect, and a bus slave connected to the bus master via the interconnect; The bus master: a storage unit that stores a pointer for performing a bus access from the bus master to the bus slave; an access processing unit that performs bus access to the bus slave through a different route depending on whether the pointer is held in a holding unit, The bus slave is an operation execution unit that executes a predetermined operation in response to a bus access from the bus master; The access processing unit includes: If the pointer is held, directly accessing the bus slave based on the pointer; If the pointer is not held, the bus access is made to the bus slave via the interconnect. Information processing device.

13. the bus master further includes a pointer acquisition unit that acquires the pointer; the pointer acquisition unit acquires the pointer from the bus slave via the interconnect if the pointer is not held; The storage unit stores the obtained pointer. The information processing device according to claim 12.

Citation Information

Patent Citations

  • Disk array control method and disk array controller

    JP2004280862A

  • External memory control system

    JP2008015673A

  • Information processing device, control method thereof, and control program

    JP2018200495A

  • Direct Memory Interface Access in a Multi-Thread Safe System Level Modeling Simulation

    US20150058854A1

  • Computer system

    WO2016194162A1

Cited By

  • Information processing device, control method for information processing device, and information processing system

    JP2026129283A