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

Question: AUTOINST and SystemVerilog interfaces #274

Closed
veripoolbot opened this issue Jul 19, 2010 · 1 comment
Closed

Question: AUTOINST and SystemVerilog interfaces #274

veripoolbot opened this issue Jul 19, 2010 · 1 comment
Labels

Comments

@veripoolbot
Copy link
Collaborator


Author Name: Luis Gutierrez
Original Redmine Message: 315 from https://www.veripool.org


Hi, I've searched the docs and the wiki, but I can't figure out how to AUOTINST to a SV interface.

For example, given the following code:

------------------------------ my_sv_if.sv --------------------------------
interface my_sv_if
  logic a;
  logic b;
  modport master_mp(input a, output b);
  modport slave_mp(output a, input b);
  modport monitor (input a, input b);
endinterface

-------------------------------- my_tb.sv ---------------------------------
module my_tb;
  my_if inst_if (/*AUTOINST*/);
endmodule

---------------------------------------------------------------------------

verilog-mode will complain with the following error:

"verilog-modi-lookup: biu_tb.v:738: Can't locate my_if module definition
     Check the verilog-library-directories variable.
     I looked in (if not listed, doesn't exist):
	< some path >
	< some path /my_if.sv >"

What is very weird is that if I change the declaration from declaration of my_sv.sv from 'interface' to module, then verilog-mode correctly maps the first port of the interface.

Am I missing something syntax wide to interface properly (ie, modport name/usage?), or are interfaces currently not supported?

Thanks in advance,

Luis Gutierrez

PS. I'm using version 629 of verilog-mode.

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2010-07-19T15:20:58Z


Just filed #�, conversation there.

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

No branches or pull requests

1 participant