ParaNut SystemC Model
A SystemC Model of the ParaNut architecture
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
MLsu Class Reference

#include <lsu.h>

Inheritance diagram for MLsu:
Inheritance graph
[legend]
Collaboration diagram for MLsu:
Collaboration graph
[legend]

Public Member Functions

 MLsu (sc_module_name name)
 
void Trace (sc_trace_file *tf, int level=1)
 
void OutputMethod ()
 
void TransitionMethod ()
 

Public Attributes

sc_in< bool > clk
 
sc_in< bool > reset
 
sc_in< bool > rd
 
sc_in< bool > wr
 
sc_in< bool > flush
 
sc_in< sc_uint< 3 > > cache_op
 
sc_in< bool > lres_scond
 
sc_in< bool > exts
 
sc_in< bool > dcache_enable
 
sc_in< sc_uint< 32 > > adr
 
sc_in< sc_uint< 32 > > wdata
 
sc_in< sc_uint< 2 > > width
 
sc_in< bool > trap_u
 
sc_in< bool > trap_no_u
 
sc_out< bool > ac_u
 
sc_out< bool > ac_r
 
sc_out< bool > ac_w
 
sc_in< bool > paging
 
sc_out< bool > ack
 
sc_out< bool > align_err
 
sc_out< bool > scond_ok
 
sc_out< sc_uint< 32 > > rdata
 
sc_out< bool > rp_rd
 
sc_out< bool > rp_paging
 
sc_out< sc_uint< 4 > > rp_bsel
 
sc_in< bool > rp_ack
 
sc_out< sc_uint< 32 > > rp_adr
 
sc_in< sc_uint< 32 > > rp_data
 
sc_out< bool > rp_direct
 
sc_in< bool > rp_ac_r
 
sc_in< bool > rp_ac_u
 
sc_out< bool > wp_wr
 
sc_out< bool > wp_paging
 
sc_out< sc_uint< 4 > > wp_bsel
 
sc_in< bool > wp_ack
 
sc_out< bool > wp_lres_scond
 
sc_in< bool > wp_scond_ok
 
sc_out< sc_uint< 3 > > wp_cache_op
 
sc_out< sc_uint< 32 > > wp_adr
 
sc_out< sc_uint< 32 > > wp_data
 
sc_out< bool > wp_direct
 
sc_in< bool > wp_ac_w
 
sc_out< bool > wp_trap_u
 
sc_out< bool > wp_trap_no_u
 

Protected Member Functions

int FindWbufHit (sc_uint< 30 > adr)
 
int FindEmptyWbufEntry ()
 

Protected Attributes

sc_signal< SWbufEntrywbuf [CFG_LSU_WBUF_SIZE]
 
sc_signal< bool > wp_ack_reg
 
sc_signal< bool > paging_reg
 
sc_signal< bool > wbuf_dirty0
 
sc_signal< sc_uint< CFG_LSU_WBUF_SIZE_LD+1 > > wbuf_hit_reg
 
sc_signal< sc_uint< 32 > > sig_wbdata
 
sc_signal< sc_uint< 4 > > sig_wbbsel
 
sc_signal< sc_uint< CFG_LSU_WBUF_SIZE_LD+1 > > sig_wbuf_entry
 
sc_signal< sc_uint< CFG_LSU_WBUF_SIZE_LD+1 > > sig_wbuf_entry_new
 
sc_signal< sc_uint< CFG_LSU_WBUF_SIZE_LD+1 > > sig_wbuf_hit
 
sc_signal< bool > sig_wbuf_remove
 
sc_signal< bool > sig_wbuf_write
 
sc_signal< sc_uint< 2 > > adr_offset
 

Constructor & Destructor Documentation

◆ MLsu()

MLsu::MLsu ( sc_module_name  name)
inline

Member Function Documentation

◆ FindEmptyWbufEntry()

int MLsu::FindEmptyWbufEntry ( )
protected

◆ FindWbufHit()

int MLsu::FindWbufHit ( sc_uint< 30 >  adr)
protected

◆ OutputMethod()

void MLsu::OutputMethod ( )

◆ Trace()

void MLsu::Trace ( sc_trace_file *  tf,
int  level = 1 
)

◆ TransitionMethod()

void MLsu::TransitionMethod ( )

Member Data Documentation

◆ ac_r

sc_out<bool> MLsu::ac_r

◆ ac_u

sc_out<bool> MLsu::ac_u

◆ ac_w

sc_out<bool> MLsu::ac_w

◆ ack

sc_out<bool> MLsu::ack

◆ adr

