Collecting some infrastructure library in SpinalHDL. The feature of this library includes:
- Customizable SRAM converter
- Automatic Ping pong wrapper
- Some mathematics libraries
- and others...
- create your own SpinalHDL project.
sbt new wswslzp/spinal.g8
- clone this project in the same directory as your project resides.
git clone [email protected]:wswslzp/PengLib.git
- configure your
build.sbt
in your own project as follows
// give the user a nice default project!
ThisBuild / organization := "com.github.wswslzp"
ThisBuild / scalaVersion := "2.12.13"
ThisBuild / version := "v0.1"
val spinalVersion = "1.7.0"
val spinal = Seq(
"com.github.spinalhdl" %% "spinalhdl-core" % spinalVersion,
"com.github.spinalhdl" %% "spinalhdl-lib" % spinalVersion,
compilerPlugin("com.github.spinalhdl" %% "spinalhdl-idsl-plugin" % spinalVersion)
)
// point to the PengLib directory
lazy val penglib = ProjectRef(file("../PengLib"), "penglib")
lazy val root = (project in file(".")).
settings(
name := "usepeng",
libraryDependencies ++= spinal,
fork := true,
javaOptions := Seq("-Xmx16G")
).dependsOn(penglib) // remember adding dependency on penglib
Then your project now is depending on PengLib
. Also you can download this repo and publish local jar
files then use the jar library in your project as well.