diff --git a/build.sc b/build.sc index 3aa7d87102..72b2a63014 100644 --- a/build.sc +++ b/build.sc @@ -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 @@ -188,6 +203,7 @@ trait Elaborator ipemu, rocketv, rocketemu, + t1rocketv, ) def mainargsIvy = v.mainargs diff --git a/common.sc b/common.sc index 7f6e5d5c5b..c03b15bc3c 100644 --- a/common.sc +++ b/common.sc @@ -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 diff --git a/nix/t1/t1.nix b/nix/t1/t1.nix index f22296509f..b19c259eb2 100644 --- a/nix/t1/t1.nix +++ b/nix/t1/t1.nix @@ -30,6 +30,7 @@ let ./../../elaborator ./../../configgen/src ./../../rocketv + ./../../t1rocketv ./../../rocketemu/src ]; };