instruction_id_t SIM_instruction_begin(conf_object_t *cpu);
To assign the id to a particular instruction in memory, you should speculate on the program counter input register with SIM_instruction_write_input_reg. Instructions should also be linked together to form execution paths, see SIM_instruction_instert for details.
Instructions are deallocated by SIM_instruction_end.