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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 8751|回复: 14

[求助] Hspice 输出元器件端电流

[复制链接]
发表于 2019-8-29 11:19:24 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
本人刚学电路,在做仿真的时候想输出某个元器件端电流(如mos管的漏极电流),   用语句  .probe i1(x1.XNM1) 但是没有输出波形
   用语句  .probe i(*) 有输出结果,但是输出的是激励源的电流
   用语句  .probe v(*) 能够输出所有的节点电压
想问一下各位前辈,
按理说 .probe i(*)也应该能输出所有元件所有端点电流吧,为什么输出的是所有激励源的电流?
想单独输出某个元器件端点电流用In(Wwww)结构为什么输出不了?

发表于 2019-8-29 20:53:54 | 显示全部楼层
输出元器件的电流需要指明元器件端口的(但是有些元器件不需要写)
发表于 2019-8-30 08:26:44 | 显示全部楼层
x1.XNM1的NMOS是subkct定义的模型, 输出subckt端口电流要用
isub(x1.xnm1.*)
发表于 2019-8-30 08:50:18 | 显示全部楼层
比较简单的方法是,在需要观测电流的地方串个iprobe(若名字叫I1),然后.probe i(vI1)
 楼主| 发表于 2019-8-30 10:21:10 | 显示全部楼层
谢谢上面几位的回答,我是用top.sp跑的文件中调用了netlist,得到的结果没有电流项,输出电流语句该怎么写呢?

top.sp.png
netlist.png
结果.png
 楼主| 发表于 2019-8-30 10:27:09 | 显示全部楼层


acging 发表于 2019-8-30 08:50
比较简单的方法是,在需要观测电流的地方串个iprobe(若名字叫I1),然后.probe i(vI1) ...


大哥,这个iprobe在网表里面怎么串进去啊
 楼主| 发表于 2019-8-30 10:41:15 | 显示全部楼层


david_reg 发表于 2019-8-30 08:26
x1.XNM1的NMOS是subkct定义的模型, 输出subckt端口电流要用
isub(x1.xnm1.*)


XNM1就是定义mos管的,导出来的netlist中是有 pch5、nch5的SUBCKT定义的,图中是仿真的时候这些定义与.lib模型中的mos管模型重复了,要注释掉,所以我写的
i1(x1.XNM1)输出mos管XNM1的漏极(第一个端口),感觉没有问题,就是没有输出结果,不知道是怎么回事?
发表于 2019-8-30 10:58:45 | 显示全部楼层
要用isub(xi.xnm1)
 楼主| 发表于 2019-8-30 11:01:20 | 显示全部楼层


chudong 发表于 2019-8-29 20:53
输出元器件的电流需要指明元器件端口的(但是有些元器件不需要写)


指明了第一个端口了的
发表于 2019-8-30 13:25:01 | 显示全部楼层
如果mos调用时语句为
MNM1 ....
则端口电流输出为 i1(x1.MNM1)

Syntax
In(Wwww)
Iall(Wwww)
Parameter Description
n Node position number, in the element statement. For example, if the
element contains four nodes, I3 is the branch-current output for the
third node. If you do not specify n, HSPICE assumes the first node.
Wwww Element name. To access current output for an element in a subcircuit,
append a dot and the subcircuit name to the element name. For
example, I3(X1.Wwww).
Iall (Wwww) An alias just for diode, BJT, JFET, and MOSFET devices.
■ If Wwww is a diode, it is equivalent to:
I1(Wwww) I2(Wwww).
■ If Wwww is one of the other device types, it is equivalent to:
I1(Wwww) I2(Wwww) I3(Wwww) I4(Wwww)
Example 1
I1(R1)
This example specifies the current through the first R1 resistor node.
Example 2
I4(X1.M1)
This example specifies the current, through the fourth node (the substrate
node) of the M1 MOSFET, defined in the X1 subcircuit.
Example 3
I2(Q1)
The last example specifies the current, through the second node (the base
node) of the Q1 bipolar transistor.

如果调用语句为
XNM1 ...
则端口电流输出为 isub(x1.MNM1.d)

Current: Subcircuit Pin
Syntax
ISUB(X****.****)
Example
.PROBE ISUB(X1.PIN1)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

×

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

GMT+8, 2024-4-25 15:38 , Processed in 0.029929 second(s), 7 queries , Gzip On, Redis On.

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