RISC computer with unaligned reference handling and method for the same
DCFirst Claim
Patent Images
1. In a reduced instruction set computer with a memory holding m-bit words separated by word boundaries, a device for retrieving an unaligned reference from said memory comprising:
- a. a general register;
b. means for retrieving a first word containing a first portion of said unaligned reference in response to a nth instruction and a second word containing a second portion of said unaligned reference from said memory in response to an (n+k)th instruction;
c. shifting means for shifting said first portion to a first position and second portion to a second position; and
d. combining means for combining said first and second portions in said general register, wherein k and n are positive integers.
4 Assignments
Litigations
0 Petitions
Reexaminations
Accused Products
Abstract
In a RISC device a set of four instructions are provided which allow either the loading or the storage of an unaligned reference. The instructions are overlapped to reduce the overall execution time of the device. A circuit is also provided for executing the instruction set.
197 Citations
14 Claims
-
1. In a reduced instruction set computer with a memory holding m-bit words separated by word boundaries, a device for retrieving an unaligned reference from said memory comprising:
-
a. a general register; b. means for retrieving a first word containing a first portion of said unaligned reference in response to a nth instruction and a second word containing a second portion of said unaligned reference from said memory in response to an (n+k)th instruction; c. shifting means for shifting said first portion to a first position and second portion to a second position; and d. combining means for combining said first and second portions in said general register, wherein k and n are positive integers.
-
-
2. In reduced instruction set computer, a device for storing an unaligned reference into a memory with m-bit locations comprising:
-
shifting means for shifting said unaligned reference in a first direction in response to an nth instruction and in a second direction in response to (n+k)th instruction, said means generating sequentially a first and second portion each having less than m-bits; and means for storing said first and second portions sequentially into said memory, wherein k and n are positive integers.
-
-
3. In a reduced instruction set computer with a memory for holding m-bit words, a device for loading a first unaligned reference having first and second portions of less than m-bits, said first portion being stored into a first section of said memory and said second portion being stored into a second section of said memory, and for storing a second aligned reference into said first and said second sections, comprising:
-
a shift/merge unit having first and second inputs and being provided to shift first data bytes received from said first input, said first input being coupled to said memory unit to receive said first and second portions sequentially, and merge said first data bytes with second data bytes from said second input to form an m-bit word; a first latch means for storing said first and second data bytes, said latch having an output coupled to said second input; an m-bit general register coupled to said first latch means and provided for holding selectively one of said first or second unaligned references; a second latch means coupled to said register for storing said second unaligned reference; shifting means for shifting said second unaligned references; and output means for storing said second unaligned reference after shifting by said shifting means into said memory. - View Dependent Claims (4, 5, 6, 7, 8)
-
-
9. A method of loading an m-bit unaligned reference from a memory, said memory holding m-bit words separated by word boundaries, said m-bit unaligned reference being divided into a first portion and a second portion by a word boundary, comprising the steps of:
-
a. retrieving a first word from said memory containing said first portion during an (nth) instruction; b. shifting said first portion to a first position; c. retrieving a second word containing said second portion during an (n+k)th instruction; d. shifting said second portion to a second position; and e. merging said first and second portions; wherein said k and n are positive integers and wherein said first and second portions have less than m bits. - View Dependent Claims (10, 11)
-
-
12. A method of storing an unaligned reference into a computer memory, said computer memory holding m-bit locations separated by word boundaries, comprising the steps of:
-
a. shifting a first portion of said reference to a first portion; b. storing said first portion in one location within an nth instruction; c. shifting a second portion of second portion of said reference to a second position; and d. storing said second portion to a second location within an (n+k)th instruction, wherein n and k are positive integers and wherein said first and second portions have less than m bits. - View Dependent Claims (13, 14)
-
Specification