fflush(dump);
}
// read on one clock delay
- if (next_read) {
+ if (top->bram_re) {
fprintf(dump, "bram rd addr %08x din %16lx sel %x ",
- bram_addr, top->bram_do, top->bram_sel);
- if ((mem != NULL) && bram_data1 != top->bram_do) { // check contents
- fprintf(dump, "bram != %16lx ", bram_data1 );
- }
- ascii_dump((unsigned char*)&top->bram_do, 8, dump);
+ top->bram_addr, bram_do, top->bram_sel);
+ ascii_dump((unsigned char*)&bram_do, 8, dump);
fflush(dump);
}
- next_read = top->bram_re;
- bram_addr = top->bram_addr;
- bram_data1 = bram_data;
- // get the contents of the memory
- if ((mem != NULL) && next_read) {
- bram_data = ((unsigned long long*)mem)[bram_addr];
- }
#endif // BRAM_DEBUG
}