This is SpinalHDL Tutorial, More important, it's a spinalHDL run-time environment.
Most of case come from SpinalDoc, In addition, we also introduced some advanced usage of Scala, which are very helpful to understand how spinalHDL works.
Why we do such a thing:
There are two ways, you can run online or locally
$: git clone https://github.com/jijingg/Spinal-bootcamp
$: cd Spinal-bootcamp
$: jupyter notebook &
if you want run locally, install follows first
WSL and VS Code is recommended.
~# java -version
openjdk version "1.8.0_312"
OpenJDK Runtime Environment (build 1.8.0_312-8u312-b07-0ubuntu1~20.04-b07)
OpenJDK 64-Bit Server VM (build 25.312-b07, mixed mode)
~# echo $JAVA_HOME
/usr/lib/jvm/java-8-openjdk-amd64
~# pip list
~# cd source
~# chmod +x coursier
~# ./coursier launch --fork almond -- --install
~# cd ..
VS Code | jupyter lab | jupyter notebook |
---|---|---|
code . |
jupyter-lab |
jupyter notebook --allow-root & |
We assume you already have the basics knowledge of Scala,So there is no introduction to scala syntax here.
If you need to learn Scala, I would strongly recommend the book of "Programming in Scala" by Martin Odersky who is also the author of Scala. And just
try them as many as you can on jupyter notebook env, This may be more efficient to help you master Scala than just reading a book without practice.
install Almond on MacOs
brew install coursier/formulas/coursier
cs launch --fork almond:0.5.0 --scala 2.11.12 -- --install --force