// R0 (vd0 0) resistor r=1k R1 (vd1 0) resistor r=1k R2 (vd2 0) resistor r=1k R3 (vd3 0) resistor r=1k R4 (vd4 0) resistor r=1k R5 (vd5 0) resistor r=1k R6 (vd6 0) resistor r=1k R7 (vd7 0) resistor r=1k Vclk (vclk 0) vsource type=pulse val0=0 val1=5 rise=1n fall=1n width=50n period= 100n Vsin (vin 0) vsource type=sine freq=1/30u ampl=0.5 dc=0.5 I1 (vd7 vd6 vd5 vd4 vd3 vd2 vd1 vd0 vin vclk) adc_8bit_ideal tran tran stop=30u ahdl_include "adc_8bit_ideal.va"