# US 2023/0409383 A1 · Simulation system and method

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0409383 A1
- Document ID: US20230409383A1
- Status: Published application
- Kind: A1
- Application number: 17/664,962
- Filed: 2022-05-25
- Published: 2023-12-21
- Earliest claimed: 2022-05-25
- Assignees: GM Global Technology Operations LLC
- Applicants: GM Global Technology Operations LLC
- Inventors: Hector Sanchez; Ningsheng Qiao; Sudhakaran Maydiga; Steve DiBella
- Web page: https://patentgrep.com/patent/US20230409383A1

## CPC

- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 30/20: Design optimisation, verification or simulation (optimisation, verification or simulation of circuit designs G06F30/30)
- G06F 9/3851: {from multiple instruction streams, e.g. multistreaming}
- G06F 9/4887: {involving deadlines, e.g. rate based, periodic}
- G06F 9/541: {via adapters, e.g. between incompatible applications}
- G06F 2111/02: CAD in a network environment, e.g. collaborative CAD or distributed simulation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method in a simulation system includes: implementing a plurality of threads using an operating system that allocates a time quantum of a predetermined execution time to each thread during which the thread will not be preempted during execution; monitoring timing requirements of each of a plurality of tasks for a plurality of distinct virtual platforms; segmenting each of the plurality of tasks into one or more sequences of programmed instructions that can execute in a thread within a time quantum; providing the one or more sequences of programmed instructions for each of the plurality of tasks as a plurality of programmed instruction sequences with specific timing requirements; scheduling each of the plurality of programed instruction sequences, based on the specific timing requirements, to execute in one of the plurality of threads at an appropriate time; and performing real-time simulation of application code utilizing available computing compacity at full capacity.

## Claims

### Claim 1

A simulation system comprising:
a plurality of computing resources including a plurality of processor cores;
an operating system configured to implement a plurality of threads of execution (threads) using the plurality of processor cores, wherein the operating system is configured to allocate a time quantum of a predetermined execution time to each thread during which the thread will not be preempted during execution;
a multi-thread scheduler configured to monitor timing requirements of each of a plurality of tasks included in application code for a plurality of distinct virtual platforms, segment each of the plurality of tasks into one or more sequences of programmed instructions that can complete execution in a thread within the time quantum, and provide the one or more sequences of programmed instructions for each of the plurality of tasks as a plurality of programmed instruction sequences with specific timing requirements; and
an environment manager configured to schedule each of the plurality of programed instruction sequences, based on the specific timing requirements, to execute in one of the plurality of threads at an appropriate time;
wherein the simulation system provides real-time simulation of application code utilizing available computing compacity at full capacity.

### Claim 2 (depends on 1)

The simulation system of claim 1, wherein the environment manager is further configured to generate a plurality of simulation windows, each simulation window configured for executing a plurality of programmed instruction sequences with specific timing requirements for a specific virtual platform, wherein the plurality of simulation windows facilitates multi-domain simulation of the plurality of virtual platforms.

### Claim 3 (depends on 2)

The simulation system of claim 2, wherein the environment manager further comprises an inter-processor communication (IPC) application programming interface (API) for facilitating communication between programmed instruction sequences executing in different simulation windows for different virtual platforms.

### Claim 4 (depends on 3)

The simulation system of claim 3, wherein the IPC API facilitates communication between virtual platforms executing in different simulation windows based on:
receiving communications from one virtual platform that is directed to another virtual platform;
building a transmitter message signal circular queue for receiving the communications;
providing a balanced IPC handler for handling IPC in the transmitter message signal circular queue;
building a multi-thread semaphore protected message circular queue for the IPC handled by the IPC handler; and
providing a shared IPC pool of Kernel objects handlers for scheduling virtual platform activations to receive communications.

### Claim 5 (depends on 3)

The simulation system of claim 3, wherein the IPC API facilitates concurrent multi-domain simulation of multiple virtual platforms through a network communication protocol.

### Claim 6 (depends on 3)

The simulation system of claim 3, wherein the IPC API facilitates concurrent multi-domain simulation of multiple virtual platforms through communication with a simulator.

### Claim 7 (depends on 3)

The simulation system of claim 3, wherein the IPC API facilitates concurrent multi-domain simulation of multiple virtual platforms through communication with a real world controller.

### Claim 8 (depends on 3)

The simulation system of claim 3, wherein the IPC API facilitates concurrent multi-domain simulation of multiple virtual platforms through providing a memory probe graphical user interface.

### Claim 9 (depends on 3)

