ArgParser.scala (4a699e275a42daaf03e4f014bad0bb16d893e6ff) | ArgParser.scala (4b2c87ba1d7965f6f2b0a396be707a6e2f6fb345) |
---|---|
1/*************************************************************************************** 2* Copyright (c) 2024 Beijing Institute of Open Source Chip (BOSC) 3* Copyright (c) 2020-2024 Institute of Computing Technology, Chinese Academy of Sciences 4* Copyright (c) 2020-2021 Peng Cheng Laboratory 5* 6* XiangShan is licensed under Mulan PSL v2. 7* You can use this software according to the terms and conditions of the Mulan PSL v2. 8* You may obtain a copy of Mulan PSL v2 at: --- 33 unchanged lines hidden (view full) --- 42 |--fpga-platform 43 |--reset-gen 44 |--enable-difftest 45 |--enable-log 46 |--with-chiseldb 47 |--with-rollingdb 48 |--disable-perf 49 |--disable-alwaysdb | 1/*************************************************************************************** 2* Copyright (c) 2024 Beijing Institute of Open Source Chip (BOSC) 3* Copyright (c) 2020-2024 Institute of Computing Technology, Chinese Academy of Sciences 4* Copyright (c) 2020-2021 Peng Cheng Laboratory 5* 6* XiangShan is licensed under Mulan PSL v2. 7* You can use this software according to the terms and conditions of the Mulan PSL v2. 8* You may obtain a copy of Mulan PSL v2 at: --- 33 unchanged lines hidden (view full) --- 42 |--fpga-platform 43 |--reset-gen 44 |--enable-difftest 45 |--enable-log 46 |--with-chiseldb 47 |--with-rollingdb 48 |--disable-perf 49 |--disable-alwaysdb |
50 |--enable-dfx |
|
50 |""".stripMargin 51 52 def getConfigByName(confString: String): Parameters = { 53 var prefix = "top." // default package is 'top' 54 if(confString.contains('.')){ // already a full name 55 prefix = "" 56 } 57 val c = Class.forName(prefix + confString).getConstructor(Integer.TYPE) --- 125 unchanged lines hidden (view full) --- 183 val openLLCParam = socParam.OpenLLCParamsOpt.map(_.copy( 184 sets = openLLCSets.get 185 )) 186 socParam.copy( 187 L3CacheParamsOpt = newL3Param, 188 OpenLLCParamsOpt = openLLCParam 189 ) 190 }), tail) | 51 |""".stripMargin 52 53 def getConfigByName(confString: String): Parameters = { 54 var prefix = "top." // default package is 'top' 55 if(confString.contains('.')){ // already a full name 56 prefix = "" 57 } 58 val c = Class.forName(prefix + confString).getConstructor(Integer.TYPE) --- 125 unchanged lines hidden (view full) --- 184 val openLLCParam = socParam.OpenLLCParamsOpt.map(_.copy( 185 sets = openLLCSets.get 186 )) 187 socParam.copy( 188 L3CacheParamsOpt = newL3Param, 189 OpenLLCParamsOpt = openLLCParam 190 ) 191 }), tail) |
192 case "--enable-dfx" :: tail => 193 nextOption(config.alter((site, here, up) => { 194 case XSTileKey => up(XSTileKey).map(_.copy(hasMbist = true)) 195 }), tail) |
|
191 case "--seperate-dm-bus" :: tail => 192 nextOption(config.alter((site, here, up) => { 193 case SoCParamsKey => up(SoCParamsKey).copy(SeperateDMBus = true) 194 }), tail) 195 case "--yaml-config" :: yamlFile :: tail => 196 nextOption(YamlParser.parseYaml(config, yamlFile), tail) 197 case option :: tail => 198 // unknown option, maybe a firrtl option, skip --- 21 unchanged lines hidden --- | 196 case "--seperate-dm-bus" :: tail => 197 nextOption(config.alter((site, here, up) => { 198 case SoCParamsKey => up(SoCParamsKey).copy(SeperateDMBus = true) 199 }), tail) 200 case "--yaml-config" :: yamlFile :: tail => 201 nextOption(YamlParser.parseYaml(config, yamlFile), tail) 202 case option :: tail => 203 // unknown option, maybe a firrtl option, skip --- 21 unchanged lines hidden --- |