ArgParser.scala (c7d010e5062a987c3e027d867e1b2c36061ec895) | ArgParser.scala (a5b77de44ecd30ff2bbdebcfd07ca41d86e70db9) |
---|---|
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 --- 78 unchanged lines hidden (view full) --- 87 case "--fpga-platform" :: tail => 88 nextOption(config.alter((site, here, up) => { 89 case DebugOptionsKey => up(DebugOptionsKey).copy(FPGAPlatform = true) 90 }), tail) 91 case "--enable-difftest" :: tail => 92 nextOption(config.alter((site, here, up) => { 93 case DebugOptionsKey => up(DebugOptionsKey).copy(EnableDifftest = true) 94 }), tail) | 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 --- 78 unchanged lines hidden (view full) --- 87 case "--fpga-platform" :: tail => 88 nextOption(config.alter((site, here, up) => { 89 case DebugOptionsKey => up(DebugOptionsKey).copy(FPGAPlatform = true) 90 }), tail) 91 case "--enable-difftest" :: tail => 92 nextOption(config.alter((site, here, up) => { 93 case DebugOptionsKey => up(DebugOptionsKey).copy(EnableDifftest = true) 94 }), tail) |
95 case "--disable-always-basic-diff" :: tail => 96 nextOption(config.alter((site, here, up) => { 97 case DebugOptionsKey => up(DebugOptionsKey).copy(AlwaysBasicDiff = false) 98 }), tail) | |
99 case "--enable-log" :: tail => 100 nextOption(config.alter((site, here, up) => { 101 case DebugOptionsKey => up(DebugOptionsKey).copy(EnableDebug = true) 102 }), tail) 103 case "--disable-perf" :: tail => 104 nextOption(config.alter((site, here, up) => { 105 case DebugOptionsKey => up(DebugOptionsKey).copy(EnablePerfDebug = false) 106 }), tail) | 95 case "--enable-log" :: tail => 96 nextOption(config.alter((site, here, up) => { 97 case DebugOptionsKey => up(DebugOptionsKey).copy(EnableDebug = true) 98 }), tail) 99 case "--disable-perf" :: tail => 100 nextOption(config.alter((site, here, up) => { 101 case DebugOptionsKey => up(DebugOptionsKey).copy(EnablePerfDebug = false) 102 }), tail) |
103 case "--xstop-prefix" :: value :: tail if chisel3.BuildInfo.version != "3.6.0" => 104 nextOption(config.alter((site, here, up) => { 105 case SoCParamsKey => up(SoCParamsKey).copy(XSTopPrefix = Some(value)) 106 }), tail) |
|
107 case "--firtool-opt" :: option :: tail => 108 firtoolOpts ++= option.split(" ").filter(_.nonEmpty) 109 nextOption(config, tail) 110 case option :: tail => 111 // unknown option, maybe a firrtl option, skip 112 firrtlOpts :+= option 113 nextOption(config, tail) 114 } 115 } 116 var config = nextOption(default, args.toList) 117 (config, firrtlOpts, firtoolOpts) 118 } 119} | 107 case "--firtool-opt" :: option :: tail => 108 firtoolOpts ++= option.split(" ").filter(_.nonEmpty) 109 nextOption(config, tail) 110 case option :: tail => 111 // unknown option, maybe a firrtl option, skip 112 firrtlOpts :+= option 113 nextOption(config, tail) 114 } 115 } 116 var config = nextOption(default, args.toList) 117 (config, firrtlOpts, firtoolOpts) 118 } 119} |