Does Chisel support multiple clocks in a design, yet? If I wanted to implement an asynchronous fifo how would one going about doing that in Chisel?
Yes Chisel support multiple clocks in a design. If you want to use an asynchronous fifo you can import module ChiselUtil, it contain an asynchronous fifo : https://github.com/ucb-bar/chisel/blob/master/src/main/scala/ChiselUtil.scala#L599
To change clock domain for a register, use the argument clock of Reg() :
val s1 = Reg(init = UInt(0), clock = clockB)
See more information in tutorial chapter 16.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With