retroclash-lib-0.1.2.1: Code shared across the code samples in the book "Retrocomputing with Clash"
Safe HaskellNone
LanguageHaskell2010

RetroClash.Delayed

Documentation

delayedRom :: HiddenClockResetEnable dom => (forall dom'. HiddenClockResetEnable dom' => Signal dom' addr -> Signal dom' a) -> DSignal dom d addr -> DSignal dom (d + 1) a Source #

delayedRam :: HiddenClockResetEnable dom => (forall dom'. HiddenClockResetEnable dom' => Signal dom' addr -> Signal dom' wr -> Signal dom' a) -> DSignal dom d addr -> DSignal dom d wr -> DSignal dom (d + 1) a Source #

delayedBlockRam1 :: (1 <= n, Enum addr, NFDataX a, HiddenClockResetEnable dom) => ResetStrategy r -> SNat n -> a -> DSignal dom d addr -> DSignal dom d (Maybe (addr, a)) -> DSignal dom (d + 1) a Source #

sharedDelayed :: (KnownNat k, KnownNat n, HiddenClockResetEnable dom) => (DSignal dom d (Maybe addr) -> DSignal dom (d + k) a) -> Vec (n + 1) (DSignal dom d (Maybe addr)) -> Vec (n + 1) (DSignal dom (d + k) (Maybe a)) Source #

sharedDelayedRW :: (KnownNat k, KnownNat n, HiddenClockResetEnable dom) => (DSignal dom d addr -> DSignal dom d (Maybe wr) -> DSignal dom (d + k) a) -> Vec (n + 1) (DSignal dom d (Maybe (addr, Maybe wr))) -> Vec (n + 1) (DSignal dom (d + k) (Maybe a)) Source #

delayedRegister :: (NFDataX a, HiddenClockResetEnable dom) => a -> (DSignal dom d a -> DSignal dom d a) -> DSignal dom (d + 1) a Source #

liftD :: HiddenClockResetEnable dom => (forall dom'. HiddenClockResetEnable dom' => Signal dom' a -> Signal dom' b) -> DSignal dom d a -> DSignal dom d b Source #

liftD2 :: HiddenClockResetEnable dom => (forall dom'. HiddenClockResetEnable dom' => Signal dom' a -> Signal dom' b -> Signal dom' c) -> DSignal dom d a -> DSignal dom d b -> DSignal dom d c Source #

matchDelay :: (KnownNat d, NFDataX a, HiddenClockResetEnable dom) => DSignal dom d any -> a -> Signal dom a -> Signal dom a Source #