* 8-bit filesource bus with per-bit staggered offsets: 8 stacked logic traces.
* amploffset spreads the bits to distinct DC levels (0.1..0.8 V); amplscale=0.05
* keeps each swing small so the 8 traces stack cleanly on one plot (a walking 1).
a1 %v([a7 a6 a5 a4 a3 a2 a1 a0]) bus8
.model bus8 filesource (file="pattern8.dat"
+ amploffset=[0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8]
+ amplscale=[0.05 0.05 0.05 0.05 0.05 0.05 0.05 0.05]
+ timeoffset=0 timescale=1 timerelative=false amplstep=TRUE)
ra7 a7 0 1meg
ra0 a0 0 1meg
.tran 5n 850n
.control
  run
  meas tran a0_hi FIND v(a0) AT=50n    $ step0: a0 hot -> 0.8+0.05 = 0.85
  meas tran a7_lo FIND v(a7) AT=50n    $ a7 low       -> 0.1+0    = 0.10
  meas tran a7_hi FIND v(a7) AT=750n   $ step7: a7 hot -> 0.1+0.05 = 0.15
  meas tran a0_lo FIND v(a0) AT=750n   $ a0 low       -> 0.8+0    = 0.80
.endc
.end
