> 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/efpgasim-library/simulink-sps-workflow/machines/resolver-encoder-mapping.md).

# Resolver Encoder Mapping

## Description

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-24093b00e66926f12f0bd9cd8eba563db4e7931e%2Fsps-ehs-resolver-encoder-mapping-block.png?alt=media" alt="" width="299"><figcaption></figcaption></figure>

The **Resolver Encoder Mapping** block, located in the **eFPGAsim/External circuit editor workflow/Machines/Sensor** library, configures mapping of available machines to the different resolver and encoder.

It communicate with the FPGA using the Config tab, where the controller name and LoadIn port are given. Preset values are available for standard firmware, but it can also be customized by advanced users who make their own firmware.

## Mask parameters

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-46933c2c59aad29a20e48eb69dc50d025374f65a%2Fsps-ehs-resolver-encoder-mapping-mask.png?alt=media" alt=""><figcaption></figcaption></figure>

{% tabs %}
{% tab title="Mapping" %}

| Parameter                           | Description                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Resolver/Encoder # connected to** | <p>Select a machine to which the Resolver/Encoder will be connected.<br>If the <strong>Custom firmware</strong> is selected in the Configuration tab, the drop-down will present a list of generic machines, indexed from 1 to the selected number of available machines</p><p>If the <strong>specific firmware</strong> in the Configuration tab, is selected, the drop-down will present the list of machines available for this firmware.</p> |
| {% endtab %}                        |                                                                                                                                                                                                                                                                                                                                                                                                                                                  |

{% tab title="Config" %}

| Parameter                      | Description                                                                                                                                                                                                                                       |
| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **OpControl block name**       | Links this block to an OpCtrl block by entering the same 'Controller Name' as specified in the OpCtrl block. The OpCtrl block controls initialization of the settings of one specific FPGA-based card in the system.                              |
| **LoadIn port number**         | Enter the number of the LoadIn port used to communicate with the firmware, in the range \[1:32]. Port number is available inside the bitstream configuration file (.conf file).                                                                   |
| **Firmware**                   | Select a defined list of compatible firmwares with fixed count of Resolver/Encoder units. Selecting "Custom" will allow user to choose how many Resolver/Encoder units and machines are enabled.                                                  |
| **Number of Resolver/Encoder** | Defines the number of Resolver/Encoder modules to use. The maximum number of Resolver/Encoder is 8. This field is disabled when a predefined firmware is selected in the "Firmware" drop-down menu.                                               |
| **Number of Machine**          | Select the number of machines that can be connected. The maximum number of machines is 16. Each Resolver/Encoder can be connected to one machine. This field is disabled when a predefined firmware is selected in the "Firmware" drop-down menu. |
| {% endtab %}                   |                                                                                                                                                                                                                                                   |
| {% endtabs %}                  |                                                                                                                                                                                                                                                   |

## Inputs

The block has not inputs.

## Outputs

| Output     | Description                                                                 |
| ---------- | --------------------------------------------------------------------------- |
| **Status** | The block will output each Resolver/Encoder input to it's connected Machine |

## Characteristics and limitations

| Direct Feedthrough   | NO  |
| -------------------- | --- |
| Discrete sample time | YES |
| XHP support          | YES |
| Work offline         | NO  |


---

# 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/efpgasim-library/simulink-sps-workflow/machines/resolver-encoder-mapping.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.
