后续开启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
- Hierarchical + object oriented + functional construction
- Highly parameterizable using metaprogramming in Scala
- Supports layering of domain specific languages
- Sizeable standard library including floating-point units
- Generates low-level Verilog designed to pass on to standard ASIC or FPGA tools
- Open source on github with modified BSD license
- Growing community of adopters
Chisel基于Scala,所以Chisel开发使用Scala开发环境,项目构建使用sbt。
Scala是基于Java虚拟机的语言。Java开发IDE首选Intellj IDEA。但是Intellj IDEA不是原生支持Scala,需要安装插件。
安装插件的方法可以网上搜一搜,这里介绍一个比较简单的方法:
- 根据提示,点击安装插件即开始下载安装(国外网站,中国人需要耐心等待一会儿),安装完成之后重启即可。
Linux下Scala开发环境的安装,网上有教程。