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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 6259|回复: 6

[求助] hspice仿真如何输出节点的电流和va模型中的变量?

[复制链接]
发表于 2021-1-13 20:49:27 | 显示全部楼层 |阅读模式
100资产
本帖最后由 nihao_ya 于 2021-1-13 20:50 编辑

1、如题,在hspice仿真网表应该用什么语句来输出网表节点的电流值,并且可以用waveview查看波形?
x1 drain gate 0 ntft
比如在这句中,我想要输出结点“drain”和“0”间的电流,应该怎么写?
2、另外就是,导入va模型后,怎样把va模型里的变量输出,不是va语句的打印,要求在sp输出文件中可以看到?



新手资产不多,还望大佬笑纳!



最佳答案

查看完整内容

1. Current: Subcircuit Pin Syntax ISUB(X****.****) Example .PROBE ISUB(X1.PIN1) //note: PIN1 is subckt pin name defined in the subckt header 2. Output Internal Module Variables (HSPICE only) Verilog-A internal variables, by default, are hidden from output. However, module variables with a description or units attribute, or both, are known as output variables, and HSPICE provides access to their ...
发表于 2021-1-13 20:49:28 | 显示全部楼层
1. Current: Subcircuit Pin
Syntax
ISUB(X****.****)
Example
.PROBE ISUB(X1.PIN1)  //note: PIN1 is subckt pin name defined in the subckt header

2.
Output Internal Module Variables (HSPICE only)
Verilog-A internal variables, by default, are hidden from output. However,
module variables with a description or units attribute, or both, are known as
output variables, and HSPICE provides access to their values; for example,
suppose a module for a MOS transistor with the following declaration at module
scope provides the output variable cgs:
(* desc="gate-source capacitance", units="F" *) real cgs;
The cgs module variable can be printed just like a normal parameter variable.
Syntax
Instance:internal_variable
Example
.print xva_vco:freq
This example outputs internal variable frequency value of Verilog-A instance
xva_vco.



发表于 2021-1-14 09:50:37 | 显示全部楼层
同问
发表于 2021-1-14 15:55:45 | 显示全部楼层
.probe isub(*)
 楼主| 发表于 2021-1-14 16:31:47 | 显示全部楼层


david_reg 发表于 2021-1-14 14:32
1. Current: Subcircuit Pin
Syntax
ISUB(X****.****)


谢谢大佬,问题解决了,已采纳!
发表于 2023-11-16 11:25:22 | 显示全部楼层


david_reg 发表于 2021-1-13 20:49
1. Current: Subcircuit Pin
Syntax
ISUB(X****.****)


您好我想请问一下这样我在波形图中看到了这个电流波形,但是他一直显示是0,与前仿的对不上,是什么原因呀

发表于 2023-11-23 02:08:37 | 显示全部楼层
后仿真的网表可能是flat网表, 可以检查一下isub()对应的instance在后仿真的网表中是否还存在.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-4-25 18:43 , Processed in 0.025641 second(s), 6 queries , Gzip On, Redis On.

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