> For the complete documentation index, see [llms.txt](https://www.opal-rt.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.opal-rt.com/docs/ehs/3.7/first-steps/integrate-ehs-into-rt-lab-and-hypersim-models.md).

# Integrate eHS into RT-LAB and HYPERSIM Models

To run an electrical circuit on the FPGA using the eHS solver, the CPU model must include an eHS interface block.

RT-LAB supports multiple workflows based on either Schematic Editor or SPS circuit models and different FPGA I/O drivers. HYPERSIM supports a single workflow based on Schematic Editor and the OPAL-RT Board interface.

Choose the workflow that matches your simulation platform and modeling environment.

## eHS with RT-LAB

RT-LAB supports multiple workflows for eHS:

* **Schematic Editor (circuit editor) + S-Function (FPGA I/O driver)**\
  This is the **recommended workflow**. See [Prepare an RT-LAB Model](https://www.opal-rt.com/docs/ehs/3.7/first-steps/integrate-ehs-into-rt-lab-and-hypersim-models/prepare-an-rt-lab-model.md) for details.\
  Schematic Editor can also generate a standalone Protected Block that contains the eHS circuit and all required configuration information. Refer to [Export and Use a Protected eHS Block](https://www.opal-rt.com/docs/ehs/3.7/first-steps/integrate-ehs-into-rt-lab-and-hypersim-models/prepare-an-rt-lab-model/export-and-use-a-protected-ehs-block.md) for details.
* **SPS in Simulink (circuit editor) + S-Function (FPGA I/O driver)**\
  This legacy workflow is intended for existing Simulink models developed with SPS blocks and remains supported for execution on the FPGA using the eHS solver. See [Model in SPS (RT-LAB only)](broken://spaces/nVlkMVXjY5bWbFGd9Gyz/pages/gf5r7Tw2eVphlXqO2uFC) for details.
* **Schematic Editor (circuit editor) + OPAL-RT Board (FPGA I/O driver)**\
  Not recommended but supported.

## eHS with HYPERSIM

HYPERSIM supports a single workflow for eHS:

* **Schematic Editor** (circuit editor) + **OPAL-RT Board** (FPGA I/O driver)\
  See [Prepare an HYPERSIM Mode](https://www.opal-rt.com/docs/ehs/3.7/first-steps/integrate-ehs-into-rt-lab-and-hypersim-models/prepare-an-hypersim-model.md)l for details.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.opal-rt.com/docs/ehs/3.7/first-steps/integrate-ehs-into-rt-lab-and-hypersim-models.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
