Copyright | (c) David Cox 2021 |
---|---|
License | BSD-3-Clause |
Maintainer | standardsemiconductor@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
MAC primitive wrapper. See Ice40.Mac.Prim for the original primitive. For more information see LATTICE ICE Technology Library and DSP Function Usage Guide.
Synopsis
- mac :: HiddenClock dom => Parameter -> Input dom -> (Signal dom (BitVector 32), Signal dom Bit, Signal dom Bit, Signal dom Bit)
- data Input dom = Input {
- ce :: Signal dom Bit
- c :: Signal dom (BitVector 16)
- a :: Signal dom (BitVector 16)
- b :: Signal dom (BitVector 16)
- d :: Signal dom (BitVector 16)
- irsttop :: Signal dom Bit
- irstbot :: Signal dom Bit
- orsttop :: Signal dom Bit
- orstbot :: Signal dom Bit
- ahold :: Signal dom Bit
- bhold :: Signal dom Bit
- chold :: Signal dom Bit
- dhold :: Signal dom Bit
- oholdtop :: Signal dom Bit
- oholdbot :: Signal dom Bit
- addsubtop :: Signal dom Bit
- addsubbot :: Signal dom Bit
- oloadtop :: Signal dom Bit
- oloadbot :: Signal dom Bit
- accumci :: Signal dom Bit
- signextin :: Signal dom Bit
- ci :: Signal dom Bit
- defaultInput :: Input dom
- data Parameter = Parameter {
- negTrigger :: Bit
- aReg :: Bit
- bReg :: Bit
- cReg :: Bit
- dReg :: Bit
- top8x8MultReg :: Bit
- bot8x8MultReg :: Bit
- pipeline16x16MultReg1 :: Bit
- pipeline16x16MultReg2 :: Bit
- topOutputSelect :: BitVector 2
- topAddSubLowerInput :: BitVector 2
- topAddSubUpperInput :: Bit
- topAddSubCarrySelect :: BitVector 2
- botOutputSelect :: BitVector 2
- botAddSubLowerInput :: BitVector 2
- botAddSubUpperInput :: Bit
- botAddSubCarrySelect :: BitVector 2
- mode8x8 :: Bit
- aSigned :: Bit
- bSigned :: Bit
- defaultParameter :: Parameter
Documentation
mac :: HiddenClock dom => Parameter -> Input dom -> (Signal dom (BitVector 32), Signal dom Bit, Signal dom Bit, Signal dom Bit) Source #
MAC primitive wrapper
MAC inputs
Input | |
|
defaultInput :: Input dom Source #
default MAC inputs
MAC parameters
Parameter | |
|
defaultParameter :: Parameter Source #
default MAC parameters