rewire-user-2.8
Safe HaskellNone
LanguageHaskell2010

ReWire

Synopsis

Documentation

externWithSig Source #

Arguments

:: [(String, Integer)]

Module parameters (name and integer literal value).

-> String

Clock signal name or empty for no clock.

-> String

Reset signal name or empty for no reset.

-> [(String, Integer)]

Module inputs (name and integer literal bitwidth).

-> [(String, Integer)]

Module outputs (name and integer literal bitwidth).

-> String

Module name.

-> a

Haskell definition to use when interpreting.

-> String

Reserved: an instance-name hint; currently ignored by the compiler.

-> a 

extern :: String -> a -> a Source #

The String argument must be a string literal (after inlining).

put :: forall (m :: Type -> Type) s. Monad m => s -> StateT s m () Source #

get :: forall (m :: Type -> Type) s. Monad m => StateT s m s Source #

modify :: forall (m :: Type -> Type) s. Monad m => (s -> s) -> StateT s m () Source #

signal :: forall (m :: Type -> Type) o i. Monad m => o -> ReacT i o m i Source #

lift :: (MonadTrans t, Monad m) => m a -> t m a Source #

extrude :: forall (m :: Type -> Type) i o s a. Monad m => ReacT i o (StateT s m) a -> s -> ReacT i o m a Source #

natVal :: forall (n :: Nat). KnownNat n => Proxy n -> Integer Source #

Produce integer associated with type-level natural.

length :: forall (n :: Nat) a. Vec n a -> Proxy n Source #

len :: forall (n :: Nat) a. KnownNat n => Vec n a -> Integer Source #

fromList :: forall (n :: Nat) a. KnownNat n => [a] -> Vec n a Source #

type Bit = Bool Source #

type W (n :: Nat) = Vec n Bit Source #