intel / rohd

The Rapid Open Hardware Development (ROHD) framework is a framework for describing and verifying hardware in the Dart programming language.
https://intel.github.io/rohd-website
BSD 3-Clause "New" or "Revised" License
374 stars 67 forks source link

A mechanism to prevent merging of certain module definitions #345

Closed mkorbel1 closed 10 months ago

mkorbel1 commented 1 year ago

Motivation

Sometimes it is desirable to create a variety of modules with specific definition names, even if some of those definitions have exactly the same contents. Currently, if you use reserveDefinitionName ROHD will flag an error if it's unable to keep them unique. It would be nice to have a way to instead just duplicate the module definition.

Desired solution

Some sort of flag (perhaps reusing reserveDefinitionName?) that tells the synthesizer not to de-duplicate that module definition in output code.

Alternatives considered

Current workarounds involve adding some sort of thing to make the code unique such as:

Additional details

No response