ArgParser.scala (529b1cfdb56763d8c094232c4acac6d4a784b64f) | ArgParser.scala (96f46b96df65ac6a3757057f77266d3013f8c829) |
---|---|
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: --- 76 unchanged lines hidden (view full) --- 85 case XSTileKey => (0 until value.toInt) map { i => 86 up(XSTileKey).head.copy(HartId = i) 87 } 88 case MaxHartIdBits => 89 log2Up(value.toInt) max up(MaxHartIdBits) 90 }), tail) 91 case "--hartidbits" :: hartidbits :: tail => 92 nextOption(config.alter((site, here, up) => { | 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: --- 76 unchanged lines hidden (view full) --- 85 case XSTileKey => (0 until value.toInt) map { i => 86 up(XSTileKey).head.copy(HartId = i) 87 } 88 case MaxHartIdBits => 89 log2Up(value.toInt) max up(MaxHartIdBits) 90 }), tail) 91 case "--hartidbits" :: hartidbits :: tail => 92 nextOption(config.alter((site, here, up) => { |
93 case MaxHartIdBits => hartidbits | 93 case MaxHartIdBits => hartidbits.toInt |
94 }), tail) 95 case "--with-dramsim3" :: tail => 96 nextOption(config.alter((site, here, up) => { 97 case DebugOptionsKey => up(DebugOptionsKey).copy(UseDRAMSim = true) 98 }), tail) 99 case "--with-chiseldb" :: tail => 100 nextOption(config.alter((site, here, up) => { 101 case DebugOptionsKey => up(DebugOptionsKey).copy(EnableChiselDB = true) --- 123 unchanged lines hidden --- | 94 }), tail) 95 case "--with-dramsim3" :: tail => 96 nextOption(config.alter((site, here, up) => { 97 case DebugOptionsKey => up(DebugOptionsKey).copy(UseDRAMSim = true) 98 }), tail) 99 case "--with-chiseldb" :: tail => 100 nextOption(config.alter((site, here, up) => { 101 case DebugOptionsKey => up(DebugOptionsKey).copy(EnableChiselDB = true) --- 123 unchanged lines hidden --- |