Exemplo n.º 1
0
void CPersTest00::PersTest00() {
    if (PR3_htValid) {
        switch (PR3_htInst) {
        case TEST00_ENTRY: {
            HtContinue(TEST00_WR0);
            break;
        }
        case TEST00_WR0: {
            S_test00_0_src_v0_data[1] = ((uint8_t)0x0005fe8e04926bc0LL);
            HtContinue(TEST00_ST0);
            break;
        }
        case TEST00_ST0: {
            if (WriteMemBusy()) {
                HtRetry();
                break;
            }
            WriteMem_test00_0_src_v0_data(PR3_memAddr + 0, 0, 3);
            WriteMemPause(TEST00_LD0);
            break;
        }
        case TEST00_LD0: {
            if (ReadMemBusy()) {
                HtRetry();
                break;
            }
            ReadMem_test00_0_dst_v0_data(PR3_memAddr + 0, 1, 0, 2, 2, 0, 2);
            P3_test00_0_dst_s0_data_RdAddr1 = (ht_uint3)1;
            P3_test00_0_dst_s0_data_RdAddr2 = (ht_uint5)0;
            ReadMemPause(TEST00_CHK0);
            break;
        }
        case TEST00_CHK0: {
            if ((uint8_t)GR3_test00_0_dst_s0_data[2][2].test00_0_dst_v0_data[1] != ((uint8_t)0x0005fe8e04926bc0LL)) {
                HtAssert(0, 0);
            }
            HtContinue(TEST00_RTN);
            break;
        }
        case TEST00_RTN: {
            if (SendReturnBusy_test00()) {
                HtRetry();
                break;
            }
            SendReturn_test00();
            break;
        }
        default:
            assert(0);
        }
    }
}
Exemplo n.º 2
0
void CPersTest00::PersTest00() {
    if (PR_htValid) {
        switch (PR_htInst) {
        case TEST00_ENTRY: {
            HtContinue(TEST00_WR);
            break;
        }
        case TEST00_WR: {
            P_test00_0_src_v0_data[0][0] = ((int32_t)0x001fe79ea30a33c0LL);
            HtContinue(TEST00_ST0);
            break;
        }
        case TEST00_ST0: {
            if (WriteMemBusy()) {
                HtRetry();
                break;
            }
            WriteMem_test00_0_src_v0_data(PR_memAddr + 0, 0, 0, 3);
            WriteMemPause(TEST00_LD0);
            break;
        }
        case TEST00_LD0: {
            if (ReadMemBusy()) {
                HtRetry();
                break;
            }
            ReadMem_test00_0_dst_v0_data(PR_memAddr + 0, 0, 0, 3);
            ReadMemPause(TEST00_CHK);
            break;
        }
        case TEST00_CHK: {
            // I never wrote the src var at [0][1]...this shouldn't be equal!
            if ((int32_t)PR_test00_0_dst_v0_data[0][1] == ((int32_t)0x001fe79ea30a33c0LL)) {
                HtAssert(0, 0);
            }
            HtContinue(TEST00_RTN);
            break;
        }
        case TEST00_RTN: {
            if (SendReturnBusy_test00()) {
                HtRetry();
                break;
            }
            SendReturn_test00();
            break;
        }
        default:
            assert(0);
        }
    }
}
Exemplo n.º 3
0
void CPersTest00::PersTest00() {
	if (PR4_htValid) {
		switch (PR4_htInst) {
		case TEST00_ENTRY: {
			HtContinue(TEST00_WR);
			break;
		}
		case TEST00_WR: {
			P4_test00_0_src_v0_data = ((ht_int48)0x0005e9b4c8fece20LL);
			HtContinue(TEST00_ST0);
			break;
		}
		case TEST00_ST0: {
			if (WriteMemBusy()) {
				HtRetry();
				break;
			}
			WriteMem_test00_0_src_v0_data(PR4_memAddr + 0);
			WriteMemPause(TEST00_LD0);
			break;
		}
		case TEST00_LD0: {
			if (ReadMemBusy()) {
				HtRetry();
				break;
			}
			ReadMem_test00_0_src_v0_data(PR4_memAddr + 0);
			ReadMemPause(TEST00_CHK);
			break;
		}
		case TEST00_CHK: {
			if (PR4_test00_0_src_v0_data != (int64_t)0xffffe9b4c8fece20LL) {
				HtAssert(0, 0);
			}
			HtContinue(TEST00_RTN);
			break;
		}
		case TEST00_RTN: {
			if (SendReturnBusy_test00()) {
				HtRetry();
				break;
			}
			SendReturn_test00();
			break;
		}
		default:
			assert(0);
		}
	}
}
Exemplo n.º 4
0
void CPersTest00::PersTest00() {
	if (PR_htValid) {
		switch (PR_htInst) {
		case TEST00_ENTRY: {
			HtContinue(TEST00_WR);
			break;
		}
		case TEST00_WR: {
			PW_test00_0_src_v0_data[0].write_addr(4, 7);
			PW_test00_0_src_v0_data[0] = ((int16_t)0x000e9de7ebf4aec0LL);
			S_test00_1_dst_s0_data.write_addr(3, 3);
			S_test00_1_dst_s0_data.write_mem().test00_1_dst_u0_data.test00_1_dst_u2_data.test00_1_dst_v6_data = ((int16_t)0x000cfb2347be8920LL);
			HtContinue(TEST00_ST0);
			break;
		}
		case TEST00_ST0: {
			if (WriteMemBusy()) {
				HtRetry();
				break;
			}
			WriteMem_test00_0_src_v0_data(PR_memAddr + 0, 4, 7, 0, 1);
			HtContinue(TEST00_ST1);
			break;
		}
		case TEST00_ST1: {
			if (WriteMemBusy()) {
				HtRetry();
				break;
			}
			WriteMem_test00_1_dst_u2_data(PR_memAddr + 64, 3, 3, 1);
			WriteMemPause(TEST00_LD0);
			break;
		}
		case TEST00_LD0: {
			if (ReadMemBusy()) {
				HtRetry();
				break;
			}
			ReadMem_test00_0_dst_v3_data(PR_memAddr + 0, 0, 1, 1);
			HtContinue(TEST00_LD1);
			break;
		}
		case TEST00_LD1: {
			if (ReadMemBusy()) {
				HtRetry();
				break;
			}
			ReadMem_test00_1_dst_u2_data(PR_memAddr + 64, 3, 3, 1);
			ReadMemPause(TEST00_CHK);
			break;
		}
		case TEST00_CHK: {
			if ((int16_t)PR_test00_0_dst_u0_data[0].test00_0_dst_v3_data[1] != ((int16_t)0x000e9de7ebf4aec0LL)) {
				HtAssert(0, 0);
			}
			SR_test00_1_dst_s0_data.read_addr(3, 3);
			printf("EXP: 0x%04x\n", (int16_t)0x000cfb2347be8920LL);
			printf("ACT: 0x%04x\n", (int16_t)S_test00_1_dst_s0_data.read_mem().test00_1_dst_u0_data.test00_1_dst_u2_data.test00_1_dst_v6_data);
			if ((int16_t)S_test00_1_dst_s0_data.read_mem().test00_1_dst_u0_data.test00_1_dst_u2_data.test00_1_dst_v6_data != ((int16_t)0x000cfb2347be8920LL)) {
				HtAssert(0, 0);
			}
			HtContinue(TEST00_RTN);
			break;
		}
		case TEST00_RTN: {
			if (SendReturnBusy_test00()) {
				HtRetry();
				break;
			}
			SendReturn_test00();
			break;
		}
		default:
			assert(0);
		}
	}
}
Exemplo n.º 5
0
void CPersTest00::PersTest00() {
	if (PR_htValid) {
		switch (PR_htInst) {
		case TEST00_ENTRY: {
			HtContinue(TEST00_WR0);
			break;
		}
		case TEST00_WR0: {
			PW_test00_0_src_v0_data.write_addr(0, 7);
			PW_test00_0_src_v0_data = ((int16_t)0x0013c9d0b2ab5b60LL);
			P_test00_1_src_v0_data = ((ht_int53)0x0003070368ff74e0LL);
			HtContinue(TEST00_ST0);
			break;
		}
		case TEST00_ST0: {
			if (WriteMemBusy()) {
				HtRetry();
				break;
			}
			WriteMem_test00_0_src_v0_data(PR_memAddr + 0);
			HtContinue(TEST00_ST1);
			break;
		}
		case TEST00_ST1: {
			if (WriteMemBusy()) {
				HtRetry();
				break;
			}
			WriteMem_test00_1_src_v0_data(PR_memAddr + 64);
			WriteMemPause(TEST00_LD0);
			break;
		}
		case TEST00_LD0: {
			if (ReadMemBusy()) {
				HtRetry();
				break;
			}
			ReadMem_test00_0_dst_v0_data(PR_memAddr + 0);
			HtContinue(TEST00_LD1);
			break;
		}
		case TEST00_LD1: {
			if (ReadMemBusy()) {
				HtRetry();
				break;
			}
			ReadMem_test00_1_src_v0_data(PR_memAddr + 64);
			ReadMemPause(TEST00_CHK0);
			break;
		}
		case TEST00_CHK0: {
			if (SR_test00_0_dst_v0_data[1] != ((int16_t)0x0013c9d0b2ab5b60LL)) {
				HtAssert(0, 0);
			}
			if (PR_test00_1_src_v0_data != ((ht_int53)0x0003070368ff74e0LL)) {
				HtAssert(0, 0);
			}
			HtContinue(TEST00_RTN);
			break;
		}
		case TEST00_RTN: {
			if (SendReturnBusy_test00()) {
				HtRetry();
				break;
			}
			SendReturn_test00();
			break;
		}
		default:
			assert(0);
		}
	}
}