Home> >

004_dot_vec : .VEC statement use

004_dot_vec : .VEC statement use

004_dot_vec : .VEC statement use

Requires: SmartSpice & Smartview

Minimum Versions: SMARTSPICE 3.16.12.R

In the DotVecMemory (DotVecMemory.in) example, the .VEC (DotVecMemory.vec) file generates the input signals of a 512K SRAM test, consisting of a write phase followed by a read phase. During the write phase, wr is asserted while each word line is selected in turn and da0 supplies the data. During the read phase, rd is asserted and da0 is set to high impedance. The figure (DotVecMemory_waveform.png) shows v(da0) and v(wr), which highlight the data pattern and the transition between the two phases.

Input Files

DotVecMemory.in — view contents
* .VEC - SRAM 512K TEST - only input signals *

.VEC "DotVecMemory.vec"

.OPTION ACCT=2
.OPTION nomod 
.OPTION nowarn

r1 da0 0 1  
r2 da1 0 2
r3 wr  0 3
r4 rd  0 4 
r5 pch 0 5
r6 wl0 0 6
r7 wl1 0 6
r8 wl2 0 6
r9 wl3 0 6

****************************
 
.TRAN 1n 250n

.PROBE v(da0) v(wr)

.end
DotVecMemory.vec — view contents
; .VEC - SRAM 512K TEST - only input signals *

RADIX 111111111

vname da0 da1 wr rd pch wl[0:3]  
io iiiiiiiii
tunit ns
vih 3.3v
vil 0.0v
triz 110000000
tdelay 0.5 110101110

  0.0 000000000
  5.0 101011000
 25.0 100000000
 30.0 011010100
 50.0 010000000
 55.0 101010010
 75.0 100000000
 80.0 011010001
100.0 010000000
105.0 000000000
120.0 zz0111000
140.0 zz0000000
145.0 zz0110100
165.0 zz0000000
170.0 zz0110010
190.0 zz0000000
195.0 zz0110001
215.0 zz0000000