The simulation system of claim 3, wherein the IPC API facilitates concurrent multi-domain simulation of multiple virtual platforms through providing a conditions probe.

### Claim 10 (depends on 2)

The simulation system of claim 2, wherein the environment manager further comprises a time sync manager configured to retrieve each of the plurality of programed instruction sequences for a virtual platform and schedule time synchronized execution of each of the plurality of programed instruction sequences in one of the simulation windows.

### Claim 11 (depends on 2)

The simulation system of claim 2, wherein each simulation window represents a functional mock-up unit (FMU) and a first executing FMU is designated as a primary FMU process and subsequent executing FMUs are designated as secondary FMU processes, wherein the primary FMU process generates a clock signal used for synchronizing the operation of quantum tasks in the primary FMU process and quantum tasks in the secondary FMU processes.

### Claim 12

A method in a simulation system comprising:
implementing a plurality of threads of execution (threads) using a plurality of processor cores and an operating system that allocates a time quantum of a predetermined execution time to each thread during which the thread will not be preempted during execution;
monitoring timing requirements of each of a plurality of tasks included in application code for a plurality of distinct virtual platforms;
segmenting each of the plurality of tasks into one or more sequences of programmed instructions that can complete execution in a thread within a time quantum;
providing the one or more sequences of programmed instructions for each of the plurality of tasks as a plurality of programmed instruction sequences with specific timing requirements;
scheduling each of the plurality of programed instruction sequences, based on the specific timing requirements, to execute in one of the plurality of threads at an appropriate time; and
performing real-time simulation of application code utilizing available computing compacity at full capacity.

### Claim 13 (depends on 12)

The method of claim 12, further comprising generating a plurality of simulation windows, each simulation window configured for executing a plurality of programmed instruction sequences with specific timing requirements for a specific virtual platform, wherein the plurality of simulation windows facilitates multi-domain simulation of the plurality of virtual platforms.

### Claim 14 (depends on 13)

The method of claim 13, further comprising providing an inter-processor communication (IPC) application programming interface (API) for facilitating communication between programmed instruction sequences executing in different simulation windows for different virtual platforms.

### Claim 15 (depends on 14)

The method of claim 14, further comprising facilitating communication between virtual platforms executing in different simulation windows based on:
receiving communications from one virtual platform that is directed to another virtual platform;
building a transmitter message signal circular queue for receiving the communications;
providing a balanced IPC handler for handling IPC in the transmitter message signal circular queue;
building a multi-thread semaphore protected message circular queue for the IPC handled by the IPC handler; and
providing a shared IPC pool of Kernel objects handlers for scheduling virtual platform activations to receive communications.

### Claim 16 (depends on 14)

The method of claim 14, further comprising facilitating concurrent multi-domain simulation of multiple virtual platforms through a network communication protocol to a simulator or a real controller.

### Claim 17 (depends on 14)

The method of claim 14, further comprising facilitating concurrent multi-domain simulation of multiple virtual platforms through providing a memory probe graphical user interface or a conditions probe.

### Claim 18 (depends on 13)

The method of claim 13, further comprising retrieving each of the plurality of programmed instruction sequences for a virtual platform and scheduling time synchronized execution of each of the plurality of programed instruction sequences in one of the simulation windows.

### Claim 19 (depends on 13)

The method of claim 13, wherein each simulation window represents a functional mock-up unit (FMU) and a first executing FMU is designated as a primary FMU process and subsequent executing FMUs are designated as secondary FMU processes, wherein the primary FMU process generates a clock signal used for synchronizing the operation of quantum tasks in the primary FMU process and quantum tasks in the secondary FMU processes.

### Claim 20

A non-transitory computer readable medium encoded with programming instructions configurable to cause a simulation system to perform a method, the method comprising:
implementing a plurality of threads of execution (threads) using a plurality of processor cores and an operating system that allocates a time quantum of a predetermined execution time to each thread during which the thread will not be preempted during execution;
monitoring timing requirements of each of a plurality of tasks included in application code for a plurality of distinct virtual platforms;
segmenting each of the plurality of tasks into one or more sequences of programmed instructions that can complete execution in a thread within a time quantum;
providing the one or more sequences of programmed instructions for each of the plurality of tasks as a plurality of programmed instruction sequences with specific timing requirements;
scheduling each of the plurality of programed instruction sequences, based on the specific timing requirements, to execute in one of the plurality of threads at an appropriate time; and
performing real-time simulation of application code utilizing available computing compacity at full capacity.
