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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 4107|回复: 6

[转贴] Verification in the trenches: A SystemC implementation of VMM1.2

[复制链接]
发表于 2010-12-24 22:11:04 | 显示全部楼层 |阅读模式

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

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

x
本帖最后由 yecheng_110 于 2010-12-24 22:13 编辑

翻译一篇vmmcentral上的文章,很多句子不知道如何翻译,欢迎指正.
原文:http://www.vmmcentral.org/vmarti ... entation-of-vmm1-2/

VMM1.2 class library is now also implemented in SystemC(VMM-SC).
现在VMM1.2的类库已经实现了SystemC(VMM-SC).

Will it help your project? Please take a few minutes to consider this, especially if you have been using or thinking about C/C++/SystemC models in your environment.
它能对你的项目有所帮助吗?请花上几分钟来考虑这个问题,尤其是你曾经在你的环境中使用过或者考虑过使用c/c++/Systemc模型.

Following are the some use cases that I have come across or can anticipate among our clients. With each use case, I have put down some thoughts on why VMM-SC may(or may not) be of any benefit. Do you agree?
下面是几个应用情景是来自我们的客户或者他们的预期.对于每个应用情景,我都记录下一些思考过程,为什么VMM-SC可能带来一些好处或者相反.不知道你赞成吗?

Use Case 1. Using SystemC as the primary verification language for unit level verification
情景1.使用SC做为主要的UT验证语言.

Many teams today use SystemC as their primary verification language for all unit and system-level tests. However, with the increasing popularity of Systemverilog, they often adopt a hybrid model. They do use C++/SystemC as the primary language for testbench creation, but complement it using SystemVerilog language features for assertions, functional coverage analysis, and constrained random generation.
现在有很多team使用SC做他们UT和ST的主要验证语言.但是,随着SV的流行,他们经常采用混合模型.他们的确使用SC做为创建TB的主要语言,但是使用SV的一些features:断言、功能覆盖率分析和带约束的随机激励,做为补充.

Such teams often consider moving to SystemVerilog based environments, but are concerned about the reuse of their existing code, and cannot justify the ROI against the resources needed to make the transition to SystemVerilog completely. Ideally, they would like to have a multi-language solution that can mix and match SystemVerilog and SystemC components.
这些团队经常考虑把环境迁移到SV语言,但是考虑到重用已有的代码,and cannot justify the ROI(Return on investment) against the resources needed to make the transition to SystemVerilog completely..最好的方法是他们可能采用一个混合了SV和SC组件的多语言解决方案.

For this class of users, VMM-SystemC can ease their adoption of a multi-language solution. First, they can create newer environments in VMM-SC, and encapsulate preexisting VIP within VMM-SC components using thin wrappers. Once transitioned to VMM-SC, they can easily interoperate with other VMM-SV based environments and components. As an added benefit of the SystemVerilog-SystemC interoperability, the VMM-SV applications such as RAL/Scoreboarding etc. can now be made available to the SystemC side.
对于这类用户,VMM-SC可以使他们采用多语言解决方案更为容易.首先,他们可以用VMM-SC创建新的环境,然后使用轻量级的wrappers把以前的VIP封装在VMM-SC组件中.一旦转换到VMM-SC,他们可以很容易的实现与基于VMM-SV的环境和组件互相操作.做为SV和SC互通的一个额外的好处,VMM-SV的RAL/Scoreboarding等在SC侧现在也是可见的.

Use Case 2. Using SystemC as the primary verification language for system-level verification
应用场景2.使用SC做ST的主要验证语言

