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.
_resetKind :: DomainConfiguration -> ResetKindclash-prelude Clash.Explicit.Signal Whether resets are synchronous (edge-sensitive) or asynchronous (level-sensitive)
_resetPolarity :: DomainConfiguration -> ResetPolarityclash-prelude Clash.Explicit.Signal Whether resets are active high or active low
-
clash-prelude Clash.Explicit.Signal Like fromList, but resets on reset and has a defined reset value.
>>> let rst = unsafeFromActiveHigh (fromList [True, True, False, False, True, False]) >>> let res = fromListWithReset @System rst Nothing [Just 'a', Just 'b', Just 'c'] >>> sampleN 6 res [Nothing,Nothing,Just 'a',Just 'b',Nothing,Just 'a']
NB: This function is not synthesizable resetGen :: forall (dom :: Domain) . KnownDomain dom => Reset domclash-prelude Clash.Explicit.Signal 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.Explicit.Signal 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. -
clash-prelude Clash.Explicit.Signal Get ResetKind from a KnownDomain context. Example usage:
f :: forall dom . KnownDomain dom => .... f a b c = case resetKind @dom of SAsynchronous -> foo SSynchronous -> bar
-
clash-prelude Clash.Explicit.Signal Get ResetPolarity from a KnownDomain context. Example usage:
f :: forall dom . KnownDomain dom => .... f a b c = case resetPolarity @dom of SActiveHigh -> foo SActiveLow -> bar
-
clash-prelude Clash.Explicit.Signal Get a list of samples from a Signal, while asserting the reset line for n clock cycles. sampleWithReset does not return the first n cycles, i.e., when the reset is asserted. NB: This function is not synthesizable
-
clash-prelude Clash.Explicit.Signal Get a fine list of m samples from a Signal, while asserting the reset line for n clock cycles. sampleWithReset does not return the first n cycles, i.e., while the reset is asserted. NB: This function is not synthesizable
-
clash-prelude Clash.Explicit.Signal Same as simulate, but with the reset line asserted for n cycles. Similar to simulate, simulateWithReset will drop the output values produced while the reset is asserted. While the reset is asserted, the first value from [a] is fed to the circuit.