Is it an OEM CDI? Or aftermarket? Do you not have both 8 pin connectors (male and female)? Wire color isn’t always helpful because they can vary from OEM to aftermarket. And Chinese parts manufacturers often dance to the beat of their own drum when it comes to what color wires go where.
An OEM CDI has the connector attached to it. Did someone cut off the wires from the connector that plugs into it? I’m trying to visualize the mess that it sounds like you have.
If it’s a new aftermarket CDI, ask the seller about the wires. I’m guessing it’s wires and not a connector!?? That will at least solve half the puzzle.
Can you take some pictures of the CDI, connectors, and/or open wires? Some of the wires should be fairly easy to see where they are coming/going. Most likely there is a green wire (pick up) from the stator that connects to the CDI. I believe a red and black wire go to the coil. You’re probably going to have to trace the wires back to their components.
Dang OEM CDI are expensive!
https://www.partzilla.com/catalog/suzuki/motorcycle/2005/boulevard-s40-ls650/...