> 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/rt-lab/simulink-blocks-reference/rt-lab-library/convert-double-to-single-floating-point-fpga.md).

# Convert double to Single floating-point (FPGA)

## Description

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-9c4c28141e78aa490096459f03e8562ede50b726%2Fconvert-double-fpga.png?alt=media" alt=""><figcaption></figcaption></figure>

The **Convert double to Single floating-point (FPGA)** block, located in the **RT-LAB/Miscellaneous** library, converts a double‑precision value from Simulink into a single‑precision floating‑point value for the FPGA domain.

The input is a **double** signal, and the output is a **uint32** signal encoding an IEEE‑754 single‑precision floating‑point value. This block is typically used in conjunction with FPGA I/O blocks to convert model signals into a format suitable for FPGA processing.

## Mask parameters

This block has no parameters.

## Inputs

<table><thead><tr><th width="152.75">Input</th><th>Description</th></tr></thead><tbody><tr><td><strong>DBL</strong></td><td>Input signal in <strong>double‑precision</strong> format from the Simulink model.</td></tr></tbody></table>

## Outputs

<table><thead><tr><th width="147.75">Output</th><th>Description</th></tr></thead><tbody><tr><td><strong>SFP</strong></td><td>Output signal in <strong>uint32</strong> format representing an IEEE‑754 single‑precision floating‑point value (1 sign bit, 8 exponent bits, 23 significand bits).</td></tr></tbody></table>

## Characteristics and Limitations

| Characteristic           | Value         |
| ------------------------ | ------------- |
| **Vector support**       | Not supported |
| **Direct feedthrough**   | N/A           |
| **Discrete sample time** | Yes           |
| **XHP support**          | Yes           |
| **Work offline**         | Yes           |


---

# 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/rt-lab/simulink-blocks-reference/rt-lab-library/convert-double-to-single-floating-point-fpga.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.
