(筆記) t_vpi_value struct (SOC) (Verilog PLI)
生活随笔
收集整理的这篇文章主要介绍了
(筆記) 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)的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: python星空代码_002.03 Tk
- 下一篇: 中国剩余定理——孙子定理