Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[major] Add reference types. #75

Merged
merged 13 commits into from
Mar 16, 2023
5 changes: 2 additions & 3 deletions spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,8 @@ order, an optional _defname_ which sets the name of the external module in the
resulting Verilog, zero or more name--value _parameter_ statements, and zero or
more _ref_ statements indicating the resolved paths of the module's exported
references. Each name--value parameter statement will result in a value being
passed to the named parameter in the resulting Verilog. While `ref` statements
are optional, they are required to be present if the reference is used.

passed to the named parameter in the resulting Verilog. Every port or port
sub-element of reference type must have exactly one `ref`{.firrtl} statement.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It makes a lot of sense to me to restrict this. 👍


An example of an externally defined module is:

Expand Down