29 September 1997 – Subject To Change
Serial Icache Load Predecode Values
C–3
tag,
predecodes,
owparity;
int device_size;
/*
** define the ROM size in bits to determine the maximum number of instructions allowed
** define the number of bits per instruction for 21164PC ICache
*/
#define ROMSIZE 262144
#define B_PER_INST 64
main(int argc, char *argv[])
{
int i, j;
int instatus, instr_count;
int lines_written;
char *charptr;
int chksum;
int instr[4], outvector[DATA_BYTES_PER_REC/4];
strcpy (filename ,"loadfile.dxe"); /* default file names */
strcpy (ofilename,"loadfile.srom");
strcpy (hfilename,"loadfile.hex");
base = 0;
tag = 0;
asn = 0;
asm = 1;
tphysical= 1;
bhtvector = 0;
offset = 0;
/* for PCA I added 55 bits of padding. One of those bits is reflected in the above
numbers. */
for (i=0; i<128; i++)
dfillmap[i]+=54;
for (i=0; i<8; i++)
BHTfillmap[i]+=54;
for (i=0; i<20; i++)
predfillmap[i]+=54;
octawp=54;
predp=54;
for (i=0; i<29; i++)
tagfillmap[i]+=54;
for (i=0; i<7; i++)
asnfillmap[i]+=54;
asm=54;
tagphys=54;
for (i=0; i<4; i++)
tagvalfillmap[i]+=54;
tagpar=54;