schoeberl / chisel-book

Digital Design with Chisel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conditional Updates Priority

Hyunok-Kim opened this issue · comments

There is something not clear in your good examples

https://github.com/schoeberl/chisel-book/blob/master/src/main/scala/Flasher.scala#L65-L74
https://github.com/schoeberl/chisel-book/blob/master/src/main/scala/Flasher.scala#L126-L127
https://github.com/schoeberl/chisel-book/blob/master/src/main/scala/Flasher.scala#L134-L143

In the above examples, a hardware objects(timerReg, cntReg) are updated by multiple(two) conditionals
It is confusing for beginners including me
You are better to mention Conditional Updates Priority somewhere in your book