欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

(筆記) t_vpi_value struct (SOC) (Verilog PLI)

发布时间:2024/1/1 编程问答 35 豆豆
生活随笔 收集整理的这篇文章主要介绍了 (筆記) t_vpi_value struct (SOC) (Verilog PLI) 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

Abstract
寫Verilog PLI,最常遇到的就是t_vpi_value這個struct, 每次都要特別翻書,因此特別記下來。

Introduction

1 typedef struct t_vpi_value {
2   PLI_INT32 format; /* vpiBinStrVal,   vpiOctStrVal,
3                        vpiDecStrVal,   vpiHexStrVal,
4                        vpiScalarVal,   vpiIntVal,
5                        vpiRealVal,     vpiStringVal,
6                        vpiVectorVal,   vpiTimeVal,
7                        vpiStrengthVal, vpiSuppressVal,
8                        vpiObjTypeVal */
9   union {
10     PLI_BYTE8 *str;                     /* if any string format */
11     PLI_INT32 scalar;            /* if vpiScalarVal: one of vpi0, vpi1,*/
12                                  /*  vpiX, vpiZ, vpiH, vpiL, vpiDontCare*/
13     PLI_INT32 integer;                  /* if vpiIntVal format */
14     double real;                        /* if vpiRealVal format */
15     struct t_vpi_time *time;            /* if vpiTimeVal */
16     struct t_vpi_vecval *vector;        /* if vpiVectorVal */
17     struct t_vpi_strengthval *strength; /* if vpiStrengthVal */
18     PLI_BYTE8 *misc;                    /* not used */
19   } value;
20 } s_vpi_value, *p_vpi_value;

总结

以上是生活随笔为你收集整理的(筆記) t_vpi_value struct (SOC) (Verilog PLI)的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。