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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 18796|回复: 31

用matlab hspicetoolbox读取hspice仿真数据时,出现如下错误

[复制链接]
发表于 2008-7-23 12:04:42 | 显示全部楼层 |阅读模式

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

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

x
我在用matlab hspicetoolbox读取hspice仿真数据时,出现如下错误,是什么原因?
matlab 版本是7.0, hspice2008,2005都出现如下结果

x=loadsig('gm_id_v_overvol.st0');
*********************************************************
               Hspice Toolbox for Matlab
written by Michael Perrott (http://www-mtl.mit.edu/~perrott)
   while at Silicon Laboratories (http://www.silabs.com)
     Copyright (C) 1999 by Silicon Laboratories, Inc.
     This software is distributed under the terms of
       the GNU Public License (see the COPYING file
  for more details), and comes with no warranty or support
*********************************************************
error in hs_allocate_sf: unexpected values in block1 header
??? One or more output arguments not assigned during call to 'D:\MATLAB7\toolbox\hspicetoolbox\loadsig.dll'.
 楼主| 发表于 2008-7-23 12:08:26 | 显示全部楼层
希望高手给指点一下,是不是版本太高了,还是其他问题?
 楼主| 发表于 2008-7-23 12:13:42 | 显示全部楼层
download these files:
hspice_toolbox.tar.gz
hspice_toolbox.pdf
read PDF and easily install toolbox:
just use this command:
addpath ('path of hspicetoolbox')
a very important note is that you must add this command to your .SP file:
.OPTIONS POST
so output files becomes readable with this toolbox.
usage: in MATLAB cd to the output folder of HSPICE
e.g.:
cd 'c:\sim1\'
x=loadsig('sim1.tr0')
lssig(x)
plotsig(x,'I_VDD')

[ 本帖最后由 basildy 于 2008-7-23 12:22 编辑 ]
 楼主| 发表于 2008-7-23 12:20:58 | 显示全部楼层
说明:
$ W; i. A* x) u' I# S. q( V; j1 波形文件是hspice正式版本输出的波形。一些windows下的教学版hspice输出的ascii文本,该hspicetoolbox无法处理: `  L' B7 v7 O  ~
2 其它spice工具如wspice、pspice能够输出,raw文件,那么直接到matlab官方网站下载ReadRawSpice.m直接读取该文件。
: W8 c  v# D/ i8 b/ L! n0 l! }! D+ q) R4 X* k, P! o
说明:hspicetoolbox常用命令
0 i4 A0 D0 K0 \6 o# d  u' r: j1 x=loadsig('xxx.tr0');      %装载波形文件xxx.tr0到结构x中
0 X+ _' f( e2 C0 G  J0 @" \2 lssig(x)           %显示波形文件中的所有数据的名称( _: S/ o3 @/ s) @: T* L
3 v1=evalsig(x,'v1');  %将数据x中名为v1的变量赋值给v1


会是红色部分所示的错误吗?
发表于 2008-7-23 19:28:10 | 显示全部楼层
如果是这个问题的话查一下HSPICE仿真的.sp文件,要设置.option post(=1)就可以了,仿真结果文件会存成二进制格式,matlab可以识别
发表于 2008-12-16 09:42:50 | 显示全部楼层
楼主请问这个toolbox是matlab自带的吗?还是要到哪里去下载???
发表于 2009-4-10 19:30:31 | 显示全部楼层
发表于 2010-5-9 13:14:51 | 显示全部楼层
非常感激这里的高手们
发表于 2010-5-12 22:00:17 | 显示全部楼层
thanks!!!
发表于 2010-5-12 22:42:34 | 显示全部楼层
thanks!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-5-1 09:16 , Processed in 0.036065 second(s), 8 queries , Gzip On, Redis On.

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