URL
https://opencores.org/ocsvn/dblclockfft/dblclockfft/trunk
[/] [dblclockfft/] [trunk/] [bench/] [cpp/] [butterfly_tb.cpp] - Diff between revs 23 and 26
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 23 |
Rev 26 |
Line 87... |
Line 87... |
// Let's run a RESET test here, forcing the whole butterfly
|
// Let's run a RESET test here, forcing the whole butterfly
|
// to be filled with aux=1. If the reset works right,
|
// to be filled with aux=1. If the reset works right,
|
// we'll never get an aux=1 output.
|
// we'll never get an aux=1 output.
|
//
|
//
|
m_bfly->i_rst = 1;
|
m_bfly->i_rst = 1;
|
m_bfly->i_ce = 1;
|
|
m_bfly->i_aux = 1;
|
m_bfly->i_aux = 1;
|
for(int i=0; i<200; i++)
|
for(int i=0; i<200; i++) {
|
|
m_bfly->i_ce = 1;
|
tick();
|
tick();
|
|
}
|
|
|
// Now here's the RESET line, so let's see what the test does
|
// Now here's the RESET line, so let's see what the test does
|
m_bfly->i_rst = 1;
|
m_bfly->i_rst = 1;
|
m_bfly->i_ce = 1;
|
m_bfly->i_ce = 1;
|
m_bfly->i_aux = 1;
|
m_bfly->i_aux = 1;
|
Line 115... |
Line 116... |
if ((m_waiting_for_sync_input)&&(aux&1)) {
|
if ((m_waiting_for_sync_input)&&(aux&1)) {
|
m_waiting_for_sync_input = false;
|
m_waiting_for_sync_input = false;
|
m_addr = 0;
|
m_addr = 0;
|
}
|
}
|
|
|
|
m_bfly->i_ce = 1;
|
tick();
|
tick();
|
|
|
if ((m_bfly->o_aux)&&(!m_lastaux))
|
if ((m_bfly->o_aux)&&(!m_lastaux))
|
printf("\n");
|
printf("\n");
|
printf("n,k=%d,%3d: COEF=%010lx, LFT=%08x, RHT=%08x, A=%d, OLFT =%09lx, ORHT=%09lx, AUX=%d\n",
|
printf("n,k=%d,%3d: COEF=%010lx, LFT=%08x, RHT=%08x, A=%d, OLFT =%09lx, ORHT=%09lx, AUX=%d\n",
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.