/** * Gets the FPGA hardware resource usage of this component. * * @return a FPGAResource objec */ @Override public FPGAResource getHardwareResourceUsage() { int lutCount = 0; Value inputValue = getDataPort().getValue(); for (int i = 0; i < inputValue.getSize(); i++) { Bit inputBit = inputValue.getBit(i); if (!inputBit.isConstant() && inputBit.isCare()) { lutCount++; } } FPGAResource hwResource = new FPGAResource(); hwResource.addLUT(lutCount); return hwResource; }