com.jsyn.unitgen
Class Add

java.lang.Object
  extended by com.jsyn.unitgen.UnitGenerator
      extended by com.jsyn.unitgen.UnitBinaryOperator
          extended by com.jsyn.unitgen.Add

public class Add
extends UnitBinaryOperator

This unit performs a signed addition on its two inputs.

 output = inputA + inputB
 

Note that signals connected to an InputPort are automatically added together so you may not need this unit.

Version:
016
See Also:
MultiplyAdd, Subtract

Field Summary
 
Fields inherited from class com.jsyn.unitgen.UnitBinaryOperator
inputA, inputB, output
 
Fields inherited from class com.jsyn.unitgen.UnitGenerator
FALSE, TRUE
 
Constructor Summary
Add()
           
 
Method Summary
 void generate(int start, int limit)
          Perform essential synthesis function.
 
Methods inherited from class com.jsyn.unitgen.UnitGenerator
addPort, convertHalfLifeToMultiplier, flattenOutputs, generate, getFramePeriod, getFrameRate, getPortByName, getPorts, getSynthesisEngine, isEnabled, pullData, setCircuit, setFrameRate, setSynthesisEngine, start, stop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Add

public Add()
Method Detail

generate

public void generate(int start,
                     int limit)
Description copied from class: UnitGenerator
Perform essential synthesis function.

Specified by:
generate in class UnitBinaryOperator
Parameters:
start - offset into port buffers
limit - limit offset into port buffers for loop