forsyde-shallow-3.4.0.0: ForSyDe's Haskell-embedded Domain Specific Language.

CopyrightKTH/ICT/ELE/ESY 2017
LicenseBSD-style (see the file LICENSE)
Maintaineringo@kth.se
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

ForSyDe.Shallow.MoC.MoCInterface

Contents

Description

This module defines models of computation interfaces between the different MOCs.

Synopsis

Interfaces between Synchronous MoC and Continuous Time MoC

sy2ct Source #

Arguments

:: (Fractional a, Show a) 
=> DACMode

Mode of conversion

-> Rational

Duration of input signal

-> Signal a

Input signal (untimed MoC)

-> Signal (SubsigCT a)

Output signal (continuous time MoC)

The MoC interface sy2ct converts a synchronous signal into a continuous time signal. It uses the d2aConverter function, which currently is defined in the CT library.

ct2sy Source #

Arguments

:: (Num a, Show a) 
=> Rational

Sampling Period

-> Signal (SubsigCT a)

Input signal (continuous time)

-> Signal a

Output signal (untimed) = d2aConverter

The MoC interface ct2sy converts a synchronous signal into a continuous time signal. It uses the a2dConverter function, which currently is defined in the CT library.