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.
withReset :: forall (dom :: Domain) r . KnownDomain dom => Reset dom -> (HiddenReset dom => r) -> rclash-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]
type family
DomainConfigurationResetKind (config :: DomainConfiguration) :: ResetKindclash-prelude Clash.Signal.Internal Helper type family for DomainResetKind
type family
DomainConfigurationResetPolarity (config :: DomainConfiguration) :: ResetPolarityclash-prelude Clash.Signal.Internal Helper type family for DomainResetPolarity
type
DomainResetKind (dom :: Domain) = DomainConfigurationResetKind KnownConf domclash-prelude Clash.Signal.Internal Convenience type to help to extract the reset synchronicity from a domain. Example usage:
myFunc :: (KnownDomain dom, DomainResetKind dom ~ 'Synchronous) => ...
type
DomainResetPolarity (dom :: Domain) = DomainConfigurationResetPolarity KnownConf domclash-prelude Clash.Signal.Internal Convenience type to help to extract the reset polarity from a domain. Example usage:
myFunc :: (KnownDomain dom, DomainResetPolarity dom ~ 'ActiveHigh) => ...
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 hintstype
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-
clash-prelude Clash.Signal.Internal A reset signal belonging to a domain called dom. The underlying representation of resets is Bool.
Reset :: Signal dom Bool -> Reset (dom :: Domain)clash-prelude Clash.Signal.Internal No documentation available.
-
clash-prelude Clash.Signal.Internal No documentation available.