clash-lib-1.2.2: CAES Language for Synchronous Hardware - As a Library
Copyright(C) 2020 QBayLogic
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.