Hash index table hash generator apparatus
First Claim
1. Apparatus for generating an entry address into a table from a virtual address in a data processing system, the data processing system having a main store, the virtual address having (1) a first group of bits for addressing within an object and (2) a second group of bits for addressing a particular object, where the size of the table is variable and is dependent upon the size of the main store, the main store having a plurality of objects, comprising:
- first register means for storing a virtual address;
indicating means for indicating the number of entries in the table;
alignment means for aligning the first group of bits relative to the second group of bits based upon the number of entries in the table as indicated by said indicating means;
EXCLUSIVE-OR means connected to receive the first and second groups of bits after they have been aligned by said alignment means and operable to generate a result having a number of bits sufficient to represent the maximum number of entries in the table; and
bit eliminating means for eliminating bits from the result produced by said EXCLUSIVE-OR means based upon the number of entries in the table indicated by said indicating means.
0 Assignments
0 Petitions
Accused Products
Abstract
The present invention discloses an apparatus for the efficient translation of virtual addresses to main storage addresses by means of a hash index table which contains main storage addresses. Hash generator apparatus is provided for generating a uniform distribution of hash index table entry addresses from a non-uniform distribution of virtual addresses in a data processing system, where the size of the hash index table is variable and is based on the size of main storage. A field of bits within the virtual address corresponding to the page identification bits are reversed in order and aligned with two groups of bits from a field of bits within the virtual address corresponding to object identification bits, and the three groups of bits are applied to an EXCLUSIVE-OR circuit. The alignment of the three groups of bits and the size of the hash index table entry addresses generated by the present invention are based on the size of the hash index table.
-
Citations
8 Claims
-
1. Apparatus for generating an entry address into a table from a virtual address in a data processing system, the data processing system having a main store, the virtual address having (1) a first group of bits for addressing within an object and (2) a second group of bits for addressing a particular object, where the size of the table is variable and is dependent upon the size of the main store, the main store having a plurality of objects, comprising:
-
first register means for storing a virtual address; indicating means for indicating the number of entries in the table; alignment means for aligning the first group of bits relative to the second group of bits based upon the number of entries in the table as indicated by said indicating means; EXCLUSIVE-OR means connected to receive the first and second groups of bits after they have been aligned by said alignment means and operable to generate a result having a number of bits sufficient to represent the maximum number of entries in the table; and bit eliminating means for eliminating bits from the result produced by said EXCLUSIVE-OR means based upon the number of entries in the table indicated by said indicating means.
-
-
2. Apparatus for generating a hash index table entry address from a virtual address in a data processing system, the data processing system having a main store, the virtual address having a first group of bits for addressing within an object and a second group of bits for addressing a particular object, where the hash index table size is variable and is based upon the size of the main store, the main store having a plurality of objects, comprising:
-
a virtual address register containing a virtual address for addressing the main store; indicating means for indicating the number of entries in said hash index table; alignment means for aligning the first group of bits relative to the second group of bits based upon the number of entries in said hash index table as indicated by said indicating means; EXCLUSIVE-OR means for EXCLUSIVE-OR'"'"'ing the first group of bits with the second group of bits after the first and second group of bits have been aligned by said alignment means to produce a result having a number of bits encodable to represent the maximum number of entries in said hash index table; and bit eliminating means for eliminating bits from the result produced by said EXCLUSIVE-OR means based upon the number of entries in said hash index table indicated by said indicating means. - View Dependent Claims (3, 4, 5, 6, 7)
-
-
8. Apparatus for generating a hash index table entry address from a virtual address in a data processing system, the data processing system having a main store, the virtual address having first and second groups of bits for addressing a particular segment of virtual storage and a third group of bits for addressing within a segment of virtual storage, where the size of the hash index table is variable and is based upon the size of the main store, the main store having a plurality of segments, comprising:
-
a virtual address register for storing a virtual address; indicating means for indicating the size of the hash index table; reversing means for reversing the order of the third group of bits; alignment means for aligning the first and second groups of bits relative to the group of bits produced by said reversing means based upon the size of the hash index table as indicated by said indicating means; EXCLUSIVE-OR means connected to receive the first and second groups of bits and the group of bits produced by said alignment means and operable to generate a result having a number of bits encodable to represent the maximum number of entries in the table; shift left means for shifting to the left one position the result produced by said EXCLUSIVE-OR means; bit eliminating means for eliminating high order bits from the result produced by said EXCLUSIVE-OR means and said shift left means based upon the size of the hash index table indicated by said indicating means; and adder means for adding the main store address of the beginning of the hash index table to the result obtained from said bit eliminating means, whereby the hash index table entry address corresponding to the virtual address stored in said virtual address register is obtained.
-
Specification