Commit d01f81e5 authored by Lucas Magalhães's avatar Lucas Magalhães
Browse files

General cleanup

parent ee1ebdff
......@@ -418,14 +418,6 @@ int main(int argc, char * argv[]) {
xil_read_reg(dev, SMEM_DDR3_CSR[mem - 1], &read_ddr_csr, verbose);
printf("\n\n[DEBUG] SMEM_DDR3_CSR = 0x%08x\n\n", read_ddr_csr);
////Reset calibration register
//// Same as /xil-rw -w /dev/xdma0 $SMEM_DDR3_DELQ $data
//// Same as /xil-rw -w /dev/xdma0 $SMEM_DDR3_IDEL $data
//xil_write_reg(dev, SMEM_DDR3_DELQ[mem - 1], 0, verbose);
//xil_write_reg(dev, SMEM_DDR3_IDEL[mem - 1], 0, verbose);
/* INITIAL READ */
/***************************************************************************/
......@@ -500,10 +492,7 @@ int main(int argc, char * argv[]) {
printf("Default CNT : %02x \n", DEFAULT_DELAY);
printf("\n");
// Reset calibration register
data = 0;
//xil_write_reg(dev, SMEM_DDR3_DELQ[mem - 1], data, verbose);
//xil_write_reg(dev, SMEM_DDR3_IDEL[mem - 1], data, verbose);
// Pass the entire possible delay taps
printf("+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ \n");
......@@ -546,12 +535,7 @@ int main(int argc, char * argv[]) {
if (verbose>=1) {
printf("\ntemp_cnt_value_store[%02d] = @0x%08x \n", j, temp_cnt_value_store[j]);
}
//if(j < 8){
printf("\n DQ[%02d] test >>>>> :\n", j);
//}
//else{
// printf(" DQ[%02d] test >>>>> :", j - 8);
//}
printf("\n DQ[%02d] test >>>>> :\n", j);
// Reset avg_x, start index, number of test passed "ok" and end value for each DQ
avg_x = 0;
......@@ -639,8 +623,6 @@ int main(int argc, char * argv[]) {
if (verbose>=1) {
printf("\n New temp_cnt_value_store[%02d] = 0x%03x \n", j, temp_cnt_value_store[j]);
}
}
}
......@@ -705,7 +687,7 @@ int main(int argc, char * argv[]) {
// Compute new count value and write DELQ
data = final_cnt_value_store[j] << 16;
if (verbose>=1) {
printf("\n Write count value [%02d] 0x%03x \n", j, data);
}
......@@ -716,8 +698,8 @@ int main(int argc, char * argv[]) {
xil_write_reg(dev,SMEM_DDR3_IDEL[mem - 1], data, verbose);
// Enable VTC
xil_write_reg(dev, SMEM_DDR3_IDEL[mem - 1], (uint32_t)vtc_read, verbose);
// Check status
if (ok == 0){
NOK = 1;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment