asic_wang的个人空间 https://blog.eetop.cn/828160 [收藏] [复制] [分享] [RSS]

空间首页 动态 记录 日志 相册 主题 分享 留言板 个人资料

日志

一些关于port,interface,channel的解释和说明

热度 1已有 1575 次阅读| 2015-1-9 15:10 |个人分类:Design Verification

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 and export are both "windows" of a certain channel, they both forward interface methods to the channel to which they are bound.

The right way to use port or export is like this:
(1) If a module is to call a member function belonging to a channel that is outside the module itself, that call should be made by using an interface method call through a port of the module;
(2) If a module is to call a member function belonging to a channel instance within a child module, that call should be made through an export of the child module;

Another way to think about port and export is like this:
(1) Port is a pointer to a channel outside of the module itself and the child modules under it;
(2) Export is a pointer to a channel inside of the module itself or the child modules under it;
1

点赞

刚表态过的朋友 (1 人)

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 注册

  • 关注TA
  • 加好友
  • 联系TA
  • 0

    周排名
  • 0

    月排名
  • 0

    总排名
  • 0

    关注
  • 11

    粉丝
  • 7

    好友
  • 2

    获赞
  • 0

    评论
  • 901

    访问数
关闭

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

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

GMT+8, 2024-4-18 15:40 , Processed in 0.025634 second(s), 14 queries , Gzip On, Redis On.

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