schoeberl / chisel-book

Digital Design with Chisel
752 stars 141 forks source link

Conditional Updates Priority #39

Open Hyunok-Kim opened 2 years ago

Hyunok-Kim commented 2 years ago

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