Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.42 KB

README.md

File metadata and controls

53 lines (38 loc) · 1.42 KB

PengLib

Collecting some infrastructure library in SpinalHDL. The feature of this library includes:

  • Customizable SRAM converter
  • Automatic Ping pong wrapper
  • Some mathematics libraries
  • and others...

Usage

  1. create your own SpinalHDL project.
sbt new wswslzp/spinal.g8
  1. clone this project in the same directory as your project resides.
git clone git@github.com:wswslzp/PengLib.git
  1. 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.