Skip to content

Commit

Permalink
build: can manually disable dfx by DFX=0 (#4353)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang-Haojin authored Mar 4, 2025
1 parent e0d20e1 commit d084f29
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,13 @@ ifeq ($(IMSIC_USE_TL),1)
COMMON_EXTRA_ARGS += --imsic-use-tl
endif

# IMSIC use TileLink rather than AXI4Lite
# enable or disable dfx manually
ifeq ($(DFX),1)
COMMON_EXTRA_ARGS += --enable-dfx
COMMON_EXTRA_ARGS += --dfx true
else
ifeq ($(DFX),0)
COMMON_EXTRA_ARGS += --dfx false
endif
endif

# L2 cache size in KB
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/top/ArgParser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ object ArgParser {
OpenLLCParamsOpt = openLLCParam
)
}), tail)
case "--enable-dfx" :: tail =>
case "--dfx" :: value :: tail =>
nextOption(config.alter((site, here, up) => {
case XSTileKey => up(XSTileKey).map(_.copy(hasMbist = true))
case XSTileKey => up(XSTileKey).map(_.copy(hasMbist = value.toBoolean))
}), tail)
case "--seperate-dm-bus" :: tail =>
nextOption(config.alter((site, here, up) => {
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/top/Configs.scala
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import huancun._
import coupledL2._
import coupledL2.prefetch._

class BaseConfig(n: Int, hasMbist:Boolean = false) extends Config((site, here, up) => {
class BaseConfig(n: Int, hasMbist: Boolean = false) extends Config((site, here, up) => {
case XLen => 64
case DebugOptionsKey => DebugOptions()
case SoCParamsKey => SoCParameters()
Expand Down

0 comments on commit d084f29

Please sign in to comment.