diff --git a/README.md b/README.md index 67860ef..48b58ae 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## Spinal-bootcamp [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/jijingg/Spinal-bootcamp/binder) +# Spinal-bootcamp [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/jijingg/Spinal-bootcamp/binder) This is SpinalHDL Tutorial, More important, it's a spinalHDL run-time environment. @@ -34,6 +34,36 @@ if you want run locally, install follows first - scala(Scala2.12 is recommended) - [almond](https://almond.sh/)(scala kernel for jupyter) +### Setup on Windows10 and higher + +[WSL](https://docs.microsoft.com/en-us/windows/wsl/) and [VS Code](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl) is recommended. + +1. Clone this repository and open a **WSL terminal** here. +2. Confirm your java and jupyter installation like this +``` +~# 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 +``` +3. Install [almond](https://almond.sh/) for WSL (the same as Linux) +``` +~# cd source +~# chmod +x coursier +~# ./coursier launch --fork almond -- --install +``` +4. Open the folder with [VS Code](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter) or jupyter + +`~# cd ..` + +| VS Code | jupyter lab | jupyter notebook | +| :------: | :-----------: | :--------------: | +| `code .` | `jupyter-lab` | `jupyter notebook --allow-root &` | + +- If you don't use VS Code, you would change the default browser of jupyter in WSL. ## Before the start diff --git a/source/coursier b/source/coursier new file mode 100644 index 0000000..a664bdf Binary files /dev/null and b/source/coursier differ diff --git a/source/load-spinal.sc b/source/load-spinal.sc index 799f0bc..cc48dc7 100644 --- a/source/load-spinal.sc +++ b/source/load-spinal.sc @@ -1,6 +1,6 @@ -import $ivy.`com.github.spinalhdl::spinalhdl-core:1.6.4` -import $ivy.`com.github.spinalhdl::spinalhdl-lib:1.6.4` -import $plugin.$ivy.`com.github.spinalhdl::spinalhdl-idsl-plugin:1.6.4` +import $ivy.`com.github.spinalhdl::spinalhdl-core:1.7.0` +import $ivy.`com.github.spinalhdl::spinalhdl-lib:1.7.0` +import $plugin.$ivy.`com.github.spinalhdl::spinalhdl-idsl-plugin:1.7.0` // import ammonite.ops.Path //http://ammonite.io/ // interp.load.cp(Path("/Users/mache/.ivy2/local/com.github.spinalhdl/spinalhdl-core_2.11/1.4.1/jars/spinalhdl-core_2.11.jar"))