jaga.pj.circuits.fpgaft
Class FPGALUTAbsoluteMapping
java.lang.Object
|
+--jaga.pj.circuits.fpgaft.FPGALUTAbsoluteMapping
- All Implemented Interfaces:
- CircuitMapping, java.io.Serializable
- public class FPGALUTAbsoluteMapping
- extends java.lang.Object
- implements CircuitMapping
FPGA LUT Structure is composed of CLBs containing a LUT and an Edge Triggered D-Latch.
Genotype structure:
First nrOuts * ( bitsPerVar + 1 ) define where to get outputs from, ala VassilevMapping.
The rest is divided into genes composed of three sections:
First 2^LUTInputs bits for the Look-Up Table.
Next LUTInputs * ( bitsPerVar + 1 ) bits define where to get inputs of LUT from.
Next bitsPerVar+1 bits define the input of the Latch.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FPGALUTAbsoluteMapping
public FPGALUTAbsoluteMapping(int ins,
int outs,
int bpv,
int lutIns,
ElementDelayModel delMod)
- Creates a new instance of FPGALUTMapping
- Parameters:
ins
- Number of Inputs to Circuit NOT including the Clock for the Latches.outs
- Number of Outputs to Circuit.lutIns
- Number of Inputs to Look-Up Tables.bpv
- Bits Per Variable, defines how many addressable CLBs there will be = 2^bpv-nrIns.delMod
- The generator of delay values.
map
public SimulatorLogicElement[][] map(BitSet individual)
- Takes and individual and an array of arrays of logic elements where this
individual must be instantiated.
- Specified by:
map
in interface CircuitMapping
- Parameters:
individual
- The individual to be mapped into a circuit.- Returns:
- Array consisting of three subarrays: The first will represent
the inputs to the circuit and is where the inputs will be fed in. The second
represents the elements that are the outputs of the circuit and is where they
will be read out from. The last is an array with all the elements of the
circuit.
resetDelays
public void resetDelays(java.lang.Object delayDef)
- Specified by:
resetDelays
in interface CircuitMapping
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getElementFromAddress
public SimulatorLogicElement getElementFromAddress(SimulatorLogicElement[][] inoutels,
int address)
- Untested method
- Specified by:
getElementFromAddress
in interface CircuitMapping