在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 13162|回复: 11

[求助] systemverilog .sv和.svh文件的区别

[复制链接]
发表于 2014-11-5 16:19:47 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
各位:    最近在搭建UVM平台。现在项目上要对文件进行规范管理。现在对.sv和.svh文件的区别不是很清楚。 在以前的仿真中,貌似两个文件都是可以的。所以就没有在意。现在项目上让梳理文件管理规范。。。。。
     欢迎大神指点
发表于 2014-11-5 16:37:34 | 显示全部楼层
就一文件后缀。。
发表于 2014-11-5 17:57:40 | 显示全部楼层
Class templates that are declared within the scope of a package should be separated out into individual files with a .svh
extension. These files should be `included in the package in the order in which they need to be compiled. The package
file is the only place where `includes should be used, there should be no further `include statements inside the included
files.
Justification: Having the classes declared in separate files makes them easier to maintain, and it also makes it clearer
what the package content is.
发表于 2014-11-22 11:46:06 | 显示全部楼层
是习惯,怎么都行。不过编进package的一般用svh, 其他的用sv
发表于 2014-12-5 20:24:26 | 显示全部楼层
学习一下。。。。。。。。。。。
发表于 2015-3-31 15:16:30 | 显示全部楼层
多看多学!!
发表于 2016-4-7 15:06:09 | 显示全部楼层
学习了
发表于 2016-4-8 15:46:49 | 显示全部楼层
学习一下。。。。。。。。。。。
发表于 2016-4-8 17:52:09 | 显示全部楼层
所有的include放在.svh中,其它文件用.sv
发表于 2018-11-23 20:03:16 | 显示全部楼层
好像是.svh文件是要放进package中的,剩下的是sv,其实就是标识符,好认好已

点评

学到了  发表于 2019-7-16 20:45
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

×

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-4-28 13:54 , Processed in 0.036390 second(s), 13 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表