clash-lib-1.2.5: 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

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.

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.