| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Protocols.Experimental.Df
Description
Experimental simulation support for Protocols.Df.
Synopsis
- module Protocols.Df
- module Protocols.Experimental.Simulate
- drive :: forall (dom :: Domain) a. KnownDomain dom => SimulationConfig -> [Maybe a] -> Circuit () (Df dom a)
- stall :: forall (dom :: Domain) a. (KnownDomain dom, HasCallStack) => SimulationConfig -> StallAck -> [Int] -> Circuit (Df dom a) (Df dom a)
- sample :: forall (dom :: Domain) b. KnownDomain dom => SimulationConfig -> Circuit () (Df dom b) -> [Maybe b]
- simulate :: forall (dom :: Domain) a b. KnownDomain dom => SimulationConfig -> (Clock dom -> Reset dom -> Enable dom -> Circuit (Df dom a) (Df dom b)) -> [Maybe a] -> [Maybe b]
Documentation
module Protocols.Df
Simulation functions
drive :: forall (dom :: Domain) a. KnownDomain dom => SimulationConfig -> [Maybe a] -> Circuit () (Df dom a) Source #
Emit values given in list. Emits no data while reset is asserted. Not synthesizable.
Arguments
| :: forall (dom :: Domain) a. (KnownDomain dom, HasCallStack) | |
| => SimulationConfig | |
| -> StallAck | Acknowledgement to send when LHS does not send data. Stall will act transparently when reset is asserted. |
| -> [Int] | |
| -> Circuit (Df dom a) (Df dom a) |
sample :: forall (dom :: Domain) b. KnownDomain dom => SimulationConfig -> Circuit () (Df dom b) -> [Maybe b] Source #