byucc.jhdl.synth.operators
Class WidthAdjustSynthesizer

java.lang.Object
  extended bybyucc.jhdl.synth.operators.LogicSynthesizer
      extended bybyucc.jhdl.synth.operators.WidthAdjustSynthesizer
All Implemented Interfaces:
OperatorSynthesizer

public class WidthAdjustSynthesizer
extends LogicSynthesizer

A class responsible for synthesizing widthAdjust operators.


Constructor Summary
WidthAdjustSynthesizer()
           
 
Method Summary
 Wire createCell(Logic parent, DFVertex operator, Wire[] inputWires)
          Create a cell from the given DFVertex operator.
 
Methods inherited from class byucc.jhdl.synth.operators.LogicSynthesizer
resolveInputWidths, resolveOutputWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WidthAdjustSynthesizer

public WidthAdjustSynthesizer()
Method Detail

createCell

public Wire createCell(Logic parent,
                       DFVertex operator,
                       Wire[] inputWires)
Create a cell from the given DFVertex operator. This method will create the appropriate cell with parent as its parent and input wires from inputWires. It will return a new wire created for the output. The new cell should implement the function defined by operator.getOperation()

Specifically, WidthAdjustSynthesizer simply calls Logic.takeBot with operator.getBusWidth() to take the correct number of bits from input.

Specified by:
createCell in interface OperatorSynthesizer
Overrides:
createCell in class LogicSynthesizer
Parameters:
parent - the parent Cell for the newly created cell
operator - an operator in a DataFlowGraph specifying the operation to be performed by the new cell.
inputWires - The input wires for this operator (ignored)
Returns:
the output wire of the newly created cell.


Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.