clash-lib-1.6.6: Clash: a functional hardware description language - As a library
Copyright(C) 2020-2022 QBayLogic B.V.
LicenseBSD2 (see the file LICENSE)
MaintainerQBayLogic B.V. <devops@qbaylogic.com>
Safe HaskellNone
LanguageHaskell2010

Clash.Primitives.Sized.Vector

Description

Blackbox implementations for functions in Clash.Sized.Vector.

Synopsis

Documentation

iterateTF :: TemplateFunction Source #

Type signature of function we're generating netlist for:

iterateI :: KnownNat n => (a -> a) -> a -> Vec n a

foldFunctionPlurality :: HasCallStack => Int -> Int Source #

Calculates the number of function calls needed for an evaluation of fold, given the length of the vector given to fold.

foldBBF :: HasCallStack => BlackBoxFunction Source #

Blackbox function for fold

foldTF :: TemplateFunction Source #

Type signature of function we're generating netlist for:

fold :: (a -> a -> a) -> Vec (n + 1) a -> a

The implementation promises to create a (balanced) tree structure.