clash-compiler
clash-compiler copied to clipboard
Haskell to VHDL/Verilog/SystemVerilog compiler
Once https://github.com/clash-lang/clash-compiler/pull/2758 is merged, Clash can be built with GHC 9.10. However, we punted on switching the internal implementation of `Unique` from `Int` to `Word64`; which GHC 9.10 did do....
Ah ok, fair enough. Could you add an issue saying we should investigate this? In case someone gets an error with this ID it should point them to something tangible....
See https://github.com/clash-lang/clash-compiler/pull/2768#pullrequestreview-2198931048.
Seen in the wild: ``` DEC {97} Changes when applying rewrite to: case ds8[7566047373982590768][LocalId] of Data.Either.Left[3891110078048108619] (k1[7566047373982590771] :: Punctuate.Punctuate[8214565720323801001] 3 " " (Punctuate.Punctuate[8214565720323801001] 3 " " (Punctuate.Punctuate[8214565720323801001] 3 " "...
Similar to https://github.com/clash-lang/clash-compiler/pull/2760, but for code compiled with that Clash REPL given by `clash-dev`. Perhaps the same applies for `clashi`?
E.g. ``` clashi> :set -fclash-clear Some flags have not been recognized: -fclash-clear ```
See: https://github.com/clash-lang/clash-compiler/pull/2711#discussion_r1660133173
Relevant PR: https://github.com/clash-lang/clash-compiler/pull/2258. Unfortunately, we can't accept the PR as is, because it just changes which simulators get stuck / exit prematurely.
We once looked at this, we'd like to pick it up again in the future: * https://github.com/clash-lang/clash-compiler/pull/2231 * https://github.com/clash-lang/clash-compiler/pull/2181
Consider: ```haskell module Test where import Clash.Explicit.Prelude topEntity :: Clock System -> Reset System -> Enable System -> Vec 3 (Signal System Int) topEntity clk rst gen = map (register...