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

Not check type mismatch between connected interface and port declaration #1088

Open
taichi-ishitani opened this issue Nov 19, 2024 · 1 comment
Labels
tools Tools feature

Comments

@taichi-ishitani
Copy link
Contributor

Currently, Veryl compiler does not check type of connected interface.
Following code includes type mismatch between connected interface and port declaration but no error is raised.

interface foo_if {
  var a: logic;
  modport mp {
    a: output
  }
}

interface bar_if {
  var a: logic;
  modport mp {
    a: output
  }
}

module sub (
  foo: modport foo_if::mp
){
  assign foo.a = 0;
}

module top (
  o_a: output logic
) {
  inst bar: bar_if;
  inst u_sub: sub (foo: bar); // type mismatch

  assign o_a = bar.a;
}
@dalance dalance added the tools Tools feature label Nov 19, 2024
@dalance
Copy link
Collaborator

dalance commented Nov 19, 2024

Related: #1017

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

No branches or pull requests

2 participants