后續開啟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開發環境的安裝,網上有教程。