The invention provides a winding (40) for a rotating electrical machine (1) comprising a flexible PCB (45) having a plurality of conductors (60) on a first surface and a plurality of conductors (60) on a second surface, said conductors having a shape optimizing the performance of the machine, and a method for designing such a winding.