-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
For some eta-reduced 'e', we used to bogusly eta-expand to: \x.(\y. e y) x We now correctly expand to: \x.\y.(e x) y Fixes #2781 (cherry picked from commit f946617) Co-authored-by: Christiaan Baaij <[email protected]>
- Loading branch information
1 parent
a1c2f9c
commit 4876b14
Showing
4 changed files
with
52 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FIXED: Bug in the compile-time evaluator [#2781](https://github.com/clash-lang/clash-compiler/issues/2781) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
module T2781 | ||
( fullMeshSwCcTest | ||
) where | ||
|
||
import Clash.Explicit.Prelude | ||
import Clash.Cores.Xilinx.Ila (IlaConfig(..), Depth(..), ila, ilaConfig) | ||
|
||
fullMeshHwTestDummy :: | ||
Clock System -> | ||
( Signal System Bool | ||
, Vec 1 (Signal System Bool) | ||
) | ||
fullMeshHwTestDummy sysClk = | ||
fincFdecIla `hwSeqX` | ||
( pure False | ||
, repeat (pure True) | ||
) | ||
where | ||
fincFdecIla :: Signal System () | ||
fincFdecIla = ila | ||
(ilaConfig ("trigger_0" :> Nil)) | ||
sysClk | ||
(pure True :: Signal System Bool) | ||
|
||
-- | Top entity for this test. See module documentation for more information. | ||
fullMeshSwCcTest :: | ||
Clock System -> | ||
(Signal System Bool | ||
) | ||
fullMeshSwCcTest sysClk = spiDone | ||
where | ||
(spiDone | ||
, ugnsStable | ||
) = fullMeshHwTestDummy sysClk | ||
{-# ANN fullMeshSwCcTest (defSyn "fullMeshSwCcTest") #-} |