# US 2019/0171456 A1 · Electronic device and method for processing instruction using the same

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0171456 A1
- Document ID: US20190171456A1
- Status: Published application
- Kind: A1
- Application number: 16/205,297
- Filed: 2018-11-30
- Published: 2019-06-06
- Earliest claimed: 2017-12-05
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Hwee Soo KIM; Hyuk Min KWON; Won Jin KIM
- Web page: https://patentgrep.com/patent/US20190171456A1

## CPC

- G06F 9/30101: {Special purpose registers}
- G06F 9/30185: {according to one or more bits in the instruction, e.g. prefix, sub-opcode}
- G06F 9/3016: {Decoding the operand specifier, e.g. specifier format}
- G06F 9/3802: {Instruction prefetching}
- G06F 9/3822: {Parallel decoding, e.g. parallel decode units}
- G06F 9/3853: {of compound instructions}
- G06F 15/82: data or demand driven
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An electronic device including a memory; and a processor configured to generate an instruction code based on a same opcode when the same opcode is used in one or more slots defined in the memory upon application compiling.

## Claims

### Claim 1

An electronic device comprising:
a memory; and
a processor configured to determine whether two or more slots of an execution unit of an instruction configured according to an instruction set architecture (ISA) have a same first opcode upon application compiling, and
when the two or more slots have the same first opcode, the processor is further configured to generate an instruction code composed of the same first opcode and register index fields of one of the slots having the same first opcode, at least one register index field of at least one of the slots having the same first opcode other than the one of the slots, and state bits.

### Claim 2 (depends on 1)

The electronic device of claim 1, wherein the state bits comprise one or more fields indicating whether opcodes of one or more of the register index fields of the one or more slots are the same as the same first opcode, and a field indicating whether the instruction code is generated based on the same first opcode.

### Claim 3 (depends on 1)

The electronic device of claim 1, wherein the processor is configured to fetch an instruction code from the memory, and determine whether the fetched instruction code is generated based on a same second opcode on a basis of state bits of the fetched instruction code.

### Claim 4 (depends on 3)

The electronic device of claim 3, wherein when the fetched instruction code is generated based on the same second opcode, the processor is configured to check a value corresponding to at least one register index field among fields of the state bits of the fetched instruction code, spread the same second opcode into a slot in which the value corresponding to the at least one register index field is activated, and decode the fetched instruction code generated based on the same second opcode on a basis of the spread opcode.

### Claim 5 (depends on 4)

The electronic device of claim 4, wherein after spreading the opcode, the processor is configured to decode the fetched instruction code in the instruction set architecture defined in the memory.

### Claim 6 (depends on 1)

The electronic device of claim 1, wherein the processor is a very long instruction word (VLIW) processor comprised of a plurality of the slots.

### Claim 7

A method of processing an instruction of an electronic device comprising a memory and a processor, the method comprising:
determining by the processor whether two or more slots of an execution unit of an instruction configured according to an instruction set architecture (ISA) stored in the memory have a same first opcode upon application compiling; and
when the two or more slots have the same first opcode, generating by the processor an instruction code composed of the same first opcode and register index fields of one of the slots having the same first opcode, at least one register index field of at least one of the slots having the same first opcode other than the one slot, and state bits.

### Claim 8 (depends on 7)

The method of claim 7, wherein the state bits comprise one or more fields indicating whether opcodes of one or more of the register index fields of one or more the slots are the same as the same first opcode, and a field indicating whether the instruction code is generated based on the same first opcode.

### Claim 9 (depends on 7)

The method of claim 7, further comprising:
fetching by the processor an instruction code from the memory; and
determining by the processor whether the fetched instruction code is generated based on a same second opcode on a basis of state bits of the fetched instruction code.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
checking by the processor a value corresponding to at least one register index field among fields of the state bits of the fetched instruction code when the fetched instruction code is generated based on the same second opcode;
spreading by the processor the same second opcode into a slot in which the value corresponding to the at least one register index field is activated; and
decoding by the processor the fetched instruction code based on the same second opcode on a basis of the spread opcode.

### Claim 11 (depends on 10)

The method of claim 10, wherein the decoding of the fetched instruction code comprises decoding the fetched instruction code in the instruction set architecture defined in the memory after the spreading of the same second opcode.

### Claim 12

An electronic device comprising:
a memory configured to store an instruction set architecture (ISA); and
a processor configured to determine whether two or more slots of an execution unit of an instruction configured according to the instruction set architecture (ISA) have a same first opcode upon application compiling, wherein each of the slots comprise an opcode field and register index fields, and
when the two or more slots have the same first opcode, the processor is further configured to generate an instruction code including a single occurrence of the same first opcode, the register index fields of the two or more slots, and state bits.

### Claim 13 (depends on 12)

The electronic device of claim 12, wherein the execution unit of the instruction further comprises an additional slot comprising a second opcode and second register index fields, the second opcode different than the same first opcode,
wherein the processor is further configured to generate the instruction code as including the second opcode and the second register index fields.

### Claim 14 (depends on 12)

The electronic device of claim 12, wherein the state bits comprise one or more fields indicating whether opcodes of one or more of the register index fields of the one or more slots are the same as the same first opcode, and a field indicating whether the instruction code is generated based on the same first opcode.

### Claim 15 (depends on 12)

The electronic device of claim 12, wherein the processor is configured to fetch an instruction code from the memory, and determine whether the fetched instruction code is generated based on a same second opcode on a basis of state bits of the fetched instruction code.

### Claim 16 (depends on 15)

The electronic device of claim 15, wherein when the fetched instruction code is generated based on the same second opcode, the processor is configured to check a value corresponding to at least one register index field among fields of the state bits of the fetched instruction code, spread the same second opcode into a slot in which the value corresponding to the at least one register index field is activated, and decode the fetched instruction code generated based on the same second opcode on a basis of the spread opcode.

### Claim 17 (depends on 16)

The electronic device of claim 16, wherein after spreading the opcode, the processor is configured to decode the fetched instruction code in the instruction set architecture defined in the memory.

### Claim 18 (depends on 12)

The electronic device of claim 12, wherein the processor is a very long instruction word (VLIW) processor comprised of a plurality of the slots.
