Skip to content

Commit 3852197

Browse files
committed
Revert "changed DRAMSim.h file to HBMSim.h for SST to be able to use both at the same time + changed ifdef MACROs"
This reverts commit b831299.
1 parent b831299 commit 3852197

27 files changed

+68
-68
lines changed

AddressMapping.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
using namespace std;
3535

36-
namespace HBMSim {
36+
namespace DRAMSim {
3737

3838
unsigned sliceLowerBits(uint64_t& addr, unsigned bits)
3939
{

AddressMapping.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2828
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2929
*********************************************************************************/
30-
#ifndef HBMSIM_ADDRESS_MAPPING_H
31-
#define HBMSIM_ADDRESS_MAPPING_H
30+
#ifndef ADDRESS_MAPPING_H
31+
#define ADDRESS_MAPPING_H
3232

33-
namespace HBMSim {
33+
namespace DRAMSim {
3434
void addressMapping(uint64_t addr, unsigned &chn, unsigned &rnk, unsigned &bnk, unsigned &row,
3535
unsigned &col);
3636
}

BankState.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include "BankState.h"
3232

3333
using namespace std;
34-
using namespace HBMSim;
34+
using namespace DRAMSim;
3535

3636
BankState::BankState():
3737
currentBankState(Idle),

BankState.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2929
*********************************************************************************/
3030

31-
#ifndef HBMSIM_BANKSTATE_H
32-
#define HBMSIM_BANKSTATE_H
31+
#ifndef BANKSTATE_H
32+
#define BANKSTATE_H
3333

3434
#include "SystemConfiguration.h"
3535
#include "BusPacket.h"
3636

37-
namespace HBMSim {
37+
namespace DRAMSim {
3838
enum CurrentBankState
3939
{
4040
Idle,

BusPacket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
#include "BusPacket.h"
3232

33-
using namespace HBMSim;
33+
using namespace DRAMSim;
3434
using namespace std;
3535

3636
BusPacket::BusPacket(BusPacketType packtype, uint64_t physicalAddr,

BusPacket.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2929
*********************************************************************************/
3030

31-
#ifndef HBMSIM_BUSPACKET_H
32-
#define HBMSIM_BUSPACKET_H
31+
#ifndef BUSPACKET_H
32+
#define BUSPACKET_H
3333

3434
#include "SystemConfiguration.h"
3535

36-
namespace HBMSim {
36+
namespace DRAMSim {
3737
enum BusPacketType
3838
{
3939
READ,
@@ -71,7 +71,7 @@ class BusPacket
7171
uint64_t physicalAddress;
7272
void *data;
7373
}; //class BusPacket
74-
} //namespace HBMSim
74+
} //namespace DRAMSim
7575

7676
#endif
7777

Callback.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232

3333
#include <stdint.h> // uint64_t
3434

35-
#ifndef HBMSIM_CALLBACK_H
36-
#define HBMSIM_CALLBACK_H
35+
#ifndef CALLBACK_H
36+
#define CALLBACK_H
3737

38-
namespace HBMSim
38+
namespace DRAMSim
3939
{
4040

4141
template <typename ReturnT, typename Param1T, typename Param2T,
@@ -48,7 +48,7 @@ class CallbackBase
4848
};
4949

5050
template <typename Return, typename Param1T, typename Param2T, typename Param3T>
51-
HBMSim::CallbackBase<Return,Param1T,Param2T,Param3T>::~CallbackBase() {}
51+
DRAMSim::CallbackBase<Return,Param1T,Param2T,Param3T>::~CallbackBase() {}
5252

5353
template <typename ConsumerT, typename ReturnT,
5454
typename Param1T, typename Param2T, typename Param3T >
@@ -81,6 +81,6 @@ class Callback: public CallbackBase<ReturnT,Param1T,Param2T,Param3T>
8181
};
8282

8383
typedef CallbackBase <void, unsigned, uint64_t, uint64_t> TransactionCompleteCB;
84-
} // namespace HBMSim
84+
} // namespace DRAMSim
8585

8686
#endif

CommandQueue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#include "MemoryController.h"
3333
#include <assert.h>
3434

35-
using namespace HBMSim;
35+
using namespace DRAMSim;
3636

3737
CommandQueue::CommandQueue(vector<vector<BankState>>& states) :
3838
bankStates(states),

CommandQueue.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2929
*********************************************************************************/
3030

31-
#ifndef HBMSIM_CMDQUEUE_H
32-
#define HBMSIM_CMDQUEUE_H
31+
#ifndef CMDQUEUE_H
32+
#define CMDQUEUE_H
3333

3434
#include "BusPacket.h"
3535
#include "BankState.h"
@@ -39,7 +39,7 @@
3939

4040
using namespace std;
4141

42-
namespace HBMSim {
42+
namespace DRAMSim {
4343
class CommandQueue : public SimulatorObject
4444
{
4545
private:
@@ -93,7 +93,7 @@ class CommandQueue : public SimulatorObject
9393
vector<vector<unsigned>> tFAWCountdown;
9494
vector<vector<unsigned>> rowAccessCounters;
9595
}; //class CommandQueue
96-
} //namespace HBMSim
96+
} //namespace DRAMSim
9797

9898
#endif
9999

HBMSim.h renamed to DRAMSim.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@
2929
*********************************************************************************/
3030

3131

32-
#ifndef HBMSIM_H
33-
#define HBMSIM_H
32+
#ifndef DRAMSIM_H
33+
#define DRAMSIM_H
3434

3535
#include "Callback.h"
3636
#include <string>
3737

3838
using std::string;
3939

40-
namespace HBMSim
40+
namespace DRAMSim
4141
{
4242
class MultiChannelMemorySystem
4343
{

0 commit comments

Comments
 (0)