{"id":18304465,"url":"https://github.com/spinalhdl/spinalbaseproject-old-","last_synced_at":"2025-04-05T15:31:17.830Z","repository":{"id":30759549,"uuid":"34316177","full_name":"SpinalHDL/SpinalBaseProject-OLD-","owner":"SpinalHDL","description":null,"archived":false,"fork":false,"pushed_at":"2017-12-18T15:44:54.000Z","size":26467,"stargazers_count":10,"open_issues_count":0,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-21T06:41:24.884Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SpinalHDL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-21T09:03:20.000Z","updated_at":"2023-08-16T11:55:29.000Z","dependencies_parsed_at":"2022-09-08T16:10:26.431Z","dependency_job_id":null,"html_url":"https://github.com/SpinalHDL/SpinalBaseProject-OLD-","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpinalHDL%2FSpinalBaseProject-OLD-","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpinalHDL%2FSpinalBaseProject-OLD-/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpinalHDL%2FSpinalBaseProject-OLD-/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpinalHDL%2FSpinalBaseProject-OLD-/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpinalHDL","download_url":"https://codeload.github.com/SpinalHDL/SpinalBaseProject-OLD-/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247358614,"owners_count":20926260,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T15:29:01.006Z","updated_at":"2025-04-05T15:31:16.303Z","avatar_url":"https://github.com/SpinalHDL.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"DEPRECIATED\n\nSee the following repo as a better alternative : \n- https://github.com/SpinalHDL/SpinalTemplateSbt\n- https://github.com/SpinalHDL/SpinalTemplateSbtDependencies\n- https://github.com/SpinalHDL/SpinalWorkshop\n\nSpinal Base Project\n============\nThis repository is a base SBT project added to help non Scala/SBT native people in their first steps.\n\n## Basics, without any IDE\n\nYou need to install Java JDK and SBT\n\n```sh\nsudo apt-get install openjdk-8-jdk\n\necho \"deb https://dl.bintray.com/sbt/debian /\" | sudo tee -a /etc/apt/sources.list.d/sbt.list\nsudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823\nsudo apt-get update\nsudo apt-get install sbt\n```\n\nIf you want to run the scala written testbench, you have to be on linux and have Verilator installed (a recent version) :\n\n```sh\nsudo apt-get install git make autoconf g++ flex bison -y  # First time prerequisites\ngit clone http://git.veripool.org/git/verilator   # Only first time\nunsetenv VERILATOR_ROOT  # For csh; ignore error if on bash\nunset VERILATOR_ROOT  # For bash\ncd verilator\ngit pull        # Make sure we're up-to-date\ngit tag         # See what versions exist\nautoconf        # Create ./configure script\n./configure\nmake -j$(nproc)\nsudo make install\ncd ..\necho \"DONE\"\n\n```\n\nClone or download this repository.\n\n```sh\ngit clone https://github.com/SpinalHDL/SpinalBaseProject.git\n```\n\nOpen a terminal in the root of it and run \"sbt run\". At the first execution, the process could take some seconds\n\n```sh\ncd SpinalBaseProject\n\n//If you want to generate the Verilog of your design\nsbt \"run-main mylib.MyTopLevelVerilog\"\n\n//If you want to generate the VHDL of your design\nsbt \"run-main mylib.MyTopLevelVhdl\"\n\n//If you want to run the scala written testbench\nsbt \"run-main mylib.MyTopLevelSim\"\n```\n\nThe top level spinal code is defined into src\\main\\scala\\mylib\n\n## Basics, with Intellij IDEA and its scala plugin\n\nYou need to install :\n\n- Java JDK 8\n- SBT\n- Intellij IDEA (the free Community Edition is good enough)\n- Intellij IDEA Scala plugin (when you run Intellij IDEA the first time, he will ask you about it)\n\nAnd do the following :\n\n- Clone or download this repository.\n- In Intellij IDEA, \"import project\" with the root of this repository, Import project from external model SBT\n- In addition maybe you need to specify some path like JDK to Intellij\n- In the project (Intellij project GUI), go in src/main/scala/mylib/MyTopLevel.scala, right click on MyTopLevelVerilog, \"Run MyTopLevelVerilog\"\n\nNormally, this must generate an MyTopLevel.v output files.\n\n## Basics, with Eclipse and its scala plugin\n\nYou need to install :\n\n- Java JDK\n- Scala\n- SBT\n- Eclipse (tested with Mars.2 - 4.5.2)\n- [scala plugin](http://scala-ide.org/) (tested with 4.4.1)\n\nAnd do the following :\n\n- Clone or download this repository.\n- Run ```sbt eclipse``` in the ```SpinalBaseProject``` directory.\n- Import the eclipse project from eclipse.\n- In the project (eclipse project GUI), right click on src/main/scala/mylib/MyTopLevel.scala, right click on MyTopLevelVerilog, and select run it\n\nNormally, this must generate output file ```MyTopLevel.v```.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspinalhdl%2Fspinalbaseproject-old-","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspinalhdl%2Fspinalbaseproject-old-","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspinalhdl%2Fspinalbaseproject-old-/lists"}