generic cdi's come in four flavors. racing type no rev limiter, stock with rev limiter, ac with a dedicated stator, dc.
not a big deal to wire in a racing dc cdi, you need a battery though.
please don't try to make your own from a flyback transformer. the engineered part costs about 10$