-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Introduce bittide-experiments * Move simulation (library part) * Introduce bittide-tools and move simulation tools * Move all remaining tools to bittide-tools
- Loading branch information
1 parent
073c5ef
commit 51aa848
Showing
56 changed files
with
1,184 additions
and
1,131 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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
Apache License | ||
Version 2.0, January 2004 | ||
http://www.apache.org/licenses/ | ||
|
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,11 +1,13 @@ | ||
cabal-version: 2.4 | ||
name: elastic-buffer-sim | ||
name: bittide-experiments | ||
synopsis: Infrastructure and configurations needed for running | ||
experiments with the Bittide systems under development | ||
version: 0.1 | ||
License: Apache-2.0 | ||
license-file: LICENSE | ||
author: QBayLogic B.V. | ||
maintainer: [email protected] | ||
Copyright: Copyright © 2022 Google LLC | ||
Copyright: Copyright © 2024 Google LLC | ||
|
||
common common-options | ||
default-extensions: | ||
|
@@ -74,84 +76,46 @@ library | |
import: common-options | ||
hs-source-dirs: src | ||
build-depends: | ||
array, | ||
aeson, | ||
aeson-pretty, | ||
array, | ||
bittide, | ||
bytestring, | ||
cassava, | ||
clash-cores, | ||
clash-lib, | ||
containers, | ||
directory, | ||
filepath, | ||
happy-dot, | ||
matplotlib, | ||
optparse-applicative, | ||
random, | ||
text, | ||
typelits-witnesses | ||
exposed-modules: | ||
Bittide.ClockControl.ElasticBuffer | ||
Bittide.Domain | ||
Bittide.Hitl | ||
Bittide.Plot | ||
Bittide.Simulate | ||
Bittide.Simulate.ElasticBuffer | ||
Bittide.Simulate.Topology | ||
Bittide.Topology | ||
Bittide.Topology.Graph | ||
default-language: Haskell2010 | ||
|
||
executable sim | ||
import: common-options | ||
main-is: exe/Main.hs | ||
build-depends: | ||
aeson, | ||
array, | ||
random, | ||
bytestring, | ||
containers, | ||
directory, | ||
happy-dot, | ||
filepath, | ||
elastic-buffer-sim, | ||
optparse-applicative, | ||
default-language: Haskell2010 | ||
default-extensions: ImplicitPrelude | ||
-- enable rtsopts so we can setup memory limits | ||
ghc-options: -Wall -Wcompat -threaded -rtsopts -with-rtsopts=-xm20000000 +RTS -xm20000000 -RTS | ||
|
||
executable plot | ||
import: common-options | ||
main-is: plot/Main.hs | ||
build-depends: | ||
array, | ||
bittide, | ||
bittide-instances, | ||
bytestring, | ||
cassava, | ||
cassava-conduit, | ||
conduit, | ||
containers, | ||
directory, | ||
elastic-buffer-sim, | ||
filepath, | ||
text, | ||
typelits-witnesses, | ||
vector | ||
default-language: Haskell2010 | ||
default-extensions: ImplicitPrelude | ||
-- enable rtsopts so we can setup memory limits | ||
ghc-options: -Wall -Wcompat -threaded -rtsopts -with-rtsopts=-xm20000000 +RTS -xm20000000 -RTS | ||
|
||
test-suite unittests | ||
import: common-options | ||
type: exitcode-stdio-1.0 | ||
main-is: unittests.hs | ||
ghc-options: -Wall -Wcompat -threaded -rtsopts "-with-rtsopts=-N -xm20000000" +RTS -xm20000000 -RTS | ||
ghc-options: -Wall -Wcompat -threaded | ||
-rtsopts "-with-rtsopts=-N -xm20000000" +RTS -xm20000000 -RTS | ||
default-language: Haskell2010 | ||
hs-source-dirs: tests | ||
other-modules: | ||
Tests.Bittide.Simulate | ||
build-depends: | ||
base | ||
, bittide | ||
, bittide-experiments | ||
, clash-prelude | ||
, elastic-buffer-sim | ||
, tasty | ||
, tasty-hedgehog | ||
, tasty-hunit | ||
|
@@ -161,9 +125,10 @@ test-suite doctests | |
hs-source-dirs: tests | ||
main-is: doctests.hs | ||
ghc-options: -threaded | ||
ghc-options: -Wall -Wcompat -threaded -rtsopts -with-rtsopts="-xm20000000" +RTS -xm20000000 -RTS | ||
ghc-options: -Wall -Wcompat -threaded | ||
-rtsopts "-with-rtsopts=-xm20000000" +RTS -xm20000000 -RTS | ||
build-depends: | ||
base, | ||
elastic-buffer-sim, | ||
bittide-experiments, | ||
doctest-parallel >= 0.3.0.1 && < 0.4, | ||
default-language: Haskell2010 |
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,3 @@ | ||
SPDX-FileCopyrightText: 2024 Google LLC | ||
|
||
SPDX-License-Identifier: CC0-1.0 |
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
Oops, something went wrong.