Skip to content

Commit 081db5f

Browse files
authored
mem: Add 8 channel ddr profiling (#703)
Change-Id: I2d3263ada2a0ee6744c4bbf387a1e6a2d9c06f69
1 parent 0e63fe7 commit 081db5f

File tree

8 files changed

+74
-7
lines changed

8 files changed

+74
-7
lines changed

.github/workflows/autotest/gem5-vec.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fs_path = ./configs/example/kmhv2.py --enable-riscv-vector --restore-rvv-cpt
4343
task ={set_env} && ./build/RISCV/gem5.opt \
4444
--outdir=$sublog$ \
4545
{fs_path} \
46-
--dramsim3-ini=./ext/dramsim3/xiangshan_configs/xiangshan_DDR4_8Gb_x8_3200_2ch.ini \
46+
--dramsim3-ini=./ext/dramsim3/xiangshan_configs/xiangshan_DDR4_8Gb_x8_3200_8ch.ini \
4747
--raw-cpt --generic-rv-cpt=$binfile$
4848
post-task =
4949
except-task = echo gem5 running error!

.github/workflows/autotest/gem5.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ task = {set_var} && \
186186
--l2-to-l3-pf-hint \
187187
--l3-hwp-type=WorkerPrefetcher \
188188
--mem-type=DRAMsim3 \
189-
--dramsim3-ini=./ext/dramsim3/xiangshan_configs/xiangshan_DDR4_8Gb_x8_3200_2ch.ini \
189+
--dramsim3-ini=./ext/dramsim3/xiangshan_configs/xiangshan_DDR4_8Gb_x8_3200_8ch.ini \
190190
--generic-rv-cpt=$binfile$ \
191191
--gcpt-restorer={gcpt_path} \
192192
--bp-type=DecoupledBPUWithFTB --enable-loop-predictor --enable-jump-ahead-predictor \

configs/common/xiangshan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def config_xiangshan_inputs(args: argparse.Namespace, sys):
171171
if args.mem_type == 'DRAMsim3' and args.dramsim3_ini is None:
172172
# use relative path to find the dramsim3 ini file, from configs/common/ to root
173173
root_dir = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
174-
args.dramsim3_ini = os.path.join(root_dir, 'ext/dramsim3/xiangshan_configs/xiangshan_DDR4_8Gb_x8_3200_2ch.ini')
174+
args.dramsim3_ini = os.path.join(root_dir, 'ext/dramsim3/xiangshan_configs/xiangshan_DDR4_8Gb_x8_3200_8ch.ini')
175175

176176
if args.mem_type == 'Ramulator2' and args.ramulator2_ini is None:
177177
# use relative path to find the ramulator ini file, from configs/common/ to root

configs/example/se.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def setDefaultArgs(args):
162162
# Set dramsim3_ini path
163163
if not hasattr(args, 'dramsim3_ini') or args.dramsim3_ini is None:
164164
root_dir = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
165-
args.dramsim3_ini = os.path.join(root_dir, 'ext/dramsim3/xiangshan_configs/xiangshan_DDR4_8Gb_x8_3200_2ch.ini')
165+
args.dramsim3_ini = os.path.join(root_dir, 'ext/dramsim3/xiangshan_configs/xiangshan_DDR4_8Gb_x8_3200_8ch.ini')
166166

167167
args = parser.parse_args()
168168

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
[dram_structure]
2+
protocol = DDR4
3+
bankgroups = 4
4+
banks_per_group = 4
5+
rows = 65536
6+
columns = 1024
7+
device_width = 8
8+
BL = 8
9+
10+
[timing]
11+
tCK = 0.63
12+
AL = 0
13+
CL = 16
14+
CWL = 16
15+
tRCD = 18
16+
tRP = 18
17+
tRAS = 52
18+
tRFC = 560
19+
tRFC2 = 416
20+
tRFC4 = 256
21+
tREFI = 12480
22+
tRPRE = 1
23+
tWPRE = 1
24+
tRRD_S = 4
25+
tRRD_L = 8
26+
tWTR_S = 4
27+
tWTR_L = 12
28+
tFAW = 34
29+
tWR = 24
30+
tWR2 = 25
31+
tRTP = 12
32+
tCCD_S = 4
33+
tCCD_L = 8
34+
tCKE = 8
35+
tCKESR = 9
36+
tXS = 576
37+
tXP = 10
38+
tRTRS = 1
39+
40+
[power]
41+
VDD = 1.2
42+
IDD0 = 57
43+
IPP0 = 3.0
44+
IDD2P = 25
45+
IDD2N = 37
46+
IDD3P = 43
47+
IDD3N = 52
48+
IDD4W = 150
49+
IDD4R = 168
50+
IDD5AB = 250
51+
IDD6x = 30
52+
53+
[system]
54+
channel_size = 16384
55+
channels = 8
56+
bus_width = 64
57+
address_mapping = roracobabgch
58+
queue_structure = PER_BANK
59+
refresh_policy = RANK_LEVEL_STAGGERED
60+
row_buf_policy = OPEN_PAGE
61+
cmd_queue_size = 8
62+
trans_queue_size = 32
63+
64+
[other]
65+
epoch_period = 1587301
66+
output_level = 1
67+

util/memory_check/run-xs-with-valgrind.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ valgrind -s --track-origins=yes --log-file=valgrind-out.txt --error-limit=no \
2222
--l2-wrapper-hwp-type=CompositeWithWorkerPrefetcher \
2323
--l2-to-l3-pf-hint --l3-hwp-type=WorkerPrefetcher \
2424
--mem-type=DRAMsim3 \
25-
--dramsim3-ini=$gem5_home/ext/dramsim3/xiangshan_configs/xiangshan_DDR4_8Gb_x8_3200_2ch.ini \
25+
--dramsim3-ini=$gem5_home/ext/dramsim3/xiangshan_configs/xiangshan_DDR4_8Gb_x8_3200_8ch.ini \
2626
--bp-type=DecoupledBPUWithFTB --enable-loop-predictor \
2727
--enable-difftest --difftest-ref-so=$ref_so_path \
2828
--generic-rv-cpt=$test_cpt \

util/pgo/basic_pgo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ $gem5_home/build/RISCV/gem5.opt \
6363
--l1-to-l2-pf-hint --l2-hwp-type=WorkerPrefetcher \
6464
--l2-to-l3-pf-hint --l3-hwp-type=WorkerPrefetcher \
6565
--mem-type=DRAMsim3 \
66-
--dramsim3-ini=$gem5_home/ext/dramsim3/xiangshan_configs/xiangshan_DDR4_8Gb_x8_3200_2ch.ini \
66+
--dramsim3-ini=$gem5_home/ext/dramsim3/xiangshan_configs/xiangshan_DDR4_8Gb_x8_3200_8ch.ini \
6767
--bp-type=DecoupledBPUWithFTB --enable-loop-predictor \
6868
--generic-rv-cpt=$GEM5_PGO_CPT \
6969
--gcpt-restorer=$GCPT_RESTORER \

util/runse.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ WORKLOAD_PATH=$1
2222
--l2-to-l3-pf-hint \
2323
--l3-hwp-type=WorkerPrefetcher \
2424
--mem-type=DRAMsim3 \
25-
--dramsim3-ini=./ext/dramsim3/xiangshan_configs/xiangshan_DDR4_8Gb_x8_3200_2ch.ini \
25+
--dramsim3-ini=./ext/dramsim3/xiangshan_configs/xiangshan_DDR4_8Gb_x8_3200_8ch.ini \
2626
--bp-type=DecoupledBPUWithFTB \
2727
--enable-loop-predictor \
2828
--enable-jump-ahead-predictor \

0 commit comments

Comments
 (0)