You need to have an oscillator to make the HV, and a capacitor to store it, most cdi's use a Thyristor to fire the capacitor across the coil, it's the best method as it turns itself off when the capacitor is discharged ready for the next trigger pulse.