Some teams decide to write their system level verification environments primarily in C/C++, as it is often used by the SW team or in the lab. Depending on the sophistication of these teams, these environments may range from being simple directed C testbenches to those that are highly sophisticated and use SystemC. Adopting VMM-SC as the system-level methodology can make it easier to cleanly pull in various environments and components by encapsulating them as VMM objects and making them work together taking advantage of VMM-SC support for phasing, TLM ports etc.
有的团队决定使用c/c++做为验证环境的主要语言,因为验证环境经常会提供给软件团队或者in the lab.基于这些混合的团队,这些环境可能简单的C环境变化到高度复杂的SC环境.采用VMM-SC做ST的验证方法可以把不同的环境和组件干净的封装在一起,使它们协同工作,同时利用VMM-SC支持phasing、TLM port等优点.

For this class of users, adopting VMM-SC as the top-level glue environment will be a big win.
对于这类用户,采用VMM-SC做为顶层的粘合环境将是巨大的成功.

Use Case 3. Planning to move to SystemVerilog and adopt industry standard practices.
应用场景3. 规划迁移到SV,采用业界标准的做法。

Often, teams are willing to start from scratch for new projects as they realize their existing environments have become outdated and simply cannot scale. With the maturity of SystemVerilog, they would likely adopt it as the primary HVL language of choice. However, they would still like to preserve a number of previously developed components.
团队往往愿意在新项目从头开始,因为他们认识到其现有的环境已过时而且不能扩展。

This is an ideal application for using VMM-SC. Pre-existing transactors can be converted to VMM-SC components by deriving them from vmm_xactor/vmm_unit classes(see 4.3 below). The new environment can now be written in VMM-SV, which can pull in the legacy components using VMM-SC/SV interoperability solution. All VMM features, such as cross language option setting, communicating transactions in a language agnostic way between source and target components using TLM, coordinated phasing etc. make the SystemVerilog adoption process much easier.
这是一个VMM-SC的理想用途.以前的transactors可以继承于vmm_xactor/vmm_unit类(见下面的4.3)从而转换为VMM-SC组件.新的环境可以用VMM-SC来写,这可以使用 VMM-SC/SV 互操作解决方案来引进遗留的组件。所有的VMM的特性,比如跨语言选项设置、使用TLM 在源和目标组件之间实现对语言透明的方式进行通信、协调phasing等,使得采用SV的过程更为容易.

Use Case 4.  Using SystemC to develop ESL environments and reference models.
应用场景4.使用SC开发ESL模型和RM.

There are users who are primarily interested in creating models at various levels of abstraction. These models can be used in multiple applications, such as performance modeling and architectural exploration. In some cases, such models may not be of sufficient detail to use in functional verification.
有一些用户主要对创建不同抽象层次的模型感兴趣.这些模型可以用在各种应用中,比如性能模型和架构探索.在有的情况下,这些模型可能没有足够的细节来完成功能验证.

At the minimum, such models should be created using TLM2.0 ports to enable easy plug and play in ESL contexts. Adopting VMM-SC as the primary methodology for developing such components can be of benefit, since it offers a rich set of features that can help in controlling and coordinating the components, while maintaining strong interoperability with verification environments.
这些模型至少应该使用TLM2.0的端口使得更容易集成到ESL环境.采用VMM-SC做为开发这些组件的主要验证方法是有好处的.由于它提供了一组丰富的功能,可以帮助控制和协调各个组件,同时保持与验证环境组件有很强的互操作性。

So, to which one of these use cases do you belong? Any other use case that I missed?
那么你属于这里的哪种应用场景呢?还有其它我遗漏的应用场景吗?
头像被屏蔽
发表于 2010-12-25 16:50:13 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2010-12-26 16:44:35 | 显示全部楼层
正在调研所谓的测试方法,看到了很多种类的,就是资料不够多,无法做出明显判断。
发表于 2011-4-15 19:18:31 | 显示全部楼层
楼主辛苦了,顶
发表于 2011-4-17 13:46:57 | 显示全部楼层
发表于 2011-4-18 10:37:44 | 显示全部楼层
路过来看看咯!
发表于 2011-4-20 21:25:36 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

×

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

GMT+8, 2024-4-25 08:42 , Processed in 0.027389 second(s), 8 queries , Gzip On, Redis On.

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