> 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/model-in-schematic-editor/library-blocks-reference/switches-blocks/bidirectional-half-bridge.md).

# Bidirectional half-bridge

## Description

<figure><img src="https://521571437-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fo99Izmvvw5eHT4ldzI4g%2Fuploads%2Fgit-blob-f10954b372106d59b5dad0e204569f6afda53715%2Fse-bidirectional-half-bridge-block.png?alt=media" alt=""><figcaption></figcaption></figure>

The **Bidirectional Half Bridge** block consists of two bidirectional switches connected in series between the slow ports, with the fast port at their midpoint. Because each bidirectional switch can conduct and block in both directions, the input can be an AC voltage, enabling direct AC/AC conversion.

The low-frequency AC voltage, typically at the grid frequency, is connected to the slow AC ports `acA` and `acB`. The high-frequency voltage synthesized by the switching action, hence the "fast" designation, is obtained at the fast AC port `ac`.

For proper operation, the slow ports `acA` and `acB` must be connected to a circuit whose voltage between these nodes is sufficiently stable, such as a voltage source or a capacitor. Conversely, the fast port `ac` is assumed to be connected to a part of the circuit where the current is stable, such as an inductor or a transformer.

{% hint style="info" %}
This block is supported **only** by the High-Speed Converter Solver (HSCS).
{% endhint %}

{% hint style="danger" %}
This block **cannot be used in eHS-only circuits**.
{% endhint %}

## Parameters

<figure><img src="https://521571437-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fo99Izmvvw5eHT4ldzI4g%2Fuploads%2Fgit-blob-2e0c970d83b36815b3c0332bac75c49fbfd38207%2Fse-bidirectional-half-bridge-parameters-hscs.png?alt=media" alt=""><figcaption></figcaption></figure>

| Parameter                                             | Description                                                       | Sets feature | I/O & Monitoring                                                                                   |
| ----------------------------------------------------- | ----------------------------------------------------------------- | ------------ | -------------------------------------------------------------------------------------------------- |
| **Internal on resistance (R**<sub>**on**</sub>**)**   | The switch internal on resistance, in ohms (Ω).                   | Yes          | N/A                                                                                                |
| **Internal off resistance (R**<sub>**off**</sub>**)** | The switch internal off resistance, in ohms (Ω).                  | Yes          | N/A                                                                                                |
| **Gate control signal (g**<sub>**1**</sub>**)**       | Gate signal of the first IGBT in the upper bidirectional switch.  | No           | <p>From <code class="expression">space.vars.cpu\_model\_veristand</code><br>From Digital Input</p> |
| **Gate control signal (g**<sub>**2**</sub>**)**       | Gate signal of the second IGBT in the upper bidirectional switch. | No           | <p>From <code class="expression">space.vars.cpu\_model\_veristand</code><br>From Digital Input</p> |
| **Gate control signal (g**<sub>**3**</sub>**)**       | Gate signal of the first IGBT in the lower bidirectional switch.  | No           | <p>From <code class="expression">space.vars.cpu\_model\_veristand</code><br>From Digital Input</p> |
| **Gate control signal (g**<sub>**4**</sub>**)**       | Gate signal of the second IGBT in the lower bidirectional switch. | No           | <p>From <code class="expression">space.vars.cpu\_model\_veristand</code><br>From Digital Input</p> |

## Conserving ports

| Port    | Description         |
| ------- | ------------------- |
| **acA** | First slow AC port  |
| **ac**  | Fast AC port        |
| **acB** | Second slow AC port |


---

# 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/model-in-schematic-editor/library-blocks-reference/switches-blocks/bidirectional-half-bridge.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.
