ArgParser.scala (b8890d17139ff69a6f58f35768453b283846dd0b) ArgParser.scala (839e5512b11a14daed2f8e8e654ac047f4cc50ae)
1/***************************************************************************************
2* Copyright (c) 2020-2021 Institute of Computing Technology, Chinese Academy of Sciences
3* Copyright (c) 2020-2021 Peng Cheng Laboratory
4*
5* XiangShan is licensed under Mulan PSL v2.
6* You can use this software according to the terms and conditions of the Mulan PSL v2.
7* You may obtain a copy of Mulan PSL v2 at:
8* http://license.coscl.org.cn/MulanPSL2

--- 21 unchanged lines hidden (view full) ---

30 |XiangShan Options
31 |--xs-help print this help message
32 |--config <ConfigClassName>
33 |--num-cores <Int>
34 |--with-dramsim3
35 |--fpga-platform
36 |--enable-difftest
37 |--enable-log
1/***************************************************************************************
2* Copyright (c) 2020-2021 Institute of Computing Technology, Chinese Academy of Sciences
3* Copyright (c) 2020-2021 Peng Cheng Laboratory
4*
5* XiangShan is licensed under Mulan PSL v2.
6* You can use this software according to the terms and conditions of the Mulan PSL v2.
7* You may obtain a copy of Mulan PSL v2 at:
8* http://license.coscl.org.cn/MulanPSL2

--- 21 unchanged lines hidden (view full) ---

30 |XiangShan Options
31 |--xs-help print this help message
32 |--config <ConfigClassName>
33 |--num-cores <Int>
34 |--with-dramsim3
35 |--fpga-platform
36 |--enable-difftest
37 |--enable-log
38 |--with-chiseldb
39 |--with-rollingdb
38 |--disable-perf
39 |--mfc
40 |""".stripMargin
41
42 def getConfigByName(confString: String): Parameters = {
43 var prefix = "top." // default package is 'top'
44 if(confString.contains('.')){ // already a full name
45 prefix = ""

--- 25 unchanged lines hidden (view full) ---

71 case "--with-dramsim3" :: tail =>
72 nextOption(config.alter((site, here, up) => {
73 case DebugOptionsKey => up(DebugOptionsKey).copy(UseDRAMSim = true)
74 }), tail)
75 case "--with-chiseldb" :: tail =>
76 nextOption(config.alter((site, here, up) => {
77 case DebugOptionsKey => up(DebugOptionsKey).copy(EnableChiselDB = true)
78 }), tail)
40 |--disable-perf
41 |--mfc
42 |""".stripMargin
43
44 def getConfigByName(confString: String): Parameters = {
45 var prefix = "top." // default package is 'top'
46 if(confString.contains('.')){ // already a full name
47 prefix = ""

--- 25 unchanged lines hidden (view full) ---

73 case "--with-dramsim3" :: tail =>
74 nextOption(config.alter((site, here, up) => {
75 case DebugOptionsKey => up(DebugOptionsKey).copy(UseDRAMSim = true)
76 }), tail)
77 case "--with-chiseldb" :: tail =>
78 nextOption(config.alter((site, here, up) => {
79 case DebugOptionsKey => up(DebugOptionsKey).copy(EnableChiselDB = true)
80 }), tail)
81 case "--with-rollingdb" :: tail =>
82 nextOption(config.alter((site, here, up) => {
83 case DebugOptionsKey => up(DebugOptionsKey).copy(EnableRollingDB = true)
84 }), tail)
79 case "--with-constantin" :: tail =>
80 nextOption(config.alter((site, here, up) => {
81 case DebugOptionsKey => up(DebugOptionsKey).copy(EnableConstantin = true)
82 }), tail)
83 case "--fpga-platform" :: tail =>
84 nextOption(config.alter((site, here, up) => {
85 case DebugOptionsKey => up(DebugOptionsKey).copy(FPGAPlatform = true)
86 }), tail)

--- 28 unchanged lines hidden ---
85 case "--with-constantin" :: tail =>
86 nextOption(config.alter((site, here, up) => {
87 case DebugOptionsKey => up(DebugOptionsKey).copy(EnableConstantin = true)
88 }), tail)
89 case "--fpga-platform" :: tail =>
90 nextOption(config.alter((site, here, up) => {
91 case DebugOptionsKey => up(DebugOptionsKey).copy(FPGAPlatform = true)
92 }), tail)

--- 28 unchanged lines hidden ---