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

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

日志

[Hspice] switch between two voltage sources connected to the same node

已有 1470 次阅读| 2013-8-23 15:41 |个人分类:Hspice

Question:
How can I switch between two voltage source connected to the same node for some
time and duration using HSPICE elements.

Answer:

There are two ways to do this.  One is to design a Verilog-A module that can be
used as a behavioral switch.  Another is to use the HSPICE voltage controlled
voltage source (E-element) to design a behavioral switch.

The netlist is as follows:
***************************
.option post
Vin1 in1 0 pwl ...        $ source 1
Vin2 in2 0 pwl ...        $ source 2
Ein in 0 vol='v(in1)*v(ctrl) + v(in2)*(1-v(ctrl))'    $ behavioral switch
vctrl ctrl 0 pwl 0 1 49n 1 50n 0         $ control voltage
.tran 1n 100n
.end
****************************

In the above example, v(ctrl) is set to 1 initially so that v(in)=v(in1).  At
50nS, the control voltage is set to 0 and v(in)=v(in2).

点赞

评论 (0 个评论)

facelist

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

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

    周排名
  • 0

    月排名
  • 0

    总排名
  • 0

    关注
  • 122

    粉丝
  • 42

    好友
  • 273

    获赞
  • 118

    评论
  • 22104

    访问数
关闭

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

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

GMT+8, 2024-4-29 01:05 , Processed in 0.013882 second(s), 7 queries , Gzip On, Redis On.

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