Cleanup of units
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user