feldspar-language-0.7: A functional embedded language for DSP and parallelism

Safe HaskellNone
LanguageHaskell2010

Feldspar.Algorithm.CRC

Synopsis

Documentation

crcNormal :: Bits a => Vector1 a -> Data a -> Vector1 Word8 -> Data a Source

Calculate the normal form CRC using a table

crcReflected :: Bits a => Vector1 a -> Data a -> Vector1 Word8 -> Data a Source

Calculate the reflected form CRC using a table needs reflected tables

crcNaive :: Bits a => Data a -> Data a -> Vector1 Word8 -> Data a Source

Calculate normal form CRC from a polynominal

data CRC a Source

Constructors

CRC 

Fields

name :: String
 
width :: Index
 
poly :: a
 
init :: a
 
reflectIn :: Bool
 
reflectOut :: Bool
 
xorOut :: a
 

reflect :: Bits a => Data a -> Data Length -> Data a Source

Reflect the bottom b bits of value t