adjust output
This commit is contained in:
@ -116,7 +116,7 @@ struct Memory : dark::Module<Memory_Input, Memory_Output, Memory_Private> {
|
||||
}
|
||||
}
|
||||
completed_memins_read_data <= tmp;
|
||||
std::cerr << "memory read: " << std::hex << std::setfill('0') << std::setw(2) << tmp << " from " << std::hex
|
||||
DEBUG_CERR << "memory read: " << std::hex << std::setfill('0') << std::setw(2) << tmp << " from " << std::hex
|
||||
<< static_cast<max_size_t>(cur_opt_addr) << std::endl;
|
||||
break;
|
||||
}
|
||||
@ -129,13 +129,13 @@ struct Memory : dark::Module<Memory_Input, Memory_Output, Memory_Private> {
|
||||
}
|
||||
}
|
||||
completed_memins_read_data <= tmp;
|
||||
std::cerr << "memory read: " << std::hex << std::setfill('0') << std::setw(4) << tmp << " from " << std::hex
|
||||
DEBUG_CERR << "memory read: " << std::hex << std::setfill('0') << std::setw(4) << tmp << " from " << std::hex
|
||||
<< static_cast<max_size_t>(cur_opt_addr) << std::endl;
|
||||
break;
|
||||
}
|
||||
case 4:
|
||||
completed_memins_read_data <= *reinterpret_cast<uint32_t *>(&memory_data[max_size_t(cur_opt_addr)]);
|
||||
std::cerr << "memory read: " << std::hex << std::setfill('0') << std::setw(8)
|
||||
DEBUG_CERR << "memory read: " << std::hex << std::setfill('0') << std::setw(8)
|
||||
<< *reinterpret_cast<uint32_t *>(&memory_data[max_size_t(cur_opt_addr)]) << " from " << std::hex
|
||||
<< static_cast<max_size_t>(cur_opt_addr) << std::endl;
|
||||
break;
|
||||
@ -188,11 +188,11 @@ struct Memory : dark::Module<Memory_Input, Memory_Output, Memory_Private> {
|
||||
playback[cur_opt_ROB_index].changes[3].addr <= cur_opt_addr + 3;
|
||||
playback[cur_opt_ROB_index].changes[3].before <= memory_data[max_size_t(cur_opt_addr) + 3];
|
||||
*reinterpret_cast<uint32_t *>(&memory_data[max_size_t(cur_opt_addr)]) = max_size_t(cur_opt_data);
|
||||
std::cerr << "Memory executing sw, ROB_index=" << std::dec
|
||||
DEBUG_CERR << "Memory executing sw, ROB_index=" << std::dec
|
||||
<< static_cast<max_size_t>(completed_memins_ROB_index) << std::endl;
|
||||
std::cerr << "\taddr=" << std::hex << std::setfill('0') << std::setw(8)
|
||||
DEBUG_CERR << "\taddr=" << std::hex << std::setfill('0') << std::setw(8)
|
||||
<< static_cast<max_size_t>(cur_opt_addr) << std::endl;
|
||||
std::cerr << "\tdata=" << std::hex << std::setfill('0') << std::setw(8)
|
||||
DEBUG_CERR << "\tdata=" << std::hex << std::setfill('0') << std::setw(8)
|
||||
<< static_cast<max_size_t>(cur_opt_data) << std::endl;
|
||||
break;
|
||||
default:
|
||||
@ -214,7 +214,7 @@ struct Memory : dark::Module<Memory_Input, Memory_Output, Memory_Private> {
|
||||
cur_opt_data <= data_input;
|
||||
cur_opt_type <= rw_type;
|
||||
cur_opt_bytes <= opt_bytes;
|
||||
std::cerr << "Memory is accepting a request" << std::endl;
|
||||
DEBUG_CERR << "Memory is accepting a request" << std::endl;
|
||||
}
|
||||
max_size_t FetchInstruction(max_size_t addr) { // assume we have a super nb instruction fetch method that can fetch
|
||||
// an instruction immediately
|
||||
|
Reference in New Issue
Block a user