TopModuleCodeGenerator logics appended