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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

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

刚开始看VMM,请教~

[复制链接]
发表于 2009-9-15 19:30:56 | 显示全部楼层 |阅读模式

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

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

x
刚开始看这东西,也看了些例子。搞不大明白的就是callback和factory。看到说明里说的意思大概是callback是用来添加一些自己定义的功能的,但是例子里面总是在调callback里面的pre和post这两个函数。是不是只能在之前添加和之后添加的意思?另外factory里面提到了randomize_obj不知道是不是让数据随机的意思?总之还是不太明白。
求高人指点一二!
发表于 2009-9-15 19:59:24 | 显示全部楼层
your understanding are right!
 楼主| 发表于 2009-9-16 23:41:41 | 显示全部楼层
为什么是are不是is?
发表于 2009-9-22 06:20:34 | 显示全部楼层
Callbacks are used to add user specified actions for selected events, for example if we have memory, we can add pre_put callback to inject error data to be written in memory and post_put callback, to see the final contents beign written to memory. Callback functions are organized in classes so we can have array of callback objects, each object with it's own behavior. For specified example, the transactor calls the pre_put function of the head ellement of callback object's array, then transactor calls pre_put of the 2nd object e.t.c.

Factory is a class specified for customizing the vmm_data objects in a way, user wants, for example, adding special constraints.
发表于 2009-10-27 20:44:16 | 显示全部楼层
我也在学习vmm这是我的QQ号有空可以交流交流
995114082
发表于 2009-11-13 00:28:13 | 显示全部楼层
我也正在学这个,对这两个也是感觉很困惑
发表于 2010-3-27 20:59:47 | 显示全部楼层
学习学习
发表于 2010-3-29 18:10:26 | 显示全部楼层
顶一个!
发表于 2010-3-29 20:15:43 | 显示全部楼层
是在之前,还是在之后调用,不是取决于它的名字,是PRE,还是POST,要看你插入callback的位置
发表于 2011-2-27 19:44:30 | 显示全部楼层
xiexie
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-10-6 05:32 , Processed in 0.021933 second(s), 9 queries , Gzip On, Redis On.

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