Skip to content

Commit

Permalink
separate the memory interface implementation from pe such that it can…
Browse files Browse the repository at this point in the history
… be resued and instanced.
  • Loading branch information
Liu-Cheng committed Jun 12, 2017
1 parent 0cc8dc9 commit 8572357
Show file tree
Hide file tree
Showing 19 changed files with 893,011 additions and 31,504 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SYSTEMC_HOME = /usr/local/systemc-2.3.1
SYSTEMC_INC_DIR = $(SYSTEMC_HOME)/include
SYSTEMC_LIB_DIR = $(SYSTEMC_HOME)/lib/x86_64-linux-gnu
SYSTEMC_LIB_DIR = $(SYSTEMC_HOME)/lib-linux64

SRCDIR := src
OBJDIR := obj
Expand All @@ -12,8 +12,9 @@ OBJS := $(patsubst $(SRCDIR)/%.cpp, $(OBJDIR)/%.o, $(SRCS))
# Ramulator currently supports g++ 5.1+ or clang++ 3.4+. It will NOT work with
# g++ 4.x due to an internal compiler error when processing lambda functions.
#CXX := clang++
CXX := g++-5
CFLAGS = -std=c++11 -g -Wall -pedantic -Wno-long-long \
CXX := g++

CFLAGS = -O0 -std=c++11 -g -Wall -pedantic -Wno-long-long \
-DSC_INCLUDE_DYNAMIC_PROCESSES -fpermissive \
-I$(SYSTEMC_INC_DIR)

Expand All @@ -34,6 +35,9 @@ depend: $(OBJDIR)/.depend
exe:
./ramulator configs/DDR3-config.cfg --mode=acc dram.trace

analysis: exe
gprof ./ramulator | gprof2dot -s | dot -Tpdf -o analysis.pdf

gdb:
gdb --args ./ramulator configs/DDR3-config.cfg --mode=acc dram.trace

Expand Down
4 changes: 4 additions & 0 deletions config.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
vecLen 65536
bufferLen 4096
portNum 3
logon 1
Loading

0 comments on commit 8572357

Please sign in to comment.