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.
-
clash-prelude Clash.Signal.Internal Determines the value for which a reset line is considered "active"
data
SResetKind (resetKind :: ResetKind)clash-prelude Clash.Signal.Internal Singleton version of ResetKind
data
SResetPolarity (polarity :: ResetPolarity)clash-prelude Clash.Signal.Internal Singleton version of ResetPolarity
_resetKind :: DomainConfiguration -> ResetKindclash-prelude Clash.Signal.Internal Whether resets are synchronous (edge-sensitive) or asynchronous (level-sensitive)
_resetPolarity :: DomainConfiguration -> ResetPolarityclash-prelude Clash.Signal.Internal Whether resets are active high or active low
invertReset :: forall (dom :: Domain) . KnownDomain dom => Reset dom -> Reset domclash-prelude Clash.Signal.Internal Invert reset signal
resetGen :: forall (dom :: Domain) . KnownDomain dom => Reset domclash-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.-
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. unsafeFromReset :: forall (dom :: Domain) . Reset dom -> Signal dom Boolclash-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.unsafeToReset :: forall (dom :: Domain) . KnownDomain dom => Signal dom Bool -> Reset domclash-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.