No nested namespaces

This commit is contained in:
mariusmonton 2021-11-29 22:21:20 +01:00
parent 8d3d3bb35b
commit d430b23fc6
4 changed files with 158 additions and 152 deletions

View File

@ -21,7 +21,8 @@
#include "BusCtrl.h"
namespace riscv_tlm::peripherals {
namespace riscv_tlm {
namespace peripherals {
/**
* @brief Simple timer peripheral
*
@ -67,5 +68,6 @@ namespace riscv_tlm::peripherals {
sc_dt::sc_uint<64> m_mtimecmp; /**< mtimecmp register */
sc_core::sc_event timer_event; /**< event */
};
}
}
#endif

View File

@ -19,8 +19,9 @@
#include "tlm.h"
#include "tlm_utils/simple_target_socket.h"
namespace riscv_tlm::peripherals {
/**
namespace riscv_tlm {
namespace peripherals {
/**
* @brief Simple trace peripheral
*
* This peripheral outputs to cout any character written to its unique register
@ -60,5 +61,6 @@ namespace riscv_tlm::peripherals {
int ptMaster{};
int xtermPid{};
};
}
}
#endif

View File

@ -9,7 +9,8 @@
#include <cstdint>
#include "Timer.h"
namespace riscv_tlm::peripherals {
namespace riscv_tlm {
namespace peripherals {
SC_HAS_PROCESS(Timer);
Timer::Timer(sc_core::sc_module_name const &name) :
@ -101,5 +102,5 @@ namespace riscv_tlm::peripherals {
trans.set_response_status(tlm::TLM_OK_RESPONSE);
}
}
}

View File

@ -20,7 +20,8 @@
#include "Trace.h"
namespace riscv_tlm::peripherals {
namespace riscv_tlm {
namespace peripherals {
void Trace::xtermLaunch(char *slaveName) const {
char *arg;
@ -112,5 +113,5 @@ namespace riscv_tlm::peripherals {
trans.set_response_status(tlm::TLM_OK_RESPONSE);
}
}
}