sc_in<sc_uint<32> > MLsu::adr

◆ adr_offset

sc_signal<sc_uint<2> > MLsu::adr_offset
protected

◆ align_err

sc_out<bool> MLsu::align_err

◆ cache_op

sc_in<sc_uint<3> > MLsu::cache_op

◆ clk

sc_in<bool> MLsu::clk

◆ dcache_enable

sc_in<bool> MLsu::dcache_enable

◆ exts

sc_in<bool> MLsu::exts

◆ flush

sc_in<bool> MLsu::flush

◆ lres_scond

sc_in<bool> MLsu::lres_scond

◆ paging

sc_in<bool> MLsu::paging

◆ paging_reg

sc_signal<bool> MLsu::paging_reg
protected

◆ rd

sc_in<bool> MLsu::rd

◆ rdata

sc_out<sc_uint<32> > MLsu::rdata

◆ reset

sc_in<bool> MLsu::reset

◆ rp_ac_r

sc_in<bool> MLsu::rp_ac_r

◆ rp_ac_u

sc_in<bool> MLsu::rp_ac_u

◆ rp_ack

sc_in<bool> MLsu::rp_ack

◆ rp_adr

sc_out<sc_uint<32> > MLsu::rp_adr

◆ rp_bsel

sc_out<sc_uint<4> > MLsu::rp_bsel

◆ rp_data

sc_in<sc_uint<32> > MLsu::rp_data

◆ rp_direct

sc_out<bool> MLsu::rp_direct

◆ rp_paging

sc_out<bool> MLsu::rp_paging

◆ rp_rd

sc_out<bool> MLsu::rp_rd

◆ scond_ok

sc_out<bool> MLsu::scond_ok

◆ sig_wbbsel

sc_signal<sc_uint<4> > MLsu::sig_wbbsel
protected

◆ sig_wbdata

sc_signal<sc_uint<32> > MLsu::sig_wbdata
protected

◆ sig_wbuf_entry

sc_signal<sc_uint<CFG_LSU_WBUF_SIZE_LD + 1> > MLsu::sig_wbuf_entry
protected

◆ sig_wbuf_entry_new

sc_signal<sc_uint<CFG_LSU_WBUF_SIZE_LD + 1> > MLsu::sig_wbuf_entry_new
protected

◆ sig_wbuf_hit

sc_signal<sc_uint<CFG_LSU_WBUF_SIZE_LD + 1> > MLsu::sig_wbuf_hit
protected

◆ sig_wbuf_remove

sc_signal<bool> MLsu::sig_wbuf_remove
protected

◆ sig_wbuf_write

sc_signal<bool> MLsu::sig_wbuf_write
protected

◆ trap_no_u

sc_in<bool> MLsu::trap_no_u

◆ trap_u

sc_in<bool> MLsu::trap_u

◆ wbuf

sc_signal<SWbufEntry> MLsu::wbuf[CFG_LSU_WBUF_SIZE]
protected

◆ wbuf_dirty0

sc_signal<bool> MLsu::wbuf_dirty0
protected

◆ wbuf_hit_reg

sc_signal<sc_uint<CFG_LSU_WBUF_SIZE_LD + 1> > MLsu::wbuf_hit_reg
protected

◆ wdata

sc_in<sc_uint<32> > MLsu::wdata

◆ width

sc_in<sc_uint<2> > MLsu::width

◆ wp_ac_w

sc_in<bool> MLsu::wp_ac_w

◆ wp_ack

sc_in<bool> MLsu::wp_ack

◆ wp_ack_reg

sc_signal<bool> MLsu::wp_ack_reg
protected

◆ wp_adr

sc_out<sc_uint<32> > MLsu::wp_adr

◆ wp_bsel

sc_out<sc_uint<4> > MLsu::wp_bsel

◆ wp_cache_op

sc_out<sc_uint<3> > MLsu::wp_cache_op

◆ wp_data

sc_out<sc_uint<32> > MLsu::wp_data

◆ wp_direct

sc_out<bool> MLsu::wp_direct

◆ wp_lres_scond

sc_out<bool> MLsu::wp_lres_scond

◆ wp_paging

sc_out<bool> MLsu::wp_paging

◆ wp_scond_ok

sc_in<bool> MLsu::wp_scond_ok

◆ wp_trap_no_u

sc_out<bool> MLsu::wp_trap_no_u

◆ wp_trap_u

sc_out<bool> MLsu::wp_trap_u

◆ wp_wr

sc_out<bool> MLsu::wp_wr

◆ wr

sc_in<bool> MLsu::wr

The documentation for this class was generated from the following files: