Skip to content

Commit

Permalink
Use Chisel 6 for now
Browse files Browse the repository at this point in the history
  • Loading branch information
schoeberl committed Nov 6, 2024
1 parent 63986db commit 6ee398b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
10 changes: 6 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,33 @@ scalacOptions ++= Seq(
"-language:reflectiveCalls",
)


/*
scalaVersion := "2.13.10"
val chiselVersion = "3.5.6"
addCompilerPlugin("edu.berkeley.cs" %% "chisel3-plugin" % chiselVersion cross CrossVersion.full)
libraryDependencies += "edu.berkeley.cs" %% "chisel3" % chiselVersion
libraryDependencies += "edu.berkeley.cs" %% "chiseltest" % "0.5.6"

*/

/*
scalaVersion := "2.13.14"
val chiselVersion = "3.6.1"
addCompilerPlugin("edu.berkeley.cs" %% "chisel3-plugin" % chiselVersion cross CrossVersion.full)
libraryDependencies += "edu.berkeley.cs" %% "chisel3" % chiselVersion
libraryDependencies += "edu.berkeley.cs" %% "chiseltest" % "0.6.2"
*/

/*
scalaVersion := "2.13.14"
val chiselVersion = "5.3.0"
addCompilerPlugin("org.chipsalliance" % "chisel-plugin" % chiselVersion cross CrossVersion.full)
libraryDependencies += "org.chipsalliance" %% "chisel" % chiselVersion
libraryDependencies += "edu.berkeley.cs" %% "chiseltest" % "5.0.2"
*/

/*

scalaVersion := "2.13.14"
val chiselVersion = "6.5.0"
addCompilerPlugin("org.chipsalliance" % "chisel-plugin" % chiselVersion cross CrossVersion.full)
libraryDependencies += "org.chipsalliance" %% "chisel" % chiselVersion
libraryDependencies += "edu.berkeley.cs" %% "chiseltest" % "6.0.0"
*/
12 changes: 7 additions & 5 deletions chisel-book.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1715,12 +1715,14 @@ \subsubsection{Chisel, Scala, and Java Versions}
Scala itself is built on top of Java (using the Java library and running on the JVM)
and therefore depends on a specific Java version. Changes in the Java version needs
updates in the Scala (patch) version. A safe baseline Java version is Java 8, where all Scala and
Chisel versions work. Chisel itself has been maintained to work with Scala 2.12 and
2.13, up to version 5.
Chisel versions work.\footnote{see \url{https://docs.scala-lang.org/overviews/jdk-compatibility/overview.html}}
Chisel itself has been maintained to work with Scala 2.12 and 2.13, up to version 5.
Chisel 6 is based on Scala 2.13 only.\footnote{Getting Chisel to work on top of Scala 3 is work in progress.}
A safe selection is to use Scala 2.13. However, as Chisel is using a Scala compiler plugin,
the highest supported patch version of Scala is restricted by the published compiler plugin.
Table~\ref{tab:versions} shows the Chisel versions with the support of the highest
the highest supported patch version of Scala is restricted by the published compiler
plugin.\footnote{see \url{https://mvnrepository.com/artifact/edu.berkeley.cs/chisel3-plugin}
and \url{https://mvnrepository.com/artifact/org.chipsalliance/chisel-plugin}}
Table~\ref{tab:versions} shows Chisel versions with their support of the highest
Scala and Java versions.


Expand All @@ -1736,7 +1738,7 @@ \subsubsection{Chisel, Scala, and Java Versions}
6.5.x & 2.13.14 & 22 \\
\bottomrule
\end{tabular}
\caption{Chisel, Scala, and Java Versions.}
\caption{Chisel and highest supported Scala and Java versions.}
\label{tab:versions}
\end{table}

Expand Down

0 comments on commit 6ee398b

Please sign in to comment.