|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.synth.operators.LogicSynthesizer
A class responsible for synthesizing operators in a DataFlowGraph that correspond to Logic calls. This class will use reflection to find a Logic call with the same name as the operation of the operator and as many parameters as input and output wires passed to createCell.
Constructor Summary | |
LogicSynthesizer()
|
Method Summary | |
Wire |
createCell(Logic parent,
DFVertex operator,
Wire[] inputWires)
Create a cell from the given DFVertex operator. |
void |
resolveInputWidths(DFVertex operator)
Determine the widths for one or more inputs to the given operator vertex based on the output width and other inputs with established widths. |
void |
resolveOutputWidth(DFVertex operator)
Determine the width for the output of the given operator based on one or more of the inputs with established widths. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LogicSynthesizer()
Method Detail |
public void resolveOutputWidth(DFVertex operator)
resolveOutputWidth
in interface OperatorSynthesizer
operator
- The operator vertex whose output width is
to be resolved.public void resolveInputWidths(DFVertex operator)
resolveInputWidths
in interface OperatorSynthesizer
operator
- The operator vertex whose input widths are to be
resolved.public Wire createCell(Logic parent, DFVertex operator, Wire[] inputWires)
Specifically LogicSynthesizer will use operator.getOperation() to reflect on a Logic method with that name and the appropriate number of Wire parameters.
createCell
in interface OperatorSynthesizer
operator
- an operator in a DataFlowGraph specifying the operation to
be performed by the new cell.inputWires
- an array of wires to be used as inputs for the new cells
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |