A dual-mode instruction set architecture for reconfigurable computing and its application method

By introducing a dual-mode instruction set architecture into the processor, the separation of functional instructions and operation instructions is solved, and the calculation architecture performance and power consumption limitation in the existing technology are improved, thus achieving efficient matrix and vector operation performance improvement, simplifying Hardware design.

CN111930426BActive Publication Date: 2024-11-05XIAN UNIV OF POSTS & TELECOMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010816528.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-14
Publication Date
2024-11-05
Estimated Expiration
2040-08-14

AI Technical Summary

Technical Problem

When existing computing architectures deal with modern mobile communication algorithms, especially matrix operations and frequent multiplication and accumulation operations, there are limitations on performance and power consumption, and the reconfigurable computing architecture is limited in development due to complex compiler design and programming model obstacles.

Method used

Adopt a reconfigurable and computable dual-mode instruction set architecture, through the separation of functional instructions and operation instructions, the processor is reconstructed, the control signal flips down, the data flow parallelism is deeply explored, and the branch prediction errors are reduced. It adopts simple static branch prediction and five-level pipeline design.

Benefits of technology

It improves the performance and circuit speed of the processor, reduces power consumption, simplifies hardware circuit design, improves the performance of matrix and vector computing in communication algorithms, adapts to multiple execution modes, and supports SIMD and MIMD operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111930426B_ABST
    Figure CN111930426B_ABST
Patent Text Reader

Abstract

The present invention provides a dual-mode instruction set architecture for reconfigurable computing and its application method. After a functional instruction is decoded, the control signal remains unchanged. Multiple operation instructions take operands and perform corresponding operations according to the control signal output by the controller, which reduces the flipping of the control signal and the power consumption of the processor. At the same time, the separation of data flow and control flow is conducive to the deep exploration of the parallelism between data flows and reduces the cost of discarding instructions due to branch prediction errors.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0002] The present invention relates to the field of communication technology, and in particular to a dual-mode instruction set architecture for reconfigurable computing and an application method thereof. [Background technology]

[0004] Modern mobile communication algorithms involve a large number of matrix operations and frequent multiplication and accumulation operations, such as the FFT algorithm in communication baseband signal processing, the large-scale MIMO detection algorithm, the generation of TBCC code and Turbo code in mobile communication coding schemes, etc. These data-intensive algorithms make energy efficiency and flexibility the main criteria for computing architecture. In the existing computing architecture, the instruction stream computing architecture has high flexibility and a wide range of applications, but performance and power consumption are the main problems of this architecture. Although the instruction stream computing architecture has introduced technologies such as synchronous multithreading, transactional memory, and speculative multithreading, they only reduce the impact of memory latency and data synchronization on parallelism, and their performance is still limited by the execution mode of control flow. The data stream computing architecture is designed for specific applications and is generally designed as a coprocessor of a general-purpose processor. In the design, each accelerator is customized for a single application in the ASIC. The architecture containing accelerators can bring 10 to 100 times energy efficiency improvement, but its flexibility is poor, which limits the scope of use of computing hardware, and the engineering cost of updating application algorithms is very high. Reconfigurable computing architectures can improve computing performance in specific areas while maintaining flexible functions, achieving a better compromise between area, performance, and power consumption. However, from a hardware perspective, reconfigurable computing architectures are completely different from traditional sequential processors. They must reasonably schedule and coordinate the hardware resources of a two-dimensional array, which greatly increases the design complexity of the compiler. At the same time, since the fundamental contradiction between spatial architecture and imperative programming has not yet been resolved, reconfigurable computing architectures with high-level imperative programming languages ​​require a lot of manual work to optimize, making programming models and automatic compilation an urgent issue that hinders the development of reconfigurable computing architectures.

[0005] Therefore, it is necessary to study a dual-mode instruction set architecture for reconfigurable computing and its application method to address the shortcomings of the prior art and to solve or alleviate one or more of the above problems. [Summary of the invention]

[0007] In view of this, the present invention provides a dual-mode instruction set architecture for reconfigurable computing and its application method. After a functional instruction is decoded, the control signal remains unchanged. Multiple operation instructions take operands and perform corresponding operations according to the control signal output by the controller, which reduces the flipping of the control signal and reduces the power consumption of the processor. At the same time, the separation of data flow and control flow is conducive to the deep exploration of the parallelism between data flows and reduces the cost of discarding instructions due to branch prediction errors.

[0008] In one aspect, the present invention provides a dual-mode instruction set architecture for reconfigurable computing, wherein the dual-mode instruction set architecture is constructed based on a processor, and the dual-mode instruction set architecture includes:

[0009] Multiple functional instructions that implement control flow, which change the function of the processor by calling functional instructions to achieve processor reconstruction;

[0010] A plurality of operation instructions for realizing data flow are inserted between any two functional instructions to realize data flow calculation, and the calculation of instruction flow is realized in a manner of one functional instruction followed by one operation instruction.

[0011] According to the above aspects and any possible implementation manner, an implementation manner is further provided, wherein the format of the operation instruction includes:

[0012] Three-operand instructions are used to perform arithmetic and logical operations;

[0013] Dual operand instructions are used to implement shift operations, logical arithmetic operations, and branch operations;

[0014] Zero operand instruction, used to implement unconditional jump.

[0015] According to the aspects described above and any possible implementation method, an implementation method is further provided, wherein the displacement operation includes but is not limited to logical left shift, logical right shift and arithmetic right shift; the logical arithmetic operation includes but is not limited to immediate addition, immediate AND and less than setting; the branch operation includes but is not limited to branch jump.

[0016] According to the aspects described above and any possible implementation, an implementation is further provided, wherein the logical operations include but are not limited to AND, OR, NOT and XOR; and the arithmetic operations include but are not limited to addition, subtraction, multiplication and division.

[0017] According to the aspects described above and any possible implementation method, an implementation method is further provided, wherein the 15th bit of the functional instruction is designed as a flag bit, bits 14-10 are designed as a 5-bit fixed-length opcode corresponding to the op field, bits 9-5 are designed as configuration bits corresponding to the rc field, representing the configuration scale of the array, and bits 4-0 are designed as a function code corresponding to the fuc field.

[0018] According to the aspects described above and any possible implementation method, an implementation method is further provided, in which 16 16-bit general registers are allocated in the dual-mode instruction set architecture, and the displacement field and the register index field are both designed to be 4 bits, wherein the first source register index is located at 14-11 bits of the operation instruction, the second source register index is located at 10-7 bits of the operation instruction, and the destination register index is located at 6-3 bits of the operation instruction.

[0019] According to the aspects described above and any possible implementation methods, a method for applying a dual-mode instruction set architecture is further provided, and the method is specifically: the instructions in the processing element are divided into functional instructions for implementing the control flow and operation instructions for implementing the data flow, the function of the processor is changed by calling the functional instructions to realize the reconstruction of the processor, the multiple operation instructions between two functional instructions realize the calculation of the data flow, and the calculation of the instruction flow is realized by using one functional instruction after another operation instruction.

[0020] According to the above aspects and any possible implementation manner, an implementation manner is further provided, wherein the application method specifically comprises the following steps:

[0021] S1: Analyze the massive MIMO detection algorithm in modern mobile communications and extract basic operators;

[0022] S2: Design instruction format and instruction set encoding based on the characteristics of the extracted basic operators and the large number of matrix multiplication and addition operations in the communication algorithm, define operand access mode, operand type, address size, addressing mode and register allocation

[0023] S3: A five-stage pipeline is used to implement the processing meta-microarchitecture and perform simulation verification, and finally SIMD and MIMD are implemented through the dual-mode instruction set architecture.

[0024] According to the aspects described above and any possible implementation method, an implementation method is further provided, wherein the massive MIMO detection algorithm includes but is not limited to zero-breaking detection and MMSE detection.

[0025] Compared with the prior art, the present invention can achieve the following technical effects:

[0026] The architecture of the present invention adopts a simple static branch prediction. When the prediction is wrong, only one additional function instruction is executed without generating any data flow. Therefore, no pipeline stall is required, which improves the performance of the processor. The architecture does not use branch delay slots, which greatly simplifies the design of the hardware circuit. The architecture of the present invention is two function instructions followed by multiple operation instructions. Therefore, no load-use hazard will be generated, which will cause pipeline stalls. This improves the speed of the circuit and improves the performance of the processor.

[0027] For frequent multiplication and accumulation operations such as matrix operations and vector operations in communication algorithms, the implementation method of one functional instruction followed by multiple operation instructions reduces a lot of instruction preparation time such as instruction fetching and decoding compared to the traditional instruction system design, and improves the performance of the processor. After a functional instruction is decoded, the control signal will remain unchanged. Multiple operation instructions fetch operands and perform corresponding operations according to the control signal output by the controller, which reduces the flipping of control signals and reduces the power consumption of the processor. At the same time, the separation of data flow and control flow is conducive to the deep exploration of the parallelism between data flows and reduces the cost of discarding instructions due to branch prediction errors.

[0028] Of course, any product implementing the present invention does not necessarily need to achieve all of the above-mentioned technical effects at the same time.

Brief Description of the Drawings

[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0031] Figure 1 It is an instruction format diagram in a dual-mode instruction set architecture provided by an embodiment of the present invention;

[0032] Figure 2 is an addressing mode diagram in a dual-mode instruction set architecture provided by an embodiment of the present invention;

[0033] Figure 3 It is a dual-mode instruction set PE structure diagram in a dual-mode instruction set architecture provided by an embodiment of the present invention;

[0034] Figure 4 This is a simulation waveform diagram provided by an embodiment of the present invention. [Specific implementation method]

[0036] In order to better understand the technical solution of the present invention, the embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0037] It should be clear that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0038] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0039] The present invention provides a dual-mode instruction set architecture for reconfigurable computing, wherein the dual-mode instruction set architecture is constructed based on a processor and comprises:

[0040] Multiple functional instructions that implement control flow, which change the function of the processor by calling functional instructions to achieve processor reconstruction;

[0041] A plurality of operation instructions for realizing data flow, wherein the plurality of operation instructions are inserted between any two functional instructions to realize data flow calculation, and the calculation of instruction flow is realized in a manner of one functional instruction followed by one operation instruction, wherein the format of the operation instruction includes:

[0042] Three-operand instructions are used to perform arithmetic and logical operations;

[0043] Dual operand instructions are used to implement shift operations, logical arithmetic operations, and branch operations;

[0044] A zero operand instruction is used to implement an unconditional jump, the displacement operation includes but is not limited to logical left shift, logical right shift and arithmetic right shift; the logical arithmetic operation is but is not limited to immediate addition, immediate AND and less than setting, the branch operation is but not limited to branch jump, the logical operation is but not limited to AND, OR, NOT and XOR; the arithmetic operation is but not limited to addition, subtraction, multiplication and division, the 15th bit of the function instruction is designed as a flag bit, 14-10 bits are designed as a 5-bit fixed-length operation code corresponding to the op field, 9-5 bits are designed as configuration bits corresponding to the rc field, representing the configuration scale of the array, 4-0 bits are designed as a function code corresponding to the fuc field, 16 16-bit general registers are allocated in the dual-mode instruction set architecture, the displacement field and the register index field are both designed as 4 bits, wherein the first source register index is located at bits 14-11 of the operation instruction, the second source register index is located at bits 10-7 of the operation instruction, and the destination register index is located at bits 6-3 of the operation instruction.

[0045] A method for applying a dual-mode instruction set architecture, the method specifically comprising: dividing instructions in a processing element into functional instructions for implementing a control flow and operational instructions for implementing a data flow, changing the function of the processor by calling the functional instructions to implement processor reconstruction, implementing data flow calculation with multiple operational instructions between two functional instructions, and implementing instruction flow calculation in a manner of one functional instruction followed by one operational instruction.

[0046] The application method specifically comprises the following steps:

[0047] S1: Analyze the massive MIMO detection algorithm in modern mobile communications and extract basic operators;

[0048] S2: Design instruction format and instruction set encoding based on the characteristics of the extracted basic operators and the large number of matrix multiplication and addition operations in the communication algorithm, define operand access mode, operand type, address size, addressing mode and register allocation

[0049] S3: A five-stage pipeline is used to implement the processing meta-microarchitecture and perform simulation verification, and finally SIMD and MIMD are implemented through the dual-mode instruction set architecture.

[0050] The massive MIMO detection algorithm includes but is not limited to zero-breaking detection and MMSE detection.

[0051] The architecture of the present invention adopts a simple static branch prediction, and when the prediction is wrong, only one additional functional instruction is executed without generating any data flow, so there is no need for pipeline pause, which improves the performance of the processor. The architecture does not use branch delay slots, which greatly simplifies the design of the hardware circuit. The architecture of the present invention is that two functional instructions are connected to multiple operation instructions, so there is no load-use hazard that causes pipeline pause, which improves the speed of the circuit and improves the performance of the processor.

[0052] The dual-mode instruction-level architecture unifies the architectures based on data flow computing and instruction flow computing into an architecture based on instruction flow computing, while achieving processor reconstruction while still being able to use imperative programming models and imperative languages.

[0053] The instruction set includes basic arithmetic and logical operations (such as addition, subtraction, multiplication, comparison, displacement, AND, OR, NOT, etc.), and reserves some encoding in the opcode field, which can further expand the instructions for special communication algorithms. In order to speed up the instruction fetch and decoding process, the instruction bit width is designed to be 16 bits. The instruction format is designed into two types: functional instructions to implement control flow and operational instructions to implement data flow. In order to distinguish operational instructions from functional instructions, a flag bit is added to the highest bit of the instruction. Among them, 1 represents functional instructions and 0 represents operational instructions. The design of functional instructions and operational instructions based on the simple and regular instruction format design principle is as follows

[0054] 1. Function instructions:

[0055] The 15th bit of the function instruction is designed as a flag bit, bits 14-10 are designed as a 5-bit fixed-length operation code, namely the op field, bits 9-5 are designed as configuration bits, namely the rc field, which represents the configuration scale of the array, and bits 4-0 are designed as a function code, namely the fuc field.

[0056] 2. Operation instructions:

[0057] Operation instructions are divided into three-operand instructions, two-operand instructions and zero-operand instructions. Three-operand instructions are used to implement arithmetic operations such as addition, subtraction, and multiplication, as well as logical operations such as AND, OR, NOT, and XOR; two-operand instructions are used to implement displacement operations such as logical left shift, logical right shift, and arithmetic right shift, as well as logical arithmetic operations and branch operations such as immediate addition, immediate AND, less than set, and branch jump; zero-operand instructions are used to implement unconditional jumps. There are 16 16-bit general registers allocated in the dual-mode instruction set architecture, so the displacement field (shamt field) and the register index field are both designed to be 4 bits, of which the first source register index (rs1) is located at 14-11 bits of the operation instruction, the second source register index (rs2) is located at 10-7 bits of the operation instruction, and the destination register index is located at 6-3 bits of the operation instruction, which greatly simplifies the hardware design of the instruction encoder, and can easily decode the general register index and read the general register group.

[0058] The dual-mode instruction set architecture has simple memory access instructions, namely load / store instructions. Data is stored in the memory by bytes, and the processor accesses instructions or data in the memory by bytes in big-endian mode. The architecture supports register addressing, immediate addressing, register relative addressing, and PC relative addressing. Among them, register relative addressing concatenates the 10-7-bit imm1 immediate field and the 2-0-bit imm2 immediate field in the dual-operand operation instruction, performs sign extension, and adds them to the specified register to obtain the effective address. PC relative addressing concatenates the two immediate fields, shifts them left by one bit for sign extension, and then adds them to the program counter PC to obtain the effective address, such as Figure 2 shown.

[0059] The dual-mode instruction set architecture should adapt to multiple execution modes. In SIMD mode, PE executes SIMD instructions from the row controller and cluster controller, and the data comes from local storage and adjacent shared storage. Mask instructions read and write mask registers to control whether the current PE executes SIMD instructions. In MIMD mode, PE executes instructions stored in local instructions, and the data comes from local storage and adjacent shared storage. PE reads instructions and data directly from the storage area, and PE is designed with two access modes: directly addressed adjacent shared memory and on-chip data memory. A five-stage pipeline is used to model and simulate a single processing element of the dual-mode instruction set architecture. In the instruction fetch stage, instructions are fetched from the local instruction memory. In the decoding stage, control signals are generated or kept unchanged according to the highest bit of the instruction and the source operand is fetched. In the execution stage, operand operations are performed under the configured control signals. In the memory access stage, if it is a load / store instruction, the storage or fetch operation is performed according to the address calculated in the execution stage. If it is an arithmetic or logical operation instruction that does not require memory access, only the operation result is transferred at this level, and the operation result is written back to the register in the write-back stage. The specific PE structure is as follows: Figure 3 shown.

[0060] Verilog HDL hardware description language is used to build a SOPC including pipeline hardware circuit and instruction memory ROM. The following consecutive identical logic operation instructions are functionally simulated and verified using the Modelsim tool. The simulation waveform is shown in the figure below. Figure 4 shown.

[0061] lui $1 10111011

[0062] lui $2 10110111

[0063] lui $3 10100011

[0064] and $4 $1 $2

[0065] and $2 $3 $1

[0066] and $5 $1 $4

[0067] xori $3 $1 11100010

[0068] xori $2 $4 11100001

[0069] or $4 $2 $3

[0070] or $2 $4 $5

[0071] Figure 4It can be seen that the first three immediate high-order load instructions keep the control signals unchanged in the first three clock cycles and write the calculation results into the $1, $2, and $3 registers respectively. In the fourth clock cycle, the processor is configured to change its control signals through functional instructions, and the values ​​of the general registers do not change. In the fifth, sixth, and seventh clock cycles, the results of the AND operations are written into the $4, $2, and $5 registers respectively.

[0072] The instruction encoding in the present invention is as follows:

[0073] AND

[0074] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00000 00000 10100

[0075] Flags(15) rs1(14-11) rs2(10-7) rd(6-3) reserved(2-0) 0

[0076] OR

[0077] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00000 00000 10101

[0078] Flags(15) rs1(14-11) rs2(10-7) rd(6-3) reserved(2-0) 0

[0079] XOR

[0080] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00000 00000 10110

[0081] Flags(15) rs1(14-11) rs2(10-7) rd(6-3) reserved(2-0) 0

[0082] NOR

[0083] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00000 00000 10111

[0084] Flags(15) rs1(14-11) rs2(10-7) rd(6-3) reserved(2-0) 0

[0085] ANDI

[0086] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 01100 00000 00000

[0087] Flags(15) rs1(14-11) imm1(10-7) rd(6-3) imm2(2-0) 0

[0088] ORI

[0089] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 01101 00000 00000

[0090] Flags(15) rs1(14-11) imm1(10-7) rd(6-3) imm2(2-0) 0

[0091] XORI

[0092] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 01110 00000 00000

[0093] Flags(15) rs1(14-11) imm1(10-7) rd(6-3) imm2(2-0) 0

[0094] LUI

[0095] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 01111 00000 00000

[0096] Flags(15) rs1(14-11) imm1(10-7) rd(6-3) imm2(2-0) 0

[0097] SLL

[0098] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00000 00000 00000

[0099] Flags(15) rs1(14-11) shamt(10-7) rd(6-3) reserved(2-0) 0

[0100] SRL

[0101] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00000 00000 00010

[0102] Flags(15) rs1(14-11) shamt(10-7) rd(6-3) reserved(2-0) 0

[0103] MRS

[0104] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00000 00000 00011

[0105] Flags(15) rs1(14-11) shamt(10-7) rd(6-3) reserved(2-0) 0

[0106] NOP

[0107] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00000 00000 00000

[0108] Flags(15) rs1(14-11) shamt(10-7) rd(6-3) reserved(2-0) 0 0000 0000 0000 000

[0109] MFHI

[0110] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00000 00000 01000

[0111] Flags(15) rs1(14-11) rs2(10-7) rd(6-3) reserved(2-0) 0

[0112] MFLO

[0113] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00000 00000 01010

[0114] Flags(15) rs1(14-11) rs2(10-7) rd(6-3) reserved(2-0) 0

[0115] MTHI

[0116] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00000 00000 01001

[0117] Flags(15) rs1(14-11) rs2(10-7) rd(6-3) reserved(2-0) 0

[0118] MTLO

[0119] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00000 00000 01011

[0120] Flags(15) rs1(14-11) rs2(10-7) rd(6-3) reserved(2-0) 0

[0121] ADD

[0122] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00000 00000 10000

[0123] Flags(15) rs1(14-11) rs2(10-7) rd(6-3) reserved(2-0) 0

[0124] ADDU

[0125] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00000 00000 10001

[0126] Flags(15) rs1(14-11) rs2(10-7) rd(6-3) reserved(2-0) 0

[0127] SUB

[0128] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00000 00000 10010

[0129] Flags(15) rs1(14-11) rs2(10-7) rd(6-3) reserved(2-0) 0

[0130] SUBU

[0131] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00000 00000 10011

[0132] Flags(15) rs1(14-11) rs2(10-7) rd(6-3) reserved(2-0) 0

[0133] SLT

[0134] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00000 00000 11010

[0135] Flags(15) rs1(14-11) rs2(10-7) rd(6-3) reserved(2-0) 0

[0136] SLTU

[0137] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00000 00000 11011

[0138] Flags(15) rs1(14-11) rs2(10-7) rd(6-3) reserved(2-0) 0

[0139] GOODBYE

[0140] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 01000 00000 00000

[0141] Flags(15) rs1(14-11) imm1(10-7) rd(6-3) imm2(2-0) 0

[0142] GOODBYE

[0143] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 01001 00000 00000

[0144] Flags(15) rs1(14-11) imm1(10-7) rd(6-3) imm2(2-0) 0

[0145] SLTI

[0146] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 01010 00000 00000

[0147] Flags(15) rs1(14-11) imm1(10-7) rd(6-3) imm2(2-0) 0

[0148] SLTIU

[0149] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 01011 00000 00000

[0150] Flags(15) rs1(14-11) imm1(10-7) rd(6-3) imm2(2-0) 0

[0151] CLZ

[0152] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 11100 00000 10000

[0153] Flags(15) rs1(14-11) rs2(10-7) rd(6-3) reserved(2-0) 0

[0154] CLO

[0155] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 11100 00000 10001

[0156] Flags(15) rs1(14-11) rs2(10-7) rd(6-3) reserved(2-0) 0

[0157] MUL

[0158] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 11100 00000 00010

[0159] Flags(15) rs1(14-11) rs2(10-7) rd(6-3) reserved(2-0) 0

[0160] MULTI

[0161] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00000 00000 01100

[0162] Flags(15) rs1(14-11) rs2(10-7) rd(6-3) reserved(2-0) 0

[0163] MULTI

[0164] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00000 00000 01101

[0165] Flags(15) rs1(14-11) rs2(10-7) rd(6-3) reserved(2-0) 0

[0166] J

[0167] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00010 00000 00000

[0168] Flags(15) address(14-0) 0

[0169] JAL

[0170] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00011 00000 00000

[0171] Flags(15) address(14-0) 0

[0172] BEQ

[0173] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00100 00000 00000

[0174] Flags(15) rs1(14-11) imm1(10-7) rd(6-3) imm2(2-0) 0

[0175] BGTZ

[0176] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00111 00000 00000

[0177] Flags(15) rs1(14-11) imm1(10-7) rd(6-3) imm2(2-0) 0

[0178] BLEZ

[0179] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00110 00000 00000

[0180] Flags(15) rs1(14-11) imm1(10-7) rd(6-3) imm2(2-0) 0

[0181] BNE

[0182] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 00101 00000 00000

[0183] Flags(15) rs1(14-11) imm1(10-7) rd(6-3) imm2(2-0) 0

[0184] LB

[0185] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 10000 00000 00000

[0186] Flags(15) rs1(14-11) imm1(10-7) rd(6-3) imm2(2-0) 0

[0187] LBU

[0188] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 10001 00000 00000

[0189] Flags(15) rs1(14-11) imm1(10-7) rd(6-3) imm2(2-0) 0

[0190] LW

[0191] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 10010 00000 00000

[0192] Flags(15) rs1(14-11) imm1(10-7) rd(6-3) imm2(2-0) 0

[0193] SB

[0194] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 10100 00000 00000

[0195] Flags(15) rs1(14-11) imm1(10-7) rd(6-3) imm2(2-0) 0

[0196] SW

[0197] Flags(15) op(14-10) rc(9-5) fuc(4-0) 1 10101 00000 00000

[0198] Flags(15) rs1(14-11) imm1(10-7) rd(6-3) imm2(2-0) 0

[0199] The above is a detailed introduction to a dual-mode instruction set architecture for reconfigurable computing and its application method provided by the embodiment of the present application. The description of the above embodiment is only used to help understand the method and core idea of ​​the present application; at the same time, for those of ordinary skill in the art, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

[0200] For example, certain words are used in the specification and claims to refer to specific components. Those skilled in the art should understand that hardware manufacturers may use different nouns to refer to the same component. This specification and claims do not use differences in names as a way to distinguish components, but use differences in the functions of components as the criteria for distinction. As mentioned throughout the specification and claims, "including" and "comprising" are open-ended terms, so they should be interpreted as "including / including but not limited to". "Approximately" means that within an acceptable error range, those skilled in the art can solve the technical problem within a certain error range and basically achieve the technical effect. The subsequent description of the specification is a preferred embodiment of the present application, but the description is for the purpose of illustrating the general principles of the present application, and is not used to limit the scope of the present application. The scope of protection of the present application shall be determined by the definition of the attached claims.

[0201] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a product or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such a product or system. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the product or system including the elements.

[0202] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0203] The above description shows and describes several preferred embodiments of the present application, but as mentioned above, it should be understood that the present application is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the application concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art do not deviate from the spirit and scope of the present application, and should be within the scope of protection of the claims attached to the present application.

Claims

1. A method for constructing a dual-mode instruction set architecture for reconfigurable computing, wherein the dual-mode instruction set architecture is constructed based on a processor, characterized in that: The dual-mode instruction set architecture construction method includes: Multiple functional instructions that implement control flow, which change the function of the processor by calling functional instructions to achieve processor reconstruction; Multiple operation instructions for realizing data flow, multiple operation instructions are inserted between any two functional instructions to realize data flow calculation, and the calculation of instruction flow is realized in the way of one functional instruction followed by one operation instruction; The format of the operation instruction includes: Three-operand instructions are used to perform arithmetic and logical operations; Dual operand instructions are used to implement shift operations, logical arithmetic operations, and branch operations; Zero operand instruction, used to implement unconditional jump; The logical operations include AND, OR, NOT and XOR; the arithmetic operations include addition, subtraction, multiplication and division; The 15th bit of the function instruction is designed as a flag bit, bits 14-10 are designed as a 5-bit fixed-length operation code corresponding to the op field, bits 9-5 are designed as configuration bits corresponding to the rc field, representing the configuration scale of the array, and bits 4-0 are designed as a function code corresponding to the fuc field; The dual-mode instruction set architecture is allocated with 16 16-bit general registers, the displacement field and the register index field are both designed to be 4 bits, wherein the first source register index is located at bits 14-11 of the operation instruction, the second source register index is located at bits 10-7 of the operation instruction, and the destination register index is located at bits 6-3 of the operation instruction.

2. The dual-mode instruction set architecture construction method according to claim 1, characterized in that: The displacement operation includes logical left shift, logical right shift and arithmetic right shift; the logical arithmetic operation includes immediate number addition, immediate number AND and less than setting; the branch operation includes branch jump.

3. An application method of a dual-mode instruction set architecture, based on the dual-mode instruction set architecture according to any one of claims 1-2, characterized in that: The method is specifically as follows: the instructions in the processing element are divided into functional instructions for realizing control flow and operation instructions for realizing data flow, the function of the processor is changed by calling the functional instructions to realize the reconstruction of the processor, the multiple operation instructions between two functional instructions realize the calculation of the data flow, and the calculation of the instruction flow is realized by a method of one functional instruction followed by one operation instruction.

4. The application method according to claim 3, characterized in that: The application method specifically comprises the following steps: S1: Analyze the massive MIMO detection algorithm in modern mobile communications and extract basic operators; S2: Design instruction format and instruction set encoding according to the characteristics of the extracted basic operators and a large number of matrix multiplication and addition operations in the communication algorithm, define operand access mode, operand type, address size, addressing mode and register allocation; S3: A five-stage pipeline is used to implement the processing meta-microarchitecture and perform simulation verification, and finally SIMD and MIMD are implemented through the dual-mode instruction set architecture.

5. The application method according to claim 4, characterized in that: The massive MIMO detection algorithm includes zero-breaking detection and MMSE detection.