package sopc2dts.generators;

import sopc2dts.lib.AvalonSystem;
import sopc2dts.lib.Bin2IHex;
import sopc2dts.lib.Bin2IHex.HexTypes;
import sopc2dts.lib.BoardInfo;

public class DTBHex8Generator extends AbstractSopcGenerator {
	private DTBGenerator dtbGen;
	public DTBHex8Generator(AvalonSystem s) {
		super(s, true);
		dtbGen = new DTBGenerator(s);
	}

	@Override
	public String getExtension() {
		return "hex";
	}

	@Override
	public String getTextOutput(BoardInfo bi) {
		return Bin2IHex.toHex(dtbGen.getBinaryOutput(bi), HexTypes.I8Hex);
	}

}

@@ -1,8 +1,832 @@
+/*%0Asopc2dts - Devicetree generation for Altera systems%0A%0ACopyright (C) 2011 Walter Goossens %3Cwaltergoossens@home.nl%3E%0A%0AThis library is free software; you can redistribute it and/or%0Amodify it under the terms of the GNU Lesser General Public%0ALicense as published by the Free Software Foundation; either%0Aversion 2.1 of the License, or (at your option) any later version.%0A%0AThis library is distributed in the hope that it will be useful,%0Abut WITHOUT ANY WARRANTY; without even the implied warranty of%0AMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU%0ALesser General Public License for more details.%0A%0AYou should have received a copy of the GNU Lesser General Public%0ALicense along with this library; if not, write to the Free Software%0AFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA%0A*/%0A
 package 

Add missing copyright header