Skip to content

Getting started

Snoopy87 edited this page Aug 4, 2017 · 10 revisions

Installation

Execute the following commands to get your sbt repository up to date.

# Get the last version of the SpinalHDL
git clone https://github.com/SpinalHDL/SpinalHDL.git
git pull origin master
cd SpinalHDL
sbt publish-local

# Get the last version of VexRiscv
git clone https://github.com/SpinalHDL/VexRiscv.git
git pull origin master
cd VexRiscv
sbt publish-local 

# Get the last version of SpinalCrypto
git clone https://github.com/SpinalHDL/SpinalCrypto.git
git pull origin master
cd SpinalCrypto
sbt publish-local 

Project configuration

Modify your sbt as follow:

name := "MyProject"

version := "1.0"

scalaVersion := "2.11.6"

EclipseKeys.withSource := true

libraryDependencies ++= Seq(
  "com.github.spinalhdl" % "spinalhdl-core_2.11" % "latest.release",
  "com.github.spinalhdl" % "spinalhdl-lib_2.11" % "latest.release",
  "com.github.spinalhdl" % "vexriscv_2.11" % "latest.release",
  "com.github.spinalhdl" % "spinalcrypto_2.11" % "latest.release"
)

Example

import spinal.core._
import spinalcrypto.symmetric.des.DESCore_Std


object PlayWithSpinalCrypto{

  def main(args: Array[String]): Unit = {
    SpinalVerilog(new DESCore_Std)
  }
}
Clone this wiki locally