URL
https://opencores.org/ocsvn/qspiflash/qspiflash/trunk
Subversion Repositories qspiflash
Compare Revisions
- This comparison shows the changes necessary to convert path
/qspiflash/trunk
- from Rev 16 to Rev 17
- ↔ Reverse comparison
Rev 16 → Rev 17
/bench/cpp/qspiflash_tb.cpp
70,38 → 70,41
} |
|
void tick(void) { |
bool writeout = false; |
m_core->i_qspi_dat = (*m_flash)(m_core->o_qspi_cs_n, |
m_core->o_qspi_sck, m_core->o_qspi_dat); |
|
|
printf("%08lx-WB: %s %s/%s %s %s", |
m_tickcount, |
(m_core->i_wb_cyc)?"CYC":" ", |
(m_core->i_wb_data_stb)?"DSTB":" ", |
(m_core->i_wb_ctrl_stb)?"CSTB":" ", |
(m_core->o_wb_stall)?"STALL":" ", |
(m_core->o_wb_ack)?"ACK":" "); |
printf(" %s@0x%08x[%08x/%08x]", |
(m_core->i_wb_we)?"W":"R", |
(m_core->i_wb_addr), (m_core->i_wb_data), |
(m_core->o_wb_data)); |
printf(" QSPI:%x:%x/%02x/%02x/%2d", |
m_core->i_qspi_dat, m_core->o_qspi_mod, |
m_core->v__DOT__state, |
m_core->v__DOT__lldriver__DOT__state, |
m_core->v__DOT__lldriver__DOT__spi_len); |
printf(" %08x/%08x", m_core->v__DOT__spi_in, |
m_core->v__DOT__lldriver__DOT__r_input); |
printf(" %d,%d,%d/%d,%08x%c", |
m_core->v__DOT__spi_busy, |
m_core->v__DOT__spi_valid, |
m_core->v__DOT__spi_wr, |
m_core->v__DOT__spi_len, |
m_core->v__DOT__spi_out, |
(m_core->v__DOT__write_in_progress)?'W':' '); |
if (writeout) { |
printf("%08lx-WB: %s %s/%s %s %s", |
m_tickcount, |
(m_core->i_wb_cyc)?"CYC":" ", |
(m_core->i_wb_data_stb)?"DSTB":" ", |
(m_core->i_wb_ctrl_stb)?"CSTB":" ", |
(m_core->o_wb_stall)?"STALL":" ", |
(m_core->o_wb_ack)?"ACK":" "); |
printf(" %s@0x%08x[%08x/%08x]", |
(m_core->i_wb_we)?"W":"R", |
(m_core->i_wb_addr), (m_core->i_wb_data), |
(m_core->o_wb_data)); |
printf(" QSPI:%x:%x/%02x/%02x/%2d", |
m_core->i_qspi_dat, m_core->o_qspi_mod, |
m_core->v__DOT__state, |
m_core->v__DOT__lldriver__DOT__state, |
m_core->v__DOT__lldriver__DOT__spi_len); |
printf(" %08x/%08x", m_core->v__DOT__spi_in, |
m_core->v__DOT__lldriver__DOT__r_input); |
printf(" %d,%d,%d/%d,%08x%c", |
m_core->v__DOT__spi_busy, |
m_core->v__DOT__spi_valid, |
m_core->v__DOT__spi_wr, |
m_core->v__DOT__spi_len, |
m_core->v__DOT__spi_out, |
(m_core->v__DOT__write_in_progress)?'W':' '); |
|
printf("\n"); |
} |
|
printf("\n"); |
|
PARENT::tick(); |
} |
|
126,7 → 129,7
unsigned rdv; |
unsigned *rdbuf; |
|
tb->opentrace("qspi.vcd"); |
// tb->opentrace("qspi.vcd"); |
|
tb->load(DEV_RANDOM); |
rdbuf = new unsigned[RDBUFSZ]; |