Skip to the content.

Chisel 学习资源汇总

资源

https://github.com/d0iasm/rvemu : 模拟器,可以同时在浏览器和终端中运行(浏览器中运行!!!! https://marz.utk.edu/my-courses/cosc230/book/example-risc-v-assembly-programs/ : 汇编教程

问题

val nextState = states(“idle”) match nextState = { case states(“idle”) => states(“idle”) }


## bootcamp
### 2.2
- [x] 常量赋值
- [x] 对于 bool 变量如何进行裸机操作
  - [ ] 是没有 if 操作吗?
  - 使用 when .elsewhen 和 .otherwise 维持生活
  - 感觉 sum := a + b 之类的操作,实际上,sum 就是一个 wire 的
  - val sum = Wire(UInt(5.W)) : 只是初始化,而不声明
  - MUX 比 When 更加好用的哦

### 2.3
- 注意 == 和 === ,前者是 scala 的基本类型的比较,后者才是

Any unlabelled transition (i.e. when there are no inputs) returns a grad student to the Idle state instead of staying in the current state.

- val 和 var 的区别
- [ ] Enum 的用途是什么
```scala
val idle :: coding :: writing :: grad :: Nil = Enum(4)

2.4

2.5

2.6

这个东西完全看不懂啊

case class QueueModule[T <: Data](ioType: T, entries: Int) extends MultiIOModule {
  val in = IO(Flipped(Decoupled(ioType)))
  val out = IO(Decoupled(ioType))
  out <> Queue(in, entries)
}

3.1

3.2

本站所有文章转发 CSDN 将按侵权追究法律责任,其它情况随意。