restructure macros for better submoduling
This commit is contained in:
40
build.sbt
40
build.sbt
@@ -2,31 +2,33 @@
|
|||||||
|
|
||||||
import Dependencies._
|
import Dependencies._
|
||||||
|
|
||||||
lazy val commonSettings = Seq(
|
|
||||||
organization := "edu.berkeley.cs",
|
|
||||||
version := "0.1-SNAPSHOT",
|
|
||||||
scalaVersion := "2.11.8",
|
|
||||||
scalacOptions := Seq("-deprecation", "-feature", "-language:reflectiveCalls"),
|
|
||||||
libraryDependencies ++= commonDependencies
|
|
||||||
)
|
|
||||||
|
|
||||||
val defaultVersions = Map(
|
val defaultVersions = Map(
|
||||||
"chisel3" -> "3.1-SNAPSHOT",
|
"chisel3" -> "3.1-SNAPSHOT",
|
||||||
"chisel-iotesters" -> "1.2-SNAPSHOT"
|
"chisel-iotesters" -> "1.2-SNAPSHOT"
|
||||||
)
|
)
|
||||||
|
|
||||||
lazy val mdf = RootProject(file("mdf/scalalib"))
|
lazy val commonSettings = Seq(
|
||||||
|
organization := "edu.berkeley.cs",
|
||||||
|
version := "0.1-SNAPSHOT",
|
||||||
|
scalaVersion := "2.11.8",
|
||||||
|
scalacOptions := Seq("-deprecation", "-feature", "-language:reflectiveCalls"),
|
||||||
|
libraryDependencies ++= commonDependencies,
|
||||||
|
libraryDependencies ++= Seq("chisel3","chisel-iotesters").map {
|
||||||
|
dep: String => "edu.berkeley.cs" %% dep % sys.props.getOrElse(dep + "Version", defaultVersions(dep))
|
||||||
|
},
|
||||||
|
resolvers ++= Seq(
|
||||||
|
Resolver.sonatypeRepo("snapshots"),
|
||||||
|
Resolver.sonatypeRepo("releases")
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
lazy val tapeout = (project in file("tapeout"))
|
lazy val mdf = (project in file("mdf/scalalib"))
|
||||||
|
lazy val macros = (project in file("macros"))
|
||||||
.dependsOn(mdf)
|
.dependsOn(mdf)
|
||||||
.settings(commonSettings)
|
.settings(commonSettings)
|
||||||
.settings(
|
|
||||||
libraryDependencies ++= Seq("chisel3","chisel-iotesters").map {
|
lazy val tapeout = (project in file("tapeout"))
|
||||||
dep: String => "edu.berkeley.cs" %% dep % sys.props.getOrElse(dep + "Version", defaultVersions(dep))
|
.settings(commonSettings)
|
||||||
},
|
|
||||||
resolvers ++= Seq(
|
|
||||||
Resolver.sonatypeRepo("snapshots"),
|
|
||||||
Resolver.sonatypeRepo("releases")
|
|
||||||
)
|
|
||||||
)
|
|
||||||
.settings(scalacOptions in Test ++= Seq("-language:reflectiveCalls"))
|
.settings(scalacOptions in Test ++= Seq("-language:reflectiveCalls"))
|
||||||
|
|
||||||
|
lazy val root = (project in file(".")).aggregate(macros, tapeout)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// See LICENSE for license details.
|
// See LICENSE for license details.
|
||||||
|
|
||||||
package barstools.tapeout.transforms.macros
|
package barstools.macros
|
||||||
|
|
||||||
import firrtl._
|
import firrtl._
|
||||||
import firrtl.ir._
|
import firrtl.ir._
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
// See LICENSE for license details.
|
// See LICENSE for license details.
|
||||||
|
|
||||||
package barstools.tapeout.transforms.macros
|
package barstools.macros
|
||||||
|
|
||||||
import firrtl._
|
import firrtl._
|
||||||
import firrtl.ir._
|
import firrtl.ir._
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
// See LICENSE for license details.
|
// See LICENSE for license details.
|
||||||
|
|
||||||
package barstools.tapeout.transforms.macros
|
package barstools.macros
|
||||||
|
|
||||||
import firrtl._
|
import firrtl._
|
||||||
import firrtl.ir._
|
import firrtl.ir._
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
package barstools.tapeout.transforms.macros.test
|
package barstools.macros
|
||||||
|
|
||||||
import barstools.tapeout.transforms.macros._
|
|
||||||
import firrtl.ir.{Circuit, NoInfo}
|
import firrtl.ir.{Circuit, NoInfo}
|
||||||
import firrtl.passes.RemoveEmpty
|
import firrtl.passes.RemoveEmpty
|
||||||
import firrtl.Parser.parse
|
import firrtl.Parser.parse
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package barstools.tapeout.transforms.macros.test
|
package barstools.macros
|
||||||
|
|
||||||
import firrtl.Utils.ceilLog2
|
import firrtl.Utils.ceilLog2
|
||||||
import mdf.macrolib._
|
import mdf.macrolib._
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
//~ package barstools.tapeout.transforms.macros.test
|
//~ package barstools.macros
|
||||||
|
|
||||||
//~ import java.io.File
|
//~ import java.io.File
|
||||||
|
|
||||||
Reference in New Issue
Block a user