|  | 
 
 楼主|
发表于 2019-2-17 16:12:13
|
显示全部楼层 
| 
回复 1# 亭ting 
 
 这是我的vec文件内容,是一个一个两位加法器的,但是一直报错,不知道怎么回事
 
 
    
        复制代码
 
radix 2 2 1 2 1 
* defines name for each vector. For multi-bit vectors,
* innermost [] provide the bit index range, MSB:LSB
vname va[[1:0]] vb[1:0] vci vsum[1:0] vcout
* actual signal names: va[1],va[0],vb[1],vb[0],vci,vsum[1],vsum[0],vcout
* defines time unit,default ns
tunit ns
* defines vector as input, output, or bi-directional
io i i i o o
*  all signals have a delay of 1 ns
* Note: do not put the unit (such as ns) here again.
* HSPICE multiplies this value by the specified ‘tunit’.
tdelay 5
* va0,va1 ,vb0,vb1,signals have 5ns delays
*tdelay 5 331 000
* specify input rise/fall times (if you want different rise/fall times, use the trise/tfall statement.)
* Note: do not put the unit (such as ns) here again.
* HSPICE multiplies this value by the specified ‘tunit’.
slope 20
* specify the logic ‘high’ voltage for input signals,to specify logic low, use ‘vil’
vih 0.3 331 
*vih 0.3 331 000
*vil 0  331 000
* va & vb switch from lo to hi at 0.15 volts
*vth 0.15 0 0 0 31
** Defining Tabular Data
.period 200n
0000 0 00 0
0001 0 01 0
0010 0 10 0
0011 0 11 0
0000 1 01 0
0001 1 10 0
0010 1 11 0
0011 1 00 1
 | 
 |