Transaction-Level Modeling Framework for Space Applications
Classes | |
class | pair |
class | basic_teebuf |
class | Color |
Output colors. More... | |
class | Number |
Output colors. More... | |
class | msgstream |
class | logstream |
Typedefs | |
typedef basic_teebuf< char > | teebuf |
Functions | |
teebuf | logbuf (std::cout.rdbuf(), NULL) |
void | logFile (const char *name) |
void | logApplication (const char *name) |
std::ostream & | operator<< (std::ostream &os, const Color &cl) |
Display the color code on the std::ostream. More... | |
std::ostream & | operator<< (std::ostream &os, const Number &n) |
Display the color code on the std::ostream. More... | |
Variables | |
std::ofstream | outfile |
logstream< 0 > error & | logbuf |
Color | bgBlack ("\e[40m") |
Color | bgWhite ("\e[47m") |
Color | bgYellow ("\e[43m") |
Color | bgRed ("\e[41m") |
Color | bgGreen ("\e[42m") |
Color | bgBlue ("\e[44m") |
Color | bgMagenta ("\e[45m") |
Color | bgCyan ("\e[46m") |
Color | Black ("\e[30m") |
Color | White ("\e[37m") |
Color | Yellow ("\e[33m") |
Color | Red ("\e[31m") |
Color | Green ("\e[32m") |
Color | Blue ("\e[34m") |
Color | Magenta ("\e[35m") |
Color | Cyan ("\e[36m") |
Color | Normal ("\e[0m") |
Color | Bold ("\033[1m") |
Color | Blink ("\e[36m") |
Color | Beep ("\e[36m") |
Number | uint64 ("0x", '0', 16, true) |
Number | uint32 ("0x", '0', 8, true) |
Number | uintptr ("0x", '0', 8, true) |
Number | uint16 ("0x", '0', 4, true) |
Number | uint8 ("0x", '0', 2, true) |
Number | noint ("", ' ', 0, false) |
logstream< 0 > | error |
logstream< 1 > | warn |
logstream< 2 > | report |
logstream< 3 > | info |
logstream< 4 > | analysis |
logstream< 5 > | debug |
logstream< 99 > | null_log |
typedef basic_teebuf<char> v::teebuf |
This function is intended to create a logfile next to the executable simply callit like:
v::logApplication(argv[0])
If argv[0] is "./build/test1/mytest" the logfile will be "./build/test1/mytest.log"
name | Application name |
References logFile().
teebuf v::logbuf | ( | std::cout. | rdbuf(), |
NULL | |||
) |
This function can be used if you wish to log all verbose output in a file. The logfile gets filled with data in parallel to the screen output. If you want to end the logging to a file simply call the function with NULL as parameter.
filename | The file name of the logfile. |
References logbuf, and outfile.
Referenced by logApplication().
|
inline |
Display the color code on the std::ostream.
Prints the color code.
|
inline |
Display the color code on the std::ostream.
logstream<4> v::analysis |
Color v::Beep |
Color v::bgBlack |
Linux internal consol color pattern
Color v::bgBlue |
Color v::bgCyan |
Color v::bgGreen |
Color v::bgMagenta |
Color v::bgRed |
Color v::bgWhite |
Color v::bgYellow |
Color v::Black |
Color v::Blink |
Color v::Blue |
Referenced by v::logstream< level >::operator<<().
Color v::Bold |
Color v::Cyan |
Referenced by v::logstream< level >::operator<<().
logstream<5> v::debug |
Referenced by AHBCtrl::AcceptThread(), Irqmp::acknowledged_irq(), Memory::b_transport(), leon3_funclt_trap::IntrTLMPort_32::callbackMethod(), GPCounter::chaining(), GPCounter::ctrl_write(), mmu_cache::dcio_b_transport(), mmu_cache::dcio_nb_transport_fw(), mmu_cache::dcio_service_thread(), mmu::diag_read_dctlb(), mmu::diag_read_itlb(), CLKDevice::dorst(), AHBCtrl::EndResponseThread(), mmu_cache::exec_data(), mmu_cache_base::exec_data(), APBCtrl::exec_func(), Mctrl::exec_func(), mmu_cache::exec_instr(), vectorcache::flush(), Irqmp::force_write(), APBCtrl::getPNPReg(), mmu_cache::icio_b_transport(), mmu_cache::icio_nb_transport_fw(), mmu_cache::icio_service_thread(), Irqmp::incomming_irq(), Irqmp::launch_irq(), mmu::lru_update(), Mctrl::mcfg1_write(), Mctrl::mcfg2_write(), localram::mem_read(), localram::mem_write(), mmu::mmu(), leon3_funclt_trap::PinTLM_out_32::on_run(), CLKDevice::onrst(), Leon3::read_byte(), leon3_funclt_trap::TLMMemory::read_byte(), Leon3::read_byte_dbg(), leon3_funclt_trap::TLMMemory::read_byte_dbg(), leon3_funclt_trap::TLMMemory::read_dword(), Leon3::read_dword(), Leon3::read_dword_dbg(), leon3_funclt_trap::TLMMemory::read_dword_dbg(), Leon3::read_half(), leon3_funclt_trap::TLMMemory::read_half(), Leon3::read_half_dbg(), leon3_funclt_trap::TLMMemory::read_half_dbg(), Leon3::read_instr(), leon3_funclt_trap::TLMMemory::read_instr(), mmu::read_mcr(), mmu::read_mctpr(), mmu::read_mctxr(), mmu::read_mfar(), mmu::read_mfsr(), leon3_funclt_trap::TLMMemory::read_word(), Leon3::read_word(), Leon3::read_word_dbg(), leon3_funclt_trap::TLMMemory::read_word_dbg(), AHBCtrl::RequestThread(), AHBCtrl::ResponseThread(), leon3_funclt_trap::PinTLM_out_32::send_pin_req(), GPCounter::start(), Mctrl::start_of_simulation(), GPCounter::stop(), Mctrl::switch_power_mode(), mmu::tlb_flush(), mmu::tlb_lookup(), mmu::tlb_remove(), AHBCtrl::transport_dbg(), Memory::transport_dbg(), Leon3::write_byte(), leon3_funclt_trap::TLMMemory::write_byte(), Leon3::write_byte_dbg(), leon3_funclt_trap::TLMMemory::write_byte_dbg(), Leon3::write_dword(), leon3_funclt_trap::TLMMemory::write_dword(), Leon3::write_dword_dbg(), leon3_funclt_trap::TLMMemory::write_dword_dbg(), Leon3::write_half(), leon3_funclt_trap::TLMMemory::write_half(), Leon3::write_half_dbg(), leon3_funclt_trap::TLMMemory::write_half_dbg(), mmu::write_mcr(), mmu::write_mctpr(), mmu::write_mctxr(), Leon3::write_word(), leon3_funclt_trap::TLMMemory::write_word(), Leon3::write_word_dbg(), and leon3_funclt_trap::TLMMemory::write_word_dbg().
logstream<0> v::error |
Referenced by AHBCtrl::AcceptThread(), AHBCtrl::b_transport(), Memory::b_transport(), core.tools.cpplint::CheckForBadCharacters(), core.tools.cpplint::CheckForCopyright(), core.tools.cpplint::CheckForHeaderGuard(), core.tools.cpplint::CheckForMultilineCommentsAndStrings(), core.tools.cpplint::CheckForNewlineAtEOF(), APBCtrl::checkMemMap(), mmu_cache::dcio_nb_transport_fw(), mmu_cache::dcio_service_thread(), mmu_cache::exec_data(), APBCtrl::exec_func(), AHBOut::exec_func(), AHBProf::exec_func(), Mctrl::exec_func(), mmu_cache::exec_instr(), grethVPHYHook(), mmu_cache::icio_nb_transport_fw(), mmu_cache::icio_service_thread(), main(), Mctrl::Mctrl(), localram::mem_read(), localram::mem_write(), mmu::mmu(), TimingMonitor::phase_end_timing(), TimingMonitor::phase_get_name(), TimingMonitor::phase_realtime(), TimingMonitor::phase_systime(), core.tools.cpplint::RemoveMultiLineComments(), sc_main(), Mctrl::start_of_simulation(), mmu::tlb_lookup(), AHBCtrl::transport_dbg(), and Mctrl::transport_dbg().
Color v::Green |
Referenced by v::logstream< level >::operator<<().
logstream<3> v::info |
Referenced by AHBIn::AHBIn(), AHBOut::AHBOut(), AHBProf::AHBProf(), APBUART::APBUART(), AHBIn::gen_frame(), powermonitor::gen_report(), AHBMem::get_direct_mem_ptr(), APBCtrl::get_index(), grethVPHYHook(), mmu_cache::icio_nb_transport_fw(), localram::localram(), leon3_funclt_trap::Processor_leon3_funclt::mainLoop(), ivectorcache::mem_write(), mmu::mmu(), Irqmp::pending_write(), AHBCtrl::print_requests(), sc_main(), APBCtrl::start_of_simulation(), Leon3::trigger_exception(), and vectorcache::vectorcache().
Color v::Magenta |
Referenced by v::logstream< level >::operator<<().
Number v::noint |
Color v::Normal |
Referenced by v::logstream< level >::operator<<().
logstream<99> v::null_log |
std::ofstream v::outfile |
Referenced by AHBOut::AHBOut(), AHBOut::exec_func(), logFile(), main(), and AHBOut::~AHBOut().
Color v::Red |
Referenced by v::logstream< level >::operator<<().
logstream<2> v::report |
Referenced by localram::end_of_simulation(), Memory::end_of_simulation(), GPCounter::end_of_simulation(), Irqmp::end_of_simulation(), leon3_funclt_trap::Processor_leon3_funclt::end_of_simulation(), APBCtrl::end_of_simulation(), AHBMem::end_of_simulation(), Mctrl::end_of_simulation(), mmu::end_of_simulation(), mmu_cache_base::end_of_simulation(), vectorcache::end_of_simulation(), AHBProf::exec_func(), AHBCtrl::print_transport_statistics(), TimingMonitor::report_timing(), and sc_main().
Number v::uint16 |
Number v::uint32 |
Referenced by AHBOut::AHBOut(), AHBProf::AHBProf(), Memory::b_transport(), APBCtrl::checkMemMap(), APBCtrl::exec_func(), Mctrl::exec_func(), Irqmp::force_write(), AHBMem::get_direct_mem_ptr(), Irqmp::launch_irq(), Mctrl::mcfg1_write(), Mctrl::mcfg2_write(), mmu::tlb_lookup(), Memory::transport_dbg(), and Mctrl::transport_dbg().
Number v::uint64 |
Number v::uint8 |
Number v::uintptr |
logstream<1> v::warn |
Referenced by nocache::check_mode(), nocache::dbg_out(), APBCtrl::exec_func(), AHBOut::exec_func(), AHBProf::exec_func(), Mctrl::exec_func(), nocache::flush(), powermonitor::get_model_name(), Mctrl::mcfg1_write(), Mctrl::mcfg2_write(), nocache::mem_read(), nocache::mem_write(), nocache::read_cache_entry(), nocache::read_cache_tag(), nocache::read_config_reg(), nocache::snoop_invalidate(), APBCtrl::start_of_simulation(), Mctrl::start_of_simulation(), stopSimFunction(), AHBCtrl::transport_dbg(), nocache::write_cache_entry(), and nocache::write_cache_tag().
Color v::White |
Color v::Yellow |
Referenced by v::logstream< level >::operator<<().