In the face of current modular robots that rely on manual coding to generate deformation instructions and are limited by binary instructions, this research proposes a Cognitive Modular Control (CMC) architecture inspired by ACT-R theory. Build simulation tool ReoForm to conduct experiments through simulation-based experimental design. The data results show that each module of the architecture demonstrates feasibility and universality in terms of time-to-completion, energy consumption, manipulability index and robustness indicators.