mirror of
https://github.com/SpinalHDL/SpinalTemplateSbt.git
synced 2025-10-22 23:58:44 +08:00
Merge pull request #1 from RandomReaper/master
Eclipse support for SpinalBaseProject
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -20,9 +20,15 @@ project/plugins/project/
|
||||
.idea
|
||||
out
|
||||
|
||||
# Eclipse
|
||||
bin/
|
||||
.classpath
|
||||
.project
|
||||
.settings
|
||||
|
||||
#User
|
||||
*.vhd
|
||||
*.cf
|
||||
*.json
|
||||
!tester/src/test/resources/*.vhd
|
||||
|
||||
|
20
README.md
20
README.md
@@ -36,3 +36,23 @@ And do the following :
|
||||
- In the project (Intellij project GUI), right click on src/main/scala/MyCode/TopLeve.scala and select "Run MyTopLevel"
|
||||
|
||||
Normally, this must generate output files MyTopLevel.vhd.
|
||||
|
||||
## Basics, with Eclipse and its scala plugin
|
||||
|
||||
You need to install :
|
||||
|
||||
- Java JDK
|
||||
- Scala
|
||||
- SBT
|
||||
- Eclipse (tested with Mars.2 - 4.5.2)
|
||||
- [Sacla plugin](http://scala-ide.org/) (tested with 4.4.1)
|
||||
|
||||
And do the following :
|
||||
|
||||
- Clone or download this repository.
|
||||
- Run ```sbt eclipse``` in the ```SpinalBaseProject``` directory.
|
||||
- Import the eclipse project from eclipse.
|
||||
- In the project (eclips project GUI), right click on src/main/scala/MyCode/TopLeve.scala and select "Run as" > "Scala application"
|
||||
|
||||
Normally, this must generate output file ```MyTopLevel.vhd```.
|
||||
|
||||
|
2
project/plugins.sbt
Normal file
2
project/plugins.sbt
Normal file
@@ -0,0 +1,2 @@
|
||||
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
|
||||
|
Reference in New Issue
Block a user