Skip to content

wswslzp/PengLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [email protected]: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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published