Remove unused parameters and add Request Buffer's Size parameter in SMS xml config file
This commit is contained in:
@@ -3,10 +3,8 @@
|
||||
<OpenPagePolicy value="1" />
|
||||
<MaxNrOfTransactions value="20" />
|
||||
<Scheduler value="SMS" />
|
||||
<SJFProbability value="0" />
|
||||
<ReadyBatchSize value = "4" />
|
||||
<ReadyBatchThresholdAge value = "10000" />
|
||||
<Capsize value="5" />
|
||||
<SJFProbability value="50" />
|
||||
<RequestBufferSize value = "10" />
|
||||
<PowerDownMode value="NoPowerDown" /> <!-- 4 Modes: NoPowerDown, Staggered, TimeoutPDN, TimeoutSREF -->
|
||||
<PowerDownTimeout value="100" />
|
||||
<!-- Error Modelling -->
|
||||
|
||||
@@ -146,10 +146,8 @@ void Configuration::setParameter(std::string name, std::string value)
|
||||
} else {
|
||||
SJFProbability = string2int(value);
|
||||
}
|
||||
else if (name == "ReadyBatchSize")
|
||||
ReadyBatchSize = string2int(value);
|
||||
else if (name == "ReadyBatchThresholdAge")
|
||||
ReadyBatchThresholdAge = string2int(value);
|
||||
else if (name == "RequestBufferSize")
|
||||
RequestBufferSize = string2int(value);
|
||||
else if(name == "Capsize")
|
||||
Capsize = string2int(value);
|
||||
else if(name == "PowerDownTimeout")
|
||||
|
||||
@@ -63,8 +63,7 @@ struct Configuration
|
||||
unsigned int MaxNrOfTransactions = 8;
|
||||
std::string Scheduler;
|
||||
unsigned int SJFProbability;
|
||||
unsigned int ReadyBatchSize;
|
||||
unsigned int ReadyBatchThresholdAge;
|
||||
unsigned int RequestBufferSize;
|
||||
unsigned int Capsize = 5;
|
||||
sc_time getPowerDownTimeout(){return powerDownTimeoutInClk*memSpec.clk;}
|
||||
EPowerDownMode PowerDownMode = EPowerDownMode::Staggered;
|
||||
|
||||
@@ -248,7 +248,7 @@ void SMS::updateMPKCs(sc_time memClk) {
|
||||
}
|
||||
|
||||
bool SMS::isExceededReqBufferSize(Thread thread) {
|
||||
return requestBuffers[thread].size() == REQUEST_BUFFER_SIZE;
|
||||
return requestBuffers[thread].size() == Configuration::getInstance().RequestBufferSize;
|
||||
}
|
||||
|
||||
bool SMS::isRequestBuffersEmpty() {
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
#define MEDIUM_THRESHOLD_AGE 50
|
||||
#define HIGH_THRESHOLD_AGE 200
|
||||
#define MPKC_RESET_CYCLE 10000
|
||||
#define REQUEST_BUFFER_SIZE 10
|
||||
|
||||
using namespace std;
|
||||
typedef std::deque<gp*>::iterator gp_deque_iterator;
|
||||
|
||||
Reference in New Issue
Block a user