Skip to content

Commit

Permalink
Merge pull request jijingg#22 from volatile-static/patch-1
Browse files Browse the repository at this point in the history
add install steps
  • Loading branch information
jijingg authored Jun 8, 2022
2 parents 883e326 + 9d86754 commit 755d2e5
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 4 deletions.
32 changes: 31 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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

Expand Down
Binary file added source/coursier
Binary file not shown.
6 changes: 3 additions & 3 deletions source/load-spinal.sc
Original file line number Diff line number Diff line change
@@ -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"))
Expand Down

0 comments on commit 755d2e5

Please sign in to comment.