offset of clockdelay. Hence, set "clockdelay=" to the maximum setup time of
your registers and the data on each line will be clocked in at the right time.
Parameter "clockrisefall=" is optional to separately specify the clock rise/
-fall time.
+fall time if it is different from the data lines rise/fall.
'''
print 'WARNING:', s
+def output(s):
+ fpwl.write(s + '\n')
+
+
def mkvwf(d):
t = Decimal('0.0')
tb = bittime - risefall
t += trf + tb
for bit in d[1:]:
+ # only output a point when there is a change
if bit != lastbit:
ti = t + trf
tf = ti + tb
output('+ %s %s' % (str(t), str(lastbitv)))
output('+ %s %s' % (str(ti), str(bitv)))
#output('+ %s %s' % (str(tf), str(bitv)))
-
+
t += trf + tb
lastbit = bit
+
+
if len(sys.argv) < 2:
usage()
sys.exit(1)
data[inputs[i]].append(bit)
i += 1
-#outputs
-output = lambda s: fpwl.write(s + '\n')
+
#get the numbers
risefall = unit(params['risefall'])
#output each input source
for name in inputs:
d = data[name]
-
+
s = 'V%s %s 0 PWL' % (name, name)
info(s)
output(s)