schoeberl / chisel-book

Digital Design with Chisel
727 stars 135 forks source link

Fix `MultiClockMemory` for Chisel > 3.6.0 #60

Closed hansemandse closed 6 months ago

hansemandse commented 6 months ago

Chisel3 > 3.6.0 requires explicitly passing the write clocks to individual ports of a multi-clock memory. This is hereby fixed in the example code. Note that this changes the memory's behavior from outputting zero when nothing is read to outputting a don't care.

schoeberl commented 6 months ago

Thank you!