57 friend void sc_trace( sc_trace_file* f,
const STlbTag& t,
const std::string& _s ) {
88 padr = t.range(19, 0);
98 operator sc_uint<26>() {
99 sc_uint<26> out =
padr;
122 os <<
" padr:" << t.
padr <<
" ac_r:" << t.
ac_r <<
" ac_w:" << t.
ac_w <<
" ac_x:" << t.
ac_x <<
" ac_u:" << t.
ac_u <<
" ac_a:" << t.
ac_a <<
" ac_d:" << t.
ac_d;
139 class MTlb : ::sc_core::sc_module {
172 SC_HAS_PROCESS (
MTlb);
176 sensitive <<
clk.pos ();
180 void Trace (sc_trace_file *
tf,
int level = 1);
Helpers, Makros and performance measuring Classes used in most ParaNut files.
sc_signal< bool > hit_sig
Definition: tlb.h:198
sc_in< bool > ptw_ac_d_i
Definition: tlb.h:157
sc_signal< STlbData > tlb_data[CFG_MMU_TLB_ENTRIES]
Definition: tlb.h:188
MTlb(sc_module_name name)
Definition: tlb.h:173
sc_in< sc_uint< 20 > > ptw_va_i
Definition: tlb.h:149
sc_out< bool > ptw_hit_o
Definition: tlb.h:161
sc_signal< bool > superpage_sig
Definition: tlb.h:197
sc_signal< STlbTag > tlb_tag[CFG_MMU_TLB_ENTRIES]
Definition: tlb.h:187
sc_out< bool > ptw_ac_u_o
Definition: tlb.h:167
sc_in< bool > ptw_superpage_i
Definition: tlb.h:151
sc_in< bool > ptw_ac_x_i
Definition: tlb.h:154
void TransitionMethod()
Definition: tlb.cpp:77
sc_in< bool > ptw_ac_u_i
Definition: tlb.h:155
sc_out< bool > ptw_miss_o
Definition: tlb.h:162
sc_in< bool > flush
Definition: tlb.h:145
sc_in< bool > clk
Definition: tlb.h:142
sc_in< sc_uint< 20 > > ptw_pa_i
Definition: tlb.h:150
sc_out< sc_uint< 20 > > ptw_adr_o
Definition: tlb.h:160
sc_out< bool > ptw_ac_d_o
Definition: tlb.h:169
sc_signal< bool > update_plru_reg
Definition: tlb.h:193
sc_out< bool > ptw_ac_w_o
Definition: tlb.h:165
sc_in< bool > reset
Definition: tlb.h:142
sc_in< bool > ptw_ac_a_i
Definition: tlb.h:156
sc_out< bool > ptw_ac_r_o
Definition: tlb.h:164
sc_signal< bool > miss_sig
Definition: tlb.h:199
sc_in< bool > ptw_req
Definition: tlb.h:148
sc_out< bool > ptw_ac_x_o
Definition: tlb.h:166
sc_out< bool > ptw_superpage_o
Definition: tlb.h:159
sc_in< bool > ptw_wr
Definition: tlb.h:148
sc_signal< sc_uint< CFG_MMU_TLB_ENTRIES_LD > > latest_hit
Definition: tlb.h:192
sc_in< bool > ptw_ac_w_i
Definition: tlb.h:153
sc_signal< bool > wr_done_reg
Definition: tlb.h:194
sc_signal< sc_uint< CFG_MMU_TLB_ENTRIES-1 > > plru_reg
Definition: tlb.h:191
void Trace(sc_trace_file *tf, int level=1)
Definition: tlb.cpp:37
sc_out< bool > ptw_ac_a_o
Definition: tlb.h:168
sc_in< bool > ptw_ac_r_i
Definition: tlb.h:152
#define CFG_MMU_TLB_ENTRIES
Number of TLB entries (derived).
Definition: paranut-config.h:258
Configuration Makros used in most ParaNut files.
bool ac_r
Definition: tlb.h:75
bool ac_a
Definition: tlb.h:79
bool ac_u
Definition: tlb.h:78
friend ostream & operator<<(ostream &os, const STlbData &t)
Definition: tlb.h:121
bool ac_w
Definition: tlb.h:76
sc_uint< 20 > padr
Definition: tlb.h:74
STlbData operator=(const sc_uint< 26 > &t)
Definition: tlb.h:87
bool ac_d
Definition: tlb.h:80
bool operator==(const STlbData &t) const
Definition: tlb.h:83
friend void sc_trace(sc_trace_file *f, const STlbData &t, const std::string &_s)
Definition: tlb.h:128
bool ac_x
Definition: tlb.h:77
bool valid
Definition: tlb.h:37
friend ostream & operator<<(ostream &os, const STlbTag &t)
Definition: tlb.h:65
friend void sc_trace(sc_trace_file *f, const STlbTag &t, const std::string &_s)
Definition: tlb.h:57
sc_uint< 10 > vpn1
Definition: tlb.h:40
bool operator==(const STlbTag &t) const
Definition: tlb.h:52
bool superpage
Definition: tlb.h:38
sc_uint< 10 > vpn0
Definition: tlb.h:41
STlbTag operator=(const STlbTag &t)
Definition: tlb.h:43
sc_trace_file * tf
Definition: tlb_tb.cpp:94