后续开启RISC-V开发相关内容。
RISC-V开发推荐使用Chisel编程语言。Chisel即Constructing Hardware in a Scala Embedded Language:
Chisel is an open-source hardware construction language developed at UC Berkeley that supports advanced hardware design using highly parameterized generators and layered domain-specific hardware languages.
- Hardware construction language (not C to Gates)
- Embedded in the Scala programming language
- Algebraic construction and wiring
- Abstract data types and interfaces
- Bulk connections
- Hierarchical + object oriented + functional construction
- Highly parameterizable using metaprogramming in Scala
- Supports layering of domain specific languages
- Sizeable standard library including floating-point units
- Multiple clock domains
- Generates low-level Verilog designed to pass on to standard ASIC or FPGA tools
- Open source on github with modified BSD license
- Complete set of docs
- Growing community of adopters
Chisel基于Scala,所以Chisel开发使用Scala开发环境,项目构建使用sbt。
Scala是基于Java虚拟机的语言。Java开发IDE首选Intellj IDEA。但是Intellj IDEA不是原生支持Scala,需要安装插件。
安装插件的方法可以网上搜一搜,这里介绍最简单的方法:
- 找到一个Scala源码文件,使用IDEA打开:
??
- 根据提示,点击安装插件即开始下载安装(需要耐心等待一会儿),安装完成之后重启即可。
https://chisel.eecs.berkeley.edu 网站上提供了很多参考资料。
原文地址:https://www.cnblogs.com/wjcdx/p/9588951.html
时间: 2024-10-12 00:36:51