Skip to content

Commit

Permalink
[build system] add t1-rocketv in build system for link t1 with rocket
Browse files Browse the repository at this point in the history
  • Loading branch information
sequencer committed Jul 26, 2024
1 parent e92ef4a commit 6b00033
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
16 changes: 16 additions & 0 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,21 @@ trait RocketV
def chiselIvy = None
}

object t1rocketv extends T1RocketV

trait T1RocketV
extends millbuild.common.T1RocketVModule
with ScalafmtModule {
def scalaVersion = T(v.scala)
def rocketvModule = rocketv
def t1Module = t1

def chiselModule = Some(chisel)
def chiselPluginJar = T(Some(chisel.pluginModule.jar()))
def chiselPluginIvy = None
def chiselIvy = None
}

object ipemu extends IPEmulator

trait IPEmulator
Expand Down Expand Up @@ -188,6 +203,7 @@ trait Elaborator
ipemu,
rocketv,
rocketemu,
t1rocketv,
)

def mainargsIvy = v.mainargs
Expand Down
10 changes: 10 additions & 0 deletions common.sc
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,16 @@ trait RocketVModule
def moduleDeps = super.moduleDeps ++ Seq(axi4Module, hardfloatModule)
}

// Link T1 example: RocketV+T1
trait T1RocketVModule
extends ScalaModule
with HasChisel {
def rocketvModule: ScalaModule
def t1Module: ScalaModule

def moduleDeps = super.moduleDeps ++ Seq(rocketvModule, t1Module)
}

trait EmuHelperModule
extends ScalaModule
with HasChisel
Expand Down
1 change: 1 addition & 0 deletions nix/t1/t1.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ let
./../../elaborator
./../../configgen/src
./../../rocketv
./../../t1rocketv
./../../rocketemu/src
];
};
Expand Down

0 comments on commit 6b00033

Please sign in to comment.