Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Lucas Magalhães
ifc14x0calib
Commits
d01f81e5
Commit
d01f81e5
authored
Nov 04, 2022
by
Lucas Magalhães
Browse files
General cleanup
parent
ee1ebdff
Changes
1
Hide whitespace changes
Inline
Side-by-side
ifc14x0calib.c
View file @
d01f81e5
...
...
@@ -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
(
"
\n
temp_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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment