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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
分享 阅读《设计模式》有感
asic_wang 2015-2-3 15:13
当你需要开发一个大型的库或者实用工具的时候,熟悉一些设计模式是必要的,也是有益的,网上很多人对设计模式这个东西展开了一些辩论,我不是做传统的软件工程出生的,但是我还是觉得设计模式不必像有些人评价的那样一文不值,它有它的可取之处,至少在C++这个层次它还有有一些指导意 ...
个人分类: Design Verification|1297 次阅读|0 个评论
分享 VCS中SystemC/C++的动态链接库的使用
asic_wang 2015-1-21 10:13
在这个问题上需要分两种情况来说明: 1、动态链接库由纯C/C++文件编译而成,即不含有任何SC部分 在此情况下,一般verilog/SV中只使用DPI技术来使用动态链接库中的某些函数,那么主要是用如下几步命令: 1)gcc -fPIC a.c b ...
个人分类: Design Verification|7116 次阅读|0 个评论
分享 SystemC的SCV库
asic_wang 2015-1-12 21:50
相比较systemverilog,SystemC的core language缺少验证所需的一个关键部分,constraint randomization,其实这个东西在scv库里。 scv库中如下几个部分: 1、data的introspection,个人觉得这个部分所实现的功能类似于uvm中的 `uvm_field_xxx;当然introspection还有其它功能是uvm automatic ...
个人分类: Design Verification|1805 次阅读|0 个评论
分享 SystemC的一些注意点
asic_wang 2015-1-10 21:10
1、注意和verilog/SV的一个很大的不同的语法就是case语句,记得在需要的时候加上 break。 2、SystemC中对signal的write函数相当于verilog中的非阻塞赋值,在使用的时候需要 注意。 3、当一个变量只在其中一个process中使用时,声明成一个普通的变量即可; ...
个人分类: Design Verification|1687 次阅读|0 个评论
分享 动态链接库的路径
asic_wang 2015-1-10 20:10
在生成了so文件之后,在编译的时候有两个选项制定了动态链接库的名字和路径: -Ldir 指定动态链接库所在的路径dir -lxxx 指定动态链接库的名字:libxxx.so 但是当编译完成之后,运行时仍然会报出找不到libxxx.so的出错消息; -L和-I都是属于gcc或cc编译工具的选项,而当程序运行时,需要先从disk加载到进程空 ...
个人分类: Design Verification|1305 次阅读|0 个评论 热度 1
分享 port,interface,channel的一个关键函数
asic_wang 2015-1-9 17:34
channel是具体化interface的,port是channel的一个代理,那么它是如何实现代理的呢?有一个关键的函数需要知道,也就是对间接操作符的重载。 在sc_port中定义了这个函数: templateclass IF class sc_port_b: public sc_port_base{ ........ IF* operator-();   ...
个人分类: Design Verification|1344 次阅读|0 个评论
分享 使用port,interface,channel的好处
asic_wang 2015-1-9 16:07
Port makes module have a clear boundary to the others; With interfaces, we can easily plug in different versions of a channel into a model, though the old one and the new one may vary vastly! Yet you can still substitue one for the other without having to worry about the details of modules that us ...
个人分类: Design Verification|738 次阅读|0 个评论
分享 一些关于port,interface,channel的解释和说明
asic_wang 2015-1-9 15:10
In SystemC scheme, channels are the workhorses for holding and transmitting data, and an interface is a "window" into a channel that describes the set of operations, or a subset thereof, that the channel provides. Ports are proxy objects that facilitate access to channels through interfaces. port ...
个人分类: Design Verification|1579 次阅读|0 个评论 热度 1
关闭

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

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

GMT+8, 2024-4-20 17:28 , Processed in 0.012253 second(s), 3 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
返回顶部