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. withReset :: forall (dom :: Domain) r . KnownDomain dom => Reset dom -> (HiddenReset dom => r) -> r

    clash-prelude Clash.Signal

    Connect an explicit Reset to a function with a hidden Reset. # 1012 "srcClashSignal.hs" === Example Usage with a polymorphic domain:

    >>> reg = register 5 (reg + 1)
    
    >>> sig = withReset resetGen reg
    
    >>> sampleN @System 10 sig
    [5,5,6,7,8,9,10,11,12,13]
    
    Force withReset to work on System (hence sampleN not needing an explicit domain later):
    >>> reg = register 5 (reg + 1)
    
    >>> sig = withReset @System resetGen reg
    
    >>> sampleN 10 sig
    [5,5,6,7,8,9,10,11,12,13]
    

  2. type family DomainConfigurationResetKind (config :: DomainConfiguration) :: ResetKind

    clash-prelude Clash.Signal.Internal

    Helper type family for DomainResetKind

  3. type family DomainConfigurationResetPolarity (config :: DomainConfiguration) :: ResetPolarity

    clash-prelude Clash.Signal.Internal

    Helper type family for DomainResetPolarity

  4. type DomainResetKind (dom :: Domain) = DomainConfigurationResetKind KnownConf dom

    clash-prelude Clash.Signal.Internal

    Convenience type to help to extract the reset synchronicity from a domain. Example usage:

    myFunc :: (KnownDomain dom, DomainResetKind dom ~ 'Synchronous) => ...
    

  5. type DomainResetPolarity (dom :: Domain) = DomainConfigurationResetPolarity KnownConf dom

    clash-prelude Clash.Signal.Internal

    Convenience type to help to extract the reset polarity from a domain. Example usage:

    myFunc :: (KnownDomain dom, DomainResetPolarity dom ~ 'ActiveHigh) => ...
    

  6. type HasAsynchronousReset (dom :: Domain) = (KnownDomain dom, DomainResetKind dom ~ 'Asynchronous)

    clash-prelude Clash.Signal.Internal

    Convenience type to constrain a domain to have asynchronous resets. Example usage:

    myFunc :: HasAsynchronousReset dom => ...
    
    Using this type implies KnownDomain. Click here for usage hints

  7. type HasSynchronousReset (dom :: Domain) = (KnownDomain dom, DomainResetKind dom ~ 'Synchronous)

    clash-prelude Clash.Signal.Internal

    Convenience type to constrain a domain to have synchronous resets. Example usage:

    myFunc :: HasSynchronousReset dom => ...
    
    Using this type implies KnownDomain. Click here for usage hints

  8. data Reset (dom :: Domain)

    clash-prelude Clash.Signal.Internal

    A reset signal belonging to a domain called dom. The underlying representation of resets is Bool.

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

    clash-prelude Clash.Signal.Internal

    No documentation available.

  10. data ResetKind

    clash-prelude Clash.Signal.Internal

    No documentation available.

Page 1662 of many | Previous | Next