recreates Instruction Memory Coregen