Algebraic topological methods for the synthesis of switching systems. I | Synapse