35 #ifndef _PARANUTSYSTEM_H
36 #define _PARANUTSYSTEM_H
152 sc_in_clk *wb_clk_i, sc_in<bool> *wb_rst_i, sc_in<bool> *wb_stb_i,
153 sc_in<bool> *wb_cyc_i, sc_in<bool> *wb_we_i, sc_in<sc_uint<3> > *wb_cti_i,
154 sc_in<sc_uint<2> > *wb_bte_i, sc_in<sc_uint<WB_PORT_SIZE/8> > *wb_sel_i,
155 sc_out<bool> *wb_ack_o, sc_out<bool> *wb_err_o, sc_out<bool> *wb_rty_o,
156 sc_in<sc_uint<32> > *wb_adr_i, sc_in<sc_uint<WB_PORT_SIZE> > *wb_dat_i,
157 sc_out<sc_uint<WB_PORT_SIZE> > *wb_dat_o)
158 {interconnect->
AddSlave (start_adr, size, wb_clk_i, wb_rst_i, wb_stb_i, wb_cyc_i, wb_we_i,
159 wb_cti_i, wb_bte_i, wb_sel_i, wb_ack_o, wb_err_o, wb_rty_o, wb_adr_i, wb_dat_i, wb_dat_o);}
210 jtag_dtm_t *jtag_dtm;
214 const char *cfg_elf_filename;
215 int cfg_dump_from, cfg_dump_to;
216 int cfg_perf_lvl = 0;
217 bool cfg_dump_VHDL, cfg_dump_signature;
220 void RunCycles (
const int n = 1);
Helpers, Makros and performance measuring Classes used in most ParaNut files.
Definition: interconnect.h:49
void AddSlave(TWord start_adr, size_t size, MPeripheral *slave)
Definition: interconnect.cpp:128
Complete ParaNut System ready for simulation.
Definition: paranutsystem.h:84
sc_signal< bool > tdi
Definition: paranutsystem.h:104
sc_signal< bool > wb_err
Definition: paranutsystem.h:92
sc_signal< bool > tms
Definition: paranutsystem.h:104
sc_signal< bool > wb_we
Definition: paranutsystem.h:92
sc_signal< bool > wb_cyc
Definition: paranutsystem.h:92
sc_signal< bool > wb_stb
Definition: paranutsystem.h:92
sc_signal< bool > wb_rty
Definition: paranutsystem.h:92
sc_signal< bool > tck
Definition: paranutsystem.h:104
sc_signal< sc_uint< 2 > > wb_bte
Definition: paranutsystem.h:94
sc_signal< sc_uint< CFG_MEMU_BUSIF_WIDTH > > wb_dat_r
Definition: paranutsystem.h:97
sc_signal< bool > wb_ack
Definition: paranutsystem.h:92
sc_signal< bool > tdo
Definition: paranutsystem.h:104
sc_signal< sc_uint< CFG_MEMU_BUSIF_WIDTH > > wb_dat_w
Definition: paranutsystem.h:97
sc_signal< sc_uint< 3 > > wb_cti
Definition: paranutsystem.h:93
sc_signal< bool > ex_int[CFG_NUT_EX_INT]
Definition: paranutsystem.h:102
sc_signal< bool > reset
Definition: paranutsystem.h:91
sc_signal< bool > clk
Definition: paranutsystem.h:91
sc_signal< sc_uint< 32 > > wb_adr
Definition: paranutsystem.h:96
sc_signal< sc_uint< CFG_MEMU_BUSIF_WIDTH/8 > > wb_sel
Definition: paranutsystem.h:95
Class containing the interface for Wishbone slave peripherals.
Definition: paranut-peripheral.h:75
Simulation ready configurable Wishbone slave memory.
Definition: memory.h:159
Definition: remote_bitbang.h:41
#define CFG_NUT_EX_INT
Number of external interrupt lines.
Definition: paranut-config.h:125
#define CFG_MEMU_BUSIF_WIDTH
Busif Data Width.
Definition: paranut-config.h:228
unsigned TWord
Word type (32 Bit).
Definition: base.h:147
void Run()
Start the SystemC simulation and wait for the ParaNut to HALT.
Definition: paranutsystem.cpp:342
void PrintConfig()
Print the current configuration to stderr.
Definition: paranutsystem.cpp:89
~MParaNutSystem()
Destructor destroying all runtime objects.
Definition: paranutsystem.cpp:334
void AddSlave(TWord start_adr, size_t size, MPeripheral *slave)
Add a slave peripheral to the ParaNut System.
Definition: paranutsystem.h:150
void AddInterrupt(TWord index, sc_out< bool > *port)
Add a slave port to the ParaNut Systems internal interrupt input signals.
Definition: paranutsystem.cpp:82
void AddSlave(TWord start_adr, size_t size, sc_in_clk *wb_clk_i, sc_in< bool > *wb_rst_i, sc_in< bool > *wb_stb_i, sc_in< bool > *wb_cyc_i, sc_in< bool > *wb_we_i, sc_in< sc_uint< 3 > > *wb_cti_i, sc_in< sc_uint< 2 > > *wb_bte_i, sc_in< sc_uint< WB_PORT_SIZE/8 > > *wb_sel_i, sc_out< bool > *wb_ack_o, sc_out< bool > *wb_err_o, sc_out< bool > *wb_rty_o, sc_in< sc_uint< 32 > > *wb_adr_i, sc_in< sc_uint< WB_PORT_SIZE > > *wb_dat_i, sc_out< sc_uint< WB_PORT_SIZE > > *wb_dat_o)
Definition: paranutsystem.h:151
void Usage()
Print usage of the command line options to stdout.
Definition: paranutsystem.cpp:66
MParaNutSystem(const int argc, char *argv[])
Create and elablorate the System.
Definition: paranutsystem.cpp:152
Configuration Makros used in most ParaNut files.