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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 7253|回复: 5

[求助] hspice仿真digital vector file

[复制链接]
发表于 2019-2-17 16:04:00 | 显示全部楼层 |阅读模式

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

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

x
当用hspice去仿真一个四位全加器时,由于出现了一个变量的多位输入,应该怎么添加这个激励?参考了hspice手册中的digital vector file,仿真出错,无法正确运行,请问有人知道应该怎么做这个仿真吗?
 楼主| 发表于 2019-2-17 16:12:13 | 显示全部楼层
回复 1# 亭ting


  这是我的vec文件内容,是一个一个两位加法器的,但是一直报错,不知道怎么回事




  1. radix 2 2 1 2 1

  2. * defines name for each vector. For multi-bit vectors,
  3. * innermost [] provide the bit index range, MSB:LSB
  4. vname va[[1:0]] vb[1:0] vci vsum[1:0] vcout
  5. * actual signal names: va[1],va[0],vb[1],vb[0],vci,vsum[1],vsum[0],vcout

  6. * defines time unit,default ns
  7. tunit ns

  8. * defines vector as input, output, or bi-directional
  9. io i i i o o

  10. *  all signals have a delay of 1 ns
  11. * Note: do not put the unit (such as ns) here again.
  12. * HSPICE multiplies this value by the specified ‘tunit’.
  13. tdelay 5

  14. * va0,va1 ,vb0,vb1,signals have 5ns delays
  15. *tdelay 5 331 000

  16. * specify input rise/fall times (if you want different rise/fall times, use the trise/tfall statement.)
  17. * Note: do not put the unit (such as ns) here again.
  18. * HSPICE multiplies this value by the specified ‘tunit’.
  19. slope 20

  20. * specify the logic ‘high’ voltage for input signals,to specify logic low, use ‘vil’
  21. vih 0.3 331

  22. *vih 0.3 331 000
  23. *vil 0  331 000

  24. * va & vb switch from lo to hi at 0.15 volts
  25. *vth 0.15 0 0 0 31

  26. ** Defining Tabular Data

  27. .period 200n
  28. 0000 0 00 0
  29. 0001 0 01 0
  30. 0010 0 10 0
  31. 0011 0 11 0
  32. 0000 1 01 0
  33. 0001 1 10 0
  34. 0010 1 11 0
  35. 0011 1 00 1





复制代码
发表于 2020-6-24 13:15:20 | 显示全部楼层
最后的真值表周期的情况下是不是不用把第一列的时间写出来,我用的是virtuoso里的vector file
发表于 2020-8-15 18:23:06 | 显示全部楼层
还请告知hspice哪个文档里有提及这个vector file?多谢。
发表于 2020-8-19 17:48:51 | 显示全部楼层


randolpha 发表于 2020-8-15 18:23
还请告知hspice哪个文档里有提及这个vector file?多谢。


hspice_Manual_Commands_and_Control_Options  


.vec command


+  


hspice_Basic_simulation_and_Analysis.pdf
Chapter 10: Sources and Stimuli

Specifying a Digital Vector File and Mixed Mode Stimuli

RADIX 1111 1111
VNAME A B C D E F G H
IO IIII IIII
TUNIT ns
PERIOD 10
; start of vector data section
1000 1000
1100 1100
1010 1001


发表于 2020-8-19 17:51:33 | 显示全部楼层


Io  tunit 对调看看
还有 都有 tunit ns
  period  为何是 200n, 200ns* ns  ??

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-4-25 22:54 , Processed in 0.021459 second(s), 6 queries , Gzip On, Redis On.

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