Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

chisel asynch fifo / multiple clocks.

Tags:

fifo

chisel

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?

like image 373
Dennis Skey Avatar asked Jul 31 '26 18:07

Dennis Skey


1 Answers

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.

like image 127
FabienM Avatar answered Aug 03 '26 14:08

FabienM



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!