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

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

日志

PLI acc_set_value()

已有 1842 次阅读| 2014-8-22 09:17 |个人分类:verification

acc_set_value()
Synopsis:
Set and propagate a value on a reg, variable, user-defined system function or a sequential UDP; procedurally assign a reg or variable; force a reg, variable, or net.
Syntax:
acc_set_value(object_handle, value_p, delay_p)

acc_set_value() shall be used to perform. a procedural continuous assignment of a value to a reg or variable or to deassign the reg or variable. This shall be the same functionality as the procedural assign and deassign keywords in the verilog hdl.

acc_set_value() shall also be used to perform. a precedural force of a value onto a reg, variable or net, or to release the reg, variable or net. This shall be the same functionality as the procedural force and release keywords in the Verilog HDL.


typedef struct t_setval_delay
{
  s_acc_time time;
  PLI_INT32 model;
s_setval_delay, *p_setval_delay;

model: accNoDelay, accInertialDelay, accTransportDelay, accpureTransportDelay

typedef struct t_setval_value
{
  PLI_INT32 format;
  union
  {
    PLI_BYTE8 *str;
    PLI_INT32 scalar;
    PLI_INT32 integer;
    double real;
    p_acc_vecval vector;
  } value;
s_setval_value, *p_setval_value, s_acc_value, *p_acc_value;

format: accBinStrVal, accOctStrVal, accDecStrVal, accHexStrVal, accStringVal, accScalarVal, accIntVal, accRealVal, accVectorVal
eg:
s_acc_value value;
value.format = accBinStrVal;
(void)acc_fetch_value(Net, “%%”, &value);

点赞

评论 (0 个评论)

facelist

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

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

    周排名
  • 0

    月排名
  • 0

    总排名
  • 0

    关注
  • 2

    粉丝
  • 0

    好友
  • 0

    获赞
  • 0

    评论
  • 2451

    访问数
关闭

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


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

GMT+8, 2024-11-22 01:19 , Processed in 0.026635 second(s), 14 queries , Gzip On, Redis On.

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