From a04677be8d1c61e2de2981cbc33812dfbadabd51 Mon Sep 17 00:00:00 2001 From: Marc Pignat Date: Wed, 1 Jun 2016 14:44:18 +0200 Subject: [PATCH 1/4] Add sbteclipse plugin --- project/plugin.sbt | 0 project/plugins.sbt | 2 ++ 2 files changed, 2 insertions(+) delete mode 100644 project/plugin.sbt create mode 100644 project/plugins.sbt diff --git a/project/plugin.sbt b/project/plugin.sbt deleted file mode 100644 index e69de29..0000000 diff --git a/project/plugins.sbt b/project/plugins.sbt new file mode 100644 index 0000000..ef6ceea --- /dev/null +++ b/project/plugins.sbt @@ -0,0 +1,2 @@ +addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0") + From b61b9c915f78501700f401356fdd9f2186ff5d43 Mon Sep 17 00:00:00 2001 From: Marc Pignat Date: Wed, 1 Jun 2016 15:01:59 +0200 Subject: [PATCH 2/4] Running in eclipse documentation --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 9fb669f..3b4e408 100644 --- a/README.md +++ b/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. +- In Intellij IDEA, "import project" with the root of this repository, Import project from external model SBT, Check all box +- In addition maybe you need to specify some path like JDK to Intellij +- 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. + From 3b12351d5d1f716835bc882e888648011a76e605 Mon Sep 17 00:00:00 2001 From: Marc Pignat Date: Wed, 1 Jun 2016 15:03:53 +0200 Subject: [PATCH 3/4] .gitignore for eclipse --- .gitignore | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 7e2b277..2fc0a7a 100644 --- a/.gitignore +++ b/.gitignore @@ -20,9 +20,15 @@ project/plugins/project/ .idea out +# Eclipse +bin/ +.classpath +.project +.settings #User *.vhd *.cf *.json !tester/src/test/resources/*.vhd + From 4e158d3d371acb1a223485cb67d4e5cdbd7dfe71 Mon Sep 17 00:00:00 2001 From: Marc Pignat Date: Wed, 1 Jun 2016 15:04:56 +0200 Subject: [PATCH 4/4] Running in eclipse documentation --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3b4e408..9c3a465 100644 --- a/README.md +++ b/README.md @@ -50,9 +50,9 @@ You need to install : And do the following : - Clone or download this repository. -- In Intellij IDEA, "import project" with the root of this repository, Import project from external model SBT, Check all box -- In addition maybe you need to specify some path like JDK to Intellij -- In the project (Intellij project GUI), right click on src/main/scala/MyCode/TopLeve.scala and select "Run MyTopLevel" +- 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 files MyTopLevel.vhd. +Normally, this must generate output file ```MyTopLevel.vhd```.