Gateway Block for Processor-in-the-Loop Co-Simulation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing co-simulation technologies require external processors to be aware of the simulation environment, necessitating wait loops and device driver calls, which complicates testing and increases the risk of code conflicts, especially when transitioning from simulation to deployment.

Innovation Solution

The integration of a target processor into a simulation environment allows it to operate in a processor-in-the-loop (PIL) setting without awareness of the simulation, enabling seamless communication and function calls without the need for wait loops or specific device driver calls, using a gateway block for communication between the block diagram model and external processor.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If external processors use wait loops and device driver calls to communicate with the simulation environment, then the processor can be integrated into the simulation, but the complexity of the processor code increases and the risk of code conflicts increases

Engineering Contradiction:
Improveintegration reliabilityVSAvoidprocessor code complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent extracts the communication and control logic from the external processor code and relocates it to the simulation environment (host). The processor simply executes its core function while the host handles all coordination, timing, and data transfer through the gateway block, eliminating wait loops and device driver calls from the processor side.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The gateway block serves as an intermediary between the simulation environment and the external processor. It manages the communication channel, handles data transfer, and coordinates function calls, allowing the processor to operate independently without direct knowledge of the simulation environment.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Ease of operation

If the processor is made aware of the simulation environment through wait loops and device drivers, then communication can be established, but the ease of transitioning from simulation to deployment is reduced

Engineering Contradiction:
Improvesimulation- deployment transition easeVSAvoidcode conflict risk
Core Design Contradiction:
Ease of operationVSReliability

Solution Approach 1:

The patent extracts all simulation-specific awareness code (wait loops, device drivers, handshaking mechanisms) from the processor and relocates it to the host simulation environment. The processor code remains clean and deployment-ready, while the host handles all simulation-specific coordination.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The gateway block creates a virtual copy of the communication interface that presents a consistent abstraction layer. This allows the processor to interact with the simulation environment through a standardized interface that behaves identically in both simulation and deployed modes, eliminating code conflicts.

Inventive Principle:
Principle #26Copying

3Reliability

If traditional co-simulation technology is used with peer-to-peer handshaking, then the processor can be integrated, but the time required for testing and evaluation increases

Engineering Contradiction:
Improveprocessor integrationVSAvoidtesting and evaluation time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent implements preliminary action by having the host simulation environment proactively invoke processor functions through the gateway block at appropriate simulation time steps. This eliminates the need for the processor to continuously wait and handshake, as the host initiates communication based on the simulation timeline, significantly reducing testing time.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The gateway block implements feedback mechanisms where the host monitors simulation state and automatically triggers processor function calls when needed. This closed-loop approach eliminates manual handshaking and wait loops, allowing rapid iteration and evaluation of processor functionality within the simulation context.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS7490032B1Framework for hardware co-simulation by on-demand invocations from a block model diagram design environment
Publication Date: 2009.02.10 MATHWORKS INC
  • US7490032B1 patent drawing
  • US7490032B1 patent drawing
  • US7490032B1 patent drawing

AI summary

The present invention relates to integration of an external processor capable of execution of one or more functions into a block diagram model environment such that the block diagram model environment can make function calls directly into the external processor without the need for traditional wait loops or handshaking means. Furthermore the results of the function that was called in the external processor can be passed to the block diagram model environment from the external processor.