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

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

日志

Matlab中调用Hspice

已有 5758 次阅读| 2011-9-11 02:15 |个人分类:Hspice

! D:\EDA\synopsys\Hspice_D-2010.03-SP1\BIN\hspice  amplifier.sp > amplifier

D:\EDA\synopsys\Hspice_D-2010.03-SP1\BIN\hspice  -i  amplifier.sp -o amplifier

D:\EDA\synopsys\Hspice_D-2010.03-SP1\BIN\hspice  -i  amplifier.sp

注意:
1. 如果网表文件amplifier.sp 不在Matlab的当前工作目录下,则需要给出绝对路径。

2. In matlab you can run a executable file (.exe, .com,...) using command dos.
For executing hspice, I use this line:

[s,w]=dos(['c:\synopsys\Hspice_A-2008.03\BIN\hspicerf.exe r:\netlist.sp r:\output_file']);

[s,w] are some flags which are not important,
netlist.sp - input netlist
output_file - simulation informations

3. Two ways  to disable pop up window of Hspice
1). make a shortcut of Hspice.exe and then right click>properties>shortcut tab>run as minimized, then from matlab reference to this shortcut from now on
2). (the way I use myself) before the name of the program (here it is Hspice.exe) type /min
I'm using eval command in Matlab to run windows commands instead of dos command, first I make a string like "& /min hspice -i input.sp& exit&" and then I put this string as input to eval(str)

4. 在环境变量PATH中添加Hspice的路径则在命令行中不需给出绝对路径。比如将D:\EDA\synopsys\Hspice_H-2013.03\BIN;添加在PATH后,则可直接system(['hspice -i amplifier.sp -o sim/amplifier']); 来调用hspice对amplifier.sp进行仿真。


点赞

评论 (0 个评论)

facelist

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

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

    周排名
  • 0

    月排名
  • 0

    总排名
  • 0

    关注
  • 122

    粉丝
  • 42

    好友
  • 273

    获赞
  • 118

    评论
  • 22104

    访问数
关闭

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

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

GMT+8, 2024-4-28 15:54 , Processed in 0.019831 second(s), 7 queries , Gzip On, Redis On.

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