Cleanup of units

This commit is contained in:
Eyck Jentzsch 2017-09-18 10:00:35 +02:00
parent 424cb7e4ba
commit 39f9ee21e4
2 changed files with 6 additions and 5 deletions

View File

@ -63,12 +63,12 @@ int sc_main(int argc, char* argv[]){
///////////////////////////////////////////////////////////////////////////
sysc::tracer trace("simple_system", sysc::tracer::TEXT, vm.count("trace"));
///////////////////////////////////////////////////////////////////////////
// initialize VCD tracer
// instantiate top level
///////////////////////////////////////////////////////////////////////////
sc_trace_file* tf = sc_create_vcd_trace_file("my_db");
simple_system i_simple_system("i_simple_system");
///////////////////////////////////////////////////////////////////////////
// run simulation
///////////////////////////////////////////////////////////////////////////
sc_start(sc_core::sc_time(100, sc_core::SC_NS));
return 0;

View File

@ -24,9 +24,10 @@ void test_initiator::run() {
tlm::tlm_generic_payload gp;
std::array<uint8_t, 4> data;
gp.set_command(tlm::TLM_READ_COMMAND);
gp.set_address(0);
gp.set_address(0x10012000);
gp.set_data_ptr(data.data());
gp.set_data_length(data.size());
gp.set_streaming_width(4);
sc_core::sc_time delay;
intor->b_transport(gp, delay);
wait(10, sc_core::SC_NS);