URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk/orpsocv2/bench/sysc
- from Rev 70 to Rev 353
- ↔ Reverse comparison
Rev 70 → Rev 353
/include/Or1200MonitorSC.h
79,7 → 79,7
void memdump(); |
|
// Method used for monitoring and logging transactions on the system bus |
void busMonitor(); |
//void busMonitor(); |
|
// Method to do simulator assisted printf'ing |
void simPrintf(uint32_t stackaddr, uint32_t regparam); |
/include/OrpsocAccess.h
38,8 → 38,10
class Vorpsoc_top_or1200_except; |
class Vorpsoc_top_or1200_sprs; |
class Vorpsoc_top_or1200_dpram; |
// Main memory access class - will change if main memory size or other parameters change |
class Vorpsoc_top_ram_wb_sc_sw__D20_A19_M800000; |
// Main memory access class - will change if main memory size or other |
// parameters change |
//Old ram_wbclass: class Vorpsoc_top_ram_wb_sc_sw__D20_A19_M800000; |
class Vorpsoc_top_wb_ram_b3__D20_A19_M800000; |
// SoC Arbiter class - will also change if any modifications to bus architecture |
class Vorpsoc_top_wb_conbus_top__pi1; |
|
83,7 → 85,7
void set_mem32 (uint32_t addr, uint32_t data); |
// Trigger a $readmemh for the RAM array |
void do_ram_readmemh (void); |
|
/* |
// Arbiter access functions |
uint8_t getWbArbGrant (); |
// Master Signal Access functions |
97,7 → 99,7
bool getWbArbMastStbI (uint32_t mast_num); |
bool getWbArbMastAckO (uint32_t mast_num); |
bool getWbArbMastErrO (uint32_t mast_num); |
|
*/ |
|
|
private: |
107,9 → 109,9
Vorpsoc_top_or1200_except *or1200_except; |
Vorpsoc_top_or1200_sprs *or1200_sprs; |
Vorpsoc_top_or1200_dpram *rf_a; |
/*Vorpsoc_top_ram_wb_sc_sw*/Vorpsoc_top_ram_wb_sc_sw__D20_A19_M800000 *ram_wb_sc_sw; |
/*Vorpsoc_top_ram_wb_sc_sw*//*Vorpsoc_top_ram_wb_sc_sw__D20_A19_M800000*/ Vorpsoc_top_wb_ram_b3__D20_A19_M800000 *ram_wb_sc_sw; |
// Arbiter |
Vorpsoc_top_wb_conbus_top__pi1 *wb_arbiter; |
//Vorpsoc_top_wb_conbus_top__pi1 *wb_arbiter; |
|
}; // OrpsocAccess () |
|
/src/Or1200MonitorSC.cpp
328,7 → 328,8
memdump_start_addr = memdump_start; |
memdump_end_addr = memdump_end; |
} |
|
|
/* |
if (bus_trans_log_enabled) |
{ |
// Setup log file and register the bus monitoring function |
344,10 → 345,11
cout << endl; |
} |
else |
/* Couldn't open */ |
// Couldn't open |
bus_trans_log_enabled = false; |
} |
|
|
if (bus_trans_log_enabled) |
{ |
// Setup profiling function |
355,6 → 357,7
sensitive << clk.pos(); |
dont_initialize(); |
} |
*/ |
|
} // Or1200MonitorSC () |
|
834,7 → 837,7
|
} |
|
|
/* |
void |
Or1200MonitorSC::busMonitor() |
{ |
909,7 → 912,7
return; |
|
} // busMonitor () |
|
*/ |
void |
Or1200MonitorSC::simPrintf(uint32_t stackaddr, uint32_t regparam) |
{ |
/src/OrpsocAccess.cpp
39,11 → 39,14
#include "Vorpsoc_top_or1200_sprs.h" |
#include "Vorpsoc_top_or1200_rf.h" |
#include "Vorpsoc_top_or1200_dpram.h" |
//#include "Vorpsoc_top_ram_wb.h" |
//#include "Vorpsoc_top_ram_wb_sc_sw.h" |
#include "Vorpsoc_top_ram_wb__D20_A19_M800000.h" |
#include "Vorpsoc_top_ram_wb_sc_sw__D20_A19_M800000.h" |
#include "Vorpsoc_top_wb_conbus_top__pi1.h" |
// Need RAM instantiation has parameters after module name |
// Includes for wb_ram |
//#include "Vorpsoc_top_ram_wb__D20_A19_M800000.h" |
//#include "Vorpsoc_top_ram_wb_sc_sw__D20_A19_M800000.h" |
// Include for wb_ram_b3 |
#include "Vorpsoc_top_wb_ram_b3__D20_A19_M800000.h" |
// Bus arbiter include - but is for old arbiter, no longer used |
//#include "Vorpsoc_top_wb_conbus_top__pi1.h" |
|
//! Constructor for the ORPSoC access class |
|
60,9 → 63,11
or1200_sprs = orpsoc_top->v->i_or1k->i_or1200_top->or1200_cpu->or1200_sprs; |
rf_a = orpsoc_top->v->i_or1k->i_or1200_top->or1200_cpu->or1200_rf->rf_a; |
// Assign main memory accessor objects |
ram_wb_sc_sw = orpsoc_top->v->ram_wb0->ram0; |
// For old ram_wb: ram_wb_sc_sw = orpsoc_top->v->ram_wb0->ram0; |
ram_wb_sc_sw = orpsoc_top->v->ram_wb0; |
|
// Assign arbiter accessor object |
wb_arbiter = orpsoc_top->v->wb_conbus; |
//wb_arbiter = orpsoc_top->v->wb_conbus; |
|
} // OrpsocAccess () |
|
324,7 → 329,7
|
} // getSprEsr () |
|
|
/* |
//! Access for the arbiter's grant signal |
|
//! @return The value of the wb_conmax_top.arb signal |
450,3 → 455,4
|
} // getWbArbMastErrO () |
|
*/ |