[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2001016697A2 - Local register instruction for micro engine used in multithreadedparallel processor architecture - Google Patents

Local register instruction for micro engine used in multithreadedparallel processor architecture Download PDF

Info

Publication number
WO2001016697A2
WO2001016697A2 PCT/US2000/024054 US0024054W WO0116697A2 WO 2001016697 A2 WO2001016697 A2 WO 2001016697A2 US 0024054 W US0024054 W US 0024054W WO 0116697 A2 WO0116697 A2 WO 0116697A2
Authority
WO
WIPO (PCT)
Prior art keywords
bits
bit mask
thirty
data
computer instruction
Prior art date
Application number
PCT/US2000/024054
Other languages
French (fr)
Other versions
WO2001016697A3 (en
WO2001016697A9 (en
Inventor
Gilbert Wolrich
Matthew J. Adiletta
William Wheeler
Debra Bernstein
Donald Hooper
Original Assignee
Intel Corporation
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Intel Corporation filed Critical Intel Corporation
Priority to PCT/US2000/024054 priority Critical patent/WO2001016697A2/en
Priority to AU71012/00A priority patent/AU7101200A/en
Publication of WO2001016697A2 publication Critical patent/WO2001016697A2/en
Priority to US09/811,995 priority patent/US20020053017A1/en
Publication of WO2001016697A3 publication Critical patent/WO2001016697A3/en
Publication of WO2001016697A9 publication Critical patent/WO2001016697A9/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30007Arrangements for executing specific machine instructions to perform operations on data operands
    • G06F9/30018Bit or string instructions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30007Arrangements for executing specific machine instructions to perform operations on data operands
    • G06F9/30032Movement instructions, e.g. MOVE, SHIFT, ROTATE, SHUFFLE
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30007Arrangements for executing specific machine instructions to perform operations on data operands
    • G06F9/30036Instructions to perform operations on packed data, e.g. vector, tile or matrix operations
    • G06F9/30038Instructions to perform operations on packed data, e.g. vector, tile or matrix operations using a mask
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/3004Arrangements for executing specific machine instructions to perform operations on memory
    • G06F9/30043LOAD or STORE instructions; Clear instruction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/38Concurrent instruction execution, e.g. pipeline or look ahead
    • G06F9/3836Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution
    • G06F9/3851Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution from multiple instruction streams, e.g. multistreaming

Definitions

  • This invention relates to a computer instruction for a computer processor, and more specifically a local register instruction associated with a microengine.
  • Parallel processing is an efficient form of information processing of concurrent events in a computing process.
  • Parallel processing demands concurrent execution of many programs in a computer, in contrast to sequential processing.
  • parallelism involves doing more than one thing at the same time.
  • a serial paradigm where all tasks are performed sequentially at a single station or a pipelined machine where tasks are performed at specialized stations
  • parallel processing a number of stations are provided with each capable of performing all tasks. That is, in general all or a number of the stations work simultaneously and independently on the same or common elements of a problem. Certain problems are suitable for solution by applying parallel processing.
  • FIG. 1 is a block diagram of a communication system employing a hardware- based multithreaded processor.
  • FIG. 2 is a detailed block diagram of the hardware-based multithreaded processor of FIG. 1.
  • FIG. 3 is a block diagram of a micro engine functional unit employed in the hardware-based multithreaded processor of FIGS. 1 and 2.
  • FIG. 4 is a block diagram of a pipeline in the micro engine of FIG. 3.
  • FIG. 5 is a block diagram illustrating a format for arithmetic logic unit (ALU) instruction set.
  • ALU arithmetic logic unit
  • a communication system 10 includes a parallel, hardware- based multithreaded processor 12.
  • the hardware-based multithreaded processor 12 is coupled to a bus such as a PCI bus 14, a memory system 16 and a second bus 18.
  • the system 10 is especially useful for tasks that can be broken into parallel subtasks or functions.
  • hardware-based multithreaded processor 12 is useful for tasks that are bandwidth oriented rather than latency oriented.
  • the hardware-based multithreaded processor 12 has multiple micro engines 22 each with multiple hardware controlled threads that can be simultaneously active and independently work on a task.
  • the hardware-based multithreaded processor 12 also includes a central controller 20 that assists in loading micro code control for other resources of the hardware-based multithreaded processor 12 and performs other general purpose computer type functions such as handling protocols, exceptions, extra support for packet processing where the micro engines 22 pass the packets off for more detailed processing such as in boundary conditions.
  • the processor 20 is a Strong Arm® (Arm is a trademark of ARM Limited, United Kingdom) based architecture.
  • the general-purpose microprocessor 20 has an operating system. Through the operating system the processor 20 can call functions to operate on micro engines 22a-22f.
  • the processor 20 can use any supported operating system, preferably a real time operating system.
  • operating systems such as, Microsoft-NT real-time, VXWorks and ⁇ CUS, a freeware operating system available over the Internet, can be used.
  • micro engines 22a-22f each maintain program counters in hardware and states associated with the program counters. Effectively, a corresponding number of sets of threads can be simultaneously active on each of the micro engines 22a-22f while only one is actually operating at any one time.
  • micro engines 22a-22f there are six micro engines 22a-22f as shown. Each micro engine 22a-22f has capabilities for processing four hardware threads.
  • the six micro engines 22a-22f operate with shared resources including memory system 16 and bus interfaces 24 and 28.
  • the memory system 16 includes a Synchronous Dynamic Random Access Memory (SDRAM) controller 26a and a Static Random Access Memory (SRAM) controller 26b. SDRAM memory 16a and SDRAM controller 26a are typically used for processing large volumes of data, e.g., processing of network payloads from network packets.
  • the SRAM controller 26b and SRAM memory 16b are used in a networking implementation for low latency, fast access tasks, e.g., accessing look-up tables, memory for the core processor 20, and so forth.
  • the six micro engines 22a-22f access either the SDRAM 16a or SRAM 16b based on characteristics of the data. Thus, low latency, low bandwidth data is stored in and fetched from SRAM 16b, whereas higher bandwidth data for which latency is not as important, is stored in and fetched from SDRAM 16a.
  • the micro engines 22a-22f can execute memory reference instructions to either the SDRAM controller 26a or SRAM controller 16b.
  • SRAM or SDRAM memory accesses can be explained by SRAM or SDRAM memory accesses.
  • an SRAM access requested by a Thread_0, from a micro engine will cause the SRAM controller 26b to initiate an access to the SRAM memory 16b.
  • the SRAM controller 26b controls arbitration for the SRAM bus, accesses the SRAM 16b, fetches the data from the SRAM 16b, and returns data to a requesting micro engine 22a-22f.
  • the micro engine e.g., micro engine 22a
  • the micro engine e.g., micro engine 22a
  • that micro engine would be dormant until data was returned from the SRAM 16b.
  • Thread_l can function while the first thread, i.e., Thread_0, is awaiting the read data to return.
  • Thread_l may access the SDRAM memory 16a.
  • Thread_l operates on the SDRAM unit 16a, and Thread_0 is operating on the SRAM unit 16b, a new thread, e.g., Thread_2 can now operate in the micro engine 22a.
  • Thread_2 can operate for a certain amount of time until it needs to access memory or perform some other long latency operation, such as making an access to a bus interface.
  • the processor 12 can have a bus operation, SRAM operation and SDRAM operation all being completed or operated upon by one micro engine 22a and have one more thread available to process more work in the data path.
  • the hardware context swapping also synchronizes completion of tasks. For example, two threads could hit the same shared resource e.g., SRAM 16b.
  • Each one of these separate functional units, e.g., the FBUS interface 28, the SRAM controller 26a, and the SDRAM controller 26b, when they complete a requested task from one of the micro engine thread contexts reports back a flag signaling completion of an operation.
  • the micro engine receives the flag, the micro engine can determine which thread to turn on.
  • An application for the hardware-based multithreaded processor 12 is as a network processor.
  • the hardware-based multithreaded processor 12 interfaces to network devices such as a media access controller device e.g., a 10/100BaseT Octal MAC 13a or a Gigabit Ethernet device 13b.
  • the hardware-based multithreaded processor 12 can interface to any type of communication device or interface that receives/sends large amounts of data.
  • Communication system 10 functioning in a networking application could receive network packets from the devices 13a, 13b and process those packets in a parallel manner. With the hardware-based multithreaded processor 12, each network packet can be independently processed.
  • processor 12 is a print engine for a postscript processor or as a processor for a storage subsystem, e.g., Redundant Array of Independent Disk (RAID) storage, a category of disk drives that employs two or more drives in combination for fault tolerance and performance.
  • RAID Redundant Array of Independent Disk
  • a further use is as a matching engine.
  • the advent of electronic trading requires the use of electronic matching engines to match orders between buyers and sellers.
  • the processor 12 includes the bus interface 28 that couples the processor to the second bus 18.
  • bus interface 28 couples the processor 12 to the FBUS (FIFO bus) 18.
  • the FBUS interface 28 is responsible for controlling and interfacing the processor 12 to the FBUS 18.
  • the FBUS 18 is a 64-bit wide FIFO bus, used to interface to Media Access Controller (MAC) devices, e.g., 10/100 Base T Octal MAC 13a.
  • the processor 12 includes a second interface e.g., PCI bus interface 24, that couples other system components that reside on the PCI 14 bus to the processor 12.
  • the PCI bus interface 24 provides a high-speed data path 24a to memory 16, e.g., SDRAM memory 16a.
  • PCI bus interface 24 data can be moved quickly from the SDRAM 16a through the PCI bus 14, via direct memory access (DMA) transfers.
  • the hardware based multithreaded processor 12 supports image transfers.
  • the hardware based multithreaded processor 12 can employ DMA channels so if one target of a DMA transfer is busy, another one of the DMA channels can take over the PCI bus 14 to deliver information to another target to maintain high processor 12 efficiency.
  • the PCI bus interface 24 supports target and master operations. Target operations are operations where slave devices on bus 14 access SDRAMs through reads and writes that are serviced as a slave to a target operation. In master operations, the processor core 20 sends data directly to or receives data directly from the PCI interface 24.
  • Each of the functional units 22 is coupled to one or more internal buses.
  • the internal buses are dual, 32 bit buses (i.e., one bus for read and one for write).
  • the hardware-based multithreaded processor 12 also is constructed such that the sum of the bandwidths of the internal buses in the processor 12 exceed the bandwidth of external buses coupled to the processor 12.
  • the processor 12 includes an internal core processor bus 32, e.g., an ASB Advanced System Bus (ASB), that couples the processor core 20 to the memory controller 26a, 26b and to an ASB translator 30, described below.
  • ASB bus 32 is a subset of the so-called Advanced Microcontroller Bus Architecture (AMBA) bus that is used with the Strong Arm processor core 20.
  • AMBA Advanced Microcontroller Bus Architecture
  • AMBA is an open standard, on-chip bus specification that details a strategy for the interconnection and management of functional blocks that makes up a System-on-chip (SoC).
  • SoC System-on-chip
  • the processor 12 also includes a private bus 34 that couples the micro engine units 22 to SRAM controller 26b, ASB translator 30 and FBUS interface 28.
  • a memory bus 38 couples the memory controller 26a, 26b to the bus interfaces 24 and 28 and memory system 16 including flashrom 16c that is used for boot operations and so forth.
  • each of the micro engines 22a-22f includes an arbiter that examines flags to determine the available threads to be operated upon. Any thread from any of the micro engines 22a-22f can access the SDRAM controller 26a, SDRAM controller 26b or FBUS interface 28.
  • the memory controllers 26a and 26b each include queues to store outstanding memory reference requests. The queues either maintain order of memory references or arrange memory references to optimize memory bandwidth. For example, if a thread O has no dependencies or relationship to a thread l, there is no reason that thread_l and thread_0 cannot complete their memory references to the SRAM unit 16b out of order.
  • the micro engines 22a-22f issue memory reference requests to the memory controllers 26a and 26b.
  • the micro engines 22a-22f flood the memory subsystems 26a and 26b with enough memory reference operations such that the memory subsystems 26a and 26b become the bottleneck for processor 12 operation. If the memory subsystem 16 is flooded with memory requests that are independent in nature, the processor 12 can perform memory reference sorting. Memory reference sorting improves achievable memory bandwidth. Memory reference sorting, as described below, reduces dead time or a bubble that occurs with accesses to SRAM 16b. With memory references to SRAM 16b, switching current direction on signal lines between reads and writes produces a bubble or a dead time waiting for current to settle on conductors coupling the SRAM 16b to the SRAM controller 26b.
  • Memory reference sorting allows the processor 12 to organize references to memory such that long strings of reads can be followed by long strings of writes. This can be used to minimize dead time in the pipeline to effectively achieve closer to maximum available bandwidth. Reference sorting helps maintain parallel hardware context threads. On the SDRAM 16a, reference sorting allows hiding of pre-charges from one bank to another bank. Specifically, if the memory system 16b is organized into an odd bank and an even bank, while the processor is operating on the odd bank, the memory controller can start pre-charging the even bank. Pre-charging is possible if memory references alternate between odd and even banks.
  • the processor 12 By ordering memory references to alternate accesses to opposite banks, the processor 12 improves SDRAM bandwidth. Additionally, other optimizations can be used. For example, merging optimizations where operations that can be merged, are merged prior to memory access, open page optimizations where by examining addresses an opened page of memory is not reopened, chaining, as will be described below, and refreshing mechanisms, can be employed.
  • the FBUS interface 28 supports Transmit and Receive flags for each port that a MAC device supports, along with an Interrupt flag indicating when service is warranted.
  • the FBUS interface 28 also includes a controller 28a that performs header processing of incoming packets from the FBUS 18.
  • the controller 28a extracts the packet headers and performs a micro programmable source/destination/protocol hashed lookup (used for address smoothing) in SRAM 16b. If the hash does not successfully resolve, the packet header is sent to the processor core 20 for additional processing.
  • the FBUS interface 28 supports the following internal data transactions: FBUS unit (Shared bus SRAM) to/from micro engine. FBUS unit (via private bus) writes from SDRAM
  • FBUS unit (via Mbus) Reads to SDRAM.
  • the FBUS 18 is a standard industry bus and includes a data bus, e.g., 64 bits wide and sideband control for address and read/write control.
  • the FBUS interface 28 provides the ability to input large amounts of data using a series of input and output FIFOs 29a-29b. From the FIFOs 29a-29b, the micro engines 22a-22f fetch data from or command the FIFOs 29a-29b.
  • SDRAM controller 26a to move data from a receive FIFO in which data has come from a device on bus 18, into the FBUS interface 28.
  • the data can be sent through memory controller 26a to SDRAM memory 16a, via a direct memory access.
  • the micro engines can move data from the SDRAM 26a to interface 28, out to FBUS 18, via the FBUS interface 28.
  • a command request can be a memory request or a FBUS request.
  • a command request can move data from a register located in a micro engine 22a to a shared resource, e.g., an SDRAM location, SRAM location, flash memory or some MAC address.
  • the commands are sent out to each of the functional units and the shared resources.
  • the shared resources do not need to maintain local buffering of the data. Rather, the shared resources access distributed data located inside of the micro engines 22a-22f. This enables micro engines 22a-22f, to have local access to data rather than arbitrating for access on a bus and risk contention for the bus. With this feature, there is a zero cycle stall for waiting for data internal to the micro engines 22a-22f.
  • the data buses e.g., ASB bus 30, SRAM bus 34 and SDRAM bus 38 coupling these shared resources, e.g., memory controllers 26a and 26b, are of sufficient bandwidth such that there are no internal bottlenecks.
  • the processor 12 has an bandwidth requirement where each of the functional units is provided with at least twice the maximum bandwidth of the internal buses.
  • the SDRAM 16a can run a 64 bit wide bus at 83 MHz.
  • the SRAM data bus could have separate read and write buses, e.g., could be a read bus of 32 bits wide running at 166 MHz and a write bus of 32 bits wide at 166 MHz. That is, in essence, 64 bits running at 166 MHz that is effectively twice the bandwidth of the SDRAM.
  • the core processor 20 also can access the shared resources.
  • the core processor 20 has a direct communication to the SDRAM controller 26a to the bus interface 24 and to SRAM controller 26b via bus 32.
  • the core processor 20 access the micro engines 22a-22f via the ASB Translator 30 over bus 34.
  • the ASB translator 30 can physically reside in the FBUS interface 28, but logically is distinct.
  • the ASB Translator 30 performs an address translation between FBUS micro engine transfer register locations and core processor addresses (i.e., ASB bus) so that the core processor 20 can access registers belonging to the micro engines 22a-22f.
  • a scratchpad memory 27 is also provided to permit micro engines 22a- 22f to write data out to the memory for other micro engines to read.
  • the scratchpad 27 is coupled to bus 34.
  • the processor core 20 includes a RISC core 50 implemented in a five stage pipeline performing a single cycle shift of one operand or two operands in a single cycle, provides multiplication support and 32 bit barrel shift support.
  • This RISC core 50 is a standard Strong Arm® architecture but it is implemented with a five-stage pipeline for performance reasons.
  • the processor core 20 also includes a 16-kilobyte instruction cache 52, an 8-kilobyte data cache 54 and a prefetch stream buffer 56.
  • the core processor 20 performs arithmetic operations in parallel with memory writes and instruction fetches.
  • the core processor 20 interfaces with other functional units via the ARM defined ASB bus.
  • the ASB bus is a 32-bit bi-directional bus 32.
  • the micro engine 22f includes a control store 70, which, in one implementation, includes a RAM of here 1,024 words of 32 bit.
  • the RAM stores a micro program (not shown).
  • the micro program is loadable by the core processor 20.
  • the micro engine 22f also includes controller logic 72.
  • the controller logic 72 includes an instruction decoder 73 and program counter (PC) units 72a-72d.
  • the four micro program counters 72a-72d are maintained in hardware.
  • the micro engine 22f also includes context event switching logic 74.
  • Context event logic 74 receives messages (e.g., SEQ_#_EVENT_RESPONSE; FBI_EVENT_RESPONSE; SRAM _EVENT_RESPONSE; SDRAM _EVENT_RESPONSE; and ASB _EVENT_RESPONSE) from each one of the shared resources, e.g., SRAM 26a, SDRAM 26b, or processor core 20, control and status registers, and so forth. These messages provide information on whether a requested function has completed. Based on whether or not a function requested by a thread has completed and signaled completion, the thread needs to wait for that completion signal, and if the thread is enabled to operate, then the thread is placed on an available thread list (not shown).
  • the micro engine 22f can have a maximum of four threads available. In addition to event signals that are local to an executing thread, the micro engines
  • signaling states 22a-22f employ signaling states that are global. With signaling states, an executing thread can broadcast a signal state to all micro engines 22a-22f, e.g., Receive Request Available (RRA) signal, any and all threads in the micro engines 22a-22f can branch on these signaling states. These signaling states can be used to determine availability of a resource or whether a resource is due for servicing.
  • RRA Receive Request Available
  • the context event logic 74 has arbitration for the four threads. In an embodiment, the arbitration is a round robin mechanism. Other techniques could be used including priority queuing or weighted fair queuing.
  • the micro engine 22f also includes an execution box (EBOX) data path 76 that includes an arithmetic logic unit (ALU) 76a and general-purpose register set 76b.
  • the ALU 76a performs arithmetic and logical functions as well as shift functions.
  • the register set 76b has a relatively large number of general- purpose registers. In an embodiment, there are 64 general-purpose registers in a first bank, Bank A and 64 in a second bank, Bank B. The general -purpose registers are windowed so that they are relatively and absolutely addressable.
  • the micro engine 22f also includes a write transfer register stack 78 and a read transfer stack 80. These registers 78 and 80 are also windowed so that they are relatively and absolutely addressable.
  • Write transfer register stack 78 is where write data to a resource is located.
  • read register stack 80 is for return data from a shared resource. Subsequent to or concurrent with data arrival, an event signal from the respective shared resource e.g., the SRAM controller 26a, SDRAM controller 26b or core processor 20 will be provided to context event arbiter 74, which will then alert the thread that the data is available or has been sent.
  • Both transfer register banks 78 and 80 are connected to the execution box (EBOX) 76 through a data path.
  • the read transfer register has 64 registers and the write transfer register has 64 registers.
  • the micro engine data path maintains a 5-stage micro-pipeline 82.
  • This pipeline includes lookup of microinstruction words 82a, formation of the register file addresses 82b, read of operands from register file 82c, ALU shift or compare operations 82d, and write-back of results to registers 82e.
  • the micro engine 22f can perform a simultaneous register file read and write, which completely hides the write operation.
  • the SDRAM interface 26a provides a signal back to the requesting micro engine on reads that indicates whether a parity error occurred on the read request.
  • the micro engine micro code is responsible for checking the SDRAM 16a read Parity flag when the micro engine uses any return data. Upon checking the flag, if it was set, the act of branching on it clears it. The Parity flag is only sent when the SDRAM 16a is enabled for checking, and the SDRAM 16a is parity protected.
  • the micro engines 22 and the PCI Unit 14 are the only requestors notified of parity errors. Therefore, if the processor core 20 or FIFO 18 requires parity protection, a micro engine assists in the request.
  • the micro engines 22a-22f support conditional branches.
  • the micro engines 22 support instructions contained within an instruction set.
  • the instruction set includes logical and arithmetic operations that perform an ALU operation on one or two operands and deposit the result into the destination register, and update all ALU condition codes according to the result of the operation. Condition codes are lost during context swaps.
  • the computer instruction set also includes local register instructions. Specifically, the LD FIELD and LD FIELD W CLR instructions provide a means for changing one or individual bytes without changing other bytes by super-imposing the change on one local register in one instruction.
  • the LD_FIELD and LD_FIELD_W_CLR instructions load one or more bytes within a local register with the shifted value of another operand. Data in the bytes that are not loaded remain unchanged or are cleared.
  • LD_FIELD performs a read-modify-write on a read transfer register.
  • LD FIELD W CLR performs a write to a write transfer register.
  • LOAD_CC loads all ALU codes based on the result formed.
  • a low field instruction format is: ld_field[dest_reg, byte_ld_enables, source_op, opt_shf_cntl], optional_token
  • a low field with clear instruction format is: ld_field_w_clr[dest_reg, byte_ld_enables, source_op, opt_shf_cntl], optional token
  • the "dest_reg” field represents an absolute or context-relative transfer register or general -purpose register (GPR) that holds the result of the instruction.
  • the "byte_ld_enables” field represents a 4-bit mask that specifies which byte(s) are affected by the instruction. Each set bit enables the corresponding byte of the destination operand longword to be loaded or cleared. There must be at least 1 set bit in this mask. For example, 0101 loads the 1st and 3rd bytes while the other bytes remain unchanged.
  • the "source_op” field represents a context relative register name. This register must be on the opposite bank as the destination register.
  • the "opt_shf_cntl” field represents shift or rotate the register contents using a syntax shown as follows:
  • a programmer may supply an optional field referred to as "optional_token.”
  • optional_token field contains a "load_cc” parameter
  • ld_field[dest_reg, byte_ld_enables, source_reg, shift_cntl], load_cc allows a source register to be shifted, and then some byte-aligned portion(s) of the shifted data be loaded into the destination register.
  • the byte_ld_enables field consists of 4 bits; each set bit enables corresponding byte of the destination longword to be loaded by the corresponding bits of the shifted source operand. Also note that the load_cc token was added in this case to specify that this microword will set the ALU condition codes. Note that a comma is appended to the end of the opcode token that indicates to the assembler that the following token is part of the same microword. In general, a microword consists of 1 opcode token following by 0 or more qualifying tokens, all of which end with a comma except for the final token. In other words, the absence of a comma after a token designates the end of one microword and the beginning of another.
  • load_cc indicates that the ALU condition codes should be set based on the ALU result.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Mathematical Physics (AREA)
  • Executing Machine-Instructions (AREA)
  • Debugging And Monitoring (AREA)

Abstract

A method of operating a processor (12) including loading one or more bytes of data within a register associated with microengines (22 a-f) with a shifted value of an operand and preserving or cleaning the bytes of data that are not loaded. The method further includes providing a bit mask that specifies which of the one or more bytes of data within the register are affected.

Description

LOCAL REGISTER INSTRUCTION FOR MICRO ENGINE USED IN MULTITHREADED PARALLEL PROCESSOR ARCHITECTURE
BACKGROUND
This invention relates to a computer instruction for a computer processor, and more specifically a local register instruction associated with a microengine.
Parallel processing is an efficient form of information processing of concurrent events in a computing process. Parallel processing demands concurrent execution of many programs in a computer, in contrast to sequential processing. In the context of a parallel processor, parallelism involves doing more than one thing at the same time. Unlike a serial paradigm where all tasks are performed sequentially at a single station or a pipelined machine where tasks are performed at specialized stations, with parallel processing, a number of stations are provided with each capable of performing all tasks. That is, in general all or a number of the stations work simultaneously and independently on the same or common elements of a problem. Certain problems are suitable for solution by applying parallel processing.
DESCRIPTION OF DRAWINGS The foregoing features and other aspects of the invention will be described further in detail by the accompanying drawings, in which:
FIG. 1 is a block diagram of a communication system employing a hardware- based multithreaded processor.
FIG. 2 is a detailed block diagram of the hardware-based multithreaded processor of FIG. 1.
FIG. 3 is a block diagram of a micro engine functional unit employed in the hardware-based multithreaded processor of FIGS. 1 and 2.
FIG. 4 is a block diagram of a pipeline in the micro engine of FIG. 3. FIG. 5 is a block diagram illustrating a format for arithmetic logic unit (ALU) instruction set.
Like reference symbols in the various drawings indicate like elements. DETAILED DESCRIPTION
Referring to FIG. 1, a communication system 10 includes a parallel, hardware- based multithreaded processor 12. The hardware-based multithreaded processor 12 is coupled to a bus such as a PCI bus 14, a memory system 16 and a second bus 18. The system 10 is especially useful for tasks that can be broken into parallel subtasks or functions. Specifically, hardware-based multithreaded processor 12 is useful for tasks that are bandwidth oriented rather than latency oriented. The hardware-based multithreaded processor 12 has multiple micro engines 22 each with multiple hardware controlled threads that can be simultaneously active and independently work on a task. The hardware-based multithreaded processor 12 also includes a central controller 20 that assists in loading micro code control for other resources of the hardware-based multithreaded processor 12 and performs other general purpose computer type functions such as handling protocols, exceptions, extra support for packet processing where the micro engines 22 pass the packets off for more detailed processing such as in boundary conditions. In one embodiment, the processor 20 is a Strong Arm® (Arm is a trademark of ARM Limited, United Kingdom) based architecture. The general-purpose microprocessor 20 has an operating system. Through the operating system the processor 20 can call functions to operate on micro engines 22a-22f. The processor 20 can use any supported operating system, preferably a real time operating system. For the core processor 20 implemented as Strong Arm architecture, operating systems such as, Microsoft-NT real-time, VXWorks and μCUS, a freeware operating system available over the Internet, can be used.
Functional micro engines (micro engines) 22a-22f each maintain program counters in hardware and states associated with the program counters. Effectively, a corresponding number of sets of threads can be simultaneously active on each of the micro engines 22a-22f while only one is actually operating at any one time.
In an embodiment, there are six micro engines 22a-22f as shown. Each micro engine 22a-22f has capabilities for processing four hardware threads. The six micro engines 22a-22f operate with shared resources including memory system 16 and bus interfaces 24 and 28. The memory system 16 includes a Synchronous Dynamic Random Access Memory (SDRAM) controller 26a and a Static Random Access Memory (SRAM) controller 26b. SDRAM memory 16a and SDRAM controller 26a are typically used for processing large volumes of data, e.g., processing of network payloads from network packets. The SRAM controller 26b and SRAM memory 16b are used in a networking implementation for low latency, fast access tasks, e.g., accessing look-up tables, memory for the core processor 20, and so forth. The six micro engines 22a-22f access either the SDRAM 16a or SRAM 16b based on characteristics of the data. Thus, low latency, low bandwidth data is stored in and fetched from SRAM 16b, whereas higher bandwidth data for which latency is not as important, is stored in and fetched from SDRAM 16a. The micro engines 22a-22f can execute memory reference instructions to either the SDRAM controller 26a or SRAM controller 16b.
Advantages of hardware multithreading can be explained by SRAM or SDRAM memory accesses. As an example, an SRAM access requested by a Thread_0, from a micro engine will cause the SRAM controller 26b to initiate an access to the SRAM memory 16b. The SRAM controller 26b controls arbitration for the SRAM bus, accesses the SRAM 16b, fetches the data from the SRAM 16b, and returns data to a requesting micro engine 22a-22f. During an SRAM access, if the micro engine, e.g., micro engine 22a, had only a single thread that could operate, that micro engine would be dormant until data was returned from the SRAM 16b. By employing hardware context swapping within each of the micro engines 22a-22f, the hardware context swapping enables other contexts with unique program counters to execute in that same micro engine. Thus, another thread, e.g., Thread_l can function while the first thread, i.e., Thread_0, is awaiting the read data to return. During execution, Thread_l may access the SDRAM memory 16a. While Thread_l operates on the SDRAM unit 16a, and Thread_0 is operating on the SRAM unit 16b, a new thread, e.g., Thread_2 can now operate in the micro engine 22a. Thread_2 can operate for a certain amount of time until it needs to access memory or perform some other long latency operation, such as making an access to a bus interface. Therefore, simultaneously, the processor 12 can have a bus operation, SRAM operation and SDRAM operation all being completed or operated upon by one micro engine 22a and have one more thread available to process more work in the data path. The hardware context swapping also synchronizes completion of tasks. For example, two threads could hit the same shared resource e.g., SRAM 16b. Each one of these separate functional units, e.g., the FBUS interface 28, the SRAM controller 26a, and the SDRAM controller 26b, when they complete a requested task from one of the micro engine thread contexts reports back a flag signaling completion of an operation. When the micro engine receives the flag, the micro engine can determine which thread to turn on.
An application for the hardware-based multithreaded processor 12 is as a network processor. As a network processor, the hardware-based multithreaded processor 12 interfaces to network devices such as a media access controller device e.g., a 10/100BaseT Octal MAC 13a or a Gigabit Ethernet device 13b. In general, as a network processor, the hardware-based multithreaded processor 12 can interface to any type of communication device or interface that receives/sends large amounts of data. Communication system 10 functioning in a networking application could receive network packets from the devices 13a, 13b and process those packets in a parallel manner. With the hardware-based multithreaded processor 12, each network packet can be independently processed.
Another example for use of processor 12 is a print engine for a postscript processor or as a processor for a storage subsystem, e.g., Redundant Array of Independent Disk (RAID) storage, a category of disk drives that employs two or more drives in combination for fault tolerance and performance. A further use is as a matching engine. In the securities industry for example, the advent of electronic trading requires the use of electronic matching engines to match orders between buyers and sellers. These and other parallel types of tasks can be accomplished utilizing the system 10.
The processor 12 includes the bus interface 28 that couples the processor to the second bus 18. In an embodiment, bus interface 28 couples the processor 12 to the FBUS (FIFO bus) 18. The FBUS interface 28 is responsible for controlling and interfacing the processor 12 to the FBUS 18. The FBUS 18 is a 64-bit wide FIFO bus, used to interface to Media Access Controller (MAC) devices, e.g., 10/100 Base T Octal MAC 13a. The processor 12 includes a second interface e.g., PCI bus interface 24, that couples other system components that reside on the PCI 14 bus to the processor 12. The PCI bus interface 24 provides a high-speed data path 24a to memory 16, e.g., SDRAM memory 16a. Through PCI bus interface 24 data can be moved quickly from the SDRAM 16a through the PCI bus 14, via direct memory access (DMA) transfers. The hardware based multithreaded processor 12 supports image transfers. The hardware based multithreaded processor 12 can employ DMA channels so if one target of a DMA transfer is busy, another one of the DMA channels can take over the PCI bus 14 to deliver information to another target to maintain high processor 12 efficiency. Additionally, the PCI bus interface 24 supports target and master operations. Target operations are operations where slave devices on bus 14 access SDRAMs through reads and writes that are serviced as a slave to a target operation. In master operations, the processor core 20 sends data directly to or receives data directly from the PCI interface 24.
Each of the functional units 22 is coupled to one or more internal buses. As described below, the internal buses are dual, 32 bit buses (i.e., one bus for read and one for write). The hardware-based multithreaded processor 12 also is constructed such that the sum of the bandwidths of the internal buses in the processor 12 exceed the bandwidth of external buses coupled to the processor 12. The processor 12 includes an internal core processor bus 32, e.g., an ASB Advanced System Bus (ASB), that couples the processor core 20 to the memory controller 26a, 26b and to an ASB translator 30, described below. The ASB bus 32 is a subset of the so-called Advanced Microcontroller Bus Architecture (AMBA) bus that is used with the Strong Arm processor core 20. AMBA is an open standard, on-chip bus specification that details a strategy for the interconnection and management of functional blocks that makes up a System-on-chip (SoC). The processor 12 also includes a private bus 34 that couples the micro engine units 22 to SRAM controller 26b, ASB translator 30 and FBUS interface 28. A memory bus 38 couples the memory controller 26a, 26b to the bus interfaces 24 and 28 and memory system 16 including flashrom 16c that is used for boot operations and so forth.
Referring to FIG. 2, each of the micro engines 22a-22f includes an arbiter that examines flags to determine the available threads to be operated upon. Any thread from any of the micro engines 22a-22f can access the SDRAM controller 26a, SDRAM controller 26b or FBUS interface 28. The memory controllers 26a and 26b each include queues to store outstanding memory reference requests. The queues either maintain order of memory references or arrange memory references to optimize memory bandwidth. For example, if a thread O has no dependencies or relationship to a thread l, there is no reason that thread_l and thread_0 cannot complete their memory references to the SRAM unit 16b out of order. The micro engines 22a-22f issue memory reference requests to the memory controllers 26a and 26b. The micro engines 22a-22f flood the memory subsystems 26a and 26b with enough memory reference operations such that the memory subsystems 26a and 26b become the bottleneck for processor 12 operation. If the memory subsystem 16 is flooded with memory requests that are independent in nature, the processor 12 can perform memory reference sorting. Memory reference sorting improves achievable memory bandwidth. Memory reference sorting, as described below, reduces dead time or a bubble that occurs with accesses to SRAM 16b. With memory references to SRAM 16b, switching current direction on signal lines between reads and writes produces a bubble or a dead time waiting for current to settle on conductors coupling the SRAM 16b to the SRAM controller 26b.
That is, the drivers that drive current on the bus need to settle out prior to changing states. Thus, repetitive cycles of a read followed by a write can degrade peak bandwidth. Memory reference sorting allows the processor 12 to organize references to memory such that long strings of reads can be followed by long strings of writes. This can be used to minimize dead time in the pipeline to effectively achieve closer to maximum available bandwidth. Reference sorting helps maintain parallel hardware context threads. On the SDRAM 16a, reference sorting allows hiding of pre-charges from one bank to another bank. Specifically, if the memory system 16b is organized into an odd bank and an even bank, while the processor is operating on the odd bank, the memory controller can start pre-charging the even bank. Pre-charging is possible if memory references alternate between odd and even banks. By ordering memory references to alternate accesses to opposite banks, the processor 12 improves SDRAM bandwidth. Additionally, other optimizations can be used. For example, merging optimizations where operations that can be merged, are merged prior to memory access, open page optimizations where by examining addresses an opened page of memory is not reopened, chaining, as will be described below, and refreshing mechanisms, can be employed.
The FBUS interface 28 supports Transmit and Receive flags for each port that a MAC device supports, along with an Interrupt flag indicating when service is warranted. The FBUS interface 28 also includes a controller 28a that performs header processing of incoming packets from the FBUS 18. The controller 28a extracts the packet headers and performs a micro programmable source/destination/protocol hashed lookup (used for address smoothing) in SRAM 16b. If the hash does not successfully resolve, the packet header is sent to the processor core 20 for additional processing. The FBUS interface 28 supports the following internal data transactions: FBUS unit (Shared bus SRAM) to/from micro engine. FBUS unit (via private bus) writes from SDRAM
Unit. FBUS unit (via Mbus) Reads to SDRAM.
The FBUS 18 is a standard industry bus and includes a data bus, e.g., 64 bits wide and sideband control for address and read/write control. The FBUS interface 28 provides the ability to input large amounts of data using a series of input and output FIFOs 29a-29b. From the FIFOs 29a-29b, the micro engines 22a-22f fetch data from or command the
SDRAM controller 26a to move data from a receive FIFO in which data has come from a device on bus 18, into the FBUS interface 28. The data can be sent through memory controller 26a to SDRAM memory 16a, via a direct memory access. Similarly, the micro engines can move data from the SDRAM 26a to interface 28, out to FBUS 18, via the FBUS interface 28.
Data functions are distributed amongst the micro engines 22. Connectivity to the SRAM 26a, SDRAM 26b and FBUS 28 is via command requests. A command request can be a memory request or a FBUS request. For example, a command request can move data from a register located in a micro engine 22a to a shared resource, e.g., an SDRAM location, SRAM location, flash memory or some MAC address. The commands are sent out to each of the functional units and the shared resources. However, the shared resources do not need to maintain local buffering of the data. Rather, the shared resources access distributed data located inside of the micro engines 22a-22f. This enables micro engines 22a-22f, to have local access to data rather than arbitrating for access on a bus and risk contention for the bus. With this feature, there is a zero cycle stall for waiting for data internal to the micro engines 22a-22f.
The data buses, e.g., ASB bus 30, SRAM bus 34 and SDRAM bus 38 coupling these shared resources, e.g., memory controllers 26a and 26b, are of sufficient bandwidth such that there are no internal bottlenecks. In order to avoid bottlenecks, the processor 12 has an bandwidth requirement where each of the functional units is provided with at least twice the maximum bandwidth of the internal buses. As an example, the SDRAM 16a can run a 64 bit wide bus at 83 MHz. The SRAM data bus could have separate read and write buses, e.g., could be a read bus of 32 bits wide running at 166 MHz and a write bus of 32 bits wide at 166 MHz. That is, in essence, 64 bits running at 166 MHz that is effectively twice the bandwidth of the SDRAM.
The core processor 20 also can access the shared resources. The core processor 20 has a direct communication to the SDRAM controller 26a to the bus interface 24 and to SRAM controller 26b via bus 32. However, to access the micro engines 22a-22f and transfer registers located at any of the micro engines 22a-22f, the core processor 20 access the micro engines 22a-22f via the ASB Translator 30 over bus 34. The ASB translator 30 can physically reside in the FBUS interface 28, but logically is distinct. The ASB Translator 30 performs an address translation between FBUS micro engine transfer register locations and core processor addresses (i.e., ASB bus) so that the core processor 20 can access registers belonging to the micro engines 22a-22f.
Although micro engines 22a-22f can use the register set to exchange data as described below, a scratchpad memory 27 is also provided to permit micro engines 22a- 22f to write data out to the memory for other micro engines to read. The scratchpad 27 is coupled to bus 34.
The processor core 20 includes a RISC core 50 implemented in a five stage pipeline performing a single cycle shift of one operand or two operands in a single cycle, provides multiplication support and 32 bit barrel shift support. This RISC core 50 is a standard Strong Arm® architecture but it is implemented with a five-stage pipeline for performance reasons. The processor core 20 also includes a 16-kilobyte instruction cache 52, an 8-kilobyte data cache 54 and a prefetch stream buffer 56. The core processor 20 performs arithmetic operations in parallel with memory writes and instruction fetches. The core processor 20 interfaces with other functional units via the ARM defined ASB bus. The ASB bus is a 32-bit bi-directional bus 32.
Referring to FIG. 3, an exemplary one of the micro engines 22a-22f, e.g., micro engine 22f, is shown. The micro engine 22f includes a control store 70, which, in one implementation, includes a RAM of here 1,024 words of 32 bit. The RAM stores a micro program (not shown). The micro program is loadable by the core processor 20. The micro engine 22f also includes controller logic 72. The controller logic 72 includes an instruction decoder 73 and program counter (PC) units 72a-72d. The four micro program counters 72a-72d are maintained in hardware. The micro engine 22f also includes context event switching logic 74. Context event logic 74 receives messages (e.g., SEQ_#_EVENT_RESPONSE; FBI_EVENT_RESPONSE; SRAM _EVENT_RESPONSE; SDRAM _EVENT_RESPONSE; and ASB _EVENT_RESPONSE) from each one of the shared resources, e.g., SRAM 26a, SDRAM 26b, or processor core 20, control and status registers, and so forth. These messages provide information on whether a requested function has completed. Based on whether or not a function requested by a thread has completed and signaled completion, the thread needs to wait for that completion signal, and if the thread is enabled to operate, then the thread is placed on an available thread list (not shown). The micro engine 22f can have a maximum of four threads available. In addition to event signals that are local to an executing thread, the micro engines
22a-22f employ signaling states that are global. With signaling states, an executing thread can broadcast a signal state to all micro engines 22a-22f, e.g., Receive Request Available (RRA) signal, any and all threads in the micro engines 22a-22f can branch on these signaling states. These signaling states can be used to determine availability of a resource or whether a resource is due for servicing.
The context event logic 74 has arbitration for the four threads. In an embodiment, the arbitration is a round robin mechanism. Other techniques could be used including priority queuing or weighted fair queuing. The micro engine 22f also includes an execution box (EBOX) data path 76 that includes an arithmetic logic unit (ALU) 76a and general-purpose register set 76b. The ALU 76a performs arithmetic and logical functions as well as shift functions. The register set 76b has a relatively large number of general- purpose registers. In an embodiment, there are 64 general-purpose registers in a first bank, Bank A and 64 in a second bank, Bank B. The general -purpose registers are windowed so that they are relatively and absolutely addressable. The micro engine 22f also includes a write transfer register stack 78 and a read transfer stack 80. These registers 78 and 80 are also windowed so that they are relatively and absolutely addressable. Write transfer register stack 78 is where write data to a resource is located. Similarly, read register stack 80 is for return data from a shared resource. Subsequent to or concurrent with data arrival, an event signal from the respective shared resource e.g., the SRAM controller 26a, SDRAM controller 26b or core processor 20 will be provided to context event arbiter 74, which will then alert the thread that the data is available or has been sent. Both transfer register banks 78 and 80 are connected to the execution box (EBOX) 76 through a data path. In an embodiment, the read transfer register has 64 registers and the write transfer register has 64 registers.
Referring to FIG. 4, the micro engine data path maintains a 5-stage micro-pipeline 82. This pipeline includes lookup of microinstruction words 82a, formation of the register file addresses 82b, read of operands from register file 82c, ALU shift or compare operations 82d, and write-back of results to registers 82e. By providing a write-back data bypass into the ALU/shifter units, and by assuming the registers are implemented as a register file (rather than a RAM), the micro engine 22f can perform a simultaneous register file read and write, which completely hides the write operation. The SDRAM interface 26a provides a signal back to the requesting micro engine on reads that indicates whether a parity error occurred on the read request. The micro engine micro code is responsible for checking the SDRAM 16a read Parity flag when the micro engine uses any return data. Upon checking the flag, if it was set, the act of branching on it clears it. The Parity flag is only sent when the SDRAM 16a is enabled for checking, and the SDRAM 16a is parity protected. The micro engines 22 and the PCI Unit 14 are the only requestors notified of parity errors. Therefore, if the processor core 20 or FIFO 18 requires parity protection, a micro engine assists in the request. The micro engines 22a-22f support conditional branches.
Referring to FIG. 5, a format for an arithmetic logic unit instruction is shown. The micro engines 22 support instructions contained within an instruction set. The instruction set includes logical and arithmetic operations that perform an ALU operation on one or two operands and deposit the result into the destination register, and update all ALU condition codes according to the result of the operation. Condition codes are lost during context swaps. The computer instruction set also includes local register instructions. Specifically, the LD FIELD and LD FIELD W CLR instructions provide a means for changing one or individual bytes without changing other bytes by super-imposing the change on one local register in one instruction. More specifically, the LD_FIELD and LD_FIELD_W_CLR instructions load one or more bytes within a local register with the shifted value of another operand. Data in the bytes that are not loaded remain unchanged or are cleared. LD_FIELD performs a read-modify-write on a read transfer register. LD FIELD W CLR performs a write to a write transfer register. LOAD_CC loads all ALU codes based on the result formed. A low field instruction format is: ld_field[dest_reg, byte_ld_enables, source_op, opt_shf_cntl], optional_token A low field with clear instruction format is: ld_field_w_clr[dest_reg, byte_ld_enables, source_op, opt_shf_cntl], optional token
A description of each of the field is described below.
The "dest_reg" field represents an absolute or context-relative transfer register or general -purpose register (GPR) that holds the result of the instruction. The "byte_ld_enables" field represents a 4-bit mask that specifies which byte(s) are affected by the instruction. Each set bit enables the corresponding byte of the destination operand longword to be loaded or cleared. There must be at least 1 set bit in this mask. For example, 0101 loads the 1st and 3rd bytes while the other bytes remain unchanged.
The "source_op" field represents a context relative register name. This register must be on the opposite bank as the destination register. The "opt_shf_cntl" field represents shift or rotate the register contents using a syntax shown as follows:
Operation Description
«n Left shift n bits, where n
= 1 through 31.
«indirect Left shift by an amount specified in the lower 5 bits of the A operand of the previous instruction. The lower 5 bits of the A operand should be(32-n), where n is the desired left shift amount.
»n Right shift n bits, where n
= 1 through 31.
»indirect Right shift by the amount specified in the lower 5 bits of the A operand of the previous instruction.
«rot n Left rotate n bits, where n
= 1 through 31.
»rot n Right rotate n bits, where n = 1 through 31. A programmer may supply an optional field referred to as "optional_token." When the optional_token field contains a "load_cc" parameter, ALU condition codes are loaded based on the result formed. For example, if dest_op = OxAABBCCDD and src_op = 0x11223344, then ld_field[dest_op, 0101, src_op, «rot4] results in dest_op = AA23CC41. In another example, ld_field[dest_reg, byte_ld_enables, source_reg, shift_cntl], load_cc allows a source register to be shifted, and then some byte-aligned portion(s) of the shifted data be loaded into the destination register. The same options exist for the shift_cntl operand as do with the alu shf opcode with the following exceptions: 1) a shift amount of zero is permitted, 2) if immediate data is used instead of a source register, then only left shifts or rotates in multiples of 8 bits are allowed.
The byte_ld_enables field consists of 4 bits; each set bit enables corresponding byte of the destination longword to be loaded by the corresponding bits of the shifted source operand. Also note that the load_cc token was added in this case to specify that this microword will set the ALU condition codes. Note that a comma is appended to the end of the opcode token that indicates to the assembler that the following token is part of the same microword. In general, a microword consists of 1 opcode token following by 0 or more qualifying tokens, all of which end with a comma except for the final token. In other words, the absence of a comma after a token designates the end of one microword and the beginning of another. Also note tokens of the same microword can appear on multiple lines. In this example, the following token, load_cc indicates that the ALU condition codes should be set based on the ALU result. It is to be understood that while the invention has been described in conjunction with the detailed description thereof, the foregoing description is intended to illustrate and not limit the scope of the invention, which is defined by the scope of the appended claims. Other aspects, advantages, and modifications are within the scope of the following claims.
WHAT IS CLAIMED IS:

Claims

1. A computer instruction comprising: a instruction that loads one or more bytes of data within a transfer register associated with one of a plurality of microengines with a shifted value of an operand that preserves the bytes of data that are not loaded.
2. The computer instruction of claim 1 further comprising: a bit mask that specifies which of the one or more bytes of data are affected.
3. The computer instruction of claim 2 wherein the bit mask indicates a left shift n bits, where n is a number from one to thirty-one.
4. The computer instruction of claim 2 wherein the bit mask indicates a left shift by an amount specified in a lower five bits of the first operand of a previous instruction, where the lower five bits is a number from one to thirty-one.
5. The computer instruction of claim 2 wherein the bit mask indicates a right shift n bits, where n is a number from one to thirty-one.
6. The computer instruction of claim 2 wherein the bit mask indicates a right shift by an amount specified in a lower five bits of the first operand of a previous instruction, where the lower five bits is a number from one to thirty-one.
7. The computer instruction of claim 2 wherein the bit mask indicates a left rotate n bits, where n is a number from one to thirty-one.
8. The computer instruction of claim 2 wherein the bit mask indicates a right shift n bits, where n is a number from one to thirty-one.
9. The computer instruction of claim 1 further comprising: an optional token that is set by a programmer and specifies to set arithmetic logic unit (ALU) condition codes based on the result.
10. A method of operating a processor comprising: loading one or more bytes of data within a register associated with one of a plurality of microengines with a shifted value of an operand; and clearing the bytes of data that are not loaded.
11. The computer instruction of claim 10 further comprising: providing a bit mask that specifies which of the one or more bytes of data within the register are affected.
12. The computer instruction of claim 11 wherein the bit mask indicates a left shift n bits, where n is a number from one to thirty-one.
13. The computer instruction of claim 11 wherein the bit mask indicates a left shift by an amount specified in a lower five bits of the first operand of a previous instruction, where the lower five bits is a number from one to thirty-one.
14. The computer instruction of claim 11 wherein the bit mask indicates a right shift n bits, where n is a number from one to thirty-one.
15. The computer instruction of claim 11 wherein the bit mask indicates a right shift by an amount specified in a lower five bits of the first operand of a previous instruction, where the lower five bits is a number from one to thirty-one.
16. The computer instruction of claim 11 wherein the bit mask indicates a left rotate n bits, where n is a number from one to thirty-one.
17. The computer instruction of claim 11 wherein the bit mask indicates a right shift n bits, where n is a number from one to thirty-one.
18. The computer instruction of claim 10 further comprising an optional token that is set by a programmer and specifies to load arithmetic logic unit (ALU) condition codes based on the result formed.
19. A method of operating a processor comprises: loading one or more bytes of data within a register associated with one of a plurality of moicroengines with a shifted value of an operand; and preserving the bytes of data that are not loaded.
20. The method of claim 19 further comprising: providing a bit mask that specifies which of the one or more bytes of data within the register are affected.
21. The method of claim 20 wherein the bit mask indicates a left shift n bits, where n is a number from one to thirty-one.
22. The method of claim 20 wherein the bit mask indicates a left shift by an amount specified in a lower five bits of the first operand of a previous instruction, where the lower five bits is a number from one to thirty-one.
23. The method of claim 20 wherein the bit mask indicates a right shift n bits, where n is a number from one to thirty-one.
24. The method of claim 20 wherein the bit mask indicates a right shift by an amount specified in a lower five bits of the first operand of a previous instruction, where the lower five bits is a number from one to thirty-one.
25. The method of claim 20 wherein the bit mask indicates a left rotate n bits, where n is a number from one to thirty-one.
26. The method of claim 20 wherein the bit mask indicates a right shift n bits, where n is a number from one to thirty-one.
27. The method of claim 19 further comprising an optional token that is set by a programmer and specifies to load arithmetic logic unit (ALU) condition codes based on the result formed.
PCT/US2000/024054 1999-09-01 2000-09-01 Local register instruction for micro engine used in multithreadedparallel processor architecture WO2001016697A2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
PCT/US2000/024054 WO2001016697A2 (en) 1999-09-01 2000-09-01 Local register instruction for micro engine used in multithreadedparallel processor architecture
AU71012/00A AU7101200A (en) 1999-09-01 2000-09-01 Local register instruction for micro engine used in multithreaded parallel processor architecture
US09/811,995 US20020053017A1 (en) 2000-09-01 2001-03-19 Register instructions for a multithreaded processor

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
US15196199P 1999-09-01 1999-09-01
US60/151,961 1999-09-01
PCT/US2000/024054 WO2001016697A2 (en) 1999-09-01 2000-09-01 Local register instruction for micro engine used in multithreadedparallel processor architecture

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US09/811,995 Continuation US20020053017A1 (en) 2000-09-01 2001-03-19 Register instructions for a multithreaded processor

Publications (3)

Publication Number Publication Date
WO2001016697A2 true WO2001016697A2 (en) 2001-03-08
WO2001016697A3 WO2001016697A3 (en) 2002-02-14
WO2001016697A9 WO2001016697A9 (en) 2002-09-12

Family

ID=35788086

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2000/024054 WO2001016697A2 (en) 1999-09-01 2000-09-01 Local register instruction for micro engine used in multithreadedparallel processor architecture

Country Status (1)

Country Link
WO (1) WO2001016697A2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5487159A (en) * 1993-12-23 1996-01-23 Unisys Corporation System for processing shift, mask, and merge operations in one instruction
US6002881A (en) * 1997-06-10 1999-12-14 Arm Limited Coprocessor data access control

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5487159A (en) * 1993-12-23 1996-01-23 Unisys Corporation System for processing shift, mask, and merge operations in one instruction
US6002881A (en) * 1997-06-10 1999-12-14 Arm Limited Coprocessor data access control

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
WALDSPURGER ET AL.: 'Register relocation: Flexible contexts for multithreading' PROCEEDINGS OF THE 20TH ANNUAL INTERNATIONAL SYMPOSIUM ON COMPUTER ARCHITECTURE 1993, pages 120 - 130, XP002943962 *

Also Published As

Publication number Publication date
WO2001016697A3 (en) 2002-02-14
WO2001016697A9 (en) 2002-09-12

Similar Documents

Publication Publication Date Title
US6629237B2 (en) Solving parallel problems employing hardware multi-threading in a parallel processing environment
WO2001016758A9 (en) Double shift instruction for micro engine used in multithreaded parallel processor architecture
US7991983B2 (en) Register set used in multithreaded parallel processor architecture
EP1282862B1 (en) Distributed memory control and bandwidth optimization
CA2391833C (en) Parallel processor architecture
CA2391792C (en) Sram controller for parallel processor architecture
EP1221086B1 (en) Execution of multiple threads in a parallel processor
CA2388740C (en) Sdram controller for parallel processor architecture
US20020053017A1 (en) Register instructions for a multithreaded processor
US7191309B1 (en) Double shift instruction for micro engine used in multithreaded parallel processor architecture
WO2001016697A2 (en) Local register instruction for micro engine used in multithreadedparallel processor architecture

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A2

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BY BZ CA CH CN CR CU CZ DE DK DM DZ EE ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NO NZ PL PT RO RU SD SE SG SI SK SL TJ TM TR TT TZ UA UG US UZ VN YU ZA ZW

AL Designated countries for regional patents

Kind code of ref document: A2

Designated state(s): GH GM KE LS MW MZ SD SL SZ TZ UG ZW AM AZ BY KG KZ MD RU TJ TM AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE BF BJ CF CG CI CM GA GN GW ML MR NE SN TD TG

WWE Wipo information: entry into national phase

Ref document number: 09811995

Country of ref document: US

121 Ep: the epo has been informed by wipo that ep was designated in this application
DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
AK Designated states

Kind code of ref document: A3

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BY BZ CA CH CN CR CU CZ DE DK DM DZ EE ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NO NZ PL PT RO RU SD SE SG SI SK SL TJ TM TR TT TZ UA UG US UZ VN YU ZA ZW

AL Designated countries for regional patents

Kind code of ref document: A3

Designated state(s): GH GM KE LS MW MZ SD SL SZ TZ UG ZW AM AZ BY KG KZ MD RU TJ TM AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE BF BJ CF CG CI CM GA GN GW ML MR NE SN TD TG

WWE Wipo information: entry into national phase

Ref document number: 10070092

Country of ref document: US

REG Reference to national code

Ref country code: DE

Ref legal event code: 8642

AK Designated states

Kind code of ref document: C2

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BY BZ CA CH CN CR CU CZ DE DK DM DZ EE ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NO NZ PL PT RO RU SD SE SG SI SK SL TJ TM TR TT TZ UA UG US UZ VN YU ZA ZW

AL Designated countries for regional patents

Kind code of ref document: C2

Designated state(s): GH GM KE LS MW MZ SD SL SZ TZ UG ZW AM AZ BY KG KZ MD RU TJ TM AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE BF BJ CF CG CI CM GA GN GW ML MR NE SN TD TG

COP Corrected version of pamphlet

Free format text: PAGES 1/5-5/5, DRAWINGS, REPLACED BY NEW PAGES 1/6-6/6; DUE TO LATE TRANSMITTAL BY THE RECEIVING OFFICE

122 Ep: pct application non-entry in european phase
NENP Non-entry into the national phase

Ref country code: JP