Header menu logo issie

FastReduce Module

Functions and values

Function or value Description

assertThat cond msg

Full Usage: assertThat cond msg

Parameters:
    cond : bool
    msg : string

Modifiers: inline
cond : bool
msg : string

extractBit fd busWidth

Full Usage: extractBit fd busWidth

Parameters:
Returns: uint32
Modifiers: inline

Assert that the FData only contain a single bit, and return such bit.

fd : FastData
busWidth : int
Returns: uint32

extractBitFData fd_ busWidth

Full Usage: extractBitFData fd_ busWidth

Parameters:
    fd_ : FData
    busWidth : int

Returns: uint32
Modifiers: inline
fd_ : FData
busWidth : int
Returns: uint32

fastReduce maxArraySize numStep isClockedReduction comp

Full Usage: fastReduce maxArraySize numStep isClockedReduction comp

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

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.

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

fastReduceFData maxArraySize numStep isClockedReduction comp

Full Usage: fastReduceFData maxArraySize numStep isClockedReduction comp

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

Returns: Unit

Version of fastReduce which operates on the IOArray.FDataStep arrays, and simulates using posibly algebraic data. Given the input port values for a component comp, work out its output in the same clock cycle. Used by TruthTable simulations, which use FData type that includes algebraic data. Because TruthTable simulations are only combinational the match statement is much simpler than normal FastReduce. Clocked operations need not be implemented.

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

getRomStateMemory comp

Full Usage: getRomStateMemory comp

Parameters:
Returns: Memory
comp : FastComponent
Returns: Memory

packBit bit

Full Usage: packBit bit

Parameters:
    bit : uint32

Returns: FastData
Modifiers: inline
bit : uint32
Returns: FastData

packBitFData bit

Full Usage: packBitFData bit

Parameters:
    bit : uint32

Returns: FData
Modifiers: inline
bit : uint32
Returns: FData

Type something to start searching.