-
Notifications
You must be signed in to change notification settings - Fork 154
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
PR #2417 caused a bug in the generation of the `qsys` file: it generated a spurious extra output clock which was completely unused otherwise. (cherry picked from commit 5b055fb) Co-authored-by: Peter Lebbing <[email protected]>
- Loading branch information
1 parent
8eda54e
commit 8d0d6be
Showing
2 changed files
with
6 additions
and
6 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: Fix `alteraPll` `qsys` generation. PR [#2417](https://github.com/clash-lang/clash-compiler/pull/2417) (included in Clash v1.6.5) caused a bug in the generation of the `qsys` file: it generated a spurious extra output clock which was completely unused otherwise. |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{-| | ||
Copyright : (C) 2018 , Google Inc., | ||
2021-2022, QBayLogic B.V. | ||
2021-2023, QBayLogic B.V. | ||
License : BSD2 (see the file LICENSE) | ||
Maintainer : QBayLogic B.V. <[email protected]> | ||
|
@@ -249,11 +249,10 @@ alteraPllQsysTemplate | |
-> State s Doc | ||
alteraPllQsysTemplate bbCtx = pure bbText | ||
where | ||
(_:(_,stripVoid -> kdIn,_):(_,stripVoid -> kdOutsProd,_):_) = bbInputs bbCtx | ||
kdOuts = case kdOutsProd of | ||
Product _ _ ps -> ps | ||
KnownDomain {} -> [kdOutsProd] | ||
_ -> error "internal error: not a Product or KnownDomain" | ||
_clocksClass | ||
: (_,stripVoid -> kdIn,_) | ||
: (_,stripVoid -> Product _ _ (init -> kdOuts),_) | ||
: _ = bbInputs bbCtx | ||
|
||
cklFreq (KnownDomain _ p _ _ _ _) | ||
= (1.0 / (fromInteger p * 1.0e-12 :: Double)) / 1e6 | ||
|