Hoogle Search

Within LTS Haskell 24.70 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. data ResetPolarity

    clash-prelude Clash.Signal.Internal

    Determines the value for which a reset line is considered "active"

  2. data SResetKind (resetKind :: ResetKind)

    clash-prelude Clash.Signal.Internal

    Singleton version of ResetKind

  3. data SResetPolarity (polarity :: ResetPolarity)

    clash-prelude Clash.Signal.Internal

    Singleton version of ResetPolarity

  4. _resetKind :: DomainConfiguration -> ResetKind

    clash-prelude Clash.Signal.Internal

    Whether resets are synchronous (edge-sensitive) or asynchronous (level-sensitive)

  5. _resetPolarity :: DomainConfiguration -> ResetPolarity

    clash-prelude Clash.Signal.Internal

    Whether resets are active high or active low

  6. invertReset :: forall (dom :: Domain) . KnownDomain dom => Reset dom -> Reset dom

    clash-prelude Clash.Signal.Internal

    Invert reset signal

  7. resetGen :: forall (dom :: Domain) . KnownDomain dom => Reset dom

    clash-prelude Clash.Signal.Internal

    Reset generator for simulation purposes. Asserts the reset for a single cycle. To be used like:

    rstSystem = resetGen @System
    
    See tbClockGen for example usage. NB: While this can be used in the testBench function, it cannot be synthesized to hardware.

  8. resetGenN :: forall (dom :: Domain) (n :: Natural) . (KnownDomain dom, 1 <= n) => SNat n -> Reset dom

    clash-prelude Clash.Signal.Internal

    Reset generator for simulation purposes. Asserts the reset for the first n cycles. To be used like:

    rstSystem5 = resetGen @System d5
    
    Example usage:
    >>> sampleN 7 (unsafeToActiveHigh (resetGenN @System d3))
    [True,True,True,False,False,False,False]
    
    NB: While this can be used in the testBench function, it cannot be synthesized to hardware.

  9. unsafeFromReset :: forall (dom :: Domain) . Reset dom -> Signal dom Bool

    clash-prelude Clash.Signal.Internal

    unsafeFromReset is unsafe because it can introduce:

    For asynchronous resets it is unsafe because it can cause combinatorial loops. In case of synchronous resets it can lead to meta-stability in the presence of asynchronous resets. NB: You probably want to use unsafeToActiveLow or unsafeToActiveHigh.

  10. unsafeToReset :: forall (dom :: Domain) . KnownDomain dom => Signal dom Bool -> Reset dom

    clash-prelude Clash.Signal.Internal

    unsafeToReset is unsafe. For asynchronous resets it is unsafe because it can introduce combinatorial loops. In case of synchronous resets it can lead to meta-stability issues in the presence of asynchronous resets. NB: You probably want to use unsafeFromActiveLow or unsafeFromActiveHigh.

Page 1663 of many | Previous | Next