-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathclash-utils.cabal
203 lines (199 loc) · 6.16 KB
/
clash-utils.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
-- Initial clash-utils.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/
name: clash-utils
version: 0.1.0.0
synopsis: Clash utility library
description: A collection of reusable Clash example designs
license: BSD3
license-file: LICENSE
author: Adam Walker
maintainer: adamwalker10@gmail.com
copyright: 2017 Adam Walker
category: Hardware
build-type: Simple
extra-source-files: ChangeLog.md
cabal-version: >=1.10
library
exposed-modules:
Clash.Arithmetic.BCD,
Clash.Arithmetic.Adder.CarryLookahead,
Clash.Arithmetic.Adder.CarrySelect,
Clash.Arithmetic.Adder.CarrySave,
Clash.Arithmetic.Divide,
Clash.Arithmetic.Multiplier,
Clash.Container.FIFO,
Clash.Container.Cuckoo,
Clash.Container.CuckooPipeline,
Clash.Container.MultiPortBlockRam,
Clash.Container.PriorityQueue,
Clash.Counter,
Clash.Crypto.AES,
Clash.Crypto.SHA3,
Clash.DSP.CICFilter,
Clash.DSP.Complex,
Clash.DSP.CORDIC,
Clash.DSP.FFT.Burst,
Clash.DSP.FFT.Butterfly,
Clash.DSP.FFT.Example,
Clash.DSP.FFT.Parallel,
Clash.DSP.FFT.Serial,
Clash.DSP.FFT.Reorder,
Clash.DSP.FFT.Twiddle,
Clash.DSP.FIR.Filter,
Clash.DSP.FIR.HalfBand,
Clash.DSP.FIR.Polyphase,
Clash.DSP.FIR.SemiParallel,
Clash.DSP.Fixed,
Clash.DSP.IIRFilter,
Clash.DSP.MAC,
Clash.DSP.SineTable,
Clash.ErrorControl.CRC,
Clash.ErrorControl.Hamming,
Clash.GrayCode,
Clash.LFSR.Feedback,
Clash.LFSR.RNG,
Clash.LFSR.Scrambler,
Clash.LFSR.Table,
Clash.Misc,
Clash.Network.Types,
Clash.PrefixSum,
Clash.PseudoLRUTree,
Clash.Regex.Regex,
Clash.Regex.RegexCompile,
Clash.Serialize,
Clash.Sort.Bitonic,
Clash.Sort.Insertion,
Clash.Stream.Chain,
Clash.Stream.FieldExtract,
Clash.Stream.Mux,
Clash.Stream.Pipeline,
Clash.Stream.Resize,
Clash.Stream.Packet,
Clash.Stream.Test,
Clash.Xilinx.Adder,
Clash.Xilinx.Carry
-- other-modules:
default-extensions:
ScopedTypeVariables,
NoImplicitPrelude,
TypeOperators,
DataKinds,
FlexibleContexts,
FlexibleInstances,
TypeApplications,
BinaryLiterals,
GADTs,
KindSignatures,
TypeFamilies,
TupleSections,
DeriveGeneric,
DeriveAnyClass,
DeriveTraversable,
DeriveLift,
StandaloneDeriving
if impl(ghc >= 8.6)
default-extensions: NoStarIsType
build-depends:
base >=4.8 && <5,
clash-prelude >=1.6 && <1.7,
singletons >=2.7 && <4,
ghc-typelits-natnormalise,
ghc-typelits-knownnat,
cereal >=0.5 && <0.6,
interpolate >=0.2,
QuickCheck >=2.11 && <2.15,
template-haskell
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -fplugin=GHC.TypeLits.Normalise -fplugin=GHC.TypeLits.KnownNat.Solver -fexpose-all-unfoldings -fno-worker-wrapper
Test-Suite test
type: exitcode-stdio-1.0
main-is: Spec.hs
other-modules:
Arithmetic.BCDSpec,
Arithmetic.CarryLookaheadSpec,
Arithmetic.CarrySaveSpec,
Arithmetic.CarrySelectSpec,
Arithmetic.DivideSpec,
Arithmetic.MultiplierSpec,
Container.CuckooPipelineSpec,
Container.CuckooSpec,
Container.FIFOSpec,
Container.MultiPortBlockRamSpec,
Container.PriorityQueueSpec,
Crypto.AESSpec,
Crypto.SHA3Spec,
DSP.CICFilterSpec,
DSP.CORDICSpec,
DSP.FFT.BurstSpec,
DSP.FFT.ParallelSpec,
DSP.FFT.ReorderSpec,
DSP.FFT.SerialSpec,
DSP.FIR.Common,
DSP.FIR.HalfBandSpec,
DSP.FIR.ParallelSpec,
DSP.FIR.PolyphaseSpec,
DSP.FIR.SemiParallelSpec,
DSP.IIRFilterSpec,
DSP.SineTableSpec
Sort.BitonicSortSpec,
Sort.InsertionSortSpec,
Stream.MuxSpec,
Stream.PipelineSpec,
Stream.ResizeSpec,
Stream.TestSpec,
Xilinx.AdderSpec,
Xilinx.CarrySpec,
CRCSpec,
GrayCodeSpec,
HammingSpec,
MiscSpec,
ScramblerSpec,
SerializeSpec,
PseudoLRUTreeSpec,
FieldExtractSpec,
PrefixSumSpec,
RegexSpec,
ComplexSpec,
LFSRSpec
build-depends:
base >=4.6 && <5,
QuickCheck >=2.11 && <2.15,
digits >=0.3 && <0.4,
digest >=0.0.1 && <0.0.2,
containers >=0.5 && <0.7,
pure-fft >=0.2.0,
clash-prelude >=1.6 && <1.7,
split >=0.2,
cereal >=0.5 && <0.6,
hspec >=2.4 && < 3,
hspec-discover >=2.4 && < 3,
-- Hashable 1.4.3.0 introduces a change that breaks tests
hashable >=1.2 && < 1.4.3.0,
data-default,
tuple,
bytestring,
cryptonite,
memory,
ghc-typelits-natnormalise,
ghc-typelits-knownnat,
ghc-typelits-extra,
regex-tdfa,
mtl,
clash-utils
hs-source-dirs: tests
default-language: Haskell2010
ghc-options: -fplugin=GHC.TypeLits.Normalise -fplugin=GHC.TypeLits.KnownNat.Solver -fplugin GHC.TypeLits.Extra.Solver
default-extensions:
ScopedTypeVariables,
TypeOperators,
DataKinds,
FlexibleContexts,
TypeApplications,
BinaryLiterals,
GADTs,
KindSignatures,
TypeFamilies,
TemplateHaskell
if impl(ghc >= 8.6)
default-extensions: NoStarIsType