Commit bbc1ca6 1 parent d387773 commit bbc1ca6 Copy full SHA for bbc1ca6
File tree 4 files changed +11
-10
lines changed
4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ using namespace std;
40
40
using namespace DRAMSim ;
41
41
42
42
Bank::Bank (ostream &dramsim_log_):
43
- rowEntries(NUM_COLS),
44
43
currentState(dramsim_log_),
44
+ rowEntries(NUM_COLS),
45
45
dramsim_log(dramsim_log_)
46
46
{}
47
47
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ $(LIB_NAME_MACOS): $(POBJ)
45
45
@$(CXX ) -M $(CXXFLAGS ) $< > $@
46
46
47
47
% .deppo : % .cpp
48
- $(CXX ) -M $(CXXFLAGS ) -MT" $* .po" $< > $@
48
+ @ $(CXX ) -M $(CXXFLAGS ) -MT" $* .po" $< > $@
49
49
50
50
# build all .cpp files to .o files
51
51
% .o : % .cpp
Original file line number Diff line number Diff line change @@ -38,14 +38,14 @@ using namespace std;
38
38
using namespace DRAMSim ;
39
39
40
40
Rank::Rank (ostream &dramsim_log_) :
41
+ id(-1 ),
41
42
dramsim_log(dramsim_log_),
43
+ isPowerDown(false ),
44
+ refreshWaiting(false ),
45
+ readReturnCountdown(0 ),
42
46
banks(NUM_BANKS, Bank(dramsim_log_)),
43
- bankStates(NUM_BANKS, BankState(dramsim_log_)),
44
- // store the rank #, mostly for convenience and printing
45
- id(-1 ),
46
- isPowerDown(false ),
47
- refreshWaiting(false ),
48
- readReturnCountdown(0 )
47
+ bankStates(NUM_BANKS, BankState(dramsim_log_))
48
+
49
49
{
50
50
51
51
memoryController = NULL ;
Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ class MemoryController; //forward declaration
49
49
class Rank : public SimulatorObject
50
50
{
51
51
private:
52
- ostream &dramsim_log;
53
52
int id;
53
+ ostream &dramsim_log;
54
54
unsigned incomingWriteBank;
55
55
unsigned incomingWriteRow;
56
56
unsigned incomingWriteColumn;
@@ -68,7 +68,6 @@ class Rank : public SimulatorObject
68
68
void powerDown ();
69
69
70
70
// fields
71
- vector<Bank> banks;
72
71
MemoryController *memoryController;
73
72
BusPacket *outgoingDataPacket;
74
73
unsigned dataCyclesLeft;
@@ -77,7 +76,9 @@ class Rank : public SimulatorObject
77
76
// these are vectors so that each element is per-bank
78
77
vector<BusPacket *> readReturnPacket;
79
78
vector<unsigned > readReturnCountdown;
79
+ vector<Bank> banks;
80
80
vector<BankState> bankStates;
81
+
81
82
};
82
83
}
83
84
#endif
You can’t perform that action at this time.
0 commit comments