update SCC
This commit is contained in:
@ -10,5 +10,5 @@ set(LIB_SOURCES
|
||||
set(LIBRARY_NAME components)
|
||||
# Define the library
|
||||
add_library(${LIBRARY_NAME} SHARED ${LIB_SOURCES})
|
||||
target_link_libraries (${LIBRARY_NAME} LINK_PUBLIC sc-components)
|
||||
target_link_libraries (${LIBRARY_NAME} LINK_PUBLIC scc)
|
||||
target_include_directories (components PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
@ -55,7 +55,7 @@ void Initiator::thread_process() {
|
||||
wait( dmi_data.get_write_latency() );
|
||||
}
|
||||
|
||||
SCINFO() << "DMI = { " << (cmd ? 'W' : 'R') << ", " << hex << i
|
||||
SCCINFO() << "DMI = { " << (cmd ? 'W' : 'R') << ", " << hex << i
|
||||
<< " } , data = " << hex << data << " at time " << sc_time_stamp();
|
||||
}
|
||||
else
|
||||
@ -101,7 +101,7 @@ void Initiator::thread_process() {
|
||||
dmi_ptr_valid = socket->get_direct_mem_ptr( *trans, dmi_data );
|
||||
}
|
||||
|
||||
SCINFO() << "trans = { " << (cmd ? 'W' : 'R') << ", " << hex << i
|
||||
SCCINFO() << "trans = { " << (cmd ? 'W' : 'R') << ", " << hex << i
|
||||
<< " } , data = " << hex << data << " at time " << sc_time_stamp();
|
||||
}
|
||||
}
|
||||
@ -119,7 +119,7 @@ void Initiator::thread_process() {
|
||||
|
||||
for (unsigned int i = 0; i < n_bytes; i += 4)
|
||||
{
|
||||
SCINFO() << "mem[" << (A + i) << "] = "
|
||||
SCCINFO() << "mem[" << (A + i) << "] = "
|
||||
<< *(reinterpret_cast<unsigned int*>( &data[i] ));
|
||||
}
|
||||
|
||||
@ -131,7 +131,7 @@ void Initiator::thread_process() {
|
||||
|
||||
for (unsigned int i = 0; i < n_bytes; i += 4)
|
||||
{
|
||||
SCINFO() << "mem[" << (A + i) << "] = "
|
||||
SCCINFO() << "mem[" << (A + i) << "] = "
|
||||
<< *(reinterpret_cast<unsigned int*>( &data[i] ));
|
||||
}
|
||||
}
|
||||
|
@ -124,14 +124,14 @@ struct Router: sc_module
|
||||
// Simple fixed address decoding
|
||||
inline unsigned int decode_address( sc_dt::uint64 address, sc_dt::uint64& masked_address )
|
||||
{
|
||||
unsigned int target_nr = static_cast<unsigned int>( (address >> 8) & 0x3 );
|
||||
masked_address = address & 0xFF;
|
||||
unsigned int target_nr = static_cast<unsigned int>( (address >> 10) % initiator_socket.size() );
|
||||
masked_address = address & 0x3FF;
|
||||
return target_nr;
|
||||
}
|
||||
|
||||
inline sc_dt::uint64 compose_address( unsigned int target_nr, sc_dt::uint64 address)
|
||||
{
|
||||
return (target_nr << 8) | (address & 0xFF);
|
||||
return (target_nr << 10) | (address & 0x3FF);
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user