Header menu logo issie

EvalReference Module

Functions and values

Function or value Description

fastReduce step isClockedReduction comp

Full Usage: fastReduce step isClockedReduction comp

Parameters:
Returns: Unit

Given a component, compute its outputs from its inputs, which must already be evaluated. Outputs and inputs are both contained as time sequences in arrays. This function will calculate simStep outputs from (previously calculated) simStep outputs and clocked (simStep-1) outputs. Memory has state separate from simStep-1 output, for this the state is recalculated. Inputs and outputs come from either UInt32Step or BigIntStep arrays in IOArray record.

step : StepIndex
isClockedReduction : bool
comp : FastComponent
Returns: Unit

fastReduceStep maxArraySize numStep isClockedReduction comp

Full Usage: fastReduceStep maxArraySize numStep isClockedReduction comp

Parameters:
    maxArraySize : int
    numStep : int
    isClockedReduction : bool
    comp : FastComponent

Returns: Unit

fastReduce for a one-off reduction, working out the step indices for itself. Anything reducing many components, or the same component over many steps, should compute them once with simStepOf and simStepOldOf and call fastReduce directly.

maxArraySize : int
numStep : int
isClockedReduction : bool
comp : FastComponent
Returns: Unit

Type something to start searching.