public void generate_signals(Instruction current_instruction){
		clear_signals();
		switch(current_instruction.get_format()){
		case 0:
			set_reg_write(true);
			break;
		case 1:
			set_reg_write(true);
			set_mem_read(true);
			set_mem_to_reg(true);
			break;
		case 2:
			set_mem_write(true);
			break;
		case 3:
			set_branch(true);
			break;
		case 4:
			set_jump(true);
			if (current_instruction.get_type() == InstructionType.jal){
				set_reg_write(true);
			}
			break;
		case 5:
			set_reg_write(true);
			set_jump(true);
			break;
		}
	}