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

Forbid inference for input ports that have an output dependency #71

Open
VonTum opened this issue Mar 8, 2025 · 0 comments
Open

Forbid inference for input ports that have an output dependency #71

VonTum opened this issue Mar 8, 2025 · 0 comments

Comments

@VonTum
Copy link
Collaborator

VonTum commented Mar 8, 2025

module infer_me #(int V) : int a'0 -> int b'V {
  
}
module m : int a'0 -> int b'2 {
  infer_me im

  im.a = a
  reg reg reg reg int a_d = im.a
  b = im.b + a_d
}

This would infer im to be infer_me #(V: 2), yet it would lead to a failure. In this example it may be simple to spot, and errors anyway, but allowing this may have other weird consequences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant