Spinal Base Project
============
This repository is a base SBT project added to help non Scala/SBT native people in their first steps.
Just one important note, you need a java JDK >= 8
On debian :
```sh
sudo add-apt-repository -y ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk -y
#To set the default java
sudo update-alternatives --config java
sudo update-alternatives --config javac
```
## Basics, without any IDE
You need to install SBT
```sh
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
sudo apt-get update
sudo apt-get install sbt
```
If you want to run the scala written testbench, you have to be on linux and have Verilator installed (a recent version) :
```sh
sudo apt-get install git make autoconf g++ flex bison -y # First time prerequisites
git clone http://git.veripool.org/git/verilator # Only first time
unsetenv VERILATOR_ROOT # For csh; ignore error if on bash
unset VERILATOR_ROOT # For bash
cd verilator
git pull # Make sure we're up-to-date
git checkout v4.040
autoconf # Create ./configure script
./configure
make -j$(nproc)
sudo make install
cd ..
echo "DONE"
```
Clone or download this repository.
```sh
git clone https://github.com/SpinalHDL/SpinalTemplateSbt.git
```
Open a terminal in the root of it and run "sbt run". At the first execution, the process could take some seconds
```sh
cd SpinalTemplateSbt
//If you want to generate the Verilog of your design
sbt "runMain mylib.MyTopLevelVerilog"
//If you want to generate the VHDL of your design
sbt "runMain mylib.MyTopLevelVhdl"
//If you want to run the scala written testbench
sbt "runMain mylib.MyTopLevelSim"
```
The top level spinal code is defined into src\main\scala\mylib
## Basics, with Intellij IDEA and its scala plugin
You need to install :
- Java JDK 8
- SBT
- Intellij IDEA (the free Community Edition is good enough)
- Intellij IDEA Scala plugin (when you run Intellij IDEA the first time, he will ask you about it)
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
- In addition maybe you need to specify some path like JDK to Intellij
- In the project (Intellij project GUI), go in src/main/scala/mylib/MyTopLevel.scala, right click on MyTopLevelVerilog, "Run MyTopLevelVerilog"
Normally, this must generate an MyTopLevel.v output files.
## Basics, with Eclipse and its scala plugin
First, i "strongly" suggest to use intellij idea instead.
You need to install :
- Java JDK
- Scala
- SBT
- Eclipse (tested with Mars.2 - 4.5.2)
- [scala plugin](http://scala-ide.org/) (tested with 4.4.1)
And do the following :
- Clone or download this repository.
- Revert changes from https://github.com/SpinalHDL/SpinalTemplateSbt/commit/173bbb9bb8cbf70087339104f6ebced9321908dd
- Run ```sbt eclipse``` in the ```SpinalTemplateSbt``` directory.
- Import the eclipse project from eclipse.
- In the project (eclipse project GUI), right click on src/main/scala/mylib/MyTopLevel.scala, right click on MyTopLevelVerilog, and select run it
Normally, this must generate output file ```MyTopLevel.v```.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
毕业设计基于FPGA的卷积神经网络CNN图像分类系统源码+答辩PPT(高分项目),本资源中的源码都是经过本地编译过可运行的,评审分达到98分,资源项目的难度比较适中,内容都是经过助教老师审定过的能够满足学习、毕业设计、期末大作业和课程设计使用需求,如果有需要的话可以放心下载使用。 毕业设计基于FPGA的卷积神经网络CNN图像分类系统源码+答辩PPT(高分项目)毕业设计基于FPGA的卷积神经网络CNN图像分类系统源码+答辩PPT(高分项目)毕业设计基于FPGA的卷积神经网络CNN图像分类系统源码+答辩PPT(高分项目)毕业设计基于FPGA的卷积神经网络CNN图像分类系统源码+答辩PPT(高分项目)毕业设计基于FPGA的卷积神经网络CNN图像分类系统源码+答辩PPT(高分项目)毕业设计基于FPGA的卷积神经网络CNN图像分类系统源码+答辩PPT(高分项目)毕业设计基于FPGA的卷积神经网络CNN图像分类系统源码+答辩PPT(高分项目)毕业设计基于FPGA的卷积神经网络CNN图像分类系统源码+答辩PPT(高分项目)毕业设计基于FPGA的卷积神经网络CNN图像分类系统源码+答辩PPT(高分项
资源推荐
资源详情
资源评论























收起资源包目录





































































































共 222 条
- 1
- 2
- 3
资源评论

- eternity_u2025-06-30资源是宝藏资源,实用也是真的实用,感谢大佬分享~

盈梓的博客
- 粉丝: 1w+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 库文件libz.a
- 可编辑LIN数据库的免费软件-LDFtool软件
- 库文件libz.a
- 可编辑LIN数据库的免费软件-LDFtool软件
- 2018_5_30基于Python的美食聚集点的可视化分析研究.zip
- Python 基于 Selenium 爬取招聘岗位信息的基础程序
- Microsoft.CompactFramework.CSharp.targets 文件下载
- Microsoft.CompactFramework.CSharp.targets 文件下载
- A cdn detector with high speed! 基于Python 多线程+多协程实现高并发查询API接口进行多地Ping Host来确认IP的真实归属。.zip
- 一个经典贪吃蛇游戏,Python编写,基于树莓派b+和ssd1306 128x64 OLED屏幕
- 基于C++_Python的用于调整Windows系统分辨率的小程序
- A python nacos sdk client based on the official openapi(一个基于Nacos官方API的python客户端实现,支持同步和异步).zip
- PDR (Pedestrian Dead Reckoning)行人航位推算实现代码(matlab)
- A Eye基于python、open-cv、pywin32等类库 主要用于搭建eve手游预警机系统,支持多模拟器,支持监测多星系,支持发送游戏指定频道预警、微信预警.zip
- A rpc framework base on grpc for python,一个基于grpc的python快速开发框架.zip
- Analysis of Holland's Occupational Personality. (基于Python的霍兰德职业性格测试分析WebApp).zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
