Resource Sharing Settings for Various Blocks - MATLAB & Simulink (original) (raw)

Resource sharing is an area optimization in which HDL Coder™ identifies multiple functionally equivalent resources and replaces them with a single resource. The data is time-multiplexed over the shared resource to perform the same operations. To learn more about how resource sharing works, see Resource Sharing.

You can follow these guidelines to learn how to use the resource sharing optimization effectively with blocks such as Add and Product. Each guideline has a severity level that indicates the level of compliance requirements. To learn more, see HDL Modeling Guidelines Severity Levels.

Resource Sharing of Add Blocks

Guideline ID

3.1.1

Severity

Recommended

Description

To share multiple Add blocks:

Resource Sharing of Gain Blocks

Guideline ID

3.1.2

Severity

Recommended

Description

When you share multiple Gain blocks in your design, the optimization inserts serialization and deserialization logic to share resources. This additional logic can become an area overhead if you are not sharing a large number of resources. Therefore, if your design does not contain a large number of Gain blocks to share, it is recommended that you disable the resource sharing optimization. To share multiple Gain blocks:

To share multiple Gain blocks:

Resource Sharing of Product Blocks

Guideline ID

3.1.3

Severity

Recommended

Description

To share multiple Product blocks:

Resource Sharing of Multiply-Add Blocks

Guideline ID

3.1.4

Severity

Recommended

Description

To share multiple Multiply-Add blocks:

See Also

Topics