calib delay?

This commit is contained in:
2020-12-16 15:01:39 -06:00
parent e7a23afcb0
commit 99a8661faa
2 changed files with 33 additions and 22 deletions

View File

@@ -53,21 +53,14 @@ int main(int argc, char **argv) {
const unsigned int db_clk_Hz = 10; // 10 ms -> 10 Hz
const unsigned int db_ticks = main_clk_Hz / db_clk_Hz;
// tb->i_calib_delay = 20;
// start pulse
tb->i_startN = 0;
tick(++tickcount, tb, tfp);
tb->i_startN = 1;
for (int k = 0; k < 394; k++)
// for (int k = 0; k < tb->i_calib_delay + 10; k++)
tick(++tickcount, tb, tfp);
for (int k = 0; k < (1<<17); k++)
tick(++tickcount, tb, tfp);
// stop pulse
tb->i_stopN = 0;
tick(++tickcount, tb, tfp);
tb->i_stopN = 1;
for (int k = 0; k < (1<<16); k++)
tick(++tickcount, tb, tfp);