简体   繁体   English

如何使用Verilog模式AUTOINST?

[英]how to use Verilog mode AUTOINST?

I'm trying to use AUTOINST.我正在尝试使用 AUTOINST。 my problem is that Module name is different from the it's verilog file name (located under subdir) so the following won't work:我的问题是模块名称与它的 verilog 文件名(位于 subdir 下)不同,因此以下内容不起作用:

module ExampInout (o,i);
  InstModule instName
  (/*AUTOINST*/);
endmodule

// Local Variables:
// verilog-library-directories:("subdir")
// End:

How can I let verilog mode "know" that InstModule reside under subdir but in file other than InstModule.v?如何让 verilog 模式“知道”InstModule 位于子目录下但位于 InstModule.v 以外的文件中?

verilog-library-files is what you're looking for. verilog-library-files就是你要找的。 You can specify a full or relative path to each file in the list.您可以指定列表中每个文件的完整或相对路径。

That said the comment on the question is a good one.也就是说,对这个问题的评论是一个很好的评论。 Good style is usually to have the module name match the file name.好的风格通常是让模块名与文件名相匹配。 The exception to this is when it's a 'library' file that contains lots of small module definitions.例外情况是它是一个包含许多小模块定义的“库”文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM