clash-playground icon indicating copy to clipboard operation
clash-playground copied to clipboard

Update Lattice.hs for a modern Clash?

Open taktoa opened this issue 4 years ago • 0 comments

I'm looking at doing a project with an iCE40-HX4K and Lattice.hs seems to be a good way to use iCE40 chips with Clash. Unfortunately clockGate was removed in the 1.0 release of Clash (I'm using 1.2.4), so Lattice.hs refuses to compile because of sbPll40. I thought maybe I could just change unsafeCoerce (clockGate clk rst) to unsafeCoerce clk and remove the Reset argument (in effect removing the reset capability), but the Reset is returned from the function, so I can't do that either. Any ideas? I have little idea what clockGate even does, to be honest, so I don't know how to replace it with Clash 1.2.4 concepts.

taktoa avatar Oct 26 '20 23:10 taktoa