jaga.pj.circuits.fpgaft
Class LUTAbsoluteMapping
java.lang.Object
|
+--jaga.pj.circuits.fpgaft.LUTAbsoluteMapping
- All Implemented Interfaces:
- CircuitMapping, java.io.Serializable
- public class LUTAbsoluteMapping
- extends java.lang.Object
- implements CircuitMapping
Genotype -> Phenotype mapping is:
first 2^LUTInputs bits of block declare Look Up Table bits.
other bitsPerVar * LUTInputs declare element from where inputs are taken,
coding similar to jaga.pj.circuits.grippingeh.cnand.SimlatorCNANDCircuit.java
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LUTAbsoluteMapping
public LUTAbsoluteMapping(int ins,
int outs,
int bpv,
int LUTins,
ElementDelayModel delmod)
map
public SimulatorLogicElement[][] map(BitSet genotype)
- Description copied from interface:
CircuitMapping
- Takes and individual and an array of arrays of logic elements where this
individual must be instantiated.
- Specified by:
map
in interface CircuitMapping
- Following copied from interface:
jaga.pj.circuits.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.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
resetDelays
public void resetDelays(java.lang.Object delayDef)
- Specified by:
resetDelays
in interface CircuitMapping
getElementFromAddress
public SimulatorLogicElement getElementFromAddress(SimulatorLogicElement[][] inoutels,
int address)
- Specified by:
getElementFromAddress
in interface CircuitMapping