- new Formular for maxBandwidth
- Indention corrected
This commit is contained in:
@@ -382,7 +382,7 @@ tlm_sync_enum Controller<BUSWIDTH>::nb_transport_fw(tlm_generic_payload &payload
|
||||
|
||||
printDebugMessage("[fw] Recording " + phaseNameToString(phase) + " at " + recTime.to_string() + " notification in " + notDelay.to_string());
|
||||
|
||||
// Badnwith IDLE
|
||||
// Badnwith IDLE
|
||||
if (getTotalNumberOfPayloadsInSystem()==1){
|
||||
startBandwithIdleCollector();
|
||||
}
|
||||
|
||||
@@ -228,7 +228,8 @@ struct Dram : sc_module
|
||||
sc_time startTime = dramController->getStartTime();
|
||||
double bandwidth = (activeTime/(endTime-startTime)*100);
|
||||
double bandwidth_IDLE = ((activeTime)/(endTime-startTime-idleTime)*100);
|
||||
double maxBandwidth = ((Configuration::getInstance().memSpec.BusWidth * 1000 * Configuration::getInstance().memSpec.DataRate)/(Configuration::getInstance().memSpec.clk.to_double()))/1.024; // in GiB/s
|
||||
// | clk in Mhz e.g. 800 [MHz] | * | DataRate e.g. 2 | * | BusWidth e.g. 8 | / | 1024 |
|
||||
double maxBandwidth = ( (1000000/Configuration::getInstance().memSpec.clk.to_double()) * Configuration::getInstance().memSpec.DataRate * Configuration::getInstance().memSpec.BusWidth ) / ( 1024 );
|
||||
cout << name() << string("\tTotal Time: \t") <<(endTime-startTime).to_string() << endl;
|
||||
cout << name() << string("\tTotal IDLE: \t") <<idleTime.to_string() << endl;
|
||||
cout << name() << string("\tTotal Active: \t") << activeTime.to_string() << endl;
|
||||
|
||||
Reference in New Issue
Block a user