From 5490f0203f66388aeebe71fe16df41b096c54c81 Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Mon, 6 Jan 2025 12:40:29 +0100 Subject: [PATCH] updates scc --- scc | 2 +- tests/axi4_pin_level/narrow_burst_test.cpp | 23 ++++++++++++---------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/scc b/scc index d6f2a80..e5439d3 160000 --- a/scc +++ b/scc @@ -1 +1 @@ -Subproject commit d6f2a80b1b8aa49506fd6e37e21c38149bcc3ba6 +Subproject commit e5439d3a32faaec0c1ac750c337597b48f855831 diff --git a/tests/axi4_pin_level/narrow_burst_test.cpp b/tests/axi4_pin_level/narrow_burst_test.cpp index 2de4521..65dd339 100644 --- a/tests/axi4_pin_level/narrow_burst_test.cpp +++ b/tests/axi4_pin_level/narrow_burst_test.cpp @@ -7,6 +7,7 @@ #include using namespace sc_core; +using tlm_gp_shared_ptr_vec = std::vector; factory::add tb; @@ -83,11 +84,12 @@ template unsigned run_scenario(STATE& state) { tlm::scc::tlm_gp_shared_ptr trans = prepare_trans(StartAddr, 4, state.BurstLengthByte, state.BurstSizeBytes, 1); trans->set_command(tlm::TLM_READ_COMMAND); - SCCDEBUG(__FUNCTION__) << "run1, iteration " << i << " TX: " << *trans; + SCCDEBUG("run1") << "iteration " << i << " TX: " << *trans; dut.intor_pe.transport(*trans, false); state.read_tx[axi::get_axi_id(*trans)].first.emplace_back(trans); StartAddr += state.BurstSizeBytes; } + SCCDEBUG("run1") << "finished " << state.NumberOfIterations << " iterations"; }); auto run2 = sc_spawn([&dut, &state]() { unsigned int StartAddr{0x2000}; @@ -96,11 +98,12 @@ template unsigned run_scenario(STATE& state) { prepare_trans(StartAddr, 4, state.BurstLengthByte, state.BurstSizeBytes, 2); trans->set_command(tlm::TLM_WRITE_COMMAND); randomize(*trans); - SCCDEBUG(__FUNCTION__) << "run2, iteration " << i << " TX: " << *trans; + SCCDEBUG("run2") << "iteration " << i << " TX: " << *trans; dut.intor_pe.transport(*trans, false); state.write_tx[axi::get_axi_id(*trans)].first.emplace_back(trans); StartAddr += state.BurstSizeBytes; } + SCCDEBUG("run2") << "finished " << state.NumberOfIterations << " iterations"; }); auto run3 = sc_spawn([&dut, &state]() { unsigned int StartAddr{0x1000}; @@ -108,11 +111,12 @@ template unsigned run_scenario(STATE& state) { tlm::scc::tlm_gp_shared_ptr trans = prepare_trans(StartAddr, 4, state.BurstLengthByte, state.BurstSizeBytes, 3); trans->set_command(tlm::TLM_READ_COMMAND); - SCCDEBUG(__FUNCTION__) << "run3, iteration " << i << " TX: " << *trans; + SCCDEBUG("run3") << "iteration " << i << " TX: " << *trans; dut.intor_pe.transport(*trans, false); state.read_tx[axi::get_axi_id(*trans)].first.emplace_back(trans); StartAddr += state.BurstSizeBytes; } + SCCDEBUG("run3") << "finished " << state.NumberOfIterations << " iterations"; }); auto run4 = sc_spawn([&dut, &state]() { unsigned int StartAddr{0x3000}; @@ -121,11 +125,12 @@ template unsigned run_scenario(STATE& state) { prepare_trans(StartAddr, 4, state.BurstLengthByte, state.BurstSizeBytes, 4); trans->set_command(tlm::TLM_WRITE_COMMAND); randomize(*trans); - SCCDEBUG(__FUNCTION__) << "run4, iteration " << i << " TX: " << *trans; + SCCDEBUG("run4") << "iteration " << i << " TX: " << *trans; dut.intor_pe.transport(*trans, false); state.write_tx[axi::get_axi_id(*trans)].first.emplace_back(trans); StartAddr += state.BurstSizeBytes; } + SCCDEBUG("run4") << "finished " << state.NumberOfIterations << " iterations"; }); unsigned cycles{0}; @@ -142,9 +147,8 @@ void axi4_burst_alignment(bool pipelined_wrreq, bool write_bp) { unsigned int BurstLengthByte{16}; unsigned int BurstSizeBytes{8}; unsigned int NumberOfIterations{8}; - std::unordered_map, std::vector>> read_tx; - std::unordered_map, std::vector>> - write_tx; + std::unordered_map> read_tx; + std::unordered_map> write_tx; unsigned resp_cnt{0}; } state; @@ -184,9 +188,8 @@ void axi4_narrow_burst(bool pipelined_wrreq, bool write_bp) { unsigned int BurstLengthByte{16}; unsigned int BurstSizeBytes{4}; unsigned int NumberOfIterations{8}; - std::unordered_map, std::vector>> read_tx; - std::unordered_map, std::vector>> - write_tx; + std::unordered_map> read_tx; + std::unordered_map> write_tx; unsigned resp_cnt{0}; } state;