Lib and code generator for io connect matrix