delegate flattening to cosim rather than hwmodule