ParaNut SystemC Model
A SystemC Model of the ParaNut architecture
|
Macros | |
#define | SINGLE_CPU (CFG_NUT_CPU_CORES_LD==0) |
#define | IDX_OF_CPU_IN_PORT(cpu) (CFG_MEMU_BANK_RAM_PORTS == 2 ? (cpu>>1) : cpu) |
#define | IDX_OF_CPU(cpu) (CFG_MEMU_BANK_RAM_PORTS == 2 ? (cpu>>1)*3 : cpu*3) |
#define | IDX_RP(cpu) (IDX_OF_CPU(cpu)) |
#define | IDX_IP(cpu) (IDX_OF_CPU(cpu) + 1) |
#define | IDX_WP(cpu) (IDX_OF_CPU(cpu) + 2) |
#define | IDX_BUSIF ((CFG_MEMU_RPORTS+CFG_MEMU_WPORTS+SINGLE_CPU) / CFG_MEMU_BANK_RAM_PORTS) |
#define | RAMPORT_BUSIF (CFG_MEMU_BANK_RAM_PORTS - 1) |
#define | RAMPORT(idx) ((idx) == IDX_BUSIF ? RAMPORT_BUSIF : ((idx) % CFG_NUT_CPU_CORES) % CFG_MEMU_BANK_RAM_PORTS) |
Functions | |
ostream & | operator<< (ostream &os, const SCacheTag &t) |
void | sc_trace (sc_trace_file *tf, const SCacheTag &t, const std::string &name) |
ostream & | operator<< (std::ostream &o, const SBusIfRegs &t) |
void | sc_trace (sc_trace_file *tf, const SBusIfRegs &t, const std::string &name) |
ostream & | operator<< (std::ostream &o, const SBusIfMmuRegs &t) |
void | sc_trace (sc_trace_file *tf, const SBusIfMmuRegs &t, const std::string &name) |
#define IDX_BUSIF ((CFG_MEMU_RPORTS+CFG_MEMU_WPORTS+SINGLE_CPU) / CFG_MEMU_BANK_RAM_PORTS) |
#define IDX_IP | ( | cpu | ) | (IDX_OF_CPU(cpu) + 1) |
#define IDX_OF_CPU | ( | cpu | ) | (CFG_MEMU_BANK_RAM_PORTS == 2 ? (cpu>>1)*3 : cpu*3) |
#define IDX_OF_CPU_IN_PORT | ( | cpu | ) | (CFG_MEMU_BANK_RAM_PORTS == 2 ? (cpu>>1) : cpu) |
#define IDX_RP | ( | cpu | ) | (IDX_OF_CPU(cpu)) |
#define IDX_WP | ( | cpu | ) | (IDX_OF_CPU(cpu) + 2) |
#define RAMPORT | ( | idx | ) | ((idx) == IDX_BUSIF ? RAMPORT_BUSIF : ((idx) % CFG_NUT_CPU_CORES) % CFG_MEMU_BANK_RAM_PORTS) |
#define RAMPORT_BUSIF (CFG_MEMU_BANK_RAM_PORTS - 1) |
#define SINGLE_CPU (CFG_NUT_CPU_CORES_LD==0) |
ostream& operator<< | ( | ostream & | os, |
const SCacheTag & | t | ||
) |
ostream& operator<< | ( | std::ostream & | o, |
const SBusIfMmuRegs & | t | ||
) |
ostream& operator<< | ( | std::ostream & | o, |
const SBusIfRegs & | t | ||
) |
void sc_trace | ( | sc_trace_file * | tf, |
const SBusIfMmuRegs & | t, | ||
const std::string & | name | ||
) |
void sc_trace | ( | sc_trace_file * | tf, |
const SBusIfRegs & | t, | ||
const std::string & | name | ||
) |
void sc_trace | ( | sc_trace_file * | tf, |
const SCacheTag & | t, | ||
const std::string & | name | ||